var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opener = _____WB$wombat$assign$function_____("opener");
var _yt_player={};(function(g){var window=this;/*

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.

 -----------------------------------------------------------------------------
 Ported from zlib, which is under the following license
 https://github.com/madler/zlib/blob/master/zlib.h

 zlib.h -- interface of the 'zlib' general purpose compression library
   version 1.2.8, April 28th, 2013
   Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
   This software is provided 'as-is', without any express or implied
   warranty.  In no event will the authors be held liable for any damages
   arising from the use of this software.
   Permission is granted to anyone to use this software for any purpose,
   including commercial applications, and to alter it and redistribute it
   freely, subject to the following restrictions:
   1. The origin of this software must not be misrepresented; you must not
      claim that you wrote the original software. If you use this software
      in a product, an acknowledgment in the product documentation would be
      appreciated but is not required.
   2. Altered source versions must be plainly marked as such, and must not be
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
   Jean-loup Gailly        Mark Adler
   jloup@gzip.org          madler@alumni.caltech.edu
   The data format used by the zlib library is described by RFCs (Request for
   Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950
   (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
*/
/*


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in all
 copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
/*

 SPDX-License-Identifier: Apache-2.0
*/
'use strict';var aa,baa,caa,ka,daa,eaa,faa,ma,pa,qa,sa,jaa,kaa,Aa,Ba,laa,maa,Ea,naa,Fa,Ga,Ia,Ma,oaa,qaa,raa,Wa,ab,saa,bb,db,fb,nb,ob,taa,uaa,rb,waa,xaa,Gb,yaa,Qb,zaa,Aaa,Nb,Baa,Caa,Daa,Faa,Eaa,Gaa,Xb,Haa,Yb,bc,dc,fc,mc,nc,oc,rc,tc,uc,Paa,vc,zc,wc,Qaa,Raa,Saa,Ac,Bc,Taa,Cc,Fc,Gc,Uaa,Vaa,Hc,Ic,Xaa,Yaa,$aa,Rc,Sc,cba,Tc,Xc,dba,eba,$c,ed,fba,iba,md,od,jba,kba,rd,pba,zd,mba,oba,ud,td,Dd,Ed,qba,Gd,rba,Id,Jd,sba,Pd,Qd,Rd,Td,vba,xba,Vd,yba,Bba,Wd,Xd,Dba,Iba,Zd,ae,be,Lba,Kba,Qba,Rba,ee,Sba,Uba,Vba,Xba,$ba,oe,
bca,te,ue,we,De,Fe,Ie,Je,cca,dca,eca,fca,Me,Ne,Ue,ica,kca,jca,We,Ye,lca,Xe,Le,rf,nca,tf,sf,Ke,vf,oca,pca,wf,xf,qca,sca,uca,Df,Ef,Hf,yca,Jf,zca,If,Dca,Bf,wca,Fca,Cca,Aca,Bca,Gca,Eca,Kf,Nf,Ica,Jca,Kca,Lca,Mca,Nca,Oca,Pca,Qca,Rca,Sca,Tca,Uca,Pf,Vca,Xf,Wca,Zca,$ca,ada,fda,ag,eda,bda,hda,jda,lda,cg,dg,oda,fg,gg,mg,hg,qda,ng,sda,uda,rda,qg,sg,rg,tg,ug,vg,wg,vda,xda,yg,yda,zda,zg,Ag,Dg,Bda,Cda,Eda,Fda,Hda,Eg,Ida,Fg,Jda,Gg,Kda,Hg,Lda,Mda,Nda,Ig,Oda,Jg,Sg,Pda,Tg,Ug,Qda,Vg,Wg,Rda,Sda,Xg,Tda,Yg,$g,Zg,ah,Uda,
Vda,Wda,Xda,Yda,Zda,bh,dh,aea,eh,L,fh,gh,ih,cea,dea,jh,eea,fea,kh,gea,lh,wh,hea,yh,xh,iea,bea,Ah,jea,Bh,Ch,Dh,Eh,Fh,Gh,kea,Hh,Jh,Kh,Lh,lea,mea,Ih,nea,Oh,oea,pea,rea,qea,sea,Qh,tea,Xh,Yh,zh,P,uea,xea,yea,Aea,Bea,Cea,Dea,Eea,vea,wea,Gea,Hea,Iea,Jea,di,Kea,Lea,Mea,Nea,$h,zea,Fea,ei,fi,gi,hi,Oea,Pea,Qea,Rea,ii,Tea,ji,Uea,Wea,ki,li,Yea,Zea,$ea,mi,cfa,efa,ffa,hfa,gfa,ifa,pi,qi,ri,kfa,lfa,mfa,si,ofa,Ii,pfa,sfa,Ji,Ki,tfa,Li,Mi,vfa,wfa,Qi,Ri,Si,xfa,yfa,Vi,zfa,Wi,Xi,Cfa,Efa,Ffa,Hfa,Gfa,Ifa,Zi,Jfa,oj,sj,tj,
uj,Mh,Ofa,vj,Rfa,Tfa,Ufa,xj,Wfa,Xfa,Yfa,$fa,Zfa,aga,Vfa,wj,cga,dga,fga,yj,zj,gga,Aj,Bj,hga,iga,Cj,Dj,Ej,Fj,jga,kga,lga,mga,Gj,nga,oga,pga,sga,qga,Hj,tga,Ij,uga,vga,Jj,Lj,wga,xga,yga,Mj,Nj,Oj,Zj,Bga,ak,Cga,bk,ck,fk,Dga,Fga,Ega,Gga,Hga,Iga,gk,hk,Jga,Mga,ik,jk,kk,lk,Nga,mk,nk,ok,pk,Sga,Pga,sk,Rga,tk,Qga,rk,qk,vk,Uga,xk,wk,Vga,Wga,Dk,Ek,Gk,Zga,Fk,Jk,$ga,Kk,Xga,cha,dha,eha,Vk,Wk,Xk,fha,Yk,Zk,$k,al,gha,bl,cl,dl,hha,iha,el,jha,Kga,mha,nha,oha,pha,kha,qha,rha,fl,gl,il,jl,kl,ll,ml,sha,nl,hl,ol,tha,uha,vha,
wha,xha,yha,pl,ql,rl,sl,tl,ul,vl,zha,wl,xl,yl,Aha,Cha,Dha,Al,Cl,Bl,El,Fl,Gl,Fha,Gha,Hl,Il,Jl,Iha,Jha,Mha,Kha,Nha,Rha,Kl,Qha,Oha,Wl,Xl,Sha,Yl,Tha,Zl,Vha,Uha,Wha,Xha,cm,dm,Yha,Zha,$ha,em,fm,aia,gm,bia,cia,eia,iia,hm,jia,kia,lia,mia,nia,km,oia,pia,qia,rm,qm,pm,ria,sia,tia,sm,tm,um,via,zm,Am,Bm,Cm,Dm,Em,xia,yia,zia,Fm,Hm,Im,Mm,Nm,Qm,Bia,Dia,Cia,Eia,Fia,Wm,Gia,Hia,Xm,Iia,Jia,Kia,Lia,an,Zm,bn,cn,dn,Mia,Nia,Oia,en,fn,gn,Pia,Qia,Ria,hn,Sia,jn,kn,Tia,Uia,Via,Wia,Xia,Yia,ln,wn,xn,zn,aja,An,Bn,bja,$ia,yn,cja,
Cn,Dn,En,Gn,Fn,dja,eja,fja,Hn,hja,In,jja,kja,lja,mja,nja,oja,pja,qja,Ln,Mn,Nn,sja,rja,Pn,tja,Qn,uja,Rn,vja,wja,Sn,Tn,Un,xja,Vn,Wn,yja,Xn,Yn,Zn,$n,ao,bo,co,eo,zja,Aja,Bja,Cja,fo,Dja,Fja,Eja,ho,io,Hja,Gja,Mja,Lja,jo,Nja,Oja,Pja,Rja,Qja,Sja,ko,Tja,Uja,mo,Vja,Wja,Xja,Yja,no,Zja,oo,$ja,po,qo,bka,ro,cka,so,to,dka,eka,uo,wo,gka,xo,fka,hka,ika,jka,lka,yo,mka,Bo,Co,oka,pka,ska,tka,Do,Eo,Fo,Go,Ho,Io,So,To,Uo,Vo,Wo,Xo,Yo,xka,wka,yka,Aka,zka,Cka,vka,Bka,uka,Zo,$o,Eka,Fka,Gka,dp,ep,fp,ap,Ika,gp,Dka,Kka,Lka,Mka,
Jka,hp,ip,jp,kp,Nka,Hka,Oka,lp,Pka,Qka,Rka,Ska,Tka,Wka,np,Xka,op,Yka,Zka,$ka,dla,rp,fla,qp,tp,gla,up,wp,xp,hla,ila,Ep,jla,kla,Fp,lla,Qp,Np,Op,Pp,mla,Tp,Sp,nla,Vp,ola,qla,Wp,rla,sla,xla,tla,Zp,$p,Cla,aq,bq,cq,Ela,fq,Fla,Gla,gq,Ila,iq,jq,kq,Jla,mq,nq,oq,pq,rq,sq,Lla,tq,Mla,vq,Jq,Kq,Lq,Mq,Nq,Nla,Ola,Pla,Qla,Rla,Sla,Oq,Tla,Vq,Ula,Vla,Wla,Wq,Yq,Zq,$q,cr,dr,er,Yla,hr,ir,jr,Zla,$la,kr,ama,bma,mr,jma,kma,lma,nr,mma,nma,qma,qr,rr,sma,tr,ur,vr,wr,xr,yr,zr,Ar,Br,Cr,Dr,Er,Fr,Gr,Hr,Ir,Jr,Kr,Lr,Mr,Nr,Or,Pr,Qr,
Rr,Sr,Tr,Ur,Vr,Wr,Xr,Yr,Zr,$r,as,bs,cs,ds,es,fs,gs,hs,is,js,ks,ls,ms,ns,os,ps,qs,rs,ts,us,vs,ws,xs,ys,zs,As,Bs,Cs,Ds,Dma,Es,Fs,Gs,Hs,Is,Js,Ks,Ls,Ms,Hma,Os,Ps,Qs,Rs,Ss,Ts,Us,Vs,Ws,Xs,Ys,Zs,$s,at,ut,wt,xt,zt,At,Bt,Ct,Dt,Et,Ft,Gt,Ht,It,Jt,Kt,Lt,Mt,Nt,Ot,Pt,Qt,Rt,St,Tt,Ut,Vt,Wt,Xt,Yt,Zt,$t,au,bu,cu,du,eu,fu,gu,hu,iu,ju,ku,lu,mu,nu,ou,pu,qu,ru,tu,uu,vu,wu,xu,yu,zu,Au,Bu,Cu,Du,Eu,Fu,Gu,Hu,Iu,Ju,Ku,Lu,Mu,Nu,Ou,Pu,Qu,Ru,Su,Tu,Uu,Vu,Wu,Xu,Yu,Zu,$u,av,bv,cv,dv,ev,fv,gv,hv,iv,jv,kv,lv,mv,nv,ov,pv,qv,rv,tv,uv,
vv,wv,xv,yv,zv,Av,Bv,Cv,Dv,Ev,Fv,Gv,Hv,Iv,Jv,Kv,Lv,Mv,Nv,Ov,Pv,Qv,Rv,Sv,Tv,Uv,Vv,Wv,Xv,Yv,Zv,$v,aw,bw,cw,dw,ew,fw,gw,hw,iw,jw,kw,lw,mw,nw,ow,pw,qw,rw,tw,uw,vw,ww,xw,yw,zw,Bw,Fw,Gw,Hw,Iw,Jw,Kw,Lw,Mw,Nw,Ow,Pw,Qw,Rw,Sw,Tw,Uw,Vw,Ww,Xw,Yw,Zw,$w,ax,bx,cx,dx,ex,fx,gx,hx,ix,jx,kx,lx,mx,una,nx,vna,ox,xna,px,qx,rx,sx,tx,ux,vx,wx,xx,yx,zx,Ax,Bx,Cx,Dx,Ex,Fx,Gx,Hx,Ix,Jx,Kx,Lx,Mx,Nx,Ox,Px,Qx,Rx,Sx,Tx,Ux,Vx,Wx,Xx,Yx,Ina,Jna,$x,by,ey,Kna,fy,Lna,jy,ky,ly,my,ny,py,qy,Pna,ry,sy,ty,Mna,uy,Sna,Vna,vy,Xna,Zna,By,$na,aoa,
boa,foa,doa,eoa,Ey,Cy,Gy,Fy,goa,Iy,Jy,Ky,hoa,Qy,ioa,Ry,joa,koa,Ty,loa,Vy,Wy,moa,Xy,Yy,ooa,az,cz,dz,Sy,ez,fz,gz,hz,iz,jz,kz,qoa,lz,oz,nz,soa,voa,toa,uoa,woa,xoa,Boa,Coa,yoa,Eoa,sz,tz,wz,xz,Foa,vz,yz,Hoa,Ioa,Loa,Moa,Cz,Noa,Ooa,Dz,Ez,Fz,Gz,Iz,Roa,Soa,Pz,Toa,Uoa,Qz,Voa,Vz,Wz,Xz,Woa,Xoa,Zoa,apa,aA,dA,bA,gA,hA,jA,bpa,qA,rA,sA,tA,vA,wA,yA,gpa,hpa,AA,ipa,jpa,CA,kpa,lpa,DA,EA,mpa,FA,npa,JA,ppa,qpa,HA,rpa,spa,upa,tpa,NA,opa,wpa,xpa,ypa,QA,zpa,Apa,SA,TA,Bpa,Cpa,jB,Dpa,Epa,Fpa,Gpa,oB,Hpa,Ipa,Jpa,Kpa,Lpa,Mpa,
Npa,Opa,qB,Ppa,sB,Rpa,Spa,Tpa,Upa,Vpa,zB,Xpa,Ypa,Zpa,$pa,Wpa,aqa,bqa,tB,uB,xB,yB,AB,wB,vB,cqa,kqa,dqa,eqa,fqa,gqa,hqa,oqa,iqa,EB,FB,HB,qqa,KB,rqa,GB,LB,PB,zqa,sqa,yqa,RB,Aqa,Dqa,SB,QB,Bqa,Cqa,Eqa,UB,Gqa,Hqa,Iqa,Jqa,Kqa,Lqa,Mqa,Fqa,Oqa,Pqa,Qqa,Rqa,Sqa,XB,YB,$B,Uqa,aC,Vqa,Wqa,dC,eC,Yqa,Xqa,Zqa,ara,cra,bra,fra,ira,gra,rC,qC,jra,pC,sC,tC,mra,ora,xC,yC,pra,zC,AC,qra,rra,CC,sra,ura,DC,vra,EC,FC,IC,HC,GC,KC,LC,MC,xra,NC,PC,yra,RC,SC,VC,UC,TC,zra,WC,Bra,Cra,Ara,Era,Fra,YC,eD,Dra,fD,gD,Kra,mD,Jra,Ora,Pra,
Ira,Nra,Mra,XC,nD,dD,kD,Lra,pD,Ura,Tra,Xra,uD,Zra,sD,$ra,vD,wD,yD,bsa,csa,dsa,esa,fsa,gsa,mA,osa,lsa,qsa,rsa,ssa,vsa,wsa,ysa,zsa,Asa,Bsa,usa,Dsa,DD,ED,Esa,GD,ID,JD,KD,LD,MD,Gsa,ND,OD,PD,QD,Lsa,Nsa,Psa,Qsa,SD,Ssa,Tsa,YD,ZD,Usa,Vsa,$D,cE,Wsa,Xsa,fE,gE,hE,iE,jE,kE,lE,Ysa,mE,nE,$sa,Zsa,oE,fta,pE,qE,rE,tE,gta,hta,vE,wE,xE,jta,zE,AE,kta,lta,nta,ota,DE,EE,GE,qta,HE,SE,FE,tta,TE,wta,xta,yta,vta,zta,Ata,WE,VE,sta,Dta,uta,XE,Fta,Hta,$E,Ita,ZE,bF,Jta,YE,Kta,cF,Gta,Lta,dF,fF,iF,kF,Nta,lF,mF,Rta,Tta,Sta,Vta,tF,
oF,Uta,Qta,Pta,Ota,sF,pF,rF,$ta,aua,bua,CF,DF,cua,EF,FF,BF,gua,dua,eua,hua,GF,iua,IF,jua,JF,KF,LF,MF,kua,lua,NF,mua,OF,nua,oua,PF,RF,VF,pua,WF,XF,YF,ZF,$F,aG,bG,qua,cG,eG,sua,tua,dG,fG,wua,xua,gG,yua,jG,zua,kG,mG,Aua,lG,nG,Bua,pG,Dua,Eua,rG,sG,xG,Gua,uG,yG,AG,Hua,CG,wG,zG,Iua,DG,Jua,EG,Kua,tG,vG,Fua,BG,FG,Lua,Mua,GG,Nua,HG,Oua,IG,JG,LG,Pua,KG,MG,NG,Qua,OG,PG,QG,RG,SG,Sua,TG,UG,Tua,VG,Uua,WG,XG,YG,Vua,ZG,Wua,Xua,Yua,aH,$G,Zua,$ua,ava,bva,bH,cH,dH,eH,cva,dva,gH,eva,hH,iH,fva,gva,jH,hva,iva,mva,nva,
jva,kva,lva,kH,mH,lH,nH,oH,ova,pva,pH,qH,qva,rva,rH,sva,tH,tva,uH,uva,vva,wva,xva,vH,yva,xH,yH,zH,zva,Bva,BH,AH,FH,yF,GH,HH,xF,wF,IH,JH,Rua,Cva,KH,LH,MH,DH,NH,Dva,fI,gI,iI,Eva,jI,kI,lI,mI,nI,oI,Fva,pI,qI,rI,sI,tI,vI,Gva,wI,xI,yI,Hva,Iva,Jva,DI,zI,EI,FI,Kva,Lva,Mva,GI,II,Xta,qF,Qva,Rva,Sva,Tva,Uva,Vva,nF,HI,Wva,LI,MI,Zva,$va,awa,NI,ewa,bwa,cwa,gwa,hwa,OI,fwa,iwa,PI,QI,RI,jwa,kwa,SI,lwa,mwa,nwa,JI,owa,VI,pwa,qwa,rwa,XI,WI,swa,twa,uwa,vwa,wwa,Yta,Wta,ZI,$I,aJ,cJ,dJ,eJ,fJ,gJ,bJ,kJ,ywa,nJ,zwa,Awa,Bwa,
Cwa,oJ,Dwa,Ewa,Fwa,Gwa,pJ,Hwa,qJ,Jwa,rJ,Lwa,Mwa,Kwa,Iwa,Nwa,Owa,Pwa,vJ,Rwa,wJ,Zta,xJ,Swa,Uwa,uF,Vwa,Wwa,Xwa,Ywa,zJ,Zwa,AJ,BJ,HJ,axa,KJ,LJ,OJ,PJ,bxa,dxa,cxa,exa,fxa,gxa,hxa,ixa,jxa,RJ,SJ,TJ,kxa,lxa,UJ,mxa,VJ,WJ,nxa,XJ,oxa,YJ,pxa,ZJ,$J,aK,bK,qxa,rxa,txa,cK,uxa,sxa,dK,yK,uK,AK,DK,EK,vxa,Cxa,vK,xK,HK,Gxa,MK,kK,NK,jK,OK,tK,RK,SK,TK,UK,VK,WK,Ixa,Jxa,XK,Kxa,Lxa,Mxa,Nxa,YK,Oxa,Txa,Sxa,Pxa,Rxa,Qxa,ZK,Uxa,$K,Vxa,Wxa,Yxa,Zxa,$xa,dya,eL,fL,gya,gL,hL,hya,jya,mya,nya,oya,pya,iL,kL,lL,mL,nL,oL,pL,qL,rL,rya,sL,sya,
tL,uL,vL,wL,xL,yL,zL,uya,vya,AL,wya,EL,zya,Aya,FL,GL,Bya,Dya,Fya,ML,Gya,TL,Qya,Kya,Lya,Sya,UL,Tya,Vya,Uya,Wya,WL,ZL,Xya,VL,$L,aM,Yya,bza,Zya,aza,nM,wM,yM,Dza,nza,pza,hM,zM,Cza,oza,mM,Eza,BM,lza,Gza,Fza,eM,lM,Mza,Iza,Jza,Kza,Lza,Nza,CM,Oza,Pza,EM,FM,Qza,HM,dM,jM,uza,$ya,yza,KM,kM,Hza,SM,UM,VM,XM,WM,bAa,xM,cAa,ZM,dAa,$M,aN,mza,cN,Vza,iM,eAa,eza,dza,iya,dN,eN,gAa,fN,gN,hN,jN,iN,kN,hAa,iAa,lN,nN,jAa,kAa,oN,pN,qN,rN,lAa,mAa,sN,nAa,tN,uN,vN,wN,xN,yN,oAa,BN,pAa,CN,EN,sAa,DN,tAa,qAa,rAa,uAa,vAa,wAa,FN,GN,
HN,gBa,IN,mBa,kBa,KN,MN,KBa,QN,ON,NBa,MBa,OBa,TN,LBa,VN,PN,WN,SN,RN,NN,YN,ZN,aO,cO,RBa,SBa,QBa,dO,eO,fO,gO,hO,TBa,iO,jO,UBa,kO,lO,mO,XBa,VBa,qO,YBa,ZBa,rO,$Ba,uO,vO,aCa,fCa,wO,gCa,xO,yO,hCa,zO,iCa,jCa,kCa,lCa,mCa,AO,BO,oCa,pCa,nCa,rCa,qCa,EO,GO,uCa,JO,KO,vCa,wCa,BI,xCa,yCa,LO,zCa,MO,BCa,NO,PO,QO,RO,SO,WO,YO,ZO,CCa,DCa,$O,ECa,FCa,aP,GCa,cP,HCa,ICa,LCa,KCa,MCa,dP,QCa,RCa,hP,SCa,iP,TCa,UCa,gP,VCa,pP,qP,rP,WCa,sP,tP,XCa,ZCa,YCa,aDa,$Ca,uP,bDa,dDa,cDa,fDa,eDa,hDa,vP,iDa,xP,wP,zP,BP,CP,jDa,kDa,lDa,mDa,
DP,FP,qDa,tDa,nDa,GP,CDa,DDa,HP,FDa,EDa,HDa,IDa,KDa,JDa,LDa,MDa,NDa,ODa,MP,NP,PDa,QDa,RDa,SDa,TDa,UDa,UP,WDa,XDa,SP,TP,VDa,$Da,aEa,VP,dEa,bEa,eEa,WP,PBa,fEa,JBa,gEa,hEa,iEa,XP,oEa,kEa,lEa,mEa,pEa,YP,qEa,sEa,tEa,rEa,nEa,uEa,bP,wEa,xEa,vEa,$P,aQ,yEa,zEa,cQ,eQ,gQ,CEa,hQ,DEa,kQ,lQ,EEa,FEa,mQ,HEa,IEa,JEa,KEa,LEa,MEa,NEa,rQ,OEa,sQ,uQ,PEa,QEa,REa,vQ,SEa,TEa,zQ,AQ,BQ,UEa,CQ,VEa,EQ,XEa,WEa,FQ,GQ,HQ,IQ,YEa,JQ,KQ,ZEa,LQ,MQ,cFa,$Ea,bFa,aFa,NQ,OQ,PQ,dFa,eFa,fFa,QQ,hFa,kFa,jFa,RQ,SQ,TQ,UQ,VQ,XQ,YQ,ZQ,$Q,aR,bR,
cR,mFa,lFa,dR,nFa,eR,fR,gR,hR,iR,lR,pFa,mR,qFa,nR,oR,pR,rFa,sFa,vFa,wFa,rR,yFa,tR,uR,vR,AFa,wR,FFa,DFa,CFa,BFa,HFa,xR,yR,zR,AR,BR,CR,DR,FR,LFa,OFa,PFa,GR,HR,Y,RFa,IR,WFa,$Fa,aGa,bGa,hGa,lGa,qGa,rGa,LGa,MGa,NGa,sGa,uGa,AGa,RGa,UGa,SGa,WGa,TGa,XGa,MHa,dHa,NHa,eHa,fHa,OR,PHa,RHa,THa,SHa,QHa,hHa,qHa,XHa,ZHa,sHa,tHa,vHa,wHa,xHa,fIa,zHa,CHa,IHa,nIa,jIa,kIa,pIa,sIa,rIa,tIa,uIa,CIa,vIa,RR,zIa,IIa,JIa,KIa,LIa,OIa,SIa,uJa,tJa,VR,yJa,lA,AJa,zJa,BJa,DJa,CJa,EJa,YR,FJa,HJa,KJa,LJa,MJa,IJa,RJa,QJa,$Ja,bKa,cKa,
dKa,bS,eKa,gKa,cS,hKa,eS,fS,dS,jEa,iKa,jKa,mKa,lKa,oKa,jS,pKa,qKa,rKa,sKa,mS,tKa,uKa,xKa,yKa,nS,zKa,oS,pS,qS,AKa,DKa,EKa,BS,FKa,LS,MS,NS,OS,PS,GKa,IKa,HKa,JKa,KKa,LKa,MKa,SS,TS,US,PKa,OKa,VS,QKa,RKa,SKa,WS,XS,TKa,VKa,WKa,YS,XKa,ZS,$Ka,ZKa,aLa,bLa,cLa,dLa,bT,$S,eLa,cT,fLa,eT,dT,hLa,iLa,fT,kLa,jLa,iT,jT,kT,nLa,lLa,mLa,oLa,lT,rLa,pLa,qLa,mT,sLa,tLa,uLa,nT,oT,vLa,wLa,pT,xLa,yLa,zLa,ALa,BLa,CLa,DLa,GLa,ELa,HLa,ILa,JLa,KLa,MLa,yT,OLa,PLa,NLa,RLa,QLa,ULa,VLa,SLa,TLa,XLa,YLa,WLa,ZLa,$La,aMa,bMa,fMa,gMa,BT,
hMa,jMa,iMa,mMa,nMa,tMa,ET,xMa,wMa,vMa,rMa,sMa,oMa,pMa,uMa,FT,GT,zMa,uS,kKa,IT,AMa,BMa,yMa,DMa,EMa,FMa,KT,GMa,HMa,IMa,JMa,KMa,MMa,NMa,OMa,UT,VT,PMa,QMa,RMa,SMa,TMa,VMa,UMa,WMa,WT,XT,XMa,$Ma,aNa,$T,ZMa,bNa,cNa,YMa,aU,dNa,dU,eNa,fNa,cU,hNa,gNa,iNa,jNa,kNa,lNa,nNa,oNa,mNa,rNa,pNa,iU,jU,tNa,lU,mU,uNa,wNa,oU,vNa,xNa,yNa,zNa,BNa,ANa,CNa,DNa,ENa,FNa,GNa,uU,vU,INa,HNa,yU,wU,xU,JNa,KNa,zU,LNa,NNa,MNa,QNa,RNa,SNa,VNa,UNa,TNa,WNa,XNa,AU,BU,YNa,ZNa,$Na,aOa,CU,FU,bOa,dOa,eOa,fOa,gOa,hOa,iOa,HU,jOa,kOa,nOa,IU,
oOa,mOa,JU,pOa,qOa,tOa,rOa,sOa,vOa,wOa,yOa,zOa,MU,NU,AOa,uOa,COa,BOa,OU,PU,QU,TU,UU,DOa,EOa,FOa,XU,GOa,YU,HOa,ZU,$U,IOa,aV,JOa,NOa,LOa,KOa,MOa,ROa,SOa,TOa,UOa,WOa,XOa,YOa,VOa,ZOa,$Oa,cPa,eV,ePa,dPa,aPa,bPa,gPa,fPa,hPa,fV,gV,iPa,jPa,kPa,lPa,mPa,nPa,oPa,pPa,xPa,sPa,tPa,qPa,APa,lV,BPa,FPa,oV,GPa,CPa,kV,rV,qV,mV,sV,JPa,KPa,tV,nV,yPa,IPa,pV,DPa,HPa,LPa,hV,vV,MPa,NPa,EPa,wV,xV,PPa,yV,QPa,BV,CV,RPa,SPa,UPa,VPa,TPa,DV,EV,WPa,XPa,YPa,ZPa,$Pa,bQa,dQa,cQa,aQa,fQa,eQa,FV,GV,gQa,iQa,jQa,HV,hQa,kQa,lQa,IV,KV,NV,
MV,nQa,mQa,oQa,OV,pQa,qQa,sQa,rQa,tQa,uQa,vQa,RV,wQa,gU,AQa,tU,xQa,BQa,zQa,RS,yQa,CQa,EQa,FQa,GQa,DQa,HQa,IQa,JQa,KQa,LQa,MQa,WV,NQa,XV,PQa,YV,RQa,ZV,QQa,TQa,UQa,SQa,$V,VQa,XQa,YQa,WQa,bW,cW,$Qa,dW,aRa,fW,cRa,dRa,eRa,fRa,gRa,hRa,iRa,jRa,kRa,bRa,gW,lRa,mRa,iW,nRa,oRa,pRa,uRa,yRa,wRa,rRa,lW,qRa,xRa,nW,ARa,zRa,oW,CRa,DRa,ERa,GRa,HRa,FRa,IRa,tW,JRa,LRa,KRa,MRa,TRa,yW,URa,VRa,BW,WRa,XRa,CW,YRa,NRa,DW,$Ra,aSa,cSa,EW,dSa,FW,fSa,eSa,GW,RRa,wW,gSa,hSa,iSa,jSa,kSa,ORa,QRa,xW,zW,uW,HW,lSa,mSa,oSa,sSa,JW,tSa,
uSa,qSa,LW,vSa,wSa,nSa,xSa,rSa,ySa,MW,KW,zSa,BSa,ASa,IW,DSa,OW,ESa,PW,NW,QW,FSa,RW,GSa,JSa,ISa,LSa,MSa,KSa,UW,TW,OSa,PSa,QSa,RSa,SSa,TSa,VSa,USa,WW,XW,WSa,XSa,ZSa,cTa,$Sa,aTa,bTa,dTa,eTa,fTa,dX,gTa,hTa,iTa,eX,fX,gX,jTa,oTa,qTa,rTa,lX,mX,nX,oX,nTa,sTa,iX,kTa,tTa,hX,jX,lTa,mTa,kX,uTa,vTa,pTa,wTa,CTa,BTa,yTa,DTa,ETa,zTa,ATa,xTa,FTa,GTa,Jya,Pya,ITa,HTa,qX,NTa,LTa,MTa,JTa,OTa,rX,KTa,sX,tX,PTa,QTa,RTa,STa,UTa,VTa,uX,WTa,XTa,YTa,ZTa,aUa,bUa,wX,iUa,eUa,$Ta,kUa,fUa,gUa,dUa,hUa,xX,cUa,jUa,qUa,oUa,nUa,mUa,lUa,
zX,rUa,AX,vUa,BX,yUa,EX,xUa,CX,wUa,FX,zUa,DX,CUa,tUa,FUa,AUa,uUa,BUa,GUa,GX,HX,HUa,IUa,KUa,JUa,MUa,LUa,NUa,OUa,IX,PUa,QUa,KX,RUa,JX,SUa,ZW,TUa,VUa,WUa,YW,XUa,MX,NX,YUa,$Ua,ZUa,OX,aVa,cX,bVa,cVa,aX,bX,gVa,QX,RX,hVa,TX,PX,UX,eVa,dVa,fVa,VX,jVa,kVa,iVa,$W,SX,lVa,mVa,nVa,oVa,DUa,EUa,pVa,qVa,WX,vVa,rVa,wVa,xVa,yVa,uVa,zVa,BVa,XX,ZX,DVa,EVa,CVa,FVa,$X,GVa,IVa,LVa,QVa,NVa,PVa,VVa,WVa,UVa,XVa,YVa,$Va,aWa,ZVa,bY,bWa,dWa,eWa,fWa,gWa,hWa,cWa,iWa,jWa,kWa,lWa,nWa,qWa,rWa,tWa,wWa,xWa,sWa,cY,mWa,dY,uWa,vWa,yWa,
zWa,BWa,IWa,HWa,jY,JWa,GWa,MWa,NWa,OWa,PWa,QWa,RWa,SWa,TWa,lY,eY,VWa,WWa,AWa,kY,YWa,UWa,ZWa,$Wa,aXa,bXa,mY,dXa,eXa,cXa,fXa,gXa,hXa,iXa,jXa,mXa,lXa,kXa,nY,nXa,pXa,qXa,rXa,pY,qY,sXa,uXa,vXa,wXa,xXa,AVa,tY,tXa,yXa,BXa,DXa,pUa,zXa,AXa,CXa,vX,sVa,EXa,FXa,GXa,HXa,oXa,IXa,YX,JXa,vY,wY,KXa,xY,LXa,MXa,NXa,OXa,PXa,QXa,SXa,RXa,UXa,VXa,ZXa,WXa,YXa,$Xa,zY,dYa,bYa,cYa,gYa,hYa,iYa,jYa,kYa,yY,lYa,fYa,aYa,AY,mYa,XXa,nYa,BY,pYa,qYa,rYa,oYa,CY,uYa,tYa,xYa,wYa,vYa,yYa,zYa,DY,AYa,FY,EYa,BYa,CYa,DYa,FYa,GYa,HYa,JYa,IYa,
KYa,LYa,MYa,OYa,QYa,PYa,RYa,NYa,SYa,UYa,WYa,XYa,TYa,YYa,ZYa,aZa,$Ya,bZa,VYa,HY,cZa,dZa,fZa,hZa,iZa,jZa,kZa,nZa,mZa,oZa,pZa,qZa,sZa,rZa,vZa,KY,wZa,tZa,uZa,xZa,NY,zZa,yZa,AZa,BZa,CZa,EZa,DZa,HZa,OY,IZa,PY,KZa,RY,TY,LZa,QY,MZa,UY,OZa,JZa,PZa,QZa,SY,RZa,SZa,TZa,NZa,lZa,MY,VZa,WZa,XZa,YZa,ZZa,$Za,a_a,b_a,d_a,e_a,f_a,c_a,g_a,h_a,WY,i_a,j_a,XY,YY,k_a,l_a,m_a,ZY,p_a,aZ,q_a,r_a,$Y,o_a,n_a,dZ,cZ,eZ,bZ,s_a,w_a,y_a,A_a,B_a,u_a,z_a,C_a,v_a,D_a,E_a,G_a,fZ,H_a,F_a,gZ,I_a,x_a,J_a,t_a,hZ,P_a,M_a,Q_a,N_a,L_a,R_a,K_a,
U_a,iZ,V_a,X_a,CI,Z_a,b0a,XN,nZ,c0a,PRa,e0a,oZ,GY,f0a,h0a,d0a,rW,$_a,i0a,j0a,rY,sY,tZ,XWa,a0a,sZ,jZ,m0a,n0a,p0a,o0a,g0a,qZ,r0a,uZ,s0a,vRa,t0a,EY,BRa,u0a,ZRa,pZ,v0a,x0a,w0a,tRa,y0a,A0a,l0a,Y_a,C0a,B0a,rZ,kZ,D0a,wZ,mW,E0a,F0a,AW,G0a,H0a,I0a,sRa,vZ,q0a,J0a,V0a,P0a,O0a,X0a,N0a,yZ,sW,$0a,Y0a,b1a,BZ,CZ,c1a,d1a,EZ,U0a,JZ,f1a,IZ,DZ,h1a,i1a,Q0a,MZ,j1a,T0a,GZ,e1a,FZ,p1a,AZ,q1a,r1a,OZ,g1a,PZ,QZ,s1a,HZ,a1a,l1a,k1a,t1a,u1a,v1a,w1a,kS,x1a,KZ,y1a,A1a,zZ,RZ,Z0a,B1a,C1a,S0a,NZ,LZ,D1a,R0a,E1a,SZ,TZ,HSa,UZ,wC,VZ,WZ,
G1a,I1a,J1a,XZ,K1a,ZZ,L1a,M1a,$Z,YZ,N1a,O1a,a_,b_,c_,d_,e_,f_,g_,h_,Q1a,P1a,i_,j_,R1a,k_,l_,S1a,T1a,U1a,m_,n_,o_,p_,q_,r_,s_,t_,V1a,u_,v_,w_,W1a,X1a,x_,Y1a,Z1a,$1a,a2a,y_,z_,A_,b2a,B_,C_,D_,c2a,E_,F_,G_,H_,I_,J_,K_,L_,M_,d2a,N_,O_,P_,e2a,Q_,R_,S_,T_,f2a,U_,V_,g2a,W_,h2a,X_,Y_,i2a,cCa,dCa,eCa,WBa,j2a,n2a,o2a,p2a,tO,f0,nO,k2a,g0,s2a,t2a,u2a,v2a,l2a,x2a,$_,y2a,z2a,h0,A2a,i0,b0,B2a,a0,w2a,j0,E2a,D2a,d0,e0,l0,k0,F2a,m0,H2a,G2a,I2a,n0,o0,p0,q0,J2a,r0,u0,L2a,Q2a,S2a,R2a,T2a,U2a,W2a,Y2a,Z2a,y0,z0,x0,A0,B0,
C0,D0,$2a,a3a,E0,F0,w0,G0,H0,c3a,g3a,I0,h3a,d3a,i3a,J0,j3a,m3a,l3a,q3a,n3a,K0,L0,w3a,z3a,x3a,C3a,B3a,E3a,y3a,A3a,F3a,H3a,I3a,G3a,K3a,L3a,O3a,R3a,P3a,V3a,d4a,c4a,W3a,e4a,Y3a,Z3a,X3a,h4a,j4a,o4a,r4a,s4a,u4a,v4a,x4a,z4a,y4a,G4a,B4a,A4a,H4a,K4a,L4a,M4a,N4a,V0,nra,Q4a,O4a,X0,vC,Y0,Z0,lra,$0,S4a,T4a,$3a,U4a,V4a,W4a,U3a,X4a,a1,Y4a,n4a,Z4a,$4a,b1,v3a,M0,a5a,W0,m4a,l4a,N3a,p4a,t4a,w4a,r3a,I4a,b5a,f4a,a4a,c5a,d5a,X2a,c1,e5a,d1,f5a,e1,f1,g1,h1,V2a,h5a,g5a,M3a,q4a,i5a,J4a,T0,s3a,u3a,k3a,k4a,T3a,Q3a,f3a,e3a,b3a,
g4a,b4a,C4a,o3a,p3a,F4a,D4a,E4a,i4a,l5a,j5a,i1,k5a,j1,sO,c0,q2a,Z_,m5a,k1,l1,m1,n1,o5a,n5a,p5a,o1,p1,q1,U0,r1,q5a,P4a,m2a,r5a,s5a,t3a,N0,O0,t5a,s1,u5a,v5a,u1,v1,x5a,x1,y5a,z5a,w5a,w1,A5a,B5a,C5a,y1,F5a,E5a,z1,ZP,G5a,H5a,t1,I5a,J5a,K5a,A1,B1,L5a,C1,D1,M5a,N5a,O5a,P5a,Q5a,R5a,S5a,T5a,U5a,V5a,E1,F1,W5a,G1,H1,I1,J1,K1,L1,M1,Y5a,X5a,Z5a,$5a,a6a,N1,b6a,c6a,O1,P1,Q1,d6a,e6a,f6a,R1,g6a,S1,h6a,T1,i6a,U1,j6a,V1,k6a,m6a,W1,p6a,l6a,n6a,o6a,q6a,Y1,r6a,s6a,t6a,$1,Z1,a2,u6a,v6a,w6a,y6a,x6a,b2,z6a,A6a,C6a,B6a,c2,
d2,R4a,D6a,e2,E6a,f2,G6a,H6a,F6a,I6a,g2,J6a,K6a,L6a,h2,i2,j2,M6a,k2,l2,m2,N6a,O6a,n2,P6a,Q6a,o2,X1,p2,q2,r2,bCa,s2,R6a,t2,S6a,u2,v2,U6a,T6a,w2,x2,y2,V6a,W6a,X6a,z2,Y6a,Z6a,$6a,b7a,a7a,c7a,d7a,f7a,e7a,g7a,h7a,i7a,j7a,k7a,l7a,m7a,n7a,o7a,p7a,q7a,r7a,s7a,t7a,u7a,v7a,w7a,A2,B2,C2,x7a,y7a,z7a,A7a,B7a,C7a,D7a,E7a,F7a,G7a,H7a,I7a,J7a,K7a,L7a,D2,M7a,N7a,E2,F2,P7a,Q7a,G2,R7a,H2,S7a,I2,T7a,J2,U7a,V7a,W7a,K2,X7a,Y7a,Z7a,$7a,a8a,b8a,M2,c8a,d8a,e8a,f8a,g8a,i8a,N2,h8a,j8a,k8a,l8a,m8a,q8a,n8a,o8a,p8a,s8a,u8a,v8a,
w8a,t8a,O2,x8a,y8a,z8a,A8a,B8a,Q2,C8a,R2,S2,T2,D8a,E8a,G8a,H8a,I8a,J8a,L8a,K8a,M8a,U2,V2,P8a,N8a,O8a,W2,Q8a,R8a,X2,S8a,T8a,U8a,W8a,X8a,Y8a,Z8a,$8a,uC,V8a,a9a,e9a,f9a,h9a,aaa,fa,$i,Qa,paa;aa=function(a){return function(){return aaa[a].apply(this,arguments)}};
g.ba=function(a,b){return aaa[a]=b};
baa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
caa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
ka=function(a,b){if(b)a:{var c=g.da;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&fa(c,a,{configurable:!0,writable:!0,value:b})}};
daa=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
eaa=function(a){return a.raw=a};
g.v=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if("number"==typeof a.length)return{next:baa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");};
faa=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.la=function(a){return a instanceof Array?a:faa(g.v(a))};
ma=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.x=function(a,b){a.prototype=gaa(b.prototype);a.prototype.constructor=a;if(oa)oa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Ff=b.prototype};
pa=function(){this.J=!1;this.C=null;this.u=void 0;this.j=1;this.D=this.I=0;this.ea=this.B=null};
qa=function(a){if(a.J)throw new TypeError("Generator is already running");a.J=!0};
sa=function(a,b){a.B={tT:b,VU:!0};a.j=a.I||a.D};
g.y=function(a,b,c){a.j=c;return{value:b}};
g.ta=function(a){a.j=0};
g.ua=function(a,b,c){a.I=b;void 0!=c&&(a.D=c)};
g.va=function(a,b){a.j=b;a.I=0};
g.xa=function(a){a.I=0;var b=a.B.tT;a.B=null;return b};
g.haa=function(a){a.ea=[a.B];a.I=0;a.D=0};
g.iaa=function(a,b){var c=a.ea.splice(0)[0];(c=a.B=a.B||c)?c.VU?a.j=a.I||a.D:void 0!=c.Ka&&a.D<c.Ka?(a.j=c.Ka,a.B=null):a.j=a.D:a.j=b};
jaa=function(a){this.j=new pa;this.u=a};
kaa=function(a,b){qa(a.j);var c=a.j.C;if(c)return Aa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.j.return);
a.j.return(b);return Ba(a)};
Aa=function(a,b,c,d){try{var e=b.call(a.j.C,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.j.J=!1,e;var f=e.value}catch(h){return a.j.C=null,sa(a.j,h),Ba(a)}a.j.C=null;d.call(a.j,f);return Ba(a)};
Ba=function(a){for(;a.j.j;)try{var b=a.u(a.j);if(b)return a.j.J=!1,{value:b.value,done:!1}}catch(c){a.j.u=void 0,sa(a.j,c)}a.j.J=!1;if(a.j.B){b=a.j.B;a.j.B=null;if(b.VU)throw b.tT;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
laa=function(a){this.next=function(b){qa(a.j);a.j.C?b=Aa(a,a.j.C.next,b,a.j.V):(a.j.V(b),b=Ba(a));return b};
this.throw=function(b){qa(a.j);a.j.C?b=Aa(a,a.j.C["throw"],b,a.j.V):(sa(a.j,b),b=Ba(a));return b};
this.return=function(b){return kaa(a,b)};
this[Symbol.iterator]=function(){return this}};
maa=function(a){function b(d){return a.next(d)}
function c(d){return a.throw(d)}
return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}
f(a.next())})};
g.A=function(a){return maa(new laa(new jaa(a)))};
g.Ca=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
Ea=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};
e[Symbol.iterator]=function(){return e};
return e};
naa=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{i:e,QY:f}}return{i:-1,QY:void 0}};
Fa=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
Ga=function(a){return a?a:Array.prototype.fill};
Ia=function(a){return a?a:Array.prototype.copyWithin};
g.Ka=function(a,b,c){a=a.split(".");c=c||g.Ja;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};
Ma=function(a,b){var c=g.La("CLOSURE_FLAGS");a=c&&c[a];return null!=a?a:b};
g.La=function(a,b){a=a.split(".");b=b||g.Ja;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};
oaa=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.Oa=function(a){var b=oaa(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Pa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Sa=function(a){return Object.prototype.hasOwnProperty.call(a,Qa)&&a[Qa]||(a[Qa]=++paa)};
qaa=function(a,b,c){return a.call.apply(a.bind,arguments)};
raa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){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.Ta=function(a,b,c){g.Ta=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?qaa:raa;return g.Ta.apply(null,arguments)};
g.Ua=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.Va=function(){return Date.now()};
Wa=function(){return" This link opens in new tab"};
g.Ya=function(a,b){function c(){}
c.prototype=b.prototype;a.Ff=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.wj=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return b.prototype[e].apply(d,h)}};
ab=function(a){return a};
saa=function(a){this.PS=a};
bb=function(a,b,c){this.u=a;this.C=b;this.j=c||[];this.Px=new Map};
db=function(a,b){bb.call(this,a,3,b)};
fb=function(a,b){bb.call(this,a,2,b)};
g.gb=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.ib=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Oa(d)?g.ib.apply(null,d):g.gb(d)}};
g.E=function(){this.Ro=this.Ro;this.hk=this.hk};
g.I=function(a,b){g.lb(a,g.Ua(g.gb,b))};
g.lb=function(a,b){a.Ro?b():(a.hk||(a.hk=[]),a.hk.push(b))};
nb=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,nb);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b)};
ob=function(a,b){var c=nb.call;a=a.split("%s");for(var d="",e=a.length-1,f=0;f<e;f++)d+=a[f]+(f<b.length?b[f]:"%s");c.call(nb,this,d+a[e])};
taa=function(){};
g.pb=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.u=!1};
g.qb=function(a){return a[a.length-1]};
uaa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)};
g.sb=function(a,b,c){b=rb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
rb=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
g.vb=function(a,b,c){var d=a.length,e="string"===typeof a?a.split(""):a;for(--d;0<=d;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};
g.wb=function(a,b){return 0<=vaa(a,b)};
g.xb=function(a){return 0==a.length};
waa=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.Ab=function(a,b){b=vaa(a,b);var c;(c=0<=b)&&g.zb(a,b);return c};
g.zb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.Bb=function(a,b){b=rb(a,b);0<=b&&g.zb(a,b)};
xaa=function(a,b){var c=0;uaa(a,function(d,e){b.call(void 0,d,e,a)&&g.zb(a,e)&&c++})};
g.Cb=function(a){return Array.prototype.concat.apply([],arguments)};
g.Db=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
g.Fb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Oa(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}};
g.Jb=function(a,b,c,d){Array.prototype.splice.apply(a,Gb(arguments,1))};
Gb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
yaa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.Pa(e)?"o"+g.Sa(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.Ob=function(a,b,c){return zaa(a,c||Nb,!1,b)};
Qb=function(a,b){return zaa(a,b,!0)};
zaa=function(a,b,c,d){for(var e=0,f=a.length,h;e<f;){var l=e+(f-e>>>1),m=void 0;c?m=b.call(void 0,a[l],l,a):m=b(d,a[l]);0<m?e=l+1:(f=l,h=!m)}return h?e:-e-1};
g.Rb=function(a,b){a.sort(b||Nb)};
Aaa=function(a,b){var c=Nb;g.Rb(a,function(d,e){return c(b(d),b(e))})};
g.Sb=function(a,b){if(!g.Oa(a)||!g.Oa(b)||a.length!=b.length)return!1;for(var c=a.length,d=Baa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
Nb=function(a,b){return a>b?1:a<b?-1:0};
Baa=function(a,b){return a===b};
g.Tb=function(a,b,c){c=g.Ob(a,b,c);0>c&&g.Jb(a,-(c+1),0,b)};
g.Vb=function(a,b,c){var d={};(0,g.Ub)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
Caa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
Daa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
Faa=function(a){var b=g.La("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)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.Ja.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Eaa(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;
if(null==c){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,Wb[c])c=Wb[c];else{c=String(c);if(!Wb[c]){var f=/function\s+([^\(]+)/m.exec(c);Wb[c]=f?f[1]:"[Anonymous]"}c=Wb[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";"function"===typeof a.toString&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}a.stack=
b;return{message:a.message,name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:a.stack}};
Eaa=function(a,b){b||(b={});b[Gaa(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[Gaa(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=Eaa(a,b));return c};
Gaa=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
Xb=function(a,b){return 0==a.lastIndexOf(b,0)};
Haa=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
Yb=function(a,b){var c=String(b).toLowerCase();a=String(a.slice(0,b.length)).toLowerCase();return 0==(c<a?-1:c==a?0:1)};
g.$b=function(a){return/^[\s\xa0]*$/.test(a)};
bc=function(a){if(!Iaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Jaa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Kaa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Laa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Maa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Naa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Oaa,"&#0;"));return a};
g.cc=function(a,b){return-1!=a.indexOf(b)};
dc=function(a,b){return g.cc(a.toLowerCase(),b.toLowerCase())};
g.gc=function(a,b){var c=0;a=ec(String(a)).split(".");b=ec(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==f[0].length&&0==h[0].length)break;c=fc(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||fc(0==f[2].length,0==h[2].length)||fc(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c};
fc=function(a,b){return a<b?-1:a>b?1:0};
g.hc=function(){var a=g.Ja.navigator;return a&&(a=a.userAgent)?a:""};
mc=function(a){return ic||jc?lc?lc.brands.some(function(b){return(b=b.brand)&&g.cc(b,a)}):!1:!1};
nc=function(a){return g.cc(g.hc(),a)};
oc=function(){return ic||jc?!!lc&&0<lc.brands.length:!1};
rc=function(){return oc()?!1:nc("Opera")};
tc=function(){return oc()?!1:nc("Trident")||nc("MSIE")};
uc=function(){return oc()?!1:nc("Edge")};
Paa=function(){return oc()?mc("Microsoft Edge"):nc("Edg/")};
vc=function(){return nc("Firefox")||nc("FxiOS")};
zc=function(){return nc("Safari")&&!(wc()||(oc()?0:nc("Coast"))||rc()||uc()||Paa()||(oc()?mc("Opera"):nc("OPR"))||vc()||nc("Silk")||nc("Android"))};
wc=function(){return oc()?mc("Chromium"):(nc("Chrome")||nc("CriOS"))&&!uc()||nc("Silk")};
Qaa=function(){return nc("Android")&&!(wc()||vc()||rc()||nc("Silk"))};
Raa=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})]||""}};
Saa=function(a){var b=g.hc();if("Internet Explorer"===a){if(tc())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),"7.0"==c[1])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=Raa(c);switch(a){case "Opera":if(rc())return b(["Version","Opera"]);if(oc()?mc("Opera"):nc("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(uc())return b(["Edge"]);if(Paa())return b(["Edg"]);break;case "Chromium":if(wc())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&vc()||"Safari"===a&&zc()||"Android Browser"===a&&Qaa()||"Silk"===a&&nc("Silk")?(b=c[2])&&b[1]||"":""};
Ac=function(a){if(oc()&&"Silk"!==a){var b=lc.brands.find(function(c){return c.brand===a});
if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=Saa(a);if(""===b)return NaN;b=b.split(".")}return 0===b.length?NaN:Number(b[0])};
Bc=function(){return ic||jc?!!lc&&!!lc.platform:!1};
Taa=function(){return Bc()?"Android"===lc.platform:nc("Android")};
Cc=function(){return nc("iPhone")&&!nc("iPod")&&!nc("iPad")};
Fc=function(){return Cc()||nc("iPad")||nc("iPod")};
Gc=function(){return Bc()?"macOS"===lc.platform:nc("Macintosh")};
Uaa=function(){return Bc()?"Windows"===lc.platform:nc("Windows")};
Vaa=function(){var a=g.hc(),b="";if(Uaa())b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0";else if(Fc())b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".");else if(Gc())b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10";else if(dc(g.hc(),"KaiOS"))b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1];else if(Taa())b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1];else if(Bc()?"Chrome OS"===lc.platform:nc("CrOS"))b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
b=(a=b.exec(a))&&a[1];return b||""};
Hc=function(a){Hc[" "](a);return a};
Ic=function(a,b){try{return Hc(a[b]),!0}catch(c){}return!1};
Xaa=function(a,b){var c=Waa;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
Yaa=function(){var a=g.Ja.document;return a?a.documentMode:void 0};
g.Lc=function(a){return Xaa(a,function(){return 0<=g.gc(Jc,a)})};
g.Mc=function(a){return Number(Zaa)>=a};
$aa=function(a){return g.Nc?"webkit"+a:a.toLowerCase()};
Rc=function(a,b){g.pb.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.j=null;a&&this.init(a,b)};
Sc=function(a){return!(!a||!a[aba])};
cba=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.wd=e;this.key=++bba;this.removed=this.ZE=!1};
Tc=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.wd=null};
g.Vc=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Wc=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Xc=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Yc=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
dba=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
g.Zc=function(a){for(var b in a)return b};
eba=function(a){for(var b in a)return a[b]};
$c=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.ad=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.bd=function(a,b){return null!==a&&b in a};
g.cd=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
ed=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};
fba=function(a,b){return(b=ed(a,b))&&a[b]};
g.fd=function(a){for(var b in a)return!1;return!0};
g.gba=function(a){for(var b in a)delete a[b]};
g.gd=function(a,b){b in a&&delete a[b]};
g.hd=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.id=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.jd=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.kd=function(a){if(!a||"object"!==typeof a)return a;if("function"===typeof a.clone)return a.clone();if("undefined"!==typeof Map&&a instanceof Map)return new Map(a);if("undefined"!==typeof Set&&a instanceof Set)return new Set(a);if(a instanceof Date)return new Date(a.getTime());var b=Array.isArray(a)?[]:"function"!==typeof ArrayBuffer||"function"!==typeof ArrayBuffer.isView||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=g.kd(a[c]);return b};
g.ld=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<hba.length;f++)c=hba[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
iba=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
md=function(a){this.src=a;this.listeners={};this.j=0};
g.nd=function(a,b){var c=b.type;c in a.listeners&&g.Ab(a.listeners[c],b)&&(Tc(b),0==a.listeners[c].length&&(delete a.listeners[c],a.j--))};
od=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.removed&&f.listener==b&&f.capture==!!c&&f.wd==d)return e}return-1};
g.sd=function(a,b,c,d,e){if(d&&d.once)return rd(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)g.sd(a,b[f],c,d,e);return null}c=td(c);return Sc(a)?a.Ra(b,c,g.Pa(d)?!!d.capture:!!d,e):jba(a,b,c,!1,d,e)};
jba=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Pa(e)?!!e.capture:!!e,l=ud(a);l||(a[yd]=l=new md(a));c=l.add(b,c,d,h,f);if(c.proxy)return c;d=kba();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)lba||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(mba(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");nba++;return c};
kba=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=oba;return a};
rd=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)rd(a,b[f],c,d,e);return null}c=td(c);return Sc(a)?a.AG(b,c,g.Pa(d)?!!d.capture:!!d,e):jba(a,b,c,!0,d,e)};
pba=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)pba(a,b[f],c,d,e);else d=g.Pa(d)?!!d.capture:!!d,c=td(c),Sc(a)?a.Fc(b,c,d,e):a&&(a=ud(a))&&(b=a.PB(b,c,d,e))&&zd(b)};
zd=function(a){if("number"!==typeof a&&a&&!a.removed){var b=a.src;if(Sc(b))g.nd(b.Fl,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(mba(c),d):b.addListener&&b.removeListener&&b.removeListener(d);nba--;(c=ud(b))?(g.nd(c,a),0==c.j&&(c.src=null,b[yd]=null)):Tc(a)}}};
mba=function(a){return a in Ad?Ad[a]:Ad[a]="on"+a};
oba=function(a,b){if(a.removed)a=!0;else{b=new Rc(b,this);var c=a.listener,d=a.wd||a.src;a.ZE&&zd(a);a=c.call(d,b)}return a};
ud=function(a){a=a[yd];return a instanceof md?a:null};
td=function(a){if("function"===typeof a)return a;a[Bd]||(a[Bd]=function(b){return a.handleEvent(b)});
return a[Bd]};
g.Cd=function(){g.E.call(this);this.Fl=new md(this);this.G1=this;this.nO=null};
Dd=function(a,b,c,d){b=a.Fl.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.removed&&h.capture==c){var l=h.listener,m=h.wd||h.src;h.ZE&&g.nd(a.Fl,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
Ed=function(a,b){this.B=a;this.C=b;this.u=0;this.j=null};
qba=function(a,b){a.C(b);100>a.u&&(a.u++,b.next=a.j,a.j=b)};
Gd=function(a){return function(){return a}};
g.Hd=function(){};
rba=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
Id=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
Jd=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
sba=function(a,b){var c=0;return function(d){g.Ja.clearTimeout(c);var e=arguments;c=g.Ja.setTimeout(function(){a.apply(b,e)},50)}};
Pd=function(){if(void 0===Od){var a=null,b=g.Ja.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:ab,createScript:ab,createScriptURL:ab})}catch(c){g.Ja.console&&g.Ja.console.error(c.message)}Od=a}else Od=a}return Od};
Qd=function(a,b){this.YX=a===tba&&b||"";this.n1=uba};
Rd=function(a){return a instanceof Qd&&a.constructor===Qd&&a.n1===uba?a.YX:"type_error:Const"};
g.Sd=function(a){return new Qd(tba,a)};
Td=function(a){this.yO=a;this.So=!0};
vba=function(a){return a instanceof Td&&a.constructor===Td?a.yO:"type_error:SafeScript"};
xba=function(a){var b=Pd();a=b?b.createScript(a):a;return new Td(a,wba)};
Vd=function(a){this.BO=a};
yba=function(a){return a instanceof Vd&&a.constructor===Vd?a.BO:"type_error:TrustedResourceUrl"};
Bba=function(a,b){var c=Rd(a);if(!zba.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(Aba,function(d,e){if(!Object.prototype.hasOwnProperty.call(b,e))throw Error('Found marker, "'+e+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));d=b[e];return d instanceof Qd?Rd(d):encodeURIComponent(String(d))});
return Wd(a)};
Wd=function(a){var b=Pd();a=b?b.createScriptURL(a):a;return new Vd(a,Cba)};
Xd=function(a){this.AO=a};
g.Yd=function(a){return a instanceof Xd&&a.constructor===Xd?a.AO:"type_error:SafeUrl"};
Dba=function(a){var b=a.indexOf("#");0<b&&(a=a.substring(0,b));b=a.match(/[?&]body=/gi);if(!b)return!0;if(1<b.length)return!1;a=a.match(/[?&]body=([^&]*)/)[1];if(!a)return!0;try{decodeURIComponent(a)}catch(c){return!1}return/^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(a)};
g.$d=function(a){a instanceof Xd||(a="object"==typeof a&&a.So?a.Jl():String(a),Eba.test(a)?a=Zd(a):(a=String(a).replace(/(%0A|%0D)/g,""),a=a.match(Fba)?Zd(a):null));return a||Gba};
Iba=function(a){if(a instanceof Xd)return a;a="object"==typeof a&&a.So?a.Jl():String(a);a:{var b=a;if(Hba){try{var c=new URL(b)}catch(d){b="https:";break a}b=c.protocol}else b:{c=document.createElement("a");try{c.href=b}catch(d){b=void 0;break b}b=c.protocol;b=":"===b||""===b?"https:":b}}"javascript:"!==b||(a="about:invalid#zClosurez");return Zd(a)};
Zd=function(a){return new Xd(a,Jba)};
ae=function(a){this.zO=a;this.So=!0};
be=function(a){return a instanceof ae&&a.constructor===ae?a.zO:"type_error:SafeStyle"};
Lba=function(a){var b="",c;for(c in a)if(Object.prototype.hasOwnProperty.call(a,c)){if(!/^[-_a-zA-Z0-9]+$/.test(c))throw Error("Name allows only [-_a-zA-Z0-9], got: "+c);var d=a[c];null!=d&&(d=Array.isArray(d)?d.map(Kba).join(" "):Kba(d),b+=c+":"+d+";")}return b?new ae(b,ce):de};
Kba=function(a){if(a instanceof Xd)return'url("'+g.Yd(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof Qd)a=Rd(a);else{a=String(a);var b=a.replace(Mba,"$1").replace(Mba,"$1").replace(Nba,"url");if(Oba.test(b)){if(b=!Pba.test(a)){for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}b=b&&c&&Qba(a)}a=b?Rba(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new ob("Value does not allow [{;}], got: %s.",[a]);return a};
Qba=function(a){for(var b=!0,c=/^[-_a-zA-Z0-9]$/,d=0;d<a.length;d++){var e=a.charAt(d);if("]"==e){if(b)return!1;b=!0}else if("["==e){if(!b)return!1;b=!1}else if(!b&&!c.test(e))return!1}return b};
Rba=function(a){return a.replace(Nba,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=g.$d(d).Jl();return c+f+b+f+e})};
ee=function(a){this.xO=a;this.So=!0};
g.fe=function(a){return a instanceof ee&&a.constructor===ee?a.xO:"type_error:SafeHtml"};
Sba=function(a){return a instanceof ee?a:g.me(bc("object"==typeof a&&a.So?a.Jl():String(a)))};
Uba=function(a){function b(e){Array.isArray(e)?e.forEach(b):(e=Sba(e),d.push(g.fe(e).toString()))}
var c=Sba(Tba),d=[];a.forEach(b);return g.me(d.join(g.fe(c).toString()))};
Vba=function(a){return Uba(Array.prototype.slice.call(arguments))};
g.me=function(a){var b=Pd();a=b?b.createHTML(a):a;return new ee(a,Wba)};
Xba=function(a,b){return new ae(b,ce)};
g.Zba=function(a,b){if(Yba())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.fe(b)};
g.ne=function(a,b){b=b instanceof Xd?b:Iba(b);a.href=g.Yd(b)};
$ba=function(a,b,c,d){a=a instanceof Xd?a:Iba(a);b=b||g.Ja;c=c instanceof Qd?Rd(c):c||"";return void 0!==d?b.open(g.Yd(a),c,d):b.open(g.Yd(a),c)};
oe=function(){a:{var a=g.Ja.document;if(a.querySelector&&(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&aca.test(a))break a;a=""}return a};
bca=function(a,b){return a+Math.random()*(b-a)};
g.pe=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.se=function(a,b){a%=b;return 0>a*b?a+b:a};
te=function(a,b,c){return a+c*(b-a)};
ue=function(a,b){return 1E-6>=Math.abs(a-b)};
g.ve=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
we=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.xe=function(a,b){this.width=a;this.height=b};
g.ye=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
De=function(a){return a.width*a.height};
g.Ee=function(a){return encodeURIComponent(String(a))};
Fe=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.Ge=function(a){return a=bc(a)};
g.He=function(a){return null==a?"":String(a)};
Ie=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
Je=function(a){var b=Number(a);return 0==b&&g.$b(a)?NaN:b};
cca=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
dca=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
eca=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
fca=function(a){var b=1;a=a.split(":");for(var c=[];0<b&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};
Me=function(a){return a?new Ke(Le(a)):gca||(gca=new Ke)};
Ne=function(a,b){return"string"===typeof b?a.getElementById(b):b};
g.Qe=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.Se=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.Re(document,"*",a,b)};
g.Te=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.Re(c,"*",a,b)[0]||null}return a||null};
g.Re=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,"function"==typeof b.split&&g.wb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
Ue=function(a,b){g.Vc(b,function(c,d){c&&"object"==typeof c&&c.So&&(c=c.Jl());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:hca.hasOwnProperty(d)?a.setAttribute(hca[d],c):Xb(d,"aria-")||Xb(d,"data-")?a.setAttribute(d,c):a[d]=c})};
ica=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.xe(a.clientWidth,a.clientHeight)};
kca=function(a){var b=jca(a);a=a.parentWindow||a.defaultView;return g.Ve&&a.pageYOffset!=b.scrollTop?new g.ve(b.scrollLeft,b.scrollTop):new g.ve(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
jca=function(a){return a.scrollingElement?a.scrollingElement:g.Nc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
We=function(a){return a?a.parentWindow||a.defaultView:window};
Ye=function(a,b,c){var d=arguments,e=document,f=d[1],h=Xe(e,String(d[0]));f&&("string"===typeof f?h.className=f:Array.isArray(f)?h.className=f.join(" "):Ue(h,f));2<d.length&&lca(e,h,d,2);return h};
lca=function(a,b,c,d){function e(l){l&&b.appendChild("string"===typeof l?a.createTextNode(l):l)}
for(;d<c.length;d++){var f=c[d];if(!g.Oa(f)||g.Pa(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Pa(f)){var h="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){h="function"==typeof f.item;break a}}h=!1}g.Ub(h?g.Db(f):f,e)}}};
g.Ze=function(a){return Xe(document,a)};
Xe=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.ef=function(a){return document.createTextNode(String(a))};
g.ff=function(a,b){a.appendChild(b)};
g.gf=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.hf=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.jf=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
g.kf=function(a){var b;if(mca&&(b=a.parentElement))return b;b=a.parentNode;return g.Pa(b)&&1==b.nodeType?b:null};
g.lf=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
Le=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.mf=function(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=String(b);else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else g.gf(a),a.appendChild(Le(a).createTextNode(String(b)))};
rf=function(a){var b;if((b="A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!a.hasAttribute("tabindex")||nca(a)):a.hasAttribute("tabindex")&&nca(a))&&g.Ve){var c;"function"!==typeof a.getBoundingClientRect||g.Ve&&null==a.parentElement?c={height:a.offsetHeight,width:a.offsetWidth}:c=a.getBoundingClientRect();a=null!=c&&0<c.height&&0<c.width}else a=b;return a};
nca=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
tf=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return sf(a,function(e){return(!d||e.nodeName==d)&&(!c||"string"===typeof e.className&&g.wb(e.className.split(/\s+/),c))},!0)};
sf=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};
Ke=function(a){this.j=a||g.Ja.document||document};
vf=function(a){"function"!==typeof g.Ja.setImmediate||g.Ja.Window&&g.Ja.Window.prototype&&!uc()&&g.Ja.Window.prototype.setImmediate==g.Ja.setImmediate?(uf||(uf=oca()),uf(a)):g.Ja.setImmediate(a)};
oca=function(){var a=g.Ja.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!nc("Presto")&&(a=function(){var e=g.Ze("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.Ta)(function(m){if(("*"==l||m.origin==l)&&m.data==h)this.port1.onmessage()},
this);
f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,l)}}});
if("undefined"!==typeof a&&!tc()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.MS;c.MS=null;e()}};
return function(e){d.next={MS:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.Ja.setTimeout(e,0)}};
pca=function(a){g.Ja.setTimeout(function(){throw a;},0)};
wf=function(){this.u=this.j=null};
xf=function(){this.next=this.scope=this.fn=null};
g.Af=function(a,b){yf||qca();zf||(yf(),zf=!0);rca.add(a,b)};
qca=function(){if(g.Ja.Promise&&g.Ja.Promise.resolve){var a=g.Ja.Promise.resolve(void 0);yf=function(){a.then(sca)}}else yf=function(){vf(sca)}};
sca=function(){for(var a;a=rca.remove();){try{a.fn.call(a.scope)}catch(b){pca(b)}qba(tca,a)}zf=!1};
g.Cf=function(a){this.j=0;this.J=void 0;this.C=this.u=this.B=null;this.D=this.I=!1;if(a!=g.Hd)try{var b=this;a.call(void 0,function(c){Bf(b,2,c)},function(c){Bf(b,3,c)})}catch(c){Bf(this,3,c)}};
uca=function(){this.next=this.context=this.u=this.B=this.j=null;this.C=!1};
Df=function(a,b,c){var d=vca.get();d.B=a;d.u=b;d.context=c;return d};
Ef=function(a){if(a instanceof g.Cf)return a;var b=new g.Cf(g.Hd);Bf(b,2,a);return b};
Hf=function(a){return new g.Cf(function(b,c){c(a)})};
g.xca=function(a,b,c){wca(a,b,c,null)||g.Af(g.Ua(b,a))};
yca=function(a){return new g.Cf(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.xca(e,b,c)})};
Jf=function(a,b){b=Df(b,b);b.C=!0;If(a,b);return a};
zca=function(a,b){if(0==a.j)if(a.B){var c=a.B;if(c.u){for(var d=0,e=null,f=null,h=c.u;h&&(h.C||(d++,h.j==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.j&&1==d?zca(c,b):(f?(d=f,d.next==c.C&&(c.C=d),d.next=d.next.next):Aca(c),Bca(c,e,3,b)))}a.B=null}else Bf(a,3,b)};
If=function(a,b){a.u||2!=a.j&&3!=a.j||Cca(a);a.C?a.C.next=b:a.u=b;a.C=b};
Dca=function(a,b,c,d){var e=Df(null,null,null);e.j=new g.Cf(function(f,h){e.B=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f;
e.u=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof Kf?h(l):f(m)}catch(n){h(n)}}:h});
e.j.B=a;If(a,e);return e.j};
Bf=function(a,b,c){0==a.j&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,wca(c,a.H9,a.I9,a)||(a.J=c,a.j=b,a.B=null,Cca(a),3!=b||c instanceof Kf||Eca(a,c)))};
wca=function(a,b,c,d){if(a instanceof g.Cf)return If(a,Df(b||g.Hd,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.Pa(a))try{var f=a.then;if("function"===typeof f)return Fca(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1};
Fca=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)}};
Cca=function(a){a.I||(a.I=!0,g.Af(a.Y2,a))};
Aca=function(a){var b=null;a.u&&(b=a.u,a.u=b.next,b.next=null);a.u||(a.C=null);return b};
Bca=function(a,b,c,d){if(3==c&&b.u&&!b.C)for(;a&&a.D;a=a.B)a.D=!1;if(b.j)b.j.B=null,Gca(b,c,d);else try{b.C?b.B.call(b.context):Gca(b,c,d)}catch(e){Hca.call(null,e)}qba(vca,b)};
Gca=function(a,b,c){2==b?a.B.call(a.context,c):a.u&&a.u.call(a.context,c)};
Eca=function(a,b){a.D=!0;g.Af(function(){a.D&&Hca.call(null,b)})};
Kf=function(a){nb.call(this,a)};
g.Lf=function(a,b){g.Cd.call(this);this.Ei=a||1;this.eE=b||g.Ja;this.HS=(0,g.Ta)(this.v9,this);this.iV=g.Va()};
g.Mf=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.Ta)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.Ta)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.Ja.setTimeout(a,b||0)};
Nf=function(a,b){var c=null;return(new g.Cf(function(d,e){c=g.Mf(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))})).Zj(function(d){g.Ja.clearTimeout(c);
throw d;})};
g.Of=function(a){g.E.call(this);this.J=a;this.u=new Map;this.I=new Set;this.B=0;this.C=100;this.flushInterval=3E4;this.j=new g.Lf(this.flushInterval);this.j.Ra("tick",this.bx,!1,this);g.I(this,this.j);this.D=!1};
Ica=function(a){a.j.enabled||a.j.start();a.B++;a.B>=a.C&&a.bx()};
Jca=function(a,b){return a.I.has(b)?void 0:a.u.get(b)};
Kca=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
Lca=function(a){this.j=a;this.j.Hx("/client_streamz/po/w/rl",{Xe:3,We:"mn"},{Xe:2,We:"ac"},{Xe:2,We:"sc"},{Xe:3,We:"rk"})};
Mca=function(a){this.j=a;this.j.Hx("/client_streamz/po/w/el",{Xe:3,We:"en"},{Xe:3,We:"rk"})};
Nca=function(a){this.j=a;this.j.lk("/client_streamz/po/w/cec",{Xe:2,We:"ec"},{Xe:3,We:"rk"})};
Oca=function(a){this.j=a;this.j.lk("/client_streamz/po/w/csc",{Xe:2,We:"cs"},{Xe:3,We:"rk"})};
Pca=function(a){this.j=a;this.j.Hx("/client_streamz/po/w/cl",{Xe:3,We:"op"},{Xe:3,We:"rk"})};
Qca=function(a){this.j=a;this.j.Hx("/client_streamz/po/w/clt",{Xe:3,We:"rk"})};
Rca=function(a){this.j=a;this.j.lk("/client_streamz/po/w/ca",{Xe:3,We:"av"},{Xe:3,We:"rk"})};
Sca=function(a){this.j=a;this.j.lk("/client_streamz/po/w/cta",{Xe:3,We:"av"},{Xe:3,We:"rk"})};
Tca=function(a){this.j=a;this.j.lk("/client_streamz/po/w/cen",{Xe:3,We:"rk"})};
Uca=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
Pf=function(){return Error("Failed to read varint, encoding is invalid.")};
Vca=function(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};
Xf=function(){throw Error("Invalid UTF8");};
Wca=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
Zca=function(a){var b=!1;b=void 0===b?!1:b;if(Xca){if(b&&/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a))throw Error("Found an unpaired surrogate");a=(Yca||(Yca=new TextEncoder)).encode(a)}else{for(var c=0,d=new Uint8Array(3*a.length),e=0;e<a.length;e++){var f=a.charCodeAt(e);if(128>f)d[c++]=f;else{if(2048>f)d[c++]=f>>6|192;else{if(55296<=f&&57343>=f){if(56319>=f&&e<a.length){var h=a.charCodeAt(++e);if(56320<=h&&57343>=h){f=1024*(f-55296)+h-56320+65536;d[c++]=f>>
18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Found an unpaired surrogate");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=c===d.length?d:d.subarray(0,c)}return a};
$ca=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
ada=function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};
g.Yf=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1<a.length&&56320==(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>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.Zf=function(a,b){void 0===b&&(b=0);bda();b=cda[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],l=a[e+1],m=a[e+2],n=b[h>>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.$f=function(a,b){if(dda&&!b)a=g.Ja.btoa(a);else{for(var c=[],d=0,e=0;e<a.length;e++){var f=a.charCodeAt(e);255<f&&(c[d++]=f&255,f>>=8);c[d++]=f}a=g.Zf(c,b)}return a};
fda=function(a){var b=[];eda(a,function(c){b.push(c)});
return b};
ag=function(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.cc("=.",a[b-1])&&(c=g.cc("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;eda(a,function(f){d[e++]=f});
return e!==c?d.subarray(0,e):d};
eda=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=bg[n];if(null!=p)return p;if(!g.$b(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
bda();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}};
bda=function(){if(!bg){bg={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));cda[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===bg[f]&&(bg[f]=e)}}}};
hda=function(a){if(!gda)return g.Zf(a);for(var b="",c=0,d=a.length-10240;c<d;)b+=String.fromCharCode.apply(null,a.subarray(c,c+=10240));b+=String.fromCharCode.apply(null,c?a.subarray(c):a);return btoa(b)};
jda=function(a){return ida[a]||""};
lda=function(a){if(!gda)return ag(a);kda.test(a)&&(a=a.replace(kda,jda));a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
cg=function(a){return mda&&null!=a&&a instanceof Uint8Array};
dg=function(){return nda||(nda=new Uint8Array(0))};
oda=function(a){if(a!==eg)throw Error("illegal external caller");};
fg=function(a,b){oda(b);this.j=a;if(null!=a&&0===a.length)throw Error("ByteString should be constructed with non-empty values");};
gg=function(){return pda||(pda=new fg(null,eg))};
mg=function(a){return(a=hg(a))?new Uint8Array(a):dg()};
hg=function(a){oda(eg);var b=a.j;b=null==b||cg(b)?b:"string"===typeof b?lda(b):null;return null==b?b:a.j=b};
qda=function(a){return 0==a.length?gg():new fg(a,eg)};
ng=function(a){if("string"===typeof a)return{buffer:lda(a),oq:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),oq:!1};if(a.constructor===Uint8Array)return{buffer:a,oq:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),oq:!1};if(a.constructor===fg)return{buffer:hg(a)||dg(),oq:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),oq:!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");
};
sda=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=g.v(rda(c,a)),b=c.next().value,a=c.next().value,c=b);og=c>>>0;pg=a>>>0};
uda=function(a){if(16>a.length)sda(Number(a));else if(tda)a=BigInt(a),og=Number(a&BigInt(4294967295))>>>0,pg=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+("-"===a[0]);pg=og=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)),pg*=1E6,og=1E6*og+d,4294967296<=og&&(pg+=og/4294967296|0,og%=4294967296);b&&(b=g.v(rda(og,pg)),a=b.next().value,b=b.next().value,og=a,pg=b)}};
rda=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};
qg=function(a,b){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.init(a,void 0,void 0,b)};
sg=function(a){var b=0,c=0,d=0,e=a.u,f=a.j;do{var h=e[f++];b|=(h&127)<<d;d+=7}while(32>d&&h&128);32<d&&(c|=(h&127)>>4);for(d=3;32>d&&h&128;d+=7)h=e[f++],c|=(h&127)<<d;rg(a,f);if(128>h){a=b>>>0;h=c>>>0;if(c=h&2147483648)a=~a+1>>>0,h=~h>>>0,0==a&&(h=h+1>>>0);a=4294967296*h+(a>>>0);return c?-a:a}throw Pf();};
rg=function(a,b){a.j=b;if(b>a.B)throw Vca(a.B,b);};
tg=function(a){var b=a.u,c=a.j,d=b[c++],e=d&127;if(d&128&&(d=b[c++],e|=(d&127)<<7,d&128&&(d=b[c++],e|=(d&127)<<14,d&128&&(d=b[c++],e|=(d&127)<<21,d&128&&(d=b[c++],e|=d<<28,d&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128)))))throw Pf();rg(a,c);return e};
ug=function(a){var b=a.u,c=a.j,d=b[c+0],e=b[c+1],f=b[c+2];b=b[c+3];a.advance(4);return(d<<0|e<<8|f<<16|b<<24)>>>0};
vg=function(a){var b=ug(a),c=ug(a);a=2*(c>>31)+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return 2047==d?b?NaN:Infinity*a:0==d?a*Math.pow(2,-1074)*b:a*Math.pow(2,d-1075)*(b+4503599627370496)};
wg=function(a){for(var b=0,c=a.j,d=c+10,e=a.u;c<d;){var f=e[c++];b|=f;if(0===(f&128))return rg(a,c),!!(b&127)}throw Pf();};
vda=function(a,b){if(0>b)throw Error("Tried to read a negative byte length: "+b);var c=a.j,d=c+b;if(d>a.B)throw Vca(b,a.B-c);a.j=d;return c};
xda=function(a,b){if(0==b)return gg();var c=vda(a,b);a.UE&&a.D?c=a.u.subarray(c,c+b):(a=a.u,b=c+b,c=c===b?dg():wda?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return qda(c)};
yg=function(a,b){if(xg.length){var c=xg.pop();c.init(a,void 0,void 0,b);a=c}else a=new qg(a,b);this.j=a;this.B=this.j.j;this.u=this.C=-1;yda(this,b)};
yda=function(a,b){b=void 0===b?{}:b;a.hL=void 0===b.hL?!1:b.hL};
zda=function(a){var b=a.j;if(b.j==b.B)return!1;a.B=a.j.j;var c=tg(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw Uca(c,a.B);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.B+")");a.C=b;a.u=c;return!0};
zg=function(a){switch(a.u){case 0:0!=a.u?zg(a):wg(a.j);break;case 1:a.j.advance(8);break;case 2:if(2!=a.u)zg(a);else{var b=tg(a.j)>>>0;a.j.advance(b)}break;case 5:a.j.advance(4);break;case 3:b=a.C;do{if(!zda(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.u){if(a.C!=b)throw Error("Unmatched end-group tag");break}zg(a)}while(1);break;default:throw Uca(a.u,a.B);}};
Ag=function(a,b,c){var d=a.j.B,e=tg(a.j)>>>0,f=a.j.j+e,h=f-d;0>=h&&(a.j.B=f,c(b,a,void 0,void 0,void 0),h=f-a.j.j);if(h)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-h)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.j.j=f;a.j.B=d};
Dg=function(a){var b=tg(a.j)>>>0;a=a.j;var c=vda(a,b);a=a.u;if(Ada){var d=a,e;(e=Bg)||(e=Bg=new TextDecoder("utf-8",{fatal:!0}));a=c+b;d=0===c&&a===d.length?d:d.subarray(c,a);try{var f=e.decode(d)}catch(n){if(void 0===Cg){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),Cg=!0}catch(p){Cg=!1}}!Cg&&(Bg=void 0);throw n;}}else{f=c;b=f+b;c=[];for(var h=null,l,m;f<b;)l=a[f++],128>l?c.push(l):224>l?f>=b?Xf():(m=a[f++],194>l||128!==(m&192)?(f--,Xf()):c.push((l&31)<<6|m&63)):
240>l?f>=b-1?Xf():(m=a[f++],128!==(m&192)||224===l&&160>m||237===l&&160<=m||128!==((d=a[f++])&192)?(f--,Xf()):c.push((l&15)<<12|(m&63)<<6|d&63)):244>=l?f>=b-2?Xf():(m=a[f++],128!==(m&192)||0!==(l<<28)+(m-144)>>30||128!==((d=a[f++])&192)||128!==((e=a[f++])&192)?(f--,Xf()):(l=(l&7)<<18|(m&63)<<12|(d&63)<<6|e&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):Xf(),8192<=c.length&&(h=Wca(h,c),c.length=0);f=Wca(h,c)}return f};
Bda=function(a){var b=tg(a.j)>>>0;return xda(a.j,b)};
Cda=function(a,b){this.u=a>>>0;this.j=b>>>0};
Eda=function(a){if(!a)return Dda||(Dda=new Cda(0,0));if(!/^\d+$/.test(a))return null;uda(a);return new Cda(og,pg)};
Fda=function(a,b){this.u=a>>>0;this.j=b>>>0};
Hda=function(a){if(!a)return Gda||(Gda=new Fda(0,0));if(!/^-?\d+$/.test(a))return null;uda(a);return new Fda(og,pg)};
Eg=function(){this.j=[]};
Ida=function(a,b,c){for(;0<c||127<b;)a.j.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.j.push(b)};
Fg=function(a,b){for(;127<b;)a.j.push(b&127|128),b>>>=7;a.j.push(b)};
Jda=function(a,b){if(0<=b)Fg(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}};
Gg=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)};
Kda=function(){this.B=[];this.u=0;this.j=new Eg};
Hg=function(a,b){0!==b.length&&(a.B.push(b),a.u+=b.length)};
Lda=function(a,b){Ig(a,b,2);b=a.j.end();Hg(a,b);b.push(a.u);return b};
Mda=function(a,b){var c=b.pop();for(c=a.u+a.j.length()-c;127<c;)b.push(c&127|128),c>>>=7,a.u++;b.push(c);a.u++};
Nda=function(a,b){if(b=b.mC){Hg(a,a.j.end());for(var c=0;c<b.length;c++)Hg(a,hg(b[c])||dg())}};
Ig=function(a,b,c){Fg(a.j,8*b+c)};
Oda=function(a,b,c){null!=c&&("string"===typeof c&&Eda(c),Ig(a,b,1),"number"===typeof c?(a=a.j,b=c>>>0,c=Math.floor((c-b)/4294967296)>>>0,og=b,pg=c,Gg(a,og),Gg(a,pg)):(c=Eda(c),a=a.j,b=c.j,Gg(a,c.u),Gg(a,b)))};
Jg=function(a,b,c){Ig(a,b,2);Fg(a.j,c.length);Hg(a,a.j.end());Hg(a,c)};
Sg=function(a,b){if(Rg)return a[Rg]|=b;if(void 0!==a.Uo)return a.Uo|=b;Object.defineProperties(a,{Uo:{value:b,configurable:!0,writable:!0,enumerable:!1}});return b};
Pda=function(a,b){Rg?a[Rg]&&(a[Rg]&=~b):void 0!==a.Uo&&(a.Uo&=~b)};
Tg=function(a){var b;Rg?b=a[Rg]:b=a.Uo;return null==b?0:b};
Ug=function(a,b){Rg?a[Rg]=b:void 0!==a.Uo?a.Uo=b:Object.defineProperties(a,{Uo:{value:b,configurable:!0,writable:!0,enumerable:!1}});return a};
Qda=function(a,b){Object.isFrozen(a)&&(a=Array.prototype.slice.call(a));Ug(a,b);return a};
Vg=function(a){Sg(a,1);return a};
Wg=function(a){return!!(Tg(a)&2)};
Rda=function(a){Sg(a,16);return a};
Sda=function(a,b){Ug(b,(a|0)&-51)};
Xg=function(a,b){Ug(b,(a|18)&-41)};
Tda=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object};
Yg=function(a,b,c,d){if(null==a){if(!c)throw Error();}else if("string"===typeof a)a=a?new fg(a,eg):gg();else if(a.constructor!==fg)if(cg(a))a=d?qda(a):a.length?new fg(new Uint8Array(a),eg):gg();else{if(!b)throw Error();a=void 0}return a};
$g=function(a){Zg(Tg(a.Re))};
Zg=function(a){if(a&2)throw Error();};
ah=function(a){if(null!=a&&"number"!==typeof a)throw Error("Value of float/double field must be a number|null|undefined, found "+typeof a+": "+a);return a};
Uda=function(a){return a.displayName||a.name||"unknown type name"};
Vda=function(a){return null==a?a:!!a};
Wda=function(a){return a};
Xda=function(a){return a};
Yda=function(a){return a};
Zda=function(a){return a};
bh=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+Uda(b)+" but got "+(a&&Uda(a.constructor)));return a};
dh=function(a,b,c,d){var e=!1;if(null!=a&&"object"===typeof a&&!(e=Array.isArray(a))&&a.lN===ch)return a;if(!e)return c?d&2?(a=b[$da])?b=a:(a=new b,Sg(a.Re,18),b=b[$da]=a):b=new b:b=void 0,b;e=c=Tg(a);0===e&&(e|=d&16);e|=d&2;e!==c&&Ug(a,e);return new b(a)};
aea=function(a){var b=a.u+a.pu;0<=b&&Number.isInteger(b);return a.kq||(a.kq=a.Re[b]={})};
eh=function(a,b,c){return-1===b?null:b>=a.u?a.kq?a.kq[b]:void 0:c&&a.kq&&(c=a.kq[b],null!=c)?c:a.Re[b+a.pu]};
L=function(a,b,c,d){$g(a);return fh(a,b,c,d)};
fh=function(a,b,c,d){a.C&&(a.C=void 0);if(b>=a.u||d)return aea(a)[b]=c,a;a.Re[b+a.pu]=c;(c=a.kq)&&b in c&&delete c[b];return a};
gh=function(a,b,c){return void 0!==bea(a,b,c,!1)};
ih=function(a,b,c,d,e){var f=eh(a,b,d);Array.isArray(f)||(f=hh);var h=Tg(f);h&1||Vg(f);if(e)h&2||Sg(f,18),c&1||Object.freeze(f);else{e=!(c&2);var l=h&2;c&1||!l?e&&h&16&&!l&&Pda(f,16):(f=Vg(Array.prototype.slice.call(f)),fh(a,b,f,d))}return f};
cea=function(a,b){var c=eh(a,b);var d=null==c?c:"number"===typeof c||"NaN"===c||"Infinity"===c||"-Infinity"===c?Number(c):void 0;null!=d&&d!==c&&fh(a,b,d);return d};
dea=function(a,b){var c=eh(a,b),d=Yg(c,!0,!0,!!(Tg(a.Re)&18));null!=d&&d!==c&&fh(a,b,d);return d};
jh=function(a,b,c,d,e){var f=Wg(a.Re),h=ih(a,b,e||1,d,f),l=Tg(h);if(!(l&4)){Object.isFrozen(h)&&(h=Vg(h.slice()),fh(a,b,h,d));for(var m=0,n=0;m<h.length;m++){var p=c(h[m]);null!=p&&(h[n++]=p)}n<m&&(h.length=n);l|=5;f&&(l|=18);Ug(h,l);l&2&&Object.freeze(h)}if(2===e)return h;!f&&(l&2||Object.isFrozen(h))&&(h=Array.prototype.slice.call(h),Sg(h,5),fh(a,b,h,d));return h};
eea=function(a){return Yg(a,!0,!0,!0)};
fea=function(a){return Yg(a,!0,!0,!1)};
kh=function(a,b){a=dea(a,b);return null==a?gg():a};
gea=function(a,b,c){if(null==b)return L(a,3,hh);var d=Tg(b);if(!(d&4)){if(d&2||Object.isFrozen(b))b=Array.prototype.slice.call(b);for(var e=0;e<b.length;e++)b[e]=c(b[e]);Ug(b,d|5)}return L(a,3,b)};
lh=function(a,b,c,d){$g(a);c!==d?fh(a,b,c):fh(a,b,void 0,!1);return a};
wh=function(a,b,c,d){$g(a);b=ih(a,b,2,!1,!1);void 0!=d?b.splice(d,0,c):b.push(c);return a};
hea=function(a,b,c,d,e){$g(a);b=e(a,b,!1,2);if(0>c||c>b.length)throw Error();b[c]=d;return a};
yh=function(a,b,c,d){$g(a);(c=xh(a,c))&&c!==b&&null!=d&&fh(a,c,void 0,!1);return fh(a,b,d)};
xh=function(a,b){for(var c=0,d=0;d<b.length;d++){var e=b[d];null!=eh(a,e)&&(0!==c&&fh(a,c,void 0,!1),c=e)}return c};
iea=function(a,b,c){var d=Tg(a.Re);Zg(d);var e=eh(a,c);b=zh(dh(e,b,!0,d));e!==b&&fh(a,c,b);return b};
bea=function(a,b,c,d){var e=eh(a,c,d);b=dh(e,b,!1,Tg(a.Re));b!==e&&null!=b&&fh(a,c,b,d);return b};
Ah=function(a,b,c,d){d=void 0===d?!1:d;b=bea(a,b,c,d);if(null==b)return b;if(!Wg(a.Re)){var e=zh(b);e!==b&&(b=e,fh(a,c,b,d))}return b};
jea=function(a,b,c,d,e){var f=!!(e&2),h=ih(a,c,1,void 0,f);if(h===hh||!(Tg(h)&4)){var l=h;h=!!(e&2);var m=!!(Tg(l)&2);f=l;!h&&m&&(l=Array.prototype.slice.call(l));var n=e|(m?2:0);e=m;for(var p=m=0;m<l.length;m++){var q=dh(l[m],b,!1,n);void 0!==q&&(e=e||!!(2&Tg(q.Re)),l[p++]=q)}p<m&&(l.length=p);b=l;l=Tg(b);n=l|5;e=e?n&-9:n|8;l!=e&&(b=Qda(b,e));l=b;f!==l&&fh(a,c,l);(h||1===d)&&Object.freeze(l);return l}if(3===d)return h;f||(f=Object.isFrozen(h),1===d?f||Object.freeze(h):(d=Tg(h),b=d&-19,f&&(h=Array.prototype.slice.call(h),
d=0,fh(a,c,h)),d!==b&&Ug(h,b)));return h};
Bh=function(a,b,c){var d=Tg(a.Re),e=!!(d&2);a=jea(a,b,c,e?1:2,d);if(!(e||Tg(a)&8)){for(e=0;e<a.length;e++)b=a[e],c=zh(b),b!==c&&(a[e]=c);Sg(a,8)}return a};
Ch=function(a,b,c,d){$g(a);null!=d?bh(d,b):d=void 0;return fh(a,c,d)};
Dh=function(a,b,c,d,e){$g(a);null!=e?bh(e,b):e=void 0;return yh(a,c,d,e)};
Eh=function(a,b,c){return L(a,b,ah(c))};
Fh=function(a,b,c,d){$g(a);if(null!=d){for(var e=!!d.length,f=0;f<d.length;f++){var h=d[f];bh(h,b);e=e&&!Wg(h.Re)}b=Tg(d);f=b|1;f=(e?f|8:f&-9)|4;f!=b&&(d=Qda(d,f))}null==d&&(d=hh);return fh(a,c,d)};
Gh=function(a,b,c){L(a,b,Yg(c,!1,!0,!1))};
kea=function(a,b,c,d,e){var f=Tg(a.Re);Zg(f);a=jea(a,c,b,2,f);c=null!=d?bh(d,c):new c;void 0!=e?a.splice(e,void 0,c):a.push(c);c.oq()&&Pda(a,8);return c};
Hh=function(a,b,c,d,e){kea(a,b,c,d,e);return a};
Jh=function(a,b,c){return Ih(eh(a,b),void 0===c?0:c)};
Kh=function(a,b){a:if(a=eh(a,b),null!=a){switch(typeof a){case "string":a=+a;break a;case "number":break a}a=void 0}return a};
Lh=function(a,b,c,d){return jh(a,b,Zda,c,d)};
lea=function(a,b,c,d){return 2===d?ih(a,b,2,!1,Wg(a.Re)):ih(a,b,0,void 0===c?!1:c,Wg(a.Re))};
mea=function(){var a=new Mh;return L(a,1,1)};
Ih=function(a,b){return null==a?b:a};
g.Nh=function(a,b){return Ih(eh(a,b),"")};
nea=function(a,b){var c=void 0===c?0:c;return Ih(cea(a,b),c)};
Oh=function(a,b){return Ih(eh(a,b),0)};
oea=function(a,b,c){a=lea(a,b,void 0,2);if(0>c||c>=a.length)throw Error();return a[c]};
pea=function(a,b){Ph=b;a=new a(b);Ph=void 0;return a};
rea=function(a,b){return qea(b)};
qea=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "object":if(a&&!Array.isArray(a)){if(cg(a))return hda(a);if(a instanceof fg){var b=a.j;return null==b?"":"string"===typeof b?b:a.j=hda(b)}}}return a};
sea=function(a,b,c,d,e,f){if(null!=a){if(Array.isArray(a))a=e&&0==a.length&&Tg(a)&1?void 0:f&&Tg(a)&2?a:Qh(a,b,c,void 0!==d,e,f);else if(Tda(a)){var h={},l;for(l in a)h[l]=sea(a[l],b,c,d,e,f);a=h}else a=b(a,d);return a}};
Qh=function(a,b,c,d,e,f){var h=Tg(a);d=d?!!(h&16):void 0;a=Array.prototype.slice.call(a);for(var l=0;l<a.length;l++)a[l]=sea(a[l],b,c,d,e,f);c&&c(h,a);return a};
tea=function(a){return a.lN===ch?a.toJSON():qea(a)};
Xh=function(a,b,c){c=void 0===c?Xg:c;if(null!=a){if(mda&&a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=Tg(a);if(d&2)return a;if(b&&!(d&32)&&(d&16||0===d))return Ug(a,d|18),a;a=Qh(a,Xh,d&4?Xg:c,!0,!1,!0);b=Tg(a);b&4&&b&2&&Object.freeze(a);return a}a.lN===ch&&(Wg(a.Re)||(a=Yh(a,!0),Sg(a.Re,18)));return a}};
Yh=function(a,b){var c=a.Re,d=Rda([]),e=a.constructor.j;e&&d.push(e);e=a.kq;if(e){d.length=c.length;var f={};d[d.length-1]=f}b=b||a.oq()?Xg:Sda;d=pea(a.constructor,d);a.mC&&(d.mC=a.mC.slice());f=!!(Tg(c)&16);for(var h=e?c.length-1:c.length,l=0;l<h;l++)L(d,l-a.pu,Xh(c[l],f,b),!1);if(e)for(var m in e)a=e[m],c=+m,Number.isNaN(c),L(d,c,Xh(a,f,b),!0);return d};
zh=function(a){if(!Wg(a.Re))return a;var b=Yh(a,!1);b.C=a;return b};
P=function(a,b,c){null==a&&(a=Ph);Ph=void 0;var d=this.constructor.j;if(null==a){a=d?[d]:[];var e=!0;Ug(a,48)}else{if(!Array.isArray(a))throw Error();if(d&&d!==a[0])throw Error();var f=Sg(a,0)|32;e=0!==(16&f);Ug(a,f)}this.pu=d?0:-1;this.Re=a;a:{f=this.Re.length;d=f-1;if(f&&(f=this.Re[d],Tda(f))){this.kq=f;this.u=d-this.pu;break a}void 0!==b&&-1<b?(this.u=Math.max(b,d+1-this.pu),this.kq=void 0):this.u=Number.MAX_VALUE}if(c){b=e&&!0;e=this.u;var h;for(d=0;d<c.length;d++)if(f=c[d],f<e){f+=this.pu;var l=
a[f];l?uea(l,b):a[f]=hh}else h||(h=aea(this)),(l=h[f])?uea(l,b):h[f]=hh}};
uea=function(a,b){if(Array.isArray(a)){var c=Tg(a),d=1;!b||c&2||(d|=16);(c&d)!==d&&Ug(a,c|d)}};
xea=function(a,b,c){if(c){var d={},e;for(e in c){var f=c[e],h=f.b$;h||(d.oA=f.k8a||f.y8.zI,f.FS?(d.MI=vea(f.FS),h=function(l){return function(m,n,p){return l.oA(m,n,p,l.MI)}}(d)):f.CV?(d.LI=wea(f.uL.Mr,f.CV),h=function(l){return function(m,n,p){return l.oA(m,n,p,l.LI)}}(d)):h=d.oA,f.b$=h);
h(b,a,f.uL);d={oA:d.oA,MI:d.MI,LI:d.LI}}}Nda(b,a)};
yea=function(a,b,c){return a[Zh]||(a[Zh]=function(d,e){return b(d,e,c)})};
Aea=function(a){var b=a[Zh];if(!b){var c=$h(a);b=function(d,e){return zea(d,e,c)};
a[Zh]=b}return b};
Bea=function(a){var b=a.FS;if(b)return Aea(b);if(b=a.j8a)return yea(a.uL.Mr,b,a.CV)};
Cea=function(a){var b=Bea(a),c=a.uL,d=a.y8.gp;return b?function(e,f){return d(e,f,c,b)}:function(e,f){return d(e,f,c)}};
Dea=function(a,b){var c=a[b];"function"==typeof c&&0===c.length&&(c=c(),a[b]=c);return Array.isArray(c)&&(ai in c||bi in c||0<c.length&&"function"==typeof c[0])?c:void 0};
Eea=function(a,b,c,d,e,f){b.Mr=a[0];var h=1;if(a.length>h&&"number"!==typeof a[h]){var l=a[h++];c(b,l)}for(;h<a.length;){c=a[h++];for(var m=h+1;m<a.length&&"number"!==typeof a[m];)m++;l=a[h++];m-=h;switch(m){case 0:d(b,c,l);break;case 1:(m=Dea(a,h))?(h++,e(b,c,l,m)):d(b,c,l,a[h++]);break;case 2:m=h++;m=Dea(a,m);e(b,c,l,m,a[h++]);break;case 3:f(b,c,l,a[h++],a[h++],a[h++]);break;case 4:f(b,c,l,a[h++],a[h++],a[h++],a[h++]);break;default:throw Error("unexpected number of binary field arguments: "+m);
}}return b};
vea=function(a){var b=a[ci];if(!b){var c=di(a);b=function(d,e){return Fea(d,e,c)};
a[ci]=b}return b};
wea=function(a,b){var c=a[ci];c||(c=function(d,e){return xea(d,e,b)},a[ci]=c);
return c};
Gea=function(a,b){a.push(b)};
Hea=function(a,b,c){a.push(b,c.zI)};
Iea=function(a,b,c,d){var e=vea(d),f=di(d).Mr,h=c.zI;a.push(b,function(l,m,n){return h(l,m,n,f,e)})};
Jea=function(a,b,c,d,e,f){var h=wea(d,f),l=c.zI;a.push(b,function(m,n,p){return l(m,n,p,d,h)})};
di=function(a){var b=a[bi];if(b)return b;b=Eea(a,a[bi]=[],Gea,Hea,Iea,Jea);ai in a&&bi in a&&(a.length=0);return b};
Kea=function(a,b){a[0]=b};
Lea=function(a,b,c,d){var e=c.gp;a[b]=d?function(f,h,l){return e(f,h,l,d)}:e};
Mea=function(a,b,c,d,e){var f=c.gp,h=Aea(d),l=$h(d).Mr;a[b]=function(m,n,p){return f(m,n,p,l,h,e)}};
Nea=function(a,b,c,d,e,f,h){var l=c.gp,m=yea(d,e,f);a[b]=function(n,p,q){return l(n,p,q,d,m,h)}};
$h=function(a){var b=a[ai];if(b)return b;b=Eea(a,a[ai]={},Kea,Lea,Mea,Nea);ai in a&&bi in a&&(a.length=0);return b};
zea=function(a,b,c){for(;zda(b)&&4!=b.u;){var d=b.C,e=c[d];if(!e){var f=c[0];f&&(f=f[d])&&(e=c[d]=Cea(f))}if(!e||!e(b,a,d))if(f=b,e=a,d=f.B,zg(f),!f.hL){var h=f.j.j-d;f.j.j=d;d=xda(f.j,h);(f=e.mC)?f.push(d):e.mC=[d]}}return a};
Fea=function(a,b,c){for(var d=c.length,e=1==d%2,f=e?1:0;f<d;f+=2)(0,c[f+1])(b,a,c[f]);xea(a,b,e?c[0]:void 0)};
ei=function(a,b){return{gp:a,zI:b}};
fi=function(a,b,c){b=cea(b,c);if(null!=b){Ig(a,c,1);a=a.j;var d=+b;if(0===d)pg=0<1/d?0:2147483648,og=0;else if(isNaN(d))pg=2147483647,og=4294967295;else if(d=(c=0>d?-2147483648:0)?-d:d,1.7976931348623157E308<d)pg=(c|2146435072)>>>0,og=0;else if(2.2250738585072014E-308>d)b=d/Math.pow(2,-1074),pg=(c|b/4294967296)>>>0,og=b>>>0;else{var e=d;b=0;if(2<=e)for(;2<=e&&1023>b;)b++,e/=2;else for(;1>e&&-1022<b;)e*=2,b--;d*=Math.pow(2,-b);pg=(c|b+1023<<20|1048576*d&1048575)>>>0;og=4503599627370496*d>>>0}Gg(a,
og);Gg(a,pg)}};
gi=function(a,b,c){b=eh(b,c);null!=b&&("string"===typeof b&&Hda(b),null!=b&&(Ig(a,c,0),"number"===typeof b?(a=a.j,sda(b),Ida(a,og,pg)):(c=Hda(b),Ida(a.j,c.u,c.j))))};
hi=function(a,b,c){a:if(b=eh(b,c),null!=b){switch(typeof b){case "string":b=+b;break a;case "number":break a}b=void 0}null!=b&&null!=b&&(Ig(a,c,0),Jda(a.j,b))};
Oea=function(a,b,c){b=Vda(eh(b,c));null!=b&&(Ig(a,c,0),a.j.j.push(b?1:0))};
Pea=function(a,b,c){b=eh(b,c);null!=b&&Jg(a,c,Zca(b))};
Qea=function(a,b,c,d,e){b=Ah(b,d,c);null!=b&&(c=Lda(a,c),e(b,a),Mda(a,c))};
Rea=function(a){return function(){var b=new Kda;Fea(this,b,di(a));Hg(b,b.j.end());for(var c=new Uint8Array(b.u),d=b.B,e=d.length,f=0,h=0;h<e;h++){var l=d[h];c.set(l,f);f+=l.length}b.B=[c];return c}};
ii=function(a){return function(b){if(null==b||""==b)b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error(void 0);b=pea(a,Rda(b))}return b}};
Tea=function(a){P.call(this,a,-1,Sea)};
ji=function(a){P.call(this,a)};
Uea=function(a){P.call(this,a)};
Wea=function(a){P.call(this,a,-1,Vea)};
ki=function(a){P.call(this,a)};
li=function(a){P.call(this,a,-1,Xea)};
Yea=function(a){P.call(this,a)};
Zea=function(a){P.call(this,a)};
$ea=function(a){P.call(this,a)};
mi=function(a){P.call(this,a,-1,afa)};
cfa=function(a){P.call(this,a,-1,bfa)};
g.dfa=function(a){var b=new mi;b=L(b,1,a.u);for(var c=[],d=0;d<a.j.length;d++)c.push(a.j[d].We);b=gea(b,c,Yda);c=[];d=[];for(var e=g.v(a.Px.keys()),f=e.next();!f.done;f=e.next())d.push(f.value.split(","));for(e=0;e<d.length;e++){f=d[e];var h=a.C;for(var l=a.EL(f)||[],m=[],n=0;n<l.length;n++){var p=l[n];p=p&&p.PS;var q=new ki;switch(h){case 3:yh(q,1,ni,Number(p));break;case 2:yh(q,2,ni,ah(Number(p)))}m.push(q)}h=m;for(l=0;l<h.length;l++){m=h[l];n=new li;m=Ch(n,ki,2,m);n=f;p=[];q=a;for(var t=[],w=0;w<
q.j.length;w++)t.push(q.j[w].Xe);q=t;for(t=0;t<q.length;t++){w=q[t];var z=n[t],C=new ji;switch(w){case 3:yh(C,1,oi,String(z));break;case 2:yh(C,2,oi,Number(z));break;case 1:yh(C,3,oi,"true"==z)}p.push(C)}Fh(m,ji,1,p);c.push(m)}}Fh(b,li,4,c);return b};
efa=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a.startsWith("blob:")&&(a=a.substring(5));a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("URI is missing protocol: "+a);if("http"!==c&&"https"!==c&&"chrome-extension"!==
c&&"moz-extension"!==c&&"file"!==c&&"android-app"!==c&&"chrome-search"!==c&&"chrome-untrusted"!==c&&"chrome"!==c&&"app"!==c&&"devtools"!==c)throw Error("Invalid URI scheme in origin: "+c);a="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===c&&"80"!==e||"https"===c&&"443"!==e)a=":"+e}return c+"://"+b+a};
ffa=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(q){for(var t=h,w=0;64>w;w+=4)t[w/4]=q[w]<<24|q[w+1]<<16|q[w+2]<<8|q[w+3];for(w=16;80>w;w++)q=t[w-3]^t[w-8]^t[w-14]^t[w-16],t[w]=(q<<1|q>>>31)&4294967295;q=e[0];var z=e[1],C=e[2],G=e[3],O=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var N=G^z&(C^G);var K=1518500249}else N=z^C^G,K=1859775393;else 60>w?(N=z&C|G&(z|C),K=2400959708):(N=z^C^G,K=3395469782);N=((q<<5|q>>>27)&4294967295)+N+O+K+t[w]&4294967295;O=G;G=C;C=(z<<30|z>>>2)&4294967295;z=q;q=N}e[0]=e[0]+q&4294967295;e[1]=e[1]+z&4294967295;e[2]=
e[2]+C&4294967295;e[3]=e[3]+G&4294967295;e[4]=e[4]+O&4294967295}
function c(q,t){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var w=[],z=0,C=q.length;z<C;++z)w.push(q.charCodeAt(z));q=w}t||(t=q.length);w=0;if(0==n)for(;w+64<t;)b(q.slice(w,w+64)),w+=64,p+=64;for(;w<t;)if(f[n++]=q[w++],p++,64==n)for(n=0,b(f);w+64<t;)b(q.slice(w,w+64)),w+=64,p+=64}
function d(){var q=[],t=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var w=63;56<=w;w--)f[w]=t&255,t>>>=8;b(f);for(w=t=0;5>w;w++)for(var z=24;0<=z;z-=8)q[t++]=e[w]>>z&255;return q}
for(var e=[],f=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,K2:function(){for(var q=d(),t="",w=0;w<q.length;w++)t+="0123456789ABCDEF".charAt(Math.floor(q[w]/16))+"0123456789ABCDEF".charAt(q[w]%16);return t}}};
hfa=function(a,b,c){var d=String(g.Ja.location.href);return d&&a&&b?[b,gfa(efa(d),a,c||null)].join(" "):null};
gfa=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.Ub(d,function(l){e.push(l)}),ifa(e.join(" "));
var f=[],h=[];g.Ub(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.xb(f)?[c,b,a]:[f.join(":"),c,b,a];g.Ub(d,function(l){e.push(l)});
a=ifa(e.join(" "));a=[c,a];g.xb(h)||a.push(h.join(""));return a.join("_")};
ifa=function(a){var b=ffa();b.update(a);return b.K2().toLowerCase()};
pi=function(a){this.j=a||{cookie:""}};
qi=function(a){a=(a.j.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=ec(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
ri=function(a){return!!jfa.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
kfa=function(a){a=void 0===a?!1:a;var b=g.Ja.__SAPISID||g.Ja.__APISID||g.Ja.__3PSAPISID||g.Ja.__OVERRIDE_SID;ri(a)&&(b=b||g.Ja.__1PSAPISID);if(b)return!0;if("undefined"!==typeof document){var c=new pi(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID")||c.get("OSID");ri(a)&&(b=b||c.get("__Secure-1PAPISID"))}return!!b};
lfa=function(a,b,c,d){(a=g.Ja[a])||"undefined"===typeof document||(a=(new pi(document)).get(b));return a?hfa(a,c,d):null};
mfa=function(a,b){b=void 0===b?!1:b;var c=efa(String(g.Ja.location.href)),d=[];if(kfa(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?g.Ja.__SAPISID:g.Ja.__APISID;e||"undefined"===typeof document||(e=new pi(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?hfa(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&ri(b)&&((b=lfa("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=lfa("__3PSAPISID","__Secure-3PAPISID",
"SAPISID3PHASH",a))&&d.push(a))}return 0==d.length?null:d.join(" ")};
si=function(a){P.call(this,a,-1,nfa)};
g.ti=function(a,b,c,d){this.C=a;this.D=b;this.j=this.B=a;this.I=c||0;this.J=d||2};
g.Gi=function(a){a.j=Math.min(a.D,a.j*a.J);a.B=Math.min(a.D,a.j+(a.I?Math.round(a.I*(Math.random()-.5)*2*a.j):0));a.u++};
g.Hi=function(a){return(new ofa).ip(a)};
ofa=function(){};
Ii=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),Ii(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(e),pfa(d,c),c.push(":"),Ii(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":pfa(b,c);break;case "number":c.push(isFinite(b)&&
!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}};
pfa=function(a,b){b.push('"',a.replace(qfa,function(c){var d=rfa[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),rfa[c]=d);return d}),'"')};
sfa=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};
Ji=function(){};
Ki=function(){};
tfa=function(a){if(!a.u&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.u=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.u};
Li=function(a,b,c,d,e,f,h){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);h&&(l+="#"+h);return l};
Mi=function(a){return a?decodeURI(a):a};
g.Oi=function(a,b){return b.match(Ni)[a]||null};
g.Pi=function(a){return Mi(g.Oi(3,a))};
g.ufa=function(a){a=a.match(Ni);return Li(a[1],a[2],a[3],a[4])};
vfa=function(a){a=a.match(Ni);return Li(a[1],null,a[3],a[4])};
wfa=function(a){a=a.match(Ni);return Li(null,null,null,null,a[5],a[6],a[7])};
Qi=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?Fe(e):"")}}};
Ri=function(a,b){if(!b)return a;var c=a.indexOf("#");0>c&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.slice(0,d),e,a.slice(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
Si=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Si(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+g.Ee(b)))};
xfa=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)Si(a[b],a[b+1],c);return c.join("&")};
g.Ti=function(a){var b=[],c;for(c in a)Si(c,a[c],b);return b.join("&")};
yfa=function(a,b){var c=2==arguments.length?xfa(arguments[1],0):xfa(arguments,1);return Ri(a,c)};
g.Ui=function(a,b){b=g.Ti(b);return Ri(a,b)};
Vi=function(a,b,c){c=null!=c?"="+g.Ee(c):"";return Ri(a,b+c)};
zfa=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1};
Wi=function(a,b){var c=a.search(Afa),d=zfa(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return Fe(a.slice(d,-1!==e?e:0))};
Xi=function(a,b){for(var c=a.search(Afa),d=0,e,f=[];0<=(e=zfa(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(Bfa,"$1")};
Cfa=function(a,b,c){return Vi(Xi(a,b),b,c)};
g.Yi=function(a){g.Cd.call(this);this.headers=new Map;this.V=a||null;this.B=!1;this.ya=this.j=null;this.Z="";this.u=0;this.C="";this.D=this.Ga=this.ea=this.Aa=!1;this.J=0;this.oa=null;this.Ja="";this.La=this.I=!1};
Efa=function(a,b,c,d,e,f,h){var l=new g.Yi;Dfa.push(l);b&&l.Ra("complete",b);l.AG("ready",l.j2);f&&(l.J=Math.max(0,f));h&&(l.I=h);l.send(a,c,d,e)};
Ffa=function(a){return g.Ve&&"number"===typeof a.timeout&&void 0!==a.ontimeout};
Hfa=function(a,b){a.B=!1;a.j&&(a.D=!0,a.j.abort(),a.D=!1);a.C=b;a.u=5;Gfa(a);Zi(a)};
Gfa=function(a){a.Aa||(a.Aa=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Ifa=function(a){if(a.B&&"undefined"!=typeof $i)if(a.ya[1]&&4==g.aj(a)&&2==a.getStatus())a.getStatus();else if(a.ea&&4==g.aj(a))g.Mf(a.wW,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.B=!1;try{if(oj(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2<g.aj(a)?a.j.statusText:""}catch(c){b=""}a.C=b+" ["+a.getStatus()+"]";Gfa(a)}}finally{Zi(a)}}};
Zi=function(a,b){if(a.j){Jfa(a);var c=a.j,d=a.ya[0]?function(){}:null;
a.j=null;a.ya=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Jfa=function(a){a.j&&a.La&&(a.j.ontimeout=null);a.oa&&(g.Ja.clearTimeout(a.oa),a.oa=null)};
oj=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=0===b)a=g.Oi(1,String(a.Z)),!a&&g.Ja.self&&g.Ja.self.location&&(a=g.Ja.self.location.protocol.slice(0,-1)),b=!Kfa.test(a?a.toLowerCase():"");c=b}return c};
g.aj=function(a){return a.j?a.j.readyState:0};
g.pj=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
g.qj=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.Ja){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.Lfa=function(a){var b={};a=(a.j&&2<=g.aj(a)?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!g.$b(a[c])){var d=fca(a[c]),e=d[0];d=d[1];if("string"===typeof d){d=d.trim();var f=b[e]||[];b[e]=f;f.push(d)}}return Xc(b,function(h){return h.join(", ")})};
g.rj=function(a,b){return a.j?a.j.getResponseHeader(b):null};
sj=function(a){P.call(this,a)};
tj=function(a){P.call(this,a,-1,Mfa)};
uj=function(a){P.call(this,a)};
Mh=function(a){P.call(this,a)};
Ofa=function(a){P.call(this,a,-1,Nfa)};
vj=function(a){P.call(this,a,33,Pfa)};
Rfa=function(a){P.call(this,a,19,Qfa)};
Tfa=function(a){P.call(this,a,6,Sfa)};
Ufa=function(a){P.call(this,a)};
xj=function(a,b,c,d,e,f,h,l,m,n,p){g.Cd.call(this);var q=this;this.componentId="";this.u=[];this.Pa="";this.Wa=this.Aa=-1;this.Ja=!1;this.V=this.B=null;this.I=this.J=0;this.Za=1;this.timeoutMillis=0;this.ya=!1;g.Cd.call(this);this.logSource=a;this.La=b||function(){};
this.C=new Vfa(a,f);this.Ya=d;this.network=p;this.ib=g.Ua(bca,0,1);this.Z=e||null;this.sessionIndex=c||null;this.oa=h||!1;this.pageId=m||null;this.logger=null;this.withCredentials=!l;this.Ga=f||!1;!this.Ga&&(65<=Ac("Chromium")||45<=Ac("Firefox")||12<=Ac("Safari")||Fc()&&g.gc(Vaa(),12));a=mea();wj(this.C,a);this.D=new g.ti(1E4,3E5,.1);this.j=new g.Lf(this.D.getValue());g.I(this,this.j);n=Wfa(this,n);g.sd(this.j,"tick",n,!1,this);this.ea=new g.Lf(6E5);g.I(this,this.ea);g.sd(this.ea,"tick",n,!1,this);
this.oa||this.ea.start();this.Ga||(g.sd(document,"visibilitychange",function(){"hidden"===document.visibilityState&&q.vL()}),g.sd(document,"pagehide",this.vL,!1,this))};
Wfa=function(a,b){return b?function(){b().then(function(){a.flush()})}:function(){a.flush()}};
Xfa=function(a){a.Z||(a.Z=.01>a.ib()?"https://web.archive.org/web/20230505074338/https://www.google.com/log?format=json&hasfast=true":"https://web.archive.org/web/20230505074338/https://play.google.com/log?format=json&hasfast=true");return a.Z};
Yfa=function(a,b){a.D=new g.ti(1>b?1:b,3E5,.1);a.j.setInterval(a.D.getValue())};
$fa=function(a){Zfa(a,function(b,c){b=Vi(b,"format","json");var d=!1;try{d=We().navigator.sendBeacon(b,c.ip())}catch(e){}a.ya&&!d&&(a.ya=!1);return d})};
Zfa=function(a,b){if(0!==a.u.length){var c=Xi(Xfa(a),"format");c=yfa(c,"auth",a.La(),"authuser",a.sessionIndex||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=a.C.wf(e,a.J,a.I);if(!b(c,f)){++a.I;break}a.J=0;a.I=0;a.u=a.u.slice(e.length)}a.j.enabled&&a.j.stop()}};
aga=function(a){g.pb.call(this,"event-logged",void 0);this.j=a};
Vfa=function(a,b){this.B=b=void 0===b?!1:b;this.u=this.locale=null;this.j=new Rfa;L(this.j,2,a);b||(this.locale=document.documentElement.getAttribute("lang"));wj(this,new Mh)};
wj=function(a,b){Ch(a.j,Mh,1,b);eh(b,1)||L(b,1,1);a.B||(b=yj(a),eh(b,5)||L(b,5,a.locale));a.u&&(b=yj(a),Ah(b,tj,9)||Ch(b,tj,9,a.u))};
cga=function(a,b){gh(Ah(a.j,Mh,1),uj,11)&&(a=zj(a),L(a,1,b))};
dga=function(a,b){gh(Ah(a.j,Mh,1),uj,11)&&(a=zj(a),L(a,2,b))};
fga=function(a,b){var c=void 0===c?ega:c;b(We(),c).then(function(d){a.u=d;d=yj(a);Ch(d,tj,9,a.u);return!0}).catch(function(){return!1})};
yj=function(a){a=Ah(a.j,Mh,1);var b=Ah(a,uj,11);b||(b=new uj,Ch(a,uj,11,b));return b};
zj=function(a){a=yj(a);var b=Ah(a,sj,10);b||(b=new sj,L(b,2,!1),Ch(a,sj,10,b));return b};
gga=function(a,b,c){Efa(a.url,function(d){d=d.target;oj(d)?b(g.pj(d)):c(d.getStatus())},a.requestType,a.body,a.Yv,a.timeoutMillis,a.withCredentials)};
Aj=function(a,b){g.E.call(this);this.I=a;this.Ga=b;this.C="https://web.archive.org/web/20230505074338/https://play.google.com/log?format=json&hasfast=true";this.D=!1;this.oa=gga;this.j=""};
Bj=function(a,b,c,d,e,f){a=void 0===a?-1:a;b=void 0===b?"":b;c=void 0===c?"":c;d=void 0===d?!1:d;e=void 0===e?"":e;g.E.call(this);f?b=f:(a=new Aj(a,"0"),a.j=b,g.I(this,a),""!=c&&(a.C=c),d&&(a.D=!0),e&&(a.u=e),b=a.wf());this.j=b};
hga=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
iga=function(a){switch(a){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
default:return""}};
Cj=function(a,b,c){c=void 0===c?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c};
Dj=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()};
Ej=function(a,b){this.logger=a;this.j=b;this.startMillis=Dj()};
Fj=function(a,b){this.logger=a;this.operation=b;this.startMillis=Dj()};
jga=function(a,b){var c=Dj()-a.startMillis;a.logger.bN(b?"h":"m",c)};
kga=function(){};
lga=function(a,b){this.Ef=a;a=new Aj(1654,"0");a.u="11";if(b){var c=new Tea;b=gea(c,b,Wda);a.B=b}b=new Bj(1654,"","",!1,"",a.wf());b=new g.Of(b);this.clientError=new Nca(b);this.J=new Mca(b);this.V=new Lca(b);this.I=new Oca(b);this.B=new Pca(b);this.C=new Qca(b);this.j=new Rca(b);this.D=new Sca(b);this.u=new Tca(b)};
mga=function(a){this.j=a;this.j.lk("/client_streamz/bg/fiec",{Xe:3,We:"rk"},{Xe:2,We:"ec"})};
Gj=function(a,b,c){a.j.vl("/client_streamz/bg/fiec",b,c)};
nga=function(a){this.j=a;this.j.Hx("/client_streamz/bg/fil",{Xe:3,We:"rk"})};
oga=function(a){this.j=a;this.j.lk("/client_streamz/bg/fsc",{Xe:3,We:"rk"})};
pga=function(a){this.j=a;this.j.Hx("/client_streamz/bg/fsl",{Xe:3,We:"rk"})};
sga=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=qga(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;12<=h;h-=12,l+=12)c+=Hj(a,l),d+=Hj(a,l+4),e+=Hj(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 rga.toString(e)};
qga=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
Hj=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
tga=function(a){this.J=Ij();this.D=new Bj(1828);this.j=new g.Of(this.D);this.I=new nga(this.j);this.B=new oga(this.j);this.C=new pga(this.j);this.u=new mga(this.j);this.Ef=sga(a)};
Ij=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()};
uga=function(a){P.call(this,a)};
vga=function(a){P.call(this,a)};
Jj=function(a){P.call(this,a)};
g.Kj=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
Lj=function(a){function b(z,C){Promise.resolve().then(function(){var G;null!=(G=c.xj)&&G.I.Of(Ij()-G.J,G.Ef);h.resolve({W1:z,f9:C})})}
var c=this;this.j=!1;if(a.challenge instanceof Jj){var d=g.Nh(a.challenge,4);var e=g.Nh(a.challenge,5)}else d=a.program,e=a.globalName;if(a.z8){var f;this.xj=null!=(f=a.xj)?f:new tga(e)}var h=new g.Kj;this.u=h.promise;if(g.Ja[e])if(g.Ja[e].a){var l;null!=(l=this.xj)&&Gj(l.u,l.Ef,3)}else{var m;null!=(m=this.xj)&&Gj(m.u,m.Ef,2);var n;null!=(n=this.xj)&&n.j.bx()}else{var p;null!=(p=this.xj)&&Gj(p.u,p.Ef,1);var q;null!=(q=this.xj)&&q.j.bx()}try{this.B=g.v((0,g.Ja[e].a)(d,b,!0)).next().value,this.d9=h.promise.then(function(){})}catch(z){var t;
null!=(t=this.xj)&&Gj(t.u,t.Ef,4);var w;null!=(w=this.xj)&&w.j.bx();throw z;}};
wga=function(a){return be(a)};
xga=function(a){g.Sd("From proto message. b/12014412");return Wd(eh(a,4)||"")};
yga=function(){};
Mj=function(a){this.j=a};
Nj=function(a){if(a instanceof Xd)a=g.Yd(a);else{b:if(zga){try{var b=new URL(a)}catch(c){b="https:";break b}b=b.protocol}else c:{b=document.createElement("a");try{b.href=a}catch(c){b=void 0;break c}b=b.protocol;b=":"===b||""===b?"https:":b}a="javascript:"!==b?a:void 0}return a};
Oj=function(a){this.De=a};
Zj=function(a){return new Oj(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
Bga=function(a,b){b=void 0===b?Aga:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof Oj&&d.De(a))return Zd(a)}};
ak=function(a,b){b=Nj(b);void 0!==b&&(a.href=b)};
Cga=function(a,b,c,d){if(0===a.length)throw Error("");a=a.map(function(f){if(f instanceof Mj)f=f.j;else throw Error("");return f});
var e=c.toLowerCase();if(a.every(function(f){return 0!==e.indexOf(f)}))throw Error('Attribute "'+c+'" does not match any of the allowed prefixes.');
b.setAttribute(c,d)};
bk=function(a,b){throw Error(void 0===b?"unexpected value "+a+"!":b);};
ck=function(a){var b,c,d=null==(c=(b=(a.ownerDocument&&a.ownerDocument.defaultView||window).document).querySelector)?void 0:c.call(b,"script[nonce]");(b=d?d.nonce||d.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)};
g.dk=function(a,b){a.src=yba(b);ck(a)};
g.ek=function(a,b,c){var d=window;a=Nj(a);return void 0!==a?d.open(a,b,c):null};
fk=function(){this.j={};this.u=null};
Dga=function(){fk.instance||(fk.instance=new fk);return fk.instance};
Fga=function(a){var b=Dga();return Ega(b,Ah(a,uga,1),Ah(a,vga,2),g.Nh(a,3))};
Ega=function(a,b,c,d){if(!b&&!c)return Promise.resolve();if(!d)return Gga(b,c);var e;(e=a.j)[d]||(e[d]=new Promise(function(f,h){Gga(b,c).then(function(){a.u=d;f()},function(l){delete a.j[d];
h(l)})}));
return a.j[d]};
Gga=function(a,b){return b?Hga(b):a?Iga(a):Promise.resolve()};
Hga=function(a){return new Promise(function(b,c){var d=g.Ze("SCRIPT"),e=xga(a);g.dk(d,e);d.onload=function(){g.jf(d);b()};
d.onerror=function(){g.jf(d);c(Error("EWLS"))};
(g.Qe("HEAD")[0]||document.documentElement).appendChild(d)})};
Iga=function(a){return new Promise(function(b){var c=g.Ze("SCRIPT");if(a){var d=eh(a,6);d=null===d||void 0===d?null:xba(d)}else d=null;c.textContent=vba(d);ck(c);(g.Qe("HEAD")[0]||document.documentElement).appendChild(c);g.jf(c);b()})};
gk=function(a){P.call(this,a)};
hk=function(a){P.call(this,a)};
Jga=function(a,b,c){this.client=a;this.Ef=b;this.j=c};
Mga=function(a,b){var c,d;return g.A(function(e){c=a.j();var f=new hk;f=lh(f,1,a.Ef,"");d=lh(f,2,b,"");f=e.return;var h=a.client;h=Kga(h.j,h.u+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},Lga);return f.call(e,h)})};
ik=function(a){P.call(this,a)};
jk=function(a,b,c){this.j=a;this.B=b;this.u=c};
kk=function(a,b,c){c=void 0===c?{}:c;this.M8=a;this.j=c;this.u=b};
lk=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.u=e};
Nga=function(a,b,c){c=void 0===c?{}:c;return new jk(b,a,c)};
mk=function(a){P.call(this,a)};
nk=function(a){P.call(this,a)};
ok=function(a){P.call(this,a,-1,Oga)};
pk=function(a,b){this.J=a.Z4;this.V=b;this.j=a.xhr;this.B=[];this.D=[];this.I=[];this.C=[];this.u=[];this.J&&Pga(this)};
Sga=function(a,b){g.sd(a.j,"complete",function(){if(oj(a.j)){var c=g.pj(a.j);if(b&&"text/plain"===a.j.getResponseHeader("Content-Type")){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.V(c)}catch(f){qk(a,new Cj(13,"Error when deserializing response data; error: "+f+(", response: "+c)));return}c=hga(a.j.getStatus());rk(a,sk(a));0==c?Qga(a,d):qk(a,new Cj(c,"Xhr succeeded but the status code is not 200"))}else{d=g.pj(a.j);var e={};d?(e=Rga(a,d),d=e.code,c=e.details,e=e.metadata):
(d=2,c="Rpc failed due to xhr error. error code: "+a.j.u+", error: "+a.j.getLastError());rk(a,sk(a));qk(a,new Cj(d,c,e))}})};
Pga=function(a){a.J.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.V(c)}catch(e){qk(a,new Cj(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&Qga(a,d)}if("2"in b)for(b=Rga(a,b["2"]),c=0;c<a.I.length;c++)a.I[c](b)});
a.J.on("end",function(){rk(a,sk(a));for(var b=0;b<a.C.length;b++)a.C[b]()});
a.J.on("error",function(){if(0!=a.u.length){var b=a.j.u;0!==b||oj(a.j)||(b=6);var c=-1;switch(b){case 0:var d=2;break;case 7:d=10;break;case 8:d=4;break;case 6:c=a.j.getStatus();d=hga(c);break;default:d=14}rk(a,sk(a));b=sfa(b)+", error: "+a.j.getLastError();-1!=c&&(b+=", http status code: "+c);qk(a,new Cj(d,b))}})};
sk=function(a){var b={},c=g.Lfa(a.j);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
Rga=function(a,b){var c=2,d={};try{var e=Tga(b);c=Jh(e,1);var f=e.getMessage();Bh(e,nk,3).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.j&&404===a.j.getStatus()?(c=5,f="Not Found: "+String(a.j.Z)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
tk=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
Qga=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
rk=function(a,b){for(var c=0;c<a.D.length;c++)a.D[c](b)};
qk=function(a,b){for(var c=0;c<a.u.length;c++)a.u[c](b)};
g.uk=function(a){this.I=a.a$||null;this.D=a.XX||!1;this.u=void 0};
vk=function(a,b){g.Cd.call(this);this.oa=a;this.I=b;this.D=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.V=new Headers;this.u=null;this.Z="GET";this.ea="";this.j=!1;this.J=this.B=this.C=null};
Uga=function(a){a.B.read().then(a.F3.bind(a)).catch(a.iG.bind(a))};
xk=function(a){a.readyState=4;a.C=null;a.B=null;a.J=null;wk(a)};
wk=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Vga=function(a){if(a.Kl&&"function"==typeof a.Kl)return a.Kl();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(g.Oa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return $c(a)};
Wga=function(a){if(a.Wp&&"function"==typeof a.Wp)return a.Wp();if(!a.Kl||"function"!=typeof a.Kl){if("undefined"!==typeof Map&&a instanceof Map)return Array.from(a.keys());if(!("undefined"!==typeof Set&&a instanceof Set)){if(g.Oa(a)||"string"===typeof a){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return g.ad(a)}}};
g.yk=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(g.Oa(a)||"string"===typeof a)Array.prototype.forEach.call(a,b,c);else for(var d=Wga(a),e=Vga(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)};
g.zk=function(a){this.j=this.V=this.D="";this.C=null;this.I=this.B="";this.J=!1;var b;a instanceof g.zk?(this.J=a.J,g.Ak(this,a.D),this.V=a.V,g.Bk(this,a.j),g.Ck(this,a.C),this.B=a.B,Dk(this,a.u.clone()),this.I=a.I):a&&(b=String(a).match(Ni))?(this.J=!1,g.Ak(this,b[1]||"",!0),this.V=Ek(b[2]||""),g.Bk(this,b[3]||"",!0),g.Ck(this,b[4]),this.B=Ek(b[5]||"",!0),Dk(this,b[6]||"",!0),this.I=Ek(b[7]||"")):(this.J=!1,this.u=new Fk(null,this.J))};
g.Ak=function(a,b,c){a.D=c?Ek(b,!0):b;a.D&&(a.D=a.D.replace(/:$/,""))};
g.Bk=function(a,b,c){a.j=c?Ek(b,!0):b};
g.Ck=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.C=b}else a.C=null};
Dk=function(a,b,c){b instanceof Fk?(a.u=b,Xga(a.u,a.J)):(c||(b=Gk(b,Yga)),a.u=new Fk(b,a.J))};
g.Hk=function(a,b,c){a.u.set(b,c)};
g.Ik=function(a){return a instanceof g.zk?a.clone():new g.zk(a)};
Ek=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Gk=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Zga),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
Zga=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
Fk=function(a,b){this.u=this.j=null;this.B=a||null;this.C=!!b};
Jk=function(a){a.j||(a.j=new Map,a.u=0,a.B&&Qi(a.B,function(b,c){a.add(Fe(b),c)}))};
$ga=function(a,b){Jk(a);b=Kk(a,b);return a.j.has(b)};
g.aha=function(a,b,c){a.remove(b);0<c.length&&(a.B=null,a.j.set(Kk(a,b),g.Db(c)),a.u=a.u+c.length)};
Kk=function(a,b){b=String(b);a.C&&(b=b.toLowerCase());return b};
Xga=function(a,b){b&&!a.C&&(Jk(a),a.B=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.aha(this,e,c))},a));
a.C=b};
g.bha=function(a){var b="";g.Vc(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.Lk=function(a,b,c){if(g.fd(c))return a;c=g.bha(c);if("string"===typeof a)return Vi(a,g.Ee(b),c);g.Hk(a,b,c);return a};
g.Mk=function(a){g.E.call(this);this.u=a;this.j={}};
cha=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)cha(a,b,c[h],d,e,f);else{b=rd(b,c,d||a.handleEvent,e,f||a.u||a);if(!b)return a;a.j[b.key]=b}return a};
dha=function(){this.B=!0;this.u=0;this.j=""};
eha=function(a,b,c){a.B=!1;throw Error("The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b);};
Vk=function(){this.I=null;this.J=[];this.C=this.u=this.B=this.j=this.ea=0;this.D=null;this.V=0};
Wk=function(a,b,c,d){a.j=3;a.I="The stream is broken @"+a.ea+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.I);};
Xk=function(){this.j=null;this.u=0;this.B=new dha;this.C=new Vk};
fha=function(a,b,c){a.j="The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b;throw Error(a.j);};
Yk=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
Zk=function(a){this.ea=null;this.I=[];this.C="";this.oa=[];this.B=this.u=0;this.J=!1;this.V=0;this.ya=/[\\"]/g;this.j=this.D=0;this.Z=!(!a||!a.J2)};
$k=function(a,b,c){a.D=3;a.ea="The stream is broken @"+a.B+"/"+c+". With input:\n"+b;throw Error(a.ea);};
al=function(){this.D=this.B=null;this.u=this.j=0;this.C=[];this.I=!1};
gha=function(a){var b=g.rj(a,"Content-Type");if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new al:new Zk:b.startsWith("application/x-protobuf")?(a=g.rj(a,"Content-Transfer-Encoding"))?"base64"==a.toLowerCase()?new Xk:null:new Vk:null};
bl=function(a){this.j=a;this.u=null;this.C=this.B=0;this.ea=!1;this.D=this.J=this.I=null;this.V=new g.Mk(this);this.V.Ra(this.j,"readystatechange",this.Z)};
cl=function(a,b){a.C!=b&&(a.C=b,a.J&&a.J())};
dl=function(a){a.V.Df();if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}};
hha=function(a){this.B=a;a=(0,g.Ta)(this.T5,this);this.B.D=a;a=(0,g.Ta)(this.B7,this);this.B.J=a;this.u={};this.j={}};
iha=function(a,b){for(var c={},d=0;d<a.length;c={DI:c.DI},d++)c.DI=a[d],b.forEach(function(e){return function(f){try{f(e.DI)}catch(h){}}}(c))};
el=function(a,b){var c=a.u[b];c&&c.forEach(function(d){try{d()}catch(e){}});
(c=a.j[b])&&c.forEach(function(d){d()});
a.j[b]=[]};
jha=function(){var a={format:"jspb"};a=void 0===a?{}:a;this.D=a.W8a||g.La("suppressCorsPreflight",a)||!1;this.u=a.withCredentials||g.La("withCredentials",a)||!1;this.C=a.V8a||[];this.I=a.b9a||[];this.j=a.f9a;this.B=a.c9a||!1};
Kga=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return kha(function(h){return new lha(function(l,m){var n={},p=mha(a,h,f);p.on("error",function(q){return m(q)});
p.on("metadata",function(q){n=q});
p.on("data",function(q){var t=n;t=void 0===t?{}:t;l(new kk(q,h.SF(),t))})})},a.I).call(a,Nga(e,c,d)).then(function(h){return h.M8})};
mha=function(a,b,c){var d=b.SF(),e=b.getMetadata(),f=nha(a,!0);a=oha(a,e,f,c+d.getName());c=pha(f,d.u,!1);Sga(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.j(b.j);f.send(a,"POST",b);return c};
nha=function(a,b){b=a.B&&!b;return a.j||b?new g.Yi(new g.uk({a$:a.j,XX:b})):new g.Yi};
oha=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]="grpc-web-javascript/0.1";var e="Authorization"in b?(e=b.Authorization)?!!{SAPISIDHASH:!0,APISIDHASH:!0}[e.split(" ")[0]]:!1:!1;if(e||a.u)c.I=!0;if(a.D)d=g.Lk(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d};
pha=function(a,b,c){if(c)if(a.isActive(),!g.Ve||g.Mc(10)){c=new bl(a);var d=new hha(c)}else d=null;return new pk({xhr:a,Z4:d},b)};
kha=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
return c};
qha=function(){this.j=new jha;this.u="https://web.archive.org/web/20230505074338/https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
rha=function(a){var b=new qha,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new Jga(b,a,function(){return c})};
fl=function(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=a;if(b instanceof Error){this.message=b.message;var d;this.stack=null!=(d=b.stack)?d:""}else this.message=String(b),this.stack="";Object.setPrototypeOf(this,fl.prototype)};
gl=function(a){g.E.call(this);this.logger=a;this.D=new g.Kj};
il=function(a,b){hl(b).then(function(){a.D.resolve()})};
jl=function(a,b,c,d,e){gl.call(this,a);this.I=c;this.V=d;this.B="m";this.u="x";this.J=0;g.I(this,b);il(this,e)};
kl=function(a,b,c){gl.call(this,a);this.I=b;this.B="f";this.u="z";il(this,c)};
ll=function(a,b,c){gl.call(this,a);this.I=b;this.B="w";this.u="z";il(this,c)};
ml=function(a,b){gl.call(this,a);this.error=b;this.B="e";this.u="y"};
sha=function(a,b){b=(b(a.error.message)+":"+b(a.error.stack)).substring(0,2048);var c=b.length+1;return new Uint8Array([42,c&127|128,c>>7,a.error.code].concat(g.Yf(b)))};
nl=function(a,b,c){gl.call(this,a);this.I=b;this.clientState=c;this.B="S";this.u="q"};
hl=function(a){return new Promise(function(b){return void setTimeout(b,a)})};
ol=function(a,b){return Promise.race([a,hl(12E4).then(b)])};
tha=function(a){this.j=void 0;this.C=new g.Kj;this.state=1;this.B=0;this.u=void 0;this.qy=a.qy;this.iW=a.iW;this.onError=a.onError;this.logger=a.A8a?new kga:new lga(a.Ef,a.m2)};
uha=function(a,b,c){var d=window.webpocb;if(!d)throw new fl(4,Error("PMD:Undefined"));d=d(mg(kh(b,1)));if(!(d instanceof Function))throw new fl(16,Error("APF:Failed"));return new jl(a.logger,c,d,Ih(Kh(b,3),0),1E3*Ih(Kh(b,2),0))};
vha=function(a){var b,c,d,e,f,h,l,m,n,p,q,t,w,z,C,G;return g.A(function(O){switch(O.j){case 1:b=void 0,c=a.isReady()?6E4:1E3,d=new g.ti(c,6E5,.25,2),e=1;case 2:if(!(2>=e)){O.Ka(4);break}g.ua(O,5);a.state=3;a.B=e-1;return g.y(O,a.u&&1===e?a.u:a.CF(e),7);case 7:return f=O.u,a.u=void 0,a.state=4,h=new Ej(a.logger,"b"),g.y(O,Fga(f),8);case 8:return l=new Lj({challenge:f}),a.state=5,g.y(O,ol(l.snapshot({}),function(){return Promise.reject(new fl(15,"MDA:Timeout"))}),9);
case 9:return m=O.u,h.done(),a.state=6,g.y(O,ol(a.logger.cN("g",e,Mga(a.qy,m)),function(){return Promise.reject(new fl(10,"BWB:Timeout"))}),10);
case 10:n=O.u;a.state=7;p=new Ej(a.logger,"i");if(g.Nh(n,4)){l.dispose();var N=new ll(a.logger,g.Nh(n,4),1E3*Ih(Kh(n,2),0))}else Ih(Kh(n,3),0)?N=uha(a,n,l):(l.dispose(),N=new kl(a.logger,mg(kh(n,1)),1E3*Ih(Kh(n,2),0)));q=N;p.done();w=t=void 0;null==(w=(t=a).iW)||w.call(t,mg(kh(n,1)));a.state=8;return O.return(q);case 5:z=g.xa(O);b=z instanceof fl?z:z instanceof Cj?new fl(11,z):new fl(12,z);a.logger.FC(b.code);G=C=void 0;null==(G=(C=a).onError)||G.call(C,b);a:{if(z instanceof Cj)switch(z.code){case 2:case 13:case 14:case 4:break;
default:N=!1;break a}N=!0}if(!N)throw b;return g.y(O,hl(d.getValue()),11);case 11:g.Gi(d);case 3:e++;O.Ka(2);break;case 4:throw b;}})};
wha=function(a){var b,c,d;g.A(function(e){switch(e.j){case 1:return b=void 0,g.ua(e,4),g.y(e,vha(a),6);case 6:b=e.u;g.va(e,5);break;case 4:c=g.xa(e);if(a.j){a.logger.FC(13);e.Ka(0);break}a.logger.FC(14);c instanceof fl||(c=new fl(14,c instanceof Error?c:Error(String(c))));b=new ml(a.logger,c);case 5:return d=void 0,null==(d=a.j)||d.dispose(),a.j=b,a.C.resolve(),g.y(e,a.j.D.promise,1)}})};
xha=function(a){try{var b=!0;if(globalThis.sessionStorage){var c;null!=(c=globalThis.sessionStorage.getItem)&&c.call||(a.logger.Xy("r"),b=!1);var d;null!=(d=globalThis.sessionStorage.setItem)&&d.call||(a.logger.Xy("w"),b=!1);var e;null!=(e=globalThis.sessionStorage.removeItem)&&e.call||(a.logger.Xy("d"),b=!1)}else a.logger.Xy("n"),b=!1;if(b){a.logger.Xy("a");var f=Array.from({length:83}).map(function(){return 9*Math.random()|0}).join(""),h=new Fj(a.logger,"m"),l=globalThis.sessionStorage.getItem("nWC1Uzs7EI");
b=!!l;jga(h,b);var m=Date.now();if(l){var n=Number(l.substring(0,l.indexOf("l")));n?(a.logger.BG("a"),a.logger.qV(m-n)):a.logger.BG("c")}else a.logger.BG("n");f=m+"l"+f;if(b&&.5>Math.random()){var p=new Fj(a.logger,"d");globalThis.sessionStorage.removeItem("nWC1Uzs7EI");p.done();var q=new Fj(a.logger,"a");globalThis.sessionStorage.setItem("nWC1Uzs7EI",f);q.done()}else{var t=new Fj(a.logger,b?"w":"i");globalThis.sessionStorage.setItem("nWC1Uzs7EI",f);t.done()}}}catch(w){a.logger.pV()}};
yha=function(a){var b={};g.Ub(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.equals(e)||(b[d]=null)):b[d]=c});
xaa(a,function(c){return null===b[c.event]})};
pl=function(){this.Yd=0;this.j=!1;this.u=-1;this.Yu=!1;this.Tj=0};
ql=function(){this.u=null;this.j=!1};
rl=function(a){ql.call(this);this.C=a};
sl=function(){ql.call(this)};
tl=function(){ql.call(this)};
ul=function(){this.j={};this.u=!0;this.B={}};
vl=function(a,b,c){a.j[b]||(a.j[b]=new rl(c));return a.j[b]};
zha=function(a){a.j.queryid||(a.j.queryid=new tl)};
wl=function(a,b,c){(a=a.j[b])&&a.B(c)};
xl=function(a,b){if(g.bd(a.B,b))return a.B[b];if(a=a.j[b])return a.getValue()};
yl=function(a){var b={},c=g.Wc(a.j,function(d){return d.j});
g.Vc(c,function(d,e){d=void 0!==a.B[e]?String(a.B[e]):d.j&&null!==d.u?String(d.u):"";0<d.length&&(b[e]=d)},a);
return b};
Aha=function(a){a=yl(a);var b=[];g.Vc(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
Cha=function(a){vl(a,"od",Bha);vl(a,"opac",zl).j=!0;vl(a,"sbeos",zl).j=!0;vl(a,"prf",zl).j=!0;vl(a,"mwt",zl).j=!0;vl(a,"iogeo",zl)};
Dha=function(){this.j=this.Rs=null};
Al=function(){};
Cl=function(){if(!Bl())throw Error();};
Bl=function(){return!(!Dl||!Dl.performance)};
El=function(a){return a?a.passive&&Eha()?a:a.capture||!1:!1};
Fl=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,El(d)),!0):!1};
Gl=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
Fha=function(){};
Gha=function(){return(ic||jc)&&lc?lc.mobile:!Hl()&&(nc("iPod")||nc("iPhone")||nc("Android")||nc("IEMobile"))};
Hl=function(){return(ic||jc)&&lc?!lc.mobile&&(nc("iPad")||nc("Android")||nc("Silk")):nc("iPad")||nc("Android")&&!nc("Mobile")||nc("Silk")};
Il=function(a){try{return!!a&&null!=a.location.href&&Ic(a,"foo")}catch(b){return!1}};
Jl=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
Iha=function(){var a=[];Jl(Hha,function(b){a.push(b)});
return a};
Jha=function(a){var b,c;return null!=(c=null==(b=/https?:\/\/[^\/]+/.exec(a))?void 0:b[0])?c:""};
Mha=function(){var a=Kha("IFRAME"),b={};g.Ub(Lha(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
Kha=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};
Nha=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,Il(a)&&(b=a);return b};
Rha=function(a){a=a||Kl();for(var b=new Oha(g.Ja.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&Pha.test(f.url)&&(c=f);if(f.url&&!f.IM){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Qha(b,e,c)};
Kl=function(){var a=g.Ja,b=[],c=null;do{var d=a;if(Il(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new Oha(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.Ja;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)e=b[a],e.url||(e.url=d.location.ancestorOrigins[a-1]||"",e.IM=!0);return b};
Qha=function(a,b,c){this.j=a;this.u=b;this.B=c};
Oha=function(a,b){this.url=a;this.IM=!!b;this.depth=null};
Wl=function(){this.B="&";this.u={};this.C=0;this.j=[]};
Xl=function(a,b){var c={};c[a]=b;return[c]};
Sha=function(a,b,c,d,e){var f=[];Jl(a,function(h,l){(h=Yl(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
Yl=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],h=0;h<a.length;h++)f.push(Yl(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(Sha(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
Tha=function(a){var b=1,c;for(c in a.u)b=c.length>b?c.length:b;return 3997-b-a.B.length-1};
Zl=function(a,b){this.j=a;this.depth=b};
Vha=function(){function a(l,m){return null==l?m:l}
var b=Kl(),c=Math.max(b.length-1,0),d=Rha(b);b=d.j;var e=d.u,f=d.B,h=[];f&&h.push(new Zl([f.url,f.IM?2:0],a(f.depth,1)));e&&e!=f&&h.push(new Zl([e.url,2],0));b.url&&b!=f&&h.push(new Zl([b.url,0],a(b.depth,c)));d=g.$l(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=Jha(b.url))&&d.push([new Zl([e,1],a(b.depth,c))]);d.push([]);return g.$l(d,function(l){return Uha(c,l)})};
Uha=function(a,b){g.am(b,function(e){return 0<=e.depth});
var c=bm(b,function(e,f){return Math.max(e,f.depth)},-1),d=Caa(c+2);
d[0]=a;g.Ub(b,function(e){return d[e.depth+1]=e.j});
return d};
Wha=function(){var a=void 0===a?Vha():a;return a.map(function(b){return Yl(b)})};
Xha=function(a){var b=!1;b=void 0===b?!1:b;Dl.google_image_requests||(Dl.google_image_requests=[]);var c=Kha("IMG",Dl.document);b&&(c.attributionSrc="");c.src=a;Dl.google_image_requests.push(c)};
cm=function(a){var b="Sg";if(a.Sg&&a.hasOwnProperty(b))return a.Sg;var c=new a;a.Sg=c;a.hasOwnProperty(b);return c};
dm=function(){this.u=new Fha;this.j=Bl()?new Cl:new Al};
Yha=function(){em();var a=Dl.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Dl.setInterval&&"function"===typeof Dl.clearInterval&&"function"===typeof Dl.setTimeout&&"function"===typeof Dl.clearTimeout)};
Zha=function(){em();return Wha()};
$ha=function(){};
em=function(){return cm($ha).getContext()};
fm=function(a){P.call(this,a)};
aia=function(a){this.B=a;this.j=-1;this.u=this.C=0};
gm=function(a,b){return function(){var c=g.Ca.apply(0,arguments);if(-1<a.j)return b.apply(null,g.la(c));try{return a.j=a.B.j.now(),b.apply(null,g.la(c))}finally{a.C+=a.B.j.now()-a.j,a.j=-1,a.u+=1}}};
bia=function(a,b){this.u=a;this.B=b;this.j=new aia(a)};
cia=function(){this.j={}};
eia=function(){var a=hm().flags,b=dia;a=a.j[b.key];if("proto"===b.valueType){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};
iia=function(){this.B=void 0;this.u=this.I=0;this.D=-1;this.Ac=new ul;vl(this.Ac,"mv",fia).j=!0;vl(this.Ac,"omid",zl);vl(this.Ac,"epoh",zl).j=!0;vl(this.Ac,"epph",zl).j=!0;vl(this.Ac,"umt",zl).j=!0;vl(this.Ac,"phel",zl).j=!0;vl(this.Ac,"phell",zl).j=!0;vl(this.Ac,"oseid",gia).j=!0;var a=this.Ac;a.j.sloi||(a.j.sloi=new sl);a.j.sloi.j=!0;vl(this.Ac,"mm",im);vl(this.Ac,"ovms",hia).j=!0;vl(this.Ac,"xdi",zl).j=!0;vl(this.Ac,"amp",zl).j=!0;vl(this.Ac,"prf",zl).j=!0;vl(this.Ac,"gtx",zl).j=!0;vl(this.Ac,
"mvp_lv",zl).j=!0;vl(this.Ac,"ssmol",zl).j=!0;vl(this.Ac,"fmd",zl).j=!0;this.j=new bia(em(),this.Ac);this.C=!1;this.flags=new cia};
hm=function(){return cm(iia)};
jia=function(a,b,c,d){if(Math.random()<(d||a.j))try{if(c instanceof Wl)var e=c;else e=new Wl,Jl(c,function(h,l){var m=e,n=m.C++;h=Xl(l,h);m.j.push(n);m.u[n]=h});
var f=e.Ze(a.u,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");f&&(em(),Xha(f))}catch(h){}};
kia=function(a,b,c){c=void 0===c?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c};
lia=function(){var a=void 0===a?g.Ja:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.Va()};
mia=function(){var a=void 0===a?g.Ja:a;return(a=a.performance)&&a.now?a.now():null};
nia=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.taskId=this.slotId=void 0};
km=function(){var a=window;this.events=[];this.u=a||g.Ja;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=jm()||(null!=b?b:1>Math.random())};
oia=function(a){a&&lm&&jm()&&(lm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),lm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
pia=function(){var a=mm;this.j=nm;this.sT="jserror";this.rP=!0;this.oK=null;this.u=this.eN;this.Ec=void 0===a?null:a};
qia=function(a,b,c){var d=om;return gm(hm().j.j,function(){try{if(d.Ec&&d.Ec.j){var e=d.Ec.start(a.toString(),3);var f=b();d.Ec.end(e)}else f=b()}catch(l){var h=d.rP;try{oia(e),h=d.u(a,new pm(qm(l)),void 0,c)}catch(m){d.eN(217,m)}if(!h)throw l;}return f})()};
rm=function(a,b,c,d){return gm(hm().j.j,function(){var e=g.Ca.apply(0,arguments);return qia(a,function(){return b.apply(c,e)},d)})};
qm=function(a){var b=a.toString();a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(e){b=c}}return b};
pm=function(a){kia.call(this,Error(a),{message:a})};
ria=function(){Dl&&"undefined"!=typeof Dl.google_measure_js_timing&&(Dl.google_measure_js_timing||mm.disable())};
sia=function(a){om.oK=function(b){g.Ub(a,function(c){c(b)})}};
tia=function(a,b){return qia(a,b)};
sm=function(a,b){return rm(a,b)};
tm=function(a,b,c,d){om.eN(a,b,c,d)};
um=function(){return Date.now()-uia};
via=function(){var a=hm().B,b=0<=vm?um()-vm:-1,c=wm?um()-xm:-1,d=0<=ym?um()-ym:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];tm(637,Error(),.001);var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var h=e[b];break}void 0===h&&(h=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:h};
zm=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
Am=function(a){return a.right-a.left};
Bm=function(a,b){return a==b?!0:a&&b?a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left:!1};
Cm=function(a,b,c){b instanceof g.ve?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,"number"===typeof c&&(a.top+=c,a.bottom+=c));return a};
Dm=function(a,b,c){var d=new zm(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.j=d;this.u=c};
Em=function(a,b,c,d,e,f,h,l){this.C=a;this.J=b;this.B=c;this.I=d;this.j=e;this.D=f;this.u=h;this.V=l};
xia=function(a){var b=a!==a.top,c=a.top===Nha(a),d=-1,e=0;if(b&&c&&a.top.mraid){d=3;var f=a.top.mraid}else d=(f=a.mraid)?b?c?2:1:0:-1;f&&(f.IS_GMA_SDK||(e=2),dba(wia,function(h){return"function"===typeof f[h]})||(e=1));
return{hn:f,compatibility:e,h9:d}};
yia=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint};
zia=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.xe(b.innerWidth,b.innerHeight)).round():ica(b||window).round()}catch(d){return new g.xe(-12245933,-12245933)}};
Fm=function(a,b,c){try{a&&(b=b.top);var d=zia(a,b,c),e=d.height,f=d.width;if(-12245933===f)return new zm(f,f,f,f);var h=kca(Me(b.document).j),l=h.x,m=h.y;return new zm(m,l+f,m+e,l)}catch(n){return new zm(-12245933,-12245933,-12245933,-12245933)}};
g.Gm=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
Hm=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.Jm=function(a,b,c){if("string"===typeof b)(b=Im(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Im(c,d);f&&(c.style[f]=e)}};
Im=function(a,b){var c=Aia[b];if(!c){var d=cca(b);c=d;void 0===a.style[d]&&(d=(g.Nc?"Webkit":Km?"Moz":g.Ve?"ms":null)+eca(d),void 0!==a.style[d]&&(c=d));Aia[b]=c}return c};
g.Lm=function(a,b){var c=a.style[cca(b)];return"undefined"!==typeof c?c:a.style[Im(a,b)]||""};
Mm=function(a,b){var c=Le(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
Nm=function(a,b){return Mm(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Pm=function(a,b,c){if(b instanceof g.ve){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Om(d,!1);a.style.top=g.Om(b,!1)};
Qm=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
Bia=function(a){if(g.Ve&&!g.Mc(8))return a.offsetParent;var b=Le(a),c=Nm(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=Nm(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null};
g.Rm=function(a){var b=Le(a),c=new g.ve(0,0);var d=b?Le(b):document;d=!g.Ve||g.Mc(9)||"CSS1Compat"==Me(d).j.compatMode?d.documentElement:d.body;if(a==d)return c;a=Qm(a);b=kca(Me(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Dia=function(a,b){var c=new g.ve(0,0),d=We(Le(a));if(!Ic(d,"parent"))return c;do{var e=d==b?g.Rm(a):Cia(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.Sm=function(a,b){a=Eia(a);b=Eia(b);return new g.ve(a.x-b.x,a.y-b.y)};
Cia=function(a){a=Qm(a);return new g.ve(a.left,a.top)};
Eia=function(a){if(1==a.nodeType)return Cia(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.ve(a.clientX,a.clientY)};
g.Tm=function(a,b,c){if(b instanceof g.xe)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Om(b,!0);a.style.height=g.Om(c,!0)};
g.Om=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Um=function(a){var b=Fia;if("none"!=Nm(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a};
Fia=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Nc&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Qm(a),new g.xe(a.right-a.left,a.bottom-a.top)):new g.xe(b,c)};
g.Vm=function(a,b){a.style.display=b?"":"none"};
Wm=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
Gia=function(a){return new zm(a.top,a.right,a.bottom,a.left)};
Hia=function(a){var b=a.top||0,c=a.left||0;return new zm(b,c+(a.width||0),b+(a.height||0),c)};
Xm=function(a){return null!=a&&0<=a&&1>=a};
Iia=function(){var a=g.hc();return a?Ym("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return dc(a,b)})||dc(a,"OMI/")&&!dc(a,"XiaoMi/")?!0:dc(a,"Presto")&&dc(a,"Linux")&&!dc(a,"X11")&&!dc(a,"Android")&&!dc(a,"Mobi"):!1};
Jia=function(){this.B=!Il(Dl.top);this.isMobileDevice=Hl()||Gha();var a=Kl();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.Pi(a[a.length-1].url)||"":"";this.j=new zm(0,0,0,0);this.C=new g.xe(0,0);this.D=new g.xe(0,0);this.J=new zm(0,0,0,0);this.I=0;this.V=!1;this.u=!(!Dl||!xia(Dl).hn);this.update(Dl)};
Kia=function(a,b){b&&b.screen&&(a.C=new g.xe(b.screen.width,b.screen.height))};
Lia=function(a,b){var c=a.j?new g.xe(Am(a.j),a.j.getHeight()):new g.xe(0,0);b=void 0===b?Dl:b;null!==b&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if("CSS1Compat"==f.compatMode&&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):m<p?(d=m,e=n):(d=p,e=q)}var t=new g.xe(e,d)}catch(w){t=new g.xe(-12245933,-12245933)}a.D=t};
an=function(){var a=Zm();if(0<a.I||a.V)return!0;a=em().u.isVisible();var b=0===Gl($m);return a||b};
Zm=function(){return cm(Jia)};
bn=function(a){this.B=a;this.u=0;this.j=null};
cn=function(a,b,c){this.B=a;this.Pa=void 0===c?"na":c;this.D=[];this.isInitialized=!1;this.C=new Dm(-1,!0,this);this.j=this;this.V=b;this.Z=this.ea=!1;this.Ga="uk";this.Aa=!1;this.I=!0};
dn=function(a,b){g.wb(a.D,b)||(a.D.push(b),b.Gy(a.j),b.Gs(a.C),b.hp()&&(a.ea=!0))};
Mia=function(a){a=a.j;a.rR();a.qR();var b=Zm();b.J=Fm(!1,a.B,b.isMobileDevice);Lia(Zm(),a.B);a.C.j=a.cU()};
Nia=function(a){a.ea=a.D.length?Ym(a.D,function(b){return b.hp()}):!1};
Oia=function(a){var b=g.Db(a.D);g.Ub(b,function(c){c.Gs(a.C)})};
en=function(a){var b=g.Db(a.D);g.Ub(b,function(c){c.Gy(a.j)});
a.j!=a||Oia(a)};
fn=function(a,b,c,d){this.element=a;this.j=new zm(0,0,0,0);this.C=new zm(0,0,0,0);this.u=b;this.Ac=c;this.oa=d;this.Z=!1;this.timestamp=-1;this.J=new Em(b.C,this.element,this.j,new zm(0,0,0,0),0,0,um(),0)};
gn=function(a){this.D=!1;this.j=a;this.C=function(){}};
Pia=function(a,b,c){this.B=void 0===c?0:c;this.u=a;this.j=null==b?"":b};
Qia=function(a){switch(Math.trunc(a.B)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
Ria=function(a,b){return a.B<b.B?!0:a.B>b.B?!1:a.u<b.u?!0:a.u>b.u?!1:typeof a.j<typeof b.j?!0:typeof a.j>typeof b.j?!1:a.j<b.j};
hn=function(){this.B=0;this.j=[];this.u=!1};
Sia=function(a,b){(0,g.Ub)(b.j,function(c){a.add(c.u,c.j,Qia(c))})};
jn=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;Jl(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
kn=function(a){var b=Tia;a.u&&(g.Rb(a.j,function(c,d){return Ria(d,c)?1:Ria(c,d)?-1:0}),a.u=!1);
return bm(a.j,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
Tia=function(a){var b=a.u;a=a.j;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.wb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Uia=function(a){var b=void 0===b?!0:b;this.j=new hn;void 0!==a&&Sia(this.j,a);b&&this.j.add("v","unreleased",-16)};
Via=function(a){var b=[],c=[];g.Vc(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d)switch(Array.isArray(d)&&(d=d.join(",")),d=[e,"=",d].join(""),e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":b.unshift(d);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(d);break;default:b.push(d)}});
return b.concat(c)};
Wia=function(a){a=a.toString();a=a.substring(0,4E3);em();Xha(a)};
Xia=function(){this.j=0};
Yia=function(a,b,c){(0,g.Ub)(a.B,function(d){var e=a.j;if(!d.j&&(d.B(b,c),d.C())){d.j=!0;var f=d.u(),h=new hn;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.D);d=cm(Xia);h.add("i",d.j++);h.add("adk",e);jn(h,f);e=new Uia(h);Wia(e)}})};
ln=function(){this.u=this.B=this.C=this.j=0};
wn=function(a){this.u=a=void 0===a?Zia:a;this.j=g.$l(this.u,function(){return new ln})};
xn=function(a,b){return $ia(a,function(c){return c.j},void 0===b?!0:b)};
zn=function(a,b){return yn(a,b,function(c){return c.j})};
aja=function(a,b){return $ia(a,function(c){return c.B},void 0===b?!0:b)};
An=function(a,b){return yn(a,b,function(c){return c.B})};
Bn=function(a,b){return yn(a,b,function(c){return c.u})};
bja=function(a){g.Ub(a.j,function(b){b.u=0})};
$ia=function(a,b,c){a=g.$l(a.j,function(d){return b(d)});
return c?a:cja(a)};
yn=function(a,b,c){var d=g.vb(a.u,function(e){return b<=e});
return-1==d?0:c(a.j[d])};
cja=function(a){return g.$l(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
Cn=function(){this.u=new wn;this.Pa=new ln;this.oa=this.J=-1;this.Za=1E3;this.ib=new wn([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Ga=this.ya=-1};
Dn=function(a,b){return aja(a.u,void 0===b?!0:b)};
En=function(a,b,c,d){var e=void 0===e?!1:e;c=rm(d,c);Fl(a,b,c,{capture:e})};
Gn=function(a,b){b=Fn(b);return 0===b?0:Fn(a)/b};
Fn=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
dja=function(a,b){if(!a||!b)return!1;for(var c=0;null!==a&&100>c++;){if(a===b)return!0;try{if(a=g.kf(a)||a){var d=Le(a),e=d&&We(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
eja=function(a,b,c){if(!a||!b)return!1;b=Cm(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Il(window.top)&&window.top&&window.top.document&&(window=window.top);if(!yia())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Le(c))&&b.defaultView&&b.defaultView.frameElement)&&dja(b,a);var d=a===c;a=!d&&a&&sf(a,function(e){return e===c});
return!(b||d||a)};
fja=function(a,b,c,d){return Zm().B?!1:0>=Am(a)||0>=a.getHeight()?!0:c&&d?tia(208,function(){return eja(a,b,c)}):!1};
Hn=function(a,b,c){g.E.call(this);this.position=gja.clone();this.JG=this.VF();this.aN=-2;this.w9=Date.now();this.lY=-1;this.Wo=b;this.zG=null;this.pB=!1;this.VG=null;this.opacity=-1;this.requestSource=c;this.C9=!1;this.gN=function(){};
this.BY=function(){};
this.zj=new Dha;this.zj.Rs=a;this.zj.j=a;this.Ls=!1;this.Gu={sN:null,rN:null};this.MX=!0;this.WD=null;this.Ly=this.t4=!1;hm().I++;this.yh=this.TL();this.hY=-1;this.nf=null;this.hasCompleted=this.q4=!1;this.Ac=new ul;Cha(this.Ac);hja(this);1==this.requestSource?wl(this.Ac,"od",1):wl(this.Ac,"od",0)};
hja=function(a){a=a.zj.Rs;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:ija&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+dca()):!!a.getAttribute("data-"+dca());b&&(Zm().u=!0)};
In=function(a,b){b!=a.Ly&&(a.Ly=b,a=Zm(),b?a.I++:0<a.I&&a.I--)};
jja=function(a,b){if(a.nf){if(b.getName()===a.nf.getName())return;a.nf.dispose();a.nf=null}b=b.create(a.zj.j,a.Ac,a.hp());if(b=null!=b&&b.uJ()?b:null)a.nf=b};
kja=function(a,b,c){if(!a.zG||-1==a.Wo||-1===b.u||-1===a.zG.u)return 0;a=b.u-a.zG.u;return a>c?0:a};
lja=function(a,b,c){if(a.nf){a.nf.Hr();var d=a.nf.J,e=d.C,f=e.j;if(null!=d.I){var h=d.B;a.VG=new g.ve(h.left-f.left,h.top-f.top)}f=a.hI()?Math.max(d.j,d.D):d.j;h={};null!==e.volume&&(h.volume=e.volume);e=a.UT(d);a.zG=d;a.Qa(f,b,c,!1,h,e,d.V)}};
mja=function(a){if(a.pB&&a.WD){var b=1==xl(a.Ac,"od"),c=Zm().j,d=a.WD,e=a.nf?a.nf.getName():"ns",f=new g.xe(Am(c),c.getHeight());c=a.hI();a={l9:e,VG:a.VG,Y9:f,hI:c,Yd:a.yh.Yd,R9:b};if(b=d.u){b.Hr();e=b.J;f=e.C.j;var h=null,l=null;null!=e.I&&f&&(h=e.B,h=new g.ve(h.left-f.left,h.top-f.top),l=new g.xe(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.D):e.j;c={l9:b.getName(),VG:h,Y9:l,hI:c,R9:!1,Yd:e}}else c=null;c&&Yia(d,a,c)}};
nja=function(a,b,c){b&&(a.gN=b);c&&(a.BY=c)};
g.Jn=function(){};
g.Kn=function(a){return{value:a,done:!1}};
oja=function(){this.C=this.j=this.B=this.u=this.D=0};
pja=function(a){var b={};var c=g.Va()-a.D;b=(b.ptlt=c,b);(c=a.u)&&(b.pnk=c);(c=a.B)&&(b.pnc=c);(c=a.C)&&(b.pnmm=c);(a=a.j)&&(b.pns=a);return b};
qja=function(){pl.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
Ln=function(a){return Xm(a.volume)&&0<a.volume};
Mn=function(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?function(){return!0}:d;
return function(e){var f=e[a];if(Array.isArray(f)&&d(e))return rja(f,b,c)}};
Nn=function(a,b){return function(c){return b(c)?c[a]:void 0}};
sja=function(a){return function(b){for(var c=0;c<a.length;c++)if(a[c]===b.e||void 0===a[c]&&!b.hasOwnProperty("e"))return!0;return!1}};
rja=function(a,b,c){return void 0===c||c?g.On(a,function(d,e){return g.wb(b,e)}):g.$l(b,function(d,e,f){return a.slice(0<e?f[e-1]+1:0,d+1).reduce(function(h,l){return h+l},0)})};
Pn=function(){this.u=this.j=""};
tja=function(){};
Qn=function(a,b){var c={};if(void 0!==a)if(null!=b)for(var d in b){var e=b[d];d in Object.prototype||null!=e&&(c[d]="function"===typeof e?e(a):a[e])}else g.ld(c,a);return kn(jn(new hn,c))};
uja=function(){var a={};this.u=(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);this.j={};for(var b in this.u)0<this.u[b][1]&&(this.j[b]=0);this.B=0};
Rn=function(a,b){var c=a.u[b],d=c[1];a.B+=c[0];0<d&&0==a.j[b]&&(a.j[b]=1)};
vja=function(a){var b=g.ad(a.u),c=0,d;for(d in a.j)g.wb(b,d)&&1==a.j[d]&&(c+=a.u[d][1],a.j[d]=2);return c};
wja=function(a){var b=0,c;for(c in a.j){var d=a.j[c];if(1==d||2==d)b+=a.u[c][1]}return b};
Sn=function(){this.j=this.u=0};
Tn=function(){Cn.call(this);this.B=new ln;this.La=this.ea=this.Aa=0;this.V=-1;this.ob=new ln;this.D=new ln;this.j=new wn;this.I=this.C=-1;this.Z=new ln;this.Za=2E3;this.Ja=new Sn;this.Ya=new Sn;this.Wa=new Sn};
Un=function(a,b,c){var d=a.La;wm||c||-1==a.V||(d+=b-a.V);return d};
xja=function(){this.B=!1};
Vn=function(a,b){this.B=!1;this.C=a;this.ea=b;this.D=0};
Wn=function(a,b){Vn.call(this,a,b);this.J=[]};
yja=function(){};
Xn=function(){};
Yn=function(a,b,c,d){fn.call(this,a,b,c,d)};
Zn=function(a,b,c){fn.call(this,null,a,b,c);this.I=a.isActive();this.D=0};
$n=function(a){return[a.top,a.left,a.bottom,a.right]};
ao=function(a,b,c,d,e,f){f=void 0===f?new Xn:f;Hn.call(this,b,c,d);this.qO=e;this.fL=0;this.Dh={};this.Pg=new uja;this.TY={};this.Yh="";this.Ya=null;this.Nb=!1;this.j=[];this.Cq=f.u();this.I=f.B();this.C=null;this.B=-1;this.La=this.ea=void 0;this.oa=this.Z=0;this.Ga=-1;this.ib=this.Za=!1;this.Aa=this.V=this.u=this.gA=this.tb=0;new wn;this.Ja=this.Pa=0;this.Wa=-1;this.Fi=0;this.J=g.Hd;this.ya=[this.VF()];this.Gb=2;this.yw={};this.yw.pause="p";this.yw.resume="r";this.yw.skip="s";this.yw.mute="m";this.yw.unmute=
"um";this.yw.exitfullscreen="ef";this.D=null;this.ob=!1};
bo=function(a){a.hasCompleted=!0;0!=a.Fi&&(a.Fi=3)};
co=function(a){return void 0===a?a:Number(a)?Wm(a,3):0};
eo=function(a,b){return a.ya[null!=b&&b<a.ya.length?b:a.ya.length-1]};
zja=function(a){var b=!!xl(hm().Ac,"umt");return a.ea||!b&&!a.La?0:1};
Aja=function(a,b){a.tq()?b=0:-1==a.Wo?b=0:(b-=a.Wo,b=b>Math.max(1E4,a.B/3)?0:b);var c=a.J(a)||{};c=void 0!==c.currentTime?c.currentTime:a.Z;var d=c-a.Z,e=0;0<=d?(a.oa+=b,a.Ja+=Math.max(b-d,0),e=Math.min(d,a.oa)):a.Pa+=Math.abs(d);0!=d&&(a.oa=0);-1==a.Wa&&0<d&&(a.Wa=0<=ym?um()-ym:-1);a.Z=c;return e};
Bja=function(a,b){Ym(a.I,function(c){return c.C==b.C})||a.I.push(b)};
Cja=function(a){var b=zn(a.bj().j,1);return fo(a,b)};
fo=function(a,b,c){return 15E3<=b?!0:a.Za?(void 0===c?0:c)?!0:0<a.B?b>=a.B/2:0<a.Ga?b>=a.Ga:!1:!1};
Dja=function(a){var b=Wm(a.yh.Yd,2),c=a.Pg.B,d=a.yh,e=eo(a),f=co(e.C),h=co(e.I),l=co(d.volume),m=Wm(e.J,2),n=Wm(e.oa,2),p=Wm(d.Yd,2),q=Wm(e.ya,2),t=Wm(e.Ga,2);d=Wm(d.Tj,2);a=a.zs().clone();a.round();e=Dn(e,!1);return{X9:b,kC:c,NG:f,GG:h,VA:l,OG:m,HG:n,Yd:p,QG:q,IG:t,Tj:d,position:a,TG:e}};
Fja=function(a,b){Eja(a.j,b,function(){return{X9:0,kC:void 0,NG:-1,GG:-1,VA:-1,OG:-1,HG:-1,Yd:-1,QG:-1,IG:-1,Tj:-1,position:void 0,TG:[]}});
a.j[b]=Dja(a)};
Eja=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
ho=function(a,b,c){var d=a.TY[b];if(null!=d)return d;d=Gja(a,b);var e=ed(go,function(f){return f==b});
a=Hja(a,d,d,c,Ija[go[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
io=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
Hja=function(a,b,c,d,e){if(a.Ls)return{"if":0,vs:0};var f=a.zs().clone();f.round();var h=Zm(),l=hm(),m=a.bj(),n=a.nf?a.nf.getName():"ns",p={};p["if"]=h.B?1:void 0;p.sdk=a.C?a.C:void 0;p.t=a.w9;p.p=[f.top,f.left,f.bottom,f.right];p.tos=xn(m.u,!1);p.mtos=Dn(m);p.mcvt=m.Pa.B;p.ps=void 0;f=Un(m,um(),a.tq());p.vht=f;p.mut=m.ob.B;p.a=co(a.yh.volume);p.mv=co(m.I);p.fs=a.Ly?1:0;p.ft=m.Z.j;p.at=m.D.j;p.as=0<m.C?1:0;p.atos=xn(m.j);p.ssb=xn(m.ib,!1);p.amtos=aja(m.j,!1);p.uac=a.tb;p.vpt=m.B.j;"nio"==n&&(p.nio=
1,p.avms="nio");p.gmm="4";p.gdr=fo(a,m.B.j,!0)?1:0;p.efpf=a.Gb;if("gsv"==n||"nis"==n)n=a.nf,0<n.D&&(p.nnut=n.D);p.tcm=zja(a);p.nmt=a.Pa;p.bt=a.Ja;p.pst=a.Wa;p.vpaid=a.ea;p.dur=a.B;p.vmtime=a.Z;p.is=a.Pg.B;1<=a.j.length&&(p.i0=a.j[0].kC,p.a0=[a.j[0].VA],p.c0=[a.j[0].Yd],p.ss0=[a.j[0].Tj],n=a.j[0].position,p.p0=n?$n(n):void 0);2<=a.j.length&&(p.i1=a.j[1].kC,p.a1=io(a.j[1].NG,a.j[1].VA,a.j[1].GG),p.c1=io(a.j[1].OG,a.j[1].Yd,a.j[1].HG),p.ss1=io(a.j[1].QG,a.j[1].Tj,a.j[1].IG),n=a.j[1].position,p.p1=n?
$n(n):void 0,p.mtos1=a.j[1].TG);3<=a.j.length&&(p.i2=a.j[2].kC,p.a2=io(a.j[2].NG,a.j[2].VA,a.j[2].GG),p.c2=io(a.j[2].OG,a.j[2].Yd,a.j[2].HG),p.ss2=io(a.j[2].QG,a.j[2].Tj,a.j[2].IG),n=a.j[2].position,p.p2=n?$n(n):void 0,p.mtos2=a.j[2].TG);4<=a.j.length&&(p.i3=a.j[3].kC,p.a3=io(a.j[3].NG,a.j[3].VA,a.j[3].GG),p.c3=io(a.j[3].OG,a.j[3].Yd,a.j[3].HG),p.ss3=io(a.j[3].QG,a.j[3].Tj,a.j[3].IG),n=a.j[3].position,p.p3=n?$n(n):void 0,p.mtos3=a.j[3].TG);p.cs=wja(a.Pg);b&&(p.ic=vja(a.Pg),p.dvpt=m.B.u,p.dvs=Bn(m.u,
.5),p.dfvs=Bn(m.u,1),p.davs=Bn(m.j,.5),p.dafvs=Bn(m.j,1),c&&(m.B.u=0,bja(m.u),bja(m.j)),a.uq()&&(p.dtos=m.Aa,p.dav=m.ea,p.dtoss=a.fL+1,c&&(m.Aa=0,m.ea=0,a.fL++)),p.dat=m.D.u,p.dft=m.Z.u,c&&(m.D.u=0,m.Z.u=0));p.ps=[h.D.width,h.D.height];p.bs=[Am(h.j),h.j.getHeight()];p.scs=[h.C.width,h.C.height];p.dom=h.domain;a.gA&&(p.vds=a.gA);if(0<a.I.length||a.Cq)b=g.Db(a.I),a.Cq&&b.push(a.Cq),p.pings=g.$l(b,function(q){return q.toString()});
b=g.$l(g.On(a.I,function(q){return q.I()}),function(q){return q.getId()});
yaa(b);p.ces=b;a.u&&(p.vmer=a.u);a.V&&(p.vmmk=a.V);a.Aa&&(p.vmiec=a.Aa);p.avms=a.nf?a.nf.getName():"ns";a.nf&&g.ld(p,a.nf.qs());d?(p.c=Wm(a.yh.Yd,2),p.ss=Wm(a.yh.Tj,2)):p.tth=um()-Jja;p.mc=Wm(m.oa,2);p.nc=Wm(m.J,2);p.mv=co(m.I);p.nv=co(m.C);p.lte=Wm(a.aN,2);d=eo(a,e);Dn(m);p.qmtos=Dn(d);p.qnc=Wm(d.J,2);p.qmv=co(d.I);p.qnv=co(d.C);p.qas=0<d.C?1:0;p.qi=a.Yh;p.avms||(p.avms="geo");p.psm=m.Ja.j;p.psv=m.Ja.getValue();p.psfv=m.Ya.getValue();p.psa=m.Wa.getValue();l=Aha(l.Ac);l.length&&(p.veid=l);a.D&&g.ld(p,
pja(a.D));p.avas=a.MF();p.vs=a.eU();return p};
Gja=function(a,b){if(g.wb(Kja,b))return!0;var c=a.Dh[b];return void 0!==c?(a.Dh[b]=!0,!c):!1};
Mja=function(){this.j={};var a=We();jo(this,a,document);var b=Lja();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)jo(this,c,c.document);jo(this,a.top,a.top.document)}}catch(d){}};
Lja=function(){var a=document.documentElement;try{if(!Il(We().top))return"2";var b=[],c=We(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&0!=b.length?"1":"0"}catch(d){return"2"}};
jo=function(a,b,c){En(c,"mousedown",function(){return Nja(a)},301);
En(b,"scroll",function(){return Oja(a)},302);
En(c,"touchmove",function(){return Pja(a)},303);
En(c,"mousemove",function(){return Qja(a)},304);
En(c,"keydown",function(){return Rja(a)},305)};
Nja=function(a){g.Vc(a.j,function(b){1E5<b.B||++b.B})};
Oja=function(a){g.Vc(a.j,function(b){1E5<b.j||++b.j})};
Pja=function(a){g.Vc(a.j,function(b){1E5<b.j||++b.j})};
Rja=function(a){g.Vc(a.j,function(b){1E5<b.u||++b.u})};
Qja=function(a){g.Vc(a.j,function(b){1E5<b.C||++b.C})};
Sja=function(){this.j=[];this.u=[]};
ko=function(a,b){return g.sb(a.j,function(c){return c.Yh==b})};
Tja=function(a,b){return b?g.sb(a.j,function(c){return c.zj.Rs==b}):null};
Uja=function(a,b){return g.sb(a.u,function(c){return 2==c.Io()&&c.Yh==b})};
mo=function(){var a=lo;return 0==a.j.length?a.u:0==a.u.length?a.j:g.Cb(a.u,a.j)};
Vja=function(a,b){a=1==b.Io()?a.j:a.u;var c=rb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.nf&&b.nf.FA(),b.dispose(),!0):!1};
Wja=function(a){var b=lo;if(Vja(b,a)){switch(a.Io()){case 0:var c=function(){return null};
case 2:c=function(){return Uja(b,a.Yh)};
break;case 1:c=function(){return ko(b,a.Yh)}}for(var d=c();d;d=c())Vja(b,d)}};
Xja=function(a,b){var c=lo;a=g.On(a,(void 0===b?0:b)?function(d){return!ko(c,d.Yh)}:function(d){return!Tja(c,d.zj.Rs)});
c.j.push.apply(c.j,g.la(a))};
Yja=function(a){var b=[];g.Ub(a,function(c){Ym(lo.j,function(d){return d.zj.Rs===c.zj.Rs&&d.Yh===c.Yh})||(lo.j.push(c),b.push(c))})};
no=function(){this.j=this.u=null};
Zja=function(a,b){function c(d,e){b(d,e)}
if(null==a.u)return!1;a.j=g.sb(a.u,function(d){return null!=d&&d.sR()});
a.j&&(a.j.init(c)?Mia(a.j.j):b(a.j.j.wy(),a.j));return null!=a.j};
oo=function(a){a=$ja(a);gn.call(this,a.length?a[a.length-1]:new cn(Dl,0));this.B=a;this.u=null};
$ja=function(a){if(!a.length)return[];a=(0,g.On)(a,function(c){return null!=c&&c.EA()});
for(var b=1;b<a.length;b++)dn(a[b-1],a[b]);return a};
po=function(a,b,c,d){fn.call(this,a,b,c,d);this.ea=this.V=this.D=this.I=this.B=null};
qo=function(a){return a.B&&a.B.takeRecords?a.B.takeRecords():[]};
bka=function(a){if(!a.element)return!1;var b=a.element,c=a.u.j.B,d=hm().j.j;a.B=new c.IntersectionObserver(gm(d,function(e){return ro(a,e)}),aka);
d=gm(d,function(){a.B.unobserve(b);a.B.observe(b);ro(a,qo(a))});
c.ResizeObserver?(a.I=new c.ResizeObserver(d),a.I.observe(b)):c.MutationObserver&&(a.D=new g.Ja.MutationObserver(d),a.D.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.B.observe(b);ro(a,qo(a));return!0};
ro=function(a,b){try{if(b.length){a.V||(a.V=um());var c=cka(b),d=Dia(a.element,a.u.j.B),e=d.x,f=d.y;a.j=new zm(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=Gia(c.intersectionRect);a.C=Cm(h,a.j.left-h.left,a.j.top-h.top)}}catch(l){a.FA(),tm(299,l)}};
cka=function(a){return bm(a,function(b,c){return b.time>c.time?b:c},a[0])};
so=function(a){a=void 0===a?Dl:a;gn.call(this,new cn(a,2))};
to=function(){var a=dka();cn.call(this,Dl.top,a,"geo")};
dka=function(){hm();var a=Zm();return a.B||a.u?0:2};
eka=function(){};
uo=function(){this.done=!1;this.j={H1:0,tS:0,D8a:0,lT:0,wM:-1,A2:0,z2:0,B2:0,k9:0};this.D=null;this.I=!1;this.B=null;this.J=0;this.u=new bn(this)};
wo=function(){var a=vo;a.I||(a.I=!0,fka(a,function(){return a.C.apply(a,g.la(g.Ca.apply(0,arguments)))}),a.C())};
gka=function(){cm(eka);var a=cm(no);null!=a.j&&a.j.j?Mia(a.j.j):Zm().update(Dl)};
xo=function(a,b,c){if(!a.done&&(a.u.cancel(),0!=b.length)){a.B=null;try{gka();var d=um();hm().D=d;if(null!=cm(no).j)for(var e=0;e<b.length;e++)lja(b[e],d,c);for(d=0;d<b.length;d++)mja(b[d]);++a.j.lT}finally{c?g.Ub(b,function(f){f.yh.Yd=0}):a.u.schedule()}}};
fka=function(a,b){if(!a.D){b=rm(142,b);em();var c;$m.visibilityState?c="visibilitychange":$m.mozVisibilityState?c="mozvisibilitychange":$m.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Fl($m,c,b,{capture:!1})&&(a.D=b)}};
hka=function(){var a=cm(no);if(null!=a.j){var b=mo(),c=a.j;g.Ub(b,function(d){return jja(d,c)})}};
ika=function(a,b){a=a.J;wm&&(a+=b-xm);return a};
jka=function(a){a=void 0===a?function(){return{}}:a;
om.sT="av-js";nm.j=.01;sia([function(b){var c=hm(),d={};d=(d.bin=c.u,d.type="error",d);c=yl(c.Ac);if(!vo.B){var e=vo,f=Dl.document,h=0<=vm?um()-vm:-1,l=um();-1==e.j.wM&&(h=l);var m=Zm(),n=hm(),p=yl(n.Ac),q=mo();try{if(0<q.length){var t=m.j;t&&(p.bs=[Am(t),t.getHeight()]);var w=m.D;w&&(p.ps=[w.width,w.height]);Dl.screen&&(p.scs=[Dl.screen.width,Dl.screen.height])}else p.url=encodeURIComponent(Dl.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,512)));
p.tt=h;p.pt=vm;p.bin=n.u;void 0!==Dl.google_osd_load_pub_page_exp&&(p.olpp=Dl.google_osd_load_pub_page_exp);p.deb=[1,e.j.H1,e.j.tS,e.j.lT,e.j.wM,0,e.u.u,e.j.A2,e.j.z2,e.j.B2,e.j.k9,-1].join(";");p.tvt=ika(e,l);m.u&&(p.inapp=1);if(null!==Dl&&Dl!=Dl.top){0<q.length&&(p.iframe_loc=encodeURIComponent(Dl.location.href.substring(0,512)));var z=m.J;p.is=[Am(z),z.getHeight()]}}catch(C){p.error=1}vo.B=p}t=g.jd(vo.B);w=hm().j;1==xl(w.B,"prf")?(z=new fm,e=w.j,f=0,-1<e.j&&(f=e.B.j.now()-e.j),z=lh(z,1,ah(e.C+
f),0),e=w.j,z=lh(z,5,-1<e.j?e.u+1:e.u,0),z=lh(z,2,w.u.j.B(),0),z=lh(z,3,w.u.j.u(),0),w=lh(z,4,w.u.j.j(),0),z={},w=(z.pf=g.Zf(w.j()),z)):w={};g.ld(t,w);g.ld(b,d,c,t,a())}])};
lka=function(){var a=kka||Dl;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("&")};
yo=function(){var a="youtube.player.web_20230430_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20230430_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20230430_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20230430_00_RC00".match(/_(\d{8})_\d+_RC\d+$/),b;if(2==(null==(b=a)?void 0:b.length))return a[1];a="youtube.player.web_20230430_00_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return 3==(null==(c=a)?void 0:c.length)?"20"+a[1]+a[2]:null};
mka=function(){return"av.default_js".includes("ima_html5_sdk")?{Ao:"ima",Co:null}:"av.default_js".includes("ima_native_sdk")?{Ao:"nima",Co:null}:"av.default_js".includes("admob-native-video-javascript")?{Ao:"an",Co:null}:"youtube.player.web_20230430_00_RC00".includes("cast_js_sdk")?{Ao:"cast",Co:yo()}:"youtube.player.web_20230430_00_RC00".includes("youtube.player.web")?{Ao:"yw",Co:yo()}:"youtube.player.web_20230430_00_RC00".includes("outstream_web_client")?{Ao:"out",Co:yo()}:"youtube.player.web_20230430_00_RC00".includes("drx_rewarded_web")?
{Ao:"r",Co:yo()}:"youtube.player.web_20230430_00_RC00".includes("gam_native_web_video")?{Ao:"n",Co:yo()}:"youtube.player.web_20230430_00_RC00".includes("admob_interstitial_video")?{Ao:"int",Co:yo()}:{Ao:"j",Co:null}};
Bo=function(a,b){var c={sv:"951"};null!==zo&&(c.v=zo);c.cb=nka;c.nas=lo.j.length;c.msg=a;void 0!==b&&(a=oka(b))&&(c.e=Ao[a]);return c};
Co=function(a){return Xb(a,"custom_metric_viewable")};
oka=function(a){var b=Co(a)?"custom_metric_viewable":a.toLowerCase();return ed(go,function(c){return c==b})};
pka=function(){this.j=void 0;this.u=!1;this.B=0;this.C=-1;this.D="tos"};
ska=function(a){try{var b=a.split(",");return b.length>g.ad(qka).length?null:bm(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===rka[d[0]]||!rka[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
tka=function(a,b){if(void 0==a.j)return 0;switch(a.D){case "mtos":return a.u?An(b.j,a.j):An(b.u,a.j);case "tos":return a.u?zn(b.j,a.j):zn(b.u,a.j)}return 0};
Do=function(a,b,c,d){Vn.call(this,b,d);this.J=a;this.V=c};
Eo=function(){};
Fo=function(a){Vn.call(this,"fully_viewable_audible_half_duration_impression",a)};
Go=function(a){this.j=a};
Ho=function(a,b){Vn.call(this,a,b)};
Io=function(a){Wn.call(this,"measurable_impression",a)};
So=function(){Go.apply(this,arguments)};
To=function(a,b,c){Zn.call(this,a,b,c)};
Uo=function(a){a=void 0===a?Dl:a;gn.call(this,new cn(a,2))};
Vo=function(a,b,c){Zn.call(this,a,b,c)};
Wo=function(a){a=void 0===a?Dl:a;gn.call(this,new cn(a,2))};
Xo=function(){cn.call(this,Dl,2,"mraid");this.Ja=0;this.oa=this.ya=!1;this.J=null;this.u=xia(this.B);this.C.j=new zm(0,0,0,0);this.La=!1};
Yo=function(a,b,c){a.wt("addEventListener",b,c)};
xka=function(a){hm().C=!!a.wt("isViewable");Yo(a,"viewableChange",uka);"loading"===a.wt("getState")?Yo(a,"ready",vka):wka(a)};
wka=function(a){"string"===typeof a.u.hn.AFMA_LIDAR?(a.ya=!0,yka(a)):(a.u.compatibility=3,a.J="nc",a.fail("w"))};
yka=function(a){a.oa=!1;var b=1==xl(hm().Ac,"rmmt"),c=!!a.wt("isViewable");(b?!c:1)&&em().setTimeout(sm(524,function(){a.oa||(zka(a),tm(540,Error()),a.J="mt",a.fail("w"))}),500);
Aka(a);Yo(a,a.u.hn.AFMA_LIDAR,Bka)};
Aka=function(a){var b=1==xl(hm().Ac,"sneio"),c=void 0!==a.u.hn.AFMA_LIDAR_EXP_1,d=void 0!==a.u.hn.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.hn.AFMA_LIDAR_EXP_2=!0);c&&(a.u.hn.AFMA_LIDAR_EXP_1=!b)};
zka=function(a){a.wt("removeEventListener",a.u.hn.AFMA_LIDAR,Bka);a.ya=!1};
Cka=function(a,b){if("loading"===a.wt("getState"))return new g.xe(-1,-1);b=a.wt(b);if(!b)return new g.xe(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.xe(-1,-1):new g.xe(a,b)};
vka=function(){try{var a=cm(Xo);a.wt("removeEventListener","ready",vka);wka(a)}catch(b){tm(541,b)}};
Bka=function(a,b){try{var c=cm(Xo);c.oa=!0;var d=a?new zm(a.y,a.x+a.width,a.y+a.height,a.x):new zm(0,0,0,0);var e=um(),f=an();var h=new Dm(e,f,c);h.j=d;h.volume=b;c.Gs(h)}catch(l){tm(542,l)}};
uka=function(a){var b=hm(),c=cm(Xo);a&&!b.C&&(b.C=!0,c.La=!0,c.J&&c.fail("w",!0))};
Zo=function(){this.isInitialized=!1;this.j=this.u=null;var a={};this.J=(a.start=this.a4,a.firstquartile=this.V3,a.midpoint=this.X3,a.thirdquartile=this.b4,a.complete=this.S3,a.error=this.T3,a.pause=this.pO,a.resume=this.rX,a.skip=this.Z3,a.viewable_impression=this.Jo,a.mute=this.aA,a.unmute=this.aA,a.fullscreen=this.W3,a.exitfullscreen=this.U3,a.fully_viewable_audible_half_duration_impression=this.Jo,a.measurable_impression=this.Jo,a.abandon=this.pO,a.engagedview=this.Jo,a.impression=this.Jo,a.creativeview=
this.Jo,a.progress=this.aA,a.custom_metric_viewable=this.Jo,a.bufferstart=this.pO,a.bufferfinish=this.rX,a.audio_measurable=this.Jo,a.audio_audible=this.Jo,a);a={};this.V=(a.overlay_resize=this.Y3,a.abandon=this.lM,a.close=this.lM,a.collapse=this.lM,a.overlay_unmeasurable_impression=function(b){return ho(b,"overlay_unmeasurable_impression",an())},a.overlay_viewable_immediate_impression=function(b){return ho(b,"overlay_viewable_immediate_impression",an())},a.overlay_unviewable_impression=function(b){return ho(b,
"overlay_unviewable_impression",an())},a.overlay_viewable_end_of_session_impression=function(b){return ho(b,"overlay_viewable_end_of_session_impression",an())},a);
hm().u=3;Dka(this);this.B=!1};
$o=function(a,b,c,d){b=a.BD(null,d,!0,b);b.C=c;Xja([b],a.B);return b};
Eka=function(a,b,c){yha(b);var d=a.j;g.Ub(b,function(e){var f=g.$l(e.criteria,function(h){var l=ska(h);if(null==l)h=null;else if(h=new pka,null!=l.visible&&(h.j=l.visible/100),null!=l.audible&&(h.u=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=Haa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);h.setTime(l,n,m)}return h});
Ym(f,function(h){return null==h})||Bja(c,new Do(e.id,e.event,f,d))})};
Fka=function(){var a=[],b=hm();a.push(cm(to));xl(b.Ac,"mvp_lv")&&a.push(cm(Xo));b=[new Uo,new Wo];b.push(new oo(a));b.push(new so(Dl));return b};
Gka=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=um(),c=hm(),d=Zm();vm=b;c.B=79463069;"o"!==a.u&&(kka=Nha(Dl));if(Yha()){vo.j.tS=0;vo.j.wM=um()-b;var e=Fka(),f=cm(no);f.u=e;Zja(f,function(){ap()})?vo.done||(hka(),dn(f.j.j,a),wo()):d.B?ap():wo()}else bp=!0}catch(h){throw lo.reset(),h;
}}};
dp=function(a){vo.u.cancel();cp=a;vo.done=!0};
ep=function(a){if(a.u)return a.u;var b=cm(no).j;if(b)switch(b.getName()){case "nis":a.u="n";break;case "gsv":a.u="m"}a.u||(a.u="h");return a.u};
fp=function(a,b,c){if(null==a.j)return b.gA|=4,!1;a=Hka(a.j,c,b);b.gA|=a;return 0==a};
ap=function(){var a=[new so(Dl)],b=cm(no);b.u=a;Zja(b,function(){dp("i")})?vo.done||(hka(),wo()):dp("i")};
Ika=function(a,b){if(!a.Nb){var c=ho(a,"start",an());c=a.qO.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="951";null!==zo&&(d.v=zo);Qi(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)});
b=lka();Qi(b,function(e,f){return d[e]=encodeURIComponent(f)});
b="//web.archive.org/web/20230505074338/https://pagead2.googlesyndication.com/pagead/gen_204?"+kn(jn(new hn,d));Wia(b);a.Nb=!0}};
gp=function(a,b,c){xo(vo,[a],!an());Fja(a,c);4!=c&&Eja(a.ya,c,a.VF);return ho(a,b,an())};
Dka=function(a){jka(function(){var b=Jka();null!=a.u&&(b.sdk=a.u);var c=cm(no);null!=c.j&&(b.avms=c.j.getName());return b})};
Kka=function(a,b,c,d){if(a.B)var e=ko(lo,b);else e=Tja(lo,c),null!==e&&e.Yh!==b&&(a.kB(e),e=null);e||(b=a.BD(c,um(),!1,b),0==lo.u.length&&(hm().B=79463069),Yja([b]),e=b,e.C=ep(a),d&&(e.Ya=d));return e};
Lka=function(a){g.Ub(lo.j,function(b){3==b.Fi&&a.kB(b)})};
Mka=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
Jka=function(){var a=Zm(),b={},c={},d={};return Object.assign({},(b.sv="951",b),null!==zo&&(c.v=zo,c),(d["if"]=a.B?"1":"0",d.nas=String(lo.j.length),d))};
hp=function(a){Vn.call(this,"audio_audible",a)};
ip=function(a){Wn.call(this,"audio_measurable",a)};
jp=function(){Go.apply(this,arguments)};
kp=function(){};
Nka=function(a){this.j=a};
Hka=function(a,b,c){a=a.u();if("function"===typeof a){var d={};var e={};d=Object.assign({},null!==zo&&(d.v=zo,d),(e.sv="951",e.cb=nka,e.e=Oka(b),e));e=ho(c,b,an());g.ld(d,e);c.TY[b]=e;d=2==c.Io()?Via(d).join("&"):c.qO.j(d).j;try{return a(c.Yh,d,b),0}catch(f){return 2}}else return 1};
Oka=function(a){var b=Co(a)?"custom_metric_viewable":a;a=ed(go,function(c){return c==b});
return Ao[a]};
lp=function(){Zo.call(this);this.I=null;this.D=!1;this.C="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
Pka=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.j&&Array.isArray(c)&&Eka(a,c,b)};
Qka=function(a,b,c){var d=ko(lo,b);d||(d=c.opt_nativeTime||-1,d=$o(a,b,ep(a),d),c.opt_osdId&&(d.Ya=c.opt_osdId));return d};
Rka=function(a,b,c){var d=ko(lo,b);d||(d=$o(a,b,"n",c.opt_nativeTime||-1));return d};
Ska=function(a,b){var c=ko(lo,b);c||(c=$o(a,b,"h",-1));return c};
Tka=function(a){hm();switch(ep(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};
Wka=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.ld(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.cG(b,c);c=f?f.qO:a.ZK();if(e.opt_bounds)return c.j(Bo("ol",d));if(void 0!==d)if(void 0!==oka(d))if(bp)b=Bo("ue",d);else if(Gka(a),"i"==cp)b=Bo("i",d),b["if"]=0;else if(b=a.cG(b,e))if(a.B&&3==b.Fi)b="stopped";else{b:{"i"==cp&&(b.Ls=!0);f=e.opt_fullscreen;void 0!==f&&In(b,!!f);var h;if(f=!Zm().u)(f=dc(g.hc(),"CrKey")||dc(g.hc(),"PlayStation")||dc(g.hc(),"Roku")||Iia()||dc(g.hc(),"Xbox"))||
(f=g.hc(),f=dc(f,"AppleTV")||dc(f,"Apple TV")||dc(f,"CFNetwork")||dc(f,"tvOS")),f||(f=g.hc(),f=dc(f,"sdk_google_atv_x86")||dc(f,"Android TV")),f=!f;f&&(em(),f=0===Gl($m));if(h=f){switch(b.Io()){case 1:Ika(b,"pv");break;case 2:a.MO(b)}dp("pv")}f=d.toLowerCase();if(h=!h)h=xl(hm().Ac,"ssmol")&&"loaded"===f?!1:g.wb(Uka,f);if(h&&0==b.Fi){"i"!=cp&&(vo.done=!1);h=void 0!==e?e.opt_nativeTime:void 0;ym=h="number"===typeof h?h:um();b.pB=!0;var l=an();b.Fi=1;b.Dh={};b.Dh.start=!1;b.Dh.firstquartile=!1;b.Dh.midpoint=
!1;b.Dh.thirdquartile=!1;b.Dh.complete=!1;b.Dh.resume=!1;b.Dh.pause=!1;b.Dh.skip=!1;b.Dh.mute=!1;b.Dh.unmute=!1;b.Dh.viewable_impression=!1;b.Dh.measurable_impression=!1;b.Dh.fully_viewable_audible_half_duration_impression=!1;b.Dh.fullscreen=!1;b.Dh.exitfullscreen=!1;b.fL=0;l||(b.bj().V=h);xo(vo,[b],!l)}(h=b.yw[f])&&Rn(b.Pg,h);xl(hm().Ac,"fmd")||g.wb(Vka,f)&&b.Cq&&b.Cq.u(b,null);switch(b.Io()){case 1:var m=Co(f)?a.J.custom_metric_viewable:a.J[f];break;case 2:m=a.V[f]}if(m&&(d=m.call(a,b,e,d),xl(hm().Ac,
"fmd")&&g.wb(Vka,f)&&b.Cq&&b.Cq.u(b,null),void 0!==d)){e=Bo(void 0,f);g.ld(e,d);d=e;break b}d=void 0}3==b.Fi&&(a.B?b.nf&&b.nf.FA():a.kB(b));b=d}else b=Bo("nf",d);else b=void 0;else bp?b=Bo("ue"):f?(b=Bo(),g.ld(b,Hja(f,!0,!1,!1))):b=Bo("nf");return"string"===typeof b?a.B&&"stopped"===b?mp:c.j():c.j(b)};
np=function(a,b){b&&(a.C=b)};
Xka=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.u,b};
op=function(a,b,c){c=void 0===c?{}:c;a=Wka(cm(lp),b,c,a);return Xka(a)};
Yka=function(a,b){b=void 0===b?!1:b;var c=cm(lp).cG(a,{});c?bo(c):b&&(a=cm(lp).BD(null,um(),!1,a),a.Fi=3,Yja([a]))};
Zka=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.B=!b&&/[?&]ae=1(&|$)/.test(a);this.C=!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.u=c}};
$ka=function(a,b,c,d,e){var f=window,h=c?"//web.archive.org/web/20230505074338/https://pagead2.googlesyndication.com/bg/"+g.Ge(c)+".js":"";c=f.document;var l={};b&&(l._scs_=b);l._bgu_=h;l._bgp_=d;l._li_="v_h.3.0.0.0";e&&(l._upb_=e);(b=f.GoogleTyFxhY)&&"function"==typeof b.push||(b=f.GoogleTyFxhY=[]);b.push(l);b=Me(c).createElement("SCRIPT");b.type="text/javascript";b.async=!0;a=Bba(g.Sd("//web.archive.org/web/20230505074338/https://tpc.googlesyndication.com/sodar/%{path}"),{path:g.Ge(a)+".js"});g.dk(b,a);(f=(f.GoogleTyFxhYEET||{})[b.src])?f():c.getElementsByTagName("head")[0].appendChild(b)};
dla=function(a){if(g.$b(g.He(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.zk(a)}catch(c){return null!=g.sb(ala,function(d){return 0<a.search(d)})}return b.I.match(bla)?!0:null!=g.sb(ala,function(c){return null!=a.match(c)})};
g.pp=function(a,b){return a.replace(ela,function(c,d){try{var e=g.hd(b,d);if(null==e||null==e.toString())return c;e=e.toString();if(""==e||!g.$b(g.He(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
rp=function(a){g.Cd.call(this);var b=this;this.D=this.u=0;this.Zm=null!=a?a:{wi:function(e,f){return setTimeout(e,f)},
Em:function(e){clearTimeout(e)}};
var c,d;this.j=null!=(d=null==(c=window.navigator)?void 0:c.onLine)?d:!0;this.B=function(){return g.A(function(e){return g.y(e,qp(b),0)})};
window.addEventListener("offline",this.B);window.addEventListener("online",this.B);this.D||this.gf()};
fla=function(){var a=g.sp;rp.instance||(rp.instance=new rp(a));return rp.instance};
qp=function(a,b){return a.C?a.C:a.C=new Promise(function(c){var d,e,f,h;return g.A(function(l){switch(l.j){case 1:return d=window.AbortController?new window.AbortController:void 0,f=null==(e=d)?void 0:e.signal,h=!1,g.ua(l,2,3),d&&(a.u=a.Zm.wi(function(){d.abort()},b||2E4)),g.y(l,fetch("/generate_204",{method:"HEAD",
signal:f}),5);case 5:h=!0;case 3:g.haa(l);a.C=void 0;a.u&&(a.Zm.Em(a.u),a.u=0);h!==a.j&&(a.j=h,a.j?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(h);g.iaa(l,0);break;case 2:g.xa(l),h=!1,l.Ka(3)}})})};
tp=function(){this.data_=[];this.j=-1};
gla=function(a){-1===a.j&&(a.j=bm(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.j};
up=function(a){a.setAttribute("role","link")};
wp=function(a,b){Array.isArray(b)&&(b=b.join(" "));""===b||void 0==b?(vp||(b={},vp=(b.atomic=!1,b.autocomplete="none",b.dropeffect="none",b.haspopup=!1,b.live="off",b.multiline=!1,b.multiselectable=!1,b.orientation="vertical",b.readonly=!1,b.relevant="additions text",b.required=!1,b.sort="none",b.busy=!1,b.disabled=!1,b.hidden=!1,b.invalid="false",b)),b=vp,"label"in b?a.setAttribute("aria-label",b.label):a.removeAttribute("aria-label")):a.setAttribute("aria-label",b)};
xp=function(a){a=a.getAttribute("aria-label");return null==a||void 0==a?"":String(a)};
g.yp=function(a,b,c){g.E.call(this);this.j=null;this.C=!1;this.I=a;this.D=c;this.u=b||window;this.B=(0,g.Ta)(this.N_,this)};
g.zp=function(a){a.isActive()||a.start()};
hla=function(a){a=a.u;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
ila=function(a){a=a.u;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.Ap=function(a,b,c){g.E.call(this);this.j=a;this.Ei=b||0;this.u=c;this.B=(0,g.Ta)(this.uR,this)};
g.Bp=function(a,b){a.isActive()||a.start(b)};
g.Cp=function(a){a.stop();a.uR()};
g.Dp=function(a){a.isActive()&&g.Cp(a)};
Ep=function(a,b){this.j=a[g.Ja.Symbol.iterator]();this.u=b};
jla=function(a,b){return new Ep(a,b)};
kla=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
Fp=function(a){return a.classList?a.classList:kla(a).match(/\S+/g)||[]};
g.Gp=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.Hp=function(a,b){return a.classList?a.classList.contains(b):g.wb(Fp(a),b)};
g.Ip=function(a,b){if(a.classList)a.classList.add(b);else if(!g.Hp(a,b)){var c=kla(a);g.Gp(a,c+(0<c.length?" "+b:b))}};
g.Jp=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.Ip(a,e)});
else{var c={};Array.prototype.forEach.call(Fp(a),function(e){c[e]=!0});
Array.prototype.forEach.call(b,function(e){c[e]=!0});
b="";for(var d in c)b+=0<b.length?" "+d:d;g.Gp(a,b)}};
g.Kp=function(a,b){a.classList?a.classList.remove(b):g.Hp(a,b)&&g.Gp(a,Array.prototype.filter.call(Fp(a),function(c){return c!=b}).join(" "))};
g.Lp=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.Kp(a,c)}):g.Gp(a,Array.prototype.filter.call(Fp(a),function(c){return!g.wb(b,c)}).join(" "))};
g.Mp=function(a,b,c){c?g.Ip(a,b):g.Kp(a,b)};
lla=function(a,b){var c=!g.Hp(a,b);g.Mp(a,b,c)};
Qp=function(a){if(a instanceof Np||a instanceof Op||a instanceof Pp)return a;if("function"==typeof a.next)return new Np(function(){return a});
if("function"==typeof a[Symbol.iterator])return new Np(function(){return a[Symbol.iterator]()});
if("function"==typeof a.jk)return new Np(function(){return a.jk()});
throw Error("Not an iterator or iterable.");};
Np=function(a){this.u=a};
Op=function(a){this.u=a};
Pp=function(a){Np.call(this,function(){return a});
this.B=a};
g.Rp=function(a,b){this.u={};this.j=[];this.Nt=this.size=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof g.Rp)for(c=a.Wp(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
mla=function(a,b){return a===b};
Tp=function(a){if(a.size!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];Sp(a.u,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.size!=a.j.length){var e={};for(c=b=0;b<a.j.length;)d=a.j[b],Sp(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}};
Sp=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Up=function(){g.Cd.call(this);this.j=0;this.endTime=this.startTime=null};
nla=function(a,b){Array.isArray(b)||(b=[b]);b=b.map(function(c){return"string"===typeof c?c:c.property+" "+c.duration+"s "+c.timing+" "+c.delay+"s"});
g.Jm(a,"transition",b.join(","))};
Vp=function(a,b,c,d,e){g.Up.call(this);this.u=a;this.D=b;this.I=c;this.C=d;this.J=Array.isArray(e)?e:[e]};
ola=function(a,b,c,d){return new Vp(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
qla=function(a){a=ec(a);if(""==a)return null;if(Yb(a,"url("))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;for(var b=/([\-\w]+)\(/g,c;c=b.exec(a);)if(!(c[1].toLowerCase()in pla))return null}return a};
Wp=function(a,b){a=g.Ja[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
rla=function(a){var b=g.Ja.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
sla=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Ve&&10>document.documentMode){if(!b[c].call)throw Error("IE Clobbering detected");}else if("function"!=typeof b[c])throw Error("Clobbering detected");return b[c].apply(b,d)};
xla=function(a){if(!a)return de;var b=document.createElement("div").style;tla(a).forEach(function(c){var d=g.Nc&&c in ula?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Xb(d,"--")||Xb(d,"var")||(c=sla(vla,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=qla(c),null!=c&&sla(wla,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return Xba(g.Sd("Output of CSS sanitizer"),b.cssText||"")};
tla=function(a){g.Oa(a)?a=g.Db(a):(a=g.ad(a),g.Ab(a,"cssText"));return a};
g.Yp=function(a){var b,c=b=0,d=!1;a=a.split(yla);for(var e=0;e<a.length;e++){var f=a[e];g.Xp.test(f)?(b++,c++):zla.test(f)?d=!0:Ala.test(f)?c++:Bla.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
Zp=function(a,b,c,d,e,f,h,l){this.j=a;this.J=b;this.B=c;this.D=d;this.C=e;this.I=f;this.u=h;this.V=l};
$p=function(a,b){if(0==b)return a.j;if(1==b)return a.u;var c=te(a.j,a.B,b),d=te(a.B,a.C,b);a=te(a.C,a.u,b);c=te(c,d,b);d=te(d,a,b);return te(c,d,b)};
Cla=function(a,b){var c=(b-a.j)/(a.u-a.j);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,f=0,h=0;8>h;h++){f=$p(a,c);var l=($p(a,c+1E-6)-f)/1E-6;if(1E-6>Math.abs(f-b))return c;if(1E-6>Math.abs(l))break;else f<b?d=c:e=c,c-=(f-b)/l}for(h=0;1E-6<Math.abs(f-b)&&8>h;h++)f<b?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),f=$p(a,c);return c};
aq=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
bq=function(a){return(a=a.exec(g.hc()))?a[1]:""};
cq=function(a){return 0<=g.gc(Dla,a)};
g.dq=function(a){g.E.call(this);this.I=1;this.B=[];this.C=0;this.j=[];this.u={};this.J=!!a};
Ela=function(a,b,c){g.Af(function(){a.apply(b,c)})};
g.eq=function(a){this.j=a};
fq=function(a){this.j=a};
Fla=function(a){this.data=a};
Gla=function(a){return void 0===a||a instanceof Fla?a:new Fla(a)};
gq=function(a){this.j=a};
g.Hla=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.Va()||!!b&&b>g.Va()};
g.hq=function(a){this.j=a};
Ila=function(){};
iq=function(){};
jq=function(a){this.j=a};
kq=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a};
Jla=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a};
mq=function(a,b){this.u=a;this.j=null;if(g.Ve&&!g.Mc(9)){lq||(lq=new g.Rp);this.j=lq.get(a);this.j||(b?this.j=document.getElementById(b):(this.j=document.createElement("userdata"),this.j.addBehavior("#default#userData"),document.body.appendChild(this.j)),lq.set(a,this.j));try{this.j.load(this.u)}catch(c){this.j=null}}};
nq=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Kla[b]})};
oq=function(a){try{a.j.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}};
pq=function(a,b){this.u=a;this.j=b+"::"};
g.qq=function(a){var b=new kq;return b.isAvailable()?a?new pq(b,a):b:null};
rq=function(a,b){this.j=a;this.u=b};
sq=function(a){this.j=[];if(a)a:{if(a instanceof sq){var b=a.Wp();a=a.Kl();if(0>=this.j.length){for(var c=this.j,d=0;d<b.length;d++)c.push(new rq(b[d],a[d]));break a}}else b=g.ad(a),a=$c(a);for(c=0;c<b.length;c++)this.Oh(b[c],a[c])}};
Lla=function(){sq.apply(this,arguments)};
tq=function(){};
Mla=function(a){var b,c,d=a.length,e=0;for(b=0;b<d;b++){var f=a.charCodeAt(b);if(55296===(f&64512)&&b+1<d){var h=a.charCodeAt(b+1);56320===(h&64512)&&(f=65536+(f-55296<<10)+(h-56320),b++)}e+=128>f?1:2048>f?2:65536>f?3:4}var l=new uq.Kw(e);for(b=c=0;c<e;b++)f=a.charCodeAt(b),55296===(f&64512)&&b+1<d&&(h=a.charCodeAt(b+1),56320===(h&64512)&&(f=65536+(f-55296<<10)+(h-56320),b++)),128>f?l[c++]=f:(2048>f?l[c++]=192|f>>>6:(65536>f?l[c++]=224|f>>>12:(l[c++]=240|f>>>18,l[c++]=128|f>>>12&63),l[c++]=128|f>>>
6&63),l[c++]=128|f&63);return l};
vq=function(a){for(var b=a.length;0<=--b;)a[b]=0};
Jq=function(a,b,c,d,e){this.WX=a;this.e3=b;this.d3=c;this.Q2=d;this.L4=e;this.AU=a&&a.length};
Kq=function(a,b){this.mT=a;this.cz=0;this.Ft=b};
Lq=function(a,b){a.gg[a.pending++]=b&255;a.gg[a.pending++]=b>>>8&255};
Mq=function(a,b,c){a.Jh>16-c?(a.Ui|=b<<a.Jh&65535,Lq(a,a.Ui),a.Ui=b>>16-a.Jh,a.Jh+=c-16):(a.Ui|=b<<a.Jh&65535,a.Jh+=c)};
Nq=function(a,b,c){Mq(a,c[2*b],c[2*b+1])};
Nla=function(a,b){var c=0;do c|=a&1,a>>>=1,c<<=1;while(0<--b);return c>>>1};
Ola=function(a,b,c){var d=Array(16),e=0,f;for(f=1;15>=f;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[2*c+1],0!==e&&(a[2*c]=Nla(d[e]++,e))};
Pla=function(a){var b;for(b=0;286>b;b++)a.Bj[2*b]=0;for(b=0;30>b;b++)a.Mu[2*b]=0;for(b=0;19>b;b++)a.zi[2*b]=0;a.Bj[512]=1;a.Kq=a.Vz=0;a.Pl=a.matches=0};
Qla=function(a){8<a.Jh?Lq(a,a.Ui):0<a.Jh&&(a.gg[a.pending++]=a.Ui);a.Ui=0;a.Jh=0};
Rla=function(a,b,c){Qla(a);Lq(a,c);Lq(a,~c);uq.Kx(a.gg,a.window,b,c,a.pending);a.pending+=c};
Sla=function(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<=d[c]};
Oq=function(a,b,c){for(var d=a.wg[c],e=c<<1;e<=a.jq;){e<a.jq&&Sla(b,a.wg[e+1],a.wg[e],a.depth)&&e++;if(Sla(b,d,a.wg[e],a.depth))break;a.wg[c]=a.wg[e];c=e;e<<=1}a.wg[c]=d};
Tla=function(a,b,c){var d=0;if(0!==a.Pl){do{var e=a.gg[a.iB+2*d]<<8|a.gg[a.iB+2*d+1];var f=a.gg[a.QM+d];d++;if(0===e)Nq(a,f,b);else{var h=Pq[f];Nq(a,h+256+1,b);var l=Qq[h];0!==l&&(f-=Rq[h],Mq(a,f,l));e--;h=256>e?Sq[e]:Sq[256+(e>>>7)];Nq(a,h,c);l=Tq[h];0!==l&&(e-=Uq[h],Mq(a,e,l))}}while(d<a.Pl)}Nq(a,256,b)};
Vq=function(a,b){var c=b.mT,d=b.Ft.WX,e=b.Ft.AU,f=b.Ft.Q2,h,l=-1;a.jq=0;a.Jy=573;for(h=0;h<f;h++)0!==c[2*h]?(a.wg[++a.jq]=l=h,a.depth[h]=0):c[2*h+1]=0;for(;2>a.jq;){var m=a.wg[++a.jq]=2>l?++l:0;c[2*m]=1;a.depth[m]=0;a.Kq--;e&&(a.Vz-=d[2*m+1])}b.cz=l;for(h=a.jq>>1;1<=h;h--)Oq(a,c,h);m=f;do h=a.wg[1],a.wg[1]=a.wg[a.jq--],Oq(a,c,1),d=a.wg[1],a.wg[--a.Jy]=h,a.wg[--a.Jy]=d,c[2*m]=c[2*h]+c[2*d],a.depth[m]=(a.depth[h]>=a.depth[d]?a.depth[h]:a.depth[d])+1,c[2*h+1]=c[2*d+1]=m,a.wg[1]=m++,Oq(a,c,1);while(2<=
a.jq);a.wg[--a.Jy]=a.wg[1];h=b.mT;m=b.cz;d=b.Ft.WX;e=b.Ft.AU;f=b.Ft.e3;var n=b.Ft.d3,p=b.Ft.L4,q,t=0;for(q=0;15>=q;q++)a.Ip[q]=0;h[2*a.wg[a.Jy]+1]=0;for(b=a.Jy+1;573>b;b++){var w=a.wg[b];q=h[2*h[2*w+1]+1]+1;q>p&&(q=p,t++);h[2*w+1]=q;if(!(w>m)){a.Ip[q]++;var z=0;w>=n&&(z=f[w-n]);var C=h[2*w];a.Kq+=C*(q+z);e&&(a.Vz+=C*(d[2*w+1]+z))}}if(0!==t){do{for(q=p-1;0===a.Ip[q];)q--;a.Ip[q]--;a.Ip[q+1]+=2;a.Ip[p]--;t-=2}while(0<t);for(q=p;0!==q;q--)for(w=a.Ip[q];0!==w;)d=a.wg[--b],d>m||(h[2*d+1]!==q&&(a.Kq+=(q-
h[2*d+1])*h[2*d],h[2*d+1]=q),w--)}Ola(c,l,a.Ip)};
Ula=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;0===f&&(l=138,m=3);b[2*(c+1)+1]=65535;for(d=0;d<=c;d++){var n=f;f=b[2*(d+1)+1];++h<l&&n===f||(h<m?a.zi[2*n]+=h:0!==n?(n!==e&&a.zi[2*n]++,a.zi[32]++):10>=h?a.zi[34]++:a.zi[36]++,h=0,e=n,0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4))}};
Vla=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;0===f&&(l=138,m=3);for(d=0;d<=c;d++){var n=f;f=b[2*(d+1)+1];if(!(++h<l&&n===f)){if(h<m){do Nq(a,n,a.zi);while(0!==--h)}else 0!==n?(n!==e&&(Nq(a,n,a.zi),h--),Nq(a,16,a.zi),Mq(a,h-3,2)):10>=h?(Nq(a,17,a.zi),Mq(a,h-3,3)):(Nq(a,18,a.zi),Mq(a,h-11,7));h=0;e=n;0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4)}}};
Wla=function(a){var b=4093624447,c;for(c=0;31>=c;c++,b>>>=1)if(b&1&&0!==a.Bj[2*c])return 0;if(0!==a.Bj[18]||0!==a.Bj[20]||0!==a.Bj[26])return 1;for(c=32;256>c;c++)if(0!==a.Bj[2*c])return 1;return 0};
Wq=function(a,b,c){a.gg[a.iB+2*a.Pl]=b>>>8&255;a.gg[a.iB+2*a.Pl+1]=b&255;a.gg[a.QM+a.Pl]=c&255;a.Pl++;0===b?a.Bj[2*c]++:(a.matches++,b--,a.Bj[2*(Pq[c]+256+1)]++,a.Mu[2*(256>b?Sq[b]:Sq[256+(b>>>7)])]++);return a.Pl===a.EC-1};
Yq=function(a,b){a.msg=Xq[b];return b};
Zq=function(a){for(var b=a.length;0<=--b;)a[b]=0};
$q=function(a){var b=a.state,c=b.pending;c>a.me&&(c=a.me);0!==c&&(uq.Kx(a.Rj,b.gg,b.lD,c,a.jz),a.jz+=c,b.lD+=c,a.KP+=c,a.me-=c,b.pending-=c,0===b.pending&&(b.lD=0))};
cr=function(a,b){var c=0<=a.rk?a.rk:-1,d=a.xb-a.rk,e=0;if(0<a.level){2===a.Rd.dL&&(a.Rd.dL=Wla(a));Vq(a,a.xG);Vq(a,a.oF);Ula(a,a.Bj,a.xG.cz);Ula(a,a.Mu,a.oF.cz);Vq(a,a.GS);for(e=18;3<=e&&0===a.zi[2*Xla[e]+1];e--);a.Kq+=3*(e+1)+14;var f=a.Kq+3+7>>>3;var h=a.Vz+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&-1!==c)Mq(a,b?1:0,3),Rla(a,c,d);else if(4===a.strategy||h===f)Mq(a,2+(b?1:0),3),Tla(a,ar,br);else{Mq(a,4+(b?1:0),3);c=a.xG.cz+1;d=a.oF.cz+1;e+=1;Mq(a,c-257,5);Mq(a,d-1,5);Mq(a,e-4,4);for(f=0;f<e;f++)Mq(a,
a.zi[2*Xla[f]+1],3);Vla(a,a.Bj,c-1);Vla(a,a.Mu,d-1);Tla(a,a.Bj,a.Mu)}Pla(a);b&&Qla(a);a.rk=a.xb;$q(a.Rd)};
dr=function(a,b){a.gg[a.pending++]=b};
er=function(a,b){a.gg[a.pending++]=b>>>8&255;a.gg[a.pending++]=b&255};
Yla=function(a,b){var c=a.yV,d=a.xb,e=a.Qk,f=a.OV,h=a.xb>a.Ni-262?a.xb-(a.Ni-262):0,l=a.window,m=a.Ot,n=a.fp,p=a.xb+258,q=l[d+e-1],t=l[d+e];a.Qk>=a.gU&&(c>>=2);f>a.Yb&&(f=a.Yb);do{var w=b;if(l[w+e]===t&&l[w+e-1]===q&&l[w]===l[d]&&l[++w]===l[d+1]){d+=2;for(w++;l[++d]===l[++w]&&l[++d]===l[++w]&&l[++d]===l[++w]&&l[++d]===l[++w]&&l[++d]===l[++w]&&l[++d]===l[++w]&&l[++d]===l[++w]&&l[++d]===l[++w]&&d<p;);w=258-(p-d);d=p-258;if(w>e){a.Zy=b;e=w;if(w>=f)break;q=l[d+e-1];t=l[d+e]}}}while((b=n[b&m])>h&&0!==
--c);return e<=a.Yb?e:a.Yb};
hr=function(a){var b=a.Ni,c;do{var d=a.YY-a.Yb-a.xb;if(a.xb>=b+(b-262)){uq.Kx(a.window,a.window,b,b,0);a.Zy-=b;a.xb-=b;a.rk-=b;var e=c=a.jG;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.fp[--e],a.fp[e]=f>=b?f-b:0;while(--c);d+=b}if(0===a.Rd.Si)break;e=a.Rd;c=a.window;f=a.xb+a.Yb;var h=e.Si;h>d&&(h=d);0===h?c=0:(e.Si-=h,uq.Kx(c,e.input,e.Cv,h,f),1===e.state.wrap?e.Dd=fr(e.Dd,c,h,f):2===e.state.wrap&&(e.Dd=gr(e.Dd,c,h,f)),e.Cv+=h,e.uw+=h,c=h);a.Yb+=c;if(3<=a.Yb+a.Oh)for(d=a.xb-a.Oh,
a.Zd=a.window[d],a.Zd=(a.Zd<<a.hq^a.window[d+1])&a.gq;a.Oh&&!(a.Zd=(a.Zd<<a.hq^a.window[d+3-1])&a.gq,a.fp[d&a.Ot]=a.head[a.Zd],a.head[a.Zd]=d,d++,a.Oh--,3>a.Yb+a.Oh););}while(262>a.Yb&&0!==a.Rd.Si)};
ir=function(a,b){for(var c;;){if(262>a.Yb){hr(a);if(262>a.Yb&&0===b)return 1;if(0===a.Yb)break}c=0;3<=a.Yb&&(a.Zd=(a.Zd<<a.hq^a.window[a.xb+3-1])&a.gq,c=a.fp[a.xb&a.Ot]=a.head[a.Zd],a.head[a.Zd]=a.xb);0!==c&&a.xb-c<=a.Ni-262&&(a.Fe=Yla(a,c));if(3<=a.Fe)if(c=Wq(a,a.xb-a.Zy,a.Fe-3),a.Yb-=a.Fe,a.Fe<=a.dN&&3<=a.Yb){a.Fe--;do a.xb++,a.Zd=(a.Zd<<a.hq^a.window[a.xb+3-1])&a.gq,a.fp[a.xb&a.Ot]=a.head[a.Zd],a.head[a.Zd]=a.xb;while(0!==--a.Fe);a.xb++}else a.xb+=a.Fe,a.Fe=0,a.Zd=a.window[a.xb],a.Zd=(a.Zd<<a.hq^
a.window[a.xb+1])&a.gq;else c=Wq(a,0,a.window[a.xb]),a.Yb--,a.xb++;if(c&&(cr(a,!1),0===a.Rd.me))return 1}a.Oh=2>a.xb?a.xb:2;return 4===b?(cr(a,!0),0===a.Rd.me?3:4):a.Pl&&(cr(a,!1),0===a.Rd.me)?1:2};
jr=function(a,b){for(var c,d;;){if(262>a.Yb){hr(a);if(262>a.Yb&&0===b)return 1;if(0===a.Yb)break}c=0;3<=a.Yb&&(a.Zd=(a.Zd<<a.hq^a.window[a.xb+3-1])&a.gq,c=a.fp[a.xb&a.Ot]=a.head[a.Zd],a.head[a.Zd]=a.xb);a.Qk=a.Fe;a.XW=a.Zy;a.Fe=2;0!==c&&a.Qk<a.dN&&a.xb-c<=a.Ni-262&&(a.Fe=Yla(a,c),5>=a.Fe&&(1===a.strategy||3===a.Fe&&4096<a.xb-a.Zy)&&(a.Fe=2));if(3<=a.Qk&&a.Fe<=a.Qk){d=a.xb+a.Yb-3;c=Wq(a,a.xb-1-a.XW,a.Qk-3);a.Yb-=a.Qk-1;a.Qk-=2;do++a.xb<=d&&(a.Zd=(a.Zd<<a.hq^a.window[a.xb+3-1])&a.gq,a.fp[a.xb&a.Ot]=
a.head[a.Zd],a.head[a.Zd]=a.xb);while(0!==--a.Qk);a.yv=0;a.Fe=2;a.xb++;if(c&&(cr(a,!1),0===a.Rd.me))return 1}else if(a.yv){if((c=Wq(a,0,a.window[a.xb-1]))&&cr(a,!1),a.xb++,a.Yb--,0===a.Rd.me)return 1}else a.yv=1,a.xb++,a.Yb--}a.yv&&(Wq(a,0,a.window[a.xb-1]),a.yv=0);a.Oh=2>a.xb?a.xb:2;return 4===b?(cr(a,!0),0===a.Rd.me?3:4):a.Pl&&(cr(a,!1),0===a.Rd.me)?1:2};
Zla=function(a,b){for(var c,d,e,f=a.window;;){if(258>=a.Yb){hr(a);if(258>=a.Yb&&0===b)return 1;if(0===a.Yb)break}a.Fe=0;if(3<=a.Yb&&0<a.xb&&(d=a.xb-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.xb+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]&&d<e;);a.Fe=258-(e-d);a.Fe>a.Yb&&(a.Fe=a.Yb)}3<=a.Fe?(c=Wq(a,1,a.Fe-3),a.Yb-=a.Fe,a.xb+=a.Fe,a.Fe=0):(c=Wq(a,0,a.window[a.xb]),a.Yb--,a.xb++);if(c&&(cr(a,!1),0===a.Rd.me))return 1}a.Oh=0;return 4===
b?(cr(a,!0),0===a.Rd.me?3:4):a.Pl&&(cr(a,!1),0===a.Rd.me)?1:2};
$la=function(a,b){for(var c;;){if(0===a.Yb&&(hr(a),0===a.Yb)){if(0===b)return 1;break}a.Fe=0;c=Wq(a,0,a.window[a.xb]);a.Yb--;a.xb++;if(c&&(cr(a,!1),0===a.Rd.me))return 1}a.Oh=0;return 4===b?(cr(a,!0),0===a.Rd.me?3:4):a.Pl&&(cr(a,!1),0===a.Rd.me)?1:2};
kr=function(a,b,c,d,e){this.A3=a;this.K4=b;this.Y4=c;this.J4=d;this.func=e};
ama=function(){this.Rd=null;this.status=0;this.gg=null;this.wrap=this.pending=this.lD=this.Sl=0;this.Bd=null;this.Qm=0;this.method=8;this.Uy=-1;this.Ot=this.gQ=this.Ni=0;this.window=null;this.YY=0;this.head=this.fp=null;this.OV=this.gU=this.strategy=this.level=this.dN=this.yV=this.Qk=this.Yb=this.Zy=this.xb=this.yv=this.XW=this.Fe=this.rk=this.hq=this.gq=this.qM=this.jG=this.Zd=0;this.Bj=new uq.Bp(1146);this.Mu=new uq.Bp(122);this.zi=new uq.Bp(78);Zq(this.Bj);Zq(this.Mu);Zq(this.zi);this.GS=this.oF=
this.xG=null;this.Ip=new uq.Bp(16);this.wg=new uq.Bp(573);Zq(this.wg);this.Jy=this.jq=0;this.depth=new uq.Bp(573);Zq(this.depth);this.Jh=this.Ui=this.Oh=this.matches=this.Vz=this.Kq=this.iB=this.Pl=this.EC=this.QM=0};
bma=function(a,b){if(!a||!a.state||5<b||0>b)return a?Yq(a,-2):-2;var c=a.state;if(!a.Rj||!a.input&&0!==a.Si||666===c.status&&4!==b)return Yq(a,0===a.me?-5:-2);c.Rd=a;var d=c.Uy;c.Uy=b;if(42===c.status)if(2===c.wrap)a.Dd=0,dr(c,31),dr(c,139),dr(c,8),c.Bd?(dr(c,(c.Bd.text?1:0)+(c.Bd.Hs?2:0)+(c.Bd.Sr?4:0)+(c.Bd.name?8:0)+(c.Bd.comment?16:0)),dr(c,c.Bd.time&255),dr(c,c.Bd.time>>8&255),dr(c,c.Bd.time>>16&255),dr(c,c.Bd.time>>24&255),dr(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),dr(c,c.Bd.os&255),c.Bd.Sr&&
c.Bd.Sr.length&&(dr(c,c.Bd.Sr.length&255),dr(c,c.Bd.Sr.length>>8&255)),c.Bd.Hs&&(a.Dd=gr(a.Dd,c.gg,c.pending,0)),c.Qm=0,c.status=69):(dr(c,0),dr(c,0),dr(c,0),dr(c,0),dr(c,0),dr(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),dr(c,3),c.status=113);else{var e=8+(c.gQ-8<<4)<<8;e|=(2<=c.strategy||2>c.level?0:6>c.level?1:6===c.level?2:3)<<6;0!==c.xb&&(e|=32);c.status=113;er(c,e+(31-e%31));0!==c.xb&&(er(c,a.Dd>>>16),er(c,a.Dd&65535));a.Dd=1}if(69===c.status)if(c.Bd.Sr){for(e=c.pending;c.Qm<(c.Bd.Sr.length&
65535)&&(c.pending!==c.Sl||(c.Bd.Hs&&c.pending>e&&(a.Dd=gr(a.Dd,c.gg,c.pending-e,e)),$q(a),e=c.pending,c.pending!==c.Sl));)dr(c,c.Bd.Sr[c.Qm]&255),c.Qm++;c.Bd.Hs&&c.pending>e&&(a.Dd=gr(a.Dd,c.gg,c.pending-e,e));c.Qm===c.Bd.Sr.length&&(c.Qm=0,c.status=73)}else c.status=73;if(73===c.status)if(c.Bd.name){e=c.pending;do{if(c.pending===c.Sl&&(c.Bd.Hs&&c.pending>e&&(a.Dd=gr(a.Dd,c.gg,c.pending-e,e)),$q(a),e=c.pending,c.pending===c.Sl)){var f=1;break}f=c.Qm<c.Bd.name.length?c.Bd.name.charCodeAt(c.Qm++)&
255:0;dr(c,f)}while(0!==f);c.Bd.Hs&&c.pending>e&&(a.Dd=gr(a.Dd,c.gg,c.pending-e,e));0===f&&(c.Qm=0,c.status=91)}else c.status=91;if(91===c.status)if(c.Bd.comment){e=c.pending;do{if(c.pending===c.Sl&&(c.Bd.Hs&&c.pending>e&&(a.Dd=gr(a.Dd,c.gg,c.pending-e,e)),$q(a),e=c.pending,c.pending===c.Sl)){f=1;break}f=c.Qm<c.Bd.comment.length?c.Bd.comment.charCodeAt(c.Qm++)&255:0;dr(c,f)}while(0!==f);c.Bd.Hs&&c.pending>e&&(a.Dd=gr(a.Dd,c.gg,c.pending-e,e));0===f&&(c.status=103)}else c.status=103;103===c.status&&
(c.Bd.Hs?(c.pending+2>c.Sl&&$q(a),c.pending+2<=c.Sl&&(dr(c,a.Dd&255),dr(c,a.Dd>>8&255),a.Dd=0,c.status=113)):c.status=113);if(0!==c.pending){if($q(a),0===a.me)return c.Uy=-1,0}else if(0===a.Si&&(b<<1)-(4<b?9:0)<=(d<<1)-(4<d?9:0)&&4!==b)return Yq(a,-5);if(666===c.status&&0!==a.Si)return Yq(a,-5);if(0!==a.Si||0!==c.Yb||0!==b&&666!==c.status){d=2===c.strategy?$la(c,b):3===c.strategy?Zla(c,b):lr[c.level].func(c,b);if(3===d||4===d)c.status=666;if(1===d||3===d)return 0===a.me&&(c.Uy=-1),0;if(2===d&&(1===
b?(Mq(c,2,3),Nq(c,256,ar),16===c.Jh?(Lq(c,c.Ui),c.Ui=0,c.Jh=0):8<=c.Jh&&(c.gg[c.pending++]=c.Ui&255,c.Ui>>=8,c.Jh-=8)):5!==b&&(Mq(c,0,3),Rla(c,0,0),3===b&&(Zq(c.head),0===c.Yb&&(c.xb=0,c.rk=0,c.Oh=0))),$q(a),0===a.me))return c.Uy=-1,0}if(4!==b)return 0;if(0>=c.wrap)return 1;2===c.wrap?(dr(c,a.Dd&255),dr(c,a.Dd>>8&255),dr(c,a.Dd>>16&255),dr(c,a.Dd>>24&255),dr(c,a.uw&255),dr(c,a.uw>>8&255),dr(c,a.uw>>16&255),dr(c,a.uw>>24&255)):(er(c,a.Dd>>>16),er(c,a.Dd&65535));$q(a);0<c.wrap&&(c.wrap=-c.wrap);return 0!==
c.pending?0:1};
mr=function(a){if(!(this instanceof mr))return new mr(a);a=this.options=uq.assign({level:-1,method:8,chunkSize:16384,Pt:15,Q4:8,strategy:0,to:""},a||{});a.raw&&0<a.Pt?a.Pt=-a.Pt:a.B3&&0<a.Pt&&16>a.Pt&&(a.Pt+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Rd=new cma;this.Rd.me=0;var b=this.Rd;var c=a.level,d=a.method,e=a.Pt,f=a.Q4,h=a.strategy;if(b){var l=1;-1===c&&(c=6);0>e?(l=0,e=-e):15<e&&(l=2,e-=16);if(1>f||9<f||8!==d||8>e||15<e||0>c||9<c||0>h||4<h)b=Yq(b,-2);else{8===e&&(e=9);var m=
new ama;b.state=m;m.Rd=b;m.wrap=l;m.Bd=null;m.gQ=e;m.Ni=1<<m.gQ;m.Ot=m.Ni-1;m.qM=f+7;m.jG=1<<m.qM;m.gq=m.jG-1;m.hq=~~((m.qM+3-1)/3);m.window=new uq.Kw(2*m.Ni);m.head=new uq.Bp(m.jG);m.fp=new uq.Bp(m.Ni);m.EC=1<<f+6;m.Sl=4*m.EC;m.gg=new uq.Kw(m.Sl);m.iB=1*m.EC;m.QM=3*m.EC;m.level=c;m.strategy=h;m.method=d;if(b&&b.state){b.uw=b.KP=0;b.dL=2;c=b.state;c.pending=0;c.lD=0;0>c.wrap&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.Dd=2===c.wrap?0:1;c.Uy=0;if(!dma){d=Array(16);for(f=h=0;28>f;f++)for(Rq[f]=h,e=0;e<
1<<Qq[f];e++)Pq[h++]=f;Pq[h-1]=f;for(f=h=0;16>f;f++)for(Uq[f]=h,e=0;e<1<<Tq[f];e++)Sq[h++]=f;for(h>>=7;30>f;f++)for(Uq[f]=h<<7,e=0;e<1<<Tq[f]-7;e++)Sq[256+h++]=f;for(e=0;15>=e;e++)d[e]=0;for(e=0;143>=e;)ar[2*e+1]=8,e++,d[8]++;for(;255>=e;)ar[2*e+1]=9,e++,d[9]++;for(;279>=e;)ar[2*e+1]=7,e++,d[7]++;for(;287>=e;)ar[2*e+1]=8,e++,d[8]++;Ola(ar,287,d);for(e=0;30>e;e++)br[2*e+1]=5,br[2*e]=Nla(e,5);ema=new Jq(ar,Qq,257,286,15);fma=new Jq(br,Tq,0,30,15);gma=new Jq([],hma,0,19,7);dma=!0}c.xG=new Kq(c.Bj,ema);
c.oF=new Kq(c.Mu,fma);c.GS=new Kq(c.zi,gma);c.Ui=0;c.Jh=0;Pla(c);c=0}else c=Yq(b,-2);0===c&&(b=b.state,b.YY=2*b.Ni,Zq(b.head),b.dN=lr[b.level].K4,b.gU=lr[b.level].A3,b.OV=lr[b.level].Y4,b.yV=lr[b.level].J4,b.xb=0,b.rk=0,b.Yb=0,b.Oh=0,b.Fe=b.Qk=2,b.yv=0,b.Zd=0);b=c}}else b=-2;if(0!==b)throw Error(Xq[b]);a.header&&(b=this.Rd)&&b.state&&2===b.state.wrap&&(b.state.Bd=a.header);if(a.lB){var n;"string"===typeof a.lB?n=Mla(a.lB):"[object ArrayBuffer]"===ima.call(a.lB)?n=new Uint8Array(a.lB):n=a.lB;a=this.Rd;
f=n;h=f.length;if(a&&a.state)if(n=a.state,b=n.wrap,2===b||1===b&&42!==n.status||n.Yb)b=-2;else{1===b&&(a.Dd=fr(a.Dd,f,h,0));n.wrap=0;h>=n.Ni&&(0===b&&(Zq(n.head),n.xb=0,n.rk=0,n.Oh=0),c=new uq.Kw(n.Ni),uq.Kx(c,f,h-n.Ni,n.Ni,0),f=c,h=n.Ni);c=a.Si;d=a.Cv;e=a.input;a.Si=h;a.Cv=0;a.input=f;for(hr(n);3<=n.Yb;){f=n.xb;h=n.Yb-2;do n.Zd=(n.Zd<<n.hq^n.window[f+3-1])&n.gq,n.fp[f&n.Ot]=n.head[n.Zd],n.head[n.Zd]=f,f++;while(--h);n.xb=f;n.Yb=2;hr(n)}n.xb+=n.Yb;n.rk=n.xb;n.Oh=n.Yb;n.Yb=0;n.Fe=n.Qk=2;n.yv=0;a.Cv=
d;a.input=e;a.Si=c;n.wrap=b;b=0}else b=-2;if(0!==b)throw Error(Xq[b]);this.C6a=!0}};
jma=function(a){var b=b||{};b.B3=!0;b=new mr(b);b.push(a,!0);if(b.err)throw b.msg||Xq[b.err];return b.result};
kma=function(){var a=g.Ca.apply(0,arguments);return 0===a.length?function(b){return b}:1===a.length?a[0]:a.reduce(function(b,c){return function(){return b(c.apply(null,g.la(g.Ca.apply(0,arguments))))}})};
lma=function(){var a=g.Ca.apply(0,arguments);return function(b){return function(c,d){function e(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
c=b(c,d);var f={getState:c.getState,dispatch:function(h){return e.apply(null,[h].concat(g.la(g.Ca.apply(1,arguments))))}};
d=a.map(function(h){return h(f)});
e=kma.apply(null,g.la(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
nr=function(){return Math.random().toString(36).substring(7).split("").join(".")};
mma=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:or}))throw Error('The slice reducer for key "'+b+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof c(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+nr()}))throw Error('The slice reducer for key "'+
b+"\" returned undefined when probed with a random type. Don't try to handle '"+(or+'\' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})};
nma=function(a,b,c,d){function e(){if(q)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return m}
function f(w){if("function"!==typeof w)throw Error("Expected the listener to be a function. Instead, received: '"+typeof w+"'");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var z=!0;p===n&&(p=n.slice());p.push(w);return function(){if(z){if(q)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
z=!1;p===n&&(p=n.slice());p.splice(p.indexOf(w),1);n=null}}}
function h(w){if("object"!==typeof w||null===w)var z=!1;else{for(z=w;null!==Object.getPrototypeOf(z);)z=Object.getPrototypeOf(z);z=Object.getPrototypeOf(w)===z}if(!z)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof w+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
if("undefined"===typeof w.type)throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,w)}finally{q=!1}z=n=p;for(var C=0;C<z.length;C++)(0,z[C])();return w}
if("function"===typeof b&&"function"===typeof c||"function"===typeof c&&"function"===typeof d)throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");"function"===typeof b&&"undefined"===typeof c&&(c=b,b=void 0);if("undefined"!==typeof c){if("function"!==typeof c)throw Error("Expected the enhancer to be a function. Instead, received: '"+
typeof c+"'");return c(nma)(a,b)}if("function"!==typeof a)throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof a+"'");var l=a,m=b,n=[],p=n,q=!1;h({type:or});a={};var t=(a.dispatch=h,a.subscribe=f,a.getState=e,a.replaceReducer=function(w){if("function"!==typeof w)throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof w);l=w;h({type:oma});return t},a[pma]=function(){var w={};
return w.subscribe=function(z){function C(){z.next&&z.next(e())}
if("object"!==typeof z||null===z)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof z+"'");C();return{unsubscribe:f(C)}},w[pma]=function(){return this},w},a);
return t};
g.pr=function(a){a=qma(a);return Wd(a)};
qma=function(a){return null===a?"null":void 0===a?"undefined":a};
qr=function(a){P.call(this,a)};
rr=function(a){P.call(this,a,-1,rma)};
sma=function(a){var b=a.split(""),c=[-1312376390,-1364584018,-485760774,function(d,e){if(0!=d.length){e=(e%d.length+d.length)%d.length;var f=d[0];d[0]=d[e];d[e]=f}},
-540244346,279736359,-1137400410,",51];c[54]=c;",b,216090810,-803674105,1198015469,279736359,-1594884780,1331705770,-1077494361,-889276638,-1364584018,1692479509,-1077494361,1616881048,1804964732,-1144437948,function(d,e,f,h,l,m,n,p,q,t,w){return d(f,h,l,m,n,p,q,t,w)},
-1783722506,-206691397,null,2084376096,-1001208840,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(e,1)},
-412443841,"else",-148894562,-1698147854,function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 91:d=44;continue;case 123:d=65;break;case 65:d-=18;continue;case 58:d=96;continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
-853532193,1250259117,-1944044857,function(d,e,f,h,l,m,n,p){return e(f,h,l,m,n,p)},
-1671135535,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
1699669462,-540244346,406605008,1931136440,1847150502,function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 46:d=95;default:e.push(String.fromCharCode(d));case 94:case 95:case 96:break;case 123:d-=76;case 92:case 93:continue;case 58:d=44;case 91:}return e},
b,-853532193,1489853269,function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 58:d=96;continue;case 91:d=44;break;case 65:d=47;continue;case 46:d=153;case 123:d-=58;default:e.push(String.fromCharCode(d))}return e},
-1286918526,-44463605,81440323,null,-563772190,b,function(d,e,f){var h=f.length;d.forEach(function(l,m,n){this.push(n[m]=f[(f.indexOf(l)-f.indexOf(this[m])+m+h--)%f.length])},e.split(""))},
2050841146,-1550840185,1948473292,1535249125,-61445766,function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 58:d-=14;case 91:case 92:case 93:continue;case 123:d=47;case 94:case 95:case 96:continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
-1558572426,-800376520,1804964732,-2065255484,function(d){d.reverse()},
function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
function(d,e){d.splice(d.length,0,e)},
function(d,e,f,h,l){return e(f,h,l)},
function(d,e,f,h,l,m,n){return d(l,m,n)},
-1073767755,function(d,e,f,h,l,m){return e(h,l,m)},
716828124,791508531,function(d,e,f,h,l,m){return e(h,l,m)},
function(d,e){0!=d.length&&(e=(e%d.length+d.length)%d.length,d.splice(0,1,d.splice(e,1,d[0])[0]))},
1381067373,-42233639,1383421796,function(d,e){for(d=(d%e.length+e.length)%e.length;d--;)e.unshift(e.pop())},
-433230057,630546815,717988595,function(d,e,f,h,l,m,n,p,q){return f(n,p,q)},
1859746642,null,-1469309386];c[26]=c;c[54]=c;c[88]=c;try{try{-2>c[32]&&(-8>c[10]?((0,c[71])((0,c[72])(c[68],(0,c[126*Math.pow(5,4)+-78710])(c[88],c[55]),(0,c[0])(c[76],c[41]),(0,c[15])(c[84],c[52])|(0,c[79])(c[40],c[27]),c[74]),c[74],c[56],c[2]),c[25])(c[5],c[27]):(0,c[80])(c[31],(0,c[65])((0,c[10])(c[5],c[43]),c[32],(0,c[35])(c[new Date("1969-12-31T21:45:47.000-02:15")/1E3]),c[35],c[new Date("1969-12-31T18:45:47.000-05:15")/1E3]),c[21],(0,c[46])(c[47],c[72],(0,c[53])()),(0,c[46])(c[5],c[72],(0,c[69])()),
(0,c[21])(c[36],c[49]),c[83],c[15])),10>c[471-66*Math.pow(6,1)]&&(8>c[0]?(0,c[25])(c[56],c[7]):(0,c[74])(c[56],c[51])),(-3<c[58]||((0,c[26])((0,c[74])(c[-115697- -113*Math.pow(4,5)],c[4]),c[46],(0,c[79*Math.pow(4,5)-80886])(c[86+Math.pow(2,4)-87],c[-4389-Math.pow(4,4)- -4645]),c[56],c[72],(0,c[53])()),0))&&((0,c[63])(c[Math.pow(1,3)-72- -148],c[85]),c[35])(c[84],c[61],(0,c[29])())*(0,c[157%Math.pow(1,4)- -89])(c[84],c[59]),c[70]<new Date("1969-12-31T21:00:08.000-03:00")/1E3&&(-10>c[40]?(0,c[52])(c[84],
c[43]):(0,c[35])(c[45],c[61],(0,c[58])())),-9<=c[32]&&(7!=c[65]&&((((0,c[24])(c[66]),c[37])(c[44],c[61]),c[75])(c[53],c[82]),1)||((0,c[68])((0,c[26])(c[85],c[7]),c[65],c[51]),c[54])(c[44],c[97-Math.pow(7,2)-20],(0,c[31])())),-2<c[50]&&((0,c[83])((0,c[66])(c[51]),((0,c[new Date("1970-01-01T09:30:10.000+09:30")/1E3])(c[67],c[45]),c[24])(c[45]),c[89],(0,c[22])(c[4],c[63]),((0,c[63])(c[36],c[19]),c[89])(c[38],c[49]),(0,c[new Date("1969-12-31T12:15:10.000-11:45")/1E3])(c[33],c[4]),c[60],c[1]),1)||((0,c[36])((0,c[78])(c[60],
c[62]),c[50],c[8],c[76],(0,c[73])()),((((0,c[14])(c[81],c[12]),c[25])(c[46],c[53]),c[78])(c[53],c[71]),c[50])(c[60],c[76],(0,c[44])()),c[36])((0,c[39])(c[81]),c[50],c[new Date("1969-12-31T14:01:00.000-10:00")/1E3],c[76],(0,c[61])()),(-9!==c[12]||((0,c[36])((0,c[13])(c[81],c[6975-Math.pow(4,4)+-6719]),c[78],c[81],c[70]),(0,c[50])(c[151%Math.pow(6,5)-100],c[76],(0,c[44])()),0))&&(0,c[30])((0,c[25])(c[4],c[19]),c[18],(0,c[18])(c[68],c[1]),c[20],c[74]),-1!==c[20]&&(0,c[69])((0,c[36])((0,c[67])(c[51],
c[80]),c[29],c[81],c[77]),c[36],(0,c[29])(c[60],c[Math.pow(6,1)%481- -43]),c[29],c[81],c[18]),-8>=c[75]&&((0,c[13])(c[51],c[45]),c[13])(c[60],c[54])>=(0,c[25])(c[83],c[19]),-4!=c[7]&&(8>c[29]||(((0,c[19])(c[33]),c[77])((0,c[85])(c[90],c[0]),c[32],(0,c[69])(c[37],c[73]),c[37],c[3]),0))&&(0,c[67])((0,c[9])((0,c[32])(c[76],c[28]),c[6],c[27%Math.pow(2,3)+80]),c[9],(0,c[86])(c[85],c[60],(0,c[75])()),c[7],c[85]),4==c[82]&&((0,c[12])((0,c[86])(c[37],c[60],(0,c[75])()),c[86],(0,c[9])((0,c[58])(c[76],c[51]),
c[69],c[Math.pow(4,2)-123- -183],c[13]),c[37],c[60],(0,c[1])()),"null")||((0,c[69])(c[83],c[57]),c[25])(c[51],c[88])>=((0,c[46])(c[65],c[18])<=(0,c[14])(c[8],c[46]))}catch(d){(0,c[68])(c[58],c[42],(0,c[57])()),((0,c[82])((0,c[88])((0,c[51])(c[58],c[90]),c[51],(0,c[82])((0,c[40])(c[67],c[62]),c[51],c[58],c[3]),c[8],c[25]),c[79],c[19]),c[2])(c[4],c[37]),(0,c[2])(c[50],c[19]),(0,c[82])((0,c[new Date("1969-12-31T20:31:22.000-03:30")/1E3])((0,c[68])(c[58],c[42],(0,c[45])()),c[68],c[19],c[42],(0,c[74])()),
c[68],c[19],c[42],(0,c[57])())}}catch(d){return"enhanced_except_lpgB6ef-_w8_"+a}return b.join("")};
g.sr=function(a){this.name=a};
tr=function(a){P.call(this,a)};
ur=function(a){P.call(this,a)};
vr=function(a){P.call(this,a)};
wr=function(a){P.call(this,a)};
xr=function(a){P.call(this,a)};
yr=function(a){P.call(this,a)};
zr=function(a){P.call(this,a)};
Ar=function(a){P.call(this,a)};
Br=function(a){P.call(this,a,-1,tma)};
Cr=function(a){P.call(this,a,-1,uma)};
Dr=function(a){P.call(this,a)};
Er=function(a){P.call(this,a)};
Fr=function(a){P.call(this,a)};
Gr=function(a){P.call(this,a)};
Hr=function(a){P.call(this,a)};
Ir=function(a){P.call(this,a)};
Jr=function(a){P.call(this,a)};
Kr=function(a){P.call(this,a)};
Lr=function(a){P.call(this,a)};
Mr=function(a){P.call(this,a,-1,vma)};
Nr=function(a){P.call(this,a,-1,wma)};
Or=function(a){P.call(this,a)};
Pr=function(a){P.call(this,a)};
Qr=function(a){P.call(this,a)};
Rr=function(a){P.call(this,a)};
Sr=function(a){P.call(this,a)};
Tr=function(a){P.call(this,a)};
Ur=function(a){P.call(this,a,-1,xma)};
Vr=function(a){P.call(this,a)};
Wr=function(a){P.call(this,a,-1,yma)};
Xr=function(a){P.call(this,a)};
Yr=function(a){P.call(this,a)};
Zr=function(a){P.call(this,a)};
$r=function(a){P.call(this,a)};
as=function(a){P.call(this,a)};
bs=function(a){P.call(this,a)};
cs=function(a){P.call(this,a)};
ds=function(a){P.call(this,a)};
es=function(a){P.call(this,a)};
fs=function(a){P.call(this,a)};
gs=function(a){P.call(this,a)};
hs=function(a){P.call(this,a)};
is=function(a){P.call(this,a)};
js=function(a){P.call(this,a)};
ks=function(a){P.call(this,a)};
ls=function(a){P.call(this,a,-1,zma)};
ms=function(a){P.call(this,a)};
ns=function(a){P.call(this,a)};
os=function(a){P.call(this,a)};
ps=function(a){P.call(this,a)};
qs=function(a){P.call(this,a)};
rs=function(a){P.call(this,a)};
ts=function(a){P.call(this,a,-1,Ama)};
us=function(a){P.call(this,a)};
vs=function(a){P.call(this,a)};
ws=function(a){P.call(this,a)};
xs=function(a){P.call(this,a,-1,Bma)};
ys=function(a){P.call(this,a)};
zs=function(a){P.call(this,a)};
As=function(a){P.call(this,a)};
Bs=function(a){P.call(this,a,-1,Cma)};
Cs=function(a){P.call(this,a)};
Ds=function(a){P.call(this,a)};
Dma=function(a,b){return L(a,1,b)};
Es=function(a){P.call(this,a,-1,Ema)};
Fs=function(a){P.call(this,a,-1,Fma)};
Gs=function(a){P.call(this,a)};
Hs=function(a){P.call(this,a)};
Is=function(a){P.call(this,a)};
Js=function(a){P.call(this,a)};
Ks=function(a){P.call(this,a)};
Ls=function(a){P.call(this,a)};
Ms=function(a){P.call(this,a)};
Hma=function(a){P.call(this,a,-1,Gma)};
g.Ns=function(a){P.call(this,a,-1,Ima)};
Os=function(a){P.call(this,a)};
Ps=function(a){P.call(this,a,-1,Jma)};
Qs=function(a){P.call(this,a,-1,Kma)};
Rs=function(a){P.call(this,a)};
Ss=function(a){P.call(this,a,-1,Lma)};
Ts=function(a){P.call(this,a,-1,Mma)};
Us=function(a){P.call(this,a)};
Vs=function(a){P.call(this,a)};
Ws=function(a){P.call(this,a)};
Xs=function(a){P.call(this,a)};
Ys=function(a){P.call(this,a)};
Zs=function(a){P.call(this,a)};
$s=function(a){P.call(this,a,-1,Nma)};
at=function(a){P.call(this,a)};
ut=function(a){P.call(this,a)};
wt=function(a){P.call(this,a)};
xt=function(a){P.call(this,a)};
zt=function(a){P.call(this,a)};
At=function(a){P.call(this,a)};
Bt=function(a){P.call(this,a)};
Ct=function(a){P.call(this,a)};
Dt=function(a){P.call(this,a)};
Et=function(a){P.call(this,a,-1,Oma)};
Ft=function(a){P.call(this,a,-1,Pma)};
Gt=function(a){P.call(this,a,-1,Qma)};
Ht=function(a){P.call(this,a)};
It=function(a){P.call(this,a,-1,Rma)};
Jt=function(a){P.call(this,a)};
Kt=function(a){P.call(this,a,-1,Sma)};
Lt=function(a){P.call(this,a,-1,Tma)};
Mt=function(a){P.call(this,a,-1,Uma)};
Nt=function(a){P.call(this,a)};
Ot=function(a){P.call(this,a)};
Pt=function(a){P.call(this,a,-1,Vma)};
Qt=function(a){P.call(this,a)};
Rt=function(a){P.call(this,a)};
St=function(a){P.call(this,a)};
Tt=function(a){P.call(this,a)};
Ut=function(a){P.call(this,a)};
Vt=function(a){P.call(this,a)};
Wt=function(a){P.call(this,a)};
Xt=function(a){P.call(this,a)};
Yt=function(a){P.call(this,a)};
Zt=function(a){P.call(this,a)};
$t=function(a){P.call(this,a)};
au=function(a){P.call(this,a)};
bu=function(a){P.call(this,a)};
cu=function(a){P.call(this,a)};
du=function(a){P.call(this,a)};
eu=function(a){P.call(this,a)};
fu=function(a){P.call(this,a)};
gu=function(a){P.call(this,a)};
hu=function(a){P.call(this,a)};
iu=function(a){P.call(this,a)};
ju=function(a){P.call(this,a)};
ku=function(a){P.call(this,a)};
lu=function(a){P.call(this,a)};
mu=function(a){P.call(this,a,-1,Wma)};
nu=function(a){P.call(this,a,-1,Xma)};
ou=function(a){P.call(this,a,-1,Yma)};
pu=function(a){P.call(this,a)};
qu=function(a){P.call(this,a)};
ru=function(a){P.call(this,a)};
tu=function(a){P.call(this,a)};
uu=function(a){P.call(this,a)};
vu=function(a){P.call(this,a)};
wu=function(a){P.call(this,a)};
xu=function(a){P.call(this,a)};
yu=function(a){P.call(this,a)};
zu=function(a){P.call(this,a)};
Au=function(a){P.call(this,a,-1,Zma)};
Bu=function(a){P.call(this,a)};
Cu=function(a){P.call(this,a)};
Du=function(a){P.call(this,a)};
Eu=function(a){P.call(this,a)};
Fu=function(a){P.call(this,a)};
Gu=function(a){P.call(this,a,-1,$ma)};
Hu=function(a){P.call(this,a)};
Iu=function(a){P.call(this,a,-1,ana)};
Ju=function(a){P.call(this,a)};
Ku=function(a){P.call(this,a,-1,bna)};
Lu=function(a){P.call(this,a,-1,cna)};
Mu=function(a){P.call(this,a,-1,dna)};
Nu=function(a){P.call(this,a)};
Ou=function(a){P.call(this,a)};
Pu=function(a){P.call(this,a)};
Qu=function(a){P.call(this,a)};
Ru=function(a){P.call(this,a,-1,ena)};
Su=function(a){P.call(this,a)};
Tu=function(a){P.call(this,a)};
Uu=function(a){P.call(this,a,-1,fna)};
Vu=function(a){P.call(this,a)};
Wu=function(a){P.call(this,a,-1,gna)};
Xu=function(a){P.call(this,a)};
Yu=function(a){P.call(this,a)};
Zu=function(a){P.call(this,a)};
$u=function(a){P.call(this,a)};
av=function(a){P.call(this,a)};
bv=function(a){P.call(this,a,-1,hna)};
cv=function(a){P.call(this,a)};
dv=function(a){P.call(this,a,-1,ina)};
ev=function(a){P.call(this,a)};
fv=function(a){P.call(this,a,-1,jna)};
gv=function(a){P.call(this,a)};
hv=function(a){P.call(this,a)};
iv=function(a){P.call(this,a,-1,kna)};
jv=function(a){P.call(this,a)};
kv=function(a){P.call(this,a,-1,lna)};
lv=function(a){P.call(this,a)};
mv=function(a){P.call(this,a)};
nv=function(a){P.call(this,a)};
ov=function(a){P.call(this,a)};
pv=function(a){P.call(this,a,-1,mna)};
qv=function(a){P.call(this,a,-1,nna)};
rv=function(a){P.call(this,a)};
tv=function(a){P.call(this,a)};
uv=function(a){P.call(this,a)};
vv=function(a){P.call(this,a)};
wv=function(a){P.call(this,a)};
xv=function(a){P.call(this,a)};
yv=function(a){P.call(this,a)};
zv=function(a){P.call(this,a)};
Av=function(a){P.call(this,a)};
Bv=function(a){P.call(this,a)};
Cv=function(a){P.call(this,a)};
Dv=function(a){P.call(this,a)};
Ev=function(a){P.call(this,a,-1,ona)};
Fv=function(a){P.call(this,a)};
Gv=function(a){P.call(this,a,-1,pna)};
Hv=function(a){P.call(this,a)};
Iv=function(a){P.call(this,a)};
Jv=function(a){P.call(this,a)};
Kv=function(a){P.call(this,a)};
Lv=function(a){P.call(this,a)};
Mv=function(a){P.call(this,a)};
Nv=function(a){P.call(this,a)};
Ov=function(a){P.call(this,a)};
Pv=function(a){P.call(this,a)};
Qv=function(a){P.call(this,a)};
Rv=function(a){P.call(this,a)};
Sv=function(a){P.call(this,a)};
Tv=function(a){P.call(this,a)};
Uv=function(a){P.call(this,a)};
Vv=function(a){P.call(this,a)};
Wv=function(a){P.call(this,a)};
Xv=function(a){P.call(this,a)};
Yv=function(a){P.call(this,a)};
Zv=function(a){P.call(this,a)};
$v=function(a){P.call(this,a)};
aw=function(a){P.call(this,a)};
bw=function(a){P.call(this,a)};
cw=function(a){P.call(this,a)};
dw=function(a){P.call(this,a)};
ew=function(a){P.call(this,a)};
fw=function(a){P.call(this,a)};
gw=function(a){P.call(this,a)};
hw=function(a){P.call(this,a)};
iw=function(a){P.call(this,a)};
jw=function(a){P.call(this,a)};
kw=function(a){P.call(this,a)};
lw=function(a){P.call(this,a)};
mw=function(a){P.call(this,a,-1,qna)};
nw=function(a){P.call(this,a)};
ow=function(a){P.call(this,a)};
pw=function(a){P.call(this,a,-1,rna)};
qw=function(a){P.call(this,a)};
rw=function(a){P.call(this,a)};
tw=function(a){P.call(this,a)};
uw=function(a){P.call(this,a)};
vw=function(a){P.call(this,a)};
ww=function(a){P.call(this,a)};
xw=function(a){P.call(this,a)};
yw=function(a){P.call(this,a)};
zw=function(a){P.call(this,a)};
Bw=function(a){P.call(this,a)};
Fw=function(a){P.call(this,a)};
Gw=function(a){P.call(this,a)};
Hw=function(a){P.call(this,a)};
Iw=function(a){P.call(this,a)};
Jw=function(a){P.call(this,a)};
Kw=function(a){P.call(this,a,-1,sna)};
Lw=function(a){P.call(this,a)};
Mw=function(a){P.call(this,a)};
Nw=function(a){P.call(this,a)};
Ow=function(a){P.call(this,a)};
Pw=function(a){P.call(this,a)};
Qw=function(a){P.call(this,a)};
Rw=function(a){P.call(this,a)};
Sw=function(a){P.call(this,a)};
Tw=function(a){P.call(this,a)};
Uw=function(a){P.call(this,a)};
Vw=function(a){P.call(this,a)};
Ww=function(a){P.call(this,a)};
Xw=function(a){P.call(this,a)};
Yw=function(a){P.call(this,a)};
Zw=function(a){P.call(this,a)};
$w=function(a){P.call(this,a)};
ax=function(a){P.call(this,a)};
bx=function(a){P.call(this,a)};
cx=function(a){P.call(this,a)};
dx=function(a){P.call(this,a)};
ex=function(a){P.call(this,a)};
fx=function(a){P.call(this,a)};
gx=function(a){P.call(this,a)};
hx=function(a){P.call(this,a)};
ix=function(a){P.call(this,a)};
jx=function(a){P.call(this,a)};
kx=function(a){P.call(this,a)};
lx=function(a){P.call(this,a,-1,tna)};
mx=function(a){P.call(this,a)};
una=function(a,b){Ch(a,Qv,1,b)};
nx=function(a){P.call(this,a)};
vna=function(a,b){return Ch(a,Qv,1,b)};
ox=function(a){P.call(this,a,-1,wna)};
xna=function(a,b){return Ch(a,Qv,2,b)};
px=function(a){P.call(this,a)};
qx=function(a){P.call(this,a)};
rx=function(a){P.call(this,a)};
sx=function(a){P.call(this,a)};
tx=function(a){P.call(this,a)};
ux=function(a){P.call(this,a)};
vx=function(a){var b=new ux;return L(b,1,a)};
wx=function(a,b){return L(a,2,b)};
xx=function(a){P.call(this,a,-1,yna)};
yx=function(a){P.call(this,a)};
zx=function(a){P.call(this,a,-1,zna)};
Ax=function(a,b){Hh(a,68,ux,b)};
Bx=function(a){P.call(this,a)};
Cx=function(a){P.call(this,a)};
Dx=function(a){P.call(this,a,-1,Ana)};
Ex=function(a){P.call(this,a,-1,Bna)};
Fx=function(a){P.call(this,a)};
Gx=function(a){P.call(this,a)};
Hx=function(a){P.call(this,a,-1,Cna)};
Ix=function(a){P.call(this,a)};
Jx=function(a){P.call(this,a,-1,Dna)};
Kx=function(a){P.call(this,a)};
Lx=function(a){P.call(this,a)};
Mx=function(a){P.call(this,a,-1,Ena)};
Nx=function(a){P.call(this,a)};
Ox=function(a){P.call(this,a)};
Px=function(a){P.call(this,a,-1,Fna)};
Qx=function(a){P.call(this,a,-1,Gna)};
Rx=function(a){P.call(this,a)};
Sx=function(a){P.call(this,a)};
Tx=function(a){P.call(this,a)};
Ux=function(a){P.call(this,a)};
Vx=function(a){P.call(this,a,475)};
Wx=function(a){P.call(this,a)};
Xx=function(a){P.call(this,a)};
Yx=function(a){P.call(this,a,-1,Hna)};
Ina=function(){return g.La("yt.ads.biscotti.lastId_")||""};
Jna=function(a){g.Ka("yt.ads.biscotti.lastId_",a)};
$x=function(){var a=arguments;1<a.length?Zx[a[0]]=a[1]:1===a.length&&Object.assign(Zx,a[0])};
g.ay=function(a,b){return a in Zx?Zx[a]:b};
by=function(a){var b=Zx.EXPERIMENT_FLAGS;return b?b[a]:void 0};
g.cy=function(a){a=Kna(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.dy=function(a,b){a=Kna(a);return void 0===a&&void 0!==b?b:Number(a||0)};
ey=function(){return g.ay("EXPERIMENTS_TOKEN","")};
Kna=function(a){var b=g.ay("EXPERIMENTS_FORCED_FLAGS",{})||{};return void 0!==b[a]?b[a]:g.ay("EXPERIMENT_FLAGS",{})[a]};
fy=function(){for(var a=[],b=g.ay("EXPERIMENTS_FORCED_FLAGS",{}),c=g.v(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=g.ay("EXPERIMENT_FLAGS",{});var e=g.v(Object.keys(c));for(d=e.next();!d.done;d=e.next())d=d.value,d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
Lna=function(a){gy.forEach(function(b){return b(a)})};
g.iy=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.hy(b)}}:a};
g.hy=function(a){var b=g.La("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=g.ay("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),$x("ERRORS",b));Lna(a)};
jy=function(a,b,c,d,e){var f=g.La("yt.logging.errors.log");f?f(a,"WARNING",b,c,d,void 0,e):(f=g.ay("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),$x("ERRORS",f))};
ky=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d<e;d++){var f=b[d].split("=");if(1==f.length&&f[0]||2==f.length)try{var h=Mna(f[0]||""),l=Mna(f[1]||"");h in c?Array.isArray(c[h])?g.Fb(c[h],l):c[h]=[c[h],l]:c[h]=l}catch(q){var m=q,n=f[0],p=String(ky);m.args=[{key:n,value:f[1],query:a,method:Nna==p?"unchanged":p}];Ona.hasOwnProperty(n)||jy(m)}}return c};
ly=function(a){var b=[];g.Vc(a,function(c,d){var e=g.Ee(d),f;Array.isArray(c)?f=c:f=[c];g.Ub(f,function(h){""==h?b.push(e):b.push(e+"="+g.Ee(h))})});
return b.join("&")};
my=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return ky(a,"&")};
ny=function(a){a=a.split(",");return a=a.map(function(b){return my(b)})};
g.oy=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),my(1<a.length?a[1]:a[0])):{}};
py=function(a,b){return Pna(a,b||{},!0)};
qy=function(a,b){return Pna(a,b||{},!1)};
Pna=function(a,b,c){var d=a.split("#",2);a=d[0];d=1<d.length?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=my(e[1]||"");for(var f in b)if(c||!g.bd(e,f))e[f]=b[f];return g.Ui(a,e)+d};
ry=function(a){if(!b)var b=window.location.href;var c=g.Oi(1,a),d=g.Pi(a);c&&d?(a=a.match(Ni),b=b.match(Ni),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.Pi(b)==d&&(Number(g.Oi(4,b))||null)==(Number(g.Oi(4,a))||null):!0;return a};
sy=function(a){a||(a=document.location.href);a=g.Oi(1,a);return null!==a&&"https"==a};
ty=function(a){a=g.Pi(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Mna=function(a){return a&&a.match(Qna)?a:Fe(a)};
uy=function(a){var b=Rna;a=void 0===a?Ina():a;var c=Object,d=c.assign,e=Sna(b);var f=b.j;try{var h=f.screenX;var l=f.screenY}catch(O){}try{var m=f.outerWidth;var n=f.outerHeight}catch(O){}try{var p=f.innerWidth;var q=f.innerHeight}catch(O){}try{var t=f.screenLeft;var w=f.screenTop}catch(O){}try{p=f.innerWidth,q=f.innerHeight}catch(O){}try{var z=f.screen.availWidth;var C=f.screen.availTop}catch(O){}f=[t,w,h,l,z,C,m,n,p,q];h=zia(!1,b.j.top);l={};var G=void 0===G?g.Ja:G;m=new tp;"SVGElement"in G&&"createElementNS"in
G.document&&m.set(0);n=Mha();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);G.crypto&&G.crypto.subtle&&m.set(3);"TextDecoder"in G&&"TextEncoder"in G&&m.set(4);G=gla(m);b=(l.bc=G,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=Gl(b.u),l.wgl=!!Dl.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
Sna=function(a){var b={};b.dt=Tna;b.flash="0";a:{try{var c=a.j.top.location.href}catch(p){a=2;break a}a=c?c===a.u.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?Dl:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=null==(f=Dl.screen)?void 0:f.height;var h;b.u_w=null==(h=Dl.screen)?void 0:h.width;var l;b.u_ah=null==(l=Dl.screen)?void 0:l.availHeight;var m;b.u_aw=null==(m=Dl.screen)?void 0:m.availWidth;var n;b.u_cd=null==(n=Dl.screen)?void 0:
n.colorDepth}catch(p){}return b};
Vna=function(){if(!Una)return null;var a=Una();return"open"in a?a:null};
g.wy=function(a){switch(vy(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
vy=function(a){return a&&"status"in a?a.status:-1};
g.yy=function(a,b){"function"===typeof a&&(a=g.iy(a));return window.setTimeout(a,b)};
g.zy=function(a,b){"function"===typeof a&&(a=g.iy(a));return window.setInterval(a,b)};
g.Ay=function(a){window.clearTimeout(a)};
Xna=function(a,b){b=void 0===b?{}:b;var c=ry(a),d=g.cy("web_ajax_ignore_global_headers_if_set"),e;for(e in Wna){var f=g.ay(Wna[e]);"X-Goog-Visitor-Id"!==e||f||(f=g.ay("VISITOR_DATA"));!f||!c&&!By(a,e)||d&&void 0!==b[e]||!(g.cy("move_vss_away_from_login_info_cookie")||"X-Goog-AuthUser"!==e&&"X-Goog-PageId"!==e)||(b[e]=f)}g.cy("move_vss_away_from_login_info_cookie")&&c&&g.ay("SESSION_INDEX")&&(b["X-Yt-Auth-Test"]="test");"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];
if(c||By(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||By(a,"X-YouTube-Time-Zone")){try{var h=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}h&&(b["X-YouTube-Time-Zone"]=h)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&!By(a,"X-YouTube-Ad-Signals")||(b["X-YouTube-Ad-Signals"]=ly(uy()));return b};
Zna=function(a,b){var c=g.Pi(a);g.cy("debug_handle_relative_url_for_query_forward_killswitch")||!c&&ry(a)&&(c=document.location.hostname);var d=Mi(g.Oi(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=my(b),f={};g.Ub(Yna,function(h){e[h]&&(f[h]=e[h])});
return qy(a,f)};
By=function(a){return g.Pi(a)?!1:!0};
g.Dy=function(a,b){var c=b.format||"JSON";a=$na(a,b);var d=aoa(a,b),e=!1,f=Cy(a,function(m){if(!e){e=!0;l&&g.Ay(l);var n=g.wy(m),p=null,q=400<=m.status&&500>m.status,t=500<=m.status&&600>m.status;if(n||q||t)p=boa(a,c,m,b.convertToSafeHtml);if(n)a:if(m&&204==m.status)n=!0;else{switch(c){case "XML":n=0==parseInt(p&&p.return_code,10);break a;case "RAW":n=!0;break a}n=!!p}p=p||{};q=b.context||g.Ja;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,
p)}},b.method,d,b.headers,b.responseType,b.withCredentials);
d=b.timeout||0;if(b.onTimeout&&0<d){var h=b.onTimeout;var l=g.yy(function(){e||(e=!0,f.abort(),g.Ay(l),h.call(b.context||g.Ja,f))},d)}return f};
$na=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.ay("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=py(a,b);return a};
aoa=function(a,b){var c=g.ay("XSRF_FIELD_NAME"),d=g.ay("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.ay("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.Pi(a)&&!b.withCredentials&&g.Pi(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.postParams&&b.postParams[h]||(f||(f={}),f[c]=d);(g.cy("ajax_parse_query_data_only_when_filled")&&f&&0<Object.keys(f).length||f)&&"string"===typeof e&&(e=my(e),g.ld(e,f),e=b.postBodyFormat&&
"JSON"==b.postBodyFormat?JSON.stringify(e):g.Ti(e));f=e||f&&!g.fd(f);!coa&&f&&"POST"!=b.method&&(coa=!0,g.hy(Error("AJAX request with postData should use POST")));return e};
boa=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,jy(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]}'\n"===f.substring(0,5)&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?doa(a):null)e={},g.Ub(a.getElementsByTagName("*"),function(h){e[h.tagName]=eoa(h)})}d&&foa(e);
return e};
foa=function(a){if(g.Pa(a))for(var b in a)"html_content"==b||Haa(b,"_html")?a[b]=g.me(a[b]):foa(a[b])};
doa=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
eoa=function(a){var b="";g.Ub(a.childNodes,function(c){b+=c.nodeValue});
return b};
Ey=function(a,b){b.method="POST";b.postParams||(b.postParams={});return g.Dy(a,b)};
Cy=function(a,b,c,d,e,f,h){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&g.iy(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=Vna();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.cy("debug_forward_web_query_parameters")&&(a=Zna(a,window.location.search));m.open(c,a,!0);f&&(m.responseType=f);h&&(m.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(e=Xna(a,e))for(var n in e)m.setRequestHeader(n,e[n]),"content-type"==n.toLowerCase()&&(c=!1);c&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
m.send(d);return m};
Gy=function(a,b){var c=g.jd(b),d;return(new g.Cf(function(e,f){c.onSuccess=function(h){g.wy(h)?e(new goa(h)):f(new Fy("Request failed, status="+vy(h),"net.badstatus",h))};
c.onError=function(h){f(new Fy("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new Fy("Request timed out","net.timeout",h))};
d=g.Dy(a,c)})).Zj(function(e){e instanceof Kf&&d.abort();
return Hf(e)})};
g.Hy=function(a,b,c,d){function e(l,m,n){return l.Zj(function(p){if(0>=m||403===vy(p.xhr))return Hf(new Fy("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0<h?Math.min(h,p):p;return f(n).then(function(){return e(Gy(a,b),m-1,q)})})}
function f(l){return new g.Cf(function(m){setTimeout(m,l)})}
var h=void 0===h?-1:h;return e(Gy(a,b),c-1,d)};
Fy=function(a,b,c){nb.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
goa=function(a){this.xhr=a};
Iy=function(a){this.j=void 0===a?null:a;this.B=0;this.u=null};
Jy=function(a){var b=new Iy;a=void 0===a?null:a;b.B=2;b.u=void 0===a?null:a;return b};
Ky=function(a){var b=new Iy;a=void 0===a?null:a;b.B=1;b.u=void 0===a?null:a;return b};
g.Ny=function(a,b,c,d,e){Ly||My.set(""+a,b,{FG:c,path:"/",domain:void 0===d?"youtube.com":d,T8:void 0===e?!1:e})};
g.Oy=function(a,b){if(!Ly)return My.get(""+a,b)};
g.Py=function(a,b,c){Ly||My.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
hoa=function(){if(!My.isEnabled())return!1;if(!My.isEmpty())return!0;My.set("TESTCOOKIESENABLED","1",{FG:60});if("1"!==My.get("TESTCOOKIESENABLED"))return!1;My.remove("TESTCOOKIESENABLED");return!0};
g.S=function(a,b){if(a)return a[b.name]};
Qy=function(a){var b=g.ay("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(wfa(a)));return a};
ioa=function(a,b){var c={};g.ay("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null==b?0:b.Authorization)||(c.key=g.ay("INNERTUBE_API_KEY"));g.cy("json_condensed_response")&&(c.prettyPrint="false");return a=qy(a,c)};
Ry=function(a,b){var c=void 0===c?{}:c;a={method:void 0===b?"POST":b,mode:ry(a)?"same-origin":"cors",credentials:ry(a)?"same-origin":"include"};b={};for(var d=g.v(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,c[e]&&(b[e]=c[e]);0<Object.keys(b).length&&(a.headers=b);return a};
joa=function(){var a=/Chrome\/(\d+)/.exec(g.hc());return a?parseFloat(a[1]):NaN};
koa=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.hc());if(!a)return NaN;var b=[];a=g.v(a[1].split("."));for(var c=a.next();!c.done;c=a.next())c=parseInt(c.value,10),0<=c&&b.push(c);return parseFloat(b.join("."))};
Ty=function(){return Sy("android")&&Sy("chrome")&&!(Sy("trident/")||Sy("edge/"))&&!Sy("cobalt")};
loa=function(){return Sy("armv7")||Sy("aarch64")||Sy("android")};
g.Uy=function(){return Sy("cobalt")};
Vy=function(){return Sy("cobalt")&&Sy("appletv")};
Wy=function(){return Sy("(ps3; leanback shell)")||Sy("ps3")&&g.Uy()};
moa=function(){return Sy("(ps4; leanback shell)")||Sy("ps4")&&g.Uy()};
g.noa=function(){return g.Uy()&&(Sy("ps4 vr")||Sy("ps4 pro vr"))};
Xy=function(){var a=/WebKit\/([0-9]+)/.exec(g.hc());return!!(a&&600<=parseInt(a[1],10))};
Yy=function(){var a=/WebKit\/([0-9]+)/.exec(g.hc());return!!(a&&602<=parseInt(a[1],10))};
ooa=function(){return Sy("iemobile")||Sy("windows phone")&&Sy("edge")};
az=function(){return(Zy||$y)&&Sy("applewebkit")&&!Sy("version")&&(!Sy("safari")||Sy("gsa/"))};
cz=function(){return g.bz&&Sy("version/")};
dz=function(){return Sy("smart-tv")&&Sy("samsung")};
Sy=function(a){var b=g.hc();return b?0<=b.toLowerCase().indexOf(a):!1};
ez=function(){return kfa()||az()||cz()?!0:g.ay("EOM_VISITOR_DATA")?!1:!0};
fz=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
gz=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
hz=function(a,b){return void 0===b||null===b?a:Number(b)};
iz=function(a,b){return void 0===b||null===b?a:b.toString()};
jz=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(poa))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
kz=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};
qoa=function(a){return"EMBEDDED_PLAYER_MODE_PFL"===lz(a,!1)};
g.mz=function(a){return"EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"===a||"EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"===a?!0:!1};
lz=function(a,b){b=(void 0===b?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?gz(b,c.embeddedPlayerMode,roa):b};
oz=function(a){nb.call(this,a.message||a.description||a.name);this.isMissing=a instanceof nz;this.isTimeout=a instanceof Fy&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Kf};
nz=function(){nb.call(this,"Biscotti ID is missing from server")};
soa=function(){if(g.cy("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!ez())return Error("User has not consented - not fetching biscotti id.");var a=g.ay("PLAYER_VARS",{});if("1"==g.hd(a,"privembed",!1))return Error("Biscotti ID is not available in private embed mode");if(qoa(a))return Error("Biscotti id fetching has been disabled for pfl.")};
voa=function(){var a=soa();if(void 0!==a)return Hf(a);pz||(pz=Gy("//web.archive.org/web/20230505074338/https://googleads.g.doubleclick.net/pagead/id",qz).then(toa).Zj(function(b){return uoa(2,b)}));
return pz};
toa=function(a){a=a.xhr.responseText;if(!Xb(a,")]}'"))throw new nz;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new nz;a=a.id;Jna(a);pz=Ky(a);woa(18E5,2);return a};
uoa=function(a,b){b=new oz(b);Jna("");pz=Jy(b);0<a&&woa(12E4,a-1);throw b;};
woa=function(a,b){g.yy(function(){Gy("//web.archive.org/web/20230505074338/https://googleads.g.doubleclick.net/pagead/id",qz).then(toa,function(c){return uoa(b,c)}).Zj(g.Hd)},a)};
xoa=function(){try{var a=g.La("yt.ads.biscotti.getId_");return a?a():voa()}catch(b){return Hf(b)}};
Boa=function(a,b,c){a&&(a.dataset?a.dataset[yoa(b)]=String(c):Cga([new Mj(zoa[0].toLowerCase(),Aoa)],a,"data-"+b,c.toString()))};
Coa=function(a){return a?a.dataset?a.dataset[yoa("loaded")]:a.getAttribute("data-loaded"):null};
yoa=function(a){return Doa[a]||(Doa[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
Eoa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=rz+"VisibilityState";if(b in a)return a[b]};
sz=function(a,b){var c;Ym(a,function(d){c=b[d];return!!c});
return c};
tz=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()};
wz=function(a){var b;g.uz()?vz()==a&&(b=document):b=a;return b&&(a=sz(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
xz=function(a){return g.sb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Foa=function(){var a=document;return g.sb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.uz=function(){return!!sz(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
vz=function(a){a=void 0===a?!1:a;var b=sz(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
yz=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 Goa||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&3==c.nodeType&&(c=c.parentNode);this.target=c;var d=a.relatedTarget;
if(d)try{d=d.nodeName?d:null}catch(e){d=null}else"mouseover"==this.type?d=a.fromElement:"mouseout"==this.type&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.j=a.pageX;this.u=a.pageY}}catch(e){}};
Hoa=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.u=a.clientY+b}};
Ioa=function(a,b,c,d){d=void 0===d?{}:d;a.addEventListener&&("mouseenter"!=b||"onmouseenter"in document?"mouseleave"!=b||"onmouseenter"in document?"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return ed(zz,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Pa(e[4])&&g.Pa(d)&&g.id(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.Az=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Ioa(a,b,c,d);if(e)return e;e=++Joa.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new yz(l);if(!sf(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new yz(l);
l.currentTarget=a;return c.call(a,l)};
h=g.iy(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Koa()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);zz[e]=[a,b,c,h,d];return e};
Loa=function(a,b){var c=document.body||document;return g.Az(c,"click",function(d){var e=sf(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.Bz=function(a){a&&("string"==typeof a&&(a=[a]),g.Ub(a,function(b){if(b in zz){var c=zz[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Koa()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete zz[b]}}))};
Moa=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
Cz=function(a){a=a||window.event;var b=a.relatedTarget;b||("mouseover"==a.type?b=a.fromElement:"mouseout"==a.type&&(b=a.toElement));return b};
Noa=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
Ooa=function(a){return Loa(a,function(b){return g.Hp(b,"ytp-ad-has-logging-urls")})};
g.Poa=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.Az(a,b,function(){g.Bz(e);c.apply(a,arguments)},d)};
Dz=function(a){for(var b in zz)zz[b][0]==a&&g.Bz(b)};
Ez=function(a){this.J=a;this.j=null;this.C=0;this.I=null;this.D=0;this.u=[];for(a=0;4>a;a++)this.u.push(0);this.B=0;this.oa=g.Az(window,"mousemove",(0,g.Ta)(this.ea,this));this.V=g.zy((0,g.Ta)(this.Z,this),25)};
Fz=function(a){g.E.call(this);this.V=[];this.Nb=a||this};
Gz=function(a,b,c,d){for(var e=0;e<c.length;e++)a.S(b,c[e],d)};
g.Hz=function(a,b){for(;a.V.length;){var c=a.V.pop(),d=void 0;b&&Qoa()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
Iz=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.jd(b);this.assets=a.assets||{};this.attrs=a.attrs||g.jd(c);this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}};
Roa=function(a){a instanceof Iz||(a=new Iz(a));return a};
g.Lz=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.Jz)():Kz())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.Mz=function(a){var b=Kz(),c=(0,g.Jz)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if("string"!==typeof d)try{d=c.get(a)}catch(e){}if("string"!==typeof d)return null;try{d=JSON.parse(d,void 0)}catch(e){}return d};
Soa=function(){var a=(0,g.Jz)();if(a&&(a=a.u("yt-player-quality")))return a.creation};
g.Nz=function(a){try{var b=Kz(),c=(0,g.Jz)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.Oz=function(){return g.Mz("yt-remote-session-screen-id")};
Pz=function(){this.cY=!0};
Toa=function(){Pz.instance||(Pz.instance=new Pz);return Pz.instance};
Uoa=function(a){var b=this;this.u=void 0;this.j=!1;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.u=c});
a.addEventListener("appinstalled",function(){b.j=!0},{once:!0})};
Qz=function(){if(!g.Ja.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Ja.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Ja.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Ja.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Ja.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
Voa=function(){this.j=g.ay("ALT_PREF_COOKIE_NAME","PREF");this.u=g.ay("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.Oy(this.j);a&&this.parse(a)};
g.Sz=function(){Rz||(Rz=new Voa);return Rz};
g.Tz=function(a,b){return!!((Woa("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
Vz=function(a,b){var c="f"+(Math.floor(a/31)+1);a=1<<a%31;var d=Woa(c)||0;d=b?d|a:d&~a;0===d?delete Uz[c]:(b=d.toString(16),Uz[c]=b.toString())};
Wz=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
Xz=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
Woa=function(a){a=void 0!==Uz[a]?Uz[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
Xoa=function(){var a=g.Ja.navigator;return a?a.connection:void 0};
Zoa=function(){var a=Xoa();if(a){var b=Yoa[a.type||"unknown"]||"CONN_UNKNOWN";a=Yoa[a.effectiveType||"unknown"]||"CONN_UNKNOWN";"CONN_CELLULAR_UNKNOWN"===b&&"CONN_UNKNOWN"!==a&&(b=a);if("CONN_UNKNOWN"!==b)return b;if("CONN_UNKNOWN"!==a)return a}};
apa=function(){var a=Xoa();if(null!=a&&a.effectiveType)return $oa.hasOwnProperty(a.effectiveType)?$oa[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
g.Yz=function(a){var b=g.Ca.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(g.la(b))};
g.$z=function(){try{return g.Zz(),!0}catch(a){return!1}};
g.Zz=function(a){if(void 0!==g.ay("DATASYNC_ID"))return g.ay("DATASYNC_ID");throw new g.Yz("Datasync ID not set",void 0===a?"unknown":a);};
aA=function(){this.j=new WeakMap};
g.cA=function(a,b,c){return bA(b,0,c)};
dA=function(){aA.apply(this,arguments)};
g.eA=function(){dA.instance||(dA.instance=new dA);return dA.instance};
g.fA=function(){return!!g.La("yt.scheduler.instance")};
bA=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.La("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.yy(a,c||0)};
gA=function(a){var b=g.La("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
hA=function(a){var b;(b=g.qq(a))||(a=new mq(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.j=(a=b)?new gq(a):null;this.u=document.domain||window.location.hostname};
jA=function(){var a;return null==(a=iA())?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
bpa=function(){var a={};for(kA=new lA(void 0===a.handleError?mA:a.handleError,void 0===a.logEvent?g.nA:a.logEvent);0<oA.length;)switch(a=oA.shift(),a.type){case "ERROR":kA.GC(a.payload);break;case "EVENT":kA.logEvent(a.eventType,a.payload)}};
qA=function(a){pA||(kA?kA.GC(a):(oA.push({type:"ERROR",payload:a}),10<oA.length&&oA.shift()))};
rA=function(a,b){pA||(kA?kA.logEvent(a,b):(oA.push({type:"EVENT",eventType:a,payload:b}),10<oA.length&&oA.shift()))};
sA=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
tA=function(a){return a.substr(0,a.indexOf(":"))||a};
g.uA=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?cpa[a]:c;d=void 0===d?dpa[a]:d;e=void 0===e?epa[a]:e;g.Yz.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:void 0===self.document,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;this.level=d;this.j=e;Object.setPrototypeOf(this,g.uA.prototype)};
vA=function(a,b){g.uA.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},cpa.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,vA.prototype)};
wA=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,wA.prototype)};
yA=function(a,b,c,d){b=tA(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.uA)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if("QuotaExceededError"===e.name)return new g.uA("QUOTA_EXCEEDED",a);if(g.xA&&"UnknownError"===e.name)return new g.uA("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof wA)return new g.uA("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if("InvalidStateError"===e.name&&fpa.some(function(f){return e.message.includes(f)}))return new g.uA("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if("AbortError"===e.name)return new g.uA("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",iH:e.name})];e.level="WARNING";return e};
g.zA=function(a,b,c){var d=jA();return new g.uA("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:null==d?void 0:d.hasSucceededOnce}})};
gpa=function(a){if(!a)throw Error();throw a;};
hpa=function(a){return a};
AA=function(a){this.j=a};
g.BA=function(a){function b(e){if("PENDING"===d.state.status){d.state={status:"REJECTED",reason:e};e=g.v(d.u);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
function c(e){if("PENDING"===d.state.status){d.state={status:"FULFILLED",value:e};e=g.v(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.u=[];a=a.j;try{a(c,b)}catch(e){b(e)}};
ipa=function(a,b,c,d,e){try{if("FULFILLED"!==a.state.status)throw Error("calling handleResolve before the promise is fulfilled.");var f=c(a.state.value);f instanceof g.BA?CA(a,b,f,d,e):d(f)}catch(h){e(h)}};
jpa=function(a,b,c,d,e){try{if("REJECTED"!==a.state.status)throw Error("calling handleReject before the promise is rejected.");var f=c(a.state.reason);f instanceof g.BA?CA(a,b,f,d,e):d(f)}catch(h){e(h)}};
CA=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.BA?CA(a,b,f,d,e):d(f)},function(f){e(f)})};
kpa=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)};
lpa=function(a){return new Promise(function(b,c){kpa(a,b,c)})};
DA=function(a){return new g.BA(new AA(function(b,c){kpa(a,b,c)}))};
EA=function(a,b){return new g.BA(new AA(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()}))};
mpa=function(a,b){this.request=a;this.cursor=b};
FA=function(a){return DA(a).then(function(b){return b?new mpa(a,b):null})};
npa=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.B=Math.round((0,g.GA)());this.u=!1};
g.IA=function(a,b,c){a=a.j.createObjectStore(b,c);return new HA(a)};
JA=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)};
g.MA=function(a,b,c){return g.KA(a,[b],{mode:"readwrite",Wb:!0},function(d){return g.LA(d.objectStore(b),c)})};
g.KA=function(a,b,c,d){var e,f,h,l,m,n,p,q,t,w,z,C;return g.A(function(G){switch(G.j){case 1:var O={mode:"readonly",Wb:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?O.mode=c:Object.assign(O,c);e=O;a.transactionCount++;f=e.Wb?3:1;h=0;case 2:if(l){G.Ka(3);break}h++;m=Math.round((0,g.GA)());g.ua(G,4);n=a.j.transaction(b,e.mode);O=new NA(n);O=opa(O,d);return g.y(G,O,6);case 6:return p=G.u,q=Math.round((0,g.GA)()),ppa(a,m,q,h,void 0,b.join(),e),G.return(p);case 4:t=g.xa(G);w=Math.round((0,g.GA)());
z=yA(t,a.j.name,b.join(),a.j.version);if((C=z instanceof g.uA&&!z.j)||h>=f)ppa(a,m,w,h,z,b.join(),e),l=z;G.Ka(2);break;case 3:return G.return(Promise.reject(l))}})};
ppa=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.uA&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&rA("QUOTA_EXCEEDED",{dbName:tA(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.uA&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),rA("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),qpa(a,!1,d,f,b,h.tag),qA(e)):qpa(a,!0,d,
f,b,h.tag)};
qpa=function(a,b,c,d,e,f){rA("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
HA=function(a){this.j=a};
g.OA=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
rpa=function(a,b){return g.PA(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
spa=function(a,b,c){var d=[];return g.PA(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
upa=function(a){return"getAllKeys"in IDBObjectStore.prototype?DA(a.j.getAllKeys(void 0,void 0)):tpa(a)};
tpa=function(a){var b=[];return g.vpa(a,{query:void 0},function(c){b.push(c.XF());return c.continue()}).then(function(){return b})};
g.LA=function(a,b,c){return DA(a.j.put(b,c))};
g.PA=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return QA(a).then(function(d){return EA(d,c)})};
g.vpa=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 FA(a).then(function(e){return EA(e,c)})};
NA=function(a){var b=this;this.j=a;this.B=new Map;this.u=!1;this.done=new Promise(function(c,d){b.j.addEventListener("complete",function(){c()});
b.j.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.j.error)});
b.j.addEventListener("abort",function(){var e=b.j.error;if(e)d(e);else if(!b.u){e=g.uA;for(var f=b.j.objectStoreNames,h=[],l=0;l<f.length;l++){var m=f.item(l);if(null===m)throw Error("Invariant: item in DOMStringList is null");h.push(m)}e=new e("UNKNOWN_ABORT",{objectStoreNames:h.join(),dbName:b.j.db.name,mode:b.j.mode});d(e)}})})};
opa=function(a,b){var c=new Promise(function(d,e){try{b(a).then(function(f){d(f)}).catch(e)}catch(f){e(f),a.abort()}});
return Promise.all([c,a.done]).then(function(d){return g.v(d).next().value})};
wpa=function(a){this.j=a};
xpa=function(a,b,c){var d=[];return g.RA(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
g.RA=function(a,b,c){a=a.j.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return QA(a).then(function(d){return EA(d,c)})};
ypa=function(a,b){this.request=a;this.cursor=b};
QA=function(a){return DA(a).then(function(b){return b?new ypa(a,b):null})};
zpa=function(a,b,c){return new Promise(function(d,e){function f(){t||(t=new npa(h.result,{closed:q}));return t}
var h=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.s9,p=c.upgrade,q=c.closed,t;h.addEventListener("upgradeneeded",function(w){try{if(null===w.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");w.dataLoss&&"none"!==w.dataLoss&&rA("IDB_DATA_CORRUPTED",{reason:w.dataLossMessage||"unknown reason",dbName:tA(a)});var z=f(),C=new NA(h.transaction);
p&&p(z,function(G){return w.oldVersion<G&&w.newVersion>=G},C);
C.done.catch(function(G){e(G)})}catch(G){e(G)}});
h.addEventListener("success",function(){var w=h.result;m&&w.addEventListener("versionchange",function(){m(f())});
w.addEventListener("close",function(){rA("IDB_UNEXPECTEDLY_CLOSED",{dbName:tA(a),dbVersion:w.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
Apa=function(a,b,c){c=void 0===c?{}:c;return zpa(a,b,c)};
SA=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.A(function(h){if(1==h.j)return g.ua(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.y(h,lpa(c),4);
if(2!=h.j)return g.va(h,0);f=g.xa(h);throw yA(f,a,"",-1);})};
TA=function(a,b){this.name=a;this.options=b;this.B=!0;this.D=this.C=0};
Bpa=function(a,b){return new g.uA("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
g.hB=function(a,b){if(!b)throw g.zA("openWithToken",tA(a.name));return a.open()};
Cpa=function(a,b){var c;return g.A(function(d){if(1==d.j)return g.y(d,g.hB(iB,b),2);c=d.u;return d.return(g.KA(c,["databases"],{Wb:!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.LA(f,a).then(function(){})})}))})};
jB=function(a,b){var c;return g.A(function(d){if(1==d.j)return a?g.y(d,g.hB(iB,b),2):d.return();c=d.u;return d.return(c.delete("databases",a))})};
Dpa=function(a,b){var c,d;return g.A(function(e){return 1==e.j?(c=[],g.y(e,g.hB(iB,b),2)):3!=e.j?(d=e.u,g.y(e,g.KA(d,["databases"],{Wb:!0,mode:"readonly"},function(f){c.length=0;return g.PA(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return h.continue()})}),3)):e.return(c)})};
Epa=function(a,b){return Dpa(function(c){return c.publicName===a&&void 0!==c.userIdentifier},b)};
Fpa=function(){var a,b,c,d;return g.A(function(e){switch(e.j){case 1:a=jA();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(kB&&Xy()&&!Yy()||g.lB)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.ua(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.y(e,Cpa(d,mB),4);case 4:return g.y(e,jB("yt-idb-test-do-not-use",mB),5);case 5:return e.return(!0);case 2:return g.xa(e),e.return(!1)}})};
Gpa=function(){if(void 0!==nB)return nB;pA=!0;return nB=Fpa().then(function(a){pA=!1;var b;if(null!=(b=iA())&&b.j){var c;b={hasSucceededOnce:(null==(c=jA())?void 0:c.hasSucceededOnce)||a};var d;null==(d=iA())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
oB=function(){return g.La("ytglobal.idbToken_")||void 0};
g.pB=function(){var a=oB();return a?Promise.resolve(a):Gpa().then(function(b){(b=b?mB:void 0)&&g.Ka("ytglobal.idbToken_",b);return b})};
Hpa=function(a){if(!g.$z())throw a=new g.uA("AUTH_INVALID",{dbName:a}),qA(a),a;var b=g.Zz();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
Ipa=function(a,b,c,d){var e,f,h,l,m,n;return g.A(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.y(p,g.pB(),2);case 2:h=p.u;if(!h)throw l=g.zA("openDbImpl",a,b),g.cy("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),qA(l),l;sA(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:Hpa(a);g.ua(p,3);return g.y(p,Cpa(m,h),5);case 5:return g.y(p,Apa(m.actualName,b,d),6);case 6:return p.return(p.u);case 3:return n=g.xa(p),g.ua(p,7),g.y(p,jB(m.actualName,
h),9);case 9:g.va(p,8);break;case 7:g.xa(p);case 8:throw n;}})};
Jpa=function(a,b,c){c=void 0===c?{}:c;return Ipa(a,b,!1,c)};
Kpa=function(a,b,c){c=void 0===c?{}:c;return Ipa(a,b,!0,c)};
Lpa=function(a,b){b=void 0===b?{}:b;var c,d;return g.A(function(e){if(1==e.j)return g.y(e,g.pB(),2);if(3!=e.j){c=e.u;if(!c)return e.return();sA(a);d=Hpa(a);return g.y(e,SA(d.actualName,b),3)}return g.y(e,jB(d.actualName,c),0)})};
Mpa=function(a,b,c){a=a.map(function(d){return g.A(function(e){return 1==e.j?g.y(e,SA(d.actualName,b),2):g.y(e,jB(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
Npa=function(a){var b=void 0===b?{}:b;var c,d;return g.A(function(e){if(1==e.j)return g.y(e,g.pB(),2);if(3!=e.j){c=e.u;if(!c)return e.return();sA(a);return g.y(e,Epa(a,c),3)}d=e.u;return g.y(e,Mpa(d,b,c),0)})};
Opa=function(a,b){b=void 0===b?{}:b;var c;return g.A(function(d){if(1==d.j)return g.y(d,g.pB(),2);if(3!=d.j){c=d.u;if(!c)return d.return();sA(a);return g.y(d,SA(a,b),3)}return g.y(d,jB(a,c),0)})};
qB=function(a,b){TA.call(this,a,b);this.options=b;sA(a)};
Ppa=function(a,b){var c;return function(){c||(c=new qB(a,b));return c}};
g.rB=function(a,b){return Ppa(a,b)};
sB=function(a){return g.hB(Qpa(),a)};
Rpa=function(a,b,c,d){var e,f,h;return g.A(function(l){switch(l.j){case 1:return e={config:a,hashData:b,timestamp:void 0!==d?d:(0,g.GA)()},g.y(l,sB(c),2);case 2:return f=l.u,g.y(l,f.clear("hotConfigStore"),3);case 3:return g.y(l,g.MA(f,"hotConfigStore",e),4);case 4:return h=l.u,l.return(h)}})};
Spa=function(a,b,c,d,e){var f,h,l;return g.A(function(m){switch(m.j){case 1:return f={config:a,hashData:b,configData:c,timestamp:void 0!==e?e:(0,g.GA)()},g.y(m,sB(d),2);case 2:return h=m.u,g.y(m,h.clear("coldConfigStore"),3);case 3:return g.y(m,g.MA(h,"coldConfigStore",f),4);case 4:return l=m.u,m.return(l)}})};
Tpa=function(a){var b,c;return g.A(function(d){return 1==d.j?g.y(d,sB(a),2):3!=d.j?(b=d.u,c=void 0,g.y(d,g.KA(b,["coldConfigStore"],{mode:"readwrite",Wb:!0},function(e){return g.RA(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
Upa=function(a){var b,c;return g.A(function(d){return 1==d.j?g.y(d,sB(a),2):3!=d.j?(b=d.u,c=void 0,g.y(d,g.KA(b,["hotConfigStore"],{mode:"readwrite",Wb:!0},function(e){return g.RA(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
Vpa=function(){return g.A(function(a){return g.y(a,Npa("ytGcfConfig"),0)})};
zB=function(){var a=this;this.D=!1;this.B=this.C=0;this.ze={S7a:function(){a.D=!0},
l7a:function(){return a.j},
K8a:function(b){tB(a,b)},
G8a:function(b){uB(a,b)},
s3:function(){return a.coldHashData},
t3:function(){return a.hotHashData},
w7a:function(){return a.u},
q7a:function(){return vB()},
s7a:function(){return wB()},
r7a:function(){return g.La("yt.gcf.config.coldHashData")},
t7a:function(){return g.La("yt.gcf.config.hotHashData")},
Z8a:function(){Wpa(a)},
B8a:function(){xB(a,"hotHash");yB(a,"coldHash");delete zB.instance},
I8a:function(b){a.B=b},
n7a:function(){return a.B}}};
Xpa=function(){zB.instance||(zB.instance=new zB);return zB.instance};
Ypa=function(a){var b;g.A(function(c){if(1==c.j)return g.cy("gcf_config_store_enabled")||g.cy("delete_gcf_config_db")?g.cy("gcf_config_store_enabled")?g.y(c,g.pB(),3):c.Ka(2):c.return();2!=c.j&&((b=c.u)&&g.$z()&&!g.cy("delete_gcf_config_db")?(a.D=!0,Wpa(a)):(uB(a,g.ay("RAW_COLD_CONFIG_GROUP")),yB(a,g.ay("SERIALIZED_COLD_HASH_DATA")),AB(a,a.j.configData),tB(a,g.ay("RAW_HOT_CONFIG_GROUP")),xB(a,g.ay("SERIALIZED_HOT_HASH_DATA"))));return g.cy("delete_gcf_config_db")?g.y(c,Vpa(),0):c.Ka(0)})};
Zpa=function(a){var b,c,d,e,f,h;return g.A(function(l){switch(l.j){case 1:if(a.u)return l.return(wB());if(!a.D)return b=g.zA("getHotConfig IDB not initialized"),jy(b),l.return(Promise.reject(b));c=oB();d=g.ay("TIME_CREATED_MS");if(!c){e=g.zA("getHotConfig token error");jy(e);l.Ka(2);break}return g.y(l,Upa(c),3);case 3:if((f=l.u)&&f.timestamp>d)return tB(a,f.config),xB(a,f.hashData),l.return(wB());case 2:tB(a,g.ay("RAW_HOT_CONFIG_GROUP"));xB(a,g.ay("SERIALIZED_HOT_HASH_DATA"));if(!(c&&a.u&&a.hotHashData)){l.Ka(4);
break}return g.y(l,Rpa(a.u,a.hotHashData,c,d),4);case 4:return a.u?l.return(wB()):(h=new g.Yz("Config not available in ytConfig"),jy(h),l.return(Promise.reject(h)))}})};
$pa=function(a){var b,c,d,e,f,h;return g.A(function(l){switch(l.j){case 1:if(a.j)return l.return(vB());if(!a.D)return b=g.zA("getColdConfig IDB not initialized"),jy(b),l.return(Promise.reject(b));c=oB();d=g.ay("TIME_CREATED_MS");if(!c){e=g.zA("getColdConfig");jy(e);l.Ka(2);break}return g.y(l,Tpa(c),3);case 3:if((f=l.u)&&f.timestamp>d)return uB(a,f.config),AB(a,f.configData),yB(a,f.hashData),l.return(vB());case 2:uB(a,g.ay("RAW_COLD_CONFIG_GROUP"));yB(a,g.ay("SERIALIZED_COLD_HASH_DATA"));AB(a,a.j.configData);
if(!(c&&a.j&&a.coldHashData&&a.configData)){l.Ka(4);break}return g.y(l,Spa(a.j,a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(vB()):(h=new g.Yz("Config not available in ytConfig"),jy(h),l.return(Promise.reject(h)))}})};
Wpa=function(a){if(!a.u||!a.j){if(!oB()){var b=g.zA("scheduleGetConfigs");jy(b)}a.C||(a.C=g.sp.wi(function(){return g.A(function(c){if(1==c.j)return g.y(c,Zpa(a),2);if(3!=c.j)return g.y(c,$pa(a),3);a.C&&(a.C=0);g.ta(c)})},100))}};
aqa=function(a,b,c){var d,e,f;return g.A(function(h){if(1==h.j){if(!g.cy("update_log_event_config"))return h.Ka(0);c&&tB(a,c);xB(a,b);return(d=oB())?c?h.Ka(4):g.y(h,Upa(d),5):h.Ka(0)}4!=h.j&&(e=h.u,c=null==(f=e)?void 0:f.config);return g.y(h,Rpa(c,b,d),0)})};
bqa=function(a,b,c){var d,e,f,h;return g.A(function(l){if(1==l.j){if(!g.cy("update_log_event_config"))return l.Ka(0);yB(a,b);return(d=oB())?c?l.Ka(4):g.y(l,Tpa(d),5):l.Ka(0)}4!=l.j&&(e=l.u,c=null==(f=e)?void 0:f.config);if(!c)return l.Ka(0);h=c.configData;return g.y(l,Spa(c,b,h,d),0)})};
tB=function(a,b){a.u=b;g.Ka("yt.gcf.config.hotConfigGroup",a.u)};
uB=function(a,b){a.j=b;g.Ka("yt.gcf.config.coldConfigGroup",a.j)};
xB=function(a,b){a.hotHashData=b;g.Ka("yt.gcf.config.hotHashData",a.hotHashData)};
yB=function(a,b){a.coldHashData=b;g.Ka("yt.gcf.config.coldHashData",a.coldHashData)};
AB=function(a,b){a.configData=b;g.Ka("yt.gcf.config.coldConfigData",a.configData)};
wB=function(){return g.La("yt.gcf.config.hotConfigGroup")};
vB=function(){return g.La("yt.gcf.config.coldConfigGroup")};
cqa=function(){return"INNERTUBE_API_KEY"in Zx&&"INNERTUBE_API_VERSION"in Zx};
g.BB=function(){return{innertubeApiKey:g.ay("INNERTUBE_API_KEY"),innertubeApiVersion:g.ay("INNERTUBE_API_VERSION"),nG:g.ay("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),yM:g.ay("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),MU:g.ay("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.ay("INNERTUBE_CONTEXT_CLIENT_VERSION"),AM:g.ay("INNERTUBE_CONTEXT_HL"),zM:g.ay("INNERTUBE_CONTEXT_GL"),NU:g.ay("INNERTUBE_HOST_OVERRIDE")||"",OU:!!g.ay("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),BM:!!g.ay("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.ay("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.CB=function(a){var b={client:{hl:a.AM,gl:a.zM,clientName:a.yM,clientVersion:a.innertubeContextClientVersion,configInfo:a.nG}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.Ja.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=ey();""!==c&&(b.client.experimentsToken=c);c=fy();0<c.length&&(b.request={internalExperimentFlags:c});dqa(a,void 0,b);eqa(void 0,b);fqa(void 0,b);gqa(a,void 0,b);hqa(void 0,b);g.cy("start_sending_config_hash")&&iqa(void 0,b);
g.ay("DELEGATED_SESSION_ID")&&!g.cy("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.ay("DELEGATED_SESSION_ID")});a=Object;c=a.assign;for(var d=b.client,e={},f=g.v(Object.entries(my(g.ay("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.v(h.value);h=l.next().value;l=l.next().value;"cbrand"===h?e.deviceMake=l:"cmodel"===h?e.deviceModel=l:"cbr"===h?e.browserName=l:"cbrver"===h?e.browserVersion=l:"cos"===h?e.osName=l:"cosver"===h?e.osVersion=l:"cplatform"===h&&(e.platform=l)}b.client=c.call(a,
d,e);return b};
kqa=function(a){var b=new Ts,c=new g.Ns;L(c,1,a.AM);L(c,2,a.zM);L(c,16,a.MU);L(c,17,a.innertubeContextClientVersion);if(a.nG){var d=a.nG,e=new Is;d.coldConfigData&&L(e,1,d.coldConfigData);d.appInstallData&&L(e,6,d.appInstallData);d.coldHashData&&L(e,3,d.coldHashData);d.hotHashData&&L(e,5,d.hotHashData);Ch(c,Is,62,e)}(d=g.Ja.devicePixelRatio)&&1!=d&&Eh(c,65,d);d=ey();""!==d&&L(c,54,d);d=fy();if(0<d.length){e=new Ps;for(var f=0;f<d.length;f++){var h=new Os;L(h,1,d[f].key);yh(h,2,jqa,d[f].value);Hh(e,
15,Os,h)}Ch(b,Ps,5,e)}dqa(a,c);eqa(b);fqa(c);gqa(a,c);hqa(c);g.cy("start_sending_config_hash")&&iqa(c);g.ay("DELEGATED_SESSION_ID")&&!g.cy("pageid_as_header_web")&&(a=new Ss,L(a,3,g.ay("DELEGATED_SESSION_ID")));a=g.v(Object.entries(my(g.ay("DEVICE",""))));for(d=a.next();!d.done;d=a.next())e=g.v(d.value),d=e.next().value,e=e.next().value,"cbrand"===d?L(c,12,e):"cmodel"===d?L(c,13,e):"cbr"===d?L(c,87,e):"cbrver"===d?L(c,88,e):"cos"===d?L(c,18,e):"cosver"===d?L(c,19,e):"cplatform"===d&&L(c,42,e);b.zt(c);
return b};
dqa=function(a,b,c){a=a.yM;if("WEB"===a||"MWEB"===a||1===a||2===a)if(b){c=Ah(b,Ms,96)||new Ms;var d=Qz();d=Object.keys(lqa).indexOf(d);d=-1===d?null:d;null!==d&&L(c,3,d);Ch(b,Ms,96,c)}else c&&(c.client.mainAppWebInfo=null!=(d=c.client.mainAppWebInfo)?d:{},c.client.mainAppWebInfo.webDisplayMode=Qz())};
eqa=function(a,b){var c=g.La("yt.embedded_player.embed_url");c&&(a?(b=Ah(a,Qs,7)||new Qs,L(b,4,c),Ch(a,Qs,7,b)):b&&(b.thirdParty={embedUrl:c}))};
fqa=function(a,b){var c;if(g.cy("web_log_memory_total_kbytes")&&(null==(c=g.Ja.navigator)?0:c.deviceMemory)){var d;c=null==(d=g.Ja.navigator)?void 0:d.deviceMemory;a?L(a,95,1E6*c):b&&(b.client.memoryTotalKbytes=""+1E6*c)}};
gqa=function(a,b,c){if(a.appInstallData)if(b){var d;c=null!=(d=Ah(b,Is,62))?d:new Is;L(c,6,a.appInstallData);Ch(b,Is,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
hqa=function(a,b){var c=Zoa();c&&(a?L(a,61,mqa[c]):b&&(b.client.connectionType=c));g.cy("web_log_effective_connection_type")&&(c=apa())&&(a?L(a,94,nqa[c]):b&&(b.client.effectiveConnectionType=c))};
oqa=function(a,b,c){c=void 0===c?{}:c;var d={};g.ay("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.ay("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.ay("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.zS||g.ay("AUTHORIZATION");b||(a?b="Bearer "+g.La("gapi.auth.getToken")().access_token:(a=Toa().CB(DB),g.cy("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d};
iqa=function(a,b){var c=Xpa();var d=(0,g.GA)()-c.B;if(0!==c.B&&d<g.dy("send_config_hash_timer"))c=void 0;else{d=g.La("yt.gcf.config.coldConfigData");var e=g.La("yt.gcf.config.hotHashData"),f=g.La("yt.gcf.config.coldHashData");d&&e&&f&&(c.B=(0,g.GA)());c={coldConfigData:d,hotHashData:e,coldHashData:f}}if(e=c)if(c=e.coldConfigData,d=e.coldHashData,e=e.hotHashData,c&&d&&e)if(a){var h;b=null!=(h=Ah(a,Is,62))?h:new Is;L(b,1,c);L(b,3,d);L(b,5,e);Ch(a,Is,62,b)}else b&&(b.client.configInfo=b.client.configInfo||
{},b.client.configInfo.coldConfigData=c,b.client.configInfo.coldHashData=d,b.client.configInfo.hotHashData=e)};
EB=function(a,b){this.version=a;this.args=b};
FB=function(a,b){this.topic=a;this.j=b};
HB=function(a,b){var c=GB();c&&c.publish.call(c,a.toString(),a,b)};
qqa=function(a,b){var c=GB();if(!c)return 0;var d=c.subscribe(a.toString(),function(e,f){var h=g.La("ytPubsub2Pubsub2SkipSubKey");h&&h==d||(h=function(){if(IB[d])try{if(f&&a instanceof FB&&a!=e)try{var l=a.j,m=f;if(!m.args||!m.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!l.Nt){var n=new l;l.Nt=n.version}var p=l.Nt}catch(q){}if(!p||m.version!=p)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{f=Reflect.construct(l,
g.Db(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 "+a.toString()+": "+q.message,q;}b.call(window,f)}catch(q){g.hy(q)}},pqa[a.toString()]?g.fA()?g.sp.wi(h):g.yy(h,0):h())});
IB[d]=!0;JB[a.toString()]||(JB[a.toString()]=[]);JB[a.toString()].push(d);return d};
KB=function(a,b){var c=qqa(a,function(d){b.apply(void 0,arguments);rqa(c)});
return c};
rqa=function(a){var b=GB();b&&("number"===typeof a&&(a=[a]),g.Ub(a,function(c){b.unsubscribeByKey(c);delete IB[c]}))};
GB=function(){return g.La("ytPubsub2Pubsub2Instance")};
LB=function(a,b,c){c=void 0===c?{sampleRate:.1}:c;Math.random()<Math.min(.02,c.sampleRate/100)&&HB("meta_logging_csi_event",{timerName:a,X8a:b})};
PB=function(a,b,c,d){var e=(0,g.GA)(),f={startTime:e,ticks:{},infos:{}};if(MB)try{var h=sqa(b);if(null==h||!(h>tqa||h<uqa)){var l=jma(vqa(b)),m=(0,g.GA)();f.ticks.gelc=m;NB++;g.cy("disable_compression_due_to_performance_degredation")&&m-e>=wqa&&(OB++,g.cy("abandon_compression_after_N_slow_zips")?NB===g.dy("compression_disable_point")&&OB>xqa&&(MB=!1):MB=!1);yqa(f);c.headers||(c.headers={});c.headers["Content-Encoding"]="gzip";c.postBody=l;c.postParams=void 0}d(a,c)}catch(n){jy(n),d(a,c)}else d(a,
c)};
zqa=function(a){var b=void 0===b?!1:b;var c=(0,g.GA)(),d={startTime:c,ticks:{},infos:{}};if(MB){if(!a.body)return a;try{var e="string"===typeof a.body?a.body:JSON.stringify(a.body),f=sqa(e);if(null!=f&&(f>tqa||f<uqa))return a;var h=jma(vqa(e)),l=(0,g.GA)();d.ticks.gelc=l;if(b){NB++;if(g.cy("disable_compression_due_to_performance_degredation")&&l-c>=wqa)if(OB++,g.cy("abandon_compression_after_N_slow_zips")){b=OB/NB;var m=xqa/g.dy("compression_disable_point");0<NB&&0===NB%g.dy("compression_disable_point")&&
b>=m&&(MB=!1)}else MB=!1;yqa(d)}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=h;return a}catch(n){return jy(n),a}}else return a};
sqa=function(a){try{return(new Blob(a.split(""))).size}catch(b){return jy(b),null}};
yqa=function(a){g.cy("gel_compression_csi_killswitch")||!g.cy("log_gel_compression_latency")&&!g.cy("log_gel_compression_latency_lr")||LB("gel_compression",a,{sampleRate:.1})};
RB=function(a){var b=this;this.XE=this.ag=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){};
this.Hy=function(){};
this.now=Date.now;this.nB=!1;this.ze={H8a:function(p){b.yf=p},
a9a:function(){b.Xz()},
d2:function(){b.FK()},
hC:function(p){return g.A(function(q){return g.y(q,b.hC(p),0)})},
QH:function(p,q){return b.QH(p,q)},
TH:function(){b.TH()}};
var c;this.gY=null!=(c=a.gY)?c:100;var d;this.uX=null!=(d=a.uX)?d:1;var e;this.nX=null!=(e=a.nX)?e:2592E6;var f;this.iX=null!=(f=a.iX)?f:12E4;var h;this.tX=null!=(h=a.tX)?h:5E3;var l;this.yf=null!=(l=a.yf)?l:void 0;this.tF=!!a.tF;var m;this.eF=null!=(m=a.eF)?m:.1;var n;this.wH=null!=(n=a.wH)?n:10;a.handleError&&(this.handleError=a.handleError);a.Hy&&(this.Hy=a.Hy);a.nB&&(this.nB=a.nB);a.XE&&(this.XE=a.XE);this.kb=a.kb;this.Zm=a.Zm;this.gh=a.gh;this.Xg=a.Xg;this.Qq=a.Qq;this.iO=a.iO;this.vN=a.vN;QB(this)&&
(!this.kb||this.kb("networkless_logging"))&&Aqa(this)};
Aqa=function(a){QB(a)&&!a.nB&&(a.ag=!0,a.tF&&Math.random()<=a.eF&&a.gh.h2(a.yf),a.TH(),a.Xg.Qh()&&a.Xz(),a.Xg.Ra(a.iO,a.Xz.bind(a)),a.Xg.Ra(a.vN,a.FK.bind(a)))};
Dqa=function(a,b){if(!QB(a))throw g.zA("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
b.options.onError=function(e,f){var h,l,m,n;return g.A(function(p){switch(p.j){case 1:h=Bqa(f);(l=Cqa(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.wH)){p.Ka(2);break}if(!a.Xg.YH){p.Ka(3);break}return g.y(p,a.Xg.YH(),3);case 3:if(a.Xg.Qh()){p.Ka(2);break}c(e,f);if(!a.kb||!a.kb("nwl_consider_error_code")||void 0===(null==(m=
b)?void 0:m.id)){p.Ka(6);break}return g.y(p,a.gh.TO(b.id,a.yf,!1),6);case 6:return p.return();case 2:if(a.kb&&a.kb("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.wH)return p.return();a.potentialEsfErrorCounter++;if(void 0===(null==(n=b)?void 0:n.id)){p.Ka(8);break}return b.sendCount<a.uX?g.y(p,a.gh.TO(b.id,a.yf,!0,l?!1:void 0),12):g.y(p,a.gh.iy(b.id,a.yf),8);case 12:a.Zm.wi(function(){a.Xg.Qh()&&a.Xz()},a.tX);
case 8:c(e,f),g.ta(p)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,f){var h;return g.A(function(l){if(1==l.j)return void 0===(null==(h=b)?void 0:h.id)?l.Ka(2):g.y(l,a.gh.iy(b.id,a.yf),2);a.Xg.Bv&&a.kb&&a.kb("vss_network_hint")&&a.Xg.Bv(!0);d(e,f);g.ta(l)})};
return b};
SB=function(a,b){a.ZY&&!a.Xg.Qh()?a.ZY(b):a.handleError(b)};
QB=function(a){return!!a.yf||a.XE};
Bqa=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0};
Cqa=function(a){var b;a=null==a?void 0:null==(b=a.error)?void 0:b.code;return!(400!==a&&415!==a)};
Eqa=function(){if(TB)return TB();var a={};TB=g.rB("LogsDatabaseV2",{Fq:(a.LogsRequestsStore={Cm:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.IA(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.OA(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&JA(b,"sapisid");c(9)&&JA(b,"SWHealthLog")},
version:9});return TB()};
UB=function(a){return g.hB(Eqa(),a)};
Gqa=function(a,b){var c,d,e,f;return g.A(function(h){if(1==h.j)return c={startTime:(0,g.GA)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.y(h,UB(b),2);if(3!=h.j)return d=h.u,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.ay("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.y(h,g.MA(d,"LogsRequestsStore",e),3);f=h.u;c.ticks.tc=(0,g.GA)();Fqa(c);return h.return(f)})};
Hqa=function(a,b){var c,d,e,f,h,l,m;return g.A(function(n){if(1==n.j)return c={startTime:(0,g.GA)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.y(n,UB(b),2);if(3!=n.j)return d=n.u,e=g.ay("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.GA)()],l=IDBKeyRange.bound(f,h),m=void 0,g.y(n,g.KA(d,["LogsRequestsStore"],{mode:"readwrite",Wb:!0},function(p){return g.RA(p.objectStore("LogsRequestsStore").index("newRequestV2"),{query:l,direction:"prev"},function(q){q.getValue()&&
(m=q.getValue(),"NEW"===a&&(m.status="QUEUED",q.update(m)))})}),3);
c.ticks.tc=(0,g.GA)();Fqa(c);return n.return(m)})};
Iqa=function(a,b){var c;return g.A(function(d){if(1==d.j)return g.y(d,UB(b),2);c=d.u;return d.return(g.KA(c,["LogsRequestsStore"],{mode:"readwrite",Wb:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.LA(f,h).then(function(){return h})})}))})};
Jqa=function(a,b,c,d){c=void 0===c?!0:c;var e;return g.A(function(f){if(1==f.j)return g.y(f,UB(b),2);e=f.u;return f.return(g.KA(e,["LogsRequestsStore"],{mode:"readwrite",Wb:!0},function(h){var l=h.objectStore("LogsRequestsStore");return l.get(a).then(function(m){return m?(m.status="NEW",c&&(m.sendCount+=1),void 0!==d&&(m.options.compress=d),g.LA(l,m).then(function(){return m})):g.BA.resolve(void 0)})}))})};
Kqa=function(a,b){var c;return g.A(function(d){if(1==d.j)return g.y(d,UB(b),2);c=d.u;return d.return(c.delete("LogsRequestsStore",a))})};
Lqa=function(a){var b,c;return g.A(function(d){if(1==d.j)return g.y(d,UB(a),2);b=d.u;c=(0,g.GA)()-2592E6;return g.y(d,g.KA(b,["LogsRequestsStore"],{mode:"readwrite",Wb:!0},function(e){return g.PA(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
Mqa=function(){g.A(function(a){return g.y(a,Npa("LogsDatabaseV2"),0)})};
Fqa=function(a){g.cy("nwl_csi_killswitch")||LB("networkless_performance",a,{sampleRate:1})};
Oqa=function(a){return g.hB(Nqa(),a)};
Pqa=function(a){var b,c;g.A(function(d){if(1==d.j)return g.y(d,Oqa(a),2);b=d.u;c=(0,g.GA)()-2592E6;return g.y(d,g.KA(b,["SWHealthLog"],{mode:"readwrite",Wb:!0},function(e){return g.PA(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
Qqa=function(a){var b;return g.A(function(c){if(1==c.j)return g.y(c,Oqa(a),2);b=c.u;return g.y(c,b.clear("SWHealthLog"),0)})};
g.VB=function(a,b,c,d,e,f){e=void 0===e?"":e;f=void 0===f?!1:f;if(a)if(c&&!g.Uy()){if(a){a=g.Yd(g.$d(a));if("about:invalid#zClosurez"===a||a.startsWith("data"))a="";else{var h=void 0===h?{}:h;a=a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");h.v8a&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1&#160;"));h.u8a&&(a=a.replace(/(\r\n|\n|\r)/g,"<br>"));h.w8a&&(a=a.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>'));h=g.me(a);a=g.Ee(g.Hi(g.fe(h).toString()))}g.$b(a)||
(h=Ye("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),Le(h).body.appendChild(h))}}else if(e)Cy(a,b,"POST",e,d);else if(g.ay("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Cy(a,b,"GET","",d,void 0,f);else{b:{try{var l=new Zka({url:a});if(l.B&&l.u||l.C){var m=Mi(g.Oi(5,a));var n=!(!m||!m.endsWith("/aclk")||"1"!==Wi(a,"ri"));break b}}catch(p){}n=!1}n?Rqa(a)?(b&&b(),h=!0):h=!1:h=!1;h||Sqa(a,b)}};
Rqa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
Sqa=function(a,b){var c=new Image,d=""+Tqa++;WB[d]=c;c.onload=c.onerror=function(){b&&WB[d]&&b();delete WB[d]};
c.src=a};
XB=function(){this.j=new Map;this.u=!1};
YB=function(){if(!XB.instance){var a=g.La("yt.networkRequestMonitor.instance")||new XB;g.Ka("yt.networkRequestMonitor.instance",a);XB.instance=a}return XB.instance};
$B=function(){ZB||(ZB=new hA("yt.offline"));return ZB};
Uqa=function(a){if(g.cy("offline_error_handling")){var b=$B().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);$B().set("errors",b,2592E3,!0)}};
aC=function(){g.Cd.call(this);var a=this;this.u=!1;this.j=fla();this.j.Ra("networkstatus-online",function(){if(a.u&&g.cy("offline_error_handling")){var b=$B().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.Yz(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.hy(d)}$B().set("errors",{},2592E3,!0)}}})};
Vqa=function(){if(!aC.instance){var a=g.La("yt.networkStatusManager.instance")||new aC;g.Ka("yt.networkStatusManager.instance",a);aC.instance=a}return aC.instance};
g.bC=function(a){a=void 0===a?{}:a;g.Cd.call(this);var b=this;this.j=this.C=0;this.u=Vqa();var c=g.La("yt.networkStatusManager.instance.listen").bind(this.u);c&&(a.DH?(this.DH=a.DH,c("networkstatus-online",function(){Wqa(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){Wqa(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
Wqa=function(a,b){a.DH?a.j?(g.sp.Em(a.C),a.C=g.sp.wi(function(){a.B!==b&&(a.dispatchEvent(b),a.B=b,a.j=(0,g.GA)())},a.DH-((0,g.GA)()-a.j))):(a.dispatchEvent(b),a.B=b,a.j=(0,g.GA)()):a.dispatchEvent(b)};
dC=function(){var a=RB.call;cC||(cC=new g.bC({g8a:!0,U6a:!0}));a.call(RB,this,{gh:{h2:Lqa,iy:Kqa,VT:Hqa,E4:Iqa,TO:Jqa,set:Gqa},Xg:cC,handleError:function(b,c,d){var e,f=null==d?void 0:null==(e=d.error)?void 0:e.code;if(400===f||415===f){var h;jy(new g.Yz(b.message,c,null==d?void 0:null==(h=d.error)?void 0:h.code),void 0,void 0,void 0,!0)}else g.hy(b)},
Hy:jy,Qq:Xqa,now:g.GA,ZY:Uqa,Zm:g.eA(),iO:"publicytnetworkstatus-online",vN:"publicytnetworkstatus-offline",tF:!0,eF:.1,wH:g.dy("potential_esf_error_limit",10),kb:g.cy,nB:!(g.$z()&&"www.youtube-nocookie.com"!==g.Pi(document.location.toString()))});this.u=new g.Kj;g.cy("networkless_immediately_drop_all_requests")&&Mqa();Opa("LogsDatabaseV2")};
eC=function(){var a=g.La("yt.networklessRequestController.instance");a||(a=new dC,g.Ka("yt.networklessRequestController.instance",a),g.cy("networkless_logging")&&g.pB().then(function(b){a.yf=b;Aqa(a);a.u.resolve();a.tF&&Math.random()<=a.eF&&a.yf&&Pqa(a.yf);g.cy("networkless_immediately_drop_sw_health_store")&&Yqa(a)}));
return a};
Yqa=function(a){var b;g.A(function(c){if(!a.yf)throw b=g.zA("clearSWHealthLogsDb"),b;return c.return(Qqa(a.yf).catch(function(d){a.handleError(d)}))})};
Xqa=function(a,b,c){b=g.cy("web_fp_via_jspb")?Object.assign({},b):b;g.cy("use_cfr_monitor")&&Zqa(a,b);if(g.cy("use_request_time_ms_header"))b.headers&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.GA)())));else{var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.GA)())}c&&0===Object.keys(b).length?g.VB(a):b.compress?b.postBody?("string"!==typeof b.postBody&&(b.postBody=JSON.stringify(b.postBody)),PB(a,b.postBody,b,g.Dy)):PB(a,JSON.stringify(b.postParams),
b,Ey):g.Dy(a,b)};
Zqa=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,f){YB().requestComplete(a,!1);c(e,f)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,f){YB().requestComplete(a,!0);d(e,f)}};
g.fC=function(a){this.config_=null;a?this.config_=a:cqa()&&(this.config_=g.BB())};
g.gC=function(a,b,c,d){function e(p){try{if((void 0===p?0:p)&&d.retry&&!d.JV.bypassNetworkless)f.method="POST",d.JV.writeThenSend?eC().writeThenSend(n,f):eC().sendAndWrite(n,f);else if(d.compress)if(f.postBody){var q=f.postBody;"string"!==typeof q&&(q=JSON.stringify(f.postBody));PB(n,q,f,g.Dy)}else PB(n,JSON.stringify(f.postParams),f,Ey);else g.cy("web_all_payloads_via_jspb")?g.Dy(n,f):Ey(n,f)}catch(t){if("InvalidAccessError"==t.name)jy(Error("An extension is blocking network request."));else throw t;
}}
!g.ay("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&jy(new g.Yz("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.Yz("innertube xhrclient not ready",b,c,d),g.hy(a),a;var f={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()},
onFetchTimeout:d.onTimeout,onSuccess:function(p,q){if(d.onSuccess)d.onSuccess(q)},
onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)},
onError:function(p,q){if(d.onError)d.onError(q)},
onFetchError:function(p){if(d.onError)d.onError(p)},
timeout:d.timeout,withCredentials:!0,compress:d.compress};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");c="";var h=a.config_.NU;h&&(c=h);var l=a.config_.OU||!1;h=oqa(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_.BM&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=py(""+c+b,l);g.La("ytNetworklessLoggingInitializationOptions")&&
$qa.isNwlInitialized?Gpa().then(function(p){e(p)}):e(!1)};
g.lC=function(a,b,c){var d=g.hC();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){iC[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.jC[a]?h():g.yy(h,0)}catch(l){g.hy(l)}},c);
iC[e]=!0;kC[a]||(kC[a]=[]);kC[a].push(e);return e}return 0};
ara=function(a){var b=g.lC("LOGGED_IN",function(c){a.apply(void 0,arguments);g.mC(b)})};
g.mC=function(a){var b=g.hC();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.Ub(a,function(c){b.unsubscribeByKey(c);delete iC[c]}))};
g.nC=function(a,b){var c=g.hC();return c?c.publish.apply(c,arguments):!1};
cra=function(a){var b=g.hC();if(b)if(b.clear(a),a)bra(a);else for(var c in kC)bra(c)};
g.hC=function(){return g.Ja.ytPubsubPubsubInstance};
bra=function(a){kC[a]&&(a=kC[a],g.Ub(a,function(b){iC[b]&&delete iC[b]}),a.length=0)};
g.oC=function(a,b,c){c=void 0===c?null:c;if(window.spf&&spf.script){c="";if(a){var d=a.indexOf("jsbin/"),e=a.lastIndexOf(".js"),f=d+6;-1<d&&-1<e&&e>f&&(c=a.substring(f,e),c=c.replace(dra,""),c=c.replace(era,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else fra(a,b,c)};
fra=function(a,b,c){c=void 0===c?null:c;var d=gra(a),e=document.getElementById(d),f=e&&Coa(e),h=e&&!f;f?b&&b():(b&&(f=g.lC(d,b),b=""+g.Sa(b),hra[b]=f),h||(e=ira(a,d,function(){Coa(e)||(Boa(e,"loaded","true"),g.nC(d),g.yy(g.Ua(cra,d),0))},c)))};
ira=function(a,b,c,d){d=void 0===d?null:d;var e=g.Ze("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.dk(e,g.pr(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
gra=function(a){var b=document.createElement("a");g.ne(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Ie(a)};
rC=function(a){var b=g.Ca.apply(1,arguments);if(!pC(a)||b.some(function(d){return!pC(d)}))throw Error("Only objects may be merged.");
b=g.v(b);for(var c=b.next();!c.done;c=b.next())qC(a,c.value);return a};
qC=function(a,b){for(var c in b)if(pC(b[c])){if(c in a&&!pC(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});qC(a[c],b[c])}else if(sC(b[c])){if(c in a&&!sC(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);jra(a[c],b[c])}else a[c]=b[c];return a};
jra=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next())c=c.value,pC(c)?a.push(qC({},c)):sC(c)?a.push(jra([],c)):a.push(c);return a};
pC=function(a){return"object"===typeof a&&!Array.isArray(a)};
sC=function(a){return"object"===typeof a&&Array.isArray(a)};
tC=function(a,b,c,d,e,f,h){g.E.call(this);this.Ca=a;this.ac=b;this.Jb=c;this.Xd=d;this.Ta=e;this.u=f;this.j=h};
mra=function(a,b,c){var d,e=(null!=(d=c.adSlots)?d:[]).map(function(f){return g.S(f,kra)});
c.Wz?(a.Ca.get().F.T().K("h5_check_forecasting_renderer_for_throttled_midroll")?(d=c.po.filter(function(f){var h;return null!=(null==(h=f.renderer)?void 0:h.clientForecastingAdRenderer)}),0!==d.length?uC(a.j,d,e,b.slotId,c.ssdaiAdsConfig):vC(a.ac.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId)):vC(a.ac.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),lra(a.u,b)):uC(a.j,c.po,e,b.slotId,c.ssdaiAdsConfig)};
ora=function(a,b,c,d,e,f){var h=a.Ta.get().rg(1);vC(a.ac.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return nra(a.Xd.get(),c,d,e,h.clientPlaybackNonce,h.aT,h.daiEnabled,h,f)},b)};
xC=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.v(b);for(c=b.next();!c.done;c=b.next())if(!wC(a.Ba,c.value))return!1;return!0};
yC=function(){return""};
pra=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}};
zC=function(a,b,c,d){d=void 0===d?!1:d;nb.call(this,a);this.nk=c;this.nu=d;this.args=[];b&&this.args.push(b)};
AC=function(a,b,c){this.er=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=c||a(this.triggerType)};
qra=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
rra=function(){this.Ir=[];this.Eq=[]};
CC=function(){if(!BC){var a=BC=new rra;a.Eq.length=0;a.Ir.length=0;sra(a,tra)}return BC};
sra=function(a,b){b.Eq&&a.Eq.push.apply(a.Eq,b.Eq);b.Ir&&a.Ir.push.apply(a.Ir,b.Ir)};
ura=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=DC(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=DC(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=DC(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(d<c)};
DC=function(a){var b=a(),c=b&127;if(128>b)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity};
vra=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=EC(d,a[d],b,c),500<e));d++);d=e}else if("object"===typeof a)for(e in a){if(a[e]){var f=a[e];var h=b;var l=c;h="string"!==typeof f||"clickTrackingParams"!==e&&"trackingParams"!==e?0:(f=ura(atob(f.replace(/-/g,"+").replace(/_/g,"/"))))?EC(e+".ve",f,h,l):0;d+=h;d+=EC(e,a[e],b,c);if(500<d)break}}else c[b]=FC(a),d+=c[b].length;else c[b]=FC(a),d+=c[b].length;return d};
EC=function(a,b,c,d){c+="."+a;a=FC(b);d[c]=a;return c.length+a.length};
FC=function(a){try{return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}};
IC=function(){var a={},b=void 0===a.r8?!1:a.r8;a=void 0===a.S2?!0:a.S2;if(null==g.La("_lact",window)){var c=parseInt(g.ay("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Ka("_lact",c,window);g.Ka("_fact",c,window);-1==c&&GC();g.Az(document,"keydown",GC);g.Az(document,"keyup",GC);g.Az(document,"mousedown",GC);g.Az(document,"mouseup",GC);b?g.Az(window,"touchmove",function(){HC("touchmove",200)},{passive:!0}):(g.Az(window,"resize",function(){HC("resize",200)}),a&&g.Az(window,"scroll",function(){HC("scroll",
200)}));
new Ez(function(){HC("mouse",100)});
g.Az(document,"touchstart",GC,{passive:!0});g.Az(document,"touchend",GC,{passive:!0})}};
HC=function(a,b){JC[a]||(JC[a]=!0,g.sp.wi(function(){GC();JC[a]=!1},b))};
GC=function(a){var b;if(null!=(b=g.La("experiment.flags",window))&&b.enable_lact_reset_by_volume_buttons||!wra.has(null==a?void 0:a.keyCode))null==g.La("_lact",window)&&(IC(),g.La("_lact",window)),a=Date.now(),g.Ka("_lact",a,window),-1==g.La("_fact",window)&&g.Ka("_fact",a,window),(a=g.La("ytglobal.ytUtilActivityCallback_"))&&a()};
KC=function(){var a=g.La("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)};
LC=function(a){this.name=a};
MC=function(a){this.key=a};
xra=function(){var a=this;this.j=new Map;this.u=new Map;this.ze={x7a:function(){return new Map(a.j)}}};
NC=function(a,b){a.j.set(b.FO,b)};
PC=function(a,b,c,d){d=void 0===d?!1:d;if(-1<c.indexOf(b))throw Error("Deps cycle for: "+b);if(a.u.has(b))return a.u.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(void 0!==d.cQ)var e=d.cQ;else if(d.Q9)e=d[OC]?yra(a,d[OC],c):[],e=d.Q9.apply(d,g.la(e));else if(d.OY){e=d.OY;var f=e[OC]?yra(a,e[OC],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.la(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.S8a||a.u.set(b,e);
return e};
yra=function(a,b,c){return b?b.map(function(d){return d instanceof MC?PC(a,d.key,c,!0):PC(a,d,c)}):[]};
RC=function(){QC||(QC=new xra);return QC};
SC=function(){var a=this;this.store={};this.j=0;this.u={};this.ze={o7a:function(){return a.j}}};
VC=function(a,b){var c=TC(b);if(a.u[c])return a.u[c];var d=Object.keys(a.store)||[];if(1>=d.length&&TC(b)===d[0])return d;for(var e=[],f=0;f<d.length;f++){var h=d[f].split("/");if(UC(b.auth,h[0])){var l=b.isJspb;UC(void 0===l?"undefined":l?"true":"false",h[1])&&UC(b.cttAuthInfo,h[2])&&(l=b.tier,l=void 0===l?"undefined":JSON.stringify(l),UC(l,h[3])&&e.push(d[f]))}}return a.u[c]=e};
UC=function(a,b){return void 0===a||"undefined"===a?!0:a===b};
TC=function(a){return[void 0===a.auth?"undefined":a.auth,void 0===a.isJspb?"undefined":a.isJspb,void 0===a.cttAuthInfo?"undefined":a.cttAuthInfo,void 0===a.tier?"undefined":a.tier].join("/")};
zra=function(){this.B=this.j=this.u=0};
WC=function(){var a=g.La("yt.logging.ims");a||(a=new SC,g.Ka("yt.logging.ims",a));return a};
Bra=function(a,b){if("log_event"===a.endpoint){XC(a);var c=YC(a);ZC[c]=!0;var d={cttAuthInfo:c,isJspb:!1};WC().storePayload(d,a.payload);Ara(b,c,!1,d)}};
Cra=function(a,b){if("log_event"===a.endpoint){XC(void 0,a);var c=YC(a,!0);ZC[c]=!0;var d={cttAuthInfo:c,isJspb:!0};WC().storePayload(d,a.payload.toJSON());Ara(b,c,!0,d)}};
Ara=function(a,b,c,d){c=void 0===c?!1:c;a&&($C=new a);a=g.dy("tvhtml5_logging_max_batch_ads_fork")||g.dy("web_logging_max_batch")||100;var e=(0,g.GA)(),f=c?aD.B:bD.B,h=0;d&&(h=WC().getSequenceCount(d));h>=a?cD||(cD=dD(function(){eD({writeThenSend:!0},g.cy("flush_only_full_queue")?b:void 0,c);cD=void 0},0)):10<=e-f&&(Dra(c),c?aD.B=e:bD.B=e)};
Era=function(a,b){if("log_event"===a.endpoint){XC(a);var c=YC(a),d=new Map;d.set(c,[a.payload]);b&&($C=new b);return new g.Cf(function(e,f){$C&&$C.isReady()?fD(d,$C,e,f,{bypassNetworkless:!0},!0):e()})}};
Fra=function(a,b){if("log_event"===a.endpoint){XC(void 0,a);var c=YC(a,!0),d=new Map;d.set(c,[a.payload.toJSON()]);b&&($C=new b);return new g.Cf(function(e){$C&&$C.isReady()?gD(d,$C,e,{bypassNetworkless:!0},!0):e()})}};
YC=function(a,b){var c="";if(a.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new Xx;c.videoId?d.setVideoId(c.videoId):c.playlistId&&yh(d,2,hD,c.playlistId);iD[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),jD[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
eD=function(a,b,c){a=void 0===a?{}:a;c=void 0===c?!1:c;new g.Cf(function(d,e){c?(kD(aD.u),kD(aD.j),aD.j=0):(kD(bD.u),kD(bD.j),bD.j=0);if($C&&$C.isReady()){var f=a,h=c,l=$C;f=void 0===f?{}:f;h=void 0===h?!1:h;var m=new Map,n=new Map;if(void 0!==b)h?(e=WC().extractMatchingEntries({isJspb:h,cttAuthInfo:b}),m.set(b,e),gD(m,l,d,f)):(m=WC().extractMatchingEntries({isJspb:h,cttAuthInfo:b}),n.set(b,m),fD(n,l,d,e,f));else if(h){e=g.v(Object.keys(ZC));for(h=e.next();!h.done;h=e.next())n=h.value,h=WC().extractMatchingEntries({isJspb:!0,
cttAuthInfo:n}),0<h.length&&m.set(n,h),delete ZC[n];gD(m,l,d,f)}else{m=g.v(Object.keys(ZC));for(h=m.next();!h.done;h=m.next()){h=h.value;var p=WC().extractMatchingEntries({isJspb:!1,cttAuthInfo:h});0<p.length&&n.set(h,p);delete ZC[h]}fD(n,l,d,e,f)}}else Dra(c),d()})};
Dra=function(a){a=void 0===a?!1:a;if(g.cy("web_gel_timeout_cap")&&(!a&&!bD.j||a&&!aD.j)){var b=dD(function(){eD({writeThenSend:!0},void 0,a)},Gra);
a?aD.j=b:bD.j=b}kD(a?aD.u:bD.u);b=g.ay("LOGGING_BATCH_TIMEOUT",g.dy("web_gel_debounce_ms",1E4));g.cy("shorten_initial_gel_batch_timeout")&&lD&&(b=Hra);b=dD(function(){eD({writeThenSend:!0},void 0,a)},b);
a?aD.u=b:bD.u=b};
fD=function(a,b,c,d,e,f){e=void 0===e?{}:e;var h=Math.round((0,g.GA)()),l=a.size,m={};a=g.v(a);for(var n=a.next();!n.done;m={wE:m.wE,Qt:m.Qt,rA:m.rA,yE:m.yE,xE:m.xE},n=a.next()){var p=g.v(n.value);n=p.next().value;p=p.next().value;m.Qt=g.kd({context:g.CB(b.config_||g.BB())});if(!g.Oa(p)&&!g.cy("throw_err_when_logevent_malformed_killswitch")){d();break}m.Qt.events=p;(p=jD[n])&&Ira(m.Qt,n,p);delete jD[n];m.rA="visitorOnlyApprovedKey"===n;Jra(m.Qt,h,m.rA);Kra(e);m.yE=function(q){g.cy("update_log_event_config")&&
g.sp.wi(function(){return g.A(function(t){return g.y(t,Lra(q),0)})});
l--;l||c()};
m.wE=0;m.xE=function(q){return function(){q.wE++;if(e.bypassNetworkless&&1===q.wE)try{g.gC(b,"log_event",q.Qt,mD({writeThenSend:!0},q.rA,q.yE,q.xE,f)),lD=!1}catch(t){g.hy(t),d()}l--;l||c()}}(m);
try{g.gC(b,"log_event",m.Qt,mD(e,m.rA,m.yE,m.xE,f)),lD=!1}catch(q){g.hy(q),d()}}};
gD=function(a,b,c,d,e){d=void 0===d?{}:d;var f=Math.round((0,g.GA)()),h=a.size,l=new Map([].concat(g.la(a)));l=g.v(l);for(var m=l.next();!m.done;m=l.next()){var n=g.v(m.value).next().value,p=a.get(n);m=new Yx;var q=kqa(b.config_||g.BB());Ch(m,Ts,1,q);p=p?Mra(p):[];p=g.v(p);for(q=p.next();!q.done;q=p.next())Hh(m,3,Vx,q.value);(p=iD[n])&&Nra(m,n,p);delete iD[n];n="visitorOnlyApprovedKey"===n;Ora(m,f,n);Kra(d);p={startTime:(0,g.GA)(),ticks:{},infos:{}};m=m.ip();p.ticks.geljspc=(0,g.GA)();g.cy("log_jspb_serialize_latency")&&
LB("gel_jspb_serialize",p,{sampleRate:.1});n=mD(d,n,function(t){g.cy("update_log_event_config")&&g.sp.wi(function(){return g.A(function(w){return g.y(w,Lra(t),0)})});
h--;h||c()},function(){h--;
h||c()},e);
n.headers["Content-Type"]="application/json+protobuf";n.postBodyFormat="JSPB";n.postBody=m;g.gC(b,"log_event","",n);lD=!1}};
Kra=function(a){g.cy("always_send_and_write")&&(a.writeThenSend=!1)};
mD=function(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,JV:a,dangerousLogToVisitorSession:b,J6a:!!e,headers:{},postBodyFormat:"",postBody:"",compress:g.cy("compress_gel")||g.cy("compress_gel_lr")};nD()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.GA)())));return a};
Jra=function(a,b,c){nD()||(a.requestTimeMs=String(b));g.cy("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.ay("EVENT_ID"))&&(c=Pra(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
Ora=function(a,b,c){nD()||L(a,2,b);if(!c&&(b=g.ay("EVENT_ID"))){c=Pra();var d=new Wx;L(d,1,b);L(d,2,c);Ch(a,Wx,5,d)}};
Pra=function(){var a=g.ay("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*Qra/2));a++;a>Qra&&(a=1);$x("BATCH_CLIENT_COUNTER",a);return a};
Ira=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}]};
Nra=function(a,b,c){if(c.Pd())var d=1;else if(c.getPlaylistId())d=2;else return;Ch(a,Xx,4,c);a=a.getContext()||new Ts;c=Ah(a,Ss,3)||new Ss;var e=new Rs;e.setToken(b);L(e,1,d);Hh(c,12,Rs,e);Ch(a,Ss,3,c)};
Mra=function(a){for(var b=[],c=0;c<a.length;c++)try{b.push(new Vx(a[c]))}catch(d){g.hy(new g.Yz("Transport failed to deserialize "+String(a[c])))}return b};
XC=function(a,b){if(g.La("yt.logging.transport.enableScrapingForTest")){var c=g.La("yt.logging.transport.scrapedPayloadsForTesting"),d=g.La("yt.logging.transport.payloadToScrape");b&&(b=b.payload,(b=g.La("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));if(d&&1<=d.length)for(b=0;b<d.length;b++)if(a&&a.payload[d[b]]){var e=void 0;c.push((null==(e=a)?void 0:e.payload)[d[b]])}g.Ka("yt.logging.transport.scrapedPayloadsForTesting",c)}};
nD=function(){return g.cy("use_request_time_ms_header")||g.cy("lr_use_request_time_ms_header")};
dD=function(a,b){return g.cy("transport_use_scheduler")?bA(a,0,b):g.yy(a,b)};
kD=function(a){g.cy("transport_use_scheduler")?g.sp.Em(a):g.Ay(a)};
Lra=function(a){var b,c,d,e,f,h,l,m,n,p;return g.A(function(q){return 1==q.j?(d=null==(b=a)?void 0:null==(c=b.responseContext)?void 0:c.globalConfigGroup,e=g.S(d,Rra),h=null==(f=d)?void 0:f.hotHashData,l=g.S(d,Sra),n=null==(m=d)?void 0:m.coldHashData,(p=RC().resolve(new MC(zB)))?h?e?g.y(q,aqa(p,h,e),2):g.y(q,aqa(p,h),2):q.Ka(2):q.return()):n?l?g.y(q,bqa(p,n,l),0):g.y(q,bqa(p,n),0):q.Ka(0)})};
pD=function(a,b,c,d){d=void 0===d?{}:d;var e={},f=Math.round(d.timestamp||(0,g.GA)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;g.cy("enable_unknown_lact_fix_on_html5")&&IC();a=KC();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.cy("log_sequence_info_on_gel_web")&&d.sequenceGroup&&(a=e.context,b=d.sequenceGroup,b={index:Tra(b),groupKey:b},a.sequence=b,d.endOfSequence&&delete oD[d.sequenceGroup]);(d.sendIsolatedPayload?Era:Bra)({endpoint:"log_event",payload:e,cttAuthInfo:d.cttAuthInfo,
dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},c)};
Ura=function(a){eD(void 0,void 0,void 0===a?!1:a)};
Tra=function(a){oD[a]=a in oD?oD[a]+1:0;return oD[a]};
Xra=function(a,b){Vra||(Vra=!0);qD=a;rD=b;Wra=!1};
g.nA=function(a,b,c){c=void 0===c?{}:c;var d=Yra;g.ay("ytLoggingEventsDefaultDisabled",!1)&&Yra===g.fC&&(d=null);if(g.cy("web_all_payloads_via_jspb"))if(c.timestamp||(c.timestamp=(0,g.GA)()),qD&&rD){var e=qD[a];if(e){e=e(sD(b));var f=e[1];(e[0]||!g.cy("jspb_translator_return_completion"))&&f&&rD[a]?(rD[a](f,c,d||void 0),Zra()):(jy(new g.Yz("Unable to call logFn for payload",a)),pD(a,b,d,c))}else{if(!g.cy("web_translate_player_logs"))jy(new g.Yz("Unable to translate payload to JSPB",a));else if(!1===
Wra){var h=!1;e=KB("app_received_payload",function(){h=!0});
HB("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c});if(h)return;rqa(e);KB("app_has_initialized",function(){HB("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c})})}pD(a,b,d,c)}}else tD.push({payloadName:a,
payload:b,options:c});else pD(a,b,d,c)};
uD=function(){if(g.cy("web_fp_via_jspb")&&(Ura(!0),!g.cy("web_fp_via_jspb_and_json")))return;Ura()};
Zra=function(){var a=tD;tD=[];if(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())b=b.value,g.nA(b.payloadName,b.payload,b.options)}};
sD=function(a){if(!g.cy("jspb_convert_payloads_to_lower_camel")||!g.Pa(a))return a;for(var b=Object.keys(a),c=0;c<b.length;c++){var d=$ra(b[c]);b[c]!==d&&(a[d]=a[b[c]],delete a[b[c]]);if("object"===typeof a[d]&&!g.Oa(a[d]))a[d]=sD(a[d]);else if(g.Oa(a[d])){for(var e=a[d],f=[],h=0;h<e.length;h++)f.push(sD(e[h]));a[d]=f}}return a};
$ra=function(a){return a.includes("_")?a.toLowerCase().replace(/([_][a-z])/g,function(b){return b.toUpperCase().replace("_","")}):a};
vD=function(a,b,c){c=void 0===c?{}:c;var d=Math.round(c.timestamp||(0,g.GA)());L(a,1,d<Number.MAX_SAFE_INTEGER?d:0);var e=KC();d=new Ux;L(d,1,c.timestamp||!isFinite(e)?-1:e);if(g.cy("log_sequence_info_on_gel_web")&&c.sequenceGroup){e=c.sequenceGroup;var f=Tra(e),h=new Tx;L(h,2,f);L(h,1,e);Ch(d,Tx,3,h);c.endOfSequence&&delete asa[c.sequenceGroup]}Ch(a,Ux,33,d);(c.sendIsolatedPayload?Fra:Cra)({endpoint:"log_event",payload:a,cttAuthInfo:c.cttAuthInfo,dangerousLogToVisitorSession:c.dangerousLogToVisitorSession},
b)};
wD=function(a,b){b=void 0===b?{}:b;var c=!1;g.ay("ytLoggingEventsDefaultDisabled",!1)&&(c=!0);vD(a,c?null:g.fC,b)};
yD=function(a,b,c){var d=new Vx;Dh(d,rx,72,xD,a);c?vD(d,c,b):wD(d,b)};
bsa=function(a,b,c){var d=new Vx;Dh(d,qx,73,xD,a);c?vD(d,c,b):wD(d,b)};
csa=function(a,b,c){var d=new Vx;Dh(d,px,78,xD,a);c?vD(d,c,b):wD(d,b)};
dsa=function(a,b,c){var d=new Vx;Dh(d,sx,208,xD,a);c?vD(d,c,b):wD(d,b)};
esa=function(a,b,c){var d=new Vx;Dh(d,nx,156,xD,a);c?vD(d,c,b):wD(d,b)};
fsa=function(a,b,c){var d=new Vx;Dh(d,ix,202,xD,a);c?vD(d,c,b):wD(d,b)};
gsa=function(a,b,c){var d=new Vx;Dh(d,ox,215,xD,a);c?vD(d,c,b):wD(d,b)};
mA=function(a){g.zD(a)};
g.AD=function(a){g.zD(a,"WARNING")};
g.zD=function(a,b){var c=void 0===c?{}:c;c.name=g.ay("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.ay("INNERTUBE_CONTEXT_CLIENT_VERSION");b=void 0===b?"ERROR":b;var d=!1;b=void 0===b?"ERROR":b;d=void 0===d?!1:d;if(a){a.hasOwnProperty("level")&&a.level&&(b=a.level);if(g.cy("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(!(5<=hsa)){e=isa;var f=Faa(a),h=f.message||"Unknown Error",l=f.name||"UnknownError",m=f.stack||a.u||"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<a.args.length&&!(p=vra(a.args[q],"params."+q,c,p),500<=p);q++);else if(a.hasOwnProperty("params")&&
a.params){var t=a.params;if("object"===typeof a.params)for(q in t){if(t[q]){var w="params."+q,z=FC(t[q]);c[w]=z;p+=w.length+z.length;if(500<p)break}}else c.params=FC(t)}if(e.length)for(q=0;q<e.length&&!(p=vra(e[q],"params.context."+q,c,p),500<=p);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("IGNORED"===a.level)a=
0;else a:{a=CC();e=g.v(a.Eq);for(h=e.next();!h.done;h=e.next())if(h=h.value,c.message&&c.message.match(h.JC)){a=h.weight;break a}a=g.v(a.Ir);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.v(jsa);for(e=a.next();!e.done;e=a.next())if(e=e.value,e.nH[c.name])for(l=g.v(e.nH[c.name]),h=l.next();!h.done;h=l.next())if(q=h.value,h=c.message.match(q.lj)){c.params["params.error.original"]=h[0];l=q.groups;q={};for(n=0;n<l.length;n++)q[l[n]]=h[n+1],c.params["params.error."+
l[n]]=h[n+1];c.message=e.kN(q);break}c.params||(c.params={});a=CC();c.params["params.errorServiceSignature"]="msg="+a.Eq.length+"&cb="+a.Ir.length;c.params["params.serviceWorker"]="false";g.Ja.document&&g.Ja.document.querySelectorAll&&(c.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));g.Sd("sample").constructor!==Qd&&(c.params["params.fconst"]="true");window.yterr&&"function"===typeof window.yterr&&window.yterr(c);if(0!==c.sampleWeight&&!ksa.has(c.message)){if(d&&
g.cy("web_enable_error_204"))lsa(void 0===b?"ERROR":b,c);else{b=void 0===b?"ERROR":b;"ERROR"===b?(BD.ma("handleError",c),g.cy("record_app_crashed_web")&&0===msa&&1===c.sampleWeight&&(msa++,g.cy("errors_via_jspb")?(d=new rv,d=L(d,1,1),g.cy("report_client_error_with_app_crash_ks")||(a=new qv,e=new $u,h=new Zu,l=new Yu,l=L(l,1,c.message),h=Ch(h,Yu,3,l),e=Ch(e,Zu,5,h),a=Ch(a,$u,9,e),Ch(d,qv,4,a)),a=new Vx,Dh(a,rv,20,xD,d),wD(a)):(d={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},g.cy("report_client_error_with_app_crash_ks")||
(d.systemHealth={crashData:{clientError:{logMessage:{message:c.message}}}}),g.nA("appCrashed",d))),nsa++):"WARNING"===b&&BD.ma("handleWarning",c);if(g.cy("kevlar_gel_error_routing"))a:{d=b;if(g.cy("errors_via_jspb")){if(osa())a=void 0;else{h=new Ou;L(h,1,c.stack);c.fileName&&L(h,4,c.fileName);a=c.lineNumber&&c.lineNumber.split?c.lineNumber.split(":"):[];0!==a.length&&(1!==a.length||isNaN(Number(a[0]))?2!==a.length||isNaN(Number(a[0]))||isNaN(Number(a[1]))||(L(h,2,Number(a[0])),L(h,3,Number(a[1]))):
L(h,2,Number(a[0])));a=new Yu;L(a,1,c.message);L(a,3,c.name);L(a,6,c.sampleWeight);"ERROR"===d?L(a,2,2):"WARNING"===d?L(a,2,1):L(a,2,0);e=new Xu;L(e,1,!0);Dh(e,Ou,3,CD,h);h=new Mu;L(h,3,window.location.href);l=g.ay("FEXP_EXPERIMENTS",[]);for(q=0;q<l.length;q++)h.B(l[q]);l=g.ay("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!by("web_disable_gel_stp_ecatcher_killswitch")&&l)for(q=g.v(Object.keys(l)),n=q.next();!n.done;n=q.next())n=n.value,f=new xu,L(f,1,n),L(f,2,String(l[n])),h.j(f);if(l=c.params)for(q=
g.v(Object.keys(l)),n=q.next();!n.done;n=q.next())n=n.value,f=new xu,L(f,1,"client."+n),L(f,2,String(l[n])),h.j(f);q=g.ay("SERVER_NAME");l=g.ay("SERVER_VERSION");q&&l&&(n=new xu,L(n,1,"server.name"),L(n,2,q),h.j(n),q=new xu,L(q,1,"server.version"),L(q,2,l),h.j(q));l=new Zu;Ch(l,Mu,1,h);Ch(l,Xu,2,e);Ch(l,Yu,3,a);a=l}if(!a)break a;e=new Vx;Dh(e,Zu,163,xD,a);wD(e)}else{if(osa())a=void 0;else{e={stackTrace:c.stack};c.fileName&&(e.filename=c.fileName);a=c.lineNumber&&c.lineNumber.split?c.lineNumber.split(":"):
[];0!==a.length&&(1!==a.length||isNaN(Number(a[0]))?2!==a.length||isNaN(Number(a[0]))||isNaN(Number(a[1]))||(e.lineNumber=Number(a[0]),e.columnNumber=Number(a[1])):e.lineNumber=Number(a[0]));a={level:"ERROR_LEVEL_UNKNOWN",message:c.message,errorClassName:c.name,sampleWeight:c.sampleWeight};"ERROR"===d?a.level="ERROR_LEVEL_ERROR":"WARNING"===d&&(a.level="ERROR_LEVEL_WARNNING");e={isObfuscated:!0,browserStackInfo:e};h={pageUrl:window.location.href,kvPairs:[]};g.ay("FEXP_EXPERIMENTS")&&(h.experimentIds=
g.ay("FEXP_EXPERIMENTS"));q=g.ay("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!by("web_disable_gel_stp_ecatcher_killswitch")&&q)for(n=g.v(Object.keys(q)),l=n.next();!l.done;l=n.next())l=l.value,h.kvPairs.push({key:l,value:String(q[l])});if(q=c.params)for(n=g.v(Object.keys(q)),l=n.next();!l.done;l=n.next())l=l.value,h.kvPairs.push({key:"client."+l,value:String(q[l])});l=g.ay("SERVER_NAME");q=g.ay("SERVER_VERSION");l&&q&&(h.kvPairs.push({key:"server.name",value:l}),h.kvPairs.push({key:"server.version",
value:q}));a={errorMetadata:h,stackTrace:e,logMessage:a}}if(!a)break a;g.nA("clientError",a)}("ERROR"===d||g.cy("errors_flush_gel_always_killswitch"))&&uD()}g.cy("suppress_error_204_logging")||lsa(b,c)}try{ksa.add(c.message)}catch(C){}hsa++}}}};
osa=function(){for(var a=g.v(psa),b=a.next();!b.done;b=a.next())if(Sy(b.value.toLowerCase()))return!0;return!1};
lsa=function(a,b){var c=b.params||{};a={urlParams:{a:"logerror",t:"jserror",type:b.name,msg:b.message.substr(0,250),line:b.lineNumber,level:a,"client.name":c.name},postParams:{url:g.ay("PAGE_NAME",window.location.href),file:b.fileName},method:"POST"};c.version&&(a["client.version"]=c.version);if(a.postParams){b.stack&&(a.postParams.stack=b.stack);b=g.v(Object.keys(c));for(var d=b.next();!d.done;d=b.next())d=d.value,a.postParams["client."+d]=c[d];if(c=g.ay("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(b=
g.v(Object.keys(c)),d=b.next();!d.done;d=b.next())d=d.value,a.postParams[d]=c[d];c=g.ay("SERVER_NAME");b=g.ay("SERVER_VERSION");c&&b&&(a.postParams["server.name"]=c,a.postParams["server.version"]=b)}g.Dy(g.ay("ECATCHER_REPORT_HOST","")+"/error_204",a)};
qsa=function(a){var b=g.Ca.apply(1,arguments);a.args||(a.args=[]);a.args.push.apply(a.args,g.la(b))};
rsa=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;default:bk(a,"Unknown method type")}};
ssa=function(a){switch(a){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 1;case 5:return 1;default:bk(a,"unknown result type")}};
vsa=function(a,b){var c,d;g.A(function(e){c={pY:a,metadata:b};d=["b.f_","j.s_","r.s_","e.h_"];d.forEach(function(f){var h;return g.A(function(l){if(1==l.j)return g.y(l,tsa[f](),2);h=l.u;usa(h,f,c);g.ta(l)})});
g.ta(e)})};
wsa=function(){return g.A(function(a){return 1==a.j?g.y(a,(void 0!==soa()?Hf(Error("Biscotti id is disabled")):Gy("//web.archive.org/web/20230505074338/https://googleads.g.doubleclick.net/pagead/id",qz)).then(function(){return 2},function(b){if("Biscotti id is disabled"===b.message)return 4;
g.AD("Failed fetching bid");return 3}),2):a.return(a.u)})};
ysa=function(){var a=JSON.parse(JSON.stringify(xsa));return a.adPlacements&&a.playerAds&&a.playerResponse&&a.playerResponse.adPlacements&&a.playerResponse.playerAds?2:3};
zsa=function(){var a;return g.A(function(b){if(1==b.j)return g.ua(b,2),g.y(b,(new Response('{"adPlacements":true,"playerAds":true,"playerResponse":{"adPlacements":true,"playerAds":true}}',{status:200})).json(),4);if(2!=b.j)return a=b.u,a.adPlacements&&a.playerAds&&a.playerResponse&&a.playerResponse.adPlacements&&a.playerResponse.playerAds?b.return(2):b.return(3);g.xa(b);return b.return(1)})};
Asa=function(){try{var a=document.createElement("ytd-display-ad-renderer");a.classList.add("ytd-companion-slot-renderer");a.setAttribute("id","masthead-ad");document.body.appendChild(a);var b="none"===getComputedStyle(a).display?3:2;document.body.removeChild(a);return b}catch(c){return 1}};
Bsa=function(){try{var a=document.querySelector(".ytp-ad-skip-button-slot");return a?"none"===getComputedStyle(a).display?3:2:5}catch(b){return 1}};
usa=function(a,b,c){var d={detected:3===a,source:b+(c.pY+("b.f_"===b&&4===a?"_known.failure":"r.s_"===b&&1===a?"_failure":"i.s_"===b&&5===a?"_skip_not_found":""))};c.metadata&&(d.contentCpn=c.metadata.contentCpn);g.nA("biscottiBasedDetection",d);a=ssa(a);b=rsa(b);$x("CATSTAT",Number(g.ay("CATSTAT",0))&~(3<<b)|a<<b)};
Dsa=function(a){Csa=void 0===a?!1:a};
DD=function(a,b,c,d,e){d=void 0===d?{}:d;Csa&&(e=!0);if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.Yz(a);if(a.args)for(var f=g.v(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign({},h,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot:  "+b.slotType:"");c&&(d.layout=c?"layout:  "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.AD(a)}};
ED=function(a,b,c,d,e,f,h,l){g.E.call(this);this.ac=a;this.Xd=b;this.iK=c;this.Ca=d;this.j=e;this.Ta=f;this.Ha=h;this.Lc=l};
Esa=function(a){for(var b=Array(a),c=0;c<a;c++){for(var d=Date.now(),e=0;e<d%23;e++)b[c]=Math.random();b[c]=Math.floor(256*Math.random())}if(FD)for(c=1,d=0;d<FD.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^FD.charCodeAt(d),c++;return b};
GD=function(a){if(window.crypto&&window.crypto.getRandomValues)try{var b=Array(a),c=new Uint8Array(a);window.crypto.getRandomValues(c);for(var d=0;d<b.length;d++)b[d]=c[d];return b}catch(e){}return Esa(a)};
g.HD=function(a){a=GD(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.Fsa=function(){return g.$l(GD(16),function(a){return(a&15).toString(16)}).join("")};
ID=function(){this.u=new Map;this.j=new Map;this.B=new Map};
JD=function(a,b){if(g.ay("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return g.HD(16)};
KD=function(a,b,c){if(g.ay("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.HD(16)};
LD=function(a,b){if(g.ay("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.HD(16)};
MD=function(a,b,c,d,e,f){this.startSecs=a;this.Qg=b;this.context=c;this.identifier=d;this.event=e;this.j=f};
Gsa=function(a,b,c,d){this.u=a;this.kf=null;this.Ju=b;this.j=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.B=void 0===d?!1:d};
ND=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.AD(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
OD=function(a,b){return b&&b.test(a)?!0:!1};
PD=function(a){return(a=Hsa&&Hsa.exec(a))?a[0]:""};
QD=function(a){var b=void 0===b?!1:b;return ND(OD(a,Isa),a,b,"Trusted Stream URL")};
g.RD=function(a){var b=void 0===b?!1:b;return ND(OD(a,Jsa),a,b,"Trusted Image URL")};
Lsa=function(a){var b=void 0===b?!1:b;return ND(OD(a,Ksa),a,b,"Trusted Promoted Video Domain URL")};
Nsa=function(a){var b=void 0===b?!1:b;return ND(OD(a,Msa),a,b,"Drm Licensor URL")};
Psa=function(a,b){b=void 0===b?!1:b;return ND(OD(a,Osa),a,b,"Captions URL")};
Qsa=function(a){a=new g.zk(a);g.Ak(a,document.location.protocol);g.Bk(a,document.location.hostname);document.location.port&&g.Ck(a,document.location.port);return a.toString()};
SD=function(a){a=new g.zk(a);g.Ak(a,document.location.protocol);return a.toString()};
g.UD=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.B=Rsa++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||TD.AD_MARKER;this.namespace=c.namespace||"";if(a=c.color)a=a.toString(16),this.color="#"+Array(7-a.length).join("0")+a;this.tooltip=c.tooltip;this.icons=c.icons?c.icons.filter(function(d){return g.am(d.thumbnails,function(e){return g.RD(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
Ssa=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
Tsa=function(a,b){switch(a.style){case TD.CHAPTER_MARKER:return b?8:5;case TD.AD_MARKER:return 6;case TD.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.VD=function(a,b){return a.start-b.start||a.priority-b.priority||a.B-b.B};
g.WD=function(a){return"crn_"+a};
g.XD=function(a){return"crx_"+a};
YD=function(a,b,c,d,e){g.UD.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.j=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.u=!1;this.C=null};
ZD=function(a){return"AD_PLACEMENT_KIND_START"==a.j};
Usa=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j};
Vsa=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new aq(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new aq(Math.max(0,b.u-b.j),0x7ffffffffffff):new aq(0x7ffffffffffff,0x8000000000000);case "AD_PLACEMENT_KIND_MILLISECONDS":var d=a.adTimeOffset;a=parseInt(d.offsetStartMilliseconds,10);d=parseInt(d.offsetEndMilliseconds,10);-1===d&&(d=b.u);if(c&&(d=a,a=Math.max(0,a-b.j),a==d))break;return new aq(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.kf;a=1E3*d.startSecs;if(c){if(a<b.Ju)return new aq(a-4E3,a);c=Math.max(0,a-b.Ju-1E4);return new aq(b.B?b.Ju:Math.floor(b.Ju+Math.random()*c),a)}return new aq(a,a+(0<d.Qg?1E3*d.Qg:5E3))}return null};
$D=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
g.aE=function(a){a=void 0===a?!1:a;g.E.call(this);this.oi=new g.dq(a);g.I(this,this.oi)};
g.bE=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
cE=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.dE=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.v(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.eE=function(a){if(a.simpleText)return a=document.createTextNode(a.simpleText),a;var b=[];if(a.runs)for(var c=0;c<a.runs.length;c++){var d=a.runs[c];if(d.text){var e=b,f=e.push,h=null;var l=d.text;d.bold&&(h=Ye("B",null,h||l));d.italics&&(h=Ye("I",null,h||l));d.strikethrough&&(h=Ye("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=Ye("A",null,h||l),g.ne(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||Ye("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:Ye("SPAN",null,b)};
Wsa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Bn:new aq(-0x8000000000000,-0x8000000000000),wD:d},null!=c&&(d.Qp=new aq(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Bn:new aq(0x7ffffffffffff,0x8000000000000),wD:d},null!=c&&(d.Qp=new aq(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||DD("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||DD("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);-1===e&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new zC("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={Bn:new aq(a,e),wD:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Qp=new aq(a,e)}return d;
default:return new zC("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}};
Xsa=function(a){var b=1E3*a.startSecs;return new aq(b,b+1E3*a.Qg)};
fE=function(a){return g.La("ytcsi."+(a||"")+"data_")||Ysa(a)};
gE=function(){var a=fE();a.info||(a.info={});return a.info};
hE=function(a){a=fE(a);a.metadata||(a.metadata={});return a.metadata};
iE=function(a){a=fE(a);a.tick||(a.tick={});return a.tick};
jE=function(a){a=fE(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
kE=function(a){a=jE(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
lE=function(a){var b=fE(a).nonce;b||(b=g.HD(16),fE(a).nonce=b);return b};
Ysa=function(a){var b={tick:{},info:{}};g.Ka("ytcsi."+(a||"")+"data_",b);return b};
mE=function(){var a=g.La("ytcsi.debug");a||(a=[],g.Ka("ytcsi.debug",a),g.Ka("ytcsi.reference",{}));return a};
nE=function(a){a=a||"";var b=Zsa();if(b[a])return b[a];var c=mE(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
$sa=function(a){a=a||"";var b=Zsa();b[a]&&delete b[a];var c=mE(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
Zsa=function(){var a=g.La("ytcsi.reference");if(a)return a;mE();return g.La("ytcsi.reference")};
oE=function(a){return ata[a]||"LATENCY_ACTION_UNKNOWN"};
fta=function(a,b,c){c=jE(c);if(c.gelInfos)c.gelInfos[a]=!0;else{var d={};c.gelInfos=(d[a]=!0,d)}if(a.match("_rid")){var e=a.split("_rid")[0];a="REQUEST_ID"}if(a in bta){c=bta[a];g.wb(cta,c)&&(b=!!b);a in dta&&"string"===typeof b&&(b=dta[a]+b.toUpperCase());a=b;b=c.split(".");for(var f=d={},h=0;h<b.length-1;h++){var l=b[h];f[l]={};f=f[l]}f[b[b.length-1]]="requestIds"===c?[{id:a,endpoint:e}]:a;return rC({},d)}g.wb(eta,a)||g.AD(new g.Yz("Unknown label logged with GEL CSI",a))};
pE=function(a,b){EB.call(this,1,arguments);this.timer=b};
qE=function(){this.j=0};
rE=function(){qE.instance||(qE.instance=new qE);return qE.instance};
tE=function(a,b){sE[b]=sE[b]||{count:0};var c=sE[b];c.count++;c.time=(0,g.GA)();a.j||(a.j=g.cA(0,function(){var d=(0,g.GA)(),e;for(e in sE)sE[e]&&6E4<d-sE[e].time&&delete sE[e];a&&(a.j=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.Yz("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.AD(c)),!0):!1};
gta=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
hta=function(){var a;if(g.cy("csi_use_performance_navigation_timing")||g.cy("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=null==uE?void 0:null==(a=uE.getEntriesByType)?void 0:null==(b=a.call(uE,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=vE(e.requestStart),e.responseEnd=vE(e.responseEnd),e.redirectStart=vE(e.redirectStart),e.redirectEnd=vE(e.redirectEnd),e.domainLookupEnd=vE(e.domainLookupEnd),e.connectStart=vE(e.connectStart),
e.connectEnd=vE(e.connectEnd),e.responseStart=vE(e.responseStart),e.secureConnectionStart=vE(e.secureConnectionStart),e.domainLookupStart=vE(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=uE.timing}else a=uE.timing;return a};
vE=function(a){return Math.round(wE()+a)};
wE=function(){return(g.cy("csi_use_time_origin")||g.cy("csi_use_time_origin_tvhtml5"))&&uE.timeOrigin?Math.floor(uE.timeOrigin):uE.timing.navigationStart};
xE=function(a){this.j=a};
g.yE=function(a){return new xE({trackingParams:a})};
jta=function(a){var b=ita++;return new xE({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0})};
zE=function(a){a=void 0===a?0:a;return 0===a?"client-screen-nonce":"client-screen-nonce."+a};
AE=function(a){a=void 0===a?0:a;return 0===a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
kta=function(a){return g.ay(AE(void 0===a?0:a))};
g.BE=function(a){return(a=kta(void 0===a?0:a))?new xE({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
lta=function(){var a=g.ay("csn-to-ctt-auth-info");a||(a={},$x("csn-to-ctt-auth-info",a));return a};
g.CE=function(a){a=g.ay(zE(void 0===a?0:a));if(!a&&!g.ay("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
nta=function(a){for(var b=g.v(Object.values(mta)),c=b.next();!c.done;c=b.next())if(g.CE(c.value)===a)return!0;return!1};
ota=function(a,b,c){var d=lta();(c=g.CE(c))&&delete d[c];b&&(d[a]=b)};
DE=function(a){return lta()[a]};
EE=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.ay(zE(c))||b!==g.ay(AE(c)))if(ota(a,d,c),$x(zE(c),a),$x(AE(c),b),b=function(){setTimeout(function(){if(a)if(g.cy("web_time_via_jspb")){var e=new $w;L(e,1,pta);L(e,2,a);var f=new Vx;Dh(f,$w,111,xD,e);wD(f)}else g.nA("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:pta,clientScreenNonce:a})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(e){b()}else b()};
GE=function(a,b){FE("_start",a,b)};
qta=function(a,b,c,d){if(null!==b){if("yt_lt"===a){var e="string"===typeof b?b:""+b;hE(c).loadType=e}(a=fta(a,b,c))&&HE(a,c,d)}};
HE=function(a,b,c){if(!g.cy("web_csi_via_jspb")||(void 0===c?0:c))c=nE(b||""),rC(c.info,a),a.loadType&&(c=a.loadType,hE(b).loadType=c),rC(kE(b),a),c=lE(b),b=fE(b).cttAuthInfo,rE().info(a,c,b);else{c=new zx;var d=Object.keys(a);a=Object.values(a);for(var e=0;e<d.length;e++){var f=d[e];try{switch(f){case "actionType":L(c,1,U[a[e]]);break;case "clientActionNonce":L(c,2,a[e]);break;case "clientScreenNonce":L(c,4,a[e]);break;case "loadType":L(c,3,a[e]);break;case "isPrewarmedLaunch":L(c,92,a[e]);break;
case "isFirstInstall":L(c,55,a[e]);break;case "networkType":L(c,5,IE[a[e]]);break;case "connectionType":L(c,26,JE[a[e]]);break;case "detailedConnectionType":L(c,27,KE[a[e]]);break;case "isVisible":L(c,6,a[e]);break;case "playerType":L(c,7,LE[a[e]]);break;case "clientPlaybackNonce":L(c,8,a[e]);break;case "adClientPlaybackNonce":L(c,28,a[e]);break;case "previousCpn":L(c,77,a[e]);break;case "targetCpn":L(c,76,a[e]);break;case "isMonetized":L(c,9,a[e]);break;case "isPrerollAllowed":L(c,16,a[e]);break;
case "isPrerollShown":L(c,17,a[e]);break;case "adType":L(c,12,a[e]);break;case "adTypesAllowed":L(c,36,a[e]);break;case "adNetworks":L(c,37,a[e]);break;case "previousAction":L(c,13,U[a[e]]);break;case "isRedSubscriber":L(c,14,a[e]);break;case "serverTimeMs":L(c,15,a[e]);break;case "videoId":c.setVideoId(a[e]);break;case "adVideoId":L(c,20,a[e]);break;case "targetVideoId":L(c,78,a[e]);break;case "adBreakType":L(c,21,ME[a[e]]);break;case "isNavigation":L(c,25,a[e]);break;case "viewportHeight":L(c,29,
a[e]);break;case "viewportWidth":L(c,30,a[e]);break;case "screenHeight":L(c,84,a[e]);break;case "screenWidth":L(c,85,a[e]);break;case "browseId":L(c,31,a[e]);break;case "isCacheHit":L(c,32,a[e]);break;case "httpProtocol":L(c,33,a[e]);break;case "transportProtocol":L(c,34,a[e]);break;case "searchQuery":L(c,41,a[e]);break;case "isContinuation":L(c,42,a[e]);break;case "availableProcessors":L(c,43,a[e]);break;case "sdk":L(c,44,a[e]);break;case "isLocalStream":L(c,45,a[e]);break;case "navigationRequestedSameUrl":L(c,
64,a[e]);break;case "shellStartupDurationMs":L(c,70,a[e]);break;case "appInstallDataAgeMs":L(c,73,a[e]);break;case "latencyActionError":L(c,71,NE[a[e]]);break;case "actionStep":L(c,79,a[e]);break;case "jsHeapSizeLimit":L(c,80,a[e]);break;case "totalJsHeapSize":L(c,81,a[e]);break;case "usedJsHeapSize":L(c,82,a[e]);break;case "sourceVideoDurationMs":L(c,90,a[e]);break;case "videoOutputFrames":L(c,93,a[e]);break;case "isResume":L(c,104,a[e]);break;case "debugTicksExcluded":L(c,105,a[e]);break;case "abandonedPing":L(c,
113,a[e]);break;case "adPrebufferedTimeSecs":L(c,39,a[e]);break;case "isLivestream":L(c,47,a[e]);break;case "liveStreamMode":L(c,91,OE[a[e]]);break;case "adCpn2":L(c,48,a[e]);break;case "adDaiDriftMillis":L(c,49,a[e]);break;case "videoStreamType":L(c,53,PE[a[e]]);break;case "playbackRequiresTap":L(c,56,a[e]);break;case "performanceNavigationTiming":L(c,67,a[e]);break;case "transactionType":L(c,74,QE[a[e]]);break;case "playerRotationType":L(c,101,RE[a[e]]);break;case "allowedPreroll":L(c,10,a[e]);
break;case "shownPreroll":L(c,11,a[e]);break;case "getHomeRequestId":L(c,57,a[e]);break;case "getSearchRequestId":L(c,60,a[e]);break;case "getPlayerRequestId":L(c,61,a[e]);break;case "getWatchNextRequestId":L(c,62,a[e]);break;case "getBrowseRequestId":L(c,63,a[e]);break;case "getLibraryRequestId":L(c,66,a[e]);break;case "isTransformerEnabledForFeature":L(c,106,a[e]);break;case "sourceVideoFrameCount":L(c,109,a[e]);break;default:rta.includes(f)&&g.hy(new g.Yz("Codegen laipb translator asked to translate message field",
""+f))}}catch(h){g.hy(Error("Codegen laipb translator failed to set "+f))}}SE(c,b)}};
SE=function(a,b){var c=g.Nh(a,3);c&&(hE(b).loadType=c);nE(b||"").jspbInfo.push(a);c=lE(b);b=fE(b).cttAuthInfo;rE().jspbInfo(a,c,b)};
FE=function(a,b,c){if(!b&&"_"!==a[0]){var d=a;uE.mark&&(Xb(d,"mark_")||(d="mark_"+d),c&&(d+=" ("+c+")"),uE.mark(d))}d=nE(c||"");d.tick[a]=b||(0,g.GA)();if(d.callback&&d.callback[a]){d=g.v(d.callback[a]);for(var e=d.next();!e.done;e=d.next())e=e.value,e()}d=jE(c);d.gelTicks&&(d.gelTicks[a]=!0);e=iE(c);d=b||(0,g.GA)();g.cy("log_repeated_ytcsi_ticks")?a in e||(e[a]=d):e[a]=d;e=lE(c);var f=fE(c).cttAuthInfo;"_start"===a?(a=rE(),tE(a,"baseline_"+e)||(b={timestamp:b,cttAuthInfo:f},g.cy("web_csi_via_jspb")?
(a=new tx,L(a,1,e),e=new Vx,Dh(e,tx,6,xD,a),wD(e,b)):g.nA("latencyActionBaselined",{clientActionNonce:e},b))):rE().tick(a,e,b,f);sta(c);return d};
tta=function(){var a,b=null==(a=uE.getEntriesByType)?void 0:a.call(uE,"mark");b&&b.forEach(function(c){if(c.name.startsWith("mark_")){var d;null==(d=uE.clearMarks)||d.call(uE,c.name)}})};
TE=function(){switch(Eoa()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
wta=function(a){var b=hta(),c=wE(),d=g.ay("CSI_START_TIMESTAMP_MILLIS",0);0<d&&!g.cy("embeds_web_enable_csi_start_override_killswitch")&&(c=d);c&&(FE("srt",b.responseStart),1!==a.prerender&&GE(c));a=uta();0<a&&FE("fpt",a);a=hta();a.isPerformanceNavigationTiming&&HE({performanceNavigationTiming:!0},void 0);FE("nreqs",a.requestStart,void 0);FE("nress",a.responseStart,void 0);FE("nrese",a.responseEnd,void 0);0<a.redirectEnd-a.redirectStart&&(FE("nrs",a.redirectStart,void 0),FE("nre",a.redirectEnd,void 0));
0<a.domainLookupEnd-a.domainLookupStart&&(FE("ndnss",a.domainLookupStart,void 0),FE("ndnse",a.domainLookupEnd,void 0));0<a.connectEnd-a.connectStart&&(FE("ntcps",a.connectStart,void 0),FE("ntcpe",a.connectEnd,void 0));a.secureConnectionStart>=wE()&&0<a.connectEnd-a.secureConnectionStart&&(FE("nstcps",a.secureConnectionStart,void 0),FE("ntcpe",a.connectEnd,void 0));uE&&"getEntriesByType"in uE&&vta()};
xta=function(a,b){a=document.querySelector(a);if(!a)return!1;var c="",d=a.nodeName;"SCRIPT"===d?(c=a.src,c||(c=a.getAttribute("data-timing-href"))&&(c=window.location.protocol+c)):"LINK"===d&&(c=a.href);oe()&&a.setAttribute("nonce",oe());return c?(a=uE.getEntriesByName(c))&&a[0]&&(a=a[0],c=wE(),FE("rsf_"+b,c+Math.round(a.fetchStart)),FE("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
yta=function(){var a=[];if(document.querySelector&&uE&&uE.getEntriesByName)for(var b in UE)if(UE.hasOwnProperty(b)){var c=UE[b];xta(b,c)&&a.push(c)}return a};
vta=function(){var a=window.location.protocol,b=uE.getEntriesByType("resource");b=g.On(b,function(c){return 0===c.name.indexOf(a+"//web.archive.org/web/20230505074338/https://fonts.gstatic.com/s/")});
(b=bm(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(FE("wffs",vE(b.startTime)),FE("wffe",vE(b.responseEnd)))};
zta=function(a,b,c){uE&&uE.measure&&(Xb(a,"measure_")||(a="measure_"+a),c?uE.measure(a,b,c):b?uE.measure(a,b):uE.measure(a))};
Ata=function(a){var b=VE("aft",a);if(b)return b;b=g.ay((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d<c;d++){var e=VE(b[d],a);if(e)return e}return NaN};
WE=function(a,b){g.Ka("ytglobal.timing"+(b||"")+"ready_",a)};
VE=function(a,b){if(a=iE(b)[a])return"number"===typeof a?a:a[a.length-1]};
sta=function(a){var b=VE("_start",a),c=Ata(a);b&&c&&!Bta&&(HB(Cta,new pE(Math.round(c-b),a)),Bta=!0)};
Dta=function(a,b){for(var c=g.v(Object.keys(b)),d=c.next();!d.done;d=c.next())if(d=d.value,!Object.keys(a).includes(d)||"object"===typeof b[d]&&!Dta(a[d],b[d]))return!1;return!0};
uta=function(){if(uE.getEntriesByType){var a=uE.getEntriesByType("paint");if(a=g.sb(a,function(b){return"first-paint"===b.name}))return vE(a.startTime)}a=uE.timing;
return a.X4?Math.max(0,a.X4):0};
XE=function(a){Ysa(a);Eta();tta();a||(g.ay("TIMING_ACTION")&&$x("PREVIOUS_ACTION",g.ay("TIMING_ACTION")),$x("TIMING_ACTION",""))};
Fta=function(){var a=["pbs","pbu"];g.iy(function(){nE("").info.actionType="watch";a&&$x("TIMING_AFT_KEYS",a);$x("TIMING_ACTION","watch");if(g.cy("web_csi_via_jspb")){var b=g.ay("TIMING_INFO",{}),c=new zx;b=g.v(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.v(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":Ax(c,wx(vx(d),String(e)));break;case "GetGuide_rid":Ax(c,wx(vx(d),String(e)));break;case "GetHome_rid":Ax(c,wx(vx(d),String(e)));break;case "GetPlayer_rid":Ax(c,
wx(vx(d),String(e)));break;case "GetSearch_rid":Ax(c,wx(vx(d),String(e)));break;case "GetSettings_rid":Ax(c,wx(vx(d),String(e)));break;case "GetTrending_rid":Ax(c,wx(vx(d),String(e)));break;case "GetWatchNext_rid":Ax(c,wx(vx(d),String(e)));break;case "yt_red":L(c,14,!!e);break;case "yt_ad":L(c,9,!!e)}}SE(c);c=new zx;c=L(c,25,!0);c=L(c,1,U[oE(g.ay("TIMING_ACTION"))]);(b=g.ay("PREVIOUS_ACTION"))&&L(c,13,U[oE(b)]);(b=g.ay("CLIENT_PROTOCOL"))&&L(c,33,b);(b=g.ay("CLIENT_TRANSPORT"))&&L(c,34,b);(b=g.CE())&&
"UNDEFINED_CSN"!==b&&L(c,4,b);b=TE();1!==b&&-1!==b||L(c,6,!0);b=gE();(d="cold"===hE().loadType)||(d="cold"===b.yt_lt);if(d&&(L(c,3,"cold"),wta(b),b=yta(),0<b.length))for(b=g.v(b),d=b.next();!d.done;d=b.next())d=d.value,e=new yx,L(e,1,d),Hh(c,83,yx,e);SE(c)}else{c=g.ay("TIMING_INFO",{});for(b in c)c.hasOwnProperty(b)&&qta(b,c[b]);c={isNavigation:!0,actionType:oE(g.ay("TIMING_ACTION"))};if(b=g.ay("PREVIOUS_ACTION"))c.previousAction=oE(b);if(b=g.ay("CLIENT_PROTOCOL"))c.httpProtocol=b;if(b=g.ay("CLIENT_TRANSPORT"))c.transportProtocol=
b;(b=g.CE())&&"UNDEFINED_CSN"!==b&&(c.clientScreenNonce=b);b=TE();if(1===b||-1===b)c.isVisible=!0;b="cold"===hE().loadType;d=gE();b||(b="cold"===d.yt_lt);if(b&&(c.loadType="cold",wta(gE()),b=yta(),0<b.length))for(c.resourceInfo=[],b=g.v(b),d=b.next();!d.done;d=b.next())c.resourceInfo.push({resourceCache:d.value});HE(c)}c=gE();b=kE();if("cold"===hE().loadType&&("cold"===c.yt_lt||"cold"===b.loadType)){d=iE();e=jE();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var f in d)if(!(f in e))if("number"===typeof d[f])FE(f,
VE(f));else if(g.cy("log_repeated_ytcsi_ticks"))for(var h=g.v(d[f]),l=h.next();!l.done;l=h.next())FE(f.slice(1),l.value);f={};d=!1;e=g.v(Object.keys(c));for(h=e.next();!h.done;h=e.next())h=h.value,(h=fta(h,c[h]))&&!Dta(kE(),h)&&(rC(b,h),rC(f,h),d=!0);d&&HE(f)}WE(!0);f=g.ay("TIMING_ACTION");g.La("ytglobal.timingready_")&&f&&YE("_start")&&Ata()&&sta()})()};
Hta=function(){var a=void 0===a?{}:a;g.iy(function(){Gta();$sa();XE();WE(!1);a.cttAuthInfo&&(fE().cttAuthInfo=a.cttAuthInfo);$x("TIMING_AFT_KEYS",[]);a.Y7a?ZE({loadType:"hot"}):ZE({loadType:"warm"});$x("TIMING_ACTION","");delete g.ay("TIMING_INFO",{}).yt_lt;g.iy(GE)(a.startTime,void 0)})()};
$E=function(a,b){b=void 0===b?{}:b;g.iy(function(){Ita(a);fE(a).useGel=!0;nE(a||"").info.actionType=a;b.cttAuthInfo&&(fE(a).cttAuthInfo=b.cttAuthInfo);$x(a+"TIMING_ACTION",a);g.iy(GE)(b.startTime,a);var c={actionType:oE(a)},d=g.CE();d&&"UNDEFINED_CSN"!==d&&(c.clientScreenNonce=d);ZE(c,a);WE(!0,a)})()};
Ita=function(a){g.iy(function(){Gta(a);$sa(a);XE(a)})()};
g.aF=function(a,b,c,d){g.iy(qta)(a,b,c,d)};
ZE=function(a,b){g.iy(HE)(a,b,!1)};
bF=function(a,b,c){return g.iy(FE)(a,b,c)};
Jta=function(a){g.iy(zta)("above_the_fold",a,void 0)};
YE=function(a,b){return g.iy(function(){var c=iE(b);return a in c})()};
Kta=function(a,b){return g.iy(function(){if(YE(a,b))return!1;bF(a,void 0,b);return!0})()};
cF=function(a,b,c){g.iy(function(){if(!YE("_start",c)||YE(a,c))return!1;bF(a,b,c);return!0})()};
Gta=function(a){YE("_start",a)&&bF("aa",void 0,a)};
Lta=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
dF=function(a){var b=g.S(a,Mta)||a.signatureCipher;a={uU:!1,Qx:"",Sz:"",s:""};if(!b)return a;b=my(b);a.uU=!0;a.Qx=b.url;a.Sz=b.sp;a.s=b.s;return a};
g.eF=function(a,b){this.id=a;this.Ic=b;this.captionTracks=[];this.B=this.C=null;this.xtags="";this.j=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"};
fF=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.j=b||0};
g.hF=function(a,b,c,d){return new fF(g.gF[a]||0,g.gF[b]||0,c,d)};
iF=function(a){var b=g.gF.auto;return a.u===b&&a.j===b};
kF=function(a){return jF[a.j||a.u]||"auto"};
Nta=function(a,b){b=g.gF[b];return a.u<=b&&(!a.j||a.j>=b)};
lF=function(a,b,c){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;null==c||c({ainfolen:this.j.length});b=g.v(this.j);for(var d=b.next();!d.done;d=b.next())if(d=d.value,!d.Ic||a.has(d.Ic.id)){var e=void 0,f=void 0,h=void 0;null==(h=c)||h({atkerr:!!d.Ic,itag:d.itag,xtag:d.u,lang:(null==(e=d.Ic)?void 0:e.name)||"",langid:(null==(f=d.Ic)?void 0:f.id)||""})}else e=new g.eF(d.id,d.Ic),a.add(d.Ic.id),this.audioTracks.push(e);null==c||c({atklen:this.audioTracks.length})}};
mF=function(){g.E.apply(this,arguments);this.j=null};
Rta=function(a,b,c,d,e,f){if(a.j)return a.j;var h={},l=new Set,m={};if(nF(d)){for(var n in d.j)d.j.hasOwnProperty(n)&&(a=d.j[n],m[a.info.Mb]=[a.info]);return m}n=Ota(b,d,h);f&&e({aftsrt:oF(n)});for(var p={},q=g.v(Object.keys(n)),t=q.next();!t.done;t=q.next()){t=t.value;for(var w=g.v(n[t]),z=w.next();!z.done;z=w.next()){z=z.value;var C=z.itag,G=void 0,O=t+"_"+((null==(G=z.video)?void 0:G.fps)||0);p.hasOwnProperty(O)?!0===p[O]?m[t].push(z):h[C]=p[O]:(G=pF(b,z,c,d.isLive,l),!0!==G?(h[C]=G,"disablevp9hfr"===
G&&(p[O]="disablevp9hfr")):(m[t]=m[t]||[],m[t].push(z),p[O]=!0))}}f&&e({bfflt:oF(m)});for(var N in m)m.hasOwnProperty(N)&&(d=N,m[d]&&m[d][0].Vg()&&(m[d]=m[d],m[d]=Pta(b,m[d],h),m[d]=Qta(m[d],h)));f&&e(h);b=g.v(l.values());for(d=b.next();!d.done;d=b.next())(d=c.u.get(d.value))&&--d.sX;f&&e({aftflt:oF(m)});a.j=g.Wc(m,function(K){return!!K.length});
return a.j};
Tta=function(a,b,c,d,e,f,h){if(b.rd&&h&&1<h.length&&!(0<b.C||b.oa)){for(var l=b.B||!!e,m=l&&b.Gc?f:void 0,n=Ota(b,d),p=[],q=[],t={},w=0;w<h.length;w++){var z=h[w],C=d.I.get(z);if(C&&C.info){var G=C.info;C=G.Mb;if(pF(b,G,c,d.isLive)){z=G.Vg()?p:q;G=g.v(n[C]);for(var O=G.next();!O.done;O=G.next()){O=O.value;var N=void 0,K=C+"_"+((null==(N=O.video)?void 0:N.fps)||0);t.hasOwnProperty(K)?!0===t[K]&&z.push(O):pF(b,O,c,d.isLive)&&(z.push(O),t[K]=!0)}}else l&&f({opfu:z})}}if(p.length&&q.length)return l&&
f({opfm:p[0].itag+","+q[0].itag}),Ky(new lF(p,q,m))}return Sta(a,b,c,d,e,f)};
Sta=function(a,b,c,d,e,f){function h(z){return!!n[z]}
var l=b.B||!!e,m=l&&b.Gc?f:void 0,n=Rta(a,b,c,d,f,l);qF(d)&&(n=Uta(c,n,e,l,f,b),l&&f({enflt:oF(n)}));b.Gb=Vta(n,b);if(nF(d))return f=g.sb(Object.values(n),function(z){return!!z.length&&!!z[0].audio}),l=g.sb(Object.values(n),function(z){return!!z.length&&!!z[0].video}),f&&l||Jy(),Ky(new lF(l,f,m));
a=Wta(b);l&&f({audioPrefOrder:a.join("_")});a=g.sb(a,h);if(!a)return l&&f({noaudio:1}),Jy();a=n[a];n["9"]&&n.h&&d.Zc&&!b.Za&&(l&&f({dltvp9:1}),delete n["9"]);var p=n["1h"]?"1h":"1";c=n["9h"]?"9h":"9";var q=n[p],t=n[c];q&&q.length&&(b.u.highestAv1Resolution=q[q.length-1].video.j);t&&t.length&&(b.u.highestVp9Resolution=t[t.length-1].video.j);e=[];var w=[];if(b.oa&&!b.j)for(w=Xta(d)?n["1h"]||n["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],l&&f({newhybpref:w.join(".")}),q=g.v(w),t=q.next();!t.done;t=q.next())e=
e.concat(n[t.value]).filter(function(z){return z});
else 0<b.C&&t&&q&&(w=[p,c],e=q.concat(t).filter(function(z){return z}));
if(e.length&&!b.j){rF(e,w);if(l){l=[];b=g.v(e);for(d=b.next();!d.done;d=b.next())l.push(d.value.itag);f({hbdfmt:l.join(".")})}return Ky(new lF(e,a,m))}e=Yta(b);e=g.sb(e,h);if(!e){if(n[p])return f=n[p],rF(f),Ky(new lF(f,a,m));l&&f({novideo:1});return Jy()}b.Uc&&("1"===e||"1h"===e)&&n[c]&&(p=sF(n[e]),sF(n[c])>p&&(e=c));"9"===e&&n.h&&sF(n.h)>sF(n["9"])&&(e="h");b.jc&&d.isLive&&"("===e&&n.H&&1440>sF(n["("])&&(e="H");l&&f({vfmly:tF(e)});b=n[e];if(!b.length)return l&&f({novfmly:tF(e)}),Jy();rF(b);return Ky(new lF(b,
a,m))};
Vta=function(a,b){var c=b.J&&!(!a.mac3&&!a.MAC3),d=b.V&&!(!a.meac3&&!a.MEAC3);return b.Aa&&!(!a.m&&!a.M)||c||d};
tF=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
oF=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(tF(d));d=g.v(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")};
Uta=function(a,b,c,d,e,f){var h={},l={};g.Vc(b,function(m,n){m=m.filter(function(p){var q=p.itag;if(!p.Nd)return l[q]="noenc",!1;if(f.Bc&&"(h"===p.Mb&&f.Ub)return l[q]="lichdr",!1;if("("===p.Mb||"(h"===p.Mb){if(a.B&&c&&"widevine"===c.flavor){var t=p.mimeType+"; experimental=allowed";(t=!!p.Nd[c.flavor]&&!!c.j[t])||(l[q]=p.Nd[c.flavor]?"unspt":"noflv");return t}if(!uF(a,vF.CRYPTOBLOCKFORMAT)&&!a.ya||a.Z)return l[q]=a.Z?"disvp":"vpsub",!1}return c&&p.Nd[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.Nd[c.flavor]?
"unspt":"noflv":"nosys",!1)});
m.length&&(h[n]=m)});
d&&Object.entries(l).length&&e(l);return h};
Qta=function(a,b){var c=bm(a,function(d,e){return 32<e.video.fps?Math.min(d,e.video.width):d},Infinity);
Infinity>c&&(a=a.filter(function(d){if(32<d.video.fps||d.video.width<c)return!0;b[d.itag]="hfrfirst";return!1}));
Wy()&&(a=a.filter(function(d){if("299"!==d.itag)return!0;b[d.itag]="ps3hfr1080";return!1}));
return a};
Pta=function(a,b,c){return b=b.filter(function(d){if(d.video.j<=a.hd)return!0;c[d.itag]="maxquality";return!1})};
Ota=function(a,b,c){var d={},e;for(e in b.j)if(b.j.hasOwnProperty(e)){var f=b.j[e].info;if(a.Z&&f.video&&f.video.j<a.Z)c&&(c[f.itag]="min"+a.Z);else{var h=f.Mb;d[h]=d[h]||[];d[h].push(f)}}a=g.v(Object.keys(d));for(b=a.next();!b.done;b=a.next())rF(d[b.value]);return d};
sF=function(a){return bm(a,function(b,c){return Math.max(b,c.video.j)},0)};
pF=function(a,b,c,d,e){e=void 0===e?new Set:e;if(""===b.Mb)return"unkn";if(("304"===b.itag||"266"===b.itag)&&a.Ga)return"blk2khfr";if(a.ea&&b.video&&b.video.j>a.ea)return"max"+a.ea;if(a.Nb&&"h"===b.Mb&&b.video&&1080<b.video.j)return"blkhigh264";if("(h"===b.Mb&&!c.D)return"enchdr";if((void 0===d?0:d)&&wF(b)&&!a.Ya)return"blk51live";if(xF(b)&&!a.Wa)return"blk51ugc";if(!a.Bc&&b.Nd&&b.Nd.fairplay&&("("===b.Mb||"(h"===b.Mb||"A"===b.Mb||"MEAC3"===b.Mb))return"cbc";if((d=c.u.get(b.Mb))&&0<d.sX)return e.add(b.Mb),
"byerr";var f;if(null==(f=b.video)?0:32<f.fps){if(!c.V||!c.oa&&!uF(c,vF.FRAMERATE))return"capHfr";if(a.tb&&4320<=b.video.j)return"blk8khfr";if(yF(b)&&a.td&&b.Nd&&1440<=b.video.j)return"disablevp9hfr"}a=Zta(c,b);return!0!==a?a:!0};
rF=function(a,b){b=void 0===b?[]:b;g.Rb(a,function(c,d){var e=d.dc-c.dc;if(!c.Vg()||!d.Vg())return e;var f=d.video.height*d.video.width-c.video.height*c.video.width;!f&&b&&0<b.length&&(c=b.indexOf(c.Mb)+1,d=b.indexOf(d.Mb)+1,f=0===c||0===d?d||-1:c-d);f||(f=e);return f})};
$ta=function(a){a=void 0===a?{}:a;var b=void 0===a.Oo?!1:a.Oo,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.AP?!1:a.AP;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e?3:2:c&&d?-1:1};
aua=function(a){return $ta({hasSubfragmentedFmp4:a.I.dk,Oo:a.I.dk,defraggedFromSubfragments:a.Lp,isManifestless:!0,AP:a.Wa})};
bua=function(a){a=a.split("");zF.w7(a,23);zF.Qw(a,66);zF.uC(a,1);return a.join("")};
g.AF=function(a,b){this.u=a;this.D=void 0===b?!1:b;this.C=this.path=this.B="";this.j={};this.url=""};
CF=function(a){BF(a);return a.C};
DF=function(a){return a.u?Xb(a.u,"local"):"local"===a.B};
cua=function(a){BF(a);return g.Yc(a.j,function(b){return null!==b})};
EF=function(a){BF(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
FF=function(a,b){b=void 0===b?!1:b;BF(a);if("/videoplayback"!==a.path){var c=a.clone();c.set("playerfallback","1");return c}var d=a.Ze();c=new g.zk(d);var e=a.get("fvip"),f=decodeURIComponent(a.get("mn")||"").split(",");if(e&&f&&1<f.length&&f[1])return d=c.j,a=d.replace(/^[^.]*/,""),g.Bk(c,(0===d.indexOf("rr")?"rr":"r")+e+"---"+f[1]+a),c=new g.AF(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.Bk(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.Bk(c,"www.youtube.com"),d=c.toString()):d=Qsa(d);c=new g.AF(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c};
BF=function(a){if(a.u){if(!QD(a.u)&&!a.u.startsWith("local"))throw new g.Yz("Untrusted URL",a.u);var b=g.Ik(a.u);a.B=b.D;a.C=b.j+(null!=b.C?":"+b.C:"");var c=b.B;if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.substr(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.substr(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.substr(0,e),c=c.substr(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.j;a.j=dua(c);Object.assign(a.j,
eua(b.u.toString()));Object.assign(a.j,d);"index.m3u8"===a.j.file&&(delete a.j.file,a.path+="/file/index.m3u8");a.u="";a.url="";a.D&&(b=a.get("n"))&&(b=fua[0](b),a.set("n",b),fua.length||sma(""))}};
gua=function(a){BF(a);var b=a.B+(a.B?"://":"//")+a.C+a.path;if(cua(a)){var c=[];g.Vc(a.j,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
dua=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&hua(c,a[b],a[b+1]);return c};
eua=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?hua(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
hua=function(a,b,c){if("cmo"===b){var d;0<=(d=c.indexOf("="))?(b="cmo="+c.substr(0,d),c=c.substr(d+1)):0<=(d=c.indexOf("%3D"))&&(b="cmo="+c.substr(0,d),c=c.substr(d+3))}a[b]=c};
GF=function(a,b,c,d,e,f,h,l,m){this.Ma=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.kf=m;this.endTime=b+c;this.j=h||0;this.range=f||null;this.pending=l||!1;this.kf=m||null};
g.HF=function(){this.segments=[];this.j=null;this.u=!0};
iua=function(a,b){if(b>a.ud())a.segments=[];else{var c=rb(a.segments,function(d){return d.Ma>=b},a);
0<c&&a.segments.splice(0,c)}};
IF=function(a){var b=this;a=void 0===a?[]:a;this.j=[];this.B=this.u=0;this.C=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
jua=function(a,b){return 0===a.j.length?!1:(a=a.j[a.j.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset};
JF=function(a,b){b=g.v(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
KF=function(a,b,c){return a.split(b).Xk.split(c).gC};
LF=function(a){a.C=void 0;a.u=0;a.B=0};
MF=function(a,b,c){a.isFocused(b);return b-a.B+c<=a.j[a.u].length};
kua=function(a){if(!a.C){var b=a.j[a.u];a.C=new DataView(b.buffer,b.byteOffset,b.length)}return a.C};
lua=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength||!c)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!MF(a,b,c)){var d=a.u,e=a.B;a.focus(b+c-1);e=new Uint8Array(a.B+a.j[a.u].length-e);for(var f=0,h=d;h<=a.u;h++)e.set(a.j[h],f),f+=a.j[h].length;a.j.splice(d,a.u-d+1,e);LF(a);a.focus(b)}d=a.j[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)};
NF=function(a,b,c){a=lua(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
mua=function(a){a=NF(a,0,-1);var b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(var c=0;c<a.length;c++)b[c]=a[c]}return b};
OF=function(a,b){a.focus(b);return a.j[a.u][b-a.B]};
nua=function(a,b){a.focus(b);return MF(a,b,4)?kua(a).getUint32(b-a.B):256*(256*(256*OF(a,b)+OF(a,b+1))+OF(a,b+2))+OF(a,b+3)};
oua=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
PF=function(a){return String.fromCharCode.apply(null,a)};
RF=function(a){return QF?QF.decode(a):PF(a)};
g.TF=function(a){if(!a.length)return"";try{if(QF)return QF.decode(a);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(a)}catch(h){}for(var b=0,c=[],d=a.length;b<d;){for(var e=0;1024>e&&b<d;){var f=a[b++];if(128>f)SF[e++]=f;else{if(224>f)f=(f&31)<<6|a[b++]&63;else if(240>f)f=(f&15)<<12|(a[b++]&63)<<6|a[b++]&63;else{if(1024===e+1){--b;break}f=(f&7)<<18|(a[b++]&63)<<12|(a[b++]&63)<<6|a[b++]&63;f-=65536;SF[e++]=55296|f>>10;f=56320|f&1023}SF[e++]=f}}f=String.fromCharCode.apply(String,SF);
1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")};
VF=function(a,b){var c;if(null==(c=UF)?0:c.encodeInto)return b=UF.encodeInto(a,b),b.read<a.length?4*a.length:b.written;for(var d=c=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296===(e&64512)&&d+1<a.length&&56320===(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>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};
pua=function(a){if(UF)return UF.encode(a);var b=new Uint8Array(Math.ceil(1.2*a.length)),c=VF(a,b);b.length<c&&(b=new Uint8Array(c),c=VF(a,b));b.length>c&&(b=b.subarray(0,c));return b};
WF=function(a,b,c,d,e){e=void 0===e?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.j=(this.u=e)?0:8;this.dataOffset=this.offset+this.j};
XF=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b};
YF=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b};
ZF=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
$F=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b};
aG=function(a){var b=a.data;var c=a.offset+a.j;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.j+=8;return b};
bG=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.j;c<a.size&&a.data.getUint8(a.offset+c)!==b;)++c;b=new Uint8Array(a.data.buffer,a.offset+a.j+a.data.byteOffset,c-a.j);a.j=Math.min(c+1,a.size);return RF(b)};
qua=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
cG=function(a,b,c,d){(new Uint8Array(a.data.buffer,a.offset,d)).set(new Uint8Array(b.buffer,c+b.byteOffset,d));a.offset+=d};
eG=function(a,b){this.data=a;this.uri=b||"https://web.archive.org/web/20230505074338/http://youtube.com/streaming/metadata/segment/102015";this.j=dG(this,"Sequence-Number");this.I=dG(this,"Segment-Count");this.J=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=dG(this,"Ingestion-Walltime-Us")/1E6;this.u=(dG(this,"First-Frame-Time-Us")+dG(this,"First-Frame-Uncertainty-Us"))/1E6;this.Xj=dG(this,"Target-Duration-Us")/1E6;this.C="T"===this.data["Stream-Finished"];this.D="T"===this.data.Streamable;this.cryptoPeriodIndex=dG(this,"Crypto-Period-Index");
this.B=dG(this,"Crypto-Period-Seconds")};
sua=function(a){return a.data["Cuepoint-Type"]?new MD(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",rua[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):null};
tua=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
dG=function(a,b){return Number(a.data[b])||0};
fG=function(a){return a.data["Stitched-Video-Cpn"]?a.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
g.uua=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
g.vua=function(a){switch(a.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
wua=function(a,b){this.j=a;this.duration=b};
xua=function(a,b,c,d,e){this.u=e;this.j=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
gG=function(a){var b={};a=a.split("\r\n");for(var c=0;c<a.length;c++){if(0===a[c].length)return b;var d=a[c].match(/([^:]+):\s+([\S\s]+)/);null!=d&&(b[d[1]]=d[2])}return null};
yua=function(a,b){var c=g.hG(a,0,1952868452);a=g.hG(a,0,1953658222);if(c&&a){c.skip(1);var d=XF(c)<<16|YF(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.j;var e=$F(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=XF(a)<<16|YF(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=$F(a);d&&a.skip(4);e&&a.skip(4);d=(f?4:0)+(h?4:0)+(l?4:0);for(e=0;e<c;e++)f=a.j,h=$F(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
jG=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.hG(a,0,1836476516))?g.iG(a):NaN};
zua=function(a){var b=g.hG(a,0,1937011556);if(!b)return null;b=kG(a,b.dataOffset+8,1635148593)||kG(a,b.dataOffset+8,1635135537);if(!b)return null;var c=kG(a,b.dataOffset+78,1936995172),d=kG(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),XF(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=kG(a,d.dataOffset,1886547818)){var h=kG(a,d.dataOffset,1886546020),l=kG(a,d.dataOffset,2037673328);if(!l&&(l=kG(a,d.dataOffset,1836279920),
!l))return null;h&&(h.skip(4),c=ZF(h)/65536,f=ZF(h)/65536,e=ZF(h)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new xua(b,c,f,e,a)}return null};
kG=function(a,b,c){for(;lG(a,b);){var d=mG(a,b);if(d.type===c)return d;b+=d.size}return null};
g.hG=function(a,b,c){for(;lG(a,b);){var d=mG(a,b);if(d.type===c)return d;b=nG(d.type)?b+8:b+d.size}return null};
g.oG=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;b=4294967296*b.getUint32(a)+b.getUint32(a+4)}else b=a.data.getUint32(a.dataOffset+4);return b};
mG=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new WF(a,b,c,d)};
g.iG=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
Aua=function(a){a=new WF(a.data,a.offset,a.size,a.type,a.u);var b=XF(a);a.skip(7);var c=$F(a);if(0===b){b=$F(a);var d=$F(a)}else b=aG(a),d=aG(a);a.skip(2);for(var e=YF(a),f=[],h=[],l=0;l<e;l++){var m=$F(a);f.push(m);h.push($F(a));a.skip(4)}return{Lt:c,P2:b,h3:d,A8:f,BP:h}};
lG=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-b<c)return!1;for(c=4;8>c;c++){var d=a.getInt8(b+c);if(48>d||122<d)return!1}return!0};
nG=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
Bua=function(a){a.skip(4);return{S8:bG(a,0),value:bG(a,0),Lt:$F(a),t8a:$F(a),X6a:$F(a),id:$F(a),EV:bG(a),offset:a.offset}};
g.Cua=function(a){var b=kG(a,0,1701671783);if(!b)return null;var c=Bua(b),d=c.S8;c=gG(c.EV);if(a=kG(a,b.offset+b.size,1701671783))if(a=Bua(a),a=gG(a.EV),c&&a){b=g.v(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new eG(c,d):null};
pG=function(a,b){for(var c=kG(a,0,b);c;){var d=c;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);c=kG(a,c.offset+c.size,b)}};
g.qG=function(a,b){for(var c=0,d=[];lG(a,c);){var e=mG(a,c);e.type===b&&d.push(e);c=nG(e.type)?c+8:c+e.size}return d};
Dua=function(a,b){var c=g.hG(a,0,1937011556),d=g.hG(a,0,1953654136);if(!c||!d||2<=a.getUint32(c.offset+12))return null;var e=new DataView(b.buffer,b.byteOffset,b.length),f=g.hG(e,0,1937011556);if(!f)return null;b=e.getUint32(f.dataOffset+8);d=e.getUint32(f.dataOffset+12);if(1701733217!==d&&1701733238!==d)return null;d=new qua(a.byteLength+b);cG(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;cG(d,a,c.offset+16,c.size-16);cG(d,e,e.byteOffset+f.dataOffset+8,b);cG(d,a,c.offset+c.size,a.byteLength-
(c.offset+c.size));c=g.v([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.hG(a,0,e.value),d.data.setUint32(e.offset,e.size+b);a=g.hG(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
Eua=function(a){var b=g.hG(a,0,1937011556);if(!b)return null;var c=a.getUint32(b.dataOffset+12);if(1701733217!==c&&1701733238!==c)return null;b=kG(a,b.offset+24+(1701733217===c?28:78),1936289382);if(!b)return null;c=kG(a,b.offset+8,1935894637);if(!c||1667392371!==a.getUint32(c.offset+12))return null;b=kG(a,b.offset+8,1935894633);if(!b)return null;b=kG(a,b.offset+8,1952804451);if(!b)return null;c=new Uint8Array(16);for(var d=0;16>d;d++)c[d]=a.getInt8(b.offset+16+d);return c};
rG=function(a,b){this.j=a;this.pos=0;this.start=b||0};
sG=function(a){return a.pos>=a.j.byteLength};
xG=function(a,b,c){var d=new rG(c);if(!tG(d,a))return!1;d=uG(d);if(!vG(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=wG(d,!0);d=a+(d.start+d.pos-b)+e;d=9<d?Fua(d-9,8):Fua(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
Gua=function(a){var b=new rG(a);b.Xm();if(tG(b,[408125543,374648427,174,224]))b=uG(b);else return null;for(var c=a=null;!sG(b);){var d=wG(b,!1);if(21432===d)switch(yG(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=uG(b):zG(b)}if(!c)return null;for(var e,f=d=b=null;!sG(c);)switch(wG(c,!1)){case 30321:if(3!==yG(c))return null;break;case 30324:b=AG(c);break;case 30323:f=AG(c);break;case 30325:d=AG(c);break;case 30322:e=wG(c,!0);e=BG(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:zG(c)}return e?new xua(a,b,f,d,e):null};
uG=function(a){var b=wG(a,!0),c=a.j.byteOffset+a.pos;c=new DataView(a.j.buffer,c,Math.min(b,a.j.buffer.byteLength-c));c=new rG(c,a.start+a.pos);a.pos+=b;return c};
yG=function(a){for(var b=wG(a,!0),c=CG(a),d=1;d<b;d++)c=256*c+CG(a);return c};
AG=function(a){var b=wG(a,!0),c=0;4===b?c=a.j.getFloat32(a.pos):8===b&&(c=a.j.getFloat64(a.pos));a.pos+=b;return c};
Hua=function(a){var b=wG(a,!0);return RF(BG(a,b))};
CG=function(a){return a.j.getUint8(a.pos++)};
wG=function(a,b){var c=CG(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+CG(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+CG(a),d*=128;return b?c-d:c};
zG=function(a){var b=wG(a,!0);a.pos+=b};
Iua=function(a){if(!vG(a,440786851,!0))return null;var b=a.pos;wG(a,!1);var c=wG(a,!0)+a.pos-b;a.pos=b+c;if(!vG(a,408125543,!1))return null;wG(a,!0);if(!vG(a,357149030,!0))return null;var d=a.pos;wG(a,!1);var e=wG(a,!0)+a.pos-d;a.pos=d+e;if(!vG(a,374648427,!0))return null;var f=a.pos;wG(a,!1);var h=wG(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};
DG=function(a){var b=a.pos;a.pos=0;var c=1E6;tG(a,[408125543,357149030,2807729])&&(c=yG(a));a.pos=b;return c};
Jua=function(a,b){var c=a.pos;a.pos=0;if(160!==a.j.getUint8(a.pos)&&!EG(a)||!vG(a,160))return a.pos=c,NaN;wG(a,!0);var d=a.pos;if(!vG(a,161))return a.pos=c,NaN;wG(a,!0);CG(a);var e=CG(a)<<8|CG(a);a.pos=d;if(!vG(a,155))return a.pos=c,NaN;d=yG(a);a.pos=c;return(e+d)*b/1E9};
EG=function(a){if(!Kua(a)||!vG(a,524531317))return!1;wG(a,!0);return!0};
Kua=function(a){if(a.Xm()){if(!vG(a,408125543))return!1;wG(a,!0)}return!0};
tG=function(a,b){for(var c=0;c<b.length;c++){if(!vG(a,b[c]))return!1;c!==b.length-1&&wG(a,!0)}return!0};
vG=function(a,b,c){c=void 0===c?!1:c;if(sG(a))return!1;for(var d=a.pos;wG(a,!1)!==b;)if(zG(a),d=a.pos,sG(a))return!1;c&&(a.pos=d);return!0};
Fua=function(a,b){b||(b=Math.ceil(Math.log(a+2)/Math.log(2)/7));for(var c=1<<8-b,d=[];d.length<b-1;)d.unshift(a%256),a=Math.floor(a/256);d.unshift(a|c);return d};
BG=function(a,b){var c=new Uint8Array(a.j.buffer,a.j.byteOffset+a.pos,b);a.pos+=b;return c};
FG=function(a){this.wj=a;this.j={};this.url=""};
Lua=function(a,b){var c=b.indexOf("?");if(0<c){var d=eua(b.substr(c+1));g.Vc(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=dua(b);g.Vc(b,function(e,f){this.set(f,e)},a)};
Mua=function(a){var b=a.wj.Ze(),c=[];g.Vc(a.j,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=cua(a.wj)?"&":"?";return b+a+d};
GG=function(a,b){var c=new g.AF(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Vc(a.j,function(d,e){c.set(e,null)});
return c};
Nua=function(){this.u=this.j=this.timedOut=this.started=this.C=this.B=0};
HG=function(a){a.C=(0,g.GA)();a.started=0;a.timedOut=0;a.j=0};
Oua=function(a,b,c){var d=a.started+4*a.j;c&&(d+=a.u);return Math.pow(b.Zi,d)};
IG=function(a,b){a[b]||(a[b]=new Nua);return a[b]};
JG=function(a){this.J=this.I=this.D=this.u=0;this.j=a;this.B=a.clone()};
LG=function(a,b,c){if(DF(a.j))return!1;var d=IG(c,CF(a.j));if(1>d.timedOut&&1>d.j)return!1;d=d.timedOut+d.j;a=KG(a,b);c=IG(c,CF(a));return c.timedOut+c.j+ +(b.Sn&&!c.C)<d};
Pua=function(a,b,c){a=b?KG(a,c):a.j;return new FG(a)};
KG=function(a,b){b=b?b.lm:!1;a.C||(a.C=FF(a.B,b));return a.C};
MG=function(a,b,c){return CF(b?KG(a,c):a.j)};
NG=function(a,b,c){c=IG(c,MG(a,LG(a,b,c),b));c=Math.max(a.D,c.timedOut)+b.Bx*(a.u-a.D)+.25*a.I;b=c>b.oh?1E3*Math.pow(b.Zi,c-b.oh):0;return 0===b?!0:a.J+b<(0,g.GA)()};
Qua=function(a,b,c){a.j.set(b,c);a.B.set(b,c);a.C&&a.C.set(b,c)};
OG=function(a,b,c,d){this.V=a;this.initRange=c;this.indexRange=d;this.j=null;this.C=!1;this.J=0;this.D=this.B=null;this.info=b;this.u=new JG(a)};
PG=function(a,b,c){return Rua(a.info,b,c)};
QG=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
RG=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new QG(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
SG=function(a,b){return new QG(a,a+b-1)};
Sua=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
TG=function(a){if(!a)return new QG(0,0);var b=Number(a.start);a=Number(a.end);if(!isNaN(b)&&!isNaN(a)&&(b=new QG(b,a),0<b.length))return b};
UG=function(a,b,c,d,e,f,h,l,m,n,p){d=void 0===d?"":d;this.type=a;this.j=b;this.range=c;this.source=d;this.clipId=void 0===p?"":p;this.J=[];this.D="";this.Ma=-1;this.D=d;this.Ma=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.Qb=l||0;this.u=0<=m?m:this.range?this.range.length:NaN;this.bf=this.range?this.Qb+this.u===this.range.length:void 0===n?!!this.u:n;this.range?(this.C=this.startTime+this.duration*this.Qb/this.range.length,this.I=this.duration*this.u/this.range.length,this.B=this.C+this.I):
Tua(this)};
Tua=function(a){a.C=a.startTime;a.I=a.duration;a.B=a.C+a.I};
VG=function(a){return a.bf&&a.j.index.JM(a.Ma)};
Uua=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Ma!==a.Ma);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Qb+b.u===a.Qb+a.u:d};
WG=function(a){return 1===a.type||2===a.type};
XG=function(a){return 3===a.type||6===a.type};
YG=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.Qb+a.u===b.range.start+b.Qb:a.Ma===b.Ma?a.Qb+a.u===b.Qb:a.Ma+1===b.Ma&&0===b.Qb&&a.bf:!1};
Vua=function(a,b){return YG(a,b)||ue(a.B,b.C)||a.Ma+1===b.Ma&&0===b.Qb&&a.bf?!0:!1};
ZG=function(a){return a.Ma+(a.bf?1:0)};
Wua=function(a){1===a.length||g.am(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new QG(a[0].range.start+a[0].Qb,b.range.start+b.Qb+b.u-1)};
Xua=function(a){for(var b=1;b<a.length;b++)if(!YG(a[b-1],a[b]))return!1;return!0};
Yua=function(a){var b=0;a=g.v(a);for(var c=a.next();!c.done;c=a.next())b+=c.value.range.length;return b};
aH=function(a){a=$G(a);var b="";g.Vc(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
$G=function(a){var b={};b.itag=a.j.info.itag;b.type=""+a.type;b.src=""+a.source;b.segsrc=a.D;b.seg=String(a.Ma);a.range&&(b.range=""+(a.range.start+a.Qb)+"-"+(a.range.start+a.Qb+a.u-1));b.time=""+a.C.toFixed(1)+"-"+(a.C+a.I).toFixed(1);b.off=String(a.Qb);b.len=String(a.u);a.bf&&(b.end="1");VG(a)&&(b.eos="1");a.clipId&&(b.cid=a.clipId);return b};
Zua=function(a){return new UG(a.type,a.j,a.range,"getEmptyStubBefore"+a.D,a.Ma,a.startTime,0,a.Qb,0)};
$ua=function(a){return new UG(a.type,a.j,a.range,"getEmptyStubAfter"+a.D,a.Ma,a.startTime+a.duration,0,a.Qb+a.u,0)};
ava=function(a,b){return a.j!==b.j?!1:a.range&&b.range?a.range.start+a.Qb>=b.range.start+b.Qb&&a.range.start+a.Qb+a.u<=b.range.start+b.Qb+b.u:a.Ma===b.Ma&&a.Qb>=b.Qb&&(a.Qb+a.u<=b.Qb+b.u||b.bf)};
bva=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.Ig()?(a=a.j.Cz(a),Ym(a,function(c){return bva(c,b)})):a.Ma===b.Ma&&!!b.u&&b.Qb+b.u>a.Qb&&b.Qb+b.u<=a.Qb+a.u};
bH=function(a,b){var c=b.Ma;a.D="updateWithSegmentInfo";a.Ma=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,Tua(a)};
cH=function(a,b){var c=this;this.gb=a;this.J=this.u=null;this.D=this.Rg=NaN;this.I=this.requestId=null;this.ze={I7a:function(){return c.range}};
this.j=a[0].j.u;this.B=b||"";this.gb[0].range&&0<this.gb[0].u&&(Xua(a)?(this.range=Wua(a),this.C=this.range.length):(this.range=this.gb[this.gb.length-1].range,this.C=Yua(a)))};
dH=function(a){return!WG(a.gb[a.gb.length-1])};
eH=function(a){return 4===a.gb[a.gb.length-1].type};
g.fH=function(a,b,c){c=null===a.I?LG(a.j,b,c):a.I;if(a.u){b=c?FF(a.u,b.lm):a.u;var d=new FG(b);d.get("alr")||d.set("alr","yes");a.B&&Lua(d,a.B)}else/http[s]?:\/\//.test(a.B)?d=new FG(new g.AF(a.B)):(d=Pua(a.j,c,b),a.B&&Lua(d,a.B));(b=a.range)?d.set("range",b.toString()):a.gb[0].j.Zu()&&1===a.gb.length&&a.gb[0].Qb&&d.set("range",a.gb[0].Qb+"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.Rg)||d.set("headm",a.Rg.toString());isNaN(a.D)||d.set("mffa",a.D+"ms");a.urlParams&&g.Vc(a.urlParams,function(e,
f){d.set(f,e)});
return d};
cva=function(a){if(a.range)return a.C;a=a.gb[0];return Math.round(a.I*a.j.info.dc)};
dva=function(a,b){return Math.max(0,a.gb[0].C-b)};
gH=function(a,b,c,d,e,f){f=void 0===f?0:f;OG.call(this,a,b,d,void 0);this.I=c;this.Xj=f;this.index=e||new g.HF};
eva=function(a,b,c,d,e){this.Ma=a;this.startSecs=b;this.Qg=c;this.j=d||NaN;this.u=e||NaN};
hH=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""};
iH=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
fva=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*(Number(b[2])|0)+60*(Number(b[4])|0)+(Number(b[6])|0):Number(a)|0};
gva=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
jH=function(){this.j=[];this.u=null;this.I=0;this.B=[];this.D=!1;this.J="";this.C=-1};
hva=function(a){var b=a.B;a.B=[];return b};
iva=function(){this.C=[];this.j=null;this.u={};this.B={}};
mva=function(a,b){var c=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.v(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=d.parentNode.parentNode,f=null;"Period"===e.nodeName?f=jva(a):"AdaptationSet"===e.nodeName?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",f=kva(a,e)):"Representation"===e.nodeName&&(e=e.getAttribute("id")||"",f=lva(a,e));if(null==f)return;f.update(d);g.Fb(c,hva(f))}g.Fb(a.C,c);Aaa(a.C,function(h){return 1E3*h.startSecs+h.j})};
nva=function(a){a.j&&(a.j.j=[]);g.Vc(a.u,function(b){b.j=[]});
g.Vc(a.B,function(b){b.j=[]})};
jva=function(a){a.j||(a.j=new jH);return a.j};
kva=function(a,b){a.u[b]||(a.u[b]=new jH);return a.u[b]};
lva=function(a,b){a.B[b]||(a.B[b]=new jH);return a.B[b]};
kH=function(a){var b=void 0===a?{}:a;a=void 0===b.Xj?0:b.Xj;var c=void 0===b.Dm?!1:b.Dm,d=void 0===b.Eo?0:b.Eo,e=void 0===b.Ge?0:b.Ge,f=void 0===b.Wg?Infinity:b.Wg,h=void 0===b.bz?0:b.bz;b=void 0===b.Se?!1:b.Se;g.HF.call(this);this.iq=this.Qo=-1;this.B=null;this.pj=a;this.Eo=d;this.Dm=c;this.Ge=e;this.Wg=f;this.bz=h;this.Se=b};
mH=function(a,b,c){b=lH(a,b);return 0<=b&&(c||!a.segments[b].pending)};
lH=function(a,b){return Qb(a.segments,function(c){return b-c.Ma})};
nH=function(a,b,c){c=void 0===c?{}:c;gH.call(this,a,b,"",void 0,void 0,c.Xj||0);this.index=new kH(c)};
oH=function(a,b,c){OG.call(this,a,b);this.I=c;this.index=new g.HF;this.index.u=!1};
ova=function(a,b,c){var d=a.index.ZF(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.dc*f;return new cH([new UG(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)};
pva=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.I;b=b.J.split(",").filter(function(p){return 0<p.length});
for(var e=0,f=0,h=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n<d;n++){if(0>=h)if(h=b.shift(),f=(f=l.exec(h))?+f[1]/1E3:0)h=(h=m.exec(h))?+h[1]:0,h+=1;else return;c.push(new GF(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
pH=function(a,b,c){this.info=a;this.j=b;this.B=c;this.u=null;this.D=-1;this.timestampOffset=0;this.I=!1;this.C=this.info.j.Sy()&&!this.info.Qb};
qH=function(a){return lua(a.j)};
qva=function(a,b){if(1!==a.info.j.info.containerType||a.info.Qb||!a.info.bf)return!0;a=qH(a);for(var c=0,d=0;c+4<a.byteLength;){d=a.getUint32(c);if(!d)return!1;c+=d}return c!==a.byteLength?(b&&(b.lastboxlen=d.toString(),4<=a.byteLength&&(b.lastbytes=a.getUint32(a.byteLength-4).toString()),b.boxlen=c.toString(),b.bytelen=a.byteLength.toString()),!1):!0};
rva=function(a,b){b=Math.min(b,a.info.u);var c=a.j.split(b);return[new pH(new UG(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Ma,a.info.startTime,a.info.duration,a.info.Qb,b,!1,a.info.clipId),c.gC,a.B),new pH(new UG(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Ma,a.info.startTime,a.info.duration,a.info.Qb+b,a.info.u-b,a.info.bf,a.info.clipId),c.Xk)]};
rH=function(a,b,c){var d;if(!(d=!YG(a.info,b.info)||a.info.bf)){if(c=void 0===c?!1:c)c=b.j,c=!(c.j.length?jua(a.j,c.j[0]):1);d=c}if(d)return null;c=new UG(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Ma,a.info.startTime,a.info.duration,a.info.Qb,a.info.u,a.info.bf,a.info.clipId);d=b.info;c.u+=d.u;c.range&&(c.I+=d.I);c.B=d.B;c.bf=d.bf;d=new IF;JF(d,a.j);JF(d,b.j);c=new pH(c,d,a.B);c.u=b.u||a.u;return c};
sva=function(a){g.sH(a.info.j.info)||a.info.j.info.Ee();if(-1!==a.D)return a.D;if(a.u&&tua(a.u))return a.D=tua(a.u),a.D;if(g.sH(a.info.j.info)){var b=qH(a);for(var c=a.info.j.j,d=NaN,e=NaN,f=0;lG(b,f);){var h=mG(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.iG(h):1952867444===h.type&&isNaN(d)&&(d=g.oG(h));f=nG(h.type)?f+8:f+h.size}!e&&c&&(e=jG(c));b=d/e}else b=new rG(qH(a)),c=a.C?b:new rG(new DataView(a.info.j.j.buffer)),d=DG(c),c=b.pos,b.pos=0,EG(b)?vG(b,231)?
(d=yG(b)*d/1E9,b.pos=c,b=d):(b.pos=c,b=NaN):(b.pos=c,b=NaN);a.D=b||a.info.C;return a.D};
tH=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=sva(a)+b;tva(a,c);a.timestampOffset=b};
tva=function(a,b){g.sH(a.info.j.info)||a.info.j.info.Ee();a.D=b;if(g.sH(a.info.j.info)){var c=qH(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;lG(c,f);){var h=mG(c,f);isNaN(d)&&(1936286840===h.type?d=h.data.getUint32(h.dataOffset+8):1836476516===h.type&&(d=g.iG(h)));if(1952867444===h.type){!d&&a&&(d=jG(a));var l=g.oG(h);isNaN(e)&&(e=Math.round(b*d)-l);l+=e;if(h.data.getUint8(h.dataOffset)){var m=h.data,n=h.dataOffset+4;m.setUint32(n,Math.floor(l/4294967296));m.setUint32(n+4,l&4294967295)}else h.data.setUint32(h.dataOffset+
4,l)}f=nG(h.type)?f+8:f+h.size}return!0}c=new rG(qH(a));a=a.C?c:new rG(new DataView(a.info.j.j.buffer));d=DG(a);a=c.pos;c.pos=0;if(EG(c)&&vG(c,231))if(e=wG(c,!0),b=Math.floor(1E9*b/d),Math.ceil(Math.log(b)/Math.log(2)/8)>e)b=!1;else{for(d=e-1;0<=d;d--)c.j.setUint8(c.pos+d,b&255),b>>>=8;c.pos=a;b=!0}else b=!1;return b};
uH=function(a,b){b=void 0===b?!1:b;var c=uva(a);a=b?0:a.info.I;return c||a};
uva=function(a){g.sH(a.info.j.info)||a.info.j.info.Ee();if(a.u&&6===a.info.type)return a.u.Xj;if(g.sH(a.info.j.info)){var b=qH(a);var c=0;b=g.qG(b,1936286840);b=g.v(b);for(var d=b.next();!d.done;d=b.next())d=Aua(d.value),c+=d.BP[0]/d.Lt;c=c||NaN;if(!(0<=c))a:{c=qH(a);b=a.info.j.j;for(var e=d=0,f=0;lG(c,d);){var h=mG(c,d);if(1836476516===h.type)e=g.iG(h);else if(1836019558===h.type){!e&&b&&(e=jG(b));if(!e){c=NaN;break a}var l=kG(h.data,h.dataOffset,1953653094),m=e,n=kG(l.data,l.dataOffset,1952868452);
l=kG(l.data,l.dataOffset,1953658222);var p=ZF(n);ZF(n);p&2&&ZF(n);n=p&8?ZF(n):0;var q=ZF(l),t=q&1;p=q&4;var w=q&256,z=q&512,C=q&1024;q&=2048;var G=$F(l);t&&ZF(l);p&&ZF(l);for(var O=t=0;O<G;O++){var N=w?ZF(l):n;z&&ZF(l);p&&0===O||!C||ZF(l);q&&ZF(l);t+=N}f+=t/m}d=nG(h.type)?d+8:d+h.size}c=f||NaN}c||g.AD(new g.Yz("Missing duration while parsing bmff",aH(a.info)))}else c=new rG(qH(a)),a=a.C?c:new rG(new DataView(a.info.j.j.buffer)),c=Jua(c,DG(a));return c};
vva=function(a){var b=qH(a);var c=(c=g.hG(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.j.j,c=(b=g.hG(b,0,1836476516))?g.iG(b):a?jG(a):NaN);return c};
wva=function(a){return a.info.j.info.Ee()&&160===OF(a.j,0)};
xva=function(a){if(!a.u){g.sH(a.info.j.info)||a.info.j.info.Ee();if(g.sH(a.info.j.info))var b=g.Cua(qH(a));else{b=new rG(qH(a));var c=b.pos;b.pos=0;var d=null,e=null;if(tG(b,[408125543,307544935]))for(var f=b.pos+wG(b,!0);b.pos<f;)if(29555!==wG(b,!1))zG(b);else for(var h=b.pos+wG(b,!0);b.pos<h;)if(26568!==wG(b,!1))zG(b);else for(var l=b.pos+wG(b,!0);b.pos<l;){var m=wG(b,!1);if(17543===m){if(m=Hua(b),m=gG(m))if(e)for(var n=g.v(Object.keys(m)),p=n.next();!p.done;p=n.next())p=p.value,e[p]=m[p];else e=
m}else 17827===m?(m=Hua(b),d||(d=m)):zG(b)}b.pos=c;b=e?new eG(e,d):null}a.u=b}};
vH=function(a){if(!a.I){if(g.sH(a.info.j.info)){var b=qH(a);var c=kG(b,0,1836019574);if(c){c=c.offset+c.size;var d=new Uint8Array(c);d.set(new Uint8Array(b.buffer,b.byteOffset,c));b=d}else b=null}else b=Iua(new rG(qH(a)));b&&(a.info.j.j=b,a.I=!0)}};
g.wH=function(){this.count=0;this.j=1;this.u=!1;this.offsets=new Float64Array(128);this.Ki=new Float64Array(128)};
yva=function(a,b){return b+1<a.count||a.u?a.offsets[b+1]-a.offsets[b]:-1};
xH=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
yH=function(a,b,c,d){OG.call(this,a,b,c,d);var e=this;this.I=null;this.ze={UB:function(f,h,l){return e.UB(f,h,l)}};
this.index=new g.wH};
zH=function(a,b,c,d,e){this.sampleRate=void 0===a?0:a;this.numChannels=void 0===b?0:b;this.spatialAudioType=void 0===c?"SPATIAL_AUDIO_TYPE_NONE":c;this.j=void 0===d?!1:d;this.u=void 0===e?0:e};
zva=function(a,b,c,d,e,f){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d;this.xtags=void 0===e?"":e;this.id=void 0===f?"":f};
Bva=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return Ava[a];return null};
BH=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||AH(a,b);this.j=g.gF[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&"UNKNOWN"!==d&&"RECTANGULAR"!==d?0:e;this.projectionType=d?"EQUIRECTANGULAR"===d&&2===e?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":d:"UNKNOWN";(a=h)||(a=g.gF[this.quality],0===a?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+("EQUIRECTANGULAR"===c||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===c||"MESH"===c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));
this.qualityLabel=a;this.u=l||"";this.primaries=m||""};
AH=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=CH[0];for(var d=0;d<CH.length;d++){var e=CH[d],f=g.gF[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
FH=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0<c.dc||(c.dc=16E3);Object.assign(this,c);a=g.v(this.id.split(";"));this.itag=a.next().value;this.u=a.next().value;this.containerType=DH(b);this.Mb=EH[this.itag]||""};
yF=function(a){return"9"===a.Mb||"("===a.Mb||"9h"===a.Mb||"(h"===a.Mb};
GH=function(a){return"9h"===a.Mb||"(h"===a.Mb};
HH=function(a){return"1"===a.Mb||"1h"===a.Mb};
xF=function(a){return"mac3"===a.Mb||"meac3"===a.Mb||"m"===a.Mb};
wF=function(a){return"MAC3"===a.Mb||"MEAC3"===a.Mb||"M"===a.Mb};
g.sH=function(a){return 1===a.containerType};
IH=function(a){return"application/x-mpegURL"===a.mimeType};
JH=function(a,b){return{itag:+a.itag,gj:b?0:a.lastModified,xtags:a.u||""}};
Rua=function(a,b,c){a=JH(a,b);return(c||"")+";"+a.itag+";"+(a.gj||0)+";"+a.xtags};
Cva=function(a){var b=navigator.mediaCapabilities;if(null==b||!b.decodingInfo||"f"===a.Mb)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:8*a.dc||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:""+(a.audio.numChannels||2),bitrate:8*a.dc||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.j=d})};
KH=function(a){return/(opus|mp4a|dtse|ac-3|ec-3)/.test(a)};
LH=function(a){return/(vp9|vp09|vp8|avc1|av01)/.test(a)};
MH=function(a){return a.includes("vtt")||a.includes("text/mp4")};
DH=function(a){return 0<=a.indexOf("/mp4")?1:0<=a.indexOf("/webm")?2:0<=a.indexOf("/x-flv")?3:0<=a.indexOf("/vtt")?4:0};
NH=function(a,b,c,d,e,f){var h=new zH;b in g.gF||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.gF[b],d=Math.round(16*e/9));f=new BH(d,e,0,null,void 0,b,f);a=unescape(a.replace(/&quot;/g,'"'));return new FH(c,a,{audio:h,video:f})};
Dva=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+(null==(c=a.vu)?void 0:c.toFixed(0))+", "+(null==(d=a.dc)?void 0:d.toFixed(0))+")"};
g.OH=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
g.eI=function(){Fz.apply(this,arguments)};
fI=function(){var a=g.La("yt.player.utils.videoElement_");a||(a=g.Ze("VIDEO"),g.Ka("yt.player.utils.videoElement_",a));return a};
gI=function(a){var b=fI();return!!(b&&b.canPlayType&&b.canPlayType(a))};
iI=function(a){if(/opus/.test(a)&&g.hI&&!cq("38")&&!g.Uy())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!moa())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!gI(a)};
Eva=function(a){try{var b=iI('video/mp4; codecs="avc1.42001E"')||iI('video/webm; codecs="vp9"');return(iI('audio/mp4; codecs="mp4a.40.2"')||iI('audio/webm; codecs="opus"'))&&(b||!a)||gI('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
jI=function(){var a=fI();return!(!a.webkitSupportsPresentationMode||"function"!==typeof a.webkitSetPresentationMode)};
kI=function(){var a=fI();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
lI=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
mI=function(a,b,c){b=void 0===b?",":b;c=void 0===c?a?a.length:0:c;var d=[];if(a)for(c=Math.max(a.length-c,0);c<a.length;c++)d.push(a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3));return d.join(b)};
nI=function(a,b){if(!a)return-1;try{for(var c=0;c<a.length;c++)if(a.start(c)<=b&&a.end(c)>=b)return c}catch(d){}return-1};
oI=function(a,b){return 0<=nI(a,b)};
Fva=function(a,b){if(!a)return NaN;b=nI(a,b);return 0<=b?a.start(b):NaN};
pI=function(a,b){if(!a)return NaN;b=nI(a,b);return 0<=b?a.end(b):NaN};
qI=function(a){return a&&a.length?a.end(a.length-1):NaN};
rI=function(a,b){a=pI(a,b);return 0<=a?a-b:0};
sI=function(a,b,c){for(var d=[],e=[],f=0;f<a.length;f++)a.end(f)<b||a.start(f)>c||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return lI(d,e)};
tI=function(a,b,c,d){g.aE.call(this);var e=this;this.Gd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.sU={error:function(){!e.isDisposed()&&e.isActive&&e.ma("error",e)},
updateend:function(){!e.isDisposed()&&e.isActive&&e.ma("updateend",e)}};
g.bE(this.Gd,this.sU);this.oE=this.isActive};
vI=function(a,b,c,d,e,f){g.aE.call(this);var h=this;this.Vb=a;this.Cg=b;this.id=c;this.containerType=d;this.Mb=e;this.Vg=f;this.TM=this.BC=this.Bf=null;this.gF=!1;this.appendWindowStart=this.timestampOffset=0;this.CK=lI([],[]);this.cB=!1;this.Dz=uI?[]:void 0;this.wd=function(m){return h.ma(m.type,h)};
var l;if(null==(l=this.Vb)?0:l.addEventListener)this.Vb.addEventListener("updateend",this.wd),this.Vb.addEventListener("error",this.wd)};
Gva=function(a,b){b.isEncrypted()&&(a.TM=a.BC);3===b.type&&(a.Bf=b)};
wI=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
xI=function(a,b){this.j=a;this.u=void 0===b?!1:b;this.B=!1};
yI=function(a,b,c){c=void 0===c?!1:c;g.E.call(this);this.mediaElement=a;this.Xa=b;this.isView=c;this.I=0;this.C=!1;this.D=!0;this.V=0;this.callback=null;this.Xa||(this.Cg=this.mediaElement.ub());this.events=new g.eI(this);g.I(this,this.events);this.B=new xI(this.Xa?window.URL.createObjectURL(this.Xa):this.Cg.webkitMediaSourceURL,!0);a=this.Xa||this.Cg;Gz(this.events,a,["sourceopen","webkitsourceopen"],this.z7);Gz(this.events,a,["sourceclose","webkitsourceclose"],this.y7);this.J={updateend:this.O_}};
Hva=function(){return!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
Iva=function(a,b){zI(a)?g.Af(function(){b(a)}):a.callback=b};
Jva=function(a,b,c){if(AI){var d;BI(a.mediaElement,{l:"mswssb",sr:null==(d=a.mediaElement.va)?void 0:CI(d)},!1);g.bE(b,a.J,a);g.bE(c,a.J,a)}a.j=b;a.u=c;g.I(a,b);g.I(a,c)};
DI=function(a){return!!a.j||!!a.u};
zI=function(a){try{return"open"===EI(a)}catch(b){return!1}};
EI=function(a){if(a.Xa)return a.Xa.readyState;switch(a.Cg.webkitSourceState){case a.Cg.SOURCE_OPEN:return"open";case a.Cg.SOURCE_ENDED:return"ended";default:return"closed"}};
FI=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
Kva=function(a,b,c,d){if(!a.j||!a.u)return null;var e=a.j.isView()?a.j.Gd:a.j,f=a.u.isView()?a.u.Gd:a.u,h=new yI(a.mediaElement,a.Xa,!0);h.B=a.B;Jva(h,new tI(e,b,c,d),new tI(f,b,c,d));zI(a)||a.j.Vq(a.j.Ed());return h};
Lva=function(a){var b;null==(b=a.j)||b.Rx();var c;null==(c=a.u)||c.Rx();a.D=!1};
Mva=function(a){return GI(function(b,c){return g.Hy(b,c,4,1E3)},a,{format:"RAW",
method:"GET",withCredentials:!0})};
g.Nva=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=RF(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
GI=function(a,b,c){b.match(Ova);return a(b,c).then(function(d){var e=g.Nva(d.xhr);return e?GI(a,e,c):d.xhr})};
II=function(a,b,c,d){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.aE.call(this);var e=this;this.sourceUrl=a;this.isLivePlayback=c;this.videoId=d;this.Ja=this.duration=0;this.isPremiere=this.Se=this.B=this.isLiveHeadPlayable=this.isLive=this.u=!1;this.Wg=this.Ge=0;this.isOtf=this.Zc=!1;this.Aa=(0,g.GA)();this.V=Infinity;this.j={};this.I=new Map;this.state=this.Jg=0;this.timeline=null;this.isManifestless=!1;this.ea=[];this.C=null;this.Z=0;this.D="";this.ya=NaN;this.td=this.Gb=this.Uc=this.timestampOffset=
this.J=0;this.oa=!1;this.La=[];this.ze={E6a:function(h){HI(e,h)}};
var f;this.Pa=null==(f=b)?void 0:f.kb("html5_use_network_error_code_enums");this.Wa=!!b&&b.kb("html5_live_head_playable");Pva=!!b&&b.kb("html5_modern_vp9_mime_type")};
Xta=function(a){return g.Yc(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})};
qF=function(a){return g.Yc(a.j,function(b){return!!b.info.Nd})};
Qva=function(a){return g.Yc(a.j,function(b){return MH(b.info.mimeType)})};
Rva=function(a){return g.Yc(a.j,function(b){return b.info.video?"EQUIRECTANGULAR"===b.info.video.projectionType:!1})};
Sva=function(a){return g.Yc(a.j,function(b){return b.info.video?"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.info.video.projectionType:!1})};
Tva=function(a){return g.Yc(a.j,function(b){return b.info.video?"MESH"===b.info.video.projectionType:!1})};
Uva=function(a){return g.Yc(a.j,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
Vva=function(a){return dba(a.j,function(b){return b.info.video?b.sO():!0})};
nF=function(a){return g.Yc(a.j,function(b){return DF(b.u.j)})};
HI=function(a,b,c){a.j[b.info.id]=b;c=c||a.videoId;a.I.set(PG(b,a.Zc,c),b)};
Wva=function(a,b){return(a.videoId||"")+";"+b.itag+";"+(b.gj||0)+";"+b.xtags};
LI=function(a,b,c){c=void 0===c?0:c;var d=a.mimeType||"",e=a.itag;var f=a.xtags;e=e?e.toString():"";f&&(e+=";"+f);f=e;if(LH(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=Xva[a.stereoLayout]);var t=Bva(a)||void 0;if(null==n?0:n.primaries)var w=Yva[n.primaries]||void 0;h=new BH(h,e,l,p,q,void 0,m,t,w);d=JI(d,h,EH[a.itag||""])}var z;if(KH(d)){var C=a.audioSampleRate;q=a.audioTrack;C=new zH(C?+C:void 0,a.audioChannels,a.spatialAudioType,
a.isDrc,a.loudnessDb);q&&(w=q.displayName,e=q.id,q=q.audioIsDefault,w&&(z=new g.OH(w,e||"",!!q)))}var G;a.captionTrack&&(m=a.captionTrack,q=m.displayName,w=m.vssId,e=m.languageCode,l=m.kind,m=m.id,q&&w&&e&&(G=new zva(q,w,e,l,a.xtags,m)));q=Number(a.bitrate)/8;w=Number(a.contentLength);e=Number(a.lastModified);l=a.drmFamilies;a=a.type;c=c&&w?w/c:0;if(b&&l){var O={};l=g.v(l);for(m=l.next();!m.done;m=l.next())(m=KI[m.value])&&(O[m]=b[m])}return new FH(f,d,{audio:C,video:h,Ic:z,Nd:O,dc:q,vu:c,contentLength:w,
lastModified:e,captionTrack:G,streamType:a})};
MI=function(a,b,c){c=void 0===c?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);if(LH(d)){var h=(a.size||"640x360").split("x");h=new BH(+h[0],+h[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=JI(d,h,EH[a.itag])}var l;if(KH(d)){var m=new zH(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(l=new g.OH(a.name,a.audio_track_id,"1"===a.isDefault))}var n;a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&
(n=new zva(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 t={};for(var w=g.v(a.drm_families.split(",")),z=w.next();!z.done;z=w.next())z=z.value,t[z]=b[z]}return new FH(e,d,{audio:m,video:h,Ic:l,Nd:t,dc:f,vu:c,contentLength:p,lastModified:q,captionTrack:n,streamType:a.stream_type})};
Zva=function(a){return Ym(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
$va=function(a){return Ym(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
awa=function(a,b){return a.timeline?Gb(a.timeline.C,b):a.ea.length?Gb(a.ea,b):[]};
NI=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.AF(a,!0);a.set("alr","yes");c&&(c=bua(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
ewa=function(a,b){var c=hH(b,"id");c=c.replace(":",";");var d=hH(b,"mimeType"),e=hH(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(hH(b,"bandwidth"))/8;var f=Number(iH(b,"BaseURL").getAttribute(a.D+":contentLength")),h=a.duration&&f?f/a.duration:0;if(LH(d)){var l=Number(hH(b,"width"));var m=Number(hH(b,"height")),n=Number(hH(b,"frameRate")),p=bwa(hH(b,a.D+":projectionType"));a:switch(hH(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 BH(l,m,n,p,q)}if(KH(d)){var t=Number(hH(b,"audioSamplingRate"));var w=Number(hH(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=cwa(hH(b,a.D+":spatialAudioType"));t=new zH(t,w,m);a:{w=hH(b,"lang")||"und";if(m=iH(b,"Role"))if(p=hH(m,"value")||"",g.bd(dwa,p)){m=w+"."+dwa[p];n="main"===p;a=hH(b,a.D+":langName")||w+" - "+p;w=new g.OH(a,m,n);break a}w=void 0}}if(b=iH(b,"ContentProtection"))if("https://web.archive.org/web/20230505074338/http://youtube.com/drm/2012/10/10"===b.getAttribute("schemeIdUri")){var z={};for(b=
b.firstChild;null!=b;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(a=b.getAttribute("type"),m=b.textContent,a&&m&&(z[a]=m.trim()))}else z=void 0;return new FH(c,d,{audio:t,video:l,Ic:w,Nd:z,dc:e,vu:h,contentLength:f})};
bwa=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"}};
cwa=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"}};
gwa=function(a,b){b=void 0===b?"":b;a.state=1;a.Aa=(0,g.GA)();return Mva(b||a.sourceUrl).then(function(c){if(!a.isDisposed()){a.Jg=c.status;var d=c.responseText;c=new DOMParser;d=g.me(qma(d));c=c.parseFromString(g.fe(d),"text/xml").getElementsByTagName("MPD")[0];a.V=1E3*fva(hH(c,"minimumUpdatePeriod"))||Infinity;b:{if(c.attributes){d=g.v(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,"https://web.archive.org/web/20230505074338/http://youtube.com/yt/2012/10/10"===e.value){d=e.name.split(":")[1];break b}}d=""}a.D=d;a.isLive=
Infinity>a.V&&a.isLivePlayback;a.Ja=Number(hH(c,a.D+":earliestMediaSequence"))||0;if(d=Date.parse(gva(hH(c,a.D+":mpdResponseTime"))))a.Z=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.am(c.getElementsByTagName("Period"),a.e8,a);a.state=2;a.ma("loaded");fwa(a)}return a}).Zj(function(c){if(c instanceof Fy){var d=c.xhr;
a.Jg=d.status}a.state=3;a.ma("loaderror");return Hf(d)})};
hwa=function(a,b,c){return gwa(new II(a,b,c),a)};
OI=function(a){return a.isLive&&(0,g.GA)()-a.Aa>=a.V};
fwa=function(a){var b=a.V;isFinite(b)&&(OI(a)?a.refresh():(b=Math.max(0,a.Aa+b-(0,g.GA)()),a.C||(a.C=new g.Ap(a.refresh,b,a),g.I(a,a.C)),a.C.start(b)))};
iwa=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.ud()+1}return 0};
PI=function(a){return a.Uc?a.Uc-(a.J||a.timestampOffset):0};
QI=function(a){return a.Gb?a.Gb-(a.J||a.timestampOffset):0};
RI=function(a){if(!isNaN(a.ya))return a.ya;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()){b=0;for(c=d.Lm();c<=d.ud();c++)b+=d.getDuration(c);b/=d.Dy();b=.5*Math.round(b/.5);10<d.Dy()&&(a.ya=b);return b}if(a.isLive&&(d=b[c],d.Xj))return d.Xj}return NaN};
jwa=function(a,b){a=fba(a.j,function(d){return d.index.isLoaded()});
if(!a)return NaN;a=a.index;var c=a.rh(b);return a.getStartTime(c)===b?b:c<a.ud()?a.getStartTime(c+1):NaN};
kwa=function(a,b){if(!a.j["0"]){var c=new FH("0","fakesb",{video:new BH(0,0,0,void 0,void 0,"auto")});a.j["0"]=b?new gH(new g.AF("https://web.archive.org/web/20230505074338/http://www.youtube.com/videoplayback"),c,"fake"):new yH(new g.AF("https://web.archive.org/web/20230505074338/http://www.youtube.com/videoplayback"),c,new QG(0,0),new QG(0,0))}};
SI=function(a,b,c){for(var d in a.j){var e=MH(a.j[d].info.mimeType)||a.j[d].info.Vg();if(c===e){e=a.j[d].index;var f=lH(e,b);0<=f&&e.segments.splice(f,1)}}};
lwa=function(a){for(var b in a.j)iua(a.j[b].index,Infinity)};
mwa=function(a){a.Gb=0;a.Uc=0;a.td=0};
nwa=function(a){return a.Wa&&a.isManifestless?a.isLiveHeadPlayable:a.isLive};
JI=function(a,b,c){null===TI&&(TI=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(Pva&&window.MediaSource&&void 0!==MediaSource.isTypeSupported)return TI||"9"!==c&&"("!==c?TI||"9h"!==c&&"(h"!==c||(a='video/webm; codecs="vp9.2"'):a='video/webm; codecs="vp9"',a;if(!TI&&!UI||'video/webm; codecs="vp9"'!==a&&'video/webm; codecs="vp9.2"'!==
a)return a;c="00";var d="08",e="01",f="01",h="01";'video/webm; codecs="vp9.2"'===a&&(c="02",d="10","bt2020"===b.primaries&&(h=e="09"),"smpte2084"===b.u&&(f="16"),"arib-std-b67"===b.u&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,h,"00"].join(".")+'"'};
owa=function(a){g.Lz("yt-player-bandwidth",a,2592E3)};
VI=function(a){a=void 0===a?2592E3:a;if(0<a&&!(Soa()>(0,g.GA)()-1E3*a))return 0;a=g.Mz("yt-player-quality");if("string"===typeof a){if(a=g.gF[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
pwa=function(){var a=g.Mz("yt-player-quality");if(a instanceof Object&&a.quality&&a.previousQuality){if(a.quality>a.previousQuality)return 1;if(a.quality<a.previousQuality)return-1}return 0};
qwa=function(){var a={values:{},fq:{}};try{var b=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);a.values=b.values;a.halfLives=b.halfLives}catch(c){}return a};
rwa=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
XI=function(a,b){return+WI()[rwa(a,b)]||8192};
WI=function(){return g.Mz("yt-player-performance-cap")||{}};
swa=function(a){g.Lz("yt-player-watch-later-pending",a)};
twa=function(){return!!g.Mz("yt-player-headers-readable")};
uwa=function(a){g.Lz("yt-player-playback-on-reload",a)};
vwa=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.YI=function(){var a=g.Mz("yt-player-caption-language-preferences");return a?a:[]};
wwa=function(a){this.D=a;this.Kc=this.j=this.Pa=this.V=this.J=this.Aa=this.La=this.ob=this.ib=!1;this.Z=this.ea=0;this.Nb=!1;this.Ga=!0;this.tb=!1;this.C=0;this.Ja=!1;this.hd=Infinity;this.pK=!1;this.Uc=!0;this.Za=this.Wa=this.Ya=!1;this.u={};this.B=this.oa=!1;this.Gc=this.D.K("html5_enable_audio_track_log");this.jc=!1;this.Bc=this.D.experiments.kb("html5_enable_vp9_fairplay");this.td=this.D.K("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.rd=this.D.K("html5_account_onesie_format_selection_during_format_filter");
this.Xi=0;this.Ub=this.Gb=!1};
Yta=function(a){if(a.ob)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Ja&&(b.unshift("1"),b.unshift("1h"));a.j&&b.unshift("h");a.ya&&(b=(xwa[a.ya]||[a.ya]).concat(b));return b};
Wta=function(a){var b=["o","a","A"];1===a.Xi&&(a.Aa&&(b=["m","M"].concat(b)),a.J&&(b=["mac3","MAC3"].concat(b)),a.V&&(b=["meac3","MEAC3"].concat(b)));a.ib&&(b=["so","sa"].concat(b));!a.Kc||a.Pa||a.I||b.unshift("a");a.La&&b.unshift("ah");a.I&&(b=(xwa[a.I]||[a.I]).concat(b));return b};
ZI=function(a,b,c){b=void 0===b?{}:b;if(a.K("html5_disable_av1"))return b.disabled=1,0;if(uF(a.D,vF.AV1_CODECS)&&uF(a.D,vF.HEIGHT)&&uF(a.D,vF.BITRATE))return b.isCapabilityUsable=1,8192;try{var d=vwa();if(d)return b.localPref=d}catch(h){}a=1080;2>=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;loa()&&(b.isArm=1,a=240);if(c){var e,f;if(d=null==(e=c.videoInfos.find(function(h){return HH(h)}))?void 0:null==(f=e.j)?void 0:f.powerEfficient)a=8192,b.isEfficient=1;
c=c.videoInfos[0].video;e=Math.min(XI("1",c.fps),XI("1",30));b.perfCap=e;a=Math.min(a,e);c.isHdr()&&!d&&(b.hdr=1,a*=.75)}else c=XI("1",30),b.perfCap30=c,a=Math.min(a,c),c=XI("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a};
$I=function(a){return a?function(){try{return a.apply(this,arguments)}catch(b){g.zD(b)}}:a};
aJ=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.u=c;this.experiments=d;this.j={};this.Pa=this.keySystemAccess=null;this.Rw=this.Sw=-1;this.ll=null;this.B=!!d&&d.kb("edge_nonprefixed_eme")};
cJ=function(a){return a.B?!1:!a.keySystemAccess&&!!bJ()&&"com.microsoft.playready"===a.keySystem};
dJ=function(a){return"com.microsoft.playready"===a.keySystem};
eJ=function(a){return!a.keySystemAccess&&!!bJ()&&"com.apple.fps.1_0"===a.keySystem};
fJ=function(a){return"com.youtube.fairplay"===a.keySystem};
gJ=function(a){return"com.youtube.fairplay.sbdl"===a.keySystem};
g.hJ=function(a){return"fairplay"===a.flavor};
bJ=function(){var a=window,b=a.MSMediaKeys;Xy()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
kJ=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.hI&&!g.Uy())return cq("45");if(g.lB||g.Ve)return a.kb("edge_nonprefixed_eme");if(g.iJ)return cq("47");if(g.xA){if(a.kb("html5_enable_safari_fairplay"))return!1;if(a=g.jJ(a,"html5_safari_desktop_eme_min_version"))return cq(a)}return!0};
ywa=function(a,b,c,d){var e=Vy(),f=(c=e||c&&Xy())?["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.la(f),g.la(lJ.playready)):[].concat(g.la(lJ.playready),g.la(f))};
nJ=function(){this.B=this.j=0;this.u=Array.from({length:mJ.length}).fill(0)};
zwa=function(a){if(0===a.j)return null;for(var b=a.j.toString()+"."+Math.round(a.B).toString(),c=0;c<mJ.length;++c)if(0<a.u[c])b+="."+mJ[c].toString()+"_"+Math.round(a.u[c]).toString();else break;return b};
Awa=function(){};
Bwa=function(a){this.name=a;this.startTimeMs=(0,g.GA)();this.j=!1};
Cwa=function(){this.j=new Awa};
oJ=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.j||(a.j[b]=new nJ),a.j[b].Of(c,d))};
Dwa=function(){};
Ewa=function(a){this.name=a;this.startTimeMs=(0,g.GA)();this.j=!1};
Fwa=function(){this.j=new Dwa};
Gwa=function(a,b,c,d){if(b&&"object"===typeof b&&"then"in b&&"function"===typeof b.then){var e=function(f){pJ(a,c,(0,g.GA)()-d);return f};
return b.then(e,e)}pJ(a,c,(0,g.GA)()-d);return b};
pJ=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.j||(a.j[b]=new nJ),a.j[b].Of(c,d))};
Hwa=function(){};
qJ=function(a,b,c,d,e){d=void 0===d?!1:d;g.E.call(this);this.D=b;this.useCobaltWidevine=d;this.xa=e;this.u=[];this.B={};this.j={};this.callback=null;this.I=!1;this.C=[];this.J=this.K("html5_store_probed_media_key_system_access");this.initialize(a,!c)};
Jwa=function(a,b){a.callback=b;a.C=[];kJ(a.D.experiments)?rJ(a):Iwa(a)};
rJ=function(a){if(!a.isDisposed())if(0===a.u.length)a.callback(a.C);else{var b=a.u[0],c=a.B[b],d=Kwa(a,c);if(a.J){if(sJ&&sJ.keySystem===b&&sJ.K8===JSON.stringify(d)){a.xa("remksa",{re:!0});Lwa(a,c,sJ.keySystemAccess);return}var e,f;a.xa("remksa",{re:!1,ok:null!=(f=null==(e=sJ)?void 0:e.keySystem)?f:""});sJ=void 0}(tJ.isActive()&&tJ.pw()?tJ.Aw("emereq",navigator.requestMediaKeySystemAccess).call(navigator,b,d):navigator.requestMediaKeySystemAccess(b,d)).then($I(function(h){Lwa(a,c,h,d)}),$I(function(){a.I=
!a.I&&"widevine"===a.B[a.u[0]].flavor;
a.I||a.u.shift();rJ(a)}))}};
Lwa=function(a,b,c,d){if(!a.isDisposed()){a.J&&d&&(sJ={keySystem:b.keySystem,keySystemAccess:c,K8:JSON.stringify(d)});b.keySystemAccess=c;if(dJ(b)){c=fI();d=g.v(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.v(c.audioCapabilities),e=d.next();!e.done;e=d.next())Mwa(a,b,e.value);if(c.videoCapabilities)for(c=g.v(c.videoCapabilities),d=c.next();!d.done;d=c.next())Mwa(a,b,d.value)}a.C.push(b);
a.useCobaltWidevine||a.K("html5_enable_vp9_fairplay")&&gJ(b)?(a.u.shift(),rJ(a)):a.callback(a.C)}};
Mwa=function(a,b,c){a.K("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
Kwa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.K("html5_enable_vp9_fairplay")&&fJ(b))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];dJ(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.v(Object.keys(a.j[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),h=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==
b.flavor||a.I?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.hI&&Sy("windows nt")&&!a.K("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),f=e,a.K("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.K("html5_query_sw_secure_crypto_for_android")&&"MWEB"===g.uJ(a.D)&&(cz()||Ty())&&(a.xa("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
Iwa=function(a){if(bJ()&&g.xA)a.C.push(new aJ("fairplay","com.apple.fps.1_0","",a.D.experiments));else{var b=Nwa(),c=g.sb(a.u,function(d){var e=a.B[d],f=!1,h=!1,l;for(l in a.j[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
c&&a.C.push(a.B[c]);a.u=[]}a.callback(a.C)};
Nwa=function(){var a=bJ();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=fI();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
Owa=function(){this.j=0};
Pwa=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=ky(b||"","&");a={};b=g.v(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a};
g.jJ=function(a,b){return Number(a.flags[b])||0};
vJ=function(a,b){return(a=a.flags[b])?a.toString():""};
Rwa=function(a){return Qwa.then(a)};
wJ=function(a,b,c){this.experiments=a;this.oa=b;this.ya=void 0===c?!1:c;this.J=!!g.La("cast.receiver.platform.canDisplayType");this.I={};this.ea=!1;this.u=new Map;this.V=!0;this.D=!this.experiments.kb("html5_disable_protected_hdr");this.j=this.B=!1;this.Z=this.experiments.kb("html5_disable_vp9_encrypted");a=g.La("cast.receiver.platform.getValue");this.C=!this.J&&a&&a("max-video-resolution-vpx")||null};
Zta=function(a,b,c){c=void 0===c?1:c;var d=b.itag;if("0"===d)return!0;var e=b.mimeType;if(b.Ee()&&Vy()&&a.experiments.kb("html5_appletv_disable_vp9"))return"dwebm";if(HH(b)&&a.ea)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(uF(a,vF.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if("338"===d&&!(g.hI?cq(53):g.iJ&&cq(64)))return"dopus";
var f=c;f=void 0===f?1:f;c={};b.video&&(b.video.width&&(c[vF.WIDTH.name]=b.video.width),b.video.height&&(c[vF.HEIGHT.name]=b.video.height),b.video.fps&&(c[vF.FRAMERATE.name]=b.video.fps*f),b.video.u&&(c[vF.EOTF.name]=b.video.u),b.dc&&(c[vF.BITRATE.name]=8*b.dc*f),"("===b.Mb&&(c[vF.CRYPTOBLOCKFORMAT.name]="subsample"),"EQUIRECTANGULAR"===b.video.projectionType||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.video.projectionType||"MESH"===b.video.projectionType)&&(c[vF.DECODETOTEXTURE.name]="true");b.audio&&
b.audio.numChannels&&(c[vF.CHANNELS.name]=b.audio.numChannels);a.B&&yF(b)&&(c[vF.EXPERIMENTAL.name]="allowed");f=g.v(Object.keys(vF));for(var h=f.next();!h.done;h=f.next())if(h=vF[h.value],c[h.name]&&!(h===vF.EOTF&&0<b.mimeType.indexOf("vp09.02")||a.experiments.kb("html5_ignore_h264_framerate_cap")&&h===vF.FRAMERATE&&("H"===b.Mb||"h"===b.Mb)))if(uF(a,h))if(a.C){if(a.C[h.name]<c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];else if(GH(b)&&h===vF.EOTF)return"dvp92";a.J&&b.video&&1080<b.video.j&&
b.Nd&&(e+="; hdcp=2.2");return"227"===d?"hqcenc":"585"!==d&&"588"!==d&&"583"!==d&&"586"!==d&&"584"!==d&&"587"!==d&&"591"!==d&&"592"!==d||a.experiments.kb("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc"};
xJ=function(){var a=Ty()&&!cq(29),b=Sy("google tv")&&Sy("chrome")&&!cq(30);return a||b?!1:Hva()};
Swa=function(a,b,c){var d=480;b=g.v(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.video.j;1080>=f&&f>d&&!0===Zta(a,e,c)&&(d=f)}return d};
g.yJ=function(a,b){b=void 0===b?!1:b;return xJ()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(fI(),"application/x-mpegURL")?!0:!1};
Uwa=function(a){Twa(function(){for(var b=g.v(Object.keys(vF)),c=b.next();!c.done;c=b.next())uF(a,vF[c.value])})};
uF=function(a,b){b.name in a.I||(a.I[b.name]=Vwa(a,b));return a.I[b.name]};
Vwa=function(a,b){if(a.C)return!!a.C[b.name];if(b===vF.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===vF.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.Vm);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.Vm)};
Wwa=function(a){a.V=!1;a.j=!0};
Xwa=function(a){a.B||(a.B=!0,a.j=!0)};
Ywa=function(a,b){var c=0;a.u.has(b)&&(c=a.u.get(b).f3);a.u.set(b,{f3:c+1,sX:Math.pow(2,c+1)});a.j=!0};
zJ=function(){var a=this;this.queue=[];this.C=0;this.j=this.u=!1;this.B=function(){a.u=!1;a.gf()}};
Zwa=function(a){a.j||(Twa(function(){a.gf()}),a.j=!0)};
AJ=function(){g.aE.call(this);this.items={}};
BJ=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
HJ=function(a){this.counter=[0,0,0,0];this.u=new Uint8Array(16);this.j=16;if(!$wa){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;256>b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);CJ=new Uint8Array(256);DJ=BJ(256);EJ=BJ(256);FJ=BJ(256);GJ=BJ(256);for(var f=0;256>f;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;CJ[f]=e;b=e<<1^(e>>7&&283);var h=b^e;DJ[f]=b<<24|e<<16|e<<8|h;EJ[f]=h<<24|DJ[f]>>>8;FJ[f]=e<<24|EJ[f]>>>8;GJ[f]=e<<24|FJ[f]>>>8}$wa=!0}e=BJ(44);for(c=0;4>c;c++)e[c]=
a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;44>c;c++)a=e[c-1],c%4||(a=(CJ[a>>16&255]^d)<<24|CJ[a>>8&255]<<16|CJ[a&255]<<8|CJ[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
axa=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;0<=h&&!(a.counter[h]=-~a.counter[h]);h--);for(var l,m,n=4;40>n;)h=DJ[c>>>24]^EJ[d>>16&255]^FJ[e>>8&255]^GJ[f&255]^b[n++],l=DJ[d>>>24]^EJ[e>>16&255]^FJ[f>>8&255]^GJ[c&255]^b[n++],m=DJ[e>>>24]^EJ[f>>16&255]^FJ[c>>8&255]^GJ[d&255]^b[n++],f=DJ[f>>>24]^EJ[c>>16&255]^FJ[d>>8&255]^GJ[e&255]^b[n++],c=h,d=l,e=m;a=a.u;h=b[40];a[0]=CJ[c>>>24]^h>>>24;a[1]=CJ[d>>16&255]^h>>16&255;a[2]=CJ[e>>8&255]^
h>>8&255;a[3]=CJ[f&255]^h&255;h=b[41];a[4]=CJ[d>>>24]^h>>>24;a[5]=CJ[e>>16&255]^h>>16&255;a[6]=CJ[f>>8&255]^h>>8&255;a[7]=CJ[c&255]^h&255;h=b[42];a[8]=CJ[e>>>24]^h>>>24;a[9]=CJ[f>>16&255]^h>>16&255;a[10]=CJ[c>>8&255]^h>>8&255;a[11]=CJ[d&255]^h&255;h=b[43];a[12]=CJ[f>>>24]^h>>>24;a[13]=CJ[c>>16&255]^h>>16&255;a[14]=CJ[d>>8&255]^h>>8&255;a[15]=CJ[e&255]^h&255};
KJ=function(){if(!IJ&&!g.lB){if(JJ)return JJ;var a;JJ=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=JJ)?0:b.importKey)&&(null==(c=JJ)?0:c.sign)&&(null==(d=JJ)?0:d.encrypt))return JJ;JJ=void 0}};
LJ=function(a,b){g.E.call(this);var c=this;this.j=a;this.cipher=this.j.AES128CTRCipher_create(b.byteOffset);g.lb(this,function(){c.j.AES128CTRCipher_release(c.cipher)})};
g.MJ=function(a){this.C=a};
g.NJ=function(a){this.u=a};
OJ=function(a,b){this.j=a;this.D=b};
PJ=function(a){this.D=new Uint8Array(64);this.B=new Uint8Array(64);this.C=0;this.I=new Uint8Array(64);this.u=0;this.D.set(a);this.B.set(a);for(a=0;64>a;a++)this.D[a]^=92,this.B[a]^=54;this.reset()};
bxa=function(a,b,c){for(var d=a.J,e=a.j[0],f=a.j[1],h=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],t,w,z,C=0;64>C;)16>C?(d[C]=z=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[C-2],w=d[C-15],z=d[C-7]+d[C-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[C]=z),t=q+QJ[C]+z+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),w=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=t+w,l+=t,C++,16>C?(d[C]=z=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=
d[C-2],w=d[C-15],z=d[C-7]+d[C-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[C]=z),t=p+QJ[C]+z+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),w=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=t+w,h+=t,C++,16>C?(d[C]=z=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[C-2],w=d[C-15],z=d[C-7]+d[C-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[C]=z),t=n+QJ[C]+z+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^
~h&m),w=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=t+w,f+=t,C++,16>C?(d[C]=z=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[C-2],w=d[C-15],z=d[C-7]+d[C-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[C]=z),t=m+QJ[C]+z+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),w=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),z=q,q=l,l=z,z=p,p=h,h=z,z=n,n=f,f=z,m=e+t,e=t+w,C++;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};
dxa=function(a){var b=new Uint8Array(32),c=64-a.u;55<a.u&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.C,f=1;9>f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.j[c]>>>24,b[4*c+1]=a.j[c]>>>16&255,b[4*c+2]=a.j[c]>>>8&255,b[4*c+3]=a.j[c]&255;cxa(a);return b};
cxa=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.J=[];a.J.length=64;a.C=0;a.u=0};
exa=function(a){this.j=a};
fxa=function(a,b,c){a=new PJ(a.j);a.update(b);a.update(c);b=dxa(a);a.update(a.D);a.update(b);b=dxa(a);a.reset();return b};
gxa=function(a){this.u=a};
hxa=function(a,b,c,d){var e,f,h,l;return g.A(function(m){switch(m.j){case 1:if(a.j){m.Ka(2);break}e=a;return g.y(m,d.importKey("raw",a.u,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:e.j=m.u;case 2:return f=new Uint8Array(b.length+c.length),f.set(b),f.set(c,b.length),h={name:"HMAC",hash:"SHA-256"},g.y(m,d.sign(h,a.j,f),4);case 4:return l=m.u,m.return(new Uint8Array(l))}})};
ixa=function(a,b,c){a.B||(a.B=new exa(a.u));return fxa(a.B,b,c)};
jxa=function(a,b,c){var d,e;return g.A(function(f){if(1==f.j){d=KJ();if(!d)return f.return(ixa(a,b,c));g.ua(f,3);return g.y(f,hxa(a,b,c,d),5)}if(3!=f.j)return f.return(f.u);e=g.xa(f);g.AD(e);IJ=!0;return f.return(ixa(a,b,c))})};
RJ=function(){g.MJ.apply(this,arguments)};
SJ=function(){g.NJ.apply(this,arguments)};
TJ=function(a,b){if(b.buffer!==a.memory.buffer){var c=new Uint8Array(a.memory.buffer,a.malloc(b.byteLength),b.byteLength);c.set(b)}OJ.call(this,a,c||b);this.u=new Set;this.C=!1;c&&this.u.add(c.byteOffset)};
kxa=function(a,b,c){this.encryptedClientKey=b;this.D=c;this.j=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)};
lxa=function(a){a.u||(a.u=new RJ(a.j));return a.u};
UJ=function(a){try{return ag(a)}catch(b){return null}};
mxa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?UJ(b.clientKey):null;var c=b.encryptedClientKey?UJ(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.GA)():null;a&&c&&d&&(this.j=new kxa(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=UJ(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
VJ=function(a){this.j=this.u=0;this.alpha=Math.exp(Math.log(.5)/a)};
WJ=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.u=0;this.B=!1;this.D=!0;this.j=Math.round(a*this.resolution);this.values=Array(this.j);for(a=0;a<this.j;a++)this.values[a]=Infinity;this.I=nxa(this);this.C=c;this.J=d};
nxa=function(a){for(var b=Array(a.j),c=0;c<a.j;c++)b[c]=c;return b};
XJ=function(a,b){if(!a.B&&0===a.u)return 0;a.D&&(g.Rb(a.I,function(c,d){return a.values[c]-a.values[d]}),a.D=!1);
return a.values[a.I[Math.round(b*((a.B?a.j:a.u)-1))]]||0};
oxa=function(a){var b=new Owa;this.policy=a;this.ya=b;this.ea=this.oa=0;this.D=-1;this.V=!1;this.Z=this.C=(0,g.GA)();this.J=new WJ(4,1,.6,.4);this.j=new WJ(10,1,.5,.4);this.B=a.C?new VJ(a.j):new WJ(a.j,20,.5,.4);this.I=new WJ(5,1,.25);this.u=new WJ(30,1,.5);a=g.Mz("yt-player-bandwidth")||{};b=this.policy.u;0<a.byterate&&(b=a.byterate,this.V=!0);this.B.xi(this.policy.D,b);0<a.delay&&this.J.xi(1,Math.min(a.delay,2));0<a.stall&&this.j.xi(1,a.stall);0<a.init&&(this.Z=Math.min(a.init,this.Z));this.D=(0,g.GA)()};
YJ=function(a){a=a.J.aj();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
pxa=function(a,b,c){isNaN(c)||(a.ea+=c);isNaN(b)||(a.oa+=b)};
ZJ=function(a){a=a.B.aj();return 0<a?a:1};
$J=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=ZJ(a);d=1/((a.j.aj()||0)+1/d);var e=a.I.aj();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+YJ(a);c=d*Math.min(1,c/(d*b));a.policy.B||(a=((XJ(a.u,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
aK=function(a){return{delay:YJ(a),stall:a.j.aj()||0,byterate:ZJ(a),init:a.Z}};
bK=function(a){-1<a.D&&3E4<(0,g.GA)()-a.D&&(owa(aK(a)),a.D=(0,g.GA)(),a.V=!0)};
qxa=function(a){return 4E3<=(0,g.GA)()-a.C};
rxa=function(){this.j=17;this.u=13E4;this.D=.5;this.B=this.C=!1};
txa=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.E.call(this);var c=this;this.values=a;this.fq=b;this.u={};this.B=this.j=0;this.C=new g.Ap(function(){sxa(c)},1E4);
g.I(this,this.C)};
cK=function(a,b){uxa(a,b);return a.values[b]&&a.fq[b]?a.values[b]/Math.pow(2,a.j/a.fq[b]):0};
uxa=function(a,b){a.values[b]||(b=qwa(),a.values=b.values||{},a.fq=b.halfLives||{},a.u=b.values?Object.assign({},b.values):{})};
sxa=function(a){var b=qwa();if(b.values){b=b.values;for(var c={},d=g.v(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.u[e]&&(a.values[e]+=b[e]-a.u[e]),c[e]=cK(a,e);a.u=c}b=a.fq;c={};c.values=a.u;c.halfLives=b;g.Lz("yt-player-memory",c,2592E3)};
dK=function(){var a=this;this.j=this.u=taa;this.promise=new g.Cf(function(b,c){a.u=b;a.j=c})};
yK=function(a,b,c,d){g.E.call(this);this.webPlayerContextConfig=b;this.lm=d;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Yi=this.ke=this.ib=this.Ti=this.userDisplayName=this.userDisplayImage=this.oi="";this.j={};this.controlsType="0";this.hd=NaN;this.Ud=!1;this.Sf=(0,g.GA)();this.jc=0;this.jl=this.On=!1;this.wm=!0;this.embedsEnableRcat=this.Rf=this.B=this.jm=this.Gf=!1;a=a?g.jd(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);
this.experiments=new Pwa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:iz("",a.forced_experiments)||void 0;this.cspNonce=(null==b?0:b.cspNonce)?b.cspNonce:iz("",a.csp_nonce);this.K("web_player_deprecated_uvr_killswitch");try{var e=document.location.toString()}catch(G){e=""}this.le=e;this.ancestorOrigins=(d=window.location.ancestorOrigins)?Array.from(d):[];this.C=fz(!1,b?b.isEmbed:a.is_embed);b&&b.device?(d=b.device,
d.brand&&(this.j.cbrand=d.brand),d.browser&&(this.j.cbr=d.browser),d.browserVersion&&(this.j.cbrver=d.browserVersion),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)):(this.j.c=a.c||"web",this.j.cver=
a.cver||"html5",this.j.cplayer="UNIPLAYER");this.loaderUrl=b?this.C||vxa(this)&&b.loaderUrl?b.loaderUrl||"":this.le:this.C||vxa(this)&&a.loaderUrl?iz("",a.loaderUrl):this.le;this.C&&g.Ka("yt.embedded_player.embed_url",this.loaderUrl);this.I=OD(this.loaderUrl,wxa);d=this.loaderUrl;var f=void 0===f?!1:f;this.Xn=ND(OD(d,xxa),d,f,"Trusted Ad Domain URL");this.Za=fz(!1,a.privembed);this.protocol=0===this.le.indexOf("http:")?"http":"https";this.La=PD((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||PD(this.le)||
this.protocol+"://www.youtube.com/";f=b?b.eventLabel:a.el;d="detailpage";"adunit"===f?d=this.C?"embedded":"detailpage":"embedded"===f||this.I?d=gz(d,f,yxa):f&&(d="embedded");this.Ga=d;IC();f=null;d=b?b.playerStyle:a.ps;e=g.wb(zxa,d);!d||e&&!this.I||(f=d);this.playerStyle=f;this.oa=(this.J=g.wb(zxa,this.playerStyle))&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.Wn=!this.oa;this.Wa=fz(!1,a.disableplaybackui);this.disablePaidContentOverlay=fz(!1,null==b?void 0:b.disablePaidContentOverlay);
this.disableSeek=fz(!1,null==b?void 0:b.disableSeek);this.tf=this.K("variable_playback_rate")?!0:fI().defaultPlaybackRate?eK||g.bz||fK?g.iJ&&cq("20")||g.hI&&cq("4")||g.gK&&cq("11")||Yy():!(g.gK&&!Sy("chrome")||eK||Sy("android")||Sy("silk")):!1;this.Rn=fz(!1,a.enable_faster_speeds);this.u=fz("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.Nb=az()||cz();this.Vn=this.u&&!this.J;this.Ya=kI();this.oo=g.hK;this.ll=fz(!1,b?b.embedOptOutDeprecation:a.opt_out_deprecation);this.Z=
!(!b||!b.embedsEnablePfpImaIntegration);this.ya=!!((null==b?0:b.embedsEnableAppendUtmParams)&&this.K("embeds_web_enable_utm_params"));this.Tn=this.K("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var h;b?void 0!==b.hideInfo&&(h=!b.hideInfo):h=a.showinfo;this.qm=g.iK(this)&&!this.ll||fz(!jK(this)&&!kK(this)&&!this.J,h);this.ol=b?!!b.mobileIphoneSupportsInlinePlayback:fz(!1,a.playsinline);h=this.u&&lK&&null!=mK&&0<mK&&2.3>=mK;f=b?b.useNativeControls:a.use_native_controls;this.V=g.iK(this)&&
this.u;d=this.u&&!this.V;f=g.nK(this)||!h&&fz(d,f)?"3":"1";d=b?b.controlsType:a.controls;this.controlsType="0"!==d&&0!==d?f:"0";this.oh=this.u;this.color=gz("red",b?b.progressBarColor:a.color,Axa);this.ao="3"===this.controlsType||fz(!1,b?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.Gc=!this.C;this.tm=(f=!this.Gc&&!kK(this)&&!this.oa&&!this.J&&!jK(this))&&!this.ao&&"1"===this.controlsType;this.td=g.oK(this)&&f&&"0"===this.controlsType&&!this.tm;this.xq=this.jo=h;this.Uc=("3"===
this.controlsType||this.u||fz(!1,a.use_media_volume))&&!this.V;this.xm=Zy&&!g.Lc(601)?!1:!0;this.Un=this.C||!1;this.Kc=kK(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=iz("",b?b.widgetReferrer:a.widget_referrer);var l;b?b.disableCastApi&&(l=!1):l=a.enablecastapi;l=!this.I||fz(!0,l);h=!0;b&&b.disableMdxCast&&(h=!1);this.Hj=this.K("enable_cast_for_web_unplugged")&&g.pK(this)&&h||this.K("enable_cast_on_music_web")&&g.qK(this)&&h||l&&h&&"1"===this.controlsType&&
!this.u&&(kK(this)||g.oK(this)||"profilepage"===this.Ga)&&!g.rK(this);this.wq=!!window.document.pictureInPictureEnabled||jI();l=b?!!b.supportsAutoplayOverride:fz(!1,a.autoplayoverride);this.dl=!(this.u&&(!g.iK(this)||!this.K("embeds_web_enable_mobile_autoplay")))&&!Sy("nintendo wiiu")||l;l=b?!!b.enableMutedAutoplay:fz(!1,a.mutedautoplay);this.Po=this.K("embeds_enable_muted_autoplay")&&g.iK(this);this.nh=l&&!1;l=(kK(this)||jK(this))&&"blazer"===this.playerStyle;this.Ij=b?!!b.disableFullscreen:!fz(!0,
a.fs);this.Ub=!this.Ij&&(l||g.uz());this.hm=this.K("uniplayer_block_pip")&&(Ty()&&cq(58)&&!cz()||kB);l=g.iK(this)&&!this.ll;var m;b?void 0!==b.disableRelatedVideos&&(m=!b.disableRelatedVideos):m=a.rel;this.rd=l||fz(!this.J,m);this.pm=fz(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.ea=cz()&&0<mK&&4.4>=mK?"_top":"_blank";this.Vf="profilepage"===this.Ga;this.Yk=fz("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":m="bl";break;case "gmail":m=
"gm";break;case "gac":m="ga";break;case "books":m="gb";break;case "docs":m="gd";break;case "duo":m="gu";break;case "google-live":m="gl";break;case "google-one":m="go";break;case "play":m="gp";break;case "chat":m="hc";break;case "hangouts-meet":m="hm";break;case "photos-edu":case "picasaweb":m="pw";break;default:m="yt"}this.Ja=m;this.authUser=iz("",b?b.authorizedUserIndex:a.authuser);this.Bc=g.iK(this)&&(this.Za||!hoa()||this.Nb);var n;b?void 0!==b.disableWatchLater&&(n=!b.disableWatchLater):n=a.showwatchlater;
this.fm=((m=!this.Bc)||!!this.authUser&&m)&&fz(!this.oa,this.I?n:void 0);this.Zi=b?b.isMobileDevice||!!b.disableKeyboardControls:fz(!1,a.disablekb);this.loop=fz(!1,a.loop);this.pageId=iz("",b?b.initialDelegatedSessionId:a.pageid);this.Do=fz(!0,a.canplaylive);this.tb=fz(!1,a.livemonitor);this.disableSharing=fz(this.J,b?b.disableSharing:a.ss);(n=b&&this.K("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)?(m=n.split("x"),2!==m.length?n=null:(n=Number(m[0]),
m=Number(m[1]),n=isNaN(n)||isNaN(m)||0>=n*m?null:new g.xe(n,m))):n=null;this.ym=n;this.mute=b?!!b.startMuted:fz(!1,a.mute);this.storeUserVolume=!this.mute&&fz("0"!==this.controlsType,b?b.storeUserVolume:a.store_user_volume);n=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:gz(void 0,n,sK);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":iz("",a.cc_lang_pref);n=gz(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,sK);"3"===this.controlsType&&
2===n&&(n=3);this.Gb=n;this.Ri=b?b.hl||"en_US":iz("en_US",a.hl);this.region=b?b.contentRegion||"US":iz("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":iz("en",a.host_language);this.Pn=!this.Za&&Math.random()<g.jJ(this.experiments,"web_player_api_logging_fraction");this.ob=!this.Za;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(null==b||!b.deviceIsAudioOnly);this.hd=hz(this.hd,a.ismb);this.Wn?(n=a.vss_host||"s.youtube.com","s.youtube.com"===n&&(n=tK(this.La)||"www.youtube.com")):n="video.google.com";
this.zm=n;uK(this,a,!0);this.Aa=new AJ;g.I(this,this.Aa);m=b?b.innertubeApiKey:iz("",a.innertube_api_key);l=b?b.innertubeApiVersion:iz("",a.innertube_api_version);n=b?b.innertubeContextClientVersion:iz("",a.innertube_context_client_version);m=g.ay("INNERTUBE_API_KEY")||m;l=g.ay("INNERTUBE_API_VERSION")||l;h=g.ay("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");f=g.uJ(this);d="number"===typeof this.j.c?Number(this.j.c):Object.keys(Bxa).indexOf(this.j.c);this.Sj={innertubeApiKey:m,innertubeApiVersion:l,nG:h,
yM:f,MU:d,innertubeContextClientVersion:g.ay("INNERTUBE_CONTEXT_CLIENT_VERSION")||n,AM:this.hostLanguage,zM:this.region,NU:g.ay("INNERTUBE_HOST_OVERRIDE")||"",OU:!!g.ay("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),BM:!!g.ay("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.ql=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.D=new wJ(this.experiments,this.K("html5_force_hfr_support")?!0:vK(this)||Wy()||moa()||Cxa(this),g.hI&&g.Lc(56)||g.iJ&&g.Lc(54)||this.K("html5_force_vp9_subsample_encryption_support")||
Cxa(this));n=this.hd;m=new rxa;g.wK(this)&&(m.C=!0,m.D=.1);n&&(m.u=n/8);m.B=480<=VI();this.schedule=new oxa(m);var p;this.enableSafetyMode=null!=(p=null==b?void 0:b.initialEnableSafetyMode)?p:fz(!1,a.enable_safety_mode);p=this.Wa?!1:kK(this)&&"blazer"!==this.playerStyle;var q;b?null!=b.disableAutonav&&(q=!b.disableAutonav):q=a.allow_autonav;this.Wd=fz(p,!this.oa&&q);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:fz(!1,a.send_visitor_id_header);var t;"docs"===this.playerStyle&&(b?t=b.disableNativeContextMenu:
t=a.disable_native_context_menu);this.disableNativeContextMenu=fz(!1,t);this.Sn=vK(this)&&this.K("enable_skip_intro_button");this.embedConfig=iz("",b?b.serializedEmbedConfig:a.embed_config);this.Pa=lz(a,g.iK(this));this.B="EMBEDDED_PLAYER_MODE_PFL"===this.Pa;this.embedsErrorLinks=!(null==b||!b.embedsErrorLinks);this.Kj=fz(!1,a.full_window);this.Uf=!g.pK(this)&&!xK(this)&&!g.rK(this)&&!0;var w;this.livingRoomAppMode=gz("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode||(null==b?void 0:null==
(w=b.device)?void 0:w.livingRoomAppMode),Dxa);var z;q=hz(NaN,null==b?void 0:null==(z=b.device)?void 0:z.deviceYear);isNaN(q)||(this.deviceYear=q);this.transparentBackground=b?!!b.transparentBackground:fz(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:fz(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:fz(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:fz(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=
b?!!b.showInlinePreviewUi:!1;this.nm=fz(!1,a.showbackbutton);var C;this.wm=null!=(C=a.show_loop_video_toggle)?C:!0;this.Zn=1E-4>Math.random();this.Rk=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new mxa(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.uf=new txa;g.I(this,this.uf);this.jm=fz(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.ay("DATASYNC_ID");this.Yn=g.ay("LOGGED_IN",!1);this.Xi=
(null==b?void 0:b.allowWoffleManagement)||!1;this.gm=0;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;this.K("html5_high_res_logging_always")?this.Rf=!0:this.Rf=100*Math.random()<(g.jJ(this.experiments,"html5_unrestricted_layer_high_res_logging_percent")||g.jJ(this.experiments,"html5_high_res_logging_percent"));this.K("html5_ping_queue")&&(this.Sk=new zJ);this.embedsEnableRcat=!this.K("embeds_web_enable_rcat_allowlist")||!(null==b||!b.embedsEnableRcat)};
g.zK=function(a){var b;if(null==(b=a.webPlayerContextConfig)||!b.embedsEnableLiteUx||a.Za||a.J)return"EMBEDDED_PLAYER_LITE_MODE_NONE";a=g.jJ(a.experiments,"embeds_web_lite_mode");return void 0===a?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":0<=a&&a<Exa.length?Exa[a]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
uK=function(a,b,c){c=void 0===c?!1:c;a.ke=iz(a.ke,b.video_id);a.ib=iz(a.ib,b.eventid);a.ib&&(FD=a.ib);for(var d=[],e=g.v(Object.keys(Fxa)),f=e.next();!f.done;f=e.next()){f=Fxa[f.value];var h=b[f];null!=h&&(h!==a.j[f]&&d.push(f),a.j[f]=h)}!c&&0<d.length&&a.Zn&&(d.sort(),g.AD(new g.Yz("Player client parameters changed after startup",d)));a.userAge=hz(a.userAge,b.user_age);a.oi=iz(a.oi,b.user_display_email);a.userDisplayImage=iz(a.userDisplayImage,b.user_display_image);g.RD(a.userDisplayImage)||(a.userDisplayImage=
"");a.userDisplayName=iz(a.userDisplayName,b.user_display_name);a.Ti=iz(a.Ti,b.user_gender);a.csiPageType=iz(a.csiPageType,b.csi_page_type);a.csiServiceName=iz(a.csiServiceName,b.csi_service_name);a.Yk=fz(a.Yk,b.enablecsi);a.pageId=iz(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.Tf=b.living_room_session_po_token.toString())};
AK=function(a,b){return!a.J&&Ty()&&cq(55)&&"3"===a.controlsType&&!b};
g.BK=function(a){a=tK(a.La);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.CK=function(a){return g.rK(a)?"music.youtube.com":g.BK(a)};
DK=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
EK=function(a){return kK(a)&&!g.pK(a)};
g.nK=function(a){return a.K("html5_local_playsinline")?Zy&&!g.Lc(602)&&!("playsInline"in fI()):Zy&&!a.ol||Sy("nintendo wiiu")?!0:!1};
g.rK=function(a){return"music-embed"===a.playerStyle};
g.uJ=function(a){return a.j.c};
g.wK=function(a){return/^TVHTML5/.test(g.uJ(a))?!0:"TV"===a.j.cplatform};
vxa=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===g.uJ(a)};
Cxa=function(a){return"CHROMECAST ULTRA/STEAK"===a.j.cmodel||"CHROMECAST/STEAK"===a.j.cmodel};
g.FK=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
vK=function(a){return/web/i.test(g.uJ(a))};
g.GK=function(a){return"WEB"===g.uJ(a).toUpperCase()};
xK=function(a){return"WEB_KIDS"===g.uJ(a)};
g.pK=function(a){return"WEB_UNPLUGGED"===g.uJ(a)};
HK=function(a){return"TVHTML5_UNPLUGGED"===g.uJ(a)};
g.IK=function(a){return g.pK(a)||"TV_UNPLUGGED_CAST"===g.uJ(a)||HK(a)};
g.qK=function(a){return"WEB_REMIX"===g.uJ(a)};
g.JK=function(a){return"WEB_EMBEDDED_PLAYER"===g.uJ(a)};
g.LK=function(a){return(a.deviceIsAudioOnly||!g.hI||kB||"3"===a.controlsType?!1:g.bz?a.C&&g.Lc(51):!0)||(a.deviceIsAudioOnly||!g.iJ||kB||"3"===a.controlsType?!1:g.bz?a.C&&g.Lc(48):g.Lc(38))||(a.deviceIsAudioOnly||!g.gK||kB||"3"===a.controlsType?!1:g.bz?a.C&&g.Lc(37):g.Lc(27))||!a.deviceIsAudioOnly&&g.KK&&!ooa()&&g.Lc(11)||!a.deviceIsAudioOnly&&g.xA&&g.Lc("604.4")};
Gxa=function(a){if(g.oK(a)&&lK)return!1;if(g.iJ){if(!g.Lc(47)||!g.Lc(52)&&g.Lc(51))return!1}else if(g.xA)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
MK=function(a){return!a.K("html5_disable_media_element_loop_on_tv")||!g.wK(a)};
kK=function(a){return"detailpage"===a.Ga};
g.oK=function(a){return"embedded"===a.Ga};
NK=function(a){return"leanback"===a.Ga};
jK=function(a){return"adunit"===a.Ga||"gvn"===a.playerStyle};
g.iK=function(a){return a.C&&g.oK(a)&&!jK(a)&&!a.J};
OK=function(a){if(!a.userDisplayImage)return"";var b=a.userDisplayImage.split("/");if(5===b.length)return a=b[b.length-1].split("="),a[1]="s20-c",b[b.length-1]=a.join("="),b.join("/");if(8===b.length)return b.splice(7,0,"s20-c"),b.join("/");if(9===b.length)return b[7]+="-s20-c",b.join("/");g.AD(new g.Yz("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.PK=function(a){var b=g.CK(a);Hxa.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
g.QK=function(a,b){b=void 0===b?"":b;if(a.K("enable_tectonic_player_oauth_callback")&&a.lm){var c=new dK,d,e=a.lm();e.signedOut?d="":e.token?d=e.token:e.pendingResult.then(function(f){e.signedOut?c.resolve(""):c.resolve(f.token)},function(f){g.AD(new g.Yz("b189348328_oauth_callback_failed",{error:f}));
c.resolve(b)});
return void 0!==d?Ky(d):new Iy(c)}return Ky(b)};
tK=function(a){var b=g.Pi(a);return(a=Number(g.Oi(4,a))||null)?b+":"+a:b};
RK=function(a){var b=[];if(a){a=g.v(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.v(c.value);c=d.next().value;d=d.next().value;void 0!==d&&(d="boolean"===typeof d?""+ +d:(""+d).replace(/[:,=]/g,"_"),b.push(c+"."+d))}}return b.join(";")};
SK=function(a,b,c){b=void 0===b?{}:b;this.errorCode=a;this.details=b;this.severity=void 0===c?0:c};
TK=function(a){return 1===a||2===a};
UK=function(a,b){b=void 0===b?0:b;if(a instanceof SK)return a;a=a&&a instanceof Error?a:Error(""+a);TK(b)?g.zD(a):g.AD(a);return new SK(1===b?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
VK=function(a){this.j=a};
WK=function(a,b,c){if(c)return Jy();c={};var d=fI();b=g.v(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(d,e.qh().mimeType)){var f=e.j.video.quality;if(!c[f]||c[f].qh().Ee())c[f]=e}a=[];c.auto&&a.push(c.auto);d=g.v(CH);for(b=d.next();!b.done;b=d.next())(b=c[b.value])&&a.push(b);return a.length?Ky(a):Jy()};
Ixa=function(a,b,c,d,e){this.B=a;this.u=b;this.D=c;this.cpn=d;this.I=e;this.C=0;this.j=""};
Jxa=function(a,b){a.B.some(function(c){var d;return(null==(d=c.Ic)?void 0:d.getId())===b});
a.j=b};
XK=function(a,b,c){a.cpn&&(b=g.Ui(b,{cpn:a.cpn}));c&&(b=g.Ui(b,{o8a:c}));return b};
Kxa=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
Lxa=function(a){for(var b=[],c=[],d=g.v(a.u),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.C?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.u=b.concat(c)};
Mxa=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.u=(null==(b=a.audioItag)?void 0:b.split(","))||[];this.iA=a.iA;this.Nd=a.Nd||"";this.Ic=a.Ic;this.audioChannels=a.audioChannels;this.j=""};
Nxa=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?!0:c;d=void 0===d?{}:d;var e={};a=g.v(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||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){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.OH(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new Mxa({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,iA:n?l[n]:void 0,Nd:f.drm_families,Ic:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
YK=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.u=null};
Oxa=function(a,b){if(!(kB||Xy()||Vy()))return null;a=Nxa(b,a.K("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.v(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.v(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.Ic&&(f=h.Ic.getId(),c[f]||(h=new g.eF(f,h.Ic),c[f]=h,b.push(h)))}}return 0<b.length?b:null};
Txa=function(a,b,c,d,e,f,h){if(!(kB||Xy()||Vy()))return Jy();var l={},m=Pxa(c),n=Nxa(c,a.K("html5_filter_fmp4_in_hls"),a.D.D,l);if(!n)return h({noplst:1}),Jy();Qxa(n);c={};var p=(c.fairplay="https://web.archive.org/web/20230505074338/https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var t=[],w=[],z=null,C="";d=d&&d.match(/hls_timedtext_playlist/)?new Mxa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Ic:new g.OH("English","en",!1)}):null;for(var G=g.v(Object.keys(n)),O=G.next();!O.done;O=G.next())if(O=O.value,!a.K("html5_disable_drm_hfr_1080")||
"383"!==O&&"373"!==O){O=g.v(n[O]);for(var N=O.next();!N.done;N=O.next())if(N=N.value,N.width){for(var K=g.v(N.u),W=K.next();!W.done;W=K.next())if(W=W.value,n[W]){N.j=W;break}N.j||(N.j=Rxa(n,N));if(K=n[N.j])if(c.push(N),"fairplay"===N.Nd&&(q=p),W="","PQ"===N.iA?W="smpte2084":"HLG"===N.iA&&(W="arib-std-b67"),W&&(C=W),w.push(Sxa(K,[N],d,f,N.itag,N.width,N.height,N.fps,m,void 0,void 0,q,W)),!z||N.width*N.height*N.fps>z.width*z.height*z.fps)z=N}else t.push(N)}else l[O]="disdrmhfr";w.reduce(function(Z,
Q){return Q.qh().isEncrypted()&&Z},!0)&&(q=p);
e=Math.max(e,0);p=z||{};n=void 0===p.fps?0:p.fps;z=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;G=a.K("html5_native_audio_track_switching");w.push(Sxa(t,c,d,f,"93",z,p,n,m,"auto",e,q,C,G));Object.entries(l).length&&h(l);return WK(a.D,w,AK(a,b))};
Sxa=function(a,b,c,d,e,f,h,l,m,n,p,q,t,w){for(var z=0,C="",G=g.v(a),O=G.next();!O.done;O=G.next())O=O.value,C||(C=O.itag),O.audioChannels&&O.audioChannels>z&&(z=O.audioChannels,C=O.itag);e=new FH(e,"application/x-mpegURL",{audio:new zH(0,z),video:new BH(f,h,l,null,void 0,n,void 0,t),Nd:q,IV:C});a=new Ixa(a,b,c?[c]:[],d,!!w);a.C=p?p:1369843;return new YK(e,a,m)};
Pxa=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN};
Rxa=function(a,b){for(var c=g.v(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.Nd===b.Nd&&!e.audioChannels)return d}return""};
Qxa=function(a){for(var b=new Set,c=g.v(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.v(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.v(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]};
ZK=function(a,b){this.j=a;this.u=b};
Uxa=function(a,b,c,d){var e=[];c=g.v(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.AF(h.url,!0);if(h.s){var l=h.sp,m=bua(decodeURIComponent(h.s));f.set(l,encodeURIComponent(m))}l=g.v(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=NH(h.type,h.quality,h.itag,h.width,h.height);e.push(new ZK(h,f))}}return WK(a.D,e,AK(a,b))};
$K=function(a,b){this.j=a;this.u=b};
Vxa=function(a,b,c){var d=[];c=g.v(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=NH(e.type,"medium","0");d.push(new $K(f,e.url))}return WK(a.D,d,AK(a,b))};
Wxa=function(a,b){var c=[],d=NH(b.type,"auto",b.itag);c.push(new $K(d,b.url));return WK(a.D,c,!1)};
Yxa=function(a){return a&&Xxa[a]?Xxa[a]:null};
Zxa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.pE=UJ(a.ustreamerConfig)||void 0)};
$xa=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.JW=new Zxa(b)};
g.aL=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name||null;this.id=a.id||null;this.j=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null;this.xtags=a.xtags||"";this.captionId=a.captionId||""};
g.cL=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.bL(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.dL=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.bL=function(a){var b=a.languageName||"",c=[b];"asr"===a.kind&&-1===b.indexOf("(")&&c.push(" (Automatic Captions)");a.name&&c.push(" - "+a.name);a.translationLanguage&&c.push(" >> "+a.translationLanguage.languageName);return c.join("")};
dya=function(a,b,c,d){a||(a=b&&aya.hasOwnProperty(b)&&bya.hasOwnProperty(b)?bya[b]+"_"+aya[b]:void 0);b=a;if(!b)return null;a=b.match(cya);if(!a||5!==a.length)return null;if(a=b.match(cya)){var e=Number(a[3]),f=[7,8,10,5,6];a=!(1===Number(a[1])&&8===e)&&0<=f.indexOf(e)}else a=!1;return c||d||a?b:null};
eL=function(a,b){for(var c={},d=g.v(Object.keys(eya)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.RD(f)&&(c[eya[e]]=f)}return c};
fL=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url});
a.sort(function(l,m){return l.width-m.width||l.height-m.height});
for(var c=g.v(Object.keys(fya)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=fya[e];for(var f=g.v(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=gya(h.url);g.RD(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=gya(a.url),g.RD(a)&&(b["maxresdefault.jpg"]=a));return b};
gya=function(a){return a.startsWith("//")?"https:"+a:a};
gL=function(a){return a&&a.baseUrl||""};
hL=function(a){a=g.oy(a);for(var b=g.v(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a};
hya=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.qk=b)};
jya=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.v(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=iya(d.baseUrl);if(!e)return;d=new g.aL({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.dE(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.GK=b.audioTracks||[];a.LS=b.defaultAudioTrackIndex||0;a.HK=b.translationLanguages?g.$l(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.dE(f.languageName)}}):
[];
a.jX=[];if(b.recommendedTranslationTargetIndices)for(c=g.v(b.recommendedTranslationTargetIndices),d=c.next();!d.done;d=c.next())a.jX.push(d.value);a.dF=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
mya=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.S(h,kya);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.S(h,lya))return Object.assign({is_yto_interstitial:!0},my(h))});
d=g.v(d);for(var e=d.next();!e.done;e=d.next())switch(e=e.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:e,Hn:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Hn: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,
Hn:0===f?5:7})}}};
nya=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
oya=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)};
pya=function(a,b){null!=b?(a.Dl=b,a.pd=!0):(a.Dl="",a.pd=!1)};
iL=function(){var a=qya;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=kma.apply(null,[lma.apply(null,g.la(b))].concat(g.la(c)));this.store=nma(a,void 0,b)};
g.jL=function(a,b,c){for(var d=Object.assign({},a),e=g.v(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===h)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.la(h),g.la(l)):l;else if(!Array.isArray(l)&&g.Pa(l)&&!Array.isArray(h)&&g.Pa(h))d[f]=g.jL(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.Yz("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,n8a:h,updateValue:l}),g.zD(b),
a}return d};
kL=function(a){this.j=a;this.pos=0;this.u=-1};
lL=function(a){var b=OF(a.j,a.pos);++a.pos;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=OF(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c};
mL=function(a,b){var c=a.u;for(a.u=-1;a.pos+1<=a.j.totalLength;){0>c&&(c=lL(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.u=c;break}c=-1;switch(e){case 0:lL(a);break;case 1:a.pos+=8;break;case 2:d=lL(a);a.pos+=d;break;case 5:a.pos+=4}}return!1};
nL=function(a,b){if(mL(a,b))return lL(a)};
oL=function(a,b){if(mL(a,b))return!!lL(a)};
pL=function(a,b){if(mL(a,b)){b=lL(a);var c=NF(a.j,a.pos,b);a.pos+=b;return c}};
qL=function(a,b){if(a=pL(a,b))return g.TF(a)};
rL=function(a,b,c){if(a=pL(a,b))return c(new kL(new IF([a])))};
rya=function(a,b,c){for(var d=[],e;e=pL(a,b);)d.push(c(new kL(new IF([e]))));return d.length?d:void 0};
sL=function(a,b){a=a instanceof Uint8Array?new IF([a]):a;return b(new kL(a))};
sya=function(a,b){a=void 0===a?4096:a;this.u=b;this.pos=0;this.B=[];b=void 0;if(this.u)try{var c=this.u.exports.malloc(a);b=new Uint8Array(this.u.exports.memory.buffer,c,a)}catch(d){}b||(b=new Uint8Array(a));this.j=b;this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)};
tL=function(a,b){var c=a.pos+b;if(!(a.j.length>=c)){for(b=2*a.j.length;b<c;)b*=2;a.u?(c=a.u.exports.realloc(a.j.byteOffset,b),a.j=new Uint8Array(a.u.exports.memory.buffer,c,b)):(b=new Uint8Array(b),b.set(a.j.subarray(0,a.pos)),a.j=b);a.view=new DataView(a.j.buffer,a.j.byteOffset,a.j.byteLength)}};
uL=function(a,b){if(268435455<b){tL(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(tL(a,4);127<b;)a.view.setUint8(a.pos,b&127|128),b>>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1};
vL=function(a,b,c){tya?uL(a,8*b+c):uL(a,b<<3|c)};
wL=function(a,b,c){void 0!==c&&(vL(a,b,0),uL(a,c))};
xL=function(a,b,c){void 0!==c&&wL(a,b,c?1:0)};
yL=function(a,b,c){void 0!==c&&(vL(a,b,2),b=c.length,uL(a,b),tL(a,b),a.j.set(c,a.pos),a.pos+=b)};
zL=function(a,b,c){void 0!==c&&(uya(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),tL(a,1.2*c.length),b=VF(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(tL(a,b),b=VF(c,a.j.subarray(a.pos))),a.pos+=b,vya(a))};
uya=function(a,b,c){c=void 0===c?2:c;vL(a,b,2);a.B.push(a.pos);a.B.push(c);a.pos+=c};
vya=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}};
AL=function(a,b,c,d,e){c&&(uya(a,b,void 0===e?3:e),d(a,c),vya(a))};
wya=function(a){a.u&&a.j.buffer!==a.u.exports.memory.buffer&&(a.j=new Uint8Array(a.u.exports.memory.buffer,a.j.byteOffset,a.j.byteLength),a.view=new DataView(a.j.buffer,a.j.byteOffset,a.j.byteLength));return new Uint8Array(a.j.buffer,a.j.byteOffset,a.pos)};
g.BL=function(a,b,c){c=new sya(4096,c);b(c,a);return wya(c)};
g.CL=function(a){var b=new kL(new IF([ag(decodeURIComponent(a))]));a=qL(b,2);b=nL(b,4);var c=xya[b];if("undefined"===typeof c)throw a=new g.Yz("Failed to recognize field number",{name:"EntityKeyHelperError",g7a:b}),g.zD(a),a;return{W2:b,entityType:c,entityId:a}};
g.DL=function(a,b){var c=new sya;yL(c,2,pua(a));a=yya[b];if("undefined"===typeof a)throw b=new g.Yz("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.zD(b),b;wL(c,4,a);wL(c,5,1);b=wya(c);return encodeURIComponent(g.Zf(b))};
EL=function(a,b,c,d){if(void 0===d)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
zya=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.jL(f[c],d,"REPEATED_FIELDS_MERGE_OPTION_APPEND"===e);e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
Aya=function(a,b){a=void 0===a?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=null==(f=e.options)?void 0:f.persistenceOption;if(h&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==h&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==h)return d;if(!e.entityKey)return g.zD(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.zD(new g.Yz("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.Zc(e.payload);
return EL(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var m=g.CL(e).entityType;l=EL(d,m,e)}catch(q){if(q instanceof Error)g.zD(new g.Yz("Failed to deserialize entity key",{entityKey:e,jO:q.message})),l=d;else throw q;}return l}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.zD(new g.Yz("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.Zc(e.payload);var n,p;return zya(d,l,e.entityKey,e.payload[l],null==(n=
e.fieldMask)?void 0:null==(p=n.mergeOptions)?void 0:p.repeatedFieldsMergeOption)}return d},a);
case "REPLACE_ENTITY":var c=b.payload;return EL(a,c.entityType,c.key,c.V2);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 EL(h,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,zya(a,c.entityType,c.key,c.V2,c.i8a);default:return a}};
FL=function(a,b,c){return a[b]?a[b][c]||null:null};
GL=function(a,b){this.type=a||"";this.id=b||""};
g.HL=function(a){return new GL(a.substr(0,2),a.substr(2))};
g.IL=function(a,b){this.u=a;this.author="";this.rB=null;this.playlistLength=0;this.j=this.sessionData=null;this.ea={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=ky(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.ea=eL(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new GL("UU","PLAYER_"+c)).toString();break;default:if(a=
b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.HL(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.JL=function(a,b){this.j=a;this.Fr=this.author="";this.rB=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.vv=this.lengthText="";this.sessionData=null;this.ea={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.Fr=b.Fr||"";if(a=b.endscreen_autoplay_session_data)this.rB=ky(a,"&");this.sB=b.sB;this.isLivePlayback="1"===b.live_playback;this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds="string"===typeof a?Number(a):a;this.lengthText=
b.lengthText||"";this.vv=b.vv||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=ky(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.ea=eL(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
Bya=function(a){var b,c,d=null==(b=a.fd)?void 0:null==(c=b.contents)?void 0:c.twoColumnWatchNextResults,e,f,h,l,m;a=null==(e=a.fd)?void 0:null==(f=e.playerOverlays)?void 0:null==(h=f.playerOverlayRenderer)?void 0:null==(l=h.endScreen)?void 0:null==(m=l.watchNextEndScreenRenderer)?void 0:m.results;if(!a){var n,p;a=null==d?void 0:null==(n=d.endScreen)?void 0:null==(p=n.endScreen)?void 0:p.results}return a};
g.LL=function(a){var b,c,d;a=g.S(null==(b=a.fd)?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,KL);return g.S(null==a?void 0:a.playerBar,Cya)};
Dya=function(a){this.j=a.playback_progress_0s_url;this.B=a.playback_progress_2s_url;this.u=a.playback_progress_10s_url};
Fya=function(a,b){var c=g.La("ytDebugData.callbacks");c||(c={},g.Ka("ytDebugData.callbacks",c));if(g.cy("web_dd_iu")||Eya.includes(a))c[a]=b};
ML=function(a){this.j=new gq(a)};
Gya=function(){if(void 0===NL){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.qq(g.Zz()+"::yt-player"))){NL=new ML(a);break a}NL=void 0}}return NL};
g.OL=function(){var a=Gya();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
g.Hya=function(a){var b=Gya();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
g.PL=function(a){return g.OL()[a]||0};
g.QL=function(a,b){var c=g.OL();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.Hya(c))};
g.RL=function(a){return g.A(function(b){return b.return(g.hB(Iya(),a))})};
TL=function(a,b,c,d,e,f,h,l){var m,n,p,q,t,w;return g.A(function(z){switch(z.j){case 1:return m=g.PL(a),4===m?z.return(4):g.y(z,g.pB(),2);case 2:n=z.u;if(!n)throw g.zA("wiac");if(!l||void 0===h){z.Ka(3);break}return g.y(z,Jya(l,h),4);case 4:h=z.u;case 3:return p=c.lastModified||"0",g.y(z,g.RL(n),5);case 5:return q=z.u,g.ua(z,6),SL++,g.y(z,g.KA(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Wb:!0},function(C){if(void 0!==f&&void 0!==h){var G=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10,
"0");G=g.LA(C.objectStore("media"),h,G)}else G=g.BA.resolve(void 0);var O=Kya(a,b.Vg()),N=Kya(a,!b.Vg()),K={fmts:Lya(d),format:c||{}};O=g.LA(C.objectStore("index"),K,O);var W=-1===d.downloadedEndTime;K=W?C.objectStore("index").get(N):g.BA.resolve(void 0);var Z={fmts:"music",format:{}};C=W&&e&&!b.Vg()?g.LA(C.objectStore("index"),Z,N):g.BA.resolve(void 0);return g.BA.all([C,K,G,O]).then(function(Q){Q=g.v(Q);Q.next();Q=Q.next().value;SL--;var na=g.PL(a);if(4!==na&&W&&e||void 0!==Q&&g.Mya(Q.fmts))na=
1,g.QL(a,na);return na})}),8);
case 8:return z.return(z.u);case 6:t=g.xa(z);SL--;w=g.PL(a);if(4===w)return z.return(w);g.QL(a,4);throw t;}})};
g.Nya=function(a){var b,c;return g.A(function(d){if(1==d.j)return g.y(d,g.pB(),2);if(3!=d.j){b=d.u;if(!b)throw g.zA("ri");return g.y(d,g.RL(b),3)}c=d.u;return d.return(g.KA(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:{}})})}))})};
Qya=function(a,b,c,d,e){var f,h,l;return g.A(function(m){if(1==m.j)return g.y(m,g.pB(),2);if(3!=m.j){f=m.u;if(!f)throw g.zA("rc");return g.y(m,g.RL(f),3)}h=m.u;l=g.KA(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM",Wb:Oya},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)});
return e?m.return(l.then(function(n){if(void 0===n)throw Error("No data from indexDb");return Pya(e,n)}).catch(function(n){throw new g.Yz("Error while reading chunk: "+n.name+", "+n.message);
})):m.return(l)})};
g.Mya=function(a){return a?"music"===a?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1};
Kya=function(a,b){return""+a+"|"+(b?"v":"a")};
Lya=function(a){var b={};return ly((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
Sya=function(a){var b={},c={};a=g.v(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.Rya)?(d=Number(f.pop()),isNaN(d)?c[e]="?":(f=f.join("|"),(e=b[f])?(f=e[e.length-1],d===f.end+1?f.end=d:e.push({start:d,end:d})):b[f]=[{start:d,end:d}])):c[e]="?"}a=g.v(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(h){return h.start+"-"+h.end}).join(",");
return c};
UL=function(a){g.aE.call(this);this.j=null;this.B=new Lla;this.j=null;this.I=new Set;this.crossOrigin=a||""};
Tya=function(a,b,c){for(c=VL(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(WL(d,b))&&(d=g.XL(d,b)))return d;c--}return g.XL(a.levels[0],b)};
Vya=function(a,b,c){c=VL(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=WL(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.I.has(h)||(d.I.add(h),d.B.Oh(f,{lV:f,GV:e}))}Uya(a)};
Uya=function(a){if(!a.j&&!a.B.isEmpty()){var b=a.B.remove();a.j=Wya(a,b)}};
Wya=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.lV].Ze(b.GV);c.onload=function(){var d=b.lV,e=b.GV;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);Uya(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.KE()-1);e=[e,d];a.ma("l",e[0],e[1])};
return c};
g.YL=function(a,b,c,d){this.level=a;this.D=b;this.loaded=new Set;this.level=a;this.D=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.frameCount=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.j=Math.floor(Number(a[5]));this.B=a[6];this.C=a[7];this.videoLength=d};
WL=function(a,b){return Math.floor(b/(a.columns*a.rows))};
g.XL=function(a,b){b>=a.xJ()&&a.gx();var c=WL(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.gx()+1-d*c;if(f<a.columns){var h=f;d=1}else h=a.columns,d=f<d?Math.ceil(f/a.columns):a.rows;return{url:a.Ze(c),column:b,columns:h,row:e,rows:d,KC:a.width*h,zv:a.height*d}};
ZL=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;UL.call(this,c);this.isLive=d;this.J=!!e;this.levels=this.u(a,b);this.C=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
Xya=function(a,b,c){return(a=a.levels[b])?a.LE(c):-1};
VL=function(a,b){var c=a.C.get(b);if(c)return c;c=a.levels.length;for(var d=0;d<c;d++)if(a.levels[d].width>=b)return a.C.set(b,d),d;a.C.set(b,c-1);return c-1};
$L=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.YL.call(this,a,b,c,0);this.u=null;this.I=d?2:0};
aM=function(a,b,c,d){ZL.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].xR(c)};
Yya=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.Ui(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.cM=function(a,b){g.aE.call(this);this.B=a;this.adModule=!1;this.adaptiveFormats="";this.AQ=this.kA=this.adQueryId=this.fA=null;this.bE={start:NaN,end:NaN};this.ariaLabel="";this.cueRanges=this.Nd=null;this.wq=void 0;this.SI=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.La="";this.hQ=this.lA=!1;this.fU=null;this.Gf=this.Zi=this.jo=this.SJ=!1;this.D=null;this.NR=this.Sj=!1;this.Ri=NaN;this.gm=!1;this.kD=0;this.FQ=!1;this.SP=
this.cycToken=null;this.author="";this.zC=0;this.pm=!1;this.yC=null;this.nQ=[];this.Au=this.mQ=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.Gc=this.Ud="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.ob=0;this.ll=this.Pa=this.u=null;this.aJ="";this.loading=!1;this.hd=this.nm=0;this.CQ=this.pipable=this.jp=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.isLiveHeadPlayable=this.isLivePlayback=this.tb=this.isPrivate=this.isListed=
this.MJ=this.RI=this.mutedAutoplay=this.Ul=!1;this.VJ="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.QJ=this.Kc=this.Se=!1;this.latencyClass="UNKNOWN";this.hS=this.ES=this.LJ=this.EQ=this.QI=this.enablePreroll=this.enableServerStitchedDai=this.mf=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.jc=0;this.reloadReason="";this.RJ=this.iT=this.IC=!1;this.keywords={};this.Nb="";this.On=
0;this.zx=!1;this.liveChunkReadahead=NaN;this.fm=null;this.tv=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.jS=this.paygated=!1;this.Ql=[];this.Rk=!1;this.Ga=[];this.sj=null;this.BQ=this.racyCheckOk=!1;this.vX={};this.Gz=0;this.C=null;this.autonavState=1;this.CS=null;this.shortDescription="";this.Za=this.uN=!1;this.Ti=this.Ub=this.startSeconds=0;this.Ax=this.YR=this.jl=bM;this.mA=this.suggestions=null;this.Nv=this.Vv=void 0;this.isExternallyHostedPodcast=!1;this.lm=null;this.GO=
!1;this.expandedSubtitle=this.Uf=this.subtitle=this.title="";this.multiMarkersPlayerBarRenderer=this.ZR=void 0;this.suggestedActions=[];this.Lw=void 0;this.Vd=[];this.Hj=[];this.hlsFormats=this.uf="";this.mx=this.xx=this.Kj=this.rd=this.Ya=this.Tn=this.kx=null;this.ek="vvt";this.Rf=!1;this.TI=null;this.TR="";this.Do=NaN;this.Po=this.Lx=this.ao=this.Dx=this.Cx=this.ol=this.Zn=this.Iy=this.oo=this.py="";this.ql=null;this.zQ=!1;this.V={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";
this.lS=this.kS=NaN;this.nh=this.zm=this.Tf=this.oS=this.mS=!1;this.Vn=!0;this.ea={};this.captionTracks=[];this.GK=[];this.LS=0;this.HK=[];this.jX=[];this.dF=!1;this.aS={};this.qm=new g.eF("und",new g.OH("Default","und",!0));this.TJ=0;this.I=null;this.Qn=[];this.ZI=!1;this.Sf=[];this.Bx=this.le="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.fd=this.YJ=this.bJ=this.playerResponse=this.cS=this.qx=this.wm=this.Kf=this.YI=this.RP=this.xD=null;this.Nw=!1;this.Z=null;this.isInlinePlaybackNoAd=
this.Sk=this.NI=this.useCobaltWidevine=this.DQ=this.Py=!1;this.WI=!0;this.ke=this.Vf=NaN;this.defraggedFromSubfragments=this.Oo=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.sabrContextUpdates=[];this.NC=this.OI=this.Yi=this.dS=!1;this.interstitials=[];this.pd=this.OJ=!1;this.Dl="";this.allowImaMonetization=!1;this.Rn=this.cV="";this.ZJ=[];this.Mc="";this.Wa=this.nS=!1;this.Xi=0;this.bV=this.Yn="";this.cK=this.aK=this.KJ=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=
this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Wn=!1;this.jm=this.Ij=!0;this.errorDetail=this.userGenderAge="";this.jQ=this.lQ=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Hm=this.errorReason=this.errorCode=null;this.Iw=this.nA="";this.tm=!1;this.xq=[];this.td=this.Gb=this.Uc=this.Wg=this.Ge=0;this.fetchType=null;this.IX=!0;this.transitionEndpointAtEndOfStream=void 0;this.kQ=
this.SR=-1;this.hm=this.tf=!1;this.Yk=null;this.Ja="";this.xm=!1;this.watchUrl=null;this.lx=[];this.visibleOnLoadKeys=[];this.yQ=[];this.inlineMetricEnabled=this.Pn=!1;this.embedsRctn=this.embedsRct="";this.IJ=NaN;this.hX=(0,g.GA)();this.viewerLivestreamJoinTime=this.Xn=0;this.tf=this.K("web_new_autonav_countdown");this.hm=this.K("web_new_big_thumbnail_endscreen");Zya(this,b);this.Mw=new mF;g.I(this,this.Mw)};
g.fM=function(a,b,c){b&&b.cpn&&g.AD(new g.Yz("CPN provided in VideoData update",{l8a:b.cpn,Bi:a.clientPlaybackNonce,d4:c}));c?(kz(b),Zya(a,b),dM(a)&&eM(a)):(b=b||{},$ya(a,b),aza(a,b),bza(a,b),a.ma("dataupdated"))};
bza=function(a,b){a.fflags=iz(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.La=SD(c));a.lA=fz(a.lA,b.iv_ads_only);a.hQ=fz(a.hQ,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.e1=c;a.isPharma=fz(a.isPharma,b.is_pharma);a.author=iz(a.author,b.author);a.Ud=iya(b.ttsurl)||a.Ud;a.pm=fz(a.pm,b.cc_asr);a.Gc=iz(a.Gc,b.channel_path);if(c=b.profile_picture)a.profilePicture=iz(a.profilePicture,c);a.videoCountText=iz(a.videoCountText,b.video_count_text);a.autonavState=gz(a.autonavState,b.autonav_state,
cza);a.clientPlaybackNonce=iz(a.clientPlaybackNonce,b.cpn);a.subscribed=fz(a.subscribed,b.subscribed);a.rawViewCount=hz(a.rawViewCount,b.view_count);a.shortViewCount=iz(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=iz(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=iz(a.lengthText||"",b.lengthText);a.vv=iz(a.vv||"",b.vv);a.Fr=iz(a.Fr||"",b.Fr);a.title=iz(a.title,b.title);a.subtitle=iz(a.subtitle,b.subtitle);a.Uf=iz(a.Uf,b.expanded_title);a.expandedSubtitle=iz(a.expandedSubtitle,
b.expanded_subtitle);a.ariaLabel=iz(a.ariaLabel,b.aria_label);a.ypcPreview=iz(a.ypcPreview,b.ypc_preview);a.VI=iz(a.VI,b.ypc_origin);a.Rf=fz(a.Rf,b.ypc_is_premiere_trailer);a.Yn=iz(a.Yn,b.ypc_clickwrap_message);a.paygated=fz(a.paygated,b.paygated);a.zQ=fz(a.zQ,b.requires_purchase);a.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")||(a.showShareButton=!fz(!a.showShareButton,b.ss),a.Ij=fz(a.Ij,b.showwatchlater));a.jm=fz(a.jm,b.shownotifybutton);a.Wn=fz(a.Wn,b.copy_share);if(c=b.el)a.eventLabel=
c;if(c=b.keywords)a.keywords=dza(c.split(","));if(c=b.rvs)a.suggestions=ny(c).map(function(d){return d.playlist||d.list||d.api?new g.IL(a.B,d):new g.JL(a.B,d)});
a.contentCheckOk=fz(a.contentCheckOk,b.cco);a.racyCheckOk=fz(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=fz(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=iz(a.oauthToken,b.oauth_token);a.Nb=iz(a.Nb,b.kpt);a.visitorData=iz(a.visitorData,b.visitor_data);if(c=b.session_data)a.sessionData=ky(c,"&");a.Pw=iz(a.Pw,b.endscreen_ad_tracking_data);a.RR=fz(a.RR,b.wait_for_vast_info_cards_xml);a.rO=fz(a.rO,b.suppress_creator_endscreen);a.RS=fz(a.RS,b.is_trueview_action);a.OR=iz(a.OR,b.tracking_list);
a.nA=iz(a.nA,b.clip);a.Iw=iz(a.Iw,b.clipt);eza(a,b)};
Zya=function(a,b){b=b||{};var c=b.errordetail;null!=c&&(a.errorDetail=c);var d=b.errorcode;null!=d?a.errorCode=d:"fail"==b.status&&(a.errorCode="auth");var e=b.reason;null!=e&&(a.errorReason=e);var f=b.subreason;null!=f&&(a.Hm=f);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.HD(16));a.tb=fz(a.B.tb,b.livemonitor);$ya(a,b);var h=b.raw_player_response;if(h)a.YJ=h;else{var l=b.player_response;l&&(h=JSON.parse(l))}h&&(a.playerResponse=h);if(a.playerResponse){var m=a.playerResponse.annotations;
if(m)for(var n=g.v(m),p=n.next();!p.done;p=n.next()){var q=p.value.playerAnnotationsUrlsRenderer;if(q){q.adsOnly&&(a.lA=!0);q.allowInPlaceSwitch&&(a.hQ=!0);var t=q.loadPolicy;t&&(a.annotationsLoadPolicy=fza[t]);var w=q.invideoUrl;w&&(a.La=SD(w));a.SJ=!0;break}}var z=a.playerResponse.attestation;z&&hya(a,z);var C=a.playerResponse.cotn;C&&(a.cotn=C);var G=a.playerResponse.heartbeatParams;if(G){var O=G.heartbeatToken;O&&(a.drmSessionId=G.drmSessionId||"",a.heartbeatToken=O,a.kS=Number(G.intervalMilliseconds),
a.lS=Number(G.maxRetries),a.mS=!!G.softFailOnError,a.oS=!!G.useInnertubeHeartbeatsForDrm,a.jo=!0);a.heartbeatServerData=G.heartbeatServerData;var N;a.gm=!(null==(N=G.heartbeatAttestationConfig)||!N.requiresAttestation)}var K=a.playerResponse.messages;K&&nya(a,K);var W=a.playerResponse.multicamera;if(W){var Z=W.playerLegacyMulticameraRenderer;if(Z){var Q=Z.metadataList;Q&&(a.bV=Q,a.Sf=ny(Q))}}var na=a.playerResponse.overlay;if(na){var r=na.playerControlsOverlayRenderer;if(r)if(pya(a,r.controlBgHtml),
r.mutedAutoplay){var J=g.S(r.mutedAutoplay,gza);if(J&&J.endScreen){var ha=g.S(J.endScreen,hza);ha&&ha.text&&(a.cV=g.dE(ha.text))}}else a.mutedAutoplay=!1}var X=a.playerResponse.playabilityStatus;if(X){var Da=X.backgroundability;Da&&Da.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var za,Za;if(null==(za=X.offlineability)?0:null==(Za=za.offlineabilityRenderer)?0:Za.offlineable)a.offlineable=!0;var cb=X.contextParams;cb&&(a.contextParams=cb);var wa=X.pictureInPicture;wa&&wa.pictureInPictureRenderer.playableInPip&&
(a.pipable=!0);X.playableInEmbed&&(a.allowEmbed=!0);var $a=X.ypcClickwrap;if($a){var u=$a.playerLegacyDesktopYpcClickwrapRenderer,D=$a.ypcRentalActivationRenderer;if(u)a.Yn=u.durationMessage||"",a.Gf=!0;else if(D){var F=D.durationMessage;a.Yn=F?g.dE(F):"";a.Gf=!0}}var B=X.errorScreen;if(B){if(B.playerLegacyDesktopYpcTrailerRenderer){var M=B.playerLegacyDesktopYpcTrailerRenderer;a.Po=M.trailerVideoId||"";var H=B.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var R=H&&H.ypcTrailerRenderer}else if(B.playerLegacyDesktopYpcOfferRenderer)M=
B.playerLegacyDesktopYpcOfferRenderer;else if(B.ypcTrailerRenderer){R=B.ypcTrailerRenderer;var T=R.fullVideoMessage;a.Zn=T?g.dE(T):"";var ea,ca;a.Po=(null==(ea=g.S(R,iza))?void 0:null==(ca=ea.videoDetails)?void 0:ca.videoId)||""}M&&(a.ao=M.itemTitle||"",M.itemUrl&&(a.Lx=M.itemUrl),M.itemBuyUrl&&(a.Cx=M.itemBuyUrl),a.Dx=M.itemThumbnail||"",a.Iy=M.offerHeadline||"",a.oo=M.offerDescription||"",a.ol=M.offerId||"",a.py=M.offerButtonText||"",a.TI=M.offerButtonFormattedText||null,a.Do=M.overlayDurationMsec||
NaN,a.Zn=M.fullVideoMessage||"",a.Zi=!0);if(R){var ia=g.S(R,iza);if(ia)a.ql={raw_player_response:ia};else{var ra=g.S(R,jza);a.ql=ra?my(ra):null}a.Zi=!0}}}var ya=a.playerResponse.playbackTracking;if(ya){var tb=b,jb=gL(ya.googleRemarketingUrl);jb&&(a.googleRemarketingUrl=jb);var yb=gL(ya.youtubeRemarketingUrl);yb&&(a.youtubeRemarketingUrl=yb);var eb=gL(ya.ptrackingUrl);if(eb){var Ra=hL(eb),kb=Ra.oid;kb&&(a.FV=kb);var Kb=Ra.pltype;Kb&&(a.NV=Kb);var xc=Ra.ptchn;xc&&(a.mV=xc);var vd=Ra.ptk;vd&&(a.nx=encodeURIComponent(vd));
var ub=Ra.m;ub&&(a.Ow=ub)}var ac=gL(ya.ppvRemarketingUrl);ac&&(a.ppvRemarketingUrl=ac);var Eb=gL(ya.qoeUrl);if(Eb){for(var kc=g.oy(Eb),Dc=g.v(Object.keys(kc)),ze=Dc.next();!ze.done;ze=Dc.next()){var ge=ze.value,pc=kc[ge];kc[ge]=Array.isArray(pc)?pc.join(","):pc}a.UR=kc;var Ec=kc.cat;Ec&&(a.Rn=Ec);var wd=kc.live;wd&&(a.VJ=wd);var yc=kc.drm_product;yc&&(a.SI=yc)}var Oc=gL(ya.remarketingUrl);if(Oc){a.remarketingUrl=Oc;var Fd=hL(Oc);Fd.foc_id&&(a.V.focEnabled=!0);var Pc=Fd.data;Pc&&(a.V.rmktEnabled=!0,
Pc.engaged&&(a.V.engaged="1"));a.V.baseUrl=vfa(Oc)+Mi(g.Oi(5,Oc))}var Kd=gL(ya.videostatsPlaybackUrl);if(Kd){var Hb=hL(Kd);a.Bc=Hb;var qe=Hb.adformat;if(qe){tb.adformat=qe;var Lb=a.T(),Ib=dya(qe,a.Bx,Lb.C,Lb.I);Ib&&(a.adFormat=Ib)}var ig=Hb.aqi;ig&&(tb.ad_query_id=ig);var he=Hb.autoplay;he&&(a.Ul="1"==he,a.jp="1"==he);var Qc=Hb.autonav;Qc&&(a.isAutonav="1"==Qc);var Kc=Hb.delay;Kc&&(a.ob=Je(Kc));var xd=Hb.ei;xd&&(a.eventId=xd);"adunit"===Hb.el&&(a.Ul=!0);var Ud=Hb.feature;Ud&&(a.Sn=Ud);var pd=Hb.list;
pd&&(a.playlistId=pd);var nf=Hb.of;nf&&(a.bK=nf);var sc=Hb.osid;sc&&(a.osid=sc);var qd=Hb.referrer;qd&&(a.referrer=qd);var ie=Hb.sdetail;ie&&(a.vx=ie);var Oe=Hb.sourceid;Oe&&(a.B6a=Oe);var $e=Hb.ssrt;$e&&(a.Un="1"==$e);var Kg=Hb.subscribed;Kg&&(a.subscribed="1"==Kg,a.V.subscribed=Kg);var Pb=Hb.uga;Pb&&(a.userGenderAge=Pb);var bj=Hb.upt;bj&&(a.yx=bj);var of=Hb.vm;of&&(a.videoMetadata=of)}var mh=gL(ya.videostatsWatchtimeUrl);if(mh){var Rh=hL(mh).ald;Rh&&(a.Zz=Rh)}if(ya.promotedPlaybackTracking){var Ae=
ya.promotedPlaybackTracking;Ae.startUrls&&(a.sx=Ae.startUrls);Ae.firstQuartileUrls&&(a.OM=Ae.firstQuartileUrls);Ae.secondQuartileUrls&&(a.PM=Ae.secondQuartileUrls);Ae.thirdQuartileUrls&&(a.YM=Ae.thirdQuartileUrls);Ae.completeUrls&&(a.AL=Ae.completeUrls);Ae.engagedViewUrls&&(1<Ae.engagedViewUrls.length&&g.AD(new g.Yz("There are more than one engaged_view_urls.")),a.oh=Ae.engagedViewUrls[0])}}var cj=a.playerResponse.playerCueRanges;cj&&0<cj.length&&(a.cueRanges=cj);a:{var Sh=a.playerResponse.adPlacements;
if(Sh)for(var dj=g.v(Sh),Pe=dj.next();!Pe.done;Pe=dj.next()){var nh=void 0,ui=void 0,Pj=null==(nh=Pe.value.adPlacementRenderer)?void 0:null==(ui=nh.renderer)?void 0:ui.videoAdTrackingRenderer;if(Pj){var ej=Pj;break a}}ej=null}var Qf=ej;ya&&ya.promotedPlaybackTracking&&Qf&&g.AD(new g.Yz("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));Qf&&(a.jS=!0);var Lg=a.playerResponse.playerAds;if(Lg)for(var vi=b,wi=g.v(Lg),fj=wi.next();!fj.done;fj=wi.next()){var Qj=fj.value;if(Qj){var Uc=
Qj.playerLegacyDesktopWatchAdsRenderer;if(Uc){var je=Uc.playerAdParams;if(je){"1"==je.autoplay&&(a.Ul=!0,a.jp=!0);a.kA=je.encodedAdSafetyReason||null;void 0!==je.showContentThumbnail&&(a.Vn=!!je.showContentThumbnail);vi.enabled_engage_types=je.enabledEngageTypes;break}}}}var qc=a.playerResponse.playerConfig;if(qc){var oh=qc.manifestlessWindowedLiveConfig;if(oh){var Rj=Number(oh.minDvrSequence),Mg=Number(oh.maxDvrSequence),xi=Number(oh.minDvrMediaTimeMs),Ng=Number(oh.maxDvrMediaTimeMs),gj=Number(oh.startWalltimeMs);
Rj&&(a.Ge=Rj);xi&&(a.Gb=xi/1E3);Mg&&(a.Wg=Mg);Ng&&(a.Uc=Ng/1E3);gj&&(a.td=gj/1E3)}var af=qc.daiConfig;if(af){if(af.enableDai){a.mf=!0;var yi=af.enableServerStitchedDai;yi&&(a.enableServerStitchedDai=yi);var zi=af.enablePreroll;zi&&(a.enablePreroll=zi)}var Sj;if("DAI_TYPE_SS_DISABLED"===af.daiType||(null==(Sj=af.debugInfo)?0:Sj.isDisabledUnpluggedChannel))a.LJ=!0}var Th=qc.audioConfig;if(Th){var re=Th.loudnessDb;null!=re&&(a.Ri=re);Th.audioMuted&&(a.Sj=!0);Th.muteOnStart&&(a.NR=!0)}var Rf=qc.playbackEndConfig;
if(Rf){var ke=Rf.endSeconds,ph=Rf.limitedPlaybackDurationInSeconds;a.mutedAutoplay&&(ke&&(a.endSeconds=ke),a.T().K("embeds_enable_muted_autoplay")&&ph&&(a.limitedPlaybackDurationInSeconds=ph))}var Sf=qc.fairPlayConfig;if(Sf){var Nk=Sf.certificate;Nk&&(a.Pa=UJ(Nk));var Tj=Number(Sf.keyRotationPeriodMs);0<Tj&&(a.Sw=Tj);var Tf=Number(Sf.keyPrefetchMarginMs);0<Tf&&(a.Rw=Tf)}var Be=qc.playbackStartConfig;if(Be){a.cK=Number(Be.startSeconds);var Zb=Be.liveUtcStartSeconds,Ld=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds;
Zb&&!Ld&&(a.liveUtcStartSeconds=Number(Zb));var Md=Be.startPosition;if(Md){var Og=Md.utcTimeMillis;Og&&!Ld&&(a.liveUtcStartSeconds=.001*Number(Og));var Ai=Md.streamTimeMillis;Ai&&(a.Ti=.001*Number(Ai))}a.progressBarStartPosition=Be.progressBarStartPosition;a.progressBarEndPosition=Be.progressBarEndPosition}else{var Pg=qc.skippableSegmentsConfig;if(Pg){var pf=Pg.introSkipDurationMs;pf&&(a.KJ=Number(pf)/1E3);var qh=Pg.outroSkipDurationMs;qh&&(a.aK=Number(qh)/1E3)}}var Uj=qc.skippableIntroConfig;if(Uj){var Uf=
Number(Uj.startMs),hj=Number(Uj.endMs);isNaN(Uf)||isNaN(hj)||(a.Vf=Uf,a.ke=hj)}var rh=qc.streamSelectionConfig;rh&&(a.hd=Number(rh.maxBitrate));var Ll=qc.vrConfig;Ll&&(a.Py="1"==Ll.partialSpherical);var ij=qc.webDrmConfig;if(ij){ij.skipWidevine&&(a.DQ=!0);var Ml=ij.widevineServiceCert;Ml&&(a.ll=UJ(Ml));ij.useCobaltWidevine&&(a.useCobaltWidevine=!0);ij.startWithNoQualityConstraint&&(a.Sk=!0)}var jj=qc.mediaCommonConfig;if(jj){var Ok=jj.dynamicReadaheadConfig;if(Ok){a.maxReadAheadMediaTimeMs=Ok.maxReadAheadMediaTimeMs||
NaN;a.minReadAheadMediaTimeMs=Ok.minReadAheadMediaTimeMs||NaN;a.readAheadGrowthRateMs=Ok.readAheadGrowthRateMs||NaN;var Nd,le=null==jj?void 0:null==(Nd=jj.mediaUstreamerRequestConfig)?void 0:Nd.videoPlaybackUstreamerConfig;le&&(a.sj=UJ(le));var bf=null==jj?void 0:jj.sabrContextUpdates;bf&&bf.length&&(a.sabrContextUpdates=bf)}}var Ff=qc.inlinePlaybackConfig;Ff&&(a.WI=!!Ff.showAudioControls);var Uh=qc.embeddedPlayerConfig;if(Uh){a.embeddedPlayerConfig=Uh;var Bi=Uh.embeddedPlayerMode;if(Bi){var Nl=a.T();
Nl.Pa=Bi;Nl.B="EMBEDDED_PLAYER_MODE_PFL"===Bi}var mn=Uh.permissions;mn&&(a.allowImaMonetization=!!mn.allowImaMonetization)}var nn=qc.ssapConfig;nn&&(a.dS=nn.ssapPrerollEnabled||!1)}var jg=a.playerResponse.streamingData;if(jg){var kg=jg.adaptiveFormats;if(kg){var Ce=jg.streamingUrlTemplate;if(a.K("enable_streaming_url_template")&&Ce)for(var Qg=g.v(kg),cf=Qg.next();!cf.done;cf=Qg.next()){var Vh=cf.value;!Vh.url&&Vh.distinctParams&&(Vh.url=Ce+"&"+Vh.distinctParams)}}var Vf=jg.formats;if(Vf){var sh=[],
Vj=g.v(Vf);for(cf=Vj.next();!cf.done;cf=Vj.next()){var Ol=cf.value;sh.push(Ol.itag+"/"+Ol.width+"x"+Ol.height)}a.aJ=sh.join(",");sh=[];var on=g.v(Vf);for(cf=on.next();!cf.done;cf=on.next()){var qf=cf.value,dd={itag:qf.itag,type:qf.mimeType,quality:qf.quality},Gf=qf.url;Gf&&(dd.url=Gf);var lg=dF(qf),kj=lg.Qx,Pl=lg.Sz,Ql=lg.s;lg.uU&&(dd.url=kj,dd.sp=Pl,dd.s=Ql);sh.push(g.Ti(dd))}a.uf=sh.join(",")}var th=jg.hlsFormats;if(th){var Pk=qc||null,lj={};if(Pk){var Rl=Pk.audioPairingConfig;if(Rl&&Rl.pairs)for(var Wj=
g.v(Rl.pairs),Xa=Wj.next();!Xa.done;Xa=Wj.next()){var pn=Xa.value,qn=pn.videoItag;lj[qn]||(lj[qn]=[]);lj[qn].push(pn.audioItag)}}for(var bt={},wq=g.v(th),Qk=wq.next();!Qk.done;Qk=wq.next()){var xq=Qk.value;bt[xq.itag]=xq.bitrate}var ct=[],dt=g.v(th);for(Qk=dt.next();!Qk.done;Qk=dt.next()){var Wf=Qk.value,Ci={itag:Wf.itag,type:Wf.mimeType,url:Wf.url,bitrate:Wf.bitrate,width:Wf.width,height:Wf.height,fps:Wf.fps},mj=Wf.audioTrack;if(mj){var Jo=mj.displayName;Jo&&(Ci.name=Jo,Ci.audio_track_id=mj.id,mj.audioIsDefault&&
(Ci.is_default="1"))}if(Wf.drmFamilies){for(var Ko=[],Di=g.v(Wf.drmFamilies),Sl=Di.next();!Sl.done;Sl=Di.next())Ko.push(KI[Sl.value]);Ci.drm_families=Ko.join(",")}var Rk=lj[Wf.itag];if(Rk&&Rk.length){Ci.audio_itag=Rk.join(",");var et=bt[Rk[0]];et&&(Ci.bitrate+=et)}var ft=Bva(Wf);ft&&(Ci.eotf=ft);Wf.audioChannels&&(Ci.audio_channels=Wf.audioChannels);ct.push(g.Ti(Ci))}a.hlsFormats=ct.join(",")}var Sk=jg.licenseInfos;if(Sk&&0<Sk.length){for(var Lo={},yq=g.v(Sk),zq=yq.next();!zq.done;zq=yq.next()){var gt=
zq.value,nj=gt.drmFamily,Tl=gt.url;nj&&Tl&&(Lo[KI[nj]]=Tl)}a.Nd=Lo}var uh=jg.drmParams;uh&&(a.drmParams=uh);var rn=jg.dashManifestUrl;rn&&(a.ib=g.Ui(rn,{cpn:a.clientPlaybackNonce}));var sn=jg.hlsManifestUrl;sn&&(a.hlsvp=sn);var ht=jg.probeUrl;ht&&(a.probeUrl=SD(g.Ui(ht,{cpn:a.clientPlaybackNonce})));var jt=jg.serverAbrStreamingUrl;jt&&(a.wx=new g.AF(jt,!0))}var kt=a.playerResponse.trackingParams;kt&&(a.ya=kt);var Mb=a.playerResponse.videoDetails;if(Mb){var df=b,Wh=Mb.videoId;Wh&&(a.videoId=Wh,df.video_id||
(df.video_id=Wh));var Aw=Mb.channelId;Aw&&(a.V.uid=Aw.substr(2));var lt=Mb.title;lt&&(a.title=lt,df.title||(df.title=lt));var Xj=Mb.lengthSeconds;Xj&&(a.lengthSeconds=Number(Xj),df.length_seconds||(df.length_seconds=Xj));var Mo=Mb.keywords;Mo&&(a.keywords=dza(Mo));var Ul=Mb.channelId;Ul&&(a.bk=Ul,df.ucid||(df.ucid=Ul));var mt=Mb.viewCount;mt&&(a.rawViewCount=Number(mt));var Aq=Mb.author;Aq&&(a.author=Aq,df.author||(df.author=Aq));var Bq=Mb.shortDescription;Bq&&(a.shortDescription=Bq);var nt=Mb.isCrawlable;
nt&&(a.isListed=nt);var Cq=Mb.musicVideoType;Cq&&(a.musicVideoType=Cq);var Dq=Mb.isLive;null!=Dq&&(a.isLivePlayback=Dq);if(Dq||Mb.isUpcoming)a.isPremiere=!Mb.isLiveContent;var ot=Mb.thumbnail;ot&&(a.ea=fL(ot));var Eq=Mb.isExternallyHostedPodcast;Eq&&(a.isExternallyHostedPodcast=Eq);var Fq=Mb.viewerLivestreamJoinPosition;if(null==Fq?0:Fq.utcTimeMillis)a.viewerLivestreamJoinTime=Je(Fq.utcTimeMillis);var pt=qc||null,Vl=b;Mb.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);Mb.isUpcoming&&(a.isUpcoming=
!0);if(Mb.isPostLiveDvr)a.Se=!0;else{var tn=!1;if(a.tb)a.allowLiveDvr=xJ()?!0:$y&&5>gM?!1:!0,a.isLivePlayback=!0;else if(Mb.isLive){Vl.livestream="1";a.allowLiveDvr=Mb.isLiveDvrEnabled?xJ()?!0:$y&&5>gM?!1:!0:!1;a.Aa=27;Mb.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var Gq=Mb.latencyClass;Gq&&(a.latencyClass=kza[Gq]||"UNKNOWN");var un=Mb.liveChunkReadahead;un&&(a.liveChunkReadahead=un);var vh=pt&&pt.livePlayerConfig;if(vh){vh.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);vh.hasSubfragmentedWebm&&
(a.Oo=!0);vh.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var Tk=vh.liveExperimentalContentId;Tk&&(a.liveExperimentalContentId=Number(Tk));var No=vh.isLiveHeadPlayable;a.K("html5_live_head_playable")&&null!=No&&(a.isLiveHeadPlayable=No)}tn=!0}else Mb.isUpcoming&&(tn=!0);tn&&(a.isLivePlayback=!0,Vl.adformat&&"8"!==Vl.adformat.split("_")[1]||a.Ga.push("heartbeat"),a.jo=!0)}var qt=Mb.isPrivate;void 0!==qt&&(a.isPrivate=fz(a.isPrivate,qt))}if(X){var Uk=Mb||null,Oo=!1,Yj=X.errorScreen;Oo=
Yj&&(Yj.playerLegacyDesktopYpcOfferRenderer||Yj.playerLegacyDesktopYpcTrailerRenderer||Yj.ypcTrailerRenderer)?!0:Uk&&Uk.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(X.status);if(!Oo){a.errorCode=Yxa(X.errorCode)||"auth";var Po=Yj&&Yj.playerErrorMessageRenderer;if(Po){a.playerErrorMessageRenderer=Po;var rt=Po.reason;rt&&(a.errorReason=g.dE(rt));var Hq=Po.subreason;Hq&&(a.Hm=g.dE(Hq),a.jx=Hq)}else a.errorReason=X.reason||null;var Iq=X.status;if("LOGIN_REQUIRED"===Iq)a.errorDetail=
"1";else if("CONTENT_CHECK_REQUIRED"===Iq)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===Iq){var Na=X.errorScreen,PH=Na&&Na.playerKavRenderer;a.errorDetail=PH&&PH.kavUrl?"4":"3"}else a.errorDetail=X.isBlockedInRestrictedMode?"5":"0"}}var Ei=a.playerResponse.interstitialPods;Ei&&mya(a,Ei);a.La&&a.eventId&&(a.La=qy(a.La,{ei:a.eventId}));var vn=a.playerResponse.captions;vn&&vn.playerCaptionsTracklistRenderer&&jya(a,vn.playerCaptionsTracklistRenderer);a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&
null!=a.clipConfig.startTimeMs&&(a.cK=.001*Number(a.clipConfig.startTimeMs));a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&oya(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}aza(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var Qo=b.hlsdvr;null!=Qo&&(a.allowLiveDvr="1"==Qo?xJ()?!0:$y&&5>gM?!1:!0:!1);a.adQueryId=b.ad_query_id||null;a.kA||(a.kA=b.encoded_ad_safety_reason||
null);a.AQ=b.agcid||null;a.xD=b.ad_id||null;a.RP=b.ad_sys||null;a.YI=b.encoded_ad_playback_context||null;a.Sj=fz(a.Sj,b.infringe||b.muted);a.QR=b.authkey;a.authUser=b.authuser;a.mutedAutoplay=fz(a.mutedAutoplay,b&&b.playmuted)&&a.K("embeds_enable_muted_autoplay");var Cw=b.length_seconds;Cw&&(a.lengthSeconds="string"===typeof Cw?Je(Cw):Cw);var QH=!a.isAd()&&!a.Rk&&g.mz(g.zK(a.B));if(QH){var Ro=a.lengthSeconds;switch(g.zK(a.B)){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":30<Ro?a.endSeconds=
30:30>Ro&&10<Ro&&(a.endSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":a.endSeconds=.2*Ro}}else a.endSeconds=hz(a.endSeconds,a.aK||b.end||b.endSeconds);a.ya=iz(a.ya,b.itct);a.MJ=fz(a.MJ,b.noiba);a.QJ=fz(a.QJ,b.is_live_destination);a.isLivePlayback=fz(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.isLivePlayback;b.isUpcoming&&(a.isUpcoming=fz(a.isUpcoming,b.isUpcoming));a.Se=fz(a.Se,b.post_live_playback);a.isMdxPlayback=fz(a.isMdxPlayback,
b.mdx);var tt=b.mdx_control_mode;tt&&(a.mdxControlMode="number"===typeof tt?tt:Je(tt));a.isInlinePlaybackNoAd=fz(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.jc=hz(a.jc,b.reload_count);a.reloadReason=iz(a.reloadReason,b.reload_reason);a.Vn=fz(a.Vn,b.show_content_thumbnail);a.RJ=fz(a.RJ,b.utpsa);a.GO=fz(a.GO,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.SP=b.tkn||null;var UA=eL(b);0<Object.keys(UA).length&&(a.ea=UA);a.oa=iz(a.oa,b.vvt);a.mdxEnvironment=iz(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.o1=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=iz(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?hz(0,b.index):hz(a.playlistIndex,b.index));a.aZ=b.pyv_view_beacon_url;a.oQ=b.pyv_quartile25_beacon_url;a.pQ=b.pyv_quartile50_beacon_url;a.qQ=b.pyv_quartile75_beacon_url;a.cZ=
b.pyv_quartile100_beacon_url;var RH=b.remarketing_url;RH&&(a.remarketingUrl=RH);var SH=b.ppv_remarketing_url;SH&&(a.ppvRemarketingUrl=SH);var VA=b.session_data;!a.rQ&&VA&&(a.rQ=ky(VA,"&").feature);a.isFling=1==hz(a.isFling?1:0,b.is_fling);a.vnd=hz(a.vnd,b.vnd);a.forceAdsUrl=iz(a.forceAdsUrl,b.force_ads_url);a.Ji=iz(a.Ji,b.ctrl);a.mj=iz(a.mj,b.ytr);a.Jp=b.ytrcc;a.tQ=b.ytrexp;a.fN=b.ytrext;a.le=iz(a.le,b.adformat);a.Bx=iz(a.Bx,b.attrib);a.slotPosition=hz(a.slotPosition,b.slot_pos);a.breakType=b.break_type;
a.Un=fz(a.Un,b.ssrt);a.videoId=kz(b)||a.videoId;a.J=iz(a.J,b.vss_credentials_token);a.ek=iz(a.ek,b.vss_credentials_token_type);a.Yi=fz(a.Yi,b.audio_only);a.OI=fz(a.OI,b.aac_high);a.NC=fz(a.NC,b.prefer_low_quality_audio);a.Rn=iz(a.Rn,b.qoe_cat);a.tm=fz(a.tm,b.download_media);a.Wa=fz(a.Wa,b.prefer_gapless);a:{var WA=a.playerResponse;if(WA&&WA.adPlacements)for(var TH=g.v(WA.adPlacements),XA=TH.next();!XA.done;XA=TH.next()){var Dw=XA.value.adPlacementRenderer;if(null!=Dw&&"AD_PLACEMENT_KIND_START"===
(Dw.config&&Dw.config.adPlacementConfig&&Dw.config.adPlacementConfig.kind)){var UH=!0;break a}}UH=!1}UH&&(a.adModule=!0,a.Ga.push("ad"));var YA=b.adaptive_fmts;YA&&(a.adaptiveFormats=YA,a.xa("adpfmts",{},!0));var VH=b.allow_embed;VH&&(a.allowEmbed="1"==VH);var WH=b.backgroundable;WH&&(a.backgroundable="1"==WH);var XH=b.autonav;XH&&(a.isAutonav="1"==XH);var ZA=b.autoplay;ZA&&(a.jp="1"==ZA,a.Ul="1"==ZA);var YH=b.iv_load_policy;YH&&(a.annotationsLoadPolicy=gz(a.annotationsLoadPolicy,YH,sK));var ZH=b.cc_lang_pref;
ZH&&(a.captionsLanguagePreference=iz(ZH,a.captionsLanguagePreference));var $A=b.cc_load_policy;$A&&(a.yC=gz(a.yC,$A,sK));var aB;a.deviceCaptionsOn=null!=(aB=b.device_captions_on)?aB:void 0;var $H;a.bS=null!=($H=b.device_captions_lang_pref)?$H:"";var aI;a.nQ=null!=(aI=b.viewer_selected_caption_langs)?aI:[];var bI=b.cached_load;bI&&(a.Au=fz(a.Au,bI));"0"==b.dash&&(a.mQ=!0);var Ha=b.dashmpd;Ha&&(a.ib=g.Ui(Ha,{cpn:a.clientPlaybackNonce}));var xAa=b.delay;xAa&&(a.ob=Je(xAa));var yAa=a.aK||b.end;void 0!=
yAa&&(a.clipEnd=hz(a.clipEnd,yAa));var zAa=b.fmt_list;zAa&&(a.aJ=zAa);b.heartbeat_preroll&&a.Ga.push("heartbeat");a.nm=-Math.floor(10*Math.random());a.tv=-Math.floor(40*Math.random());var AAa=b.is_listed;AAa&&(a.isListed=fz(a.isListed,AAa));var BAa=b.is_private;BAa&&(a.isPrivate=fz(a.isPrivate,BAa));var CAa=b.is_dni;CAa&&(a.pd=fz(a.pd,CAa));var DAa=b.dni_color;DAa&&(a.Dl=iz(a.Dl,DAa));var EAa=b.pipable;EAa&&(a.pipable=fz(a.pipable,EAa));a.CQ=a.pipable&&a.B.wq;a.uN=a.CQ&&!a.B.showMiniplayerButton;
var FAa=b.paid_content_overlay_duration_ms;FAa&&(a.paidContentOverlayDurationMs=Je(FAa));var GAa=b.paid_content_overlay_text;GAa&&(a.paidContentOverlayText=GAa);var HAa=b.url_encoded_fmt_stream_map;HAa&&(a.uf=HAa);var IAa=b.hls_formats;IAa&&(a.hlsFormats=IAa);var JAa=b.hlsvp;JAa&&(a.hlsvp=JAa);var DS=b.live_start_walltime;DS&&(a.XJ="number"===typeof DS?DS:Je(DS));var ES=b.live_manifest_duration;ES&&(a.fm="number"===typeof ES?ES:Je(ES));var KAa=b.player_params;KAa&&(a.playerParams=KAa);var LAa=b.partnerid;
LAa&&(a.Aa=hz(a.Aa,LAa));var MAa=b.probe_url;MAa&&(a.probeUrl=SD(g.Ui(MAa,{cpn:a.clientPlaybackNonce})));var v9=b.pyv_billable_url;v9&&Lsa(v9)&&(a.oh=v9);var w9=b.pyv_conv_url;w9&&Lsa(w9)&&(a.bZ=w9);eza(a,b);QH?(a.startSeconds=0,a.Ub=0):0<a.startSeconds||(a.startSeconds=hz(a.startSeconds,a.cK||a.KJ||b.start||b.startSeconds),a.Ub=a.startSeconds);if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var NAa=b.live_utc_start;if(null!=NAa)a.liveUtcStartSeconds=Number(NAa);else{var x9=a.startSeconds;x9&&
isFinite(x9)&&1E9<x9&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var OAa=b.utc_start_millis;OAa&&(a.liveUtcStartSeconds=.001*Number(OAa))}var PAa=b.stream_time_start_millis;PAa&&(a.Ti=.001*Number(PAa));var QAa=a.KJ||b.start;void 0==QAa||"1"==b.resume||a.isLivePlayback||(a.clipStart=hz(a.clipStart,QAa));var RAa=b.url_encoded_third_party_media;RAa&&(a.lm=ny(RAa));var y9=b.ypc_offer_button_formatted_text;if(y9){var SAa=JSON.parse(y9);a.TI=null!=SAa?
SAa:null;a.TR=y9}var TAa=b.ypc_offer_button_text;TAa&&(a.py=TAa);var UAa=b.ypc_offer_description;UAa&&(a.oo=UAa);var VAa=b.ypc_offer_headline;VAa&&(a.Iy=VAa);var WAa=b.ypc_full_video_message;WAa&&(a.Zn=WAa);var XAa=b.ypc_offer_id;XAa&&(a.ol=XAa);var YAa=b.ypc_buy_url;YAa&&(a.Cx=YAa);var ZAa=b.ypc_item_thumbnail;ZAa&&(a.Dx=ZAa);var $Aa=b.ypc_item_title;$Aa&&(a.ao=$Aa);var aBa=b.ypc_item_url;aBa&&(a.Lx=aBa);var bBa=b.ypc_vid;bBa&&(a.Po=bBa);b.ypc_overlay_timeout&&(a.Do=Number(b.ypc_overlay_timeout));
var cBa=b.ypc_trailer_player_vars;cBa&&(a.ql=my(cBa));var dBa=b.ypc_original_itct;dBa&&(a.E1=dBa);a.bk=iz(a.bk,b.ucid);b.baseUrl&&(a.V.baseUrl=b.baseUrl);b.uid&&(a.V.uid=b.uid);b.oeid&&(a.V.oeid=b.oeid);b.ieid&&(a.V.ieid=b.ieid);b.ppe&&(a.V.ppe=b.ppe);b.engaged&&(a.V.engaged=b.engaged);b.subscribed&&(a.V.subscribed=b.subscribed);a.V.focEnabled=fz(a.V.focEnabled,b.focEnabled);a.V.rmktEnabled=fz(a.V.rmktEnabled,b.rmktEnabled);a.xx=b.storyboard_spec||null;a.mx=b.live_storyboard_spec||null;a.fU=b.iv_endscreen_url||
null;a.SJ=fz(a.SJ,b.iv3_module);a.jo=fz(a.jo,b.ypc_license_checker_module);a.Zi=fz(a.Zi,b.ypc_module);a.Gf=fz(a.Gf,b.ypc_clickwrap_module);a.Zi&&a.Ga.push("ypc");a.Gf&&a.Ga.push("ypc_clickwrap");a.vX={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};bza(a,b);var eBa=b.cotn;eBa&&(a.cotn=eBa);if(lza(a))hM(a)&&(a.isLivePlayback&&a.ib&&(a.Tf=!0),a.Pa&&(a.zm=!0));else if(mza(a))a.Tf=!0;else{var hBa,iBa,jBa=(null==(hBa=a.playerResponse)?void 0:null==(iBa=hBa.streamingData)?void 0:iBa.adaptiveFormats)||[];if(0<jBa.length)var cI=nza(a,jBa);else{var lBa=a.adaptiveFormats;if(lBa&&oza(a)){iM(a,"html5_enable_cobalt_experimental_vp9_decoder")&&
(UI=!0);var bB=jM(lBa),z9=a.Nd,nBa=a.lengthSeconds,T9a=a.isLivePlayback,dI=a.Se,cB=a.B,A9=a.videoId,U9a=Zva(bB);if(T9a||dI){var Fi=new II("",null==cB?void 0:cB.experiments,!0,A9);Fi.Zc=!0;Fi.isManifestless=!0;Fi.u=!dI;Fi.isLive=!dI;Fi.Se=dI;for(var oBa=g.v(bB),B9=oBa.next();!B9.done;B9=oBa.next()){var dB=B9.value,pBa=MI(dB,z9),Ew=NI(dB.url,dB.sp,dB.s),qBa=Ew.get("id");qBa&&qBa.includes("%7E")&&(Fi.oa=!0);var V9a=Number(dB.target_duration_sec)||5,W9a=Number(dB.max_dvr_duration_sec)||14400,rBa=Number(Ew.get("mindsq")||
Ew.get("min_sq")||"0"),sBa=Number(Ew.get("maxdsq")||Ew.get("max_sq")||"0")||Infinity;Fi.Ge=Fi.Ge||rBa;Fi.Wg=Fi.Wg||sBa;var X9a=!MH(pBa.mimeType);Ew&&HI(Fi,new nH(Ew,pBa,{Xj:V9a,Dm:X9a,Eo:W9a,Ge:rBa,Wg:sBa,bz:300,Se:dI}))}Fi.B=!!Fi.Ge&&!!Fi.Wg&&isFinite(Fi.Wg);var tBa=Fi}else{if("FORMAT_STREAM_TYPE_OTF"===U9a){var HS=nBa;HS=void 0===HS?0:HS;var eB=new II("",null==cB?void 0:cB.experiments,!1,A9);eB.duration=HS||0;for(var uBa=g.v(bB),C9=uBa.next();!C9.done;C9=uBa.next()){var fB=C9.value,D9=MI(fB,z9,
eB.duration),E9=NI(fB.url,fB.sp,fB.s);if(E9)if("FORMAT_STREAM_TYPE_OTF"===D9.streamType)HI(eB,new oH(E9,D9,"sq/0"));else{var Y9a=RG(fB.init),Z9a=RG(fB.index);HI(eB,new yH(E9,D9,Y9a,Z9a))}}eB.isOtf=!0;var vBa=eB}else{var IS=nBa;IS=void 0===IS?0:IS;var JS=new II("",null==cB?void 0:cB.experiments,!1,A9);JS.duration=IS||0;for(var wBa=g.v(bB),F9=wBa.next();!F9.done;F9=wBa.next()){var gB=F9.value,$9a=MI(gB,z9,JS.duration),a$a=RG(gB.init),b$a=RG(gB.index),xBa=NI(gB.url,gB.sp,gB.s);xBa&&HI(JS,new yH(xBa,
$9a,a$a,b$a))}vBa=JS}tBa=vBa}var c$a=tBa;if(0<bB.length){var vt=bB[0];if("hangouts-meet"===a.T().playerStyle&&vt.url&&g.jJ(a.B.experiments,"html5_url_signature_expiry_time_hours")){var d$a=g.oy(vt.url);a.Xn=a.Xn||Number(d$a.expire)}if(vt.url&&vt.sp&&vt.s){var e$a=NI(vt.url,vt.sp,vt.s),f$a=pza(a,e$a);isFinite(f$a)&&(a.Kc=!0)}}var g$a$=a.isLivePlayback&&!a.Se&&!a.Kc&&!a.isPremiere;a.K("html5_live_head_playable")&&!kM(a)&&g$a$&&a.xa("missingLiveHeadPlayable",{});cI=c$a}else cI=null;a.xa("pafmts",{isManifestFilled:!!cI})}if(cI){lM(a,
cI);var zBa=!0}else zBa=!1;zBa?a.enableServerStitchedDai=a.enableServerStitchedDai&&mM(a):a.ib&&(a.Tf=!0)}var H9=b.adpings;H9&&(a.fA=H9?my(H9):null);var ABa=b.feature;ABa&&(a.Sn=ABa);var BBa=b.referrer;BBa&&(a.referrer=BBa);a.clientScreenNonce=iz(a.clientScreenNonce,b.csn);a.Gz=hz(a.Gz,b.root_ve_type);a.On=hz(a.On,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.zx=fz(a.zx,b.upg_content_filter_mode);var CBa=b.unplugged_location_info;CBa&&(a.Z=CBa);var DBa=b.unplugged_partner_opt_out;
DBa&&(a.tD=iz("",DBa));a.Nw=fz(a.Nw,b.disable_watch_next);a.ym=iz(a.ym,b.internal_ip_override);a.OJ=!!b.is_yto_interstitial;(a.interstitials.length||a.OJ)&&a.Ga.push("yto");var EBa=b.Ql;EBa&&(a.Ql=EBa);b.jI&&(a.jI=b.jI);var FBa;a.Ja=null!=(FBa=b.csi_timer)?FBa:"";a.xm=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);var KS=b.watch_endpoint;a.K("html5_attach_watch_endpoint_ustreamer_config")&&KS&&$xa(a,KS);var GBa,HBa,IBa=null==KS?void 0:null==(GBa=KS.loggingContext)?void 0:null==(HBa=GBa.qoeLoggingContext)?
void 0:HBa.serializedContextData;a.K("html5_add_qclc_to_qoe_ping")&&IBa&&(a.D1=IBa);g.iK(a.B)&&a.B.embedsEnableRcat&&(a.embedsRct=iz(a.embedsRct,b.rct),a.embedsRctn=iz(a.embedsRctn,b.rctn));a.Pn=a.Pn||!!b.pause_at_start;b.default_active_source_video_id&&(a.defaultActiveSourceVideoId=b.default_active_source_video_id)};
aza=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.fd=c;var e,f=null==(e=a.fd.contents)?void 0:e.twoColumnWatchNextResults;if(!a.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){var h;a.Y0=!!(null==f?0:null==(h=f.autoplay)?0:h.autoplay)}var l=a.fd.playerOverlays;if(l){var m=l.playerOverlayRenderer;if(m){var n=m.autonavToggle;n&&(a.autoplaySwitchButtonRenderer=g.S(n,qza),a.K("web_player_autonav_use_server_provided_state")&&
nM(a)&&(a.autonavState=a.autoplaySwitchButtonRenderer.enabled?2:1));var p=m.videoDetails;if(p){var q=p.embeddedPlayerOverlayVideoDetailsRenderer;var t=p.playerOverlayVideoDetailsRenderer;t&&(t.title&&(b.title=g.dE(t.title)),t.subtitle&&(b.subtitle=g.dE(t.subtitle)))}if(!a.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){var w,z=null==(w=g.S(m.suggestedActionsRenderer,rza))?void 0:w.suggestedActions;if(z)for(var C=g.v(z),G=C.next();!G.done;G=C.next()){var O=g.S(G.value,sza);O&&
g.S(O.trigger,oM)&&a.suggestedActions.push(O)}}if(!a.K("embeds_web_enable_video_data_refactoring_offline_and_progress_bar")){var N=g.S(m.decoratedPlayerBarRenderer,KL);if(N){a.multiMarkersPlayerBarRenderer=g.S(N.playerBar,Cya);var K;a.ZR=null==(K=g.S(N.playerBar,tza))?void 0:K.chapters;a.s1=g.S(N.playerBarActionButton,g.pM)}}!a.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")&&g.oK(a.B)&&(a.Ij=!!m.addToMenu);uza(a,m.shareButton);if(!a.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){var W=
m.productsInVideoOverlayRenderer;W&&(a.shoppingOverlayRenderer=g.S(W,vza))}a.K("progress_bar_start_end_null_check_killswitch")?(a.progressBarStartPosition=m.startPosition,a.progressBarEndPosition=m.endPosition):m.startPosition&&m.endPosition&&(a.progressBarStartPosition=m.startPosition,a.progressBarEndPosition=m.endPosition);var Z=m.gatedActionsOverlayRenderer;Z&&(a.W0=g.S(Z,wza));var Q,na,r,J=g.S(null==(Q=a.fd)?void 0:null==(na=Q.playerOverlays)?void 0:null==(r=na.playerOverlayRenderer)?void 0:r.infoPanel,
xza);if(J){a.IJ=Number(null==J?void 0:J.durationMs)||NaN;if(null==J?0:J.infoPanelOverviewViewModel)a.Wd=null==J?void 0:J.infoPanelOverviewViewModel;if(null==J?0:J.infoPanelDetailsViewModel)a.dl=null==J?void 0:J.infoPanelDetailsViewModel}a.showSeekingControls=!!m.showSeekingControls}}if(!a.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")&&f){var ha=f.desktopOverlay&&g.S(f.desktopOverlay,qM);ha&&(ha.suppressShareButton&&(a.showShareButton=!1),ha.suppressWatchLaterButton&&(a.Ij=
!1))}q&&yza(a,b,q);var X=hz(0,b.autoplay_count),Da=a.fd,za,Za=null==(za=Da.contents)?void 0:za.twoColumnWatchNextResults,cb,wa,$a,u=null==(cb=Da.playerOverlays)?void 0:null==(wa=cb.playerOverlayRenderer)?void 0:null==($a=wa.autoplay)?void 0:$a.playerOverlayAutoplayRenderer,D=Bya(a),F,B=null==(F=Da.contents)?void 0:F.singleColumnWatchNextResults;if(B){var M;if((null==(M=B.autoplay)?0:M.autoplay)&&!B.playlist){var H=B.autoplay.autoplay.sets,R={},T=new g.JL(a.T()),ea=null,ca;if(H){for(var ia=g.v(H),
ra=ia.next();!ra.done;ra=ia.next()){var ya=ra.value.autoplayVideoRenderer;if(ya&&ya.compactVideoRenderer){ea=ya.compactVideoRenderer;break}}if(ca=H[0].autoplayVideo){var tb=ca.clickTrackingParams;tb&&(R.itct=tb);R.autonav="1";R.playnext=String(X)}}else R.feature="related-auto";var jb=g.S(ca,g.rM);if(ea){T.videoId=ea.videoId;var yb=ea.shortBylineText;yb&&(T.author=g.dE(yb));var eb=ea.title;eb&&(T.title=g.dE(eb))}else null!=jb&&jb.videoId&&(T.videoId=jb.videoId);T.rB=R;a.suggestions=[];a.mA=T}}if(D){for(var Ra=
[],kb=g.v(D),Kb=kb.next();!Kb.done;Kb=kb.next()){var xc=Kb.value,vd=void 0,ub=null;if(xc.endScreenVideoRenderer){var ac=xc.endScreenVideoRenderer,Eb=ac.title;ub=new g.JL(a.T());ub.videoId=ac.videoId;ub.lengthSeconds=ac.lengthInSeconds||0;var kc=ac.publishedTimeText;kc&&(ub.publishedTimeText=g.dE(kc));var Dc=ac.shortBylineText;Dc&&(ub.author=g.dE(Dc));var ze=ac.shortViewCountText;ze&&(ub.shortViewCount=g.dE(ze));if(Eb){ub.title=g.dE(Eb);var ge=Eb.accessibility;if(ge){var pc=ge.accessibilityData;pc&&
pc.label&&(ub.ariaLabel=pc.label)}}var Ec=ac.navigationEndpoint;if(Ec){vd=Ec.clickTrackingParams;var wd=g.S(Ec,g.rM),yc=g.S(Ec,g.sM);wd?ub.sB=wd:null!=yc&&(ub.watchUrl=yc.url)}var Oc=ac.thumbnailOverlays;if(Oc)for(var Fd=g.v(Oc),Pc=Fd.next();!Pc.done;Pc=Fd.next()){var Kd=Pc.value.thumbnailOverlayTimeStatusRenderer;if(Kd)if("LIVE"===Kd.style){ub.isLivePlayback=!0;break}else if("UPCOMING"===Kd.style){ub.isUpcoming=!0;break}}ub.ea=fL(ac.thumbnail)}else if(xc.endScreenPlaylistRenderer){var Hb=xc.endScreenPlaylistRenderer,
qe=Hb.navigationEndpoint;if(!qe)continue;var Lb=g.S(qe,g.rM);if(!Lb)continue;var Ib=Lb.videoId;ub=new g.IL(a.T());ub.playlistId=Hb.playlistId;ub.playlistLength=Number(Hb.videoCount)||0;ub.j=Ib||null;ub.videoId=Ib;var ig=Hb.title;ig&&(ub.title=g.dE(ig));var he=Hb.shortBylineText;he&&(ub.author=g.dE(he));vd=qe.clickTrackingParams;ub.ea=fL(Hb.thumbnail)}ub&&(vd&&(ub.sessionData={itct:vd}),Ra.push(ub))}a.suggestions=Ra}if(u){a.IX=!!u.preferImmediateRedirect;a.tf=a.tf||!!u.webShowNewAutonavCountdown;a.hm=
a.hm||!!u.webShowBigThumbnailEndscreen;if(a.tf||a.hm){var Qc=new g.JL(a.T());Qc.videoId=u.videoId;var Kc=u.videoTitle;if(Kc){Qc.title=g.dE(Kc);var xd=Kc.accessibility;if(xd){var Ud=xd.accessibilityData;Ud&&Ud.label&&(Qc.ariaLabel=Ud.label)}}var pd=u.byline;pd&&(Qc.author=g.dE(pd));var nf=u.publishedTimeText;nf&&(Qc.publishedTimeText=g.dE(nf));var sc=u.shortViewCountText;sc&&(Qc.shortViewCount=g.dE(sc));var qd=u.thumbnailOverlays;if(qd)for(var ie=g.v(qd),Oe=ie.next();!Oe.done;Oe=ie.next()){var $e=
Oe.value.thumbnailOverlayTimeStatusRenderer;if($e)if("LIVE"===$e.style){Qc.isLivePlayback=!0;break}else if("UPCOMING"===$e.style){Qc.isUpcoming=!0;break}else if("DEFAULT"===$e.style&&$e.text){Qc.lengthText=g.dE($e.text);var Kg=$e.text.accessibility;if(Kg){var Pb=Kg.accessibilityData;Pb&&Pb.label&&(Qc.vv=Pb.label||"")}break}}Qc.ea=fL(u.background);var bj=u.nextButton;if(bj){var of=bj.buttonRenderer;if(of){var mh=of.navigationEndpoint;if(mh){var Rh=g.S(mh,g.rM);Rh&&(Qc.sB=Rh)}}}if(u.topBadges){var Ae=
u.topBadges[0];if(Ae){var cj=g.S(Ae,zza);cj&&"BADGE_STYLE_TYPE_PREMIUM"===cj.style&&(Qc.jI=!0)}}var Sh=u.alternativeTitle;Sh&&(Qc.Fr=g.dE(Sh));var dj=Za||null,Pe={autonav:"1",playnext:String(X)};Qc.playlistId&&(Pe.autoplay="1");if(dj){var nh,ui,Pj,ej,Qf=null==(nh=dj.autoplay)?void 0:null==(ui=nh.autoplay)?void 0:null==(Pj=ui.sets)?void 0:null==(ej=Pj[0])?void 0:ej.autoplayVideo;if(Qf){var Lg=Qf.clickTrackingParams;Lg&&(Pe.itct=Lg);var vi=g.S(Qf,g.rM);vi&&(Qc.CS=vi)}}else if(u){var wi,fj,Qj,Uc=null==
(wi=u.nextButton)?void 0:null==(fj=wi.buttonRenderer)?void 0:null==(Qj=fj.navigationEndpoint)?void 0:Qj.clickTrackingParams;Uc&&(Pe.itct=Uc)}Pe.itct||(Pe.feature="related-auto");Qc.rB=Pe;a.suggestions||(a.suggestions=[]);a.mA=Qc}null!=u.countDownSecs&&(a.SR=1E3*u.countDownSecs);null!=u.countDownSecsForFullscreen&&(a.kQ=0<=u.countDownSecsForFullscreen?1E3*u.countDownSecsForFullscreen:-1);var je;a.f1=null==(je=u.cancelButton)?void 0:je.buttonRenderer;a.K("web_autonav_color_transition")&&u.watchToWatchTransitionRenderer&&
(a.watchToWatchTransitionRenderer=g.S(u.watchToWatchTransitionRenderer,Aza))}var qc=Bya(a);if(qc){var oh,Rj,Mg,xi=null==qc?void 0:null==(oh=qc[0])?void 0:null==(Rj=oh.endScreenVideoRenderer)?void 0:null==(Mg=Rj.navigationEndpoint)?void 0:Mg.clickTrackingParams,Ng=g.tM(a);xi&&Ng&&(Ng.sessionData={itct:xi})}a.fd.currentVideoThumbnail&&(a.ea=fL(a.fd.currentVideoThumbnail));var gj,af,yi,zi,Sj,Th=null==(gj=a.fd)?void 0:null==(af=gj.contents)?void 0:null==(yi=af.twoColumnWatchNextResults)?void 0:null==
(zi=yi.results)?void 0:null==(Sj=zi.results)?void 0:Sj.contents;if(Th&&Th[1]){var re,Rf,ke,ph,Sf=null==(re=Th[1].videoSecondaryInfoRenderer)?void 0:null==(Rf=re.owner)?void 0:null==(ke=Rf.videoOwnerRenderer)?void 0:null==(ph=ke.thumbnail)?void 0:ph.thumbnails;Sf&&Sf.length&&(a.profilePicture=Sf[Sf.length-1].url)}var Nk=kz(b),Tj,Tf=null==(Tj=a.fd)?void 0:Tj.onResponseReceivedEndpoints;if(Tf)for(var Be=g.v(Tf),Zb=Be.next();!Zb.done;Zb=Be.next()){var Ld=Zb.value;g.S(Ld,uM)&&(a.CU=g.S(Ld,uM));var Md=
g.S(Ld,Bza),Og=void 0;a.K("web_key_moments_markers")&&(null==(Og=Md)?0:Og.entityKeys)&&(a.lx=Md.entityKeys,Md.visibleOnLoadKeys&&(a.visibleOnLoadKeys=Md.visibleOnLoadKeys))}if(a.K("web_key_moments_markers")){var Ai=g.vM.getState().entities,Pg=g.DL("visibility_override","markersVisibilityOverrideEntity");var pf=FL(Ai,"markersVisibilityOverrideEntity",Pg);a.Vd=(null==pf?void 0:pf.videoId)===(a.videoId||Nk)&&(null==pf?0:pf.visibilityOverrideMarkersKey)?pf.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;
a.visibleOnLoadKeys=[].concat(g.la(a.Vd))}if(!a.K("embeds_web_enable_video_data_refactoring_offline_and_progress_bar")){var qh=g.S(a.fd.currentVideoEndpoint,g.rM);if(null==qh?0:qh.playlistId)a.h1=qh.playlistId}}};
nM=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)};
wM=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)};
yM=function(a){var b=a.Wa,c=!!a.j&&a.j.Zc,d=a.B,e=a.GM(),f=xM(a),h=a.OI,l=a.isOtf(),m=a.pK(),n=a.tb,p=a.Xi,q=new wwa(d);if(d.Qd()||d.K("html5_logging_format_selection"))q.B=!0;q.ob=f;q.La=h&&d.I;q.Xi=p;Sy("windows nt 5.1")&&!g.iJ&&(q.j=!0);if(f=e)f=g.LK(d)?Gxa(d):!1;f&&(q.ib=!0);b&&(q.j=!0,q.Kc=!0);l&&!d.K("html5_otf_prefer_vp9")&&(q.j=!0);"picasaweb"===d.playerStyle&&(l&&(q.j=!1),q.Ga=!1);n&&(q.j=!0);b=d.K("html5_ugc_vod_audio_51")&&!c;l=d.K("html5_ugc_live_audio_51")&&c;q.Wa=b||l;uF(d.D,vF.CHANNELS)&&
(d.K("html5_enable_aac51")&&(q.Aa=!0),d.K("html5_enable_ac3")&&(q.J=!0),d.K("html5_enable_eac3")&&(q.V=!0),d.K("html5_enable_ac3_gapless")&&(q.Pa=!0));d.K("html5_block_8k_hfr")&&(q.tb=!0);q.ea=g.jJ(d.experiments,"html5_max_selectable_quality_ordinal");q.Z=g.jJ(d.experiments,"html5_min_selectable_quality_ordinal");fK&&(q.hd=480);if(c||e)q.Ga=!1;q.Nb=!1;c=ZI(d,q.u);0<c&&2160>c&&(wI()||d.K("html5_format_hybridization"))&&(q.u.supportsChangeType=+wI(),q.C=c);2160<=c&&(q.Ja=!0);vwa()&&(q.u.serveVp9OverAv1IfHigherRes=
0,q.Uc=!1);q.pK=m;q.Za=g.lB||dz()&&!m?!1:!0;q.oa=d.K("html5_format_hybridization");q.jc=d.K("html5_disable_encrypted_vp9_live_non_2k_4k");Vy()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(q.J=!0,q.V=!0);a.Wa&&a.isAd()&&(a.Vv&&(q.ya=a.Vv),a.Nv&&(q.I=a.Nv));q.Ya=a.isLivePlayback&&a.Nl()&&a.B.K("html5_drm_live_audio_51");q.Ub=a.NI;return a.Yk=q};
Dza=function(a){bF("drm_pb_s",void 0,a.Ja);a.Pa||a.j&&qF(a.j);var b={};a.j&&(b=Rta(a.Mw,yM(a),a.B.D,a.j,function(c){return a.ma("ctmp","fmtflt",c)},!0));
b=new qJ(b,a.B,a.DQ,Cza(a),function(c,d){a.xa(c,d)});
g.I(a,b);a.zm=!1;a.loading=!0;Jwa(b,function(c){bF("drm_pb_f",void 0,a.Ja);for(var d=g.v(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Pa=a.Pa;e.Sw=a.Sw;e.Rw=a.Rw;break;case "widevine":e.ll=a.ll}a.Qn=c;if(0<a.Qn.length&&(a.I=a.Qn[0],a.B.Qd())){c={};d=g.v(Object.entries(a.I.j));for(e=d.next();!e.done;e=d.next()){var f=g.v(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c[h]=f}a.xa("drmProbe",c)}eM(a)})};
nza=function(a,b){if(0===b.length||!oza(a))return null;iM(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(UI=!0);var c=a.Nd;var d=a.lengthSeconds,e=a.isLivePlayback,f=a.Se,h=a.B,l=a.videoId,m=$va(b);if(e||f){h=new II("",h.experiments,!0,l);h.u=!f;h.Zc=!0;h.isManifestless=!0;h.isLive=!f;h.Se=f;l=g.v(b);for(d=l.next();!d.done;d=l.next()){var n=d.value;d=LI(n,c);e=dF(n);e=NI(e.Qx||n.url||"",e.Sz,e.s);(m=e.get("id"))&&m.includes("%7E")&&(h.oa=!0);m=Number(n.targetDurationSec||5);n=Number(n.maxDvrDurationSec||
14400);var p=Number(e.get("mindsq")||e.get("min_sq")||"0"),q=Number(e.get("maxdsq")||e.get("max_sq")||"0")||Infinity;h.Ge=h.Ge||p;h.Wg=h.Wg||q;var t=!MH(d.mimeType);e&&HI(h,new nH(e,d,{Xj:m,Dm:t,Eo:n,Ge:p,Wg:q,bz:300,Se:f}))}h.B=!!h.Ge&&!!h.Wg&&isFinite(h.Wg);c=h}else if("FORMAT_STREAM_TYPE_OTF"===m){d=void 0===d?0:d;f=new II("",h.experiments,!1,l);f.duration=d||0;h=g.v(b);for(l=h.next();!l.done;l=h.next())l=l.value,d=LI(l,c,f.duration),e=dF(l),(e=NI(e.Qx||l.url||"",e.Sz,e.s))&&("FORMAT_STREAM_TYPE_OTF"===
d.streamType?HI(f,new oH(e,d,"sq/0")):HI(f,new yH(e,d,TG(l.initRange),TG(l.indexRange))));f.isOtf=!0;c=f}else{d=void 0===d?0:d;f=new II("",h.experiments,!1,l);f.duration=d||0;h=g.v(b);for(l=h.next();!l.done;l=h.next())m=l.value,l=LI(m,c,f.duration),d=TG(m.initRange),e=TG(m.indexRange),n=dF(m),(m=NI(n.Qx||m.url||"",n.Sz,n.s))&&HI(f,new yH(m,l,d,e));c=f}h=dF(b[0]);b=h.Qx;f=h.Sz;h=h.s;b&&f&&h&&(b=NI(b,f,h),b=pza(a,b),isFinite(b)&&(a.Kc=!0));b=a.isLivePlayback&&!a.Se&&!a.Kc&&!a.isPremiere;a.K("html5_live_head_playable")&&
!kM(a)&&b&&a.xa("missingLiveHeadPlayable",{});return c};
pza=function(a,b){var c=NaN;a.K("html5_add_maxdsq_check")&&(c=Number(b.get("maxdsq")));return c||Number(b.get("max_sq"))||Infinity};
hM=function(a){return Vy()?!zM(a):Xy()?!(!a.Pa||!a.K("html5_enable_safari_fairplay")):!1};
zM=function(a){return a.K("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
Cza=function(a){return a.K("html5_disable_tvos_widevine")||!a.useCobaltWidevine?!1:Vy()?zM(a):!1};
oza=function(a){return!a.K("html5_manifestless_unplugged")&&a.isLivePlayback&&g.IK(a.B)&&g.wK(a.B)?!1:!hM(a)};
mM=function(a){return!(!a.j||!a.j.isManifestless)};
Eza=function(a){return $ta({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,Oo:a.Oo,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:mM(a),AP:AM})};
BM=function(a){return a.isLowLatencyLiveStream&&void 0!=a.j&&5<=RI(a.j)?21530001:a.liveExperimentalContentId};
lza=function(a){return Vy()&&zM(a)?!1:hM(a)&&g.IK(a.B)&&!a.isLivePlayback||!xJ()||a.mQ?!0:!1};
Gza=function(a){a.loading=!0;a.Tf=!1;if(mza(a))g.Nya(a.videoId).then(function(c){Fza(a,c)}).then(function(){eM(a)});
else{QD(a.ib)||g.AD(new g.Yz("DASH MPD Origin invalid: ",a.ib));var b=a.ib;b=g.Ui(b,{mpd_version:g.jJ(a.B.experiments,"dash_manifest_version")||4});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Ui(b,{pacing:0}));hwa(b,a.B.experiments,a.isLivePlayback).then(function(c){a.isDisposed()||(lM(a,c,!0),bF("mrc",void 0,a.Ja),eM(a))},function(c){a.isDisposed()||(a.loading=!1,a.ma("dataloaderror",new SK("manifest.net.retryexhausted",{backend:"manifest",
rc:c.status},1)))});
bF("mrs",void 0,a.Ja)}};
Fza=function(a,b){var c=b.map(function(l){return l.itag}),d;
if(null!=(d=a.playerResponse)&&d.streamingData){d=[];for(var e={},f=g.v(a.playerResponse.streamingData.adaptiveFormats),h=f.next();!h.done;e={xp:e.xp},h=f.next())e.xp=h.value,c.includes(e.xp.itag)&&(e.xp=Object.assign({},e.xp),e.xp.url=b.find(function(l){return function(m){return m.itag===l.xp.itag}}(e)).url,e.xp.signatureCipher="",d.push(e.xp));
b=nza(a,d);lM(a,b);a.xa("dlr",{})}else a.xa("offsdm",{cotn:a.YJ?a.YJ.cotn:"0",cpn:a.clientPlaybackNonce})};
eM=function(a){a.isDisposed()||(a.loading=!1,a.ma("dataloaded"))};
lM=function(a,b,c){c=void 0===c?!1:c;a.j=b;g.I(a,b);b.Ge=a.Ge;b.Wg=a.Wg;b.Gb=a.Gb;b.Uc=a.Uc;b.td=a.td;a.wx&&(b.Ga=new JG(a.wx));Hza(a)&&a.Ga.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.fm=Number(d[d.indexOf("manifest_duration")+1]));b.u&&(b.subscribe("clienttemp",a.xa,a),c?b.subscribe("refresh",a.fW,a):b.subscribe("cuepointsadded",a.SS,a));qF(b)&&(a.zm=!0);b.isPremiere=a.isPremiere;b.isLiveHeadPlayable=a.isLiveHeadPlayable};
Mza=function(a,b){if(a.isDisposed())return Jy();a.C=null;a.Ya=null;a.rd=null;iM(a,"html5_high_res_logging_always")&&(a.B.Rf=!0);return Iza(a,b).then(void 0,function(){return Jza(a,b)}).then(void 0,function(){return Kza(a)}).then(void 0,function(){return Lza(a)})};
Iza=function(a,b){var c=b||lza(a)||a.isExternallyHostedPodcast;if(!a.j||c)return a.xa("skipDash",{dm:!!a.j,air:b,dd:a.mQ,mss:xJ(),"3pp":a.isExternallyHostedPodcast}),Jy();xM(a)&&kwa(a.j,a.isLivePlayback);iM(a,"html5_enable_cobalt_experimental_vp9_decoder")&&Xwa(a.B.D);return Ky().then(function(){return Tta(a.Mw,yM(a),a.B.D,a.j,a.I,function(d){return a.ma("ctmp","fmtflt",d)},a.ZJ).then(function(d){Nza(a,d);
a.Mw.j=null;/^av/.test(a.clientPlaybackNonce)&&a.Yk&&a.xa("av1",a.Yk.u)})})};
Jza=function(a,b){if(b&&a.hlsvp)return Jy();if(a.hlsFormats){b=jM(a.hlsFormats);var c;if((null==(c=a.Yk)?0:c.B)&&b){c=[];for(var d=g.v(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.xa("hlsfmt",{itags:c.join(".")})}a.kx=Oxa(a.B,b);c=a.clientPlaybackNonce;var f,h,l,m;return Txa(a.B,a.isAd(),b,null!=(m=null==(f=a.playerResponse)?void 0:null==(h=f.captions)?void 0:null==(l=h.playerCaptionsRenderer)?void 0:l.baseUrl)?m:null,a.hd,c,function(n){return a.ma("ctmp","hlsflt",n)}).then(function(n){for(var p=
0,q=[],t=g.v(n),w=t.next();!w.done;w=t.next()){w=w.value;
var z=void 0;q.push(null==(z=w.qh())?void 0:z.itag);var C=z=void 0;(null==(z=w.qh())?void 0:null==(C=z.audio)?void 0:C.numChannels)>p&&(p=w.qh().audio.numChannels)}2<p&&a.xa("hlschl",{mn:p});var G;(null==(G=a.Yk)?0:G.B)&&a.xa("hlsfmtaf",{itags:q.join(".")});var O;if(a.K("html5_enable_vp9_fairplay")&&(null==(O=a.I)?0:gJ(O)))for(a.xa("drm",{sbdlfbk:1}),p=g.v(a.Qn),q=p.next();!q.done;q=p.next())if(q=q.value,fJ(q)){a.I=q;break}CM(a,n)})}return Jy()};
Kza=function(a){if(a.isExternallyHostedPodcast&&a.uf){var b=jM(a.uf);return b[0]?Wxa(a.B,b[0]).then(function(c){CM(a,c)}):Jy()}return a.lm&&a.iT?Vxa(a.B,a.isAd(),a.lm).then(function(c){CM(a,c)}):Jy()};
Lza=function(a){if(a.isExternallyHostedPodcast)return Jy();var b=jM(a.uf,a.aJ);if(a.hlsvp){var c=Yya(a.hlsvp,a.clientPlaybackNonce,a.hd);b.push(c)}return Uxa(a.B,a.isAd(),b,Oza(a)).then(function(d){CM(a,d)})};
Nza=function(a,b){a.C=b;if(a.C){b=g.v(a.C.videoInfos);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.containerType;0!==d&&(a.aS[d]=c.id)}}b=a.getAvailableAudioTracks();b=b.concat(a.qm);for(c=0;c<a.GK.length;c++){d=a.GK[c];for(var e=0;e<b.length;e++){var f=b[e],h=f.Ic.id==d.audioTrackId;if(f.Ic.isDefault&&c==a.LS||h){if(d.captionTrackIndices)for(h=0;h<d.captionTrackIndices.length;h++)f.captionTracks[h]=a.captionTracks[d.captionTrackIndices[h]];void 0!==d.defaultCaptionTrackIndex&&(f.B=a.captionTracks[d.defaultCaptionTrackIndex]);
void 0!==d.forcedCaptionTrackIndex&&(f.j=a.captionTracks[d.forcedCaptionTrackIndex]);f.u=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}}if(a.I&&a.C&&a.C.videoInfos&&!(0>=a.C.videoInfos.length)&&(b=IH(a.C.videoInfos[0]),b!=("fairplay"==a.I.flavor)))for(c=g.v(a.Qn),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.I=d;break}};
CM=function(a,b){a.rd=b;Nza(a,new lF(g.$l(a.rd,function(c){return c.qh()})))};
Oza=function(a){var b={cpn:a.clientPlaybackNonce,c:a.B.j.c,cver:a.B.j.cver};a.nx&&(b.ptk=a.nx,b.oid=a.FV,b.ptchn=a.mV,b.pltype=a.NV,a.Ow&&(b.m=a.Ow));return b};
g.DM=function(a){return hM(a)&&a.Pa?(a={},a.fairplay="https://web.archive.org/web/20230505074338/https://youtube.com/api/drm/fps?ek=uninitialized",a):a.u&&a.u.Nd||null};
Pza=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.dE(b.text):a.paidContentOverlayText};
EM=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?Je(b.durationMs):a.paidContentOverlayDurationMs};
FM=function(a){var b="";if(a.VJ)return a.VJ;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.Kc?"window":"live");a.Se&&(b="post");return b};
g.GM=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
Qza=function(a){return!!a.oh||!!a.dK||!!a.sx||!!a.tx||a.jS||a.V.focEnabled||a.V.rmktEnabled};
HM=function(a){return!!(a.ib||a.uf||a.lm||a.hlsvp||a.Uu())};
dM=function(a){if(a.K("html5_onesie")&&a.errorCode)return!1;var b=g.wb(a.Ga,"ypc");a.ypcPreview&&(b=!1);return a.De()&&!a.loading&&(HM(a)||g.wb(a.Ga,"heartbeat")||b)};
jM=function(a,b){a=ny(a);var c={};if(b){b=g.v(b.split(","));for(var d=b.next();!d.done;d=b.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[d[1]]={width:d[2],height:d[3]})}b=g.v(a);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c[d.itag];e&&(d.width=e.width,d.height=e.height)}return a};
uza=function(a,b){a.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")||(a.showShareButton=!!b);var c,d,e=(null==(c=g.S(b,g.pM))?void 0:c.navigationEndpoint)||(null==(d=g.S(b,g.pM))?void 0:d.command);e&&(a.Wn=!!g.S(e,Rza))};
$ya=function(a,b){var c=b.raw_embedded_player_response;if(!c){var d=b.embedded_player_response;d&&(c=JSON.parse(d))}c&&(a.Kf=c);if(a.Kf){a.embeddedPlayerConfig=a.Kf.embeddedPlayerConfig||null;if(c=a.Kf.videoFlags)c.playableInEmbed&&(a.allowEmbed=!0),c.isPrivate&&(a.isPrivate=!0),c.userDisplayName&&(b.user_display_name=c.userDisplayName),c.userDisplayImage&&(b.user_display_image=c.userDisplayImage);if(c=a.Kf.embedPreview){c=c.thumbnailPreviewRenderer;a.K("embeds_web_enable_video_data_refactoring_embedded_player_response")?
pya(a,c.controlBgHtml):(d=c.controlBgHtml,null!=d?(a.Dl=d,a.pd=!0):(a.Dl="",a.pd=!1));!a.K("embeds_web_enable_video_data_refactoring_embedded_player_response")&&(d=c.defaultThumbnail)&&(a.ea=fL(d),a.sampledThumbnailColor=d.sampledThumbnailColor);(d=g.S(null==c?void 0:c.videoDetails,Sza))&&yza(a,b,d);d=g.S(null==c?void 0:c.videoDetails,g.Tza);a.K("embeds_web_enable_video_data_refactoring_offline_and_progress_bar")||(a.Ij=!!c.addToWatchLaterButton);uza(a,c.shareButton);if(null==d?0:d.musicVideoType)a.musicVideoType=
d.musicVideoType;var e,f,h,l,m;if(d=g.S(null==(e=a.Kf)?void 0:null==(f=e.embedPreview)?void 0:null==(h=f.thumbnailPreviewRenderer)?void 0:null==(l=h.playButton)?void 0:null==(m=l.buttonRenderer)?void 0:m.navigationEndpoint,g.rM))$xa(a,d),a.videoId=d.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=Je(c.videoDurationSeconds));c.webPlayerActionsPorting&&oya(a,c.webPlayerActionsPorting);if(e=g.S(null==c?void 0:c.playlist,Uza)){a.Rk=!0;f=[];h=Number(e.currentIndex);if(e.contents)for(l=0,m=
e.contents.length;l<m;l++)if(c=e.contents[l].playlistPanelVideoRenderer){d=c.shortBylineText?g.dE(c.shortBylineText):"";var n=c.title?g.dE(c.title):"";f.push({author:d,encrypted_id:c.videoId,title:n,channel_path:l===h?b.channel_path:"",profile_picture:l===h?b.profile_picture:"",is_private:l===h?a.isPrivate:!0,is_dni:l===h?a.pd:!1,dni_color:l===h?a.Dl:""})}b={index:e.currentIndex,list:e.playlistId,playlist_length:e.totalVideos,video:f};e.titleText&&(b.title=g.dE(e.titleText));e.shortBylineText&&(b.author=
g.dE(e.shortBylineText));a.cS=b}var p,q,t;if(b=g.S(null==(p=a.Kf)?void 0:null==(q=p.embedPreview)?void 0:null==(t=q.thumbnailPreviewRenderer)?void 0:t.infoPanel,xza)){a.IJ=Number(null==b?void 0:b.durationMs)||NaN;if(null==b?0:b.infoPanelOverviewViewModel)a.Wd=null==b?void 0:b.infoPanelOverviewViewModel;if(null==b?0:b.infoPanelDetailsViewModel)a.dl=null==b?void 0:b.infoPanelDetailsViewModel}}if(a.Kf.previewPlayabilityStatus){if(a.qx=a.Kf.previewPlayabilityStatus,p=a.qx,!["OK","LIVE_STREAM_OFFLINE"].includes(p.status)){a.errorCode=
Yxa(p.errorCode);q=p.errorScreen;if(t=null==q?void 0:q.playerErrorMessageRenderer){a.UI=t;if(b=t.reason)a.errorReason=g.dE(b);if(t=t.subreason)a.Hm=g.dE(t)}else a.errorReason=p.reason||null;switch(p.status){case "LOGIN_REQUIRED":a.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":a.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var w;(null==q?0:null==(w=q.playerKavRenderer)?0:w.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=p.isBlockedInRestrictedMode?"5":"0"}}}else a.Kf.playabilityStatus&&
(a.wm=a.Kf.playabilityStatus,Vza(a)&&(a.errorDetail="0",a.wm&&((w=a.wm.embeddedPlayerErrorMessageRenderer)?a.UI=g.S(w,Wza):a.errorReason=a.wm.reason||null)));(w=a.Kf.attestation)&&hya(a,w);(w=a.Kf.permissions)&&w.allowImaMonetization&&(a.allowImaMonetization=!0)}};
yza=function(a,b,c){var d=c.channelThumbnail;d&&(d=d.thumbnails)&&(d=d[0])&&(b.profile_picture=d.url);var e;if(d=g.S(null==(e=g.S(null==c?void 0:c.channelThumbnailEndpoint,Xza))?void 0:e.urlEndpoint,g.sM))b.channel_path=d.url;if(e=c.collapsedRenderer)if(e=g.S(e,Yza)){if(d=e.title)b.title=g.dE(d);if(e=e.subtitle)b.subtitle=g.dE(e)}if(c=c.expandedRenderer)if(c=g.S(c,Zza)){if(e=c.title)b.expanded_title=g.dE(e);if(e=c.subtitle)b.expanded_subtitle=g.dE(e);if(c=c.subscribeButton)a.subscribeButtonRenderer=
g.S(c,g.IM),a.subscribeButtonRenderer&&(b.ucid=a.subscribeButtonRenderer.channelId,b.subscribed=a.subscribeButtonRenderer.subscribed,a.jm=!!a.subscribeButtonRenderer.notificationPreferenceToggleButton,a.subscribeButtonRenderer.notificationPreferenceToggleButton&&a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.lQ=b.toggledServiceEndpoint||null,a.jQ=b.defaultServiceEndpoint||
null):(a.lQ=b.defaultServiceEndpoint||null,a.jQ=b.toggledServiceEndpoint||null)))}};
g.JM=function(a){return kM(a)&&!a.allowLiveDvr};
KM=function(a){return kM(a)&&a.allowLiveDvr};
kM=function(a){return a.K("html5_live_head_playable")&&mM(a)?a.isLiveHeadPlayable:a.isLivePlayback};
g.LM=function(a){return!!a.j&&Rva(a.j)};
g.MM=function(a){return!!a.j&&Sva(a.j)};
Hza=function(a){return a.GM()||g.NM(a)};
g.OM=function(a){return!!a.j&&Tva(a.j)};
g.NM=function(a){return!!a.j&&Uva(a.j)};
g.$za=function(a){if(a.rO)return null;var b=a.fU;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.aAa=function(a){return a.rO?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.PM=function(a){return a.K("enable_wn_infocards")};
g.QM=function(a){var b,c,d,e;return(null==(b=a.playerResponse)?void 0:null==(c=b.cards)?void 0:c.cardCollectionRenderer)||(null==(d=a.fd)?void 0:null==(e=d.cards)?void 0:e.cardCollectionRenderer)||null};
g.RM=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.v(a.playerResponse.annotations);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.playerAnnotationsExpandedRenderer&&b.playerAnnotationsExpandedRenderer.featuredChannel)return b.playerAnnotationsExpandedRenderer;return null};
SM=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.eventLabel||a.B.Ga};
g.TM=function(a){return"shortspage"===SM(a)};
UM=function(a){if(a.isAd()&&a.videoId!=a.B.ke)return a.B.ke};
VM=function(a){return a.Ul||"detailpage"==SM(a)||"shortspage"==SM(a)||a.mutedAutoplay};
XM=function(a){var b=a.K("enable_cleanup_masthead_autoplay_hack_fix");return b&&"adunit"==SM(a)?a.jp:VM(a)?"detailpage"==SM(a)||"shortspage"==SM(a)?a.isAutonav||0<a.jc:b||"17_8"!==a.adFormat||a.isAutonav||g.JK(a.B)||a.jp?a.RI?!1:!a.B.dl&&!a.B.nh&&g.iK(a.B)&&a.K("embeds_web_enable_autoplay_not_supported_logging_fix")?!1:!b&&"adunit"==SM(a)&&a.oh?!1:!0:!1:WM(a)&&a.K("embeds_web_enable_log_splay_as_autoplay")&&g.iK(a.B)?!0:!1};
WM=function(a){return a.K("embeds_web_enable_scripted_playback_blocked_logging_fix")&&a.RI?!1:a.IC};
g.YM=function(a){return a.oauthToken||a.B.Yi};
bAa=function(a){var b=1,c=g.jJ(a.B.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);var d;c=(null==(d=a.D)?void 0:d.audio.u)||a.Ri;if(a.K("html5_stateful_audio_normalization")&&null!=c){if(a.FQ)return Math.min(1,Math.pow(10,-a.kD/20))||b;d=0;a.K("html5_diff_bias_over_ad_content")&&(d=a.isAd()?0:3);c-=Math.min(0,d+Math.max(a.B.gm,g.jJ(a.B.experiments,"html5_stateful_audio_min_adjustment_value")));a.kD=c}return Math.min(1,Math.pow(10,-c/20))||b};
xM=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===g.uJ(a.B)&&"MUSIC"===a.B.j.ctheme;!a.Yi&&(g.qK(a.B)||c)&&b.includes(a.musicVideoType)&&(a.Yi=!0);if(b=g.Uy())b=/Starboard\/([0-9]+)/.exec(g.hc()),b=10>(b?parseInt(b[1],10):NaN);c=a.B;c=("TVHTML5_CAST"===g.uJ(c)||"TVHTML5"===g.uJ(c)&&(c.j.cver.startsWith("6.20130725")||c.j.cver.startsWith("6.20130726")))&&"MUSIC"===a.B.j.ctheme;var d;if(d=!a.Yi)c||(c=a.B,c="TVHTML5"===g.uJ(c)&&c.j.cver.startsWith("7")),
d=c;d&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.K("cast_prefer_audio_only_for_atv_and_uploads")||a.K("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.Yi=!0);return a.B.deviceIsAudioOnly||a.Yi&&a.B.I};
cAa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
ZM=function(a){return!(!a.tm||!a.B.I)&&a.Uu()};
dAa=function(a){return a.enablePreroll&&a.enableServerStitchedDai};
$M=function(a){if(a.hS||a.cotn||!a.j||a.j.isOtf)return!1;if(a.K("html5_use_sabr_requests_for_debugging"))return!0;var b=!a.j.Zc&&!a.Nl(),c=b&&AM&&a.K("html5_enable_sabr_vod_streaming_xhr");b=b&&!AM&&a.K("html5_enable_sabr_vod_non_streaming_xhr");(c=c||b)&&!a.wx&&a.xa("sabr",{loc:"m"});return c&&!!a.wx};
aN=function(a){return a.dS&&$M(a)};
mza=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.PL(b);return b&&!a.tm};
g.bN=function(a){if(!a.j||!a.u||!a.D)return!1;var b=a.j.j;return!!b[a.u.id]&&DF(b[a.u.id].u.j)&&!!b[a.D.id]&&DF(b[a.D.id].u.j)};
cN=function(a){return a.qx?["OK","LIVE_STREAM_OFFLINE"].includes(a.qx.status):!0};
Vza=function(a){return(a=a.wm)&&a.showError?a.showError:!1};
iM=function(a,b){return a.K(b)?!0:(a.fflags||"").includes(b+"=true")};
eAa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
eza=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.tx=new Dya(b));if(b=b.video_masthead_ad_quartile_urls)a.dK=b.quartile_0_url,a.uY=b.quartile_25_url,a.RY=b.quartile_50_url,a.XY=b.quartile_75_url,a.fY=b.quartile_100_url,a.sx=b.quartile_0_urls,a.OM=b.quartile_25_urls,a.PM=b.quartile_50_urls,a.YM=b.quartile_75_urls,a.AL=b.quartile_100_urls};
dza=function(a){var b={};a=g.v(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0}return b};
iya=function(a){if(a){if(Psa(a))return a;a=Qsa(a);if(Psa(a,!0))return a}return""};
g.fAa=function(a){return a.captionsLanguagePreference||a.B.captionsLanguagePreference||g.GM(a,"yt:cc_default_lang")||a.B.Ri};
dN=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())};
g.tM=function(a){var b;return a.mA||(null==(b=a.suggestions)?void 0:b[0])||null};
eN=function(a,b){this.j=a;this.oa=b||{};this.J=String(Math.floor(1E9*Math.random()));this.I={};this.Z=this.ea=0};
gAa=function(a){return fN(a)&&1==a.getPlayerState(2)};
fN=function(a){a=a.Pc();return void 0!==a&&2==a.getPlayerType()};
gN=function(a){a=a.T();return vK(a)&&!g.IK(a)&&"desktop-polymer"==a.playerStyle};
hN=function(a,b){var c=a.T();g.nK(c)||"3"!=c.controlsType||a.jb().PD(b)};
jN=function(a,b,c,d,e,f){c=void 0===c?{}:c;this.componentType=a;this.renderer=void 0===b?null:b;this.macros=c;this.layoutId=d;this.interactionLoggingClientData=e;this.j=f;this.id=iN(a)};
iN=function(a){return a+(":"+(tq.getInstance().j++).toString(36))};
kN=function(a){this.Y=a};
hAa=function(a,b){if(0===b||1===b&&(a.Y.u&&g.xA?0:a.Y.u||g.IK(a.Y)||g.wK(a.Y)||xK(a.Y)||!g.xA))return!0;a=g.Te("video-ads");return null!=a&&"none"!==Mm(a,"display")};
iAa=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}};
lN=function(){g.aE.call(this);var a=this;this.j={};g.lb(this,function(){for(var b=g.v(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
nN=function(){if(null===mN){mN=new lN;cm(lp).u="b";var a=cm(lp),b="h"==ep(a)||"b"==ep(a),c=!(hm(),!1);b&&c&&(a.D=!0,a.I=new Mja)}return mN};
jAa=function(a,b,c){a.j[b]=c};
kAa=function(){};
oN=function(a,b,c){this.j=a;this.D=b;this.B=c;this.u=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0);
c=0;for(a+=1;a<b.length;a++)c+=b[a];this.adBreakRemainingLengthSeconds=c};
pN=function(a){var b,c,d,e,f;return!(null==(b=a.get("active_view_viewable"))||!b.length)||!(null==(c=a.get("active_view_measurable"))||!c.length)||!(null==(d=a.get("active_view_fully_viewable_audible_half_duration"))||!d.length)||!(null==(e=a.get("audio_audible"))||!e.length)||!(null==(f=a.get("audio_measurable"))||!f.length)};
qN=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.activeViewTracking)?void 0:b.trafficType)?c:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
rN=function(a){var b,c;return new Map([["impression",a.impressionPings||[]],["error",a.errorPings||[]],["mute",a.mutePings||[]],["unmute",a.unmutePings||[]],["pause",a.pausePings||[]],["rewind",a.rewindPings||[]],["resume",a.resumePings||[]],["skip",a.skipPings||[]],["close",a.closePings||[]],["progress",a.progressPings||[]],["clickthrough",a.clickthroughPings||[]],["fullscreen",a.fullscreenPings||[]],["active_view_viewable",a.activeViewViewablePings||[]],["active_view_measurable",a.activeViewMeasurablePings||
[]],["active_view_fully_viewable_audible_half_duration",a.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",(null==(b=a.activeViewTracking)?void 0:b.activeViewAudioAudiblePings)||[]],["audio_measurable",(null==(c=a.activeViewTracking)?void 0:c.activeViewAudioMeasurablePings)||[]],["end_fullscreen",a.endFullscreenPings||[]],["channel_clickthrough",a.channelClickthroughPings||[]],["abandon",a.abandonPings||[]],["start",a.startPings||[]],["first_quartile",a.firstQuartilePings||[]],
["midpoint",a.secondQuartilePings||[]],["third_quartile",a.thirdQuartilePings||[]],["complete",a.completePings||[]],["unmuted_impression",a.unmutedImpressionPings||[]],["unmuted_error",a.unmutedErrorPings||[]],["unmuted_mute",a.unmutedMutePings||[]],["unmuted_unmute",a.unmutedUnmutePings||[]],["unmuted_pause",a.unmutedPausePings||[]],["unmuted_resume",a.unmutedResumePings||[]],["unmuted_close",a.unmutedClosePings||[]],["unmuted_progress",a.unmutedProgressPings||[]],["unmuted_clickthrough",a.unmutedClickthroughPings||
[]],["unmuted_fullscreen",a.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",a.unmutedEndFullscreenPings||[]],["unmuted_abandon",a.unmutedAbandonPings||[]],["unmuted_start",a.unmutedStartPings||[]],["unmuted_first_quartile",a.unmutedFirstQuartilePings||[]],["unmuted_midpoint",a.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",a.unmutedThirdQuartilePings||[]],["unmuted_complete",a.unmutedCompletePings||[]],["unmuted_skip",a.unmutedSkipPings||[]]])};
lAa=function(a){switch(a){case "abandon":return"unmuted_abandon";case "active_view_fully_viewable_audible_half_duration":return null;case "active_view_measurable":return null;case "active_view_viewable":return null;case "audio_audible":return null;case "audio_measurable":return null;case "channel_clickthrough":return null;case "clickthrough":return"unmuted_clickthrough";case "close":return"unmuted_close";case "companion_engagement":return null;case "complete":return"unmuted_complete";case "end_fullscreen":return"unmuted_end_fullscreen";
case "error":return"unmuted_error";case "first_quartile":return"unmuted_first_quartile";case "fullscreen":return"unmuted_fullscreen";case "impression":return"unmuted_impression";case "midpoint":return"unmuted_midpoint";case "mute":return"unmuted_mute";case "pause":return"unmuted_pause";case "progress":return"unmuted_progress";case "resume":return"unmuted_resume";case "rewind":return null;case "skip":return"unmuted_skip";case "start":return"unmuted_start";case "third_quartile":return"unmuted_third_quartile";
case "unmute":return"unmuted_unmute";case "seek":return null;case "unmuted_abandon":case "unmuted_clickthrough":case "unmuted_complete":case "unmuted_end_fullscreen":case "unmuted_error":case "unmuted_first_quartile":case "unmuted_fullscreen":case "unmuted_impression":case "unmuted_midpoint":case "unmuted_mute":case "unmuted_pause":case "unmuted_close":case "unmuted_progress":case "unmuted_resume":case "unmuted_start":case "unmuted_third_quartile":case "unmuted_unmute":case "unmuted_skip":return null;
default:return null}};
mAa=function(a){return(a=a.pings)?Object.fromEntries(rN(a)):{}};
sN=function(a,b,c,d,e){eN.call(this,a,mAa(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.Pa=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.B=new oN(0,[]);this.Ga=null;this.C={};this.Aa=null;this.u=0;this.V=null;this.ya=e;this.La=null;c=this.j.skipOffsetMilliseconds||0;0<c&&(this.Aa=c);this.C=my(this.j.playerVars||"");this.V=this.j.externalVideoId||null;this.u=hz(this.u,this.C.length_seconds);this.ya&&this.V&&(this.La=this.ya(this.V));if(this.C.cta_conversion_urls)try{this.C.cta_conversion_urls=
JSON.parse(this.C.cta_conversion_urls)}catch(f){g.zD(f)}this.Ga=this.j.clickthroughEndpoint||null;this.B=new oN(0,[this.u])};
nAa=function(a){var b=a.C||{};1<a.B.u&&(b.slot_pos=a.B.j);b.autoplay="1";return b};
tN=function(){this.j=[];this.u=0};
uN=function(a,b){b&&a.j.push(b)};
vN=function(a){if(!a)return[];var b=[];a=g.v(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=g.v(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())b.push({baseUrl:d.value.baseUrl})}return b};
wN=function(a){if(!a)return[];var b=[];a.forEach(function(c){c.command.loggingUrls.forEach(function(d){b.push({baseUrl:d.baseUrl,offsetMilliseconds:c.adVideoOffset.milliseconds})})});
return b};
xN=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
yN=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
oAa=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=vN(a.impressionCommands)||[];b.error=vN(a.errorCommands)||[];b.mute=vN(a.muteCommands)||[];b.unmute=vN(a.unmuteCommands)||[];b.pause=vN(a.pauseCommands)||[];b.rewind=vN(a.rewindCommands)||[];b.resume=vN(a.resumeCommands)||[];b.skip=vN(a.skipCommands)||[];b.close=vN(a.closeCommands)||[];b.clickthrough=vN(a.clickthroughCommands)||[];b.fullscreen=vN(a.fullscreenCommands)||[];b.active_view_viewable=vN(a.activeViewViewableCommands)||
[];b.active_view_measurable=vN(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=vN(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];a.activeViewTracking&&(b.audio_audible=vN(a.activeViewTracking.activeViewAudioAudibleCommands)||[],b.audio_measurable=vN(a.activeViewTracking.activeViewAudioMeasurableCommands)||[]);b.end_fullscreen=vN(a.endFullscreenCommands)||[];b.channel_clickthrough=vN(a.channelClickthroughCommands)||[];b.abandon=vN(a.abandonCommands)||
[];b.progress=wN(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=wN(a.progressCommands.filter(function(c){return yN(c)&&ue(xN(c),0)}));
b.first_quartile=wN(a.progressCommands.filter(function(c){return yN(c)&&ue(xN(c),.25)}));
b.midpoint=wN(a.progressCommands.filter(function(c){return yN(c)&&ue(xN(c),.5)}));
b.third_quartile=wN(a.progressCommands.filter(function(c){return yN(c)&&ue(xN(c),.75)}));
b.complete=wN(a.progressCommands.filter(function(c){return yN(c)&&ue(xN(c),1)}));
return b};
BN=function(a){eN.call(this,a,oAa(a));a.questions&&a.questions.reduce(function(b,c){return(c=g.S(c,zN)||g.S(c,AN))?b+(c.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0)};
pAa=function(a,b,c,d){this.id=b;this.C=d.kf;b=a.config&&a.config.adPlacementConfig;if(!b)throw Error("Malformed AdPlacementRenderer: missing AdPlacementConfig");var e=a.renderer&&a.renderer.adBreakServiceRenderer&&a.renderer.adBreakServiceRenderer||{};this.B=(this.D=e.getAdBreakUrl||"")?0:2;d.j=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=Vsa(b,d);if(null==f)d=new YD(b,new aq(-1,-1),!1,"adcuerange:invalid",3),d.u=!0,d=[null,d];else{e=":"+(tq.getInstance().j++).toString(36);
var h=d.daiEnabled||d.kf;f=new YD(b,f,d.visible&&!h,"adcuerange:"+e,3);h=null;if(d.kf||0<d.j)if(d=Vsa(b,d,!0))h=new YD(b,d,!1,"prefetch:"+e,5),f.C=h,h.C=f;d=[h,f]}this.j=d[1];this.u=c;this.I=!1;this.V={};this.J=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
CN=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j.j||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.j.j};
EN=function(a,b){var c={};qAa(a,c,b);rAa(c);c.LACT=DN(function(){return KC().toString()});
c.VIS=DN(function(){return a.getVisibilityState().toString()});
c.SDKV="h.3.0";c.VOL=DN(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
c.VED="";return c};
sAa=function(a,b){var c={};if(b)return c;if(!a.kind)return g.zD(Error("AdPlacementConfig without kind")),c;if("AD_PLACEMENT_KIND_MILLISECONDS"===a.kind||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===a.kind){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.zD(Error("malformed AdPlacementConfig")),c;c.MIDROLL_POS=DN(Gd(Math.round(Je(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else c.MIDROLL_POS=DN(Gd("0"));return c};
DN=function(a){return{toString:function(){return a()}}};
tAa=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.fd(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};
qAa=function(a,b,c){b.CPN=DN(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.AD(Error("Video data is null.")),d=null);return d});
b.AD_MT=DN(function(){return Math.round(Math.max(0,1E3*(null!=c?c:a.getCurrentTime(2,!1)))).toString()});
b.MT=DN(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
b.P_H=DN(function(){return a.jb().Fj().height.toString()});
b.P_W=DN(function(){return a.jb().Fj().width.toString()});
b.PV_H=DN(function(){return a.jb().getVideoContentRect().height.toString()});
b.PV_W=DN(function(){return a.jb().getVideoContentRect().width.toString()})};
rAa=function(a){a.CONN=DN(Gd("0"));a.WT=DN(function(){return Date.now().toString()})};
uAa=function(a){var b=Object.assign({},{});b.MIDROLL_POS=CN(a)?DN(Gd(Math.round(a.j.start/1E3).toString())):DN(Gd("0"));return b};
vAa=function(a){var b={};b.SLOT_POS=DN(Gd(a.B.j.toString()));return b};
wAa=function(a){var b=a&&g.cc(a,"load_timeout")?"402":"400",c={};return c.YT_ERROR_CODE=(3).toString(),c.ERRORCODE=b,c.ERROR_MSG=a,c};
FN=function(a){for(var b={},c=g.v(fBa),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
GN=function(){var a={};Object.assign.apply(Object,[a].concat(g.la(g.Ca.apply(0,arguments))));return a};
HN=function(){};
gBa=function(a,b,c,d){var e,f,h,l,m,n,p,q,t,w,z;g.A(function(C){switch(C.j){case 1:e=!!b.scrubReferrer;f=g.pp(b.baseUrl,tAa(c,e,d));h={};if(!b.headers){C.Ka(2);break}l=g.v(b.headers);m=l.next();case 3:if(m.done){C.Ka(5);break}n=m.value;switch(n.headerType){case "VISITOR_ID":g.ay("VISITOR_DATA")&&(h["X-Goog-Visitor-Id"]=g.ay("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.ay("EOM_VISITOR_DATA")&&(h["X-Goog-EOM-Visitor-Id"]=g.ay("EOM_VISITOR_DATA"));break;case "USER_AUTH":return C.Ka(6);case "PLUS_PAGE_ID":(p=
a.B())&&(h["X-Goog-PageId"]=p);break;case "AUTH_USER":q=a.u();a.K("move_vss_away_from_login_info_cookie")&&q&&(h["X-Goog-AuthUser"]=q,h["X-Yt-Auth-Test"]="test");break;case "ATTRIBUTION_REPORTING_ELIGIBLE":h["Attribution-Reporting-Eligible"]="event-source"}C.Ka(4);break;case 6:t=a.j();if(!t.j){w=t.getValue();C.Ka(8);break}return g.y(C,t.j,9);case 9:w=C.u;case 8:(z=w)&&(h.Authorization="Bearer "+z);C.Ka(4);break;case 4:m=l.next();C.Ka(3);break;case 5:"X-Goog-EOM-Visitor-Id"in h&&"X-Goog-Visitor-Id"in
h&&delete h["X-Goog-Visitor-Id"];case 2:g.VB(f,void 0,e,0!==Object.keys(h).length?h:void 0,"",!0),g.ta(C)}})};
IN=function(a){this.Al=a};
mBa=function(a,b){var c=void 0===c?!0:c;var d=g.ay("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.Pi(window.location.href);e&&d.push(e);e=g.Pi(a);if(g.wb(d,e)||!e&&Xb(a,"/"))if(g.cy("autoescape_tempdata_url")&&(d=document.createElement("a"),g.ne(d,a),a=d.href),a&&(a=wfa(a),d=a.indexOf("#"),a=0>d?a:a.slice(0,d)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.CE()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&kBa(a,b,f)}else kBa(a,b)};
kBa=function(a,b,c){a="ST-"+Ie(a).toString(36);b=b?g.Ti(b):"";c=c||5;ez()&&g.Ny(a,b,c)};
g.yBa=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;d=d.location;a=g.Ui(a,b)+c;var e=void 0===e?Aga:e;e=Bga(a,e)||Gba;e=Nj(e);void 0!==e&&(d.href=e)};
g.JN=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.ay("EVENT_ID");d&&(b.ei||(b.ei=d));b&&mBa(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.yBa(a))};
g.LN=function(a,b,c,d){c&&mBa(a,c);c=g.$d(a);c=g.Yd(c);a!=c&&jy(Error("Unsafe window.open URL: "+a));a=c;b=b||Ie(a).toString(36);try{var e;if("2"===(null==(e=my(a))?void 0:e.ase)){jy(Error("Queries for attributionsrc label registration when opening a window."));a=KN(a);window.open(a,b,"attributionsrc");return}}catch(h){g.hy(h)}if(d){a=KN(a);try{var f=encodeURIComponent(d);window.open(a,b,"attributionsrc="+f);return}catch(h){g.hy(h)}}window.open(a,b)};
KN=function(a){if("www.googleadservices.com"!==g.Pi(a))return a;var b,c;return"function"===typeof(null==(b=document.featurePolicy)?void 0:b.features)&&(null==(c=document.featurePolicy)?0:c.features().includes("attribution-reporting"))?a+"&nis=6":a+"&nis=5"};
MN=function(a){this.mu=a};
KBa=function(a,b,c,d,e,f){e=void 0===e?new MN(new IN(d.getVideoData(1))):e;f=void 0===f?!1:f;g.E.call(this);this.ad=a;this.C=b;this.macros=c;this.u=d;this.Tl=e;this.daiEnabled=f;this.j={XI:.25,UJ:.5,WJ:.75};this.B=null;this.progressPings=Array.from(this.ad.oa.progress||[]);this.progressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds});
this.unmutedProgressPings=Array.from(this.ad.oa.unmuted_progress||[]);this.unmutedProgressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds});
JBa(qN(a.j.pings))};
QN=function(a,b){NN(a)||(a.daiEnabled?(ON(a,0,!0),LBa(a,b,b)):(ON(a,0,!0),MBa(a,0,0,!0)),PN(a,"complete"))};
ON=function(a,b,c){for(c=void 0===c?!1:c;a.ad.ea<a.progressPings.length;){var d=RN(a,"progress"),e=a.progressPings[a.ad.ea];if(e.offsetMilliseconds<=1E3*b||c)(e=e.baseUrl)&&SN(a,e,d),a.ad.ea++;else break}};
NBa=function(a,b,c){for(c=void 0===c?!1:c;a.ad.Z<a.unmutedProgressPings.length;){var d=RN(a,"unmuted_progress"),e=a.unmutedProgressPings[a.ad.Z];if(e.offsetMilliseconds<=1E3*b||c)(e=e.baseUrl)&&SN(a,e,d),a.ad.Z++;else break}};
MBa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.j.XI||d)&&PN(a,"first_quartile");(b>=c*a.j.UJ||d)&&PN(a,"midpoint");(b>=c*a.j.WJ||d)&&PN(a,"third_quartile")};
OBa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.j.XI||d)&&PN(a,"unmuted_first_quartile");(b>=c*a.j.UJ||d)&&PN(a,"unmuted_midpoint");(b>=c*a.j.WJ||d)&&PN(a,"unmuted_third_quartile")};
TN=function(a,b,c,d){if(null==a.B){if(c<d||1<c-d)return}else if(a.B>d||d>c)return;PN(a,b)};
LBa=function(a,b,c){if(0<c&&0<b){var d=a.u.Cb(a.u.getPresentingPlayerType());g.UN(d,16)||g.UN(d,32)||(TN(a,"first_quartile",b,c*a.j.XI),TN(a,"midpoint",b,c*a.j.UJ),TN(a,"third_quartile",b,c*a.j.WJ))}a.B=b};
VN=function(a,b){for(var c=RN(a,b),d=g.v(a.ad.oa[b]||[]),e=d.next();!e.done;e=d.next())(e=e.value.baseUrl)&&SN(a,e,c);a.ad.I[b]=!0};
PN=function(a,b){a.ad.I.hasOwnProperty(b)||VN(a,b)};
WN=function(a,b){return a.ad.I.hasOwnProperty(b)};
SN=function(a,b,c){for(var d=a.Tl,e=d.send,f={},h=EN(a.u),l=g.v(Object.keys(h)),m=l.next();!m.done;m=l.next())m=m.value,f[m]=h[m].toString();if(h=a.u.getVideoData(2))f.AD_CPN=h.clientPlaybackNonce;a=Object.assign(f,a.macros);e.call(d,b,a,c)};
RN=function(a,b){var c=a.C;a=a.ad;if(a.D())if(b=PBa(b),null==b)c={};else{var d;(d=a.Ja()())||(d=(d=c.F)&&d.Pc?(d=d.Pc())&&2==d.getPlayerType()?XN(d):null:null);d?(c={opt_adElement:d,opt_fullscreen:c.F.isFullscreen()},c=op(b,a.J,c)):c={}}else c={};return c?Object.assign({},c):{}};
NN=function(a){return a.daiEnabled&&!WN(a,"impression")};
YN=function(a){return a.daiEnabled&&WN(a,"seek")};
ZN=function(a,b){a.daiEnabled?VN(a,b):PN(a,b)};
g.$N=function(a,b){this.state=a;this.Dv=b};
aO=function(a,b){return g.UN(a.state,b)&&!g.UN(a.Dv,b)?1:!g.UN(a.state,b)&&g.UN(a.Dv,b)?-1:0};
g.bO=function(a,b){return 0<aO(a,b)};
cO=function(a,b,c,d,e,f){f=void 0===f?0:f;g.aE.call(this);this.F=a;this.bb=d;this.j=e;this.j.j[b.J]=this;this.j.subscribe("adactiveviewmeasurable",this.aX,this);this.j.subscribe("adfullyviewableaudiblehalfdurationimpression",this.bX,this);this.j.subscribe("adoverlaymeasurableimpression",this.cX,this);this.j.subscribe("adoverlayunviewableimpression",this.dX,this);this.j.subscribe("adoverlayviewableendofsessionimpression",this.eX,this);this.j.subscribe("adoverlayviewableimmediateimpression",this.fX,
this);this.j.subscribe("adviewableimpression",this.gX,this);this.ad=b;this.oa=[];this.macros=c;this.J=!1;this.ya=!hAa(new kN(this.F.T()),f);this.B=!1};
RBa=function(a,b){g.Fb(a.oa,b);QBa(a,b,1)};
SBa=function(a,b){if(a.J){var c=a.bb,d=a.getDuration();!NN(c)&&0<d&&(ON(c,b),c.daiEnabled?LBa(c,b,d):MBa(c,b,d,!1));a.B||(c=a.bb,a=a.getDuration(),!NN(c)&&0<a&&(NBa(c,b),OBa(c,b,a,!1)))}};
QBa=function(a,b,c){0!=b.length&&(b=g.$l(b,function(d){return new $D(d,c,d.id)}),a.ma("onAdUxUpdate",b))};
dO=function(a){var b={};b.abandon=a.abandonCommands&&vN(a.abandonCommands.commands)||[];eN.call(this,a,b)};
eO=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;jN.call(this,"ad-action-interstitial",a,b,c,d);this.interactionLoggingClientData=d;this.oP=e;this.fI=f};
fO=function(a,b,c,d,e,f){cO.call(this,a,b,c,d,e,1);this.C=b;this.u=b.j.durationMilliseconds||0;this.Ec=null;this.D=f};
gO=function(a){eN.call(this,a);this.u=my(this.j.playerVars||"")};
hO=function(){eN.apply(this,arguments)};
TBa=function(a,b,c,d){this.C=a;this.j=b;this.B=c;this.u=d};
iO=function(a,b,c,d,e){cO.call(this,a,b,c,d,e);var f=this;this.D=b;this.u=new g.Ap(function(){f.Lo("load_timeout")},1E4);
g.I(this,this.u);this.C=new Fz(this);g.I(this,this.C)};
jO=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.v(b);for(c=b.next();!c.done;c=b.next())if(!wC(a.Ba,c.value))return!1;return!0};
UBa=function(a){return null!=(null==a?void 0:a.durationMs)&&0<(null==a?void 0:a.durationMs)};
kO=function(a){return!!(a.n4&&a.slot&&a.layout)};
lO=function(a,b,c){jN.call(this,"ad-message",a,void 0,b,c)};
mO=function(a,b,c,d,e,f,h,l){cO.call(this,a,b,c,d,e);var m=this;this.u=b;this.V=b.j.durationMs||0;this.I=l;this.ea=!1;this.D=this.C=0;this.Z=function(){var n=m.F.getProgressState().current;n<m.C?m.Ko():n>m.D&&m.Di()}};
XBa=function(a,b){if(a.I&&a.ea){a.ea=!1;var c=a.u.j;if(kO(c)){var d=c.slot;c=c.layout;b=VBa(b);a=g.v(a.I.listeners);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=d,h=c,l=b;nO(e.j(),f,h,l);WBa(e.j(),f)}}else g.AD(Error("adMessageRenderer is not augmented on termination"))}};
VBa=function(a){switch(a){case "adabandonedreset":return"user_cancelled";case "adended":return"normal";case "aderror":return"error";case void 0:return g.AD(Error("AdNotify abandoned")),"abandoned";default:return g.AD(Error("Unexpected eventType for adNotify exit")),"abandoned"}};
g.oO=function(a,b,c){void 0===c?delete a[b.name]:a[b.name]=c};
g.pO=function(a,b){for(var c={},d=g.v(Object.keys(b)),e=d.next();!e.done;c={II:c.II},e=d.next())e=e.value,c.II=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.II}}(c));
return a};
qO=function(a,b,c,d){this.j=a;this.C=b;this.u=EN(c);this.B=d};
YBa=function(a){for(var b={},c=g.v(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.u[d].toString();return Object.assign(b,a.C)};
ZBa=function(a,b,c,d){new qO(a,b,c,d)};
rO=function(a,b,c,d,e,f,h,l,m){cO.call(this,a,b,c,d,e,1);var n=this;this.rG=!0;this.I=m;this.u=b;this.C=f;this.ea=new Fz(this);g.I(this,this.ea);this.D=new g.Ap(function(){n.Lo("load_timeout")},1E4);
g.I(this,this.D);this.V=h};
$Ba=function(a){if(a.V&&(a.F.T().experiments.kb("enable_topsoil_wta_for_halftime")||a.F.T().experiments.kb("enable_topsoil_wta_for_halftime_live_infra"))){var b=a.u.B,c=b.C,d=b.B,e=b.j;b=b.D;if(void 0===c)g.zD(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.zD(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,h){return f+h},0),Math.min(Math.max((d-c)/1E3-e,0),a.u.u)}};
uO=function(a,b){if(null!==a.I){var c=aCa(a);a=g.v(a.I.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,h=!1;d.j||"aderror"!==f||(bCa(d,e,[],!1),cCa(d.B(),d.u),dCa(d.B(),d.u),eCa(d.B(),d.u),h=!0);if(d.j&&d.j.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}nO(d.B(),d.u,d.j,e);if(h){e=d.B();h=d.u;sO(e.Sb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",h);e=g.v(e.Hd);for(f=e.next();!f.done;f=e.next())f.value.Qj(h);WBa(d.B(),
d.u)}d.Ca.get().F.T().K("html5_send_layout_unscheduled_signal_for_externally_managed")&&d.C&&tO(d.B(),d.u,d.j);d.u=null;d.j=null;d.C=!1}}}};
vO=function(a){return(a=a.F.getVideoData(2))?a.clientPlaybackNonce:""};
aCa=function(a){if(a=a.u.j.elementId)return a;g.zD(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
fCa=function(a){function b(h,l){h=a.l8;var m=Object.assign({},{});m.FINAL=DN(Gd("1"));m.SLOT_POS=DN(Gd("0"));return GN(h,FN(m),l)}
function c(h){return null==h?{create:function(){return null}}:{create:function(l,m,n){var p=b(l,m);
m=a.OP(l,p);l=h(l,p,m,n);g.I(l,m);return l}}}
var d=c(function(h,l,m){return new fO(a.F,h,l,m,a.wB,a.Me)}),e=c(function(h,l,m){return new mO(a.F,h,l,m,a.wB,a.Me,a.Tm,a.Aq)}),f=c(function(h,l,m){return new iO(a.F,h,l,m,a.wB,a.Me)});
this.I1=new TBa({create:function(h,l){var m=GN(b(h,l),FN(vAa(h)));l=a.OP(h,m);h=new rO(a.F,h,m,l,a.wB,a.Me,a.daiEnabled,function(){return new ZBa(a.Me,m,a.F,a.Tl)},a.Bq,a.Ci);
g.I(h,l);return h}},d,e,f)};
wO=function(a,b){this.u=a;this.j={};this.B=void 0===b?!1:b};
gCa=function(a,b){var c=a.startSecs+a.Qg;c=0>=c?null:c;if(null===c)return null;switch(a.event){case "start":case "continue":case "stop":break;case "predictStart":if(b)break;return null;default:return null}b=Math.max(a.startSecs,0);return{D2:new aq(b,c),m4:new MD(b,c-b,a.context,a.identifier,a.event,a.j)}};
xO=function(){this.j=[]};
yO=function(a,b,c){var d=g.Ob(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]};
hCa=function(){this.j=new xO};
zO=function(a){this.j=a};
iCa=function(a){a=[a,a.C].filter(function(d){return!!d});
for(var b=g.v(a),c=b.next();!c.done;c=b.next())c.value.u=!0;return a};
jCa=function(a,b,c){this.B=a;this.u=b;this.j=c;a.getCurrentTime()};
kCa=function(a,b,c){a.j&&AO({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})};
lCa=function(a,b){a.j&&AO({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.V1}})};
mCa=function(a,b){AO({daiStateTrigger:{errorType:a,contentCpn:b}})};
AO=function(a){g.nA("adsClientStateChange",a)};
BO=function(a){this.F=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.u=this.ag=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
oCa=function(a,b,c,d,e,f){f();var h=a.F.getVideoData(1),l=a.F.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId,a.j=h.J);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.B=b;0>=d?f():(a.actionType=a.C?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",a.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD","unknown_type"!==a.actionType&&(a.ag=!0,YE("_start",a.actionType)&&nCa(a)))};
pCa=function(a,b){a=g.v(b);for(b=a.next();!b.done;b=a.next())if((b=b.value.renderer)&&(b.instreamVideoAdRenderer||b.linearAdSequenceRenderer||b.sandwichedLinearAdRenderer||b.instreamSurveyAdRenderer)){bF("ad_i");ZE({isMonetized:!0});break}};
nCa=function(a){if(a.ag)if(a.F.K("html5_no_video_to_ad_on_preroll_reset")&&"AD_PLACEMENT_KIND_START"===a.B&&"video_to_ad"===a.actionType)XE("video_to_ad");else if(a.F.K("web_csi_via_jspb")){var b=new xx;b=L(b,8,2);var c=new zx;c=L(c,21,qCa(a.B));c=L(c,7,4);b=Ch(c,xx,22,b);b=L(b,53,a.videoStreamType);"ad_to_video"===a.actionType?(a.contentCpn&&L(b,76,a.contentCpn),a.videoId&&L(b,78,a.videoId)):(a.adCpn&&L(b,76,a.adCpn),a.adVideoId&&L(b,78,a.adVideoId));a.adFormat&&L(b,12,a.adFormat);a.contentCpn&&
L(b,8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&L(b,28,a.adCpn);a.adVideoId&&L(b,20,a.adVideoId);g.iy(SE)(b,a.actionType)}else b={adBreakType:rCa(a.B),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType},"ad_to_video"===a.actionType?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId)),a.adFormat&&(b.adType=
a.adFormat),a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn),a.videoId&&(b.videoId=a.videoId),a.adCpn&&(b.adClientPlaybackNonce=a.adCpn),a.adVideoId&&(b.adVideoId=a.adVideoId),ZE(b,a.actionType)};
rCa=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"}};
qCa=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return 1;case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return 2;case "AD_PLACEMENT_KIND_END":return 3;default:return 0}};
g.tCa=function(a){return(a=sCa[a.toString()])?a:"LICENSE"};
g.DO=function(a){g.CO?a=a.keyCode:(a=a||window.event,a=a.keyCode?a.keyCode:a.which);return a};
EO=function(a){if(g.CO)a=new g.ve(a.pageX,a.pageY);else{a=a||window.event;var b=a.pageX,c=a.pageY;document.body&&document.documentElement&&("number"!==typeof b&&(b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft),"number"!==typeof c&&(c=a.clientY+document.body.scrollTop+document.documentElement.scrollTop));a=new g.ve(b,c)}return a};
g.FO=function(a){return g.CO?a.target:Moa(a)};
GO=function(a){if(g.CO)var b=a.composedPath()[0];else a=a||window.event,a.composedPath&&"function"===typeof a.composedPath?b=a.composedPath():b=a.path,b=b&&b.length?b[0]:Moa(a);return b};
g.HO=function(a){g.CO?a=a.defaultPrevented:(a=a||window.event,a=!1===a.returnValue||a.TU&&a.TU());return a};
uCa=function(a,b){if(g.CO){var c=function(){var d=g.Ca.apply(0,arguments);a.removeEventListener("playing",c);b.apply(null,g.la(d))};
a.addEventListener("playing",c)}else g.Poa(a,"playing",b)};
g.IO=function(a){g.CO?a.preventDefault():Noa(a)};
JO=function(){g.E.call(this);this.tM=!1;this.B=null;this.V=this.J=!1;this.D=new g.Cd;this.va=null;g.I(this,this.D)};
KO=function(a){a=a.VB();return 1>a.length?NaN:a.end(a.length-1)};
vCa=function(a){!a.u&&Hva()&&(a.C?a.C.then(function(){return vCa(a)}):a.Mf()||(a.u=a.xs()))};
wCa=function(a){a.u&&(a.u.dispose(),a.u=void 0)};
BI=function(a,b,c){var d;(null==(d=a.va)?0:d.Qd())&&a.va.xa("rms",b,void 0===c?!1:c)};
xCa=function(a,b,c){a.Hp()||a.getCurrentTime()>b||10<c||(a.play(),g.yy(function(){xCa(a,a.getCurrentTime(),c+1)},500))};
yCa=function(a,b){a.B&&a.B.equals(b)||(a.B&&a.B.dispose(),a.B=b)};
LO=function(a){return rI(a.Mh(),a.getCurrentTime())};
zCa=function(a,b){if(0===a.uj()||0<a.Ye())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.VB(),a.length||!c)?oI(a,b):c};
MO=function(a){a.Mf()&&(ACa&&a.va&&a.va.Kt("rs_s"),kB&&0<a.getCurrentTime()&&a.seekTo(0),a.MH(),a.load(),yCa(a,null));delete a.C};
BCa=function(a){var b=a.Mh();return 0<qI(b)&&a.getDuration()?b.end(b.length-1):0};
NO=function(a){switch(a.Ye()){case 2:return"progressive.net.retryexhausted";case 3:return"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
g.OO=function(a,b){this.j=void 0===b?null:b;this.state=a||64};
PO=function(a,b,c){return b===a.state&&c===a.j||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.OO(b,c)};
QO=function(a,b){return PO(a,a.state|b)};
RO=function(a,b){return PO(a,a.state&~b)};
SO=function(a,b,c){return PO(a,(a.state|b)&~c)};
g.UN=function(a,b){return!!(a.state&b)};
g.TO=function(a,b){return b.state===a.state&&b.j===a.j};
g.UO=function(a){return g.UN(a,4)};
g.VO=function(a){return g.UN(a,8)&&!g.UN(a,2)&&!g.UN(a,1024)};
WO=function(a){return a.Yc()&&!g.UN(a,16)&&!g.UN(a,32)};
g.XO=function(a){return g.UN(a,1)&&!g.UN(a,2)};
YO=function(a){return g.UN(a,128)?-1:g.UN(a,2)?0:g.UN(a,64)?-1:g.UN(a,1)&&!g.UN(a,32)?3:g.UN(a,8)?1:g.UN(a,4)?2:-1};
ZO=function(a,b,c,d,e,f,h,l){g.aE.call(this);this.ri=a;this.F=b;this.u=d;this.J=this.u.u instanceof eN?this.u.u:null;this.j=null;this.Z=!1;this.D=c;this.ea=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.ya=0;this.Aa=!1;this.Kp=e;this.gy=f;this.du=h;this.oa=!1;this.daiEnabled=l};
CCa=function(a){if(fN(a.F)){var b=a.F.getVideoData(2);b=a.u.V[b.Mc]||null;if(!b)return a.uF(),!0;(!a.j||a.j&&a.j.ad!==b)&&a.KA(b)}else if(1===a.F.getPresentingPlayerType()&&a.j)return a.uF(),!0;return!1};
DCa=function(a,b){a.D.Nx(a.u.j.j,b,a.ET(),a.FT(),a.isLiveStream())};
$O=function(a){var b=a.ri,c=a.u.j;if(c instanceof YD){if(b.V&&Usa(c)&&g.UN(b.j.Cb(1),64)){var d=1E3*b.j.getCurrentTime(1)||0;d!=c.start&&c.contains(d)&&(c.u=!0)}b.B.has(c)?g.zD(Error(c.toString()+" has already been seen")):(b.fu.add(c),b.B.set(c,a),ZD(c)||b.j.Ae([c],1))}else g.zD(Error("Should use AdCueRange instead of CueRange"));a.daiEnabled&&!a.u.I&&(ECa(a,a.GT()),a.u.I=!0)};
ECa=function(a,b){for(var c=aP(a),d=a.u.j.start,e=[],f=g.v(b),h=f.next();!h.done;h=f.next()){h=h.value;if(c<=d)break;var l=FCa(h);e.push({externalVideoId:h.Pd(),originalMediaDurationMs:(1E3*h.u).toString(),trimmedMediaDurationMs:(parseInt(h.j.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);h.B.C=a.u.j.start;h.B.B=c;if(!GCa(a,h,d,m)||l!==m)break;d=l}b=b.reduce(function(n,p){return n+FCa(p)},0);
kCa(a.Kp,a.u.j.Hl(),b);lCa(a.Kp,{cueIdentifier:a.u.C&&a.u.C.identifier,V1:e})};
FCa=function(a){var b=1E3*a.u;return 0<parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10):b};
aP=function(a){var b=a.u.j.end;a=yO(a.gy,a.u.j.start,b);return Math.min(b,null===a?Infinity:a)};
GCa=function(a,b,c,d){var e=a.du.create(b,FN(uAa(a.u)),a.u.j.j);c=e.qT(c,d);g.gb(e);if(!c)return!1;a.u.V[c]=b;return!0};
cP=function(a,b){b=void 0===b?!1:b;a.Z=!0;g.gb(a.j);a.D.Tz();var c=a.u.J;if(null!==c){var d=a.Kp,e=a.u.C&&a.u.C.identifier,f=a.u.j.start,h=aP(a);d.j&&AO({driftRecoveryInfo:{contentCpn:d.u,cueIdentifier:e||void 0,driftRecoveryMs:c.toString(),breakDurationMs:Math.round(h-f).toString(),driftFromHeadMs:Math.round(1E3*d.B.ls()).toString()}});a.u.J=null}b||a.daiEnabled?bP(a.ri,!0):a.ea&&a.nR()&&a.xC()?bP(a.ri,!1,HCa(a)):bP(a.ri,!1);DCa(a,!0)};
HCa=function(a){if(a.Aa)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.Va()/1E3)-a.ya;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
ICa=function(a,b,c){this.j=a;this.u=b;this.B=c};
LCa=function(a){var b=g.S(a,g.rM);a=g.S(a,JCa);if(b){if(a=KCa(b,"VIDEO"))return{token:a,videoId:b.videoId}}else if(a&&(b=KCa(a,"PLAYLIST")))return{token:b,playlistId:a.playlistId}};
KCa=function(a,b){var c,d;a=(null==(c=a.watchEndpointSupportedAuthorizationTokenConfig)?void 0:null==(d=c.videoAuthorizationToken)?void 0:d.credentialTransferTokens)||[];for(c=0;c<a.length;++c)if(a[c].scope===b)return a[c].token||void 0};
MCa=function(a){a=void 0===a||a?GD(16):Esa(16);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
dP=function(a){EB.call(this,1,arguments);this.csn=a};
QCa=function(a,b,c,d,e,f,h,l){function m(){g.AD(new g.Yz("newScreen() parent element does not have a VE - rootVe",b))}
var n=NCa(),p=new xE({veType:b,youtubeData:f,jspbYoutubeData:void 0});f={sequenceGroup:n};e&&(f.cttAuthInfo=e);if(g.cy("il_via_jspb")){e=vna((new nx).j(n),p.getAsJspb());c&&c.visualElement?(p=new mx,c.clientScreenNonce&&L(p,2,c.clientScreenNonce),una(p,c.visualElement.getAsJspb()),h&&L(p,4,OCa[h]),Ch(e,mx,5,p)):c&&m();d&&L(e,3,d);if(g.cy("expectation_logging")&&l&&l.screenCreatedLoggingExpectations){c=new Fs;l=g.v(l.screenCreatedLoggingExpectations.expectedParentScreens||[]);for(d=l.next();!d.done;d=
l.next())d=d.value,d.screenVeType&&(d=Dma(new Ds,d.screenVeType),c.j(d));Ch(e,Fs,7,c)}esa(e,f,a)}else e={csn:n,pageVe:p.getAsJson()},g.cy("expectation_logging")&&l&&l.screenCreatedLoggingExpectations&&(e.screenCreatedLoggingExpectations=l.screenCreatedLoggingExpectations),c&&c.visualElement?(e.implicitGesture={parentCsn:c.clientScreenNonce,gesturedVe:c.visualElement.getAsJson()},h&&(e.implicitGesture.gestureType=h)):c&&m(),d&&(e.cloneCsn=d),a?pD("screenCreated",e,a,f):g.nA("screenCreated",e,f);HB(PCa,
new dP(n));return n};
g.fP=function(a,b,c,d){g.eP(a,b,c,[d])};
g.eP=function(a,b,c,d){var e=d.filter(function(m){m.csn!==b?(m.csn=b,m=!0):m=!1;return m}),f={cttAuthInfo:DE(b)||void 0,
sequenceGroup:b};d=g.v(d);for(var h=d.next();!h.done;h=d.next())h=h.value.getAsJson(),(g.fd(h)||!h.trackingParams&&!h.veType)&&g.AD(Error("Child VE logged with no data"));if(g.cy("il_via_jspb")){var l=xna((new ox).j(b),c.getAsJspb());g.$l(e,function(m){m=m.getAsJspb();Hh(l,3,Qv,m)});
"UNDEFINED_CSN"===b?gP("visualElementAttached",f,void 0,l):gsa(l,f,a)}else c={csn:b,parentVe:c.getAsJson(),childVes:g.$l(e,function(m){return m.getAsJson()})},"UNDEFINED_CSN"===b?gP("visualElementAttached",f,c):a?pD("visualElementAttached",c,a,f):g.nA("visualElementAttached",c,f)};
RCa=function(a,b,c,d,e,f){d={cttAuthInfo:DE(b)||void 0,sequenceGroup:b};g.cy("il_via_jspb")?(e=(new rx).j(b),c=c.getAsJspb(),c=Ch(e,Qv,2,c),c=L(c,4,1),f&&Ch(c,lx,3,f),"UNDEFINED_CSN"===b?gP("visualElementShown",d,void 0,c):yD(c,d,a)):(f={csn:b,ve:c.getAsJson(),eventType:1},e&&(f.clientData=e),"UNDEFINED_CSN"===b?gP("visualElementShown",d,f):a?pD("visualElementShown",f,a,d):g.nA("visualElementShown",f,d))};
hP=function(a,b,c,d){var e=(d=void 0===d?!1:d)?16:8,f={cttAuthInfo:DE(b)||void 0,sequenceGroup:b,endOfSequence:d};g.cy("il_via_jspb")?(e=(new qx).j(b),c=c.getAsJspb(),c=Ch(e,Qv,2,c),L(c,4,d?16:8),"UNDEFINED_CSN"===b?gP("visualElementHidden",f,void 0,c):bsa(c,f,a)):(d={csn:b,ve:c.getAsJson(),eventType:e},"UNDEFINED_CSN"===b?gP("visualElementHidden",f,d):a?pD("visualElementHidden",d,a,f):g.nA("visualElementHidden",d,f))};
SCa=function(a,b,c,d,e){iP(a,b,c,d,e)};
iP=function(a,b,c,d,e){var f={cttAuthInfo:DE(b)||void 0,sequenceGroup:b};g.cy("il_via_jspb")?(d=(new px).j(b),c=c.getAsJspb(),c=Ch(d,Qv,2,c),L(c,4,OCa.INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK),e&&Ch(c,lx,3,e),"UNDEFINED_CSN"===b?gP("visualElementGestured",f,void 0,c):csa(c,f,a)):(e={csn:b,ve:c.getAsJson(),gestureType:"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"},d&&(e.clientData=d),"UNDEFINED_CSN"===b?gP("visualElementGestured",f,e):a?pD("visualElementGestured",e,a,f):g.nA("visualElementGestured",
e,f))};
TCa=function(a,b,c,d){var e={cttAuthInfo:DE(b)||void 0,sequenceGroup:b};g.cy("il_via_jspb")?(d=new sx,d.j(b),c=c.getAsJspb(),Ch(d,Qv,2,c),"UNDEFINED_CSN"===b?gP("visualElementStateChanged",e,void 0,d):dsa(d,e,a)):(c={csn:b,ve:c.getAsJson(),clientData:d},"UNDEFINED_CSN"===b?gP("visualElementStateChanged",e,c):a?pD("visualElementStateChanged",c,a,e):g.nA("visualElementStateChanged",c,e))};
UCa=function(){var a;g.cy("enable_web_96_bit_csn")?a=MCa():g.cy("enable_web_96_bit_csn_no_crypto")?a=MCa(!1):a=g.Zf(g.Yf(Math.random()+""),3);return a};
gP=function(a,b,c,d){jP.push({payloadName:a,payload:c,Os:d,options:b});kP||(kP=KB(PCa,VCa))};
VCa=function(a){if(jP){for(var b=g.v(jP),c=b.next();!c.done;c=b.next())if(c=c.value,g.cy("il_via_jspb")&&c.Os)switch(c.Os.j(a.csn),c.payloadName){case "screenCreated":esa(c.Os,c.options);break;case "visualElementAttached":gsa(c.Os,c.options);break;case "visualElementShown":yD(c.Os,c.options);break;case "visualElementHidden":bsa(c.Os,c.options);break;case "visualElementGestured":csa(c.Os,c.options);break;case "visualElementStateChanged":dsa(c.Os,c.options);break;default:g.AD(new g.Yz("flushQueue unable to map payloadName to JSPB setter"))}else c.payload&&
(c.payload.csn=a.csn,g.nA(c.payloadName,c.payload,c.options));jP.length=0}kP=0};
g.lP=function(a,b,c,d){g.iy(RCa)(void 0,a,b,c,d,void 0)};
g.mP=function(a,b){g.iy(function(){g.Ub(b,function(c){var d={cttAuthInfo:DE(a)||void 0,sequenceGroup:a};if(g.cy("il_via_jspb")){var e=(new rx).j(a);c=c.getAsJspb();e=Ch(e,Qv,2,c);e=L(e,4,4);"UNDEFINED_CSN"===a?gP("visualElementShown",d,void 0,e):yD(e,d)}else e={csn:a,ve:c.getAsJson(),eventType:4},"UNDEFINED_CSN"===a?gP("visualElementShown",d,e):g.nA("visualElementShown",e,d)})})()};
g.nP=function(a,b){g.iy(function(){g.Ub(b,function(c){hP(void 0,a,c)})})()};
g.oP=function(a,b,c){g.iy(SCa)(void 0,a,b,c,void 0)};
pP=function(){this.B=new Set;this.u=new Set;this.C=new Map;this.client=void 0;this.csn=null};
qP=function(){pP.instance||(pP.instance=new pP);return pP.instance};
rP=function(){};
WCa=function(){rP.instance||(rP.instance=new rP);g.iy(qP().j).bind(qP())()};
sP=function(){this.J=[];this.V=[];this.j=[];this.oa=[];this.D=[];this.ea=[];this.B=new Map;this.I=new Map;this.u=new Set;this.ya=new Map};
tP=function(){sP.instance||(sP.instance=new sP);return sP.instance};
XCa=function(a,b,c,d){d=void 0===d?0:d;var e=g.CE(d);b=b||g.BE(d);e&&b&&TCa(a.client,e,b,c)};
ZCa=function(a,b,c,d){d=void 0===d?{}:d;a.u.add(d.layer||0);a.C=function(){YCa(a,b,c,d);var h=g.BE(d.layer);if(h){for(var l=g.v(a.J),m=l.next();!m.done;m=l.next())m=m.value,a.eq(m[0],m[1]||h,d.layer);h=g.v(a.V);for(l=h.next();!l.done;l=h.next())l=l.value,XCa(a,l[0],l[1])}};
c||g.CE(d.layer)||a.C();if(d.jB)for(var e=g.v(d.jB),f=e.next();!f.done;f=e.next())a.eM(f.value,d.layer);else g.zD(Error("Delayed screen needs a data promise."))};
YCa=function(a,b,c,d){d=void 0===d?{}:d;var e=void 0;d.layer||(d.layer=0);e=void 0!==d.parentLayer?d.parentLayer:d.layer;var f=g.CE(e);e=g.BE(e);var h=c||e,l;h&&(void 0!==d.parentCsn?l={clientScreenNonce:d.parentCsn,visualElement:h}:f&&"UNDEFINED_CSN"!==f&&(l={clientScreenNonce:f,visualElement:h}));var m;h=g.ay("EVENT_ID");"UNDEFINED_CSN"===f&&h&&(m={servletData:{serializedServletEventId:h}});g.cy("combine_ve_grafts")&&f&&$Ca(a,f);try{var n=QCa(a.client,b,l,d.fB,d.cttAuthInfo,m,d.implicitGestureType,
d.loggingExpectations)}catch(t){qsa(t,{Gz:b,rootVe:e,d8:c,F2:f,c8:l,fB:d.fB});g.zD(t);return}EE(n,b,d.layer,d.cttAuthInfo);f&&"UNDEFINED_CSN"!==f&&e&&!nta(f)&&hP(a.client,f,e,!0);a.j[a.j.length-1]&&!a.j[a.j.length-1].csn&&(a.j[a.j.length-1].csn=n||"");ZE({clientScreenNonce:n});WCa();var p=g.BE(d.layer);f&&"UNDEFINED_CSN"!==f&&p&&(g.cy("web_mark_root_visible")||g.cy("music_web_mark_root_visible"))&&g.lP(n,p);a.u.delete(d.layer||0);a.C=void 0;var q;null==(q=a.ya.get(d.layer))||q.forEach(function(t,
w){t?a.eq(w,t,d.layer):p&&a.eq(w,p,d.layer)});
aDa(a)};
aDa=function(a){for(var b=0;b<a.D.length;b++){var c=a.D[b];try{c()}catch(d){g.zD(d)}}for(b=a.D.length=0;b<a.ea.length;b++){c=a.ea[b];try{c()}catch(d){g.zD(d)}}};
$Ca=function(a,b){a.B.forEach(function(c,d){(d=a.I.get(d))&&g.eP(a.client,b,d,c)});
a.B.clear();a.I.clear();a.Z=void 0};
uP=function(){this.J=[];this.V=[];this.j=[];this.oa=[];this.D=[];this.ea=[];this.B=new Map;this.I=new Map;this.u=new Set;this.ya=new Map};
bDa=function(a,b,c,d){d=void 0===d?0:d;var e=g.CE(d);b=b||g.BE(d);e&&b&&TCa(a.client,e,b,c)};
dDa=function(a,b,c,d){d=void 0===d?{}:d;a.u.add(d.layer||0);a.C=function(){cDa(a,b,c,d);var h=g.BE(d.layer);if(h){for(var l=g.v(a.J),m=l.next();!m.done;m=l.next())m=m.value,a.eq(m[0],m[1]||h,d.layer);h=g.v(a.V);for(l=h.next();!l.done;l=h.next())l=l.value,bDa(a,l[0],l[1])}};
c||g.CE(d.layer)||a.C();if(d.jB)for(var e=g.v(d.jB),f=e.next();!f.done;f=e.next())a.eM(f.value,d.layer);else g.zD(Error("Delayed screen needs a data promise."))};
cDa=function(a,b,c,d){d=void 0===d?{}:d;var e=void 0;d.layer||(d.layer=0);e=void 0!==d.parentLayer?d.parentLayer:d.layer;var f=g.CE(e);e=g.BE(e);var h=c||e,l;h&&(void 0!==d.parentCsn?l={clientScreenNonce:d.parentCsn,visualElement:h}:f&&"UNDEFINED_CSN"!==f&&(l={clientScreenNonce:f,visualElement:h}));var m;h=g.ay("EVENT_ID");"UNDEFINED_CSN"===f&&h&&(m={servletData:{serializedServletEventId:h}});g.cy("combine_ve_grafts")&&f&&eDa(a,f);try{var n=QCa(a.client,b,l,d.fB,d.cttAuthInfo,m,d.implicitGestureType,
d.loggingExpectations)}catch(t){qsa(t,{Gz:b,rootVe:e,d8:c,F2:f,c8:l,fB:d.fB});g.zD(t);return}EE(n,b,d.layer,d.cttAuthInfo);f&&"UNDEFINED_CSN"!==f&&e&&!nta(f)&&hP(a.client,f,e,!0);a.j[a.j.length-1]&&!a.j[a.j.length-1].csn&&(a.j[a.j.length-1].csn=n||"");ZE({clientScreenNonce:n});WCa();var p=g.BE(d.layer);f&&"UNDEFINED_CSN"!==f&&p&&(g.cy("web_mark_root_visible")||g.cy("music_web_mark_root_visible"))&&g.lP(n,p);a.u.delete(d.layer||0);a.C=void 0;var q;null==(q=a.ya.get(d.layer))||q.forEach(function(t,
w){t?a.eq(w,t,d.layer):p&&a.eq(w,p,d.layer)});
fDa(a)};
fDa=function(a){for(var b=0;b<a.D.length;b++){var c=a.D[b];try{c()}catch(d){g.zD(d)}}for(b=a.D.length=0;b<a.ea.length;b++){c=a.ea[b];try{c()}catch(d){g.zD(d)}}};
eDa=function(a,b){a.B.forEach(function(c,d){(d=a.I.get(d))&&g.eP(a.client,b,d,c)});
a.B.clear();a.I.clear();a.Z=void 0};
hDa=function(){var a=void 0===a?window.location.href:a;if(g.cy("kevlar_disable_theme_param"))return null;Mi(g.Oi(5,a));try{var b=g.oy(a).theme;return gDa.get(b)||null}catch(c){}return null};
vP=function(){this.j={};if(this.u=hoa()){var a=g.Oy("CONSISTENCY");a&&iDa(this,{encryptedTokenJarContents:a})}};
iDa=function(a,b){if(b.encryptedTokenJarContents&&(a.j[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.j[b.encryptedTokenJarContents]},1E3*c);
a.u&&g.Ny("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
xP=function(){var a=g.ay("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.ay("INNERTUBE_CLIENT_NAME")&&(this.localStorage=wP(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
wP=function(a){return void 0===a.localStorage?new hA("yt-client-location"):a.localStorage};
g.yP=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.ay("INNERTUBE_CONTEXT");if(!d)return g.zD(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.kd(d);g.cy("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&(e.clientFormFactor=g.ay("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints=window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio||
1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var f=void 0===f?!1:f;g.Sz();var h="USER_INTERFACE_THEME_LIGHT";g.Tz(0,165)?h="USER_INTERFACE_THEME_DARK":g.Tz(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.cy("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:hDa()||h;e.userInterfaceTheme=f;if(!b){if(f=
Zoa())e.connectionType=f;g.cy("web_log_effective_connection_type")&&(f=apa())&&(d.client.effectiveConnectionType=f)}var l;if(g.cy("web_log_memory_total_kbytes")&&(null==(l=g.Ja.navigator)?0:l.deviceMemory)){var m;l=null==(m=g.Ja.navigator)?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+1E6*l}m=g.oy(g.Ja.location.href);!g.cy("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);"MWEB"===e.clientName||"WEB"===e.clientName?(e.mainAppWebInfo={graftUrl:g.Ja.location.href},
g.cy("kevlar_woffle")&&Uoa.instance&&(m=Uoa.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.u?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=Qz(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&(!g.cy("web_lr_app_quality_killswitch")&&(m=g.ay("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.ay("LIVING_ROOM_CERTIFICATION_SCOPE"))&&
(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.cy("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(O){}n=void 0}n&&(e.timeZone=n)}(n=ey())?e.experimentsToken=n:delete e.experimentsToken;n=fy();vP.instance||(vP.instance=new vP);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:$c(vP.instance.j)});!g.cy("web_prequest_context_killswitch")&&
(n=g.ay("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.Sz();n=g.Tz(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.cy("warm_op_csn_cleanup")?c&&(b=g.CE())&&(d.clientScreenNonce=b):!b&&(b=g.CE())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.La("yt.mdx.remote.remoteClient_"))d.remoteClient=a;xP.getInstance().setLocationOnInnerTubeContext(d);try{var p=uy(),q=p.bid;
delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var t=g.v(Object.entries(p)),w=t.next();!w.done;w=t.next()){var z=g.v(w.value),C=z.next().value,G=z.next().value;p=C;q=G;a=void 0;null==(a=d.adSignalsInfo.params)||a.push({key:p,value:""+q})}}catch(O){g.zD(O)}return d};
zP=function(){Pz.apply(this,arguments);this.Yv={}};
BP=function(){AP||(AP=new zP);return AP};
CP=function(a,b){b?a.Yv.Authorization="Bearer "+b:delete a.Yv.Authorization};
jDa=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
kDa=function(){var a=null;xoa().then(function(b){return a=b},function(b){return a=jDa(b)});
return a};
lDa=function(){var a=Nf(1E3,"NO_BID");return Jf(yca([xoa(),a]).Zj(jDa),function(){a.cancel()})};
mDa=function(a){return a.Wd?g.Tz(g.Sz(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
DP=function(a){this.player=a;this.u=this.j=1};
FP=function(a,b,c,d){var e=void 0===c?{}:c;c=e.gB;e=e.oe;d=void 0===d?"":d;var f=a.player.getVideoData(1),h=a.player.T().Qn,l={AD_BLOCK:a.j++,AD_BREAK_LENGTH:c?c.Qg:0,AUTONAV_STATE:mDa(a.player.T()),CA_TYPE:"image",CPN:f.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.ls(),LACT:KC(),LIVE_INDEX:c?a.u++:1,LIVE_TARGETING_CONTEXT:c&&c.context?c.context:"",MIDROLL_POS:e?Math.round(e.start/1E3):0,MIDROLL_POS_MS:e?Math.round(e.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.jb().Fj().height,
P_W:a.player.jb().Fj().width,YT_REMOTE:h?h.join(","):""},m=Sna(Rna);Object.keys(m).forEach(function(p){null!=m[p]&&(l[p.toUpperCase()]=m[p].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};ty(b)&&(d.sts="19478",(c=a.player.T().forcedExperiments)&&(d.forced_experiments=c));var n=qy(g.pp(b,l),d);a.player.getVideoData();return 2!==n.split("?").length?Hf(Error("Invalid AdBreakInfo URL")):g.QK(a.player.T(),null==f?void 0:f.oauthToken).then(function(p){if(p&&sy()){var q=BP();CP(q,p)}p=a.player.Mm(q);q=nDa(a,n,l,f.isMdxPlayback);return g.EP(p,q,"/youtubei/v1/player/ad_break").then(function(t){return t})})};
qDa=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=ry(b),f=oDa(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=oDa(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=ly(uy(c)).split("&");var l=new Map;b.forEach(function(m){m=m.split("=");1<m.length&&l.set(m[0].toString(),decodeURIComponent(m[1].toString()))});
l.has("bid")&&(h.bid=l.get("bid"));h.params=[];pDa.forEach(function(m){l.has(m)&&(m={key:m,value:l.get(m)},h.params.push(m))});
a.adSignalsInfo=h}a.client.unpluggedAppInfo||(a.client.unpluggedAppInfo={});a.client.unpluggedAppInfo.enableFilterMode=!1;b=d.j.cosver;null!=b&&"cosver"!==b&&(a.client.osVersion=b);b=d.j.cplatform;null!=b&&"cplatform"!==b&&""!==b&&(a.client.platform=b);b=d.j.cmodel;null!=b&&"cmodel"!==b&&(a.client.deviceModel=b);b=d.j.cplayer;null!=b&&"cplayer"!==b&&(a.client.playerType=b);d=d.j.cbrand;null!=d&&"cbrand"!==d&&(a.client.deviceMake=d);a.user||(a.user={});a.user.lockedSafetyMode=!1};
tDa=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("-");3>d.length||(d[0]in rDa&&(f.clientName=rDa[d[0]]),d[1]in sDa&&(f.platform=sDa[d[1]]),f.applicationState=h,f.clientVersion=2<d.length?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)});
return c};
nDa=function(a,b,c,d){var e=c.DRIFT_FROM_HEAD_MS&&!Number.isNaN(c.DRIFT_FROM_HEAD_MS)?Math.trunc(c.DRIFT_FROM_HEAD_MS):0,f=uDa.exec(b);f=null!=f&&2<=f.length?f[1]:"";var h=vDa.test(b),l=wDa.exec(b);l=null!=l&&2<=l.length?l[1]:"";var m=xDa.exec(b);m=null!=m&&2<=m.length&&!Number.isNaN(Number(m[1]))?Number(m[1]):1;var n=yDa.exec(b);n=null!=n&&2<=n.length?n[1]:"0";var p=tK(a.player.T().La),q=g.yP(a.player.getVideoData(1).ya,!0),t="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";qDa(q,b,t.toString(),a.player.T());
var w={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:19478,autonavState:mDa(a.player.T())};d&&(d={},tDa(d,c.YT_REMOTE)&&(w.mdxContext=d));if(d=zDa.includes(p)?void 0:g.Oy("PREF")){for(var z=d.split(RegExp("[:&]")),C=0,G=z.length;C<G;C++){var O=z[C].split("=");if(("SML"===O[0].toUpperCase()||"GSML"===O[0].toUpperCase())&&1<O.length&&"TRUE"===O[1].toUpperCase()){q.user.lockedSafetyMode=!0;
break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in ADa)for(d=d.split(RegExp("[:&]")),C=ADa.FLAG_AUTO_CAPTIONS_DEFAULT_ON,z="f"+(1+Math.floor(C/31)).toString(),C=1<<Math.floor(C%31),G=0,O=d.length;G<O;G++){var N=d[G].split("=");if(N[0]===z&&parseInt("0x"+N[1],16)&C){d=!0;break a}}d=!1}w.autoCaptionsDefaultOn=d}b=BDa.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&l&&(q.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:w};f={adBlock:Math.trunc(c.AD_BLOCK),params:f,breakIndex:m,
breakPositionMs:n,clientPlaybackNonce:c.CPN,topLevelDomain:p,isProxyAdTagRequest:h,context:q,adSignalsInfoString:ly(uy(t.toString())),overridePlaybackContext:b};l&&(f.videoId=l);c.LIVE_TARGETING_CONTEXT&&(f.liveTargetingParams=c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(f.breakLengthMs=Math.trunc(1E3*c.AD_BREAK_LENGTH).toString());e&&(f.driftFromHeadMs=e.toString());f.currentMediaTimeMs=Math.round(1E3*a.player.getCurrentTime(1));return f};
GP=function(a,b,c,d,e,f){g.aE.call(this);this.I=a;this.u=b;this.D=c;this.C=d;this.j=e;this.B=f};
CDa=function(a,b){var c={isEmpty:!0,ZU:!1,po:[]};if(!b)return c;if(b&&b.trackingParams){if(g.cy("use_core_sm"))var d=tP();else uP.instance||(uP.instance=new uP),d=uP.instance;d.cq(b.trackingParams)}if(b&&b.adThrottled)return c.ZU=!0,c;b=b.playerAds;if(!b||!b.length)return c;b=b.map(function(f){return f.adPlacementRenderer}).filter(function(f){return f&&null!=f.renderer});
if(g.xb(b))return c;if(0<a.j.j.end){var e=a.j.j.end.toString();b.forEach(function(f){(f=f.config&&f.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"==f.kind&&"-1"==f.adTimeOffset.offsetEndMilliseconds&&f.adTimeOffset.offsetEndMilliseconds!=e&&(f.adTimeOffset.offsetEndMilliseconds=e)})}c.po=b;
c.isEmpty=!1;return c};
DDa=function(){eN.apply(this,arguments)};
HP=function(a,b,c,d,e,f,h,l){ZO.call(this,a,b,c,d,e,f,h,l);this.B=d.u;this.C=-1;this.I=null;this.V=EDa(this.WF())};
FDa=function(a){a.C++;var b=a.WF();b?(0<a.C&&a.D.tP(),a.KA(b)):cP(a)};
EDa=function(a){return a?GDa.some(function(b){return a instanceof b}):!1};
HDa=function(a){this.j=new ICa(function(b){b=new ZO(a.ri,a.F,a.eT(),b,a.Kp,a.gy,a.du,a.daiEnabled);$O(b);return b},function(b){return new GP(a.iK,a.ri,a.F,a.au,b,a.Kp)},function(b){b=new HP(a.ri,a.F,a.eT(),b,a.Kp,a.gy,a.du,a.daiEnabled);
$O(b);return b})};
IDa=function(a,b){tN.call(this);a.adStart&&g.S(a.adStart,IP)&&(g.nA("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),uN(this,new hO(g.S(a.adStart,IP))));if(a.linearAds){var c=[];a=g.v(a.linearAds);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(g.S(d,JP)){var e=b(g.S(d,JP));uN(this,e);c.push(e.u);g.S(d,JP).isCritical&&(this.u=1)}else g.S(d,KP)?(d=new dO(g.S(d,KP)),uN(this,d)):g.S(d,LP)&&(d=new gO(g.S(d,LP)),uN(this,d),this.u=1);this.j.filter(function(f){return f instanceof
sN}).forEach(function(f,h){f instanceof sN&&(h=new oN(h,c),f.B=h)})}}};
KDa=function(a,b){tN.call(this);uN(this,JDa(this,a.adVideoStart));var c=a.linearAd;b=c&&g.S(c,JP)?b(g.S(c,JP)):null;uN(this,b);(a=a.adVideoEnd)?g.S(a,KP)?(this.u=1,a=new dO(g.S(a,KP))):a=null:a=null;uN(this,a)};
JDa=function(a,b){return null==b?null:g.S(b,KP)?(a.u=1,new dO(g.S(b,KP))):g.S(b,IP)?(g.nA("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new hO(g.S(b,IP))):null};
LDa=function(a,b){this.B=new kAa;this.j=a;this.u=b};
MDa=function(a){this.j=a};
NDa=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,h=e?a.j.create(e,f):null;return new pAa(b,c,h,d)}catch(l){g.zD(l)}};
ODa=function(a){var b=new MDa(a.J1);return{DT:function(){return b}}};
MP=function(a){g.E.call(this);var b=this;this.u=a;this.j=null;g.lb(this,function(){return b.j=null});
var c=xz(a);if(c){var d=function(){b.j&&b.j(!!vz())};
this.u.addEventListener(c,d);g.lb(this,function(){b.u.removeEventListener(c,d)})}};
NP=function(a){g.E.call(this);this.j=a};
PDa=function(a){var b=window.document;return g.IK(a.T())?new MP(b):new NP(a)};
QDa=function(a){g.E.call(this);this.S_=new jCa(a.F,a.contentCpn,a.daiEnabled)};
RDa=function(a){OP=a&&a.data};
SDa=function(a){PP=a&&a.data};
TDa=function(a){QP=a&&a.data};
UDa=function(){RP=QP=PP=OP=null};
UP=function(a){g.E.call(this);var b=this;this.Ad=a;this.rf=new Map;this.j=new Map;SP(this,"commandExecutorCommand",function(c,d,e){b.Gg(c.commands,d,e)});
TP(this,"commandExecutorCommand",function(c,d,e){VDa(b,c.commands,d,e)});
SP(this,"clickTrackingParams",function(){});
TP(this,"clickTrackingParams",function(){})};
WDa=function(a,b){SP(a,b.Go(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
XDa=function(a,b){TP(a,b.Go(),function(c,d,e){b.Ds(c,d,e)})};
SP=function(a,b,c){a.isDisposed();a.rf.get(b)&&g.zD(Error("Extension name "+b+" already registered"));a.rf.set(b,c)};
TP=function(a,b,c){a.isDisposed();a.j.get(b)&&g.zD(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
VDa=function(a,b,c,d){b=void 0===b?[]:b;a.isDisposed();var e=[],f=[],h=g.v(b);for(b=h.next();!b.done;b=h.next())b=b.value,g.S(b,YDa)||g.S(b,ZDa)?e.push(b):f.push(b);e=g.v(e);for(b=e.next();!b.done;b=e.next())VP(a,b.value,c,d);f=g.v(f);for(b=f.next();!b.done;b=f.next())VP(a,b.value,c,d)};
$Da=function(a,b){a.Ad.get().Na("innertubeCommand",{openPopupAction:b})};
aEa=function(a,b){a.Ad.get().Na("innertubeCommand",{confirmDialogEndpoint:b})};
VP=function(a,b,c,d){a.isDisposed();b.loggingUrls&&bEa(a,"loggingUrls",b.loggingUrls,c,d);b=g.v(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.v(e.value);e=f.next().value;f=f.next().value;"openPopupAction"===e?$Da(a,f):"confirmDialogEndpoint"===e?aEa(a,f):cEa.hasOwnProperty(e)||bEa(a,e,f,c,d)}};
dEa=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.rf.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.zD(f)}else b=new g.Yz("Unhandled field",b),g.AD(b)};
bEa=function(a,b,c,d,e){if((a=a.j.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.zD(f)}else b=new g.Yz("Unhandled field",b),g.AD(b)};
eEa=function(a){var b=new IN(a.Al),c=new MN(b);return{n3:function(){return b},
UL:function(){return c}}};
WP=function(a){BO.call(this,a)};
PBa=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 "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}};
fEa=function(a){this.F=a;var b=cm(lp),c=a.mf();b.B!==c&&((b.B=c)||Lka(b));a.T().K("active_view_stop_starting_measurement_on_loaded")&&wl(hm().Ac,"ssmol",1)};
JBa=function(a){np(cm(lp),a)};
gEa=function(a){g.E.call(this);this.j=a;this.u=new fEa(a.F)};
hEa=function(a){return function(){return new WP(a.j.F)}};
iEa=function(a){return function(b,c){return new KBa(b,a.u,c,a.j.F,a.j.Tl,a.j.daiEnabled)}};
XP=function(a,b,c,d,e){g.aE.call(this);var f=this;this.j=b;this.Ga=null;this.Za=c;this.ob=e.Ci;this.Ya=e.nt;this.u=null;this.B=new Map;c=this.j.T().experiments;var h=eEa({Al:b.getVideoData(1)}),l=new gEa({Tl:h.UL(),F:b,daiEnabled:!1});g.I(this,l);this.fu=new Set;this.oG=-1;this.ea=[];this.Z=new Map;this.I=new Map;this.J=new Set;this.C=new Fz(this);g.I(this,this.C);this.D=new Fz(this);g.I(this,this.D);this.oa=this.Wa=this.ya=!1;this.V=g.IK(b.T());this.tb=d;b=new QDa({contentCpn:this.j.getVideoData(1).clientPlaybackNonce,
P6a:this,daiEnabled:!1,F:this.j});g.I(this,b);this.ib=b.S_;this.La=(new hCa).j;var m=iba(FN(EN(this.j)));e=new fCa({Me:this,wB:nN(),Tl:h.UL(),F:this.j,l8:m,OP:iEa(l),daiEnabled:!1,Bq:e.Bq,Ci:this.ob,Tm:e.Tm,Aq:e.Aq});this.Aa=(new HDa({au:this.Za,du:e.I1,iK:a,ri:this,wB:nN(),eT:hEa(l),Kp:this.ib,gy:this.La,F:this.j,U8a:m,OP:function(n){return iEa(l)(n,m)},
daiEnabled:!1})).CT();this.Ja=ODa({J1:new LDa(c,function(n){return f.I.has(n)?f.I.get(n):null})}).DT();
this.Pa=PDa(this.j);g.I(this,this.Pa);this.Nb=NK(this.j.T())?this.j.T().experiments.kb("align_ad_to_video_player_lifecycle_for_bulleit_living_room"):this.j.T().experiments.kb("align_ad_to_video_player_lifecycle_for_bulleit")};
oEa=function(a,b){if(a.j.getVideoData(1).Au||g.ay("SERVED_VIA_SPF_HISTORY"))YP(a);else{if(gN(a.j)){var c=jEa(a.j);c.addEventListener("updateKevlarOrC3Companion",RDa);c.addEventListener("updateEngagementPanelAction",SDa);c.addEventListener("changeEngagementPanelVisibility",TDa);window.addEventListener("yt-navigate-start",UDa)}a.C.S(a.j,"applicationplayerstatechange",a.A5);a.C.S(a.j,g.WD("ad"),a.EN,a);a.C.S(a.j,g.XD("ad"),a.S5,a);a.C.S(a.j,"aduxclicked",a.o5);a.C.S(a.j,"videodatachange",a.S7);b=kEa(b);
b=lEa(a,b);b=mEa(a,b);0<b.length&&nEa(a,b);g.Af(a.O9,a)}};
kEa=function(a){return a.filter(function(b){return"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(b.config&&b.config.adPlacementConfig&&b.config.adPlacementConfig.kind||null)?(DD("Tries to extract CuePoint triggered AdPlacementRenderer."),!1):!0})};
lEa=function(a,b){a.Z=new Map;return b.filter(function(c){return"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)&&c.elementId?(a.Z.set(c.elementId,c),!1):!0})};
mEa=function(a,b){a.I=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.I.set(c.hostElementId,c),!1):!0})};
pEa=function(a,b){return b.every(function(c){c=a.B.get(c);return null==c?(g.zD(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof GP?!1:c instanceof ZO?!c.pC():!0})};
YP=function(a){var b=qEa(a);if(0<b.length){var c=g.jJ(a.j.T().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.V&&g.wK(a.j.T())?(c=new g.Ap(function(){rEa(a,b)},c),g.I(a,c),c.start()):g.Af(function(){rEa(a,b)})}};
qEa=function(a){for(var b=sEa(a),c=g.v(b),d=c.next();!d.done;d=c.next())a.fu.delete(d.value);return b};
sEa=function(a){var b=[];a=g.v(a.fu);for(var c=a.next();!c.done;c=a.next())c=c.value,ZD(c)&&b.push(c);return b};
tEa=function(a,b){var c=null;c=void 0===c?null:c;var d=a.Ja,e=d.create;var f=1E3*a.j.getDuration(1);f=new Gsa(f,1E3*a.j.getCurrentTime(1)||0,!1,a.j.T().experiments.kb("html5_recognize_predict_start_cue_point"));b=e.call(d,b,f,a.ea.length,c);a.ea=a.ea.concat(b);return b};
rEa=function(a,b){if(!a.isDisposed()){b=g.v(b);for(var c=b.next();!c.done;c=b.next())a.EN(c.value)}};
nEa=function(a,b){b=tEa(a,b);0==b.length||b.map(function(c){return a.Aa.create(c)})};
uEa=function(a){a.ya||(a.D.S(a.j,"presentingplayerstatechange",a.T_),a.D.S(a.j,"internalAbandon",a.c5),a.D.S(a.j,"progresssync",a.V7),a.D.S(a.j,"onVolumeChange",a.W7),a.D.S(a.Pa,"fullscreentoggled",a.b6),a.ya=!0);g.Ip(a.j.getRootNode(),"ad-showing");g.Ip(a.j.getRootNode(),"ad-interrupting");a.j.T().experiments.kb("enable_html5_teal_ad_badge")&&gN(a.j)&&g.Ip(a.j.getRootNode(),"ad-teal-design");a.j.cueVideoByPlayerVars({videoId:"workaround"},2)};
bP=function(a,b,c){var d=!!a.u&&a.u||null,e=d&&d.pC()&&(fN(a.j)||!1);d=b&&d&&d.reset()||null;a.u&&vEa(a,a.u);a.u=null;a.oG=-1;e&&wEa(a,c);a.oa||ZP(a.Ya);b&&d&&(d.mR().u=!1,$O(d))};
wEa=function(a,b){g.Hz(a.D);a.ya=!1;g.Kp(a.j.getRootNode(),"ad-showing");a.Nb?(a.oa||ZP(a.Ya),xEa(a),a.j.cueVideoByPlayerVars({},2)):(a.j.cueVideoByPlayerVars({},2),xEa(a));g.Kp(a.j.getRootNode(),"ad-interrupting");a.j.T().experiments.kb("enable_html5_teal_ad_badge")&&g.Kp(a.j.getRootNode(),"ad-teal-design");b&&b(a.j)};
xEa=function(a){if(a.Wa)!a.V&&g.wK(a.j.T())&&a.j.Nq();else if(a.j.Nq(),!a.V){var b=a.j.Cb(1);g.UO(b)&&!g.UN(b,2)&&a.j.playVideo()}};
vEa=function(a,b){a=a.B;for(var c=g.v(a),d=c.next();!d.done;d=c.next()){d=g.v(d.value);var e=d.next().value;if(d.next().value==b){a.delete(e);break}}g.gb(b)};
$P=function(a){g.E.call(this);this.u=a};
aQ=function(a){$P.call(this,!0);this.j=a};
yEa=function(a,b){g.E.call(this);var c=this;this.B=[];this.J=!1;this.u=0;this.D=this.I=this.C=!1;this.Z=null;var d=(0,g.Ta)(a,b);this.j=new g.Ap(function(){return d(c.Z)},300);
g.I(this,this.j);this.ea=this.V=Infinity};
zEa=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.B.includes(d.identifier))return!0}return!1};
cQ=function(a){var b=g.S(a,g.bQ);if(b)return b;if(b=g.S(a,AEa)){if(null!=b&&b.commands&&0!==b.commands.length){a={commands:[]};b=g.v(b.commands);for(var c=b.next();!c.done;c=b.next())(c=cQ(c.value))&&a.commands.push(c);b={};g.oO(b,g.dQ,a);a=b}else a=void 0;return a}};
eQ=function(){var a="ytp-id-"+BEa.toString();BEa++;return a};
g.fQ=function(a){g.E.call(this);this.Nb={};this.Vd={};this.element=this.createElement(a)};
gQ=function(a,b,c,d){if("{{"===d.substr(0,2))a.Vd[d]=[b,c];else return d};
CEa=function(a,b){var c=[];if(!b)return c;b=g.v(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,null!=d){var e=d.nodeType;1===e||3===e?c.push(d):d&&"string"===typeof d.G?c.push(a.createElement(d)):d.element?c.push(d.element):"string"===typeof d&&-1!==d.indexOf("\n")?d.split("\n").forEach(function(f,h){0<h&&c.push(g.Ze("BR"));c.push(g.ef(f))}):c.push(g.ef(d))}return c};
hQ=function(a,b,c,d){if("child"===c){g.gf(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.G?[d]:d;c=CEa(a,e);c=g.v(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.Jm(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.Yd(g.$d(a))),b.setAttribute(c,a))};
g.V=function(a){g.fQ.call(this,a);this.yb=!0;this.ea=!1;this.listeners=[]};
g.iQ=function(a,b){b?a.show():a.hide()};
DEa=function(a,b){a.element.setAttribute("aria-label",b)};
g.jQ=function(a){g.V.call(this,a);this.La=new g.aE;g.I(this,this.La)};
kQ=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.jQ.call(this,b);this.api=a;this.macros={};this.componentType=c;this.I=null;this.tb=h;this.layoutId=d;this.interactionLoggingClientData=e;this.rb=f;this.Wa=null;this.WO=new aQ(this.element);g.I(this,this.WO);this.ob=this.S(this.element,"click",this.onClick);this.ya=[];this.oa=new yEa(this.onClick,this);g.I(this,this.oa);this.Gb=!1;this.Ya=this.V=null};
lQ=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.AD(Error("Got null or undefined adText object")),"";var c=g.He(a.text);if(!a.isTemplated)return c;if(null==b)return g.AD(Error("Missing required parameters for a templated message")),c;a=g.v(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.v(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
EEa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.xb(a.thumbnails)||null==a.thumbnails[0].url)?"":g.He(a.thumbnails[0].url)};
FEa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.xb(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.xe(0,0):new g.xe(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
g.GEa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,X:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}};
mQ=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",X:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
g.nQ=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},W:[{G:"path",X:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
g.oQ=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},W:[{G:"path",X:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
HEa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{G:"path",X:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{G:"path",X:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
IEa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{G:"path",vc:!0,X:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
JEa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{G:"path",vc:!0,X:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.pQ=function(){return{G:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",X:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
KEa=function(){return{G:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",X:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}};
LEa=function(){return{G:"svg",X:{viewBox:"0 0 24 24"},W:[{G:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",X:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
MEa=function(){return{G:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},W:[{G:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{G:"path",X:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}};
NEa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,N:"ytp-svg-fill",X:{d:"m 17,23 h 2 V 17 H 17 Z 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 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}};
g.qQ=function(){return{G:"svg",X:{viewBox:"0 0 24 24"},W:[{G:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",X:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
rQ=function(){return{G:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",X:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
OEa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{G:"path",vc:!0,X:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
sQ=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,N:"ytp-svg-fill",X:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
g.tQ=function(){return{G:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},W:[{G:"path",X:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 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"}}]}};
uQ=function(){return{G:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},W:[{G:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{G:"path",X:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]}};
PEa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,N:"ytp-svg-fill",X:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
QEa=function(){return{G:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",N:"ytp-svg-fill",X:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}};
REa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,X:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
vQ=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,N:"ytp-svg-fill",X:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
SEa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,N:"ytp-svg-fill",X:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.wQ=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,N:"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"}}]}};
g.xQ=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,X:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
g.yQ=function(){return{G:"svg",X:{height:"100%",viewBox:"0 0 16 16",width:"100%"},W:[{G:"path",X:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}};
TEa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,N:"ytp-svg-fill",X:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
zQ=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,N:"ytp-svg-fill",X:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
AQ=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return uQ();case "CHECK_BOX":return{G:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",X:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{G:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",X:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",
fill:"#d4d4d4"}},{G:"path",X:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.pQ();case "INFO_OUTLINE":return MEa();case "REMOVE_CIRCLE":return{G:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",X:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return sQ();case "LIKE":return g.qQ();case "DISLIKE":return LEa();default:return g.AD(new g.Yz("Unexpected icon:",
a)),null}};
BQ=function(a,b,c,d,e,f,h,l){e=void 0===e?[]:e;f=void 0===f?"button":f;h=void 0===h?!1:h;e={G:"button",Ia:["ytp-ad-button"].concat(e)};null!=l&&(e.X={tabindex:l});kQ.call(this,a,e,f,b,c,d);this.j=this.u=this.B=null;this.C=h;this.hide()};
UEa=function(a){var b=null;null!=a.j&&(b=[a.j.serviceEndpoint,a.j.navigationEndpoint].filter(function(c){return null!=c}),a.j.command&&(b=b.concat(a.j.command)));
return b||[]};
CQ=function(){g.E.call(this);var a=this;this.j=new Map;this.u=Ooa(function(b){if(b.target&&(b=a.j.get(b.target))&&b)for(var c=0;c<b.length;c++)g.VB(b[c])})};
VEa=function(){null==DQ&&(DQ=new CQ);return DQ};
EQ=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=WEa(a))){b=Ye("SPAN",null,b);break a}b=g.ef(a)}return b}var c=[];if(a.runs)for(var d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(XEa(e,b))}return 1==c.length?c[0]:Ye("SPAN",null,c)};
XEa=function(a,b){var c=null,d=a.text;b&&(d=WEa(d)||d);a.bold&&(c=Ye("B",null,c||d));a.italics&&(c=Ye("I",null,c||d));a.strikethrough&&(c=Ye("STRIKE",null,c||d));a.navigationEndpoint&&g.S(a.navigationEndpoint,g.sM)&&(b=g.S(a.navigationEndpoint,g.sM),c=Ye("A",null,c||d),g.ne(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),VEa().register(c,a),g.Ip(c,"ytp-ad-has-logging-urls"));
return c||Ye("SPAN",null,d)};
WEa=function(a){a=a.split(/(?:\r\n|\r|\n)/g);if(1<a.length){for(var b=[a[0]],c=1;c<a.length;c++)b.push(Ye("BR")),b.push(a[c]);return b}return null};
FQ=function(a,b,c,d,e,f,h,l){f=void 0===f?!1:f;h=void 0===h?[]:h;l=void 0===l?"ad-hover-text-button":l;kQ.call(this,a,{G:"span",Ia:["ytp-ad-hover-text-button"].concat(h)},l,b,c,d);this.button=this.u=null;this.D=f;this.C=e;this.hide()};
GQ=function(a){return a&&a.thumbnails&&!g.xb(a.thumbnails||null)&&a.thumbnails[0].url?g.He(a.thumbnails[0].url):""};
HQ=function(a,b,c,d,e,f){f=void 0===f?!1:f;kQ.call(this,a,{G:"img",N:"ytp-ad-image"},"ad-image",b,c,d,void 0===e?null:e);this.j=f;this.hide()};
IQ=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"confirm-dialog":f;kQ.call(this,a,{G:"div",Ia:["ytp-ad-confirm-dialog-background"],W:[{G:"div",N:"ytp-ad-confirm-dialog-container",W:[{G:"div",Ia:["ytp-ad-confirm-dialog"].concat(e),X:{role:"dialog",tabindex:"-1"},W:[{G:"div",N:"ytp-ad-confirm-dialog-title",ra:"{{title}}"},{G:"div",N:"ytp-ad-confirm-dialog-messages"},{G:"div",N:"ytp-ad-confirm-dialog-confirm-container",W:[{G:"button",N:"ytp-ad-confirm-dialog-cancel-button",ra:"{{cancelLabel}}"},
{G:"button",N:"ytp-ad-confirm-dialog-confirm-button",ra:"{{confirmLabel}}"}]}]}]},{G:"button",Ia:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],W:[{G:"span",N:"ytp-ad-button-icon",W:[g.pQ()]}]}]},f,b,c,d);this.J=this.Da("ytp-ad-confirm-dialog-close-overlay-button");this.C=this.Da("ytp-ad-confirm-dialog-cancel-button");this.D=this.Da("ytp-ad-confirm-dialog-confirm-button");this.Z=this.Da("ytp-ad-confirm-dialog-messages");this.B=null;this.j=new Fz;g.I(this,this.j);
this.u=null;this.hide()};
YEa=function(a,b){if(b.title){var c=g.dE(b.title);a.updateValue("title",c)}if(b.dialogMessages){c=g.v(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=EQ(d.value),a.Z.appendChild(d)}b.cancelLabel&&(c=g.dE(b.cancelLabel),a.updateValue("cancelLabel",c),a.j.S(a.C,"click",function(e){return a.yJ(e)}));
b.confirmLabel&&(b=g.dE(b.confirmLabel),a.updateValue("confirmLabel",b),a.j.S(a.D,"click",function(e){return a.CN(e)}));
a.j.S(a.J,"click",function(e){return a.BN(e)})};
JQ=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=iN("ytp-ad-toggle-button-input"),l={role:"button","aria-label":"{{tooltipText}}"};a.T().experiments.kb("fix_h5_toggle_button_a11y")&&(l.tabindex="0");kQ.call(this,a,{G:"div",Ia:["ytp-ad-toggle-button"].concat(e),W:[{G:"label",N:"ytp-ad-toggle-button-label",X:{"for":h},W:[{G:"span",N:"ytp-ad-toggle-button-icon",X:l,W:[{G:"span",N:"ytp-ad-toggle-button-untoggled-icon",ra:"{{untoggledIconTemplateSpec}}"},{G:"span",N:"ytp-ad-toggle-button-toggled-icon",
ra:"{{toggledIconTemplateSpec}}"}]},{G:"input",N:"ytp-ad-toggle-button-input",X:{id:h,type:"checkbox"}},{G:"span",N:"ytp-ad-toggle-button-text",ra:"{{buttonText}}"},{G:"span",N:"ytp-ad-toggle-button-tooltip",ra:"{{tooltipText}}"}]}]},f,b,c,d);this.B=this.Da("ytp-ad-toggle-button");this.j=this.Da("ytp-ad-toggle-button-input");this.Da("ytp-ad-toggle-button-label");this.C=this.Da("ytp-ad-toggle-button-icon");this.J=this.Da("ytp-ad-toggle-button-untoggled-icon");this.D=this.Da("ytp-ad-toggle-button-toggled-icon");
this.Aa=this.Da("ytp-ad-toggle-button-text");this.u=null;this.Z=!1;this.hide()};
KQ=function(a){a.Z&&(a.isToggled()?(g.Vm(a.J,!1),g.Vm(a.D,!0)):(g.Vm(a.J,!0),g.Vm(a.D,!1)))};
ZEa=function(a,b){var c=null;a.u&&(c=(b?[a.u.defaultServiceEndpoint,a.u.defaultNavigationEndpoint]:[a.u.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
LQ=function(a){Fz.call(this);this.j=a;this.S(this.j,"onAdUxUpdate",this.I)};
MQ=function(a,b,c,d){kQ.call(this,a,{G:"div",N:"ytp-ad-feedback-dialog-background",W:[{G:"div",N:"ytp-ad-feedback-dialog-container",W:[{G:"div",N:"ytp-ad-feedback-dialog-form",X:{role:"dialog",tabindex:"-1"},W:[{G:"div",N:"ytp-ad-feedback-dialog-title",W:[{G:"span",ra:"{{title}}"}]},{G:"span",N:"ytp-ad-info-dialog-feedback-options-title",ra:"{{reasonsTitle}}"},{G:"div",N:"ytp-ad-info-dialog-feedback-options"},{G:"div",N:"ytp-ad-feedback-dialog-confirm-container",W:[{G:"button",N:"ytp-ad-feedback-dialog-cancel-button",
ra:"{{cancelLabel}}"},{G:"button",N:"ytp-ad-feedback-dialog-confirm-button",ra:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",b,c,d);this.C=[];this.j=null;this.D=this.Da("ytp-ad-feedback-dialog-cancel-button");this.J=this.Da("ytp-ad-feedback-dialog-confirm-button");this.Z=this.Da("ytp-ad-info-dialog-feedback-options");this.Aa=this.Da("ytp-ad-feedback-dialog-title");this.B=this.u=null;this.hide()};
cFa=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.j=new BQ(a.api,a.layoutId,a.interactionLoggingClientData,a.rb,["ytp-ad-feedback-dialog-close-button"],"button"),g.I(a,a.j),a.j.init(iN("button"),c,a.macros),a.j.Ra("click",a.ZV,a),a.j.Ea(a.element));b.title&&(c=g.dE(b.title),a.updateValue("title",c));b.reasonsTitle&&(c=g.dE(b.reasonsTitle),a.updateValue("reasonsTitle",c));b.reasons&&$Ea(a,b.reasons);b.cancelLabel&&(c=g.dE(b.cancelLabel),a.updateValue("cancelLabel",
c),g.Az(a.D,"click",function(){return a.ZV()}));
b.confirmLabel&&(c=g.dE(b.confirmLabel),a.updateValue("confirmLabel",c),g.Az(a.J,"click",function(){return aFa(a)}));
b.undoRenderer&&bFa(a,b.undoRenderer)};
$Ea=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;null==c?g.AD(Error("AdFeedbackReason.reason was not set.")):(d=d.endpoint,null==d?g.AD(Error("AdFeedbackReason.endpoint was not set.")):(c=new NQ(c,d),g.I(a,c),d=c.ub(),a.Z.appendChild(d),a.C.push(c)))}};
bFa=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.u=new BQ(a.api,a.layoutId,a.interactionLoggingClientData,a.rb,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.I(a,a.u),a.u.init(iN("ad-feedback-undo-mute-button"),b,a.macros),a.u.Ra("click",a.R7,a),a.u.Ea(a.Aa)):g.AD(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
aFa=function(a){var b=a.C.filter(function(c){return c.isChecked()});
0!==b.length&&(b=b[0].u,a.layoutId?a.rb.executeCommand(b,a.layoutId):g.zD(Error("Missing layoutId for ad feedback dialog.")),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.ma("a"),a.hide())};
NQ=function(a,b){this.u=b;this.j=new g.jQ({G:"label",N:"ytp-ad-feedback-dialog-reason-label",W:[{G:"input",N:"ytp-ad-feedback-dialog-reason-input",X:{type:"radio",name:"feedback-reason-group"}},{G:"span",N:"ytp-ad-feedback-dialog-reason-text",ra:g.dE(a)}]});this.B=this.j.Da("ytp-ad-feedback-dialog-reason-input")};
OQ=function(a,b,c,d){IQ.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
PQ=function(a,b,c,d,e){kQ.call(this,a,{G:"div",N:"ytp-ad-info-dialog-background",W:[{G:"div",N:"ytp-ad-info-dialog-container",W:[{G:"div",N:"ytp-ad-info-dialog-form",X:{role:"dialog",tabindex:"-1"},W:[{G:"div",N:"ytp-ad-info-dialog-title",ra:"{{title}}"},{G:"ul",N:"ytp-ad-info-dialog-ad-reasons"},{G:"div",N:"ytp-ad-info-dialog-message"},{G:"div",N:"ytp-ad-info-dialog-mute-container"},{G:"div",N:"ytp-ad-info-dialog-confirm-container",W:[{G:"button",N:"ytp-ad-info-dialog-confirm-button",ra:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",b,c,d);this.j=this.u=null;this.J=this.Da("ytp-ad-info-dialog-confirm-button");this.Za=this.Da("ytp-ad-info-dialog-mute-container");this.Pa=this.Da("ytp-ad-info-dialog-message");this.Ga=this.Da("ytp-ad-info-dialog-ad-reasons");this.C=this.B=null;this.Aa=e;this.D=null;this.Ja=!1;this.Z=null;this.hide()};
dFa=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.u=new MQ(a.api,a.layoutId,a.interactionLoggingClientData,a.rb),g.I(a,a.u),a.u.init(iN("ad-feedback-dialog"),b,a.macros),a.u.Ea(a.Aa),a.u.subscribe("a",function(){return a.ma("c")})};
eFa=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.C=new OQ(a.api,a.layoutId,a.interactionLoggingClientData,a.rb),g.I(a,a.C),a.C.init(iN("ad-mute-confirm-dialog"),b,a.macros),a.C.Ea(a.Aa),a.C.subscribe("b",function(){return a.ma("c")})};
fFa=function(a){a.j&&a.j.Ra("click",a.zR,a);g.Az(a.J,"click",function(){return a.zR()})};
QQ=function(a,b,c,d,e,f){FQ.call(this,a,b,c,d,void 0===f?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.j=null;this.B=e;this.hide()};
hFa=function(a,b,c){b=b.dialog&&g.S(b.dialog,gFa)||null;null==b?g.zD(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.j=new PQ(a.api,a.layoutId,a.interactionLoggingClientData,a.rb,a.B),g.I(a,a.j),a.j.init(iN("ad-info-dialog"),b,c),a.j.Ea(a.B),a.j.subscribe("d",function(){return a.ma("f")}),a.j.subscribe("c",function(){return a.ma("e")}))};
kFa=function(a,b,c){null==a.button?g.zD(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.u&&g.Ip(a.u.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&g.S(b.serviceEndpoint,iFa)||null)?(hFa(a,b,c),a.button.Ra("click",function(){a.j&&!a.j.yb&&(a.j.show(),jFa(a))})):a.button.Ra("click",function(){return jFa(a)}))};
jFa=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
RQ=function(a,b,c,d,e,f){kQ.call(this,a,{G:"div",N:"ytp-ad-text"},void 0===f?"ad-text":f,b,c,d,void 0===e?null:e);this.j=null;this.hide()};
SQ=function(a,b){b&&g.mf(a.element,lQ(a.j,b))};
TQ=function(a,b,c,d,e,f,h){kQ.call(this,a,b,c,d,e,f);this.j=h;g.I(this,this.j);this.Ga=this.D=-1};
UQ=function(a){a.j&&-1===a.D&&(a.D=a.j.subscribe("h",a.ot,a),a.Ga=a.j.subscribe("g",a.Sv,a),a.ot())};
VQ=function(a){null!=a.j&&-1!==a.D&&(a.j.Fh(a.D),a.j.Fh(a.Ga),a.Ga=-1,a.D=-1)};
g.WQ=function(a,b,c,d,e,f){g.E.call(this);this.element=a;this.state=null;c||a.hide();this.B=b;this.C=void 0===d?b:d;this.j=f;this.u=e;this.delay=new g.Ap(this.QE,0,this);g.I(this,this.delay)};
XQ=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
YQ=function(a,b,c,d,e,f){TQ.call(this,a,{G:"div",N:"ytp-ad-preview-slot"},"ad-preview",b,c,d,e);var h=this;this.Pa=-1;this.u=new g.jQ({G:"span",N:"ytp-ad-preview-container"});g.I(this,this.u);this.B=new RQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-ad-preview-text");g.I(this,this.B);this.B.Ea(this.u.element);this.J=new g.jQ({G:"span",N:"ytp-ad-preview-image"});g.I(this,this.J);this.C=new HQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb);g.I(this,this.C);
this.C.Ea(this.J.element);this.J.Ea(this.u.element);this.u.Ea(this.element);this.Z=new g.WQ(this.u,400,!1,100,function(){return h.hide()});
g.I(this,this.Z);this.Aa=0;this.Ja=!1;this.Za=f;this.hide()};
ZQ=function(a){a.Z.show(100);a.show()};
$Q=function(a,b,c,d,e){TQ.call(this,a,{G:"div",Ia:["ytp-flyout-cta","ytp-flyout-cta-inactive"],W:[{G:"div",N:"ytp-flyout-cta-icon-container"},{G:"div",N:"ytp-flyout-cta-body",W:[{G:"div",N:"ytp-flyout-cta-text-container",W:[{G:"div",N:"ytp-flyout-cta-headline-container"},{G:"div",N:"ytp-flyout-cta-description-container"}]},{G:"div",N:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",b,c,d,e);this.C=new HQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-flyout-cta-icon");
g.I(this,this.C);this.C.Ea(this.Da("ytp-flyout-cta-icon-container"));this.api.T().K("web_rounded_thumbnails")&&this.C.element.classList.add("ytp-flyout-cta-icon-rounded");this.B=new RQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-flyout-cta-headline");g.I(this,this.B);this.B.Ea(this.Da("ytp-flyout-cta-headline-container"));this.J=new RQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-flyout-cta-description");g.I(this,this.J);this.J.Ea(this.Da("ytp-flyout-cta-description-container"));
a=["ytp-flyout-cta-action-button"];this.api.T().K("web_modern_buttons")&&a.push("ytp-flyout-cta-action-button-rounded");this.u=new BQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,a);g.I(this,this.u);this.u.Ea(this.Da("ytp-flyout-cta-action-button-container"));this.u.element.setAttribute("tabIndex","-1");this.api.T().K("web_enable_instream_ads_link_definition_a11y_bugfix")&&up(this.u.element);this.Z=null;this.Aa=0;this.hide()};
aR=function(a,b,c,d,e){kQ.call(this,a,{G:"div",N:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",b,c,d,void 0===e?null:e);var f=this;this.j=null;this.B=new JQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,["ytp-ad-instream-user-sentiment-like-button"]);g.I(this,this.B);this.B.Ea(this.element);this.u=new JQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,["ytp-ad-instream-user-sentiment-dislike-button"]);g.I(this,this.u);this.u.Ea(this.element);
this.C=new g.WQ(this,400,!1,500,function(){return f.hide()});
g.I(this,this.C);this.hide()};
bR=function(a,b,c,d,e){e=void 0===e?0:e;g.E.call(this);this.B=a;this.u=!1;this.ea=d;this.I=!1;this.j=null;0<b&&(this.j=new g.Ap(this.AS,b,this),g.I(this,this.j));this.D=new g.Ap(this.AS,c,this);g.I(this,this.D);this.V=ola(this.B,e,1,d);g.I(this,this.V);this.J=ola(this.B,0,d,1);g.I(this,this.J);this.C=new Fz;g.I(this,this.C)};
cR=function(a,b,c,d,e,f){TQ.call(this,a,{G:"div",N:"ytp-ad-skip-button-slot"},"skip-button",b,c,d,e);var h=this;this.J=null;this.Aa=!1;this.Ja=f;this.Pa=!1;this.C=new g.jQ({G:"span",Ia:["ytp-ad-skip-button-container"]});g.I(this,this.C);this.C.Ea(this.element);this.B=this.u=null;this.Za=new g.WQ(this.C,500,!1,100,function(){return h.hide()});
g.I(this,this.Za);this.Z=new bR(this.C.element,15E3,5E3,.5,.5);g.I(this,this.Z);this.hide()};
mFa=function(a){a=a.J&&a.J.adRendererCommands;return(a&&a.clickCommand&&g.S(a.clickCommand,g.dQ)&&g.S(a.clickCommand,g.dQ).commands||[]).some(function(b){return b.adLifecycleCommand?lFa(b.adLifecycleCommand):!1})};
lFa=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
dR=function(a,b,c,d,e,f){TQ.call(this,a,{G:"div",N:"ytp-ad-skip-ad-slot"},"skip-ad",b,c,d,e);this.Z=f;this.C=!1;this.J=0;this.B=this.u=null;this.hide()};
nFa=function(a,b){a.C||(a.C=!0,a.u&&(b?a.u.Z.hide():a.u.hide()),b?(a=a.B,a.Za.show(),a.show()):a.B.show())};
eR=function(a,b,c,d){BQ.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
fR=function(a,b,c,d,e){e=void 0===e?!1:e;kQ.call(this,a,{G:"span",N:"ytp-ad-simple-ad-badge"},"simple-ad-badge",b,c,d);this.j=e;this.hide()};
gR=function(a,b,c,d,e){e=void 0===e?!1:e;jN.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.interactionLoggingClientData=d;this.fI=e};
hR=function(a,b){g.aE.call(this);this.api=a;this.durationMs=b;this.j=null;this.wd=new Fz(this);g.I(this,this.wd);this.u=oFa;this.wd.S(this.api,"presentingplayerstatechange",this.zd);this.j=this.wd.S(this.api,"onAdPlaybackProgress",this.wc)};
iR=function(a,b){g.aE.call(this);this.Me=b;this.j=!1;this.Li=0;this.wd=new Fz(this);g.I(this,this.wd);this.durationMs=a;this.timer=new g.Lf(100);g.I(this,this.timer);this.wd.S(this.timer,"tick",this.wc);this.u={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.jR=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="";0<d&&(b+=" "+d+" Days");if(0<d||0<e)b+=" "+e+" Hours";b+=" "+f+" Minutes";b+=" "+c+" Seconds";d=b.trim()}else{b="";0<d&&(b+=d+":",10>e&&(b+="0"));if(0<d||0<e)b+=e+":",10>f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d};
g.kR=function(a){return(!("button"in a)||"number"!==typeof a.button||0===a.button)&&!("shiftKey"in a&&a.shiftKey)&&!("altKey"in a&&a.altKey)&&!("metaKey"in a&&a.metaKey)&&!("ctrlKey"in a&&a.ctrlKey)};
lR=function(a,b,c,d,e,f){TQ.call(this,a,{G:"span",N:"ytp-ad-duration-remaining"},"ad-duration-remaining",b,c,d,e);this.videoAdDurationSeconds=f;this.u=null;this.hide()};
pFa=function(a,b,c,d){RQ.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
mR=function(a,b){this.u=a;this.j=b};
qFa=function(a,b){return a.u+b*(a.j-a.u)};
nR=function(a,b,c){return a.j-a.u?g.pe((b-a.u)/(a.j-a.u),0,1):null!=c?c:Infinity};
oR=function(a,b){g.jQ.call(this,{G:"div",N:"ytp-ad-persistent-progress-bar-container",W:[{G:"div",N:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.I(this,this.u);this.Jc=this.Da("ytp-ad-persistent-progress-bar");this.j=-1;this.S(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
pR=function(a,b,c,d,e,f){kQ.call(this,a,{G:"div",N:"ytp-ad-player-overlay",W:[{G:"div",N:"ytp-ad-player-overlay-flyout-cta"},{G:"div",N:"ytp-ad-player-overlay-instream-info"},{G:"div",N:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",N:"ytp-ad-player-overlay-progress-bar"},{G:"div",N:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",b,c,d);this.J=f;this.C=this.Da("ytp-ad-player-overlay-flyout-cta");this.api.T().K("web_rounded_thumbnails")&&this.C.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");
this.u=this.Da("ytp-ad-player-overlay-instream-info");this.B=null;rFa(this)&&(a=Ye("div"),g.Ip(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.u,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new pFa(this.api,this.layoutId,this.interactionLoggingClientData,this.rb),c.Ea(a),c.init(iN("ad-title"),{text:b.title},this.macros),g.I(this,c)),this.B=a);this.D=this.Da("ytp-ad-player-overlay-skip-or-preview");this.Aa=this.Da("ytp-ad-player-overlay-progress-bar");
this.Z=this.Da("ytp-ad-player-overlay-instream-user-sentiment");this.j=e;g.I(this,this.j);this.hide()};
rFa=function(a){a=a.api.T();return g.qK(a)&&a.u};
sFa=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.Ui("/sharing_services",a);g.VB(d)};
g.qR=function(a){a&=16777215;var b=[(a&16711680)>>16,(a&65280)>>8,a&255];a=b[0];var c=b[1];b=b[2];a=Number(a);c=Number(c);b=Number(b);if(a!=(a&255)||c!=(c&255)||b!=(b&255))throw Error('"('+a+","+c+","+b+'") is not a valid RGB color');c=a<<16|c<<8|b;return 16>a?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)};
vFa=function(a,b){if(!a)return!1;var c,d=null==(c=g.S(a,tFa))?void 0:c.signal;if(d&&b.lw)return!!b.lw[d];var e;if((c=null==(e=g.S(a,uFa))?void 0:e.request)&&b.UK)return!!b.UK[c];for(var f in a)if(b.QK[f])return!0;return!1};
wFa=function(a,b){var c,d=null==(c=g.S(a,tFa))?void 0:c.signal;if(d&&b.lw&&(c=b.lw[d]))return c();var e;if((c=null==(e=g.S(a,uFa))?void 0:e.request)&&b.UK&&(e=b.UK[c]))return e();for(var f in a)if(b.QK[f]&&(a=b.QK[f]))return a()};
rR=function(a){return function(){return new a}};
yFa=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=xFa[b];if(c){var d=new RegExp(c),e=g.v(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,d.exec(c))return c}var f=[];Object.entries(xFa).forEach(function(h){var l=g.v(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)});
d=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length});
e=g.v(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]};
g.sR=function(a){return"/youtubei/v1/"+yFa(a)};
tR=function(){};
uR=function(){};
vR=function(a,b,c,d){this.nL=a;this.Xg=b;this.j=c;this.C=d;this.B=void 0;this.u=new Map;a.lw||(a.lw={});a.lw=Object.assign({},zFa,a.lw)};
AFa=function(a,b,c,d){if(void 0!==vR.instance){if(d=vR.instance,a=[a!==d.nL,b!==d.Xg,c!==d.j,!1,!1,void 0!==d.B],a.some(function(e){return e}))throw new g.Yz("InnerTubeTransportService is already initialized",a);
}else vR.instance=new vR(a,b,c,d)};
wR=function(a,b,c){var d=void 0===d?DB:d;var e=wFa(b,a.nL);if(!e)return Hf(new g.Yz("Error: No request builder found for command.",b));var f=e.D(b,c,d);return f?new g.Cf(function(h){var l,m,n;return g.A(function(p){if(1==p.j)return m="cors"===(null==(l=f.vt)?void 0:l.mode)?"cors":void 0,a.j.cY?(n=BFa(a,f.config,m),p.Ka(2)):g.y(p,CFa(a,f.config,m),3);2!=p.j&&(n=p.u);h(DFa(a,f,n));g.ta(p)})}):Hf(new g.Yz("Error: Failed to build request for command.",b))};
g.EP=function(a,b,c,d,e){e=void 0===e?{uu:{identity:DB}}:e;var f=void 0===f?!0:f;b.context||(b.context=g.yP(d,f));return new g.Cf(function(h){var l,m,n,p,q;return g.A(function(t){if(1==t.j)return l=Qy(c),m=ry(l)?"same-origin":"cors",a.j.cY?(n=BFa(a,e,m),t.Ka(2)):g.y(t,CFa(a,e,m),3);2!=t.j&&(n=t.u);var w=n;p=ioa(Qy(c),w);q={input:p,vt:Ry(p),To:b,config:e};h(DFa(a,q,n));g.ta(t)})})};
FFa=function(a,b,c){var d;if(b&&!(null==b?0:null==(d=b.F8a)?0:d.T8a)&&a.C){d=g.v(EFa);for(var e=d.next();!e.done;e=d.next())e=e.value,a.C[e]&&a.C[e].handleResponse(b,c)}};
DFa=function(a,b,c){var d,e,f,h,l,m,n,p,q,t,w,z,C,G,O,N,K,W,Z,Q,na,r,J,ha,X,Da,za,Za,cb;return g.A(function(wa){switch(wa.j){case 1:wa.Ka(2);break;case 3:if((d=wa.u)&&!d.isExpired())return wa.return(Promise.resolve(d.j()));case 2:if(!(null==(e=b)?0:null==(f=e.To)?0:f.context)){wa.Ka(4);break}h=b.To.context;if(!g.cy("web_async_context_processor")){l=g.v([]);for(m=l.next();!m.done;m=l.next())n=m.value,n.z8a(h);wa.Ka(4);break}return g.y(wa,[].reduce(function($a,u){return $a.then(function(){return u.y8a(h)})},
Promise.resolve()),4);
case 4:if(null==(p=a.B)||!p.O8a(b.input,b.To)){wa.Ka(7);break}return g.y(wa,a.B.e8a(b.input,b.To),8);case 8:return q=wa.u,g.cy("kevlar_process_local_innertube_responses_killswitch")||FFa(a,q,b),wa.return(q);case 7:return(z=null==(w=b.config)?void 0:w.Ef)&&a.u.has(z)&&g.cy("web_memoize_inflight_requests")?t=a.u.get(z):(C=JSON.stringify(b.To),N=null!=(O=null==(G=b.vt)?void 0:G.headers)?O:{},b.vt=Object.assign({},b.vt,{headers:Object.assign({},N,c)}),K=Object.assign({},b.vt),"POST"===b.vt.method&&(K=
Object.assign({},K,{body:C})),(null==(W=b.config)?0:W.J8)&&bF(b.config.J8),Z=function(){return a.Xg.fetch(b.input,K,b.config)},t=Z(),z&&a.u.set(z,t)),g.y(wa,t,9);
case 9:if((Q=wa.u)&&"error"in Q&&(null==(na=Q)?0:null==(r=na.error)?0:r.details))for(J=Q.error.details,ha=g.v(J),X=ha.next();!X.done;X=ha.next())Da=X.value,(za=Da["@type"])&&-1<GFa.indexOf(za)&&(delete Da["@type"],Q=Da);z&&a.u.has(z)&&a.u.delete(z);(null==(Za=b.config)?0:Za.N8)&&bF(b.config.N8);if(Q||null==(cb=a.B)||!cb.K6a(b.input,b.To)){wa.Ka(10);break}return g.y(wa,a.B.d8a(b.input,b.To),11);case 11:Q=wa.u;case 10:return FFa(a,Q,b),wa.return(Q||void 0)}})};
CFa=function(a,b,c){var d,e,f,h,l,m,n;return g.A(function(p){if(1==p.j){f=(null==(d=b)?void 0:null==(e=d.uu)?void 0:e.identity)||DB;m=null==(h=b)?void 0:null==(l=h.uu)?void 0:l.sessionIndex;var q=Ef(a.j.CB(f,{sessionIndex:m}));return g.y(p,q,2)}n=p.u;return p.return(Promise.resolve(Object.assign({},HFa(c),n)))})};
BFa=function(a,b,c){var d,e=(null==b?void 0:null==(d=b.uu)?void 0:d.identity)||DB,f;b=null==b?void 0:null==(f=b.uu)?void 0:f.sessionIndex;a=a.j.CB(e,{sessionIndex:b});return Object.assign({},HFa(c),a)};
HFa=function(a){var b={"Content-Type":"application/json"};g.ay("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.ay("EOM_VISITOR_DATA"):g.ay("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.ay("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=g.ay("LOGGED_IN",!1);"cors"!==a&&((a=g.ay("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.ay("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=a),(a=g.ay("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=
g.ay("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
xR=function(){};
yR=function(){};
zR=function(){};
AR=function(){};
BR=function(){};
CR=function(){};
DR=function(a){this.j=a};
g.ER=function(a,b){if(!IFa){var c=RC();NC(c,{FO:JFa,OY:DR});var d={QK:{feedbackEndpoint:rR(zR),modifyChannelNotificationPreferenceEndpoint:rR(AR),playlistEditEndpoint:rR(BR),subscribeEndpoint:rR(xR),unsubscribeEndpoint:rR(yR),webPlayerShareEntityServiceEndpoint:rR(CR)}},e=xP.getInstance(),f={};e&&(f.client_location=e);void 0===a&&(a=Toa());void 0===b&&(b=c.resolve(JFa));AFa(d,b,a,f);NC(c,{FO:KFa,cQ:vR.instance});IFa=c.resolve(KFa)}return IFa};
FR=function(){};
LFa=function(){FR.instance||(FR.instance=new FR);return FR.instance};
OFa=function(){if(!g.cy("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.cy("disable_biscotti_fetch_entirely_for_all_web_clients")&&ez()){var a=g.ay("PLAYER_VARS",{});if("1"!=g.hd(a,"privembed",!1)&&!qoa(a)){var b=function(){MFa=!0;"google_ad_status"in window?$x("DCLKSTAT",1):$x("DCLKSTAT",2)};
try{g.oC("//web.archive.org/web/20230505074338/https://static.doubleclick.net/instream/ad_status.js",b)}catch(c){}NFa.push(g.sp.wi(function(){if(!(MFa||"google_ad_status"in window)){try{if(b){var c=""+g.Sa(b),d=hra[c];d&&g.mC(d)}}catch(e){}MFa=!0;$x("DCLKSTAT",3)}},5E3))}}};
PFa=function(){var a=Number(g.ay("DCLKSTAT",0));return isNaN(a)?0:a};
GR=function(a,b,c){if(!g.cy("jspb_translator_skip_iteration"))if(Array.isArray(b))for(var d=0;d<b.length;d++)c?a(c(b[d])[1]):a(b[d]);else c?a(c(b)[1]):a(b)};
HR=function(a,b,c){if(!g.cy("jspb_translator_skip_iteration"))if(Array.isArray(b))for(var d=0;d<b.length;d++)a(c[b[d]]);else a(c[b])};
Y=function(a){g.cy("jspb_translator_log_errors")&&g.hy(a)};
RFa=function(a){var b=new pu,c=0;try{return void 0!==a.eventType&&(L(b,1,QFa[a.eventType]),c++),void 0!==a.storedEventsCount&&(L(b,2,a.storedEventsCount),c++),void 0!==a.expiredEventsCount&&(L(b,3,a.expiredEventsCount),c++),void 0!==a.averageTimeBetweenDispatchesMs&&(L(b,4,a.averageTimeBetweenDispatchesMs),c++),void 0!==a.oldestStoredEventAgeMs&&(L(b,5,a.oldestStoredEventAgeMs),c++),void 0!==a.metricIntervalMs&&(L(b,6,a.metricIntervalMs),c++),void 0!==a.dispatchedEventCount&&(L(b,7,a.dispatchedEventCount),
c++),void 0!==a.dispatchAttemptCount&&(L(b,8,a.dispatchAttemptCount),c++),void 0!==a.withDiskSpaceMs&&(L(b,9,a.withDiskSpaceMs),c++),void 0!==a.withNetworkMs&&(L(b,10,a.withNetworkMs),c++),void 0!==a.foregroundMs&&(L(b,11,a.foregroundMs),c++),void 0!==a.activeMs&&(L(b,12,a.activeMs),c++),void 0!==a.condensedPageBcSlackCount&&(L(b,13,a.condensedPageBcSlackCount),c++),void 0!==a.persistedDeleteUsedCount&&(L(b,14,a.persistedDeleteUsedCount),c++),void 0!==a.persistedDeleteCount&&(L(b,15,a.persistedDeleteCount),
c++),void 0!==a.eventDisabledCount&&(L(b,16,a.eventDisabledCount),c++),void 0!==a.identityResolutionErrorCount&&(L(b,17,a.identityResolutionErrorCount),c++),void 0!==a.exceededMaxRetryCount&&(L(b,18,a.exceededMaxRetryCount),c++),void 0!==a.condensedPageBcPersistFailCount&&(L(b,19,a.condensedPageBcPersistFailCount),c++),void 0!==a.couldNotUnloadPageCount&&(L(b,20,a.couldNotUnloadPageCount),c++),void 0!==a.pageWasCorruptedCount&&(L(b,24,a.pageWasCorruptedCount),c++),void 0!==a.badEventIndexCount&&(L(b,
27,a.badEventIndexCount),c++),void 0!==a.serializeErrorCount&&(L(b,25,a.serializeErrorCount),c++),void 0!==a.payloadInfoNotSetCount&&(L(b,21,a.payloadInfoNotSetCount),c++),void 0!==a.requestEmptyErrorCount&&(L(b,22,a.requestEmptyErrorCount),c++),void 0!==a.clientEventNotSetCount&&(L(b,23,a.clientEventNotSetCount),c++),void 0!==a.differentIdCount&&(L(b,26,a.differentIdCount),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
IR=function(a){var b=new Qv,c=0;try{void 0!==a.trackingParams&&(b.jg(a.trackingParams),c++);void 0!==a.veType&&(L(b,2,a.veType),c++);void 0!==a.elementIndex&&(L(b,3,a.elementIndex),c++);void 0!==a.veCounter&&(L(b,6,a.veCounter),c++);if(a.dataElement){var d=IR(a.dataElement);d[0]&&(Ch(b,Qv,7,d[1]),c++)}void 0!==a.isCounterfactual&&(L(b,5,a.isCounterfactual),c++);if(a.youtubeData){var e=a.youtubeData,f=new Hs,h=0;try{if(e.channelData){var l=e.channelData,m=new Zr,n=0;try{void 0!==l.externalId&&(Gh(m,
1,l.externalId),n++);var p=[n===Object.keys(l).length,m]}catch(Na){Y(Na),p=[!1,void 0]}var q=p;q[0]&&(Ch(f,Zr,2,q[1]),h++)}if(e.channelItem){var t=e.channelItem,w=new $r,z=0;try{void 0!==t.externalId&&(Gh(w,1,t.externalId),z++);var C=[z===Object.keys(t).length,w]}catch(Na){Y(Na),C=[!1,void 0]}var G=C;G[0]&&(Ch(f,$r,5,G[1]),h++)}if(e.playlistItem){var O=e.playlistItem,N=new os,K=0;try{void 0!==O.externalPlaylistId&&(Gh(N,5,O.externalPlaylistId),K++);var W=[K===Object.keys(O).length,N]}catch(Na){Y(Na),
W=[!1,void 0]}var Z=W;Z[0]&&(Ch(f,os,6,Z[1]),h++)}if(e.analyticsData){var Q=e.analyticsData,na=new Xr,r=0;try{void 0!==Q.tabName&&(L(na,1,SFa[Q.tabName]),r++);if(Q.analysisVariant){var J=Q.analysisVariant,ha=new Kr,X=0;try{if(J.analysisSummary){var Da=J.analysisSummary,za=new xr,Za=0;try{void 0!==Da.type&&(L(za,1,TFa[Da.type]),Za++);void 0!==Da.eligibility&&(L(za,2,UFa[Da.eligibility]),Za++);void 0!==Da.sentiment&&(L(za,3,VFa[Da.sentiment]),Za++);var cb=[Za===Object.keys(Da).length,za]}catch(Na){Y(Na),
cb=[!1,void 0]}var wa=cb;wa[0]&&(Ch(ha,xr,1,wa[1]),X++)}if(J.videoPerformanceVariant){var $a=WFa(J.videoPerformanceVariant);$a[0]&&(Dh(ha,Hr,2,JR,$a[1]),X++)}if(J.videoOverviewVariant){var u=J.videoOverviewVariant,D=new Ir,F=0;try{void 0!==u.timePeriod&&(L(D,1,KR[u.timePeriod]),F++);if(u.videoPerformanceVariant){var B=WFa(u.videoPerformanceVariant);B[0]&&(Ch(D,Hr,2,B[1]),F++)}void 0!==u.durationTimePeriod&&(L(D,3,XFa[u.durationTimePeriod]),F++);var M=[F===Object.keys(u).length,D]}catch(Na){Y(Na),
M=[!1,void 0]}var H=M;H[0]&&(Dh(ha,Ir,3,JR,H[1]),X++)}if(J.channelFluctuationVariant){var R=J.channelFluctuationVariant,T=new zr,ea=0;try{void 0!==R.views&&(L(T,1,LR[R.views]),ea++);void 0!==R.driver&&(L(T,2,YFa[R.driver]),ea++);void 0!==R.ctr&&(L(T,3,LR[R.ctr]),ea++);void 0!==R.impressions&&(L(T,4,LR[R.impressions]),ea++);void 0!==R.viewsPerVideo&&(L(T,5,LR[R.viewsPerVideo]),ea++);var ca=[ea===Object.keys(R).length,T]}catch(Na){Y(Na),ca=[!1,void 0]}var ia=ca;ia[0]&&(Dh(ha,zr,4,JR,ia[1]),X++)}if(J.artistOverviewVariant){var ra=
J.artistOverviewVariant,ya=new yr,tb=0;try{void 0!==ra.timePeriod&&(L(ya,1,KR[ra.timePeriod]),tb++);void 0!==ra.variantType&&(L(ya,2,ZFa[ra.variantType]),tb++);var jb=[tb===Object.keys(ra).length,ya]}catch(Na){Y(Na),jb=[!1,void 0]}var yb=jb;yb[0]&&(Dh(ha,yr,5,JR,yb[1]),X++)}if(J.monthlySubsVariant){var eb=$Fa(J.monthlySubsVariant);eb[0]&&(Dh(ha,Dr,6,JR,eb[1]),X++)}if(J.monthlyRevenueVariant){var Ra=aGa(J.monthlyRevenueVariant);Ra[0]&&(Dh(ha,Cr,7,JR,Ra[1]),X++)}if(J.holisticMonthlyOverviewVariant){var kb=
J.holisticMonthlyOverviewVariant,Kb=new Er,xc=0;try{if(kb.viewsPerformance){var vd=bGa(kb.viewsPerformance);vd[0]&&(Ch(Kb,Br,1,vd[1]),xc++)}if(kb.subsPerformance){var ub=$Fa(kb.subsPerformance);ub[0]&&(Ch(Kb,Dr,2,ub[1]),xc++)}if(kb.revenuePerformance){var ac=aGa(kb.revenuePerformance);ac[0]&&(Ch(Kb,Cr,3,ac[1]),xc++)}var Eb=[xc===Object.keys(kb).length,Kb]}catch(Na){Y(Na),Eb=[!1,void 0]}var kc=Eb;kc[0]&&(Dh(ha,Er,8,JR,kc[1]),X++)}if(J.personalizedChannelOverviewVariant){var Dc=J.personalizedChannelOverviewVariant,
ze=new Gr,ge=0;try{void 0!==Dc.timePeriod&&(L(ze,1,KR[Dc.timePeriod]),ge++);if(Dc.viewsPerformance){var pc=bGa(Dc.viewsPerformance);pc[0]&&(Ch(ze,Br,2,pc[1]),ge++)}var Ec=[ge===Object.keys(Dc).length,ze]}catch(Na){Y(Na),Ec=[!1,void 0]}var wd=Ec;wd[0]&&(Dh(ha,Gr,9,JR,wd[1]),X++)}if(J.channelNewReturningVariant){var yc=J.channelNewReturningVariant,Oc=new Ar,Fd=0;try{void 0!==yc.uniqueViewers&&(L(Oc,1,LR[yc.uniqueViewers]),Fd++);void 0!==yc.newViewers&&(L(Oc,2,LR[yc.newViewers]),Fd++);void 0!==yc.returningViewers&&
(L(Oc,3,LR[yc.returningViewers]),Fd++);var Pc=[Fd===Object.keys(yc).length,Oc]}catch(Na){Y(Na),Pc=[!1,void 0]}var Kd=Pc;Kd[0]&&(Dh(ha,Ar,10,JR,Kd[1]),X++)}if(J.lowReturningViewersDataStoryVariant){var Hb=J.lowReturningViewersDataStoryVariant,qe=new Fr,Lb=0;try{void 0!==Hb.videoListType&&(L(qe,1,cGa[Hb.videoListType]),Lb++);var Ib=[Lb===Object.keys(Hb).length,qe]}catch(Na){Y(Na),Ib=[!1,void 0]}var ig=Ib;ig[0]&&(Dh(ha,Fr,11,JR,ig[1]),X++)}if(J.weeklyDataStoryVariant){var he=J.weeklyDataStoryVariant,
Qc=new Jr,Kc=0;try{void 0!==he.dateId&&(L(Qc,1,he.dateId),Kc++);var xd=[Kc===Object.keys(he).length,Qc]}catch(Na){Y(Na),xd=[!1,void 0]}var Ud=xd;Ud[0]&&(Dh(ha,Jr,12,JR,Ud[1]),X++)}var pd=[X===Object.keys(J).length,ha]}catch(Na){Y(Na),pd=[!1,void 0]}var nf=pd;nf[0]&&(Ch(na,Kr,12,nf[1]),r++)}if(Q.cardConfig){var sc=Q.cardConfig,qd=new Or,ie=0;try{void 0!==sc.cardType&&(L(qd,3,dGa[sc.cardType]),ie++);void 0!==sc.legacyMobileCardType&&(L(qd,5,eGa[sc.legacyMobileCardType]),ie++);void 0!==sc.entityType&&
(L(qd,4,fGa[sc.entityType]),ie++);if(sc.tableCardConfig){var Oe=sc.tableCardConfig,$e=new Nr,Kg=0;try{void 0!==Oe.dimension&&(L($e,1,MR[Oe.dimension]),Kg++);void 0!==Oe.metrics&&(HR($e.j.bind($e),Oe.metrics,MR),Kg++);var Pb=[Kg===Object.keys(Oe).length,$e]}catch(Na){Y(Na),Pb=[!1,void 0]}var bj=Pb;bj[0]&&(Dh(qd,Nr,1,gGa,bj[1]),ie++)}if(sc.keyMetricCardConfig){var of=sc.keyMetricCardConfig,mh=new Mr,Rh=0;try{of.metricTabConfigs&&(GR(mh.j.bind(mh),of.metricTabConfigs,hGa),Rh++);var Ae=[Rh===Object.keys(of).length,
mh]}catch(Na){Y(Na),Ae=[!1,void 0]}var cj=Ae;cj[0]&&(Dh(qd,Mr,2,gGa,cj[1]),ie++)}var Sh=[ie===Object.keys(sc).length,qd]}catch(Na){Y(Na),Sh=[!1,void 0]}var dj=Sh;dj[0]&&(Ch(na,Or,13,dj[1]),r++)}void 0!==Q.externalVideoId&&(L(na,15,Q.externalVideoId),r++);void 0!==Q.videoSid&&(L(na,16,Q.videoSid),r++);if(Q.exploreConfig){var Pe=Q.exploreConfig,nh=new Wr,ui=0;try{void 0!==Pe.metrics&&(HR(nh.j.bind(nh),Pe.metrics,MR),ui++);void 0!==Pe.dimension&&(L(nh,2,MR[Pe.dimension]),ui++);void 0!==Pe.timePeriodType&&
(L(nh,3,KR[Pe.timePeriodType]),ui++);var Pj=[ui===Object.keys(Pe).length,nh]}catch(Na){Y(Na),Pj=[!1,void 0]}var ej=Pj;ej[0]&&(Ch(na,Wr,18,ej[1]),r++)}if(Q.contentInspirationEntity){var Qf=Q.contentInspirationEntity,Lg=new wr,vi=0;try{if(Qf.video){var wi=Qf.video,fj=new vr,Qj=0;try{void 0!==wi.externalVideoId&&(L(fj,1,wi.externalVideoId),Qj++);var Uc=[Qj===Object.keys(wi).length,fj]}catch(Na){Y(Na),Uc=[!1,void 0]}var je=Uc;je[0]&&(Dh(Lg,vr,1,iGa,je[1]),vi++)}if(Qf.kgTopic){var qc=Qf.kgTopic,oh=new ur,
Rj=0;try{void 0!==qc.kgTopicMid&&(L(oh,1,qc.kgTopicMid),Rj++);var Mg=[Rj===Object.keys(qc).length,oh]}catch(Na){Y(Na),Mg=[!1,void 0]}var xi=Mg;xi[0]&&(Dh(Lg,ur,2,iGa,xi[1]),vi++)}if(Qf.freeformTopic){var Ng=Qf.freeformTopic,gj=new tr,af=0;try{void 0!==Ng.freeformTopic&&(L(gj,1,Ng.freeformTopic),af++);void 0!==Ng.isContentGap&&(L(gj,2,Ng.isContentGap),af++);var yi=[af===Object.keys(Ng).length,gj]}catch(Na){Y(Na),yi=[!1,void 0]}var zi=yi;zi[0]&&(Dh(Lg,tr,3,iGa,zi[1]),vi++)}var Sj=[vi===Object.keys(Qf).length,
Lg]}catch(Na){Y(Na),Sj=[!1,void 0]}var Th=Sj;Th[0]&&(Ch(na,wr,19,Th[1]),r++)}var re=[r===Object.keys(Q).length,na]}catch(Na){Y(Na),re=[!1,void 0]}var Rf=re;Rf[0]&&(Ch(f,Xr,20,Rf[1]),h++)}if(e.promotionData){var ke=e.promotionData,ph=new ps,Sf=0;try{void 0!==ke.promotionId&&(L(ph,1,ke.promotionId),Sf++);void 0!==ke.placementType&&(L(ph,9,jGa[ke.placementType]),Sf++);var Nk=[Sf===Object.keys(ke).length,ph]}catch(Na){Y(Na),Nk=[!1,void 0]}var Tj=Nk;Tj[0]&&(Ch(f,ps,21,Tj[1]),h++)}if(e.backstageItem){var Tf=
e.backstageItem,Be=new Yr,Zb=0;try{void 0!==Tf.stanzaId&&(L(Be,1,Tf.stanzaId),Zb++);void 0!==Tf.likeCount&&(L(Be,7,Tf.likeCount),Zb++);void 0!==Tf.backstageId&&(L(Be,9,Tf.backstageId),Zb++);void 0!==Tf.wasPostScheduled&&(L(Be,14,Tf.wasPostScheduled),Zb++);var Ld=[Zb===Object.keys(Tf).length,Be]}catch(Na){Y(Na),Ld=[!1,void 0]}var Md=Ld;Md[0]&&(Ch(f,Yr,32,Md[1]),h++)}if(e.adminSelfieData){var Og=e.adminSelfieData,Ai=new Tr,Pg=0;try{void 0!==Og.componentId&&(L(Ai,1,Og.componentId),Pg++);void 0!==Og.componentType&&
(L(Ai,2,Og.componentType),Pg++);if(Og.payload){var pf=Og.payload,qh=new Sr,Uj=0;try{if(pf.include){var Uf=pf.include,hj=new Pr,rh=0;try{void 0!==Uf.fragmentName&&(L(hj,1,Uf.fragmentName),rh++);var Ll=[rh===Object.keys(Uf).length,hj]}catch(Na){Y(Na),Ll=[!1,void 0]}var ij=Ll;ij[0]&&(Dh(qh,Pr,1,kGa,ij[1]),Uj++)}if(pf.toolboxPage){var Ml=pf.toolboxPage,jj=new Rr,Ok=0;try{void 0!==Ml.fragmentName&&(L(jj,1,Ml.fragmentName),Ok++);var Nd=[Ok===Object.keys(Ml).length,jj]}catch(Na){Y(Na),Nd=[!1,void 0]}var le=
Nd;le[0]&&(Dh(qh,Rr,2,kGa,le[1]),Uj++)}if(pf.reviewQueuePage){var bf=pf.reviewQueuePage,Ff=new Qr,Uh=0;try{void 0!==bf.queueId&&(L(Ff,1,bf.queueId),Uh++);var Bi=[Uh===Object.keys(bf).length,Ff]}catch(Na){Y(Na),Bi=[!1,void 0]}var Nl=Bi;Nl[0]&&(Dh(qh,Qr,3,kGa,Nl[1]),Uj++)}var mn=[Uj===Object.keys(pf).length,qh]}catch(Na){Y(Na),mn=[!1,void 0]}var nn=mn;nn[0]&&(Ch(Ai,Sr,3,nn[1]),Pg++)}var jg=[Pg===Object.keys(Og).length,Ai]}catch(Na){Y(Na),jg=[!1,void 0]}var kg=jg;kg[0]&&(Ch(f,Tr,41,kg[1]),h++)}if(e.notificationState){var Ce=
e.notificationState,Qg=new Cs,cf=0;try{if(Ce.inboxInteractionData){var Vh=Ce.inboxInteractionData,Vf=new Bs,sh=0;try{Vh.notifications&&(GR(Vf.j.bind(Vf),Vh.notifications,lGa),sh++);var Vj=[sh===Object.keys(Vh).length,Vf]}catch(Na){Y(Na),Vj=[!1,void 0]}var Ol=Vj;Ol[0]&&(Ch(Qg,Bs,9,Ol[1]),cf++)}var on=[cf===Object.keys(Ce).length,Qg]}catch(Na){Y(Na),on=[!1,void 0]}var qf=on;qf[0]&&(Ch(f,Cs,59,qf[1]),h++)}if(e.delegationContext){var dd=e.delegationContext,Gf=new ns,lg=0;try{void 0!==dd.externalChannelId&&
(L(Gf,1,dd.externalChannelId),lg++);void 0!==dd.externalOwnerId&&(L(Gf,3,dd.externalOwnerId),lg++);void 0!==dd.artistId&&(L(Gf,4,dd.artistId),lg++);if(dd.roleType){var kj=dd.roleType,Pl=new ms,Ql=0;try{void 0!==kj.channelRoleType&&(yh(Pl,1,mGa,nGa[kj.channelRoleType]),Ql++);void 0!==kj.artistRoleType&&(yh(Pl,2,mGa,oGa[kj.artistRoleType]),Ql++);void 0!==kj.contentOwnerRoleType&&(yh(Pl,3,mGa,pGa[kj.contentOwnerRoleType]),Ql++);var th=[Ql===Object.keys(kj).length,Pl]}catch(Na){Y(Na),th=[!1,void 0]}var Pk=
th;Pk[0]&&(Ch(Gf,ms,5,Pk[1]),lg++)}void 0!==dd.oacChannelId&&(L(Gf,6,dd.oacChannelId),lg++);void 0!==dd.isInternalUser&&(L(Gf,8,dd.isInternalUser),lg++);void 0!==dd.delegationContextSerialized&&(Gh(Gf,9,dd.delegationContextSerialized),lg++);var lj=[lg===Object.keys(dd).length,Gf]}catch(Na){Y(Na),lj=[!1,void 0]}var Rl=lj;Rl[0]&&(Ch(f,ns,63,Rl[1]),h++)}if(e.campaignData){var Wj=e.campaignData,Xa=new zs,pn=0;try{void 0!==Wj.campaignName&&(L(Xa,1,Wj.campaignName),pn++);void 0!==Wj.campaignVersion&&(L(Xa,
2,Wj.campaignVersion),pn++);var qn=[pn===Object.keys(Wj).length,Xa]}catch(Na){Y(Na),qn=[!1,void 0]}var bt=qn;bt[0]&&(Ch(f,zs,64,bt[1]),h++)}if(e.scoringEventInfo){var wq=e.scoringEventInfo,Qk=new qs,xq=0;try{void 0!==wq.scoringTrackingParams&&(Gh(Qk,1,wq.scoringTrackingParams),xq++);var ct=[xq===Object.keys(wq).length,Qk]}catch(Na){Y(Na),ct=[!1,void 0]}var dt=ct;dt[0]&&(Ch(f,qs,77,dt[1]),h++)}if(e.servletData){var Wf=e.servletData,Ci=new rs,mj=0;try{void 0!==Wf.serializedServletEventId&&(L(Ci,1,Wf.serializedServletEventId),
mj++);var Jo=[mj===Object.keys(Wf).length,Ci]}catch(Na){Y(Na),Jo=[!1,void 0]}var Ko=Jo;Ko[0]&&(Ch(f,rs,83,Ko[1]),h++)}if(e.yoodleData){var Di=e.yoodleData,Sl=new ys,Rk=0;try{void 0!==Di.promoId&&(L(Sl,1,Di.promoId),Rk++);var et=[Rk===Object.keys(Di).length,Sl]}catch(Na){Y(Na),et=[!1,void 0]}var ft=et;ft[0]&&(Ch(f,ys,85,ft[1]),h++)}if(e.videoRestrictionData){var Sk=e.videoRestrictionData,Lo=new xs,yq=0;try{Sk.restrictions&&(GR(Lo.j.bind(Lo),Sk.restrictions,qGa),yq++);void 0!==Sk.prechecksPending&&
(L(Lo,2,Sk.prechecksPending),yq++);var zq=[yq===Object.keys(Sk).length,Lo]}catch(Na){Y(Na),zq=[!1,void 0]}var gt=zq;gt[0]&&(Ch(f,xs,92,gt[1]),h++)}if(e.creatorMusicData){var nj=e.creatorMusicData,Tl=new ls,uh=0;try{if(nj.entity){var rn=rGa(nj.entity);rn[0]&&(Ch(Tl,ks,1,rn[1]),uh++)}nj.entities&&(GR(Tl.j.bind(Tl),nj.entities,rGa),uh++);if(nj.track){var sn=sGa(nj.track);sn[0]&&(Dh(Tl,js,3,tGa,sn[1]),uh++)}if(nj.collection){var ht=uGa(nj.collection);ht[0]&&(Dh(Tl,hs,4,tGa,ht[1]),uh++)}var jt=[uh===Object.keys(nj).length,
Tl]}catch(Na){Y(Na),jt=[!1,void 0]}var kt=jt;kt[0]&&(Ch(f,ls,96,kt[1]),h++)}if(e.creatorData){var Mb=e.creatorData,df=new ds,Wh=0;try{void 0!==Mb.ttWizardTargetFeature&&(yh(df,1,vGa,wGa[Mb.ttWizardTargetFeature]),Wh++);void 0!==Mb.ttWizardTargetLevel&&(yh(df,2,vGa,xGa[Mb.ttWizardTargetLevel]),Wh++);if(Mb.simpleWizardDetails){var Aw=Mb.simpleWizardDetails,lt=new cs;try{var Xj=[0===Object.keys(Aw).length,lt]}catch(Na){Y(Na),Xj=[!1,void 0]}var Mo=Xj;Mo[0]&&(Dh(df,cs,3,yGa,Mo[1]),Wh++)}if(Mb.advancedWizardDetails){var Ul=
Mb.advancedWizardDetails,mt=new as,Aq=0;try{void 0!==Ul.isDoubleHop&&(L(mt,1,Ul.isDoubleHop),Aq++);var Bq=[Aq===Object.keys(Ul).length,mt]}catch(Na){Y(Na),Bq=[!1,void 0]}var nt=Bq;nt[0]&&(Dh(df,as,4,yGa,nt[1]),Wh++)}if(Mb.blockedWizardDetails){var Cq=Mb.blockedWizardDetails,Dq=new bs,ot=0;try{void 0!==Cq.loggableBlockedReason&&(L(Dq,1,zGa[Cq.loggableBlockedReason]),ot++);var Eq=[ot===Object.keys(Cq).length,Dq]}catch(Na){Y(Na),Eq=[!1,void 0]}var Fq=Eq;Fq[0]&&(Dh(df,bs,5,yGa,Fq[1]),Wh++)}var pt=[Wh===
Object.keys(Mb).length,df]}catch(Na){Y(Na),pt=[!1,void 0]}var Vl=pt;Vl[0]&&(Ch(f,ds,98,Vl[1]),h++)}if(e.adstubeData){var tn=e.adstubeData,Gq=new Vr,un=0;try{if(tn.countryTargetingPrefill){var vh=tn.countryTargetingPrefill,Tk=new Ur,No=0;try{vh.prefilledCodes&&(GR(Tk.B.bind(Tk),vh.prefilledCodes),No++);vh.finalCodes&&(GR(Tk.j.bind(Tk),vh.finalCodes),No++);void 0!==vh.source&&(L(Tk,3,vh.source),No++);var qt=[No===Object.keys(vh).length,Tk]}catch(Na){Y(Na),qt=[!1,void 0]}var Uk=qt;Uk[0]&&(Ch(Gq,Ur,1,
Uk[1]),un++)}var Oo=[un===Object.keys(tn).length,Gq]}catch(Na){Y(Na),Oo=[!1,void 0]}var Yj=Oo;Yj[0]&&(Ch(f,Vr,104,Yj[1]),h++)}if(e.loggingExpectations){var Po=AGa(e.loggingExpectations);Po[0]&&(Ch(f,Gs,106,Po[1]),h++)}var rt=[h===Object.keys(e).length,f]}catch(Na){Y(Na),rt=[!1,void 0]}var Hq=rt;Hq[0]&&(Ch(b,Hs,8,Hq[1]),c++)}if(a.loggingExpectations){var Iq=AGa(a.loggingExpectations);Iq[0]&&(Ch(b,Gs,9,Iq[1]),c++)}return[c===Object.keys(a).length,b]}catch(Na){return Y(Na),[!1,void 0]}};
WFa=function(a){var b=new Hr,c=0;try{return void 0!==a.views&&(L(b,1,LR[a.views]),c++),void 0!==a.driver&&(L(b,2,BGa[a.driver]),c++),void 0!==a.ctr&&(L(b,3,LR[a.ctr]),c++),void 0!==a.avd&&(L(b,4,LR[a.avd]),c++),void 0!==a.impressions&&(L(b,5,LR[a.impressions]),c++),void 0!==a.videoLength&&(L(b,6,LR[a.videoLength]),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
$Fa=function(a){var b=new Dr,c=0;try{return void 0!==a.subsGrowth&&(L(b,1,LR[a.subsGrowth]),c++),void 0!==a.nonSubViews&&(L(b,2,LR[a.nonSubViews]),c++),void 0!==a.subsAddedPerNonSubViews&&(L(b,3,LR[a.subsAddedPerNonSubViews]),c++),void 0!==a.accountsClosed&&(L(b,4,LR[a.accountsClosed]),c++),void 0!==a.subsRemovedToAddedRatio&&(L(b,5,LR[a.subsRemovedToAddedRatio]),c++),void 0!==a.videosPublished&&(L(b,6,LR[a.videosPublished]),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
aGa=function(a){var b=new Cr,c=0;try{return void 0!==a.revenue&&(L(b,1,LR[a.revenue]),c++),void 0!==a.revenueSource&&(L(b,2,CGa[a.revenueSource]),c++),void 0!==a.revenueDrivingMetrics&&(HR(b.j.bind(b),a.revenueDrivingMetrics,DGa),c++),void 0!==a.revenueChangeReason&&(L(b,4,EGa[a.revenueChangeReason]),c++),void 0!==a.revenueChangeFact&&(L(b,5,FGa[a.revenueChangeFact]),c++),void 0!==a.driverCountryCode&&(L(b,6,a.driverCountryCode),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
bGa=function(a){var b=new Br,c=0;try{return void 0!==a.views&&(L(b,1,LR[a.views]),c++),void 0!==a.drivers&&(HR(b.j.bind(b),a.drivers,GGa),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
hGa=function(a){var b=new Lr,c=0;try{return void 0!==a.metric&&(L(b,1,MR[a.metric]),c++),void 0!==a.comparisonMetric&&(L(b,2,MR[a.comparisonMetric]),c++),void 0!==a.includeCumulative&&(L(b,3,a.includeCumulative),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
lGa=function(a){var b=new As,c=0;try{return void 0!==a.attributionTag&&(L(b,2,a.attributionTag),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
qGa=function(a){var b=new ws,c=0;try{if(a.limitedAds){var d=a.limitedAds,e=new vs,f=0;try{void 0!==d.imposer&&(L(e,1,HGa[d.imposer]),f++);var h=[f===Object.keys(d).length,e]}catch(w){Y(w),h=[!1,void 0]}h[0]&&(Dh(b,vs,1,IGa,h[1]),c++)}if(a.copyright){var l=a.copyright,m=new us;h=0;try{void 0!==l.policyType&&(L(m,1,JGa[l.policyType]),h++);var n=[h===Object.keys(l).length,m]}catch(w){Y(w),n=[!1,void 0]}n[0]&&(Dh(b,us,2,IGa,n[1]),c++)}if(a.communityGuidelines){var p=a.communityGuidelines,q=new ts;n=0;
try{void 0!==p.policyVerticals&&(HR(q.j.bind(q),p.policyVerticals,KGa),n++);var t=[n===Object.keys(p).length,q]}catch(w){Y(w),t=[!1,void 0]}t[0]&&(Dh(b,ts,3,IGa,t[1]),c++)}return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
rGa=function(a){var b=new ks,c=0;try{if(a.featuredCollection){var d=LGa(a.featuredCollection);d[0]&&(Dh(b,es,1,NR,d[1]),c++)}if(a.mood){var e=MGa(a.mood);e[0]&&(Dh(b,gs,2,NR,e[1]),c++)}if(a.genre){var f=NGa(a.genre);f[0]&&(Dh(b,fs,3,NR,f[1]),c++)}if(a.track){var h=sGa(a.track);h[0]&&(Dh(b,js,4,NR,h[1]),c++)}return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
LGa=function(a){var b=new es,c=0;try{return void 0!==a.id&&(L(b,1,a.id),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
MGa=function(a){var b=new gs,c=0;try{return void 0!==a.type&&(L(b,1,OGa[a.type]),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
NGa=function(a){var b=new fs,c=0;try{return void 0!==a.type&&(L(b,1,PGa[a.type]),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
sGa=function(a){var b=new js,c=0;try{void 0!==a.artTrackId&&(L(b,1,a.artTrackId),c++);void 0!==a.assetId&&(L(b,2,a.assetId),c++);if(a.details){var d=a.details,e=new is;try{var f=[0===Object.keys(d).length,e]}catch(l){Y(l),f=[!1,void 0]}f[0]&&(Ch(b,is,3,f[1]),c++)}if(a.parent){var h=uGa(a.parent);h[0]&&(Ch(b,hs,4,h[1]),c++)}return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
uGa=function(a){var b=new hs,c=0;try{if(a.featuredCollection){var d=LGa(a.featuredCollection);d[0]&&(Dh(b,es,1,QGa,d[1]),c++)}if(a.mood){var e=MGa(a.mood);e[0]&&(Dh(b,gs,2,QGa,e[1]),c++)}if(a.genre){var f=NGa(a.genre);f[0]&&(Dh(b,fs,3,QGa,f[1]),c++)}return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
AGa=function(a){var b=new Gs,c=0;try{if(a.attachLoggingExpectations){var d=a.attachLoggingExpectations,e=new Es,f=0;try{d.attachScreenExpectations&&(GR(e.j.bind(e),d.attachScreenExpectations,RGa),f++);var h=[f===Object.keys(d).length,e]}catch(p){Y(p),h=[!1,void 0]}h[0]&&(Ch(b,Es,1,h[1]),c++)}if(a.screenCreatedLoggingExpectations){var l=a.screenCreatedLoggingExpectations,m=new Fs;h=0;try{l.expectedParentScreens&&(GR(m.j.bind(m),l.expectedParentScreens,RGa),h++);var n=[h===Object.keys(l).length,m]}catch(p){Y(p),
n=[!1,void 0]}n[0]&&(Ch(b,Fs,2,n[1]),c++)}return[c===Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}};
RGa=function(a){var b=new Ds,c=0;try{return void 0!==a.screenVeType&&(Dma(b,a.screenVeType),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
UGa=function(a){var b=new Iu,c=0;try{return a.segments&&(GR(b.j.bind(b),a.segments,SGa),c++),a.transitions&&(GR(b.B.bind(b),a.transitions,TGa),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
SGa=function(a){var b=new Gu,c=0;try{void 0!==a.type&&(L(b,1,VGa[a.type]),c++);a.effects&&(GR(b.N1.bind(b),a.effects,WGa),c++);if(a.videoInfo){var d=a.videoInfo,e=new Eu,f=0;try{void 0!==d.resolutionWidth&&(L(e,1,d.resolutionWidth),f++);void 0!==d.resolutionHeight&&(L(e,2,d.resolutionHeight),f++);void 0!==d.frameRate&&(Eh(e,3,d.frameRate),f++);void 0!==d.durationMs&&(L(e,4,d.durationMs),f++);var h=[f===Object.keys(d).length,e]}catch(p){Y(p),h=[!1,void 0]}h[0]&&(Ch(b,Eu,3,h[1]),c++)}if(a.audioInfo){var l=
a.audioInfo,m=new Du;h=0;try{void 0!==l.sourceOffsetMs&&(L(m,1,l.sourceOffsetMs),h++);void 0!==l.sampleRateHz&&(L(m,2,l.sampleRateHz),h++);void 0!==l.channelCount&&(L(m,3,l.channelCount),h++);var n=[h===Object.keys(l).length,m]}catch(p){Y(p),n=[!1,void 0]}n[0]&&(Ch(b,Du,4,n[1]),c++)}void 0!==a.startTimeMs&&(L(b,5,a.startTimeMs),c++);void 0!==a.durationMs&&(L(b,6,a.durationMs),c++);void 0!==a.playbackRate&&(b.setPlaybackRate(a.playbackRate),c++);void 0!==a.enabled&&(b.fP(a.enabled),c++);return[c===
Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}};
WGa=function(a){var b=new Fu,c=0;try{return void 0!==a.effectBaseName&&(L(b,1,a.effectBaseName),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
TGa=function(a){var b=new Hu,c=0;try{if(a.incomingSegment){var d=SGa(a.incomingSegment);d[0]&&(Ch(b,Gu,1,d[1]),c++)}if(a.outgoingSegment){var e=SGa(a.outgoingSegment);e[0]&&(Ch(b,Gu,2,e[1]),c++)}void 0!==a.durationMs&&(L(b,3,a.durationMs),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
XGa=function(a){var b=new zu,c=0;try{return void 0!==a.previewWidth&&(L(b,1,a.previewWidth),c++),void 0!==a.previewHeight&&(L(b,2,a.previewHeight),c++),void 0!==a.fps&&(L(b,3,a.fps),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
MHa=function(a){var b=new pw,c=0;try{void 0!==a.encryptedVideoId&&(L(b,1,a.encryptedVideoId),c++);void 0!==a.cotn&&(L(b,20,a.cotn),c++);void 0!==a.cpn&&(L(b,30,a.cpn),c++);void 0!==a.transferStatusType&&(L(b,38,YGa[a.transferStatusType]),c++);void 0!==a.statusType&&(L(b,2,ZGa[a.statusType]),c++);void 0!==a.failureReason&&(L(b,3,$Ga[a.failureReason]),c++);void 0!==a.transferFailureReason&&(L(b,41,aHa[a.transferFailureReason]),c++);void 0!==a.failureExceptionType&&(L(b,37,a.failureExceptionType),c++);
void 0!==a.totalFetchedKbytes&&(L(b,4,a.totalFetchedKbytes),c++);void 0!==a.diskAvailableKbytes&&(L(b,5,a.diskAvailableKbytes),c++);void 0!==a.totalContentKbytes&&(L(b,21,a.totalContentKbytes),c++);void 0!==a.alreadyDownloadedKbytes&&(L(b,22,a.alreadyDownloadedKbytes),c++);void 0!==a.fetchedFromCacheKbytes&&(L(b,23,a.fetchedFromCacheKbytes),c++);if(a.systemHealth){var d=a.systemHealth,e=new qv,f=0;try{void 0!==d.tag&&(L(e,1,bHa[d.tag]),f++);if(d.staticContext){var h=d.staticContext,l=new lv,m=0;try{void 0!==
h.displayDensityDpi&&(L(l,1,h.displayDensityDpi),m++);void 0!==h.heightPixels&&(L(l,2,h.heightPixels),m++);void 0!==h.widthPixels&&(L(l,3,h.widthPixels),m++);void 0!==h.memoryTotalKbytes&&(L(l,4,h.memoryTotalKbytes),m++);void 0!==h.osSdkVersion&&(L(l,5,h.osSdkVersion),m++);void 0!==h.osIncrementalVersion&&(L(l,6,h.osIncrementalVersion),m++);void 0!==h.hardwareArchitecture&&(L(l,7,h.hardwareArchitecture),m++);void 0!==h.appVersionCode&&(L(l,8,h.appVersionCode),m++);void 0!==h.devicePixelRatio&&(Eh(l,
9,h.devicePixelRatio),m++);void 0!==h.buildFingerprint&&(L(l,10,h.buildFingerprint),m++);void 0!==h.socManufacturer&&(L(l,11,h.socManufacturer),m++);void 0!==h.socModel&&(L(l,12,h.socModel),m++);void 0!==h.availableProcessors&&(L(l,13,h.availableProcessors),m++);void 0!==h.cpuCores&&(L(l,14,h.cpuCores),m++);void 0!==h.heightPoints&&(L(l,15,h.heightPoints),m++);void 0!==h.widthPoints&&(L(l,16,h.widthPoints),m++);void 0!==h.androidMediaPerformanceClass&&(L(l,17,h.androidMediaPerformanceClass),m++);
var n=[m===Object.keys(h).length,l]}catch(Xa){Y(Xa),n=[!1,void 0]}var p=n;p[0]&&(Ch(e,lv,2,p[1]),f++)}if(d.dynamicContext){var q=d.dynamicContext,t=new fv,w=0;try{void 0!==q.screenOn&&(L(t,1,q.screenOn),w++);void 0!==q.deviceRotation&&(L(t,2,q.deviceRotation),w++);void 0!==q.networkType&&(L(t,3,q.networkType),w++);void 0!==q.networkCoarseState&&(L(t,4,q.networkCoarseState),w++);void 0!==q.chargingStatus&&(L(t,5,cHa[q.chargingStatus]),w++);void 0!==q.isInForeground&&(L(t,6,q.isInForeground),w++);void 0!==
q.viewportHeightPixels&&(L(t,7,q.viewportHeightPixels),w++);void 0!==q.viewportWidthPixels&&(L(t,8,q.viewportWidthPixels),w++);void 0!==q.hasCoarsePointer&&(L(t,9,q.hasCoarsePointer),w++);void 0!==q.hasFinePointer&&(L(t,10,q.hasFinePointer),w++);void 0!==q.hasHoverSupport&&(L(t,11,q.hasHoverSupport),w++);void 0!==q.deviceFreeStorageMbytes&&(L(t,12,q.deviceFreeStorageMbytes),w++);void 0!==q.deviceStorageQuotaMbytes&&(L(t,13,q.deviceStorageQuotaMbytes),w++);void 0!==q.deviceStorageUsageMbytes&&(L(t,
14,q.deviceStorageUsageMbytes),w++);void 0!==q.processUptimeMs&&(L(t,15,q.processUptimeMs),w++);void 0!==q.hasAppShell&&(L(t,16,q.hasAppShell),w++);void 0!==q.glVersion&&(L(t,17,q.glVersion),w++);void 0!==q.glRenderer&&(L(t,18,q.glRenderer),w++);q.srsDatapushBuildIds&&(GR(t.B.bind(t),q.srsDatapushBuildIds,dHa),w++);q.playerDatapushBuildIds&&(GR(t.j.bind(t),q.playerDatapushBuildIds,eHa),w++);if(q.creationContext){var z=q.creationContext,C=new dv,G=0;try{void 0!==z.activeFrontendUploadId&&(L(C,1,z.activeFrontendUploadId),
G++);void 0!==z.inShortsCreation&&(L(C,2,z.inShortsCreation),G++);z.activeEffectLoggingIds&&(GR(C.j.bind(C),z.activeEffectLoggingIds,fHa),G++);var O=[G===Object.keys(z).length,C]}catch(Xa){Y(Xa),O=[!1,void 0]}var N=O;N[0]&&(Ch(t,dv,21,N[1]),w++)}if(q.kimonoContext){var K=q.kimonoContext,W=new ev,Z=0;try{void 0!==K.cobaltUserAgent&&(L(W,1,K.cobaltUserAgent),Z++);void 0!==K.webAppVersion&&(L(W,2,K.webAppVersion),Z++);void 0!==K.cobaltVersion&&(L(W,3,K.cobaltVersion),Z++);var Q=[Z===Object.keys(K).length,
W]}catch(Xa){Y(Xa),Q=[!1,void 0]}var na=Q;na[0]&&(Ch(t,ev,22,na[1]),w++)}var r=[w===Object.keys(q).length,t]}catch(Xa){Y(Xa),r=[!1,void 0]}var J=r;J[0]&&(Ch(e,fv,3,J[1]),f++)}void 0!==d.serializedPrimesMetric&&(Gh(e,4,d.serializedPrimesMetric),f++);void 0!==d.serializedIosPrimesMetric&&(Gh(e,6,d.serializedIosPrimesMetric),f++);if(d.webMetric){var ha=d.webMetric,X=new nv,Da=0;try{void 0!==ha.currentHeapKbytes&&(L(X,1,ha.currentHeapKbytes),Da++);void 0!==ha.navigationCount&&(L(X,2,ha.navigationCount),
Da++);var za=[Da===Object.keys(ha).length,X]}catch(Xa){Y(Xa),za=[!1,void 0]}var Za=za;Za[0]&&(Ch(e,nv,7,Za[1]),f++)}if(d.crashData){var cb=d.crashData,wa=new $u,$a=0;try{void 0!==cb.stackTrace&&(L(wa,1,cb.stackTrace),$a++);void 0!==cb.screenVeType&&(L(wa,2,cb.screenVeType),$a++);if(cb.compactStackTrace){var u=OR(cb.compactStackTrace);u[0]&&(Ch(wa,ou,3,u[1]),$a++)}void 0!==cb.crashTimeMs&&(L(wa,4,cb.crashTimeMs),$a++);if(cb.clientError){var D=cb.clientError,F=new Zu,B=0;try{if(D.errorMetadata){var M=
D.errorMetadata,H=new Mu,R=0;try{void 0!==M.exceptionCategory&&(L(H,1,gHa[M.exceptionCategory]),R++);if(M.serviceTrackingData){var T=M.serviceTrackingData,ea=new yu,ca=0;try{void 0!==T.innertubeBuildChangelist&&(L(ea,1,T.innertubeBuildChangelist),ca++);void 0!==T.innertubeBuildExperimentsSourceVersion&&(L(ea,2,T.innertubeBuildExperimentsSourceVersion),ca++);void 0!==T.innertubeBuildLabel&&(L(ea,3,T.innertubeBuildLabel),ca++);void 0!==T.innertubeBuildTimestampSec&&(L(ea,4,T.innertubeBuildTimestampSec),
ca++);void 0!==T.innertubeBuildVariantsChecksum&&(L(ea,5,T.innertubeBuildVariantsChecksum),ca++);void 0!==T.innertubeJobName&&(L(ea,6,T.innertubeJobName),ca++);var ia=[ca===Object.keys(T).length,ea]}catch(Xa){Y(Xa),ia=[!1,void 0]}var ra=ia;ra[0]&&(Ch(H,yu,2,ra[1]),R++)}void 0!==M.pageUrl&&(L(H,3,M.pageUrl),R++);M.kvPairs&&(GR(H.j.bind(H),M.kvPairs,hHa),R++);M.experimentIds&&(GR(H.B.bind(H),M.experimentIds),R++);if(M.playerMetadata){var ya=M.playerMetadata,tb=new Lu,jb=0;try{void 0!==ya.error&&(HR(tb.j.bind(tb),
ya.error,iHa),jb++);void 0!==ya.stackTrace&&(L(tb,2,ya.stackTrace),jb++);var yb=[jb===Object.keys(ya).length,tb]}catch(Xa){Y(Xa),yb=[!1,void 0]}var eb=yb;eb[0]&&(Ch(H,Lu,6,eb[1]),R++)}void 0!==M.exceptionType&&(L(H,7,jHa[M.exceptionType]),R++);void 0!==M.clientScreenNonce&&(L(H,8,M.clientScreenNonce),R++);if(M.blocksMethodExecutionInfo){var Ra=M.blocksMethodExecutionInfo,kb=new wu,Kb=0;try{void 0!==Ra.methodId&&(L(kb,1,Ra.methodId),Kb++);void 0!==Ra.blockTypeId&&(L(kb,2,Ra.blockTypeId),Kb++);void 0!==
Ra.methodType&&(L(kb,3,kHa[Ra.methodType]),Kb++);void 0!==Ra.requestSize&&(L(kb,4,Ra.requestSize),Kb++);void 0!==Ra.responseSize&&(L(kb,5,Ra.responseSize),Kb++);void 0!==Ra.statusCode&&(L(kb,6,Ra.statusCode),Kb++);void 0!==Ra.containerId&&(L(kb,7,Ra.containerId),Kb++);void 0!==Ra.moduleIdentifier&&(L(kb,8,Ra.moduleIdentifier),Kb++);void 0!==Ra.datapushBuildId&&(L(kb,9,Ra.datapushBuildId),Kb++);var xc=[Kb===Object.keys(Ra).length,kb]}catch(Xa){Y(Xa),xc=[!1,void 0]}var vd=xc;vd[0]&&(Ch(H,wu,9,vd[1]),
R++)}if(M.mediaEngineMetadata){var ub=M.mediaEngineMetadata,ac=new Ku,Eb=0;try{void 0!==ub.client&&(ac.zt(lHa[ub.client]),Eb++);void 0!==ub.mdeErrorType&&(L(ac,2,mHa[ub.mdeErrorType]),Eb++);void 0!==ub.uploadId&&(L(ac,3,ub.uploadId),Eb++);ub.composition&&(GR(ac.j.bind(ac),ub.composition,UGa),Eb++);if(ub.player){var kc=ub.player,Dc=new Ju,ze=0;try{void 0!==kc.state&&(Dc.pc(nHa[kc.state]),ze++);void 0!==kc.playbackPositionTimeMs&&(L(Dc,2,kc.playbackPositionTimeMs),ze++);var ge=[ze===Object.keys(kc).length,
Dc]}catch(Xa){Y(Xa),ge=[!1,void 0]}var pc=ge;pc[0]&&(Ch(ac,Ju,5,pc[1]),Eb++)}if(ub.exporter){var Ec=ub.exporter,wd=new Cu,yc=0;try{if(Ec.settings){var Oc=Ec.settings,Fd=new Bu,Pc=0;try{void 0!==Oc.audioChannelCount&&(L(Fd,1,Oc.audioChannelCount),Pc++);void 0!==Oc.resolutionWidth&&(L(Fd,2,Oc.resolutionWidth),Pc++);void 0!==Oc.resolutionHeight&&(L(Fd,3,Oc.resolutionHeight),Pc++);var Kd=[Pc===Object.keys(Oc).length,Fd]}catch(Xa){Y(Xa),Kd=[!1,void 0]}var Hb=Kd;Hb[0]&&(wd.Yg(Hb[1]),yc++)}void 0!==Ec.state&&
(wd.pc(oHa[Ec.state]),yc++);void 0!==Ec.durationMs&&(L(wd,3,Ec.durationMs),yc++);var qe=[yc===Object.keys(Ec).length,wd]}catch(Xa){Y(Xa),qe=[!1,void 0]}var Lb=qe;Lb[0]&&(Ch(ac,Cu,6,Lb[1]),Eb++)}var Ib=[Eb===Object.keys(ub).length,ac]}catch(Xa){Y(Xa),Ib=[!1,void 0]}var ig=Ib;ig[0]&&(Ch(H,Ku,10,ig[1]),R++)}if(M.cameraMetadata){var he=M.cameraMetadata,Qc=new Au,Kc=0;try{void 0!==he.uploadFrontendId&&(L(Qc,1,he.uploadFrontendId),Kc++);void 0!==he.cameraApiClient&&(L(Qc,2,pHa[he.cameraApiClient]),Kc++);
he.cameraConfigs&&(GR(Qc.j.bind(Qc),he.cameraConfigs,XGa),Kc++);void 0!==he.canFindCamera&&(L(Qc,4,he.canFindCamera),Kc++);var xd=[Kc===Object.keys(he).length,Qc]}catch(Xa){Y(Xa),xd=[!1,void 0]}var Ud=xd;Ud[0]&&(Ch(H,Au,11,Ud[1]),R++)}var pd=[R===Object.keys(M).length,H]}catch(Xa){Y(Xa),pd=[!1,void 0]}var nf=pd;nf[0]&&(Ch(F,Mu,1,nf[1]),B++)}if(D.stackTrace){var sc=D.stackTrace,qd=new Xu,ie=0;try{void 0!==sc.isObfuscated&&(L(qd,1,sc.isObfuscated),ie++);if(sc.androidStackInfo){var Oe=sc.androidStackInfo,
$e=new Nu,Kg=0;try{void 0!==Oe.serializedThrowable&&(Gh($e,1,Oe.serializedThrowable),Kg++);var Pb=[Kg===Object.keys(Oe).length,$e]}catch(Xa){Y(Xa),Pb=[!1,void 0]}var bj=Pb;bj[0]&&(Dh(qd,Nu,2,CD,bj[1]),ie++)}if(sc.browserStackInfo){var of=sc.browserStackInfo,mh=new Ou,Rh=0;try{void 0!==of.stackTrace&&(L(mh,1,of.stackTrace),Rh++);void 0!==of.lineNumber&&(L(mh,2,of.lineNumber),Rh++);void 0!==of.columnNumber&&(L(mh,3,of.columnNumber),Rh++);void 0!==of.filename&&(L(mh,4,of.filename),Rh++);var Ae=[Rh===
Object.keys(of).length,mh]}catch(Xa){Y(Xa),Ae=[!1,void 0]}var cj=Ae;cj[0]&&(Dh(qd,Ou,3,CD,cj[1]),ie++)}if(sc.iosStackInfo){var Sh=sc.iosStackInfo,dj=new Pu,Pe=0;try{void 0!==Sh.stackTrace&&(L(dj,1,Sh.stackTrace),Pe++);if(Sh.compactStackTrace){var nh=OR(Sh.compactStackTrace);nh[0]&&(Ch(dj,ou,2,nh[1]),Pe++)}var ui=[Pe===Object.keys(Sh).length,dj]}catch(Xa){Y(Xa),ui=[!1,void 0]}var Pj=ui;Pj[0]&&(Dh(qd,Pu,4,CD,Pj[1]),ie++)}if(sc.multiLanguageStackInfo){var ej=sc.multiLanguageStackInfo,Qf=new Wu,Lg=0;
try{ej.languageStackTraces&&(GR(Qf.j.bind(Qf),ej.languageStackTraces,qHa),Lg++);var vi=[Lg===Object.keys(ej).length,Qf]}catch(Xa){Y(Xa),vi=[!1,void 0]}var wi=vi;wi[0]&&(Dh(qd,Wu,5,CD,wi[1]),ie++)}var fj=[ie===Object.keys(sc).length,qd]}catch(Xa){Y(Xa),fj=[!1,void 0]}var Qj=fj;Qj[0]&&(Ch(F,Xu,2,Qj[1]),B++)}if(D.logMessage){var Uc=D.logMessage,je=new Yu,qc=0;try{void 0!==Uc.message&&(L(je,1,Uc.message),qc++);void 0!==Uc.level&&(L(je,2,rHa[Uc.level]),qc++);void 0!==Uc.errorClassName&&(L(je,3,Uc.errorClassName),
qc++);void 0!==Uc.sourceMethodName&&(L(je,4,Uc.sourceMethodName),qc++);void 0!==Uc.sampleWeight&&(L(je,6,Uc.sampleWeight),qc++);var oh=[qc===Object.keys(Uc).length,je]}catch(Xa){Y(Xa),oh=[!1,void 0]}var Rj=oh;Rj[0]&&(Ch(F,Yu,3,Rj[1]),B++)}var Mg=[B===Object.keys(D).length,F]}catch(Xa){Y(Xa),Mg=[!1,void 0]}var xi=Mg;xi[0]&&(Ch(wa,Zu,5,xi[1]),$a++)}var Ng=[$a===Object.keys(cb).length,wa]}catch(Xa){Y(Xa),Ng=[!1,void 0]}var gj=Ng;gj[0]&&(Ch(e,$u,9,gj[1]),f++)}d.delayedEventMetrics&&(GR(e.j.bind(e),d.delayedEventMetrics,
RFa),f++);if(d.iosBatteryMetric){var af=d.iosBatteryMetric,yi=new ru,zi=0;try{void 0!==af.sampleDurationMs&&(L(yi,1,af.sampleDurationMs),zi++);if(af.startSample){var Sj=sHa(af.startSample);Sj[0]&&(Ch(yi,qu,2,Sj[1]),zi++)}if(af.endSample){var Th=sHa(af.endSample);Th[0]&&(Ch(yi,qu,3,Th[1]),zi++)}var re=[zi===Object.keys(af).length,yi]}catch(Xa){Y(Xa),re=[!1,void 0]}var Rf=re;Rf[0]&&(Ch(e,ru,11,Rf[1]),f++)}if(d.androidBatteryMetric){var ke=d.androidBatteryMetric,ph=new hu,Sf=0;try{void 0!==ke.sampleDurationMs&&
(L(ph,1,ke.sampleDurationMs),Sf++);if(ke.startSample){var Nk=tHa(ke.startSample);Nk[0]&&(Ch(ph,gu,2,Nk[1]),Sf++)}if(ke.endSample){var Tj=tHa(ke.endSample);Tj[0]&&(Ch(ph,gu,3,Tj[1]),Sf++)}var Tf=[Sf===Object.keys(ke).length,ph]}catch(Xa){Y(Xa),Tf=[!1,void 0]}var Be=Tf;Be[0]&&(Ch(e,hu,12,Be[1]),f++)}if(d.webApiSupport){var Zb=d.webApiSupport,Ld=new mv,Md=0;try{void 0!==Zb.intersectionObserverPresent&&(L(Ld,1,Zb.intersectionObserverPresent),Md++);void 0!==Zb.indexedDbPresent&&(L(Ld,2,Zb.indexedDbPresent),
Md++);void 0!==Zb.serviceWorkerPresent&&(L(Ld,3,Zb.serviceWorkerPresent),Md++);void 0!==Zb.webSharePresent&&(L(Ld,4,Zb.webSharePresent),Md++);void 0!==Zb.fullScreenApiPresent&&(L(Ld,5,Zb.fullScreenApiPresent),Md++);void 0!==Zb.cacheStoragePresent&&(L(Ld,6,Zb.cacheStoragePresent),Md++);void 0!==Zb.storageEstimatePresent&&(L(Ld,7,Zb.storageEstimatePresent),Md++);void 0!==Zb.storagePersistPresent&&(L(Ld,8,Zb.storagePersistPresent),Md++);void 0!==Zb.webkitTemporaryStoragePresent&&(L(Ld,9,Zb.webkitTemporaryStoragePresent),
Md++);void 0!==Zb.idb2Present&&(L(Ld,10,Zb.idb2Present),Md++);void 0!==Zb.promiseRejectionEventPresent&&(L(Ld,11,Zb.promiseRejectionEventPresent),Md++);void 0!==Zb.subtleCryptoPresent&&(L(Ld,12,Zb.subtleCryptoPresent),Md++);void 0!==Zb.broadcastChannelPresent&&(L(Ld,13,Zb.broadcastChannelPresent),Md++);void 0!==Zb.webLocksApiPresent&&(L(Ld,14,Zb.webLocksApiPresent),Md++);var Og=[Md===Object.keys(Zb).length,Ld]}catch(Xa){Y(Xa),Og=[!1,void 0]}var Ai=Og;Ai[0]&&(Ch(e,mv,13,Ai[1]),f++)}if(d.cpuProfiling){var Pg=
d.cpuProfiling,pf=new vu,qh=0;try{if(Pg.profilingSamples){var Uj=OR(Pg.profilingSamples);Uj[0]&&(Ch(pf,ou,1,Uj[1]),qh++)}if(Pg.config){var Uf=Pg.config,hj=new uu,rh=0;try{void 0!==Uf.profilingIntervalSec&&(Eh(hj,1,Uf.profilingIntervalSec),rh++);void 0!==Uf.profilingDurationSec&&(Eh(hj,2,Uf.profilingDurationSec),rh++);void 0!==Uf.timerType&&(L(hj,3,uHa[Uf.timerType]),rh++);void 0!==Uf.profilingStartTimeSec&&(Eh(hj,4,Uf.profilingStartTimeSec),rh++);void 0!==Uf.fractionOfRunsToSample&&(Eh(hj,5,Uf.fractionOfRunsToSample),
rh++);var Ll=[rh===Object.keys(Uf).length,hj]}catch(Xa){Y(Xa),Ll=[!1,void 0]}var ij=Ll;ij[0]&&(pf.setConfig(ij[1]),qh++)}var Ml=[qh===Object.keys(Pg).length,pf]}catch(Xa){Y(Xa),Ml=[!1,void 0]}var jj=Ml;jj[0]&&(Ch(e,vu,14,jj[1]),f++)}if(d.stallStackTrace){var Ok=OR(d.stallStackTrace);Ok[0]&&(Ch(e,ou,15,Ok[1]),f++)}if(d.memoryUsage){var Nd=d.memoryUsage,le=new iv,bf=0;try{void 0!==Nd.totalMemoryUsageBytes&&(L(le,1,Nd.totalMemoryUsageBytes),bf++);Nd.classMemoryUsage&&(GR(le.j.bind(le),Nd.classMemoryUsage,
vHa),bf++);if(Nd.config){var Ff=Nd.config,Uh=new hv,Bi=0;try{void 0!==Ff.maxStartTimeSec&&(L(Uh,1,Ff.maxStartTimeSec),Bi++);void 0!==Ff.durationTimeSec&&(L(Uh,2,Ff.durationTimeSec),Bi++);void 0!==Ff.intervalSec&&(L(Uh,3,Ff.intervalSec),Bi++);void 0!==Ff.maxLogCount&&(L(Uh,4,Ff.maxLogCount),Bi++);void 0!==Ff.fractionOfRunsToSample&&(Eh(Uh,5,Ff.fractionOfRunsToSample),Bi++);var Nl=[Bi===Object.keys(Ff).length,Uh]}catch(Xa){Y(Xa),Nl=[!1,void 0]}var mn=Nl;mn[0]&&(le.setConfig(mn[1]),bf++)}void 0!==Nd.processUptimeMs&&
(L(le,4,Nd.processUptimeMs),bf++);void 0!==Nd.foregroundUptimeMs&&(L(le,8,Nd.foregroundUptimeMs),bf++);Nd.viewAllocation&&(GR(le.D.bind(le),Nd.viewAllocation,vHa),bf++);void 0!==Nd.entityStoreCount&&(L(le,6,Nd.entityStoreCount),bf++);void 0!==Nd.entityStoreBytes&&(L(le,7,Nd.entityStoreBytes),bf++);void 0!==Nd.emlTemplateStoreBytes&&(L(le,10,Nd.emlTemplateStoreBytes),bf++);Nd.jsVmStatistics&&(GR(le.B.bind(le),Nd.jsVmStatistics,wHa),bf++);var nn=[bf===Object.keys(Nd).length,le]}catch(Xa){Y(Xa),nn=[!1,
void 0]}var jg=nn;jg[0]&&(Ch(e,iv,16,jg[1]),f++)}d.networkEvents&&(GR(e.B.bind(e),d.networkEvents,xHa),f++);if(d.threadUtilization){var kg=d.threadUtilization,Ce=new pv,Qg=0;try{void 0!==kg.userJourney&&(L(Ce,1,kg.userJourney),Qg++);void 0!==kg.type&&(L(Ce,2,yHa[kg.type]),Qg++);kg.threadPoolStats&&(GR(Ce.j.bind(Ce),kg.threadPoolStats,zHa),Qg++);void 0!==kg.totalThreadCount&&(L(Ce,4,kg.totalThreadCount),Qg++);void 0!==kg.statsGenerateDurationMs&&(L(Ce,5,kg.statsGenerateDurationMs),Qg++);var cf=[Qg===
Object.keys(kg).length,Ce]}catch(Xa){Y(Xa),cf=[!1,void 0]}var Vh=cf;Vh[0]&&(Ch(e,pv,18,Vh[1]),f++)}if(d.androidBackgroundTask){var Vf=d.androidBackgroundTask,sh=new tu,Vj=0;try{void 0!==Vf.tag&&(L(sh,1,Vf.tag),Vj++);void 0!==Vf.isKnownTask&&(L(sh,2,Vf.isKnownTask),Vj++);void 0!==Vf.result&&(L(sh,3,AHa[Vf.result]),Vj++);void 0!==Vf.durationMs&&(L(sh,4,Vf.durationMs),Vj++);var Ol=[Vj===Object.keys(Vf).length,sh]}catch(Xa){Y(Xa),Ol=[!1,void 0]}var on=Ol;on[0]&&(Ch(e,tu,19,on[1]),f++)}if(d.distributiveProfilingSpan){var qf=
d.distributiveProfilingSpan,dd=new bv,Gf=0;try{void 0!==qf.spanId&&(L(dd,1,BHa[qf.spanId]),Gf++);void 0!==qf.sampleRate&&(Eh(dd,2,qf.sampleRate),Gf++);void 0!==qf.spanDurationMs&&(L(dd,3,qf.spanDurationMs),Gf++);void 0!==qf.sampleFailureCount&&(L(dd,4,qf.sampleFailureCount),Gf++);qf.sample&&(GR(dd.xi.bind(dd),qf.sample,CHa),Gf++);var lg=[Gf===Object.keys(qf).length,dd]}catch(Xa){Y(Xa),lg=[!1,void 0]}var kj=lg;kj[0]&&(Ch(e,bv,20,kj[1]),f++)}var Pl=[f===Object.keys(d).length,e]}catch(Xa){Y(Xa),Pl=[!1,
void 0]}var Ql=Pl;Ql[0]&&(Ch(b,qv,6,Ql[1]),c++)}void 0!==a.detailedNetworkType&&(L(b,7,PR[a.detailedNetworkType]),c++);void 0!==a.isAd&&(L(b,8,a.isAd),c++);void 0!==a.offlineModeType&&(L(b,9,DHa[a.offlineModeType]),c++);void 0!==a.storageFormat&&(L(b,24,EHa[a.storageFormat]),c++);void 0!==a.offlineSourceVeType&&(L(b,32,a.offlineSourceVeType),c++);void 0!==a.listId&&(L(b,10,a.listId),c++);void 0!==a.offlineabilityFormatType&&(L(b,11,FHa[a.offlineabilityFormatType]),c++);void 0!==a.offlineAudioQuality&&
(L(b,29,GHa[a.offlineAudioQuality]),c++);void 0!==a.softErrorCount&&(L(b,12,a.softErrorCount),c++);void 0!==a.pendingStateFlags&&(L(b,13,a.pendingStateFlags),c++);void 0!==a.unusedOfflineVideoPendingState&&(L(b,14,HHa[a.unusedOfflineVideoPendingState]),c++);void 0!==a.isRefresh&&(L(b,15,a.isRefresh),c++);void 0!==a.isNewPlayerResponse&&(L(b,16,a.isNewPlayerResponse),c++);void 0!==a.isOfflineShareable&&(L(b,17,a.isOfflineShareable),c++);void 0!==a.hasContentVerificationSignature&&(L(b,18,a.hasContentVerificationSignature),
c++);void 0!==a.isOfflineInterleaving&&(L(b,19,a.isOfflineInterleaving),c++);void 0!==a.blockSizeBytes&&(L(b,25,a.blockSizeBytes),c++);void 0!==a.streamVerificationStrategy&&(L(b,26,QR[a.streamVerificationStrategy]),c++);a.streamVerificationFailedBlocks&&(GR(b.j.bind(b),a.streamVerificationFailedBlocks,IHa),c++);if(a.spacecastInfo){var th=a.spacecastInfo,Pk=new nw,lj=0;try{void 0!==th.applianceId&&(L(Pk,1,th.applianceId),lj++);void 0!==th.transferredFromCache&&(L(Pk,2,JHa[th.transferredFromCache]),
lj++);var Rl=[lj===Object.keys(th).length,Pk]}catch(Xa){Y(Xa),Rl=[!1,void 0]}var Wj=Rl;Wj[0]&&(Ch(b,nw,28,Wj[1]),c++)}void 0!==a.transferType&&(L(b,33,KHa[a.transferType]),c++);void 0!==a.onlyDownloadOnWifi&&(L(b,34,a.onlyDownloadOnWifi),c++);void 0!==a.appLifecycleStatus&&(L(b,35,LHa[a.appLifecycleStatus]),c++);void 0!==a.isDefaultDownloadToSdCard&&(L(b,36,a.isDefaultDownloadToSdCard),c++);void 0!==a.serializedLoggingParams&&(Gh(b,39,a.serializedLoggingParams),c++);void 0!==a.transferServiceStartedFromBackground&&
(L(b,40,a.transferServiceStartedFromBackground),c++);void 0!==a.transferFirstStarted&&(L(b,42,a.transferFirstStarted),c++);return[c===Object.keys(a).length,b]}catch(Xa){return Y(Xa),[!1,void 0]}};
dHa=function(a){var b=new Ls,c=0;try{if(a.datapushBuild){var d=NHa(a.datapushBuild);d[0]&&(Ch(b,Js,1,d[1]),c++)}return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
NHa=function(a){var b=new Js,c=0;try{return void 0!==a.buildId&&(L(b,1,a.buildId),c++),void 0!==a.clientExperimentId&&(L(b,2,a.clientExperimentId),c++),void 0!==a.accessType&&(L(b,3,OHa[a.accessType]),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
eHa=function(a){var b=new Ks,c=0;try{if(a.datapushBuild){var d=NHa(a.datapushBuild);d[0]&&(Ch(b,Js,1,d[1]),c++)}return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
fHa=function(a){var b=new cv,c=0;try{return void 0!==a.assetLoggingId&&(L(b,1,a.assetLoggingId),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
OR=function(a){var b=new ou,c=0;try{return a.stackTraces&&(GR(b.B.bind(b),a.stackTraces,PHa),c++),a.allModules&&(GR(b.j.bind(b),a.allModules,QHa),c++),void 0!==a.appVersionCode&&(L(b,3,a.appVersionCode),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
PHa=function(a){var b=new nu,c=0;try{if(a.mainThread){var d=RHa(a.mainThread);d[0]&&(Ch(b,mu,1,d[1]),c++)}a.backgroundThreads&&(GR(b.j.bind(b),a.backgroundThreads,RHa),c++);a.metaData&&(GR(b.B.bind(b),a.metaData,SHa),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
RHa=function(a){var b=new mu,c=0;try{a.stackFrames&&(GR(b.j.bind(b),a.stackFrames,THa),c++);void 0!==a.androidStack&&(L(b,6,a.androidStack),c++);void 0!==a.threadName&&(L(b,2,a.threadName),c++);void 0!==a.cpuUsage&&(Eh(b,3,a.cpuUsage),c++);void 0!==a.cpuTimeSec&&(L(b,4,a.cpuTimeSec),c++);if(a.iosThreadInfo){var d=a.iosThreadInfo,e=new ku,f=0;try{void 0!==d.state&&(e.pc(UHa[d.state]),f++);void 0!==d.flag&&(L(e,2,VHa[d.flag]),f++);void 0!==d.currentPriority&&(L(e,3,d.currentPriority),f++);void 0!==
d.priority&&(L(e,4,d.priority),f++);void 0!==d.maxPriority&&(L(e,5,d.maxPriority),f++);void 0!==d.isCrashedThread&&(L(e,6,d.isCrashedThread),f++);var h=[f===Object.keys(d).length,e]}catch(l){Y(l),h=[!1,void 0]}h[0]&&(Ch(b,ku,5,h[1]),c++)}return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
THa=function(a){var b=new lu,c=0;try{return void 0!==a.instructionOffset&&(L(b,1,a.instructionOffset),c++),void 0!==a.moduleIndex&&(L(b,2,a.moduleIndex),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
SHa=function(a){var b=new ju,c=0;try{return void 0!==a.clientTimestampMs&&(L(b,1,a.clientTimestampMs),c++),void 0!==a.sampleTimeCostMs&&(Eh(b,2,a.sampleTimeCostMs),c++),void 0!==a.numberOfBustedFrames&&(L(b,3,a.numberOfBustedFrames),c++),void 0!==a.droppedFrameDurationMs&&(L(b,4,a.droppedFrameDurationMs),c++),void 0!==a.deviceOrientation&&(L(b,5,WHa[a.deviceOrientation]),c++),void 0!==a.processUptimeMs&&(L(b,6,a.processUptimeMs),c++),void 0!==a.memoryUsageKbytes&&(L(b,7,a.memoryUsageKbytes),c++),
void 0!==a.batteryPercentage&&(Eh(b,8,a.batteryPercentage),c++),void 0!==a.exceptionName&&(L(b,9,a.exceptionName),c++),void 0!==a.exceptionReason&&(L(b,10,a.exceptionReason),c++),void 0!==a.signalNumber&&(L(b,11,a.signalNumber),c++),void 0!==a.signalCode&&(L(b,12,a.signalCode),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
QHa=function(a){var b=new iu,c=0;try{return void 0!==a.moduleUuid&&(Gh(b,1,a.moduleUuid),c++),void 0!==a.moduleName&&(L(b,2,a.moduleName),c++),void 0!==a.loadAddress&&(L(b,3,a.loadAddress),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
hHa=function(a){var b=new xu,c=0;try{return void 0!==a.key&&(L(b,1,a.key),c++),void 0!==a.value&&(L(b,2,a.value),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
qHa=function(a){var b=new Vu,c=0;try{if(a.jsStack){var d=a.jsStack,e=new Uu,f=0;try{d.stackTrace&&(GR(e.j.bind(e),d.stackTrace,XHa),f++);var h=[f===Object.keys(d).length,e]}catch(w){Y(w),h=[!1,void 0]}h[0]&&(Dh(b,Uu,1,YHa,h[1]),c++)}if(a.javaStack){var l=a.javaStack,m=new Su;h=0;try{void 0!==l.stackTrace&&(L(m,1,l.stackTrace),h++);var n=[h===Object.keys(l).length,m]}catch(w){Y(w),n=[!1,void 0]}n[0]&&(Dh(b,Su,2,YHa,n[1]),c++)}if(a.ccStack){var p=a.ccStack,q=new Ru;n=0;try{p.stackTrace&&(GR(q.j.bind(q),
p.stackTrace,ZHa),n++);var t=[n===Object.keys(p).length,q]}catch(w){Y(w),t=[!1,void 0]}t[0]&&(Dh(b,Ru,3,YHa,t[1]),c++)}return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
XHa=function(a){var b=new Tu,c=0;try{return void 0!==a.functionName&&(L(b,1,a.functionName),c++),void 0!==a.source&&(L(b,2,a.source),c++),void 0!==a.lineNumber&&(L(b,3,a.lineNumber),c++),void 0!==a.columnNumber&&(L(b,4,a.columnNumber),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
ZHa=function(a){var b=new Qu,c=0;try{return void 0!==a.functionName&&(L(b,1,a.functionName),c++),void 0!==a.source&&(L(b,2,a.source),c++),void 0!==a.lineNumber&&(L(b,3,a.lineNumber),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
sHa=function(a){var b=new qu,c=0;try{return void 0!==a.batteryLevelMicros&&(L(b,1,a.batteryLevelMicros),c++),void 0!==a.networkType&&(L(b,2,PR[a.networkType]),c++),void 0!==a.screenBrightness&&(Eh(b,3,a.screenBrightness),c++),void 0!==a.isLowPowerMode&&(L(b,4,a.isLowPowerMode),c++),void 0!==a.isBackground&&(L(b,5,a.isBackground),c++),void 0!==a.isStateTransition&&(L(b,6,a.isStateTransition),c++),void 0!==a.observedBackgroundFetchMethodCallback&&(L(b,7,a.observedBackgroundFetchMethodCallback),c++),
void 0!==a.observedBackgroundTaskDidExpire&&(L(b,8,a.observedBackgroundTaskDidExpire),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
tHa=function(a){var b=new gu,c=0;try{return void 0!==a.batteryLevelMicros&&(L(b,1,a.batteryLevelMicros),c++),void 0!==a.networkType&&(L(b,2,PR[a.networkType]),c++),void 0!==a.screenBrightness&&(L(b,3,a.screenBrightness),c++),void 0!==a.screenBrightnessMode&&(L(b,4,$Ha[a.screenBrightnessMode]),c++),void 0!==a.lowPowerMode&&(L(b,5,aIa[a.lowPowerMode]),c++),void 0!==a.batteryHealth&&(L(b,6,bIa[a.batteryHealth]),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
vHa=function(a){var b=new gv,c=0;try{return void 0!==a.className&&(L(b,1,a.className),c++),void 0!==a.instanceNum&&(L(b,2,a.instanceNum),c++),void 0!==a.instanceSizeBytes&&(L(b,3,a.instanceSizeBytes),c++),void 0!==a.allocationNum&&(L(b,4,a.allocationNum),c++),void 0!==a.deallocationNum&&(L(b,5,a.deallocationNum),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
wHa=function(a){var b=new Xs,c=0;try{if(a.v8Stats){var d=a.v8Stats,e=new Ws,f=0;try{void 0!==d.totalHeapSize&&(L(e,1,d.totalHeapSize),f++);void 0!==d.totalHeapSizeExecutable&&(L(e,2,d.totalHeapSizeExecutable),f++);void 0!==d.totalPhysicalSize&&(L(e,3,d.totalPhysicalSize),f++);void 0!==d.totalAvailableSize&&(L(e,4,d.totalAvailableSize),f++);void 0!==d.totalGlobalHandlesSize&&(L(e,5,d.totalGlobalHandlesSize),f++);void 0!==d.usedGlobalHandlesSize&&(L(e,6,d.usedGlobalHandlesSize),f++);void 0!==d.usedHeapSize&&
(L(e,7,d.usedHeapSize),f++);void 0!==d.heapSizeLimit&&(L(e,8,d.heapSizeLimit),f++);void 0!==d.mallocedMemory&&(L(e,9,d.mallocedMemory),f++);void 0!==d.externalMemory&&(L(e,10,d.externalMemory),f++);void 0!==d.peakMallocedMemory&&(L(e,11,d.peakMallocedMemory),f++);void 0!==d.numberOfNativeContexts&&(L(e,12,d.numberOfNativeContexts),f++);void 0!==d.numberOfDetachedContexts&&(L(e,13,d.numberOfDetachedContexts),f++);var h=[f===Object.keys(d).length,e]}catch(p){Y(p),h=[!1,void 0]}h[0]&&(Dh(b,Ws,1,cIa,
h[1]),c++)}if(a.quickjsStats){var l=a.quickjsStats,m=new Vs;h=0;try{void 0!==l.mallocSize&&(L(m,1,l.mallocSize),h++);void 0!==l.mallocLimit&&(L(m,2,l.mallocLimit),h++);void 0!==l.memoryUsedSize&&(L(m,3,l.memoryUsedSize),h++);void 0!==l.mallocCount&&(L(m,4,l.mallocCount),h++);void 0!==l.memoryUsedCount&&(L(m,5,l.memoryUsedCount),h++);var n=[h===Object.keys(l).length,m]}catch(p){Y(p),n=[!1,void 0]}n[0]&&(Dh(b,Vs,2,cIa,n[1]),c++)}return[c===Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}};
xHa=function(a){var b=new kv,c=0;try{return void 0!==a.index&&(L(b,1,a.index),c++),void 0!==a.networkEventType&&(L(b,2,dIa[a.networkEventType]),c++),void 0!==a.path&&(L(b,3,a.path),c++),void 0!==a.failureReason&&(L(b,4,eIa[a.failureReason]),c++),void 0!==a.startTimeMs&&(L(b,5,a.startTimeMs),c++),void 0!==a.totalDurationMs&&(L(b,6,a.totalDurationMs),c++),void 0!==a.requestSize&&(L(b,7,a.requestSize),c++),void 0!==a.responseSize&&(L(b,8,a.responseSize),c++),a.networkRequestAttempt&&(GR(b.j.bind(b),
a.networkRequestAttempt,fIa),c++),void 0!==a.httpMethod&&(L(b,10,gIa[a.httpMethod]),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
fIa=function(a){var b=new jv,c=0;try{return void 0!==a.failureReason&&(L(b,1,eIa[a.failureReason]),c++),void 0!==a.startTimeMs&&(L(b,5,a.startTimeMs),c++),void 0!==a.durationMs&&(L(b,2,a.durationMs),c++),void 0!==a.networkAvailable&&(L(b,3,hIa[a.networkAvailable]),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
zHa=function(a){var b=new ov,c=0;try{return void 0!==a.threadPoolName&&(L(b,1,a.threadPoolName),c++),void 0!==a.threadCount&&(L(b,2,a.threadCount),c++),void 0!==a.startedTaskCount&&(L(b,3,a.startedTaskCount),c++),void 0!==a.finishedTaskCount&&(L(b,4,a.finishedTaskCount),c++),void 0!==a.runningTimeMs&&(L(b,5,a.runningTimeMs),c++),void 0!==a.waitingTimeMs&&(L(b,6,a.waitingTimeMs),c++),void 0!==a.runCount&&(L(b,7,a.runCount),c++),void 0!==a.runningPercent&&(L(b,8,a.runningPercent),c++),[c===Object.keys(a).length,
b]}catch(d){return Y(d),[!1,void 0]}};
CHa=function(a){var b=new av,c=0;try{void 0!==a.curveTimestampMs&&(L(b,1,a.curveTimestampMs),c++);void 0!==a.curveWeight&&(Eh(b,2,a.curveWeight),c++);void 0!==a.realTimestampMs&&(L(b,3,a.realTimestampMs),c++);void 0!==a.sampleCostUsec&&(L(b,4,a.sampleCostUsec),c++);if(a.compactStackTraceSample){var d=OR(a.compactStackTraceSample);d[0]&&(Ch(b,ou,5,d[1]),c++)}return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
IHa=function(a){var b=new ow,c=0;try{return void 0!==a.itag&&(L(b,1,a.itag),c++),void 0!==a.startingByte&&(L(b,2,a.startingByte),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
nIa=function(a){var b=new Px,c=0;try{void 0!==a.id&&(L(b,1,a.id),c++);void 0!==a.videoState&&(L(b,2,iIa[a.videoState]),c++);void 0!==a.pendingStateFlags&&(L(b,3,a.pendingStateFlags),c++);void 0!==a.totalBytes&&(L(b,21,a.totalBytes),c++);void 0!==a.downloadedBytes&&(L(b,4,a.downloadedBytes),c++);void 0!==a.selectedVideoQuality&&(L(b,5,FHa[a.selectedVideoQuality]),c++);void 0!==a.selectedOfflineMode&&(L(b,6,DHa[a.selectedOfflineMode]),c++);void 0!==a.playerResponseSavedTimeMs&&(L(b,7,a.playerResponseSavedTimeMs),
c++);void 0!==a.offlineStateUpdateTimeMs&&(L(b,8,a.offlineStateUpdateTimeMs),c++);void 0!==a.offlineStateExpiresInS&&(L(b,9,a.offlineStateExpiresInS),c++);void 0!==a.durationInS&&(L(b,10,a.durationInS),c++);void 0!==a.isInPlaylist&&(L(b,11,a.isInPlaylist),c++);void 0!==a.addedNetworkType&&(L(b,12,PR[a.addedNetworkType]),c++);void 0!==a.downloadCompletedNetworkType&&(L(b,13,PR[a.downloadCompletedNetworkType]),c++);a.captions&&(GR(b.j.bind(b),a.captions,jIa),c++);void 0!==a.unusedOfflineVideoPendingState&&
(L(b,15,HHa[a.unusedOfflineVideoPendingState]),c++);void 0!==a.lastPlaybackTimestampMs&&(L(b,16,a.lastPlaybackTimestampMs),c++);a.offlineSuspendedStates&&(GR(b.B.bind(b),a.offlineSuspendedStates,kIa),c++);void 0!==a.streamInLocalStorage&&(L(b,18,a.streamInLocalStorage),c++);void 0!==a.streamInInternalStorage&&(L(b,19,a.streamInInternalStorage),c++);if(a.storageIdStates){var d=a.storageIdStates,e=new Ox,f=0;try{void 0!==d.storageId&&(L(e,1,d.storageId),f++);void 0!==d.storageIdSourceType&&(L(e,2,lIa[d.storageIdSourceType]),
f++);var h=[f===Object.keys(d).length,e]}catch(w){Y(w),h=[!1,void 0]}h[0]&&(Ch(b,Ox,20,h[1]),c++)}void 0!==a.cotn&&(L(b,22,a.cotn),c++);if(a.additionalVideoClientState){var l=a.additionalVideoClientState,m=new Kx;try{var n=[0===Object.keys(l).length,m]}catch(w){Y(w),n=[!1,void 0]}n[0]&&(Ch(b,Kx,23,n[1]),c++)}if(a.offlineVideoEntityMigrationState){var p=a.offlineVideoEntityMigrationState,q=new Mx;n=0;try{void 0!==p.isInOfflineStore&&(L(q,1,p.isInOfflineStore),n++);void 0!==p.isPlaybackDataEntityPresent&&
(L(q,2,p.isPlaybackDataEntityPresent),n++);void 0!==p.wasPlaybackDataEntityUsedToFillVideoState&&(L(q,3,p.wasPlaybackDataEntityUsedToFillVideoState),n++);void 0!==p.isTransferEntityPresent&&(L(q,4,p.isTransferEntityPresent),n++);void 0!==p.wasTransferEntityUsedToFillVideoState&&(L(q,5,p.wasTransferEntityUsedToFillVideoState),n++);void 0!==p.offlineStoreCaptionTrackCount&&(L(q,6,p.offlineStoreCaptionTrackCount),n++);void 0!==p.entityStoreCaptionTrackCount&&(L(q,7,p.entityStoreCaptionTrackCount),n++);
void 0!==p.isMetadataEntityPresent&&(L(q,8,p.isMetadataEntityPresent),n++);void 0!==p.transferDiffFields&&(HR(q.j.bind(q),p.transferDiffFields,mIa),n++);var t=[n===Object.keys(p).length,q]}catch(w){Y(w),t=[!1,void 0]}t[0]&&(Ch(b,Mx,24,t[1]),c++)}return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
jIa=function(a){var b=new Lx,c=0;try{return void 0!==a.format&&(L(b,1,a.format),c++),void 0!==a.isDownloaded&&(L(b,2,a.isDownloaded),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
kIa=function(a){var b=new Nx,c=0;try{return void 0!==a.totalDownloadedBytes&&(L(b,1,a.totalDownloadedBytes),c++),void 0!==a.totalSegmentCount&&(L(b,2,a.totalSegmentCount),c++),void 0!==a.backgroundTransitionCount&&(L(b,3,a.backgroundTransitionCount),c++),void 0!==a.totalDurationMs&&(L(b,4,a.totalDurationMs),c++),void 0!==a.downloadErrorCount&&(L(b,5,a.downloadErrorCount),c++),void 0!==a.totalDownloadedSizePercent&&(L(b,6,a.totalDownloadedSizePercent),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),
[!1,void 0]}};
pIa=function(a){var b=new Jx,c=0;try{return void 0!==a.id&&(L(b,1,a.id),c++),a.videoIds&&(GR(b.j.bind(b),a.videoIds),c++),void 0!==a.videoCount&&(L(b,3,a.videoCount),c++),void 0!==a.successCount&&(L(b,4,a.successCount),c++),void 0!==a.failCount&&(L(b,5,a.failCount),c++),void 0!==a.pendingCount&&(L(b,6,a.pendingCount),c++),void 0!==a.disabledCount&&(L(b,7,a.disabledCount),c++),void 0!==a.deletedCount&&(L(b,8,a.deletedCount),c++),void 0!==a.selectedVideoQuality&&(L(b,9,FHa[a.selectedVideoQuality]),
c++),void 0!==a.isPlaylistOwner&&(L(b,10,a.isPlaylistOwner),c++),void 0!==a.lastSyncTimeMs&&(L(b,11,a.lastSyncTimeMs),c++),void 0!==a.requestSource&&(L(b,12,oIa[a.requestSource]),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
sIa=function(a){var b=new Dx,c=0;try{return void 0!==a.videoId&&(b.setVideoId(a.videoId),c++),void 0!==a.itag&&(L(b,6,a.itag),c++),void 0!==a.failureReason&&(L(b,2,qIa[a.failureReason]),c++),void 0!==a.isCachedExternally&&(L(b,3,a.isCachedExternally),c++),void 0!==a.previousFailureReason&&(L(b,4,qIa[a.previousFailureReason]),c++),void 0!==a.previousFailureReasonTimestampMs&&(L(b,5,a.previousFailureReasonTimestampMs),c++),void 0!==a.streamVerificationStrategy&&(L(b,7,QR[a.streamVerificationStrategy]),
c++),void 0!==a.blockSizeBytes&&(L(b,8,a.blockSizeBytes),c++),a.streamVerificationFailedBlocks&&(GR(b.j.bind(b),a.streamVerificationFailedBlocks,rIa),c++),void 0!==a.primaryVerificationStrategy&&(L(b,10,QR[a.primaryVerificationStrategy]),c++),void 0!==a.secondaryVerificationStrategy&&(L(b,11,QR[a.secondaryVerificationStrategy]),c++),void 0!==a.secondaryFailureReason&&(L(b,12,qIa[a.secondaryFailureReason]),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
rIa=function(a){var b=new Cx,c=0;try{return void 0!==a.itag&&(L(b,1,a.itag),c++),void 0!==a.startingByte&&(L(b,2,a.startingByte),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
tIa=function(a){var b=new Fx,c=0;try{return void 0!==a.videoId&&(b.setVideoId(a.videoId),c++),void 0!==a.surrogateVideoId&&(L(b,2,a.surrogateVideoId),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
uIa=function(a){var b=new Gx,c=0;try{return void 0!==a.externalVideoId&&(L(b,1,a.externalVideoId),c++),void 0!==a.videoSid&&(L(b,2,a.videoSid),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
CIa=function(a){var b=new Nt,c=0;try{if(a.opportunityData){var d=a.opportunityData,e=new Jt,f=0;try{if(d.debugData){var h=d.debugData,l=new It,m=0;try{h.slots&&(GR(l.j.bind(l),h.slots,vIa),m++);void 0!==h.associatedSlotId&&(L(l,2,h.associatedSlotId),m++);var n=[m===Object.keys(h).length,l]}catch(B){Y(B),n=[!1,void 0]}n[0]&&(Ch(e,It,2,n[1]),f++)}void 0!==d.opportunityType&&(L(e,3,wIa[d.opportunityType]),f++);var p=[f===Object.keys(d).length,e]}catch(B){Y(B),p=[!1,void 0]}p[0]&&(Ch(b,Jt,1,p[1]),c++)}if(a.slotData){var q=
vIa(a.slotData);q[0]&&(Ch(b,Ht,2,q[1]),c++)}if(a.layoutData){var t=a.layoutData,w=new Ft;q=0;try{void 0!==t.type&&(L(w,2,xIa[t.type]),q++);if(t.debugData){var z=t.debugData,C=new Et;p=0;try{void 0!==z.layoutId&&(L(C,1,z.layoutId),p++);z.exitNormalTriggerData&&(GR(C.Q1.bind(C),z.exitNormalTriggerData,RR),p++);z.exitSkipTriggerData&&(GR(C.R1.bind(C),z.exitSkipTriggerData,RR),p++);z.exitMuteTriggerData&&(GR(C.P1.bind(C),z.exitMuteTriggerData,RR),p++);z.exitUserInputSubmittedTriggerData&&(GR(C.T1.bind(C),
z.exitUserInputSubmittedTriggerData,RR),p++);z.exitUserCancelledTriggerData&&(GR(C.S1.bind(C),z.exitUserCancelledTriggerData,RR),p++);var G=[p===Object.keys(z).length,C]}catch(B){Y(B),G=[!1,void 0]}G[0]&&(Ch(w,Et,3,G[1]),q++)}void 0!==t.controlFlowManagerLayer&&(L(w,4,yIa[t.controlFlowManagerLayer]),q++);void 0!==t.pingTriggerTypes&&(HR(w.j.bind(w),t.pingTriggerTypes,SR),q++);var O=[q===Object.keys(t).length,w]}catch(B){Y(B),O=[!1,void 0]}O[0]&&(Ch(b,Ft,3,O[1]),c++)}if(a.triggerData){var N=RR(a.triggerData);
N[0]&&(Ch(b,Dt,4,N[1]),c++)}if(a.pingData){var K=a.pingData,W=new Mt;N=0;try{void 0!==K.sourceTriggerType&&(L(W,1,SR[K.sourceTriggerType]),N++);K.debugData&&(GR(W.j.bind(W),K.debugData,zIa),N++);void 0!==K.pingCount&&(L(W,3,K.pingCount),N++);void 0!==K.pingDispatchStatus&&(L(W,4,AIa[K.pingDispatchStatus]),N++);void 0!==K.serializedAdPingMetadata&&(Gh(W,5,K.serializedAdPingMetadata),N++);if(K.pingDebugData){var Z=K.pingDebugData,Q=new Lt;O=0;try{void 0!==Z.substitutedMacros&&(HR(Q.j.bind(Q),Z.substitutedMacros,
BIa),O++);void 0!==Z.unsubstitutedMacros&&(HR(Q.B.bind(Q),Z.unsubstitutedMacros,BIa),O++);var na=[O===Object.keys(Z).length,Q]}catch(B){Y(B),na=[!1,void 0]}na[0]&&(Ch(W,Lt,6,na[1]),N++)}void 0!==K.pingIndex&&(L(W,8,K.pingIndex),N++);var r=[N===Object.keys(K).length,W]}catch(B){Y(B),r=[!1,void 0]}r[0]&&(Ch(b,Mt,6,r[1]),c++)}if(a.externalContext){var J=a.externalContext,ha=new At;r=0;try{if(J.organicPlaybackContext){var X=J.organicPlaybackContext,Da=new zt;K=0;try{void 0!==X.contentCpn&&(L(Da,1,X.contentCpn),
K++);void 0!==X.isLivePlayback&&(L(Da,2,X.isLivePlayback),K++);void 0!==X.isOfflinePlayback&&(L(Da,3,X.isOfflinePlayback),K++);void 0!==X.isMdxPlayback&&(L(Da,4,X.isMdxPlayback),K++);void 0!==X.isDaiContent&&(L(Da,5,X.isDaiContent),K++);void 0!==X.isPrefetchedPlayback&&(L(Da,6,X.isPrefetchedPlayback),K++);var za=[K===Object.keys(X).length,Da]}catch(B){Y(B),za=[!1,void 0]}za[0]&&(Ch(ha,zt,1,za[1]),r++)}if(J.html5ExperimentContext){var Za=J.html5ExperimentContext,cb=new xt;za=0;try{void 0!==Za.ytExperimentId&&
(L(cb,1,Za.ytExperimentId),za++);var wa=[za===Object.keys(Za).length,cb]}catch(B){Y(B),wa=[!1,void 0]}wa[0]&&(Ch(ha,xt,2,wa[1]),r++)}if(J.adVideoPlaybackContext){var $a=J.adVideoPlaybackContext,u=new wt;wa=0;try{void 0!==$a.adVideoCpn&&(L(u,1,$a.adVideoCpn),wa++);var D=[wa===Object.keys($a).length,u]}catch(B){Y(B),D=[!1,void 0]}D[0]&&(Ch(ha,wt,3,D[1]),r++)}var F=[r===Object.keys(J).length,ha]}catch(B){Y(B),F=[!1,void 0]}F[0]&&(Ch(b,At,5,F[1]),c++)}return[c===Object.keys(a).length,b]}catch(B){return Y(B),
[!1,void 0]}};
vIa=function(a){var b=new Ht,c=0;try{void 0!==a.type&&(L(b,2,DIa[a.type]),c++);void 0!==a.entryTriggerType&&(L(b,6,SR[a.entryTriggerType]),c++);void 0!==a.slotPhysicalPosition&&(L(b,8,a.slotPhysicalPosition),c++);if(a.debugData){var d=a.debugData,e=new Gt,f=0;try{void 0!==d.slotId&&(L(e,1,d.slotId),f++);void 0!==d.entryTriggerTypes&&(HR(e.B.bind(e),d.entryTriggerTypes,SR),f++);void 0!==d.unscheduledDueToError&&(L(e,3,d.unscheduledDueToError),f++);d.entryTriggerData&&(GR(e.j.bind(e),d.entryTriggerData,
RR),f++);if(d.slotEntryTriggerData){var h=RR(d.slotEntryTriggerData);h[0]&&(Ch(e,Dt,7,h[1]),f++)}d.fulfillmentTriggerData&&(GR(e.I.bind(e),d.fulfillmentTriggerData,RR),f++);d.expirationTriggerData&&(GR(e.D.bind(e),d.expirationTriggerData,RR),f++);var l=[f===Object.keys(d).length,e]}catch(m){Y(m),l=[!1,void 0]}l[0]&&(Ch(b,Gt,3,l[1]),c++)}void 0!==a.externallyManaged&&(L(b,4,a.externallyManaged),c++);void 0!==a.controlFlowManagerLayer&&(L(b,5,yIa[a.controlFlowManagerLayer]),c++);return[c===Object.keys(a).length,
b]}catch(m){return Y(m),[!1,void 0]}};
RR=function(a){var b=new Dt,c=0;try{void 0!==a.type&&(L(b,1,SR[a.type]),c++);void 0!==a.category&&(L(b,2,EIa[a.category]),c++);if(a.layoutIdEnteredTriggerData){var d=a.layoutIdEnteredTriggerData,e=new Bt,f=0;try{void 0!==d.enteredLayoutId&&(L(e,1,d.enteredLayoutId),f++);var h=[f===Object.keys(d).length,e]}catch(p){Y(p),h=[!1,void 0]}h[0]&&(Dh(b,Bt,3,FIa,h[1]),c++)}if(a.triggerSourceData){var l=a.triggerSourceData,m=new Ct;h=0;try{void 0!==l.associatedSlotId&&(yh(m,1,GIa,l.associatedSlotId),h++);void 0!==
l.associatedLayoutId&&(yh(m,2,GIa,l.associatedLayoutId),h++);var n=[h===Object.keys(l).length,m]}catch(p){Y(p),n=[!1,void 0]}n[0]&&(Dh(b,Ct,4,FIa,n[1]),c++)}void 0!==a.shouldOnlyTriggerOnce&&(L(b,5,a.shouldOnlyTriggerOnce),c++);return[c===Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}};
zIa=function(a){var b=new Kt,c=0;try{return void 0!==a.macros&&(HR(b.j.bind(b),a.macros,BIa),c++),void 0!==a.success&&(L(b,2,a.success),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
IIa=function(a){var b=new Zs,c=0;try{if(a.cui){var d=a.cui,e=new Ys;try{var f=[0===Object.keys(d).length,e]}catch(h){Y(h),f=[!1,void 0]}f[0]&&(Ch(b,Ys,1,f[1]),c++)}void 0!==a.step&&(L(b,2,HIa[a.step]),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
JIa=function(a){var b=new au,c=0;try{return void 0!==a.startMs&&(Eh(b,1,a.startMs),c++),void 0!==a.endMs&&(Eh(b,2,a.endMs),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
KIa=function(a){var b=new Ot,c=0;try{return void 0!==a.externalVideoId&&(L(b,1,a.externalVideoId),c++),void 0!==a.originalMediaDurationMs&&(L(b,2,a.originalMediaDurationMs),c++),void 0!==a.trimmedMediaDurationMs&&(L(b,3,a.trimmedMediaDurationMs),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
LIa=function(a){var b=new lw,c=0;try{return void 0!==a.orchestrationActionId&&(L(b,1,a.orchestrationActionId),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
OIa=function(a){var b=new Hw,c=0;try{return void 0!==a.ypcCallerPage&&(L(b,1,MIa[a.ypcCallerPage]),c++),void 0!==a.useCase&&(L(b,2,NIa[a.useCase]),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
SIa=function(a){var b=new Tw,c=0;try{if(a.itemId){var d=a.itemId,e=new Us,f=0;try{void 0!==d.type&&(L(e,1,TR[d.type]),f++);void 0!==d.externalId&&(L(e,2,d.externalId),f++);var h=[f===Object.keys(d).length,e]}catch(p){Y(p),h=[!1,void 0]}h[0]&&(Ch(b,Us,1,h[1]),c++)}void 0!==a.productType&&(L(b,2,UR[a.productType]),c++);if(a.alcLoggingParams){var l=a.alcLoggingParams,m=new Sw;h=0;try{void 0!==l.purchaseOriginEntityType&&(L(m,1,PIa[l.purchaseOriginEntityType]),h++);void 0!==l.purchaseOriginPageType&&
(L(m,2,QIa[l.purchaseOriginPageType]),h++);var n=[h===Object.keys(l).length,m]}catch(p){Y(p),n=[!1,void 0]}n[0]&&(Dh(b,Sw,3,RIa,n[1]),c++)}return[c===Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}};
uJa=function(a){var b=new Ev,c=0;try{if(a.dimensions){var d=a.dimensions,e=new Cv,f=0;try{void 0!==d.csn&&(L(e,1,d.csn),f++);void 0!==d.userExperienceId&&(L(e,2,d.userExperienceId),f++);if(d.studio){var h=d.studio,l=new zv,m=0;try{void 0!==h.route&&(L(l,1,h.route),m++);void 0!==h.feature&&(L(l,2,TIa[h.feature]),m++);void 0!==h.topEntityType&&(L(l,3,UIa[h.topEntityType]),m++);void 0!==h.availability&&(L(l,4,VIa[h.availability]),m++);void 0!==h.isChannelDelegation&&(L(l,5,h.isChannelDelegation),m++);
void 0!==h.isArtistDelegation&&(L(l,6,h.isArtistDelegation),m++);void 0!==h.environment&&(L(l,7,WIa[h.environment]),m++);void 0!==h.networkConnectionStatus&&(L(l,8,XIa[h.networkConnectionStatus]),m++);var n=[m===Object.keys(h).length,l]}catch(wa){Y(wa),n=[!1,void 0]}n[0]&&(Ch(e,zv,3,n[1]),f++)}if(d.mweb){var p=d.mweb,q=new yv;n=0;try{void 0!==p.pageType&&(L(q,1,YIa[p.pageType]),n++);void 0!==p.navType&&(L(q,2,ZIa[p.navType]),n++);var t=[n===Object.keys(p).length,q]}catch(wa){Y(wa),t=[!1,void 0]}t[0]&&
(Ch(e,yv,4,t[1]),f++)}if(d.mainAppWeb){var w=d.mainAppWeb,z=new xv;t=0;try{void 0!==w.pageType&&(L(z,1,$Ia[w.pageType]),t++);void 0!==w.requestType&&(L(z,2,aJa[w.requestType]),t++);void 0!==w.isShellLoad&&(L(z,3,w.isShellLoad),t++);var C=[t===Object.keys(w).length,z]}catch(wa){Y(wa),C=[!1,void 0]}C[0]&&(Ch(e,xv,5,C[1]),f++)}if(d.survivalSli){var G=d.survivalSli,O=new vv;C=0;try{void 0!==G.partitionMinute&&(L(O,1,G.partitionMinute),C++);void 0!==G.survivalStatus&&(L(O,2,bJa[G.survivalStatus]),C++);
void 0!==G.survivalSessionType&&(L(O,3,cJa[G.survivalSessionType]),C++);var N=[C===Object.keys(G).length,O]}catch(wa){Y(wa),N=[!1,void 0]}N[0]&&(Ch(e,vv,6,N[1]),f++)}if(d.tvhtml5){var K=d.tvhtml5,W=new Av;N=0;try{void 0!==K.authRefreshTokenFailureType&&(L(W,1,dJa[K.authRefreshTokenFailureType]),N++);void 0!==K.networkErrorEndpoint&&(L(W,2,eJa[K.networkErrorEndpoint]),N++);void 0!==K.networkErrorResponseCode&&(L(W,3,K.networkErrorResponseCode),N++);void 0!==K.sessionSurvivalLengthMin&&(L(W,4,K.sessionSurvivalLengthMin),
N++);void 0!==K.accountChangeType&&(L(W,5,fJa[K.accountChangeType]),N++);void 0!==K.accountChangeTrigger&&(L(W,6,gJa[K.accountChangeTrigger]),N++);void 0!==K.cpn&&(L(W,7,K.cpn),N++);void 0!==K.sessionSurvivalDidUserAgentChange&&(L(W,8,K.sessionSurvivalDidUserAgentChange),N++);void 0!==K.adShownToPremiumUserCondition&&(L(W,9,hJa[K.adShownToPremiumUserCondition]),N++);void 0!==K.identityType&&(L(W,10,iJa[K.identityType]),N++);void 0!==K.identityDelegationType&&(L(W,11,jJa[K.identityDelegationType]),
N++);void 0!==K.botguardServerEnvironment&&(L(W,12,kJa[K.botguardServerEnvironment]),N++);void 0!==K.accountEventTrigger&&(L(W,13,lJa[K.accountEventTrigger]),N++);void 0!==K.signInMethodType&&(L(W,14,mJa[K.signInMethodType]),N++);void 0!==K.accountEventErrorType&&(L(W,15,nJa[K.accountEventErrorType]),N++);void 0!==K.hadRemoteDeviceConnected&&(L(W,16,K.hadRemoteDeviceConnected),N++);void 0!==K.hadVoiceInitiatedPlayback&&(L(W,17,K.hadVoiceInitiatedPlayback),N++);void 0!==K.restartLengthMin&&(L(W,18,
K.restartLengthMin),N++);void 0!==K.restartReason&&(L(W,19,oJa[K.restartReason]),N++);void 0!==K.numberOfPersonaAccountsDelta&&(L(W,20,K.numberOfPersonaAccountsDelta),N++);var Z=[N===Object.keys(K).length,W]}catch(wa){Y(wa),Z=[!1,void 0]}Z[0]&&(Ch(e,Av,7,Z[1]),f++)}if(d.unpluggedWeb){var Q=d.unpluggedWeb,na=new Bv;Z=0;try{void 0!==Q.unpluggedWebEntitlementType&&(L(na,1,pJa[Q.unpluggedWebEntitlementType]),Z++);void 0!==Q.unpluggedWebPurchaseType&&(L(na,2,qJa[Q.unpluggedWebPurchaseType]),Z++);var r=
[Z===Object.keys(Q).length,na]}catch(wa){Y(wa),r=[!1,void 0]}r[0]&&(Ch(e,Bv,8,r[1]),f++)}void 0!==d.logEventStatus&&(L(e,9,d.logEventStatus),f++);if(d.kids){var J=d.kids,ha=new wv;r=0;try{void 0!==J.userType&&(L(ha,1,rJa[J.userType]),r++);var X=[r===Object.keys(J).length,ha]}catch(wa){Y(wa),X=[!1,void 0]}X[0]&&(Ch(e,wv,10,X[1]),f++)}void 0!==d.screen&&(L(e,11,d.screen),f++);if(d.navigation){var Da=d.navigation,za=new uv;X=0;try{void 0!==Da.destinationScreen&&(L(za,1,Da.destinationScreen),X++);void 0!==
Da.navType&&(L(za,2,sJa[Da.navType]),X++);var Za=[X===Object.keys(Da).length,za]}catch(wa){Y(wa),Za=[!1,void 0]}Za[0]&&(Ch(e,uv,12,Za[1]),f++)}var cb=[f===Object.keys(d).length,e]}catch(wa){Y(wa),cb=[!1,void 0]}cb[0]&&(Ch(b,Cv,1,cb[1]),c++)}a.records&&(GR(b.j.bind(b),a.records,tJa),c++);return[c===Object.keys(a).length,b]}catch(wa){return Y(wa),[!1,void 0]}};
tJa=function(a){var b=new Dv,c=0;try{return void 0!==a.name&&(L(b,1,vJa[a.name]),c++),void 0!==a.status&&(L(b,2,wJa[a.status]),c++),void 0!==a.state&&(b.pc(xJa[a.state]),c++),void 0!==a.sliId&&(L(b,4,a.sliId),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}};
VR=function(){};
yJa=function(){var a=navigator;return new Promise(function(b,c){var d;null!=(d=a.webkitTemporaryStorage)&&d.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
lA=function(a,b){var c=this;this.handleError=a;this.j=b;this.u=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.u=!0});
this.B=Math.random()<=g.dy("ytidb_transaction_ended_event_rate_limit_session",.2)};
AJa=function(a,b){VR.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:zJa(null==c?void 0:c.usage),deviceStorageQuotaMbytes:zJa(null==c?void 0:c.quota)});a.j("idbQuotaExceeded",c)})};
zJa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
BJa=function(){this.state=1;this.j=null};
DJa=function(a,b,c,d,e,f){var h=void 0===h?"trayride":h;c?(a.pc(2),g.oC(c,function(){if(window[h])CJa(a,d,h,e);else{a.pc(3);var l=gra(c),m=document.getElementById(l);m&&(cra(l),m.parentNode.removeChild(m));g.AD(new g.Yz("Unable to load Botguard","from "+c))}},f)):b?(f=g.Ze("SCRIPT"),b instanceof Td?(f.textContent=vba(b),ck(f)):f.textContent=b,f.nonce=oe(),document.head.appendChild(f),document.head.removeChild(f),window[h]?CJa(a,d,h,e):(a.pc(4),g.AD(new g.Yz("Unable to load Botguard from JS")))):g.AD(new g.Yz("Unable to load VM; no url or JS provided"))};
CJa=function(a,b,c,d){a.pc(5);try{var e=new Lj({program:b,globalName:c,z8:g.cy("att_web_record_metrics")});e.d9.then(function(){a.pc(6);d&&d(b)});
a.jP(e)}catch(f){a.pc(7),f instanceof Error&&g.AD(f)}};
EJa=function(a,b){var c=g.WR;a=void 0===a?{}:a;b=void 0===b?3E3:b;return c.nE()?Promise.race([new Promise(function(d,e){setTimeout(function(){setTimeout(function(){setTimeout(function(){e(Error("Timed out waiting for snapshot"))},0)},0)},b)}),
new Promise(function(d){c.nE()?c.UY({Yx:a}).then(d):d(null)})]):Promise.resolve(null)};
YR=function(){var a=g.La("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null};
FJa=function(){BJa.apply(this,arguments)};
HJa=function(a){return!GJa||(0,g.GA)()-GJa>a};
KJa=function(a,b){IJa(a.program,b.C8)&&(cF("bg_i",void 0,"player_att"),g.WR.initialize(a,function(){var c=a.serverEnvironment;cF("bg_l",void 0,"player_att");GJa=(0,g.GA)();for(var d=0;d<JJa.length;d++){var e=JJa[d];try{e(c)}catch(f){}}},b.cspNonce))};
LJa=function(a){a=void 0===a?{}:a;return g.WR.invoke(a)};
MJa=function(a){var b=g.dy("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return EJa(a,b)};
IJa=function(a,b){return a?g.WR.isLoading()?!1:HJa(b):!1};
g.NJa=function(a,b){return a.La+"timedtext_video?ref=player&v="+b.videoId};
g.ZR=function(a,b){a.feature=b;return a};
g.$R=function(a,b){b=g.Pi(b)||b;a.utm_source="yt-embeds-web";a.utm_medium=b};
g.OJa=function(a){var b=this;this.videoData=a;a={};this.u=(a.c1a=function(){var c=[];if(g.WR.isInitialized()){var d="";b.videoData&&b.videoData.qk&&(d=b.videoData.qk+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);cF("bg_v",void 0,"player_att");d=LJa(d);cF("bg_s",void 0,"player_att");d?c.push("r1a="+d):c.push("r1c=2")}else cF("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.WR.getState());return c.join("&")},a.c6a=
function(c){return"r6a="+(Number(c.c)^PFa())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.ay("CATSTAT",0)))},a);
this.videoData&&this.videoData.qk?this.j=my(this.videoData.qk):this.j={}};
g.PJa=function(a){if(a.videoData&&a.videoData.qk){for(var b=[a.videoData.qk],c=g.v(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,a.j[d]&&a.u[d]&&(d=a.u[d](a.j))&&b.push(d);return b.join("&")}return null};
RJa=function(a){var b={};Object.assign(b,a.u);g.cy("player_attestation_bg_async")&&(b.c1a=function(){return QJa(a)});
if(a.videoData&&a.videoData.qk){for(var c=[a.videoData.qk],d=g.v(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.j[e]&&b[e]&&(e=b[e](a.j))&&c.push(e);return new Promise(function(f,h){Promise.all(c).then(function(l){f(l.filter(function(m){return!!m}).join("&"))},h)})}return Promise.resolve(null)};
g.SJa=function(a,b){KJa(a,{C8:g.jJ(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})};
QJa=function(a){function b(e){return e+"&r1d="+g.WR.getState()}
if(!g.WR.isInitialized())return cF("bg_e",void 0,"player_att"),window.trayride||window.botguard?Promise.resolve(b("r1c=1")):Promise.resolve(b("r1c=4"));var c="";a.videoData&&a.videoData.qk&&(c=a.videoData.qk+("&r1b="+a.videoData.clientPlaybackNonce));a={};var d=(a.atr_challenge=c,a);return new Promise(function(e){cF("bg_v",void 0,"player_att");MJa(d).then(function(f){f?(cF("bg_s",void 0,"player_att"),e(b("r1a="+f))):(cF("bg_e",void 0,"player_att"),e(b("r1c=2")))},function(){cF("bg_e",void 0,"player_att");
e(b("r1c=3"))})})};
g.aS=function(a){var b=a.T(),c=g.TJa(b),d=a.ya;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=SM(a);"leanback"===f?e="WATCH":b.K("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.tb?e="LIVE_MONITOR":"detailpage"===f?e="WATCH_FULL_SCREEN":"adunit"===f?e="ADUNIT":"sponsorshipsoffer"===f&&(e="UNKNOWN");d.clientScreen=e;if(b=a.kidsAppInfo)d.kidsAppInfo=JSON.parse(b);(e=a.On)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:UJa[e]}});a.zx&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.Z)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.nh&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=VJa[b];c.request=d;d=c.user||{};if(b=a.oa)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.Nb)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.TJa=function(a){var b=g.yP(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.v(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.K("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.Kc)b.thirdParty={embedUrl:a};return b};
$Ja=function(a,b,c){var d=a.videoId,e=g.aS(a),f=a.T(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(KC()),referer:document.location.toString(),signatureTimestamp:19478};g.Sz();a.isAutonav&&(h.autonav=!0);g.Tz(0,141)&&(h.autonavState=g.Tz(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.Tz(0,66);XM(a)&&(h.autoplay=!0);f.I&&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.v(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");3!==q.length||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.v(q);for(var t=q.next();!t.done;t=q.next()){var w=g.v(t.value.split("="));t=w.next().value;w=faa(w);p[t]=w.join("=")}q=p.url;t=p.presetad;w=p.viralresponseurl;var z=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),t&&(m.presetAd=t),w&&(m.viralAdResponseUrl=w),z&&(m.viralCampaignId=String(z));
else if("video_ad"===p.adtype){var C={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=WJa[p.breaktype])C.breakType=p;q&&(C.url=q);t&&(C.presetAd=t);w&&(C.viralAdResponseUrl=w);z&&(C.viralCampaignId=String(z));n.push(C)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.XJ;if(null!=m){m={startWalltime:String(m)};if(n=a.fm)m.manifestDuration=String(n||14400);h.liveContext=
m}a.mutedAutoplay&&(h.mutedAutoplay=!0);WM(a)&&(h.splay=!0);m=a.vnd;5===m&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.Jp)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.mj){n=a.fN;l=[];p=g.v(p.split(","));for(q=p.next();!q.done;q=p.next())if(t=q.value)if((q=t.startsWith("!"))&&(t=t.substr(1)),t=t.split("-"),!(3>t.length)){q={applicationState:q?"INACTIVE":"ACTIVE",clientFormFactor:XJa[t[1]]||"UNKNOWN_FORM_FACTOR",clientName:YJa[t[0]]||"UNKNOWN_INTERFACE",clientVersion:t[2]||
"",platform:ZJa[t[1]]||"UNKNOWN_PLATFORM"};t=void 0;if(n){w=void 0;try{w=JSON.parse(n)}catch(G){g.AD(G)}w&&(t={params:[{key:"ms",value:w.ms}]},q.osName=w.os_name,q.userAgent=w.user_agent,q.windowHeightPoints=w.window_height_points,q.windowWidthPoints=w.window_width_points)}l.push({adSignalsInfo:t,remoteClient:q})}m.remoteContexts=l}n=a.sourceContainerPlaylistId;l=a.serializedMdxMetadata;if(n||l)p={},n&&(p.mdxPlaybackContainerInfo={sourceContainerPlaylistId:n}),l&&(p.serializedMdxMetadata=l),m.mdxPlaybackSourceContext=
p;h.mdxContext=m;m=b.width;0<m&&(h.playerWidthPixels=Math.round(m));if(b=b.height)h.playerHeightPixels=Math.round(b);0!==c&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);g.iK(f)&&h&&(h.ancestorOrigins=f.ancestorOrigins);a.defaultActiveSourceVideoId&&(h.compositeVideoContext={defaultActiveSourceVideoId:a.defaultActiveSourceVideoId});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);e=a.T();if(f=e.embedConfig)d.serializedThirdPartyEmbedConfig=f;d.captionParams={};f=g.Tz(g.Sz(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.GK(e)&&(d.captionParams.deviceCaptionsOn=null!=f?!f:!1);a.bS&&(d.captionParams.deviceCaptionsLangPref=a.bS);a.nQ.length?d.captionParams.viewerSelectedCaptionLangs=a.nQ:g.GK(e)&&(f=g.YI(),null==f?0:f.length)&&(d.captionParams.viewerSelectedCaptionLangs=
f);f="onesie"===a.fetchType&&a.K("html5_onesie_attach_po_token");h="onesie"!==a.fetchType&&a.K("html5_non_onesie_attach_po_token");if(f||h)a=a.T(),a.Tf&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.Tf);e.K("fetch_att_independently")&&(d.attestationRequest={omitBotguardData:!0});return d};
bKa=function(a,b){var c,d,e;return g.A(function(f){if(1==f.j)return c={context:g.TJa(a.T()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.sR(aKa),g.y(f,g.EP(b,c,d),2);e=f.u;return f.return(e)})};
cKa=function(a,b,c){HJa(g.jJ(b.experiments,"bg_vm_reinit_threshold"))&&bKa(a,c).then(function(d){d&&(d=d.botguardData)&&g.SJa(d,b)},function(d){a.isDisposed()||(d=UK(d),a.xa("attf",{error:d.errorCode}))})};
dKa=function(){this.Jx={}};
bS=function(a,b,c,d,e){b in a.Jx||(c=new g.UD(c,d,{id:b,priority:2,namespace:"appad"}),e.addCueRange(c),a.Jx[b]=c)};
eKa=function(){g.E.apply(this,arguments);this.C=new Set;this.D={};this.J={};this.j={};this.I={};this.B={};this.u=void 0;this.V=new Set};
gKa=function(a){var b=void 0===b?5:b;return a?fKa[a]||b:b};
cS=function(a,b,c){g.E.call(this);this.app=a;this.state=b;this.playerType=c;this.j=!0;this.element=null};
hKa=function(a){dS(a,"getInternalApiInterface",a.getInternalApiInterface);dS(a,"cueVideoByPlayerVars",a.cueVideoByPlayerVars);dS(a,"loadVideoByPlayerVars",a.loadVideoByPlayerVars);dS(a,"preloadVideoByPlayerVars",a.preloadVideoByPlayerVars);dS(a,"getAdState",a.getAdState);dS(a,"sendAbandonmentPing",a.sendAbandonmentPing);dS(a,"setLoopRange",a.setLoopRange);dS(a,"getLoopRange",a.getLoopRange);dS(a,"setAutonavState",a.setAutonavState);dS(a,"seekToLiveHead",a.seekToLiveHead);dS(a,"requestSeekToWallTimeSeconds",
a.requestSeekToWallTimeSeconds);dS(a,"seekToStreamTime",a.seekToStreamTime);dS(a,"startSeekCsiAction",a.startSeekCsiAction);dS(a,"getStreamTimeOffset",a.getStreamTimeOffset);dS(a,"getVideoData",a.y3);dS(a,"setInlinePreview",a.setInlinePreview);dS(a,"updateDownloadState",a.updateDownloadState);dS(a,"queueOfflineAction",a.queueOfflineAction);dS(a,"pauseVideoDownload",a.pauseVideoDownload);dS(a,"resumeVideoDownload",a.resumeVideoDownload);dS(a,"refreshAllStaleEntities",a.refreshAllStaleEntities);dS(a,
"isOrchestrationLeader",a.isOrchestrationLeader);dS(a,"getAppState",a.getAppState);dS(a,"updateLastActiveTime",a.updateLastActiveTime);dS(a,"setBlackout",a.setBlackout);dS(a,"setUserEngagement",a.setUserEngagement);dS(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings);dS(a,"getPresentingPlayerType",a.getPresentingPlayerType);dS(a,"canPlayType",a.canPlayType);dS(a,"updatePlaylist",a.updatePlaylist);dS(a,"updateVideoData",a.updateVideoData);dS(a,"updateEnvironmentData",a.updateEnvironmentData);
dS(a,"sendVideoStatsEngageEvent",a.sendVideoStatsEngageEvent);dS(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);dS(a,"setSafetyMode",a.setSafetyMode);dS(a,"isAtLiveHead",function(b){return a.isAtLiveHead(void 0,b)});
dS(a,"getVideoAspectRatio",a.getVideoAspectRatio);dS(a,"getPreferredQuality",a.getPreferredQuality);dS(a,"getPlaybackQualityLabel",a.getPlaybackQualityLabel);dS(a,"setPlaybackQualityRange",a.setPlaybackQualityRange);dS(a,"onAdUxClicked",a.onAdUxClicked);dS(a,"getFeedbackProductData",a.getFeedbackProductData);dS(a,"getStoryboardFrame",a.getStoryboardFrame);dS(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);dS(a,"getStoryboardLevel",a.getStoryboardLevel);dS(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels);
dS(a,"getCaptionWindowContainerId",a.getCaptionWindowContainerId);dS(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);dS(a,"addUtcCueRange",a.addUtcCueRange);dS(a,"showAirplayPicker",a.showAirplayPicker);dS(a,"dispatchReduxAction",a.dispatchReduxAction);dS(a,"getPlayerResponse",a.getPlayerResponse);dS(a,"getHeartbeatResponse",a.getHeartbeatResponse);dS(a,"changeMarkerVisibility",a.changeMarkerVisibility);dS(a,"setAutonav",a.setAutonav);dS(a,"isNotServable",a.isNotServable);dS(a,"channelSubscribed",
a.channelSubscribed);dS(a,"channelUnsubscribed",a.channelUnsubscribed);dS(a,"togglePictureInPicture",a.togglePictureInPicture);dS(a,"supportsGaplessAudio",a.supportsGaplessAudio);dS(a,"supportsGaplessShorts",a.supportsGaplessShorts);dS(a,"enqueueVideoByPlayerVars",function(b){return void a.enqueueVideoByPlayerVars(b)});
dS(a,"clearQueue",a.clearQueue);dS(a,"getAudioTrack",a.Z2);dS(a,"setAudioTrack",a.setAudioTrack);dS(a,"getAvailableAudioTracks",a.b3);dS(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);dS(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);dS(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);dS(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);dS(a,"setMinimized",a.setMinimized);dS(a,"confirmYpcRental",a.confirmYpcRental);dS(a,"toggleSubtitlesOn",a.toggleSubtitlesOn);
dS(a,"isSubtitlesOn",a.isSubtitlesOn);dS(a,"queueNextVideo",a.queueNextVideo);dS(a,"handleExternalCall",a.handleExternalCall);dS(a,"logApiCall",a.logApiCall);dS(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);dS(a,"setScreenLayer",a.setScreenLayer);dS(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);dS(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);dS(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);dS(a,"syncVolume",a.syncVolume);dS(a,"highlightSettingsMenuItem",
a.highlightSettingsMenuItem);dS(a,"openSettingsMenuItem",a.openSettingsMenuItem);dS(a,"getVisibilityState",a.getVisibilityState);dS(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);dS(a,"setGlobalCrop",a.setGlobalCrop);dS(a,"setInternalSize",a.setInternalSize)};
eS=function(a,b,c){a.state.D[b]=function(){return c.apply(a,g.Ca.apply(0,arguments))};
a.state.j.hasOwnProperty(b)||dS(a,b,c);a.state.C.add(b)};
fS=function(a,b,c){a.state.J[b]=function(){return c.apply(a,g.Ca.apply(0,arguments))};
a.state.j.hasOwnProperty(b)||dS(a,b,c);a.state.C.add(b)};
dS=function(a,b,c){a.state.j[b]=function(){return c.apply(a,g.Ca.apply(0,arguments))}};
g.gS=function(a,b,c){return a.state.j[b].apply(a.state.j,g.la(c))};
jEa=function(a){a.state.u||(a.state.u={addEventListener:function(b,c){iKa(a,b,c)},
removeEventListener:function(b,c){c="string"===typeof c?b+c:b+String(g.Sa(c));var d=a.state.B[c];d&&(a.app.Pp.unsubscribe(b,d),g.gd(a.state.B,c))}});
return a.state.u};
iKa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Sa(c));if(!a.state.B[d]){var e="string"===typeof c?function(){var h=g.Ca.apply(0,arguments);g.La(c).apply(window,h)}:c;
var f=function(h){e({target:a.state.u,data:h})};
a.state.B[d]=f;a.app.Pp.subscribe(b,f)}};
jKa=function(a,b){b=void 0===b?a.playerType:b;var c={};if(b=g.hS(a.app,b)){b=b.getVideoData();if(b.isPrivate)return{};c.video_id=b.videoId;c.author=b.author;c.title=b.title;c.isPlayable=cN(b);c.errorCode=b.errorCode;if(b.u&&b.u.video){c.video_quality=b.u.video.quality;b=b.u.video;var d=[];32<b.fps&&d.push("hfr");b.isHdr()&&d.push("hdr");"bt2020"===b.primaries&&d.push("wcg");c.video_quality_features=d}}if(a=a.getPlaylistId())c.list=a;return c};
g.iS=function(a){var b=kKa(a.app.wb());if(b)return b.FB();a=a.app.wb();a=g.rK(a.F.T())?a.df.get("music"):void 0;return a?a.FB():null};
mKa=function(a,b,c){"string"===typeof a&&(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 lKa(a)};
lKa=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b={};c=g.v(nKa);for(var d=c.next();!d.done;d=c.next())d=d.value,a[d]&&(b[d]=a[d]);return b};
oKa=function(a,b,c,d){if(g.Pa(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}b={index:b,startSeconds:c,suggestedQuality:d};"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;return b};
jS=function(a,b,c,d){cS.call(this,a,b,d);c&&(hKa(this),pKa(this))};
pKa=function(a){eS(a,"cueVideoById",a.cueVideoById);eS(a,"loadVideoById",a.loadVideoById);eS(a,"cueVideoByUrl",a.cueVideoByUrl);eS(a,"loadVideoByUrl",a.loadVideoByUrl);eS(a,"playVideo",a.playVideo);eS(a,"pauseVideo",a.pauseVideo);eS(a,"stopVideo",a.stopVideo);eS(a,"clearVideo",a.clearVideo);eS(a,"getVideoBytesLoaded",a.getVideoBytesLoaded);eS(a,"getVideoBytesTotal",a.getVideoBytesTotal);eS(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);eS(a,"getVideoStartBytes",a.getVideoStartBytes);eS(a,"cuePlaylist",
a.cuePlaylist);eS(a,"loadPlaylist",a.loadPlaylist);eS(a,"nextVideo",a.nextVideo);eS(a,"previousVideo",a.previousVideo);eS(a,"playVideoAt",a.playVideoAt);eS(a,"setShuffle",a.setShuffle);eS(a,"setLoop",a.setLoop);eS(a,"getPlaylist",a.v3);eS(a,"getPlaylistIndex",a.getPlaylistIndex);eS(a,"getPlaylistId",a.getPlaylistId);eS(a,"loadModule",a.loadModule);eS(a,"unloadModule",a.unloadModule);eS(a,"setOption",a.setOption);eS(a,"getOption",a.getOption);eS(a,"getOptions",a.getOptions);eS(a,"mute",a.mute);eS(a,
"unMute",a.unMute);eS(a,"isMuted",a.isMuted);eS(a,"setVolume",a.setVolume);eS(a,"getVolume",a.getVolume);eS(a,"seekTo",a.seekTo);eS(a,"getPlayerMode",a.getPlayerMode);eS(a,"getPlayerState",a.getPlayerState);eS(a,"getAvailablePlaybackRates",a.getAvailablePlaybackRates);eS(a,"getPlaybackQuality",function(){return a.getPlaybackQuality(1)});
eS(a,"setPlaybackQuality",a.setPlaybackQuality);eS(a,"getAvailableQualityLevels",a.getAvailableQualityLevels);eS(a,"getCurrentTime",a.getCurrentTime);eS(a,"getDuration",a.getDuration);eS(a,"addEventListener",a.O1);eS(a,"removeEventListener",a.E8);eS(a,"getDebugText",a.getDebugText);eS(a,"getVideoData",function(){return jKa(a)});
eS(a,"addCueRange",a.addCueRange);eS(a,"removeCueRange",a.removeCueRange);eS(a,"setSize",a.setSize);eS(a,"getApiInterface",a.getApiInterface);eS(a,"destroy",a.destroy);eS(a,"getSphericalProperties",a.getSphericalProperties);eS(a,"setSphericalProperties",a.setSphericalProperties);eS(a,"mutedAutoplay",a.mutedAutoplay);var b=a.app.T();b.J||(eS(a,"getVideoEmbedCode",a.getVideoEmbedCode),eS(a,"getVideoUrl",a.getVideoUrl));eS(a,"getMediaReferenceTime",a.getMediaReferenceTime);eS(a,"getSize",a.getSize);
b.J||eS(a,"logImaAdEvent",a.logImaAdEvent)};
qKa=function(a,b,c){b=g.pe(Math.floor(b),0,100);isFinite(b)&&kS(a.app,{volume:b,muted:a.isMuted()},c)};
rKa=function(a,b){kS(a.app,{muted:!0,volume:a.getVolume()},b)};
sKa=function(a,b){g.lS(a.app)||kS(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
mS=function(a,b,c,d){jS.call(this,a,b,!1,d);this.j=!1;c&&(hKa(this),tKa(this),pKa(this))};
tKa=function(a){fS(a,"cueVideoByPlayerVars",function(b,c){a.cueVideoByPlayerVars(uKa(a,b),c)});
fS(a,"loadVideoByPlayerVars",function(b,c,d,e){a.loadVideoByPlayerVars(uKa(a,b),c,d,e)});
fS(a,"preloadVideoByPlayerVars",function(b,c,d,e){return void a.preloadVideoByPlayerVars(uKa(a,b),c,d,e)});
fS(a,"getVideoData",a.dU);fS(a,"seekBy",a.seekBy);fS(a,"showControls",a.showControls);fS(a,"hideControls",a.hideControls);fS(a,"cancelPlayback",a.cancelPlayback);fS(a,"getProgressState",a.getProgressState);fS(a,"isInline",a.isInline);fS(a,"setInline",a.setInline);fS(a,"setLoopVideo",a.setLoopVideo);fS(a,"getLoopVideo",a.getLoopVideo);fS(a,"getVideoContentRect",a.getVideoContentRect);fS(a,"getVideoStats",a.getVideoStats);fS(a,"getStoryboardFormat",a.getStoryboardFormat);fS(a,"toggleFullscreen",a.toggleFullscreen);
fS(a,"isFullscreen",a.isFullscreen);fS(a,"getPlayerSize",a.getPlayerSize);fS(a,"toggleSubtitles",a.toggleSubtitles);fS(a,"setCenterCrop",a.setCenterCrop);fS(a,"setFauxFullscreen",a.setFauxFullscreen);fS(a,"setSizeStyle",a.setSizeStyle);fS(a,"handleGlobalKeyDown",a.handleGlobalKeyDown);fS(a,"handleGlobalKeyUp",a.handleGlobalKeyUp);fS(a,"wakeUpControls",a.wakeUpControls)};
uKa=function(a,b){var c={};if(a.app.T().oa){a=g.v(vKa);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);b=c.raw_player_response;b||(a=c.player_response)&&(b=JSON.parse(a));delete c.player_response;delete c.raw_player_response;b&&(c.raw_player_response={streamingData:b.streamingData})}else for(a=g.v(wKa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
xKa=function(a){var b=g.zK(a.app.T()),c;a=null==(c=a.app.getVideoData())?void 0:c.Rk;return g.mz(b)&&!a?!1:!0};
yKa=function(a,b,c){var d=a.app.Lf(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
nS=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.u=this.j=a-1};
zKa=function(a){return a.data[a.j]||0};
oS=function(a){g.E.call(this);this.B=a;this.j=new Map;this.u=new g.Ap(this.sample,250,this);g.I(this,this.u);this.start()};
pS=function(a,b){if(null==(a=a.j.get(b)))a=void 0;else{a=a.buffer;for(b=[];a.u!==a.j;)a.u=(a.u+1)%a.data.length,b.push(a.data[a.u]);a=b}return a||[]};
qS=function(a,b){var c;return(null==(c=a.j.get(b))?void 0:zKa(c.buffer))||0};
AKa=function(a){this.u=a;this.j=NaN;this.buffer=new nS(100)};
g.rS=function(a,b){mS.call(this,a,b,!1);this.zJ=null};
g.sS=function(a){a=a.wb();var b=a.df.get("endscreen");return b&&b.hw()?!0:a.SD()||g.rK(a.F.T())};
g.tS=function(a,b){3===a.getPresentingPlayerType()?a.ma("mdxautoplaycancel"):a.ma("autonavcancel",b)};
g.vS=function(a){var b=uS(a.wb());return a.app.Kh&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.Dk()&&b.No()||!!a.getPlaylist()};
g.BKa=function(a,b,c){var d=a.T();d.ya&&g.$R(b,d.loaderUrl);g.gS(a,"addEmbedsConversionTrackingParams",[b]);g.ZR(b,c)};
g.xS=function(a){return(a=g.wS(a.wb()))?a.aG():{}};
g.CKa=function(a){a=(a=a.getVideoData())&&a.u;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.yS=function(a,b,c){a=a.jb().element;var d=Qb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.hf(a,b,d);b.setAttribute("data-layer",String(c))};
g.zS=function(a){var b=a.T();if(!b.Wd)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.K("allow_poltergust_autoplay"))&&!dN(c);d=c.isLivePlayback&&(!b.K("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.K("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.Dk();var f=c.fd&&c.fd.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.pd&&f;return!c.ypcPreview&&(!d||e)&&!g.wb(c.Ga,"ypc")&&
!a&&(!g.iK(b)||f)};
DKa=function(a){a=g.hS(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.u||!b.u.video||1080>b.u.video.j||b.nS)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.u.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.xa("iqss",{trigger:d},!0),!0):!1};
g.AS=function(a,b,c,d){d=void 0===d?!1:d;g.jQ.call(this,b);var e=this;this.F=a;this.Ga=d;this.J=new g.eI(this);this.Z=new g.WQ(this,c,!0,void 0,void 0,function(){e.AT()});
g.I(this,this.J);g.I(this,this.Z)};
EKa=function(a){a.u&&(document.activeElement&&g.lf(a.element,document.activeElement)&&(rf(a.u),a.u.focus()),a.u.setAttribute("aria-expanded","false"),a.u=void 0);g.Hz(a.J);a.V=void 0};
BS=function(a,b,c){a.cj()?a.Fb():a.md(b,c)};
FKa=function(a,b,c,d){d=new g.V({G:"div",Ia:["ytp-linked-account-popup-button"],ra:d,X:{role:"button",tabindex:"0"}});b=new g.V({G:"div",N:"ytp-linked-account-popup",X:{role:"dialog","aria-modal":"true",tabindex:"-1"},W:[{G:"div",N:"ytp-linked-account-popup-title",ra:b},{G:"div",N:"ytp-linked-account-popup-description",ra:c},{G:"div",N:"ytp-linked-account-popup-buttons",W:[d]}]});g.AS.call(this,a,{G:"div",N:"ytp-linked-account-popup-container",W:[b]},100);var e=this;this.dialog=b;g.I(this,this.dialog);
d.Ra("click",function(){e.Fb()});
g.I(this,d);g.yS(this.F,this.element,4);this.hide()};
g.FS=function(a,b,c,d){g.jQ.call(this,a);this.priority=b;c&&g.CS(this,c);d&&this.je(d)};
g.GS=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex="0");return{G:c?"a":"div",Ia:b,X:a,W:[{G:"div",N:"ytp-menuitem-icon",ra:"{{icon}}"},{G:"div",N:"ytp-menuitem-label",ra:"{{label}}"},{G:"div",N:"ytp-menuitem-content",ra:"{{content}}"}]}};
LS=function(a,b){a.updateValue("icon",b)};
g.CS=function(a,b){a.updateValue("label",b)};
MS=function(a){g.FS.call(this,g.GS({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.F=a;this.u=this.j=!1;this.Eb=a.Nm();a.Yf(this.element,this,!0);this.S(this.F,"settingsMenuVisibilityChanged",function(c){b.Zb(c)});
this.S(this.F,"videodatachange",this.C);this.Ra("click",this.onClick);this.C()};
NS=function(a){return a?g.dE(a):""};
OS=function(a){g.E.call(this);this.api=a};
PS=function(a){OS.call(this,a);var b=this;dS(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)});
dS(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)});
a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)});
a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new MS(b.api);g.I(b,b.menuItem)})};
GKa=function(a){OS.call(this,a);this.events=new g.eI(a);g.I(this,this.events);a.K("fetch_bid_for_dclk_status")&&this.events.S(a,"videoready",function(b){var c,d={contentCpn:(null==(c=a.getVideoData(1))?void 0:c.clientPlaybackNonce)||""};2===a.getPresentingPlayerType()&&(d.adCpn=b.clientPlaybackNonce);g.cA(g.eA(),function(){vsa("vr",d)})});
a.K("report_pml_debug_signal")&&this.events.S(a,"videoready",function(b){if(1===a.getPresentingPlayerType()){var c,d,e={playerDebugData:{pmlSignal:!!(null==(c=b.getPlayerResponse())?0:null==(d=c.adPlacements)?0:d.some(function(f){var h;return null==f?void 0:null==(h=f.adPlacementRenderer)?void 0:h.renderer})),
contentCpn:b.clientPlaybackNonce}};g.nA("adsClientStateChange",e)}})};
IKa=function(a,b){g.V.call(this,{G:"button",Ia:["ytp-button"],X:{title:"{{title}}","aria-label":"{{label}}","data-priority":"-10","data-tooltip-target-id":"ytp-autonav-toggle-button"},W:[{G:"div",N:"ytp-autonav-toggle-button-container",W:[{G:"div",N:"ytp-autonav-toggle-button",X:{"aria-checked":"true"}}]}]});this.F=a;this.u=[];this.j=!1;this.isChecked=!0;a.sb(this.element,this,113681);this.S(a,"presentingplayerstatechange",this.LA);this.Ra("click",this.onClick);this.F.T().K("web_player_autonav_toggle_always_listen")&&
HKa(this);this.tooltip=b.Hc();g.lb(this,g.QS(b.Hc(),this.element));this.LA()};
HKa=function(a){a.u.push(a.S(a.F,"videodatachange",a.LA));a.u.push(a.S(a.F,"videoplayerreset",a.LA));a.u.push(a.S(a.F,"onPlaylistUpdate",a.LA));a.u.push(a.S(a.F,"autonavchange",a.CR))};
JKa=function(a){a.isChecked=a.isChecked;a.Da("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);RS(a.tooltip)};
KKa=function(a){return a.F.T().K("web_player_autonav_use_server_provided_state")&&nM(a.Jd())};
LKa=function(a){OS.call(this,a);var b=this;this.events=new g.eI(a);g.I(this,this.events);var c=a.T();c.Wd&&c.K("web_player_move_autonav_toggle")&&this.events.S(a,"basechromeinitialized",function(){var d=g.iS(a),e=new IKa(a,d);g.I(b,e);d.TA(e)})};
MKa=function(){g.Sz();return g.Tz(0,192)?g.Tz(0,190):!g.cy("web_watch_cinematics_disabled_by_default")};
SS=function(a,b){g.FS.call(this,g.GS({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{G:"div",N:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Ra("click",this.onClick)};
TS=function(a,b){a.checked=b;a.element.setAttribute("aria-checked",String(a.checked))};
US=function(a){var b=a.K("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";SS.call(this,b,13);var c=this;this.F=a;this.j=!1;this.u=new g.Ap(function(){g.Kp(c.element,"ytp-menuitem-highlighted")},0);
this.Eb=a.Nm();LS(this,{G:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"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.Ra(NKa,this.B);g.I(this,this.u)};
PKa=function(a){OS.call(this,a);var b=this;this.j=!1;var c;this.K("web_cinematic_watch_settings")&&(null==(c=a.T().webPlayerContextConfig)?0:c.cinematicSettingsAvailable)&&(a.addEventListener("settingsMenuInitialized",function(){OKa(b)}),a.addEventListener("highlightSettingsMenu",function(d){OKa(b);
var e=b.menuItem;"menu_item_cinematic_lighting"===d&&(g.Ip(e.element,"ytp-menuitem-highlighted"),g.Ip(e.element,"ytp-menuitem-highlight-transition-enabled"),e.u.start())}),dS(a,"updateCinematicSettings",function(d){b.updateCinematicSettings(d)}))};
OKa=function(a){a.menuItem||(a.menuItem=new US(a.api),g.I(a,a.menuItem),a.menuItem.Qa(a.j))};
VS=function(a){OS.call(this,a);var b=this;this.j={};this.events=new g.eI(a);g.I(this,this.events);this.K("enable_precise_embargos")&&!g.IK(this.api.T())&&(this.events.S(a,"videodatachange",function(){var c=b.api.getVideoData();b.api.hf("embargo",1);(null==c?0:c.cueRanges)&&QKa(b,c)}),this.events.S(a,g.WD("embargo"),function(c){var d;
c=null!=(d=b.j[c.id])?d:[];d=g.v(c);for(c=d.next();!c.done;c=d.next()){var e=c.value;b.api.hideControls();b.api.Mg("heartbeat.stop",2,"This video isn't available in your current playback area");c=void 0;(e=null==(c=e.embargo)?void 0:c.onTrigger)&&b.api.Na("innertubeCommand",e)}}))};
QKa=function(a,b){if(null!=b&&dN(b)||a.K("enable_discrete_live_precise_embargos")){var c;null==(c=b.cueRanges)||c.filter(function(d){var e;return null==(e=d.onEnter)?void 0:e.some(a.u)}).forEach(function(d){var e,f=Number(null==(e=d.playbackPosition)?void 0:e.utcTimeMillis)/1E3,h;
e=f+Number(null==(h=d.duration)?void 0:h.seconds);h="embargo_"+f;a.api.addUtcCueRange(h,f,e,"embargo",!1);d.onEnter&&(a.j[h]=d.onEnter.filter(a.u))})}};
RKa=function(a){OS.call(this,a);var b=this;this.j=[];this.events=new g.eI(a);g.I(this,this.events);dS(a,"addEmbedsConversionTrackingParams",function(c){b.api.T().Tn&&b.addEmbedsConversionTrackingParams(c)});
this.events.S(a,"veClickLogged",function(c){b.api.Ek(c)&&(c=Jh(c.visualElement.getAsJspb(),2),b.j.push(c))})};
SKa=function(a){OS.call(this,a);var b=this;this.events=new g.eI(a);g.I(this,this.events);a.T().C&&(this.events.S(a,"initialvideodatacreated",function(c){tP().xk(16623);b.j=g.CE();if(VM(c)){tP().xk(27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.fd){var d,e=null==(d=c.fd)?void 0:d.trackingParams;e&&tP().cq(e)}if(c.getPlayerResponse()){var f;(c=null==(f=c.getPlayerResponse())?void 0:f.trackingParams)&&tP().cq(c)}}else tP().xk(32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),
c.Kf&&(f=null==(e=c.Kf)?void 0:e.trackingParams)&&tP().cq(f)}),this.events.S(a,"loadvideo",function(){tP().xk(27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",
parentCsn:b.j})}),this.events.S(a,"cuevideo",function(){tP().xk(32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",
parentCsn:b.j})}),this.events.S(a,"largeplaybuttonclicked",function(c){tP().xk(27240,c.visualElement)}),this.events.S(a,"playlistnextbuttonclicked",function(c){tP().xk(27240,c.visualElement)}),this.events.S(a,"playlistprevbuttonclicked",function(c){tP().xk(27240,c.visualElement)}),this.events.S(a,"playlistautonextvideo",function(){tP().xk(27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})}))};
WS=function(a,b){g.V.call(this,{G:"button",Ia:["ytp-fullerscreen-edu-button","ytp-button"],W:[{G:"div",Ia:["ytp-fullerscreen-edu-text"],ra:"Scroll for details"},{G:"div",Ia:["ytp-fullerscreen-edu-chevron"],W:[{G:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",X:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.Ua=a;this.B=b;this.j=new g.WQ(this,250,void 0,100);this.C=this.u=!1;a.sb(this.element,this,61214);this.B=b;g.I(this,this.j);this.S(a,
"fullscreentoggled",this.Qa);this.S(a,"presentingplayerstatechange",this.Qa);this.Ra("click",this.onClick);this.Qa()};
XS=function(a){OS.call(this,a);var b=this;this.events=new g.eI(a);g.I(this,this.events);dS(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)});
dS(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)});
var c=a.T();a.K("external_fullscreen_with_edu")&&c.externalFullscreen&&EK(c)&&"1"===c.controlsType&&this.events.S(a,"basechromeinitialized",function(){var d=g.iS(a);b.j=new WS(a,d);g.I(b,b.j);d.TA(b.j)})};
TKa=function(a){g.V.call(this,{G:"div",N:"ytp-gated-actions-overlay",W:[{G:"div",N:"ytp-gated-actions-overlay-background",W:[{G:"div",N:"ytp-gated-actions-overlay-background-overlay"}]},{G:"button",Ia:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],X:{"aria-label":"Close"},W:[g.pQ()]},{G:"div",N:"ytp-gated-actions-overlay-bar",W:[{G:"div",N:"ytp-gated-actions-overlay-text-container",W:[{G:"div",N:"ytp-gated-actions-overlay-title",ra:"{{title}}"},{G:"div",N:"ytp-gated-actions-overlay-subtitle",
ra:"{{subtitle}}"}]},{G:"div",N:"ytp-gated-actions-overlay-button-container"}]}]});var b=this;this.api=a;this.background=this.Da("ytp-gated-actions-overlay-background");this.u=this.Da("ytp-gated-actions-overlay-button-container");this.j=[];this.S(this.Da("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.Na("onCloseMiniplayer")});
this.hide()};
VKa=function(a,b){var c=0,d={};for(c=0;c<b.length;d={pA:d.pA},c++){var e=a.j[c],f=void 0,h=null==(f=e)?void 0:f.element;h||(h=new g.V({G:"button",N:"ytp-gated-actions-overlay-button",X:{tabindex:"0"},W:[{G:"div",N:"ytp-gated-actions-overlay-button-title",ra:"{{buttonText}}"}]}),g.I(a,h),h.Ea(a.u),e={element:h});d.pA=g.S(b[c],g.UKa);var l=f=void 0,m=void 0,n=(null==(f=d.pA)?void 0:f.title)||(null==(l=d.pA)?void 0:null==(m=l.titleFormatted)?void 0:m.content)||"";h.update({buttonText:n});e.listener&&
h.Fc(e.listener);e.listener=h.Ra("click",function(p){return function(){var q,t=g.S(null==(q=p.pA)?void 0:q.onTap,g.bQ);t&&a.api.Na("innertubeCommand",t)}}(d));
a.j[c]=e}for(;c<a.j.length;)a.j.pop().element.dispose()};
WKa=function(a){OS.call(this,a);var b=this;this.events=new g.eI(a);g.I(this,this.events);this.K("enable_courses_player_overlay_purchase")&&(this.j=new TKa(this.api),g.I(this,this.j),this.events.S(a,"videodatachange",function(){var c,d=null==(c=b.api.getVideoData())?void 0:c.W0;c=b.j;if(d){var e,f,h=(null==(e=d.title)?void 0:e.content)||"";e=(null==(f=d.subtitle)?void 0:f.content)||"";c.update({title:h,subtitle:e});h=d.thumbnail;f="none";if(null==h?0:h.sources){e=0;h=g.v(h.sources);for(var l=h.next();!l.done;l=
h.next())l=l.value,l.width&&l.url&&l.width>e&&(e=l.width,f="url("+l.url+")")}c.background.style.backgroundImage=f;VKa(c,d.actionButtons||[]);c.show()}else c.hide()}),g.yS(this.api,this.j.element,4))};
YS=function(a){OS.call(this,a);var b=this;this.events=new g.eI(a);g.I(this,this.events);g.GK(a.T())&&(dS(this.api,"seekToChapterWithAnimation",function(c){b.seekToChapterWithAnimation(c)}),dS(this.api,"seekToTimeWithAnimation",function(c,d){b.seekToTimeWithAnimation(c,d)}))};
XKa=function(a,b,c,d){var e=1E3*a.api.getCurrentTime()<c?1:-1;b.CD(e,d);a.api.seekTo(c/1E3)};
ZS=function(a){OS.call(this,a);var b=this;this.u=new Map;this.j=void 0;this.compositeVideoState=null;this.events=new g.eI(a);g.I(this,this.events);this.events.S(a,"modulecreated",function(c){var d;a:{var e,f,h,l=null==(e=b.api.getVideoData())?void 0:null==(f=e.getPlayerResponse())?void 0:null==(h=f.overlay)?void 0:h.playerControlsOverlayRenderer;if(l&&(e=g.S(l.compositeVideoOverlay,YKa),null==e?0:null==(d=e.sources)?0:d.length))for(d=g.v(null==e?void 0:e.sources),e=d.next();!e.done;e=d.next())if(e=
e.value,e.isActive){d=e;break a}d=void 0}"captions"===c&&void 0!==(null==d?void 0:d.topLeftCornerX)&&void 0!==(null==d?void 0:d.topLeftCornerY)&&void 0!==(null==d?void 0:d.width)&&void 0!==(null==d?void 0:d.height)&&b.api.vI({top:d.topLeftCornerY,right:1-d.topLeftCornerX-d.width,bottom:1-d.topLeftCornerY-d.height,left:d.topLeftCornerX})});
this.K("html5_enable_composite_embargo")&&(this.events.S(a,"videodatachange",function(){b.j=void 0;b.u.clear();b.api.hf("compositeembargo",1);var c=b.api.getVideoData();(null==c?0:c.cueRanges)&&ZKa(b,c)}),this.events.S(a,g.WD("compositeembargo"),function(c){var d;
if((null==(d=b.j)?void 0:d.id)!==c.id&&b.u.has(c.id)){var e=b.u.get(c.id);d=b.api.getVideoData();e=g.v(e);for(var f=e.next();!f.done;f=e.next()){var h=void 0;f=null==(h=f.value.compositeEmbargo)?void 0:h.embargoStatusToken;d.wq!==f&&(d.wq=f,b.api.jr());$Ka(b,c)}}}),this.events.S(a,g.XD("compositeembargo"),function(c){var d;
if((null==(d=b.j)?void 0:d.id)===c.id&&b.u.has(c.id)){if(c=b.api.getVideoData())c.wq=void 0;b.api.jr();$Ka(b)}}));
this.events.S(a,"heartbeatRequest",function(c){null!==b.compositeVideoState&&(c.playbackState||(c.playbackState={}),c.playbackState.compositeVideoState=b.compositeVideoState)});
dS(a,"setCompositeParam",function(c){b.compositeVideoState=c})};
$Ka=function(a,b){var c;(null==(c=a.j)?void 0:c.id)!==(null==b?void 0:b.id)&&(a.j&&(a.u.delete(a.j.id),a.api.Bh([a.j],1)),a.j=b)};
ZKa=function(a,b){var c;b=null==(c=b.cueRanges)?void 0:c.filter(function(h){var l;return null==(l=h.onEnter)?void 0:l.some(a.B)});
if(null!=b&&b.length)for(c=g.v(b),b=c.next();!b.done;b=c.next()){var d=b.value,e=void 0;b=Number(null==(e=d.playbackRelativePosition)?void 0:e.utcTimeMs)/1E3;var f=void 0;e=b+Number(null==(f=d.duration)?void 0:f.seconds);f="composite_embargo_"+b;d.onEnter&&(d=d.onEnter.filter(a.B),d.length&&(a.u.set(f,d),a.api.addUtcCueRange(f,b,e,"compositeembargo",!1)))}};
aLa=function(a){OS.call(this,a);var b=this;dS(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()})};
bLa=function(a,b,c){var d=[],e=b?156595:151874;a=g.v(a);for(var f=a.next();!f.done;f=a.next()){var h=f.value;f=h.video;h={formatId:h.id,qualityLabel:f.qualityLabel,quality:f.quality,isPlayable:b};if(f=c.get(f.qualityLabel))h.paygatedQualityDetails={paygatedIndicatorText:f.paygatedIndicatorText,endpoint:f.endpoint,veType:e,trackingParams:f.trackingParams};d.push(h)}return d};
cLa=function(a){for(var b=0,c=0;c<a.length;c++)if(a[c].paygatedQualityDetails){var d=a[c];a.splice(c,1);a.splice(b,0,d);b++}};
dLa=function(a){var b=new Set,c=new Map,d={};a=g.v(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.quality,h=e.isPlayable,l=e.qualityLabel;l&&f&&(h&&c.has(f)&&c.get(f)!==l?b.add(f):h&&c.set(f,l),d[l]||(d[l]=e))}c=[];d=g.v(Object.values(d));for(e=d.next();!e.done;e=d.next())e=e.value,(a=e.quality)&&!b.has(a)&&(e.formatId=void 0),c.push(e);return c};
g.aT=function(a,b,c,d){b=void 0===b?!1:b;d=void 0===d?!1:d;g.aE.call(this);this.J=!1;this.C=new Fz(this);this.D=this.I=null;this.B=this.u=!1;g.I(this,this.C);this.target=a;this.j=b;this.V=c||a;this.J=d;b&&(g.Nc&&this.target.setAttribute("draggable","true"),this.target.style.touchAction="none");$S(this)};
bT=function(a){g.Hz(a.C,!a.j)};
$S=function(a){a.D=null;a.I=null;a.S(cT("over"),a.Av);a.S("touchstart",a.BJ);a.j&&a.S(cT("down"),a.V4)};
eLa=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier===a.I)return d}return null};
cT=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
fLa=function(a,b){g.V.call(this,{G:"div",Ia:["ytp-overlay","ytp-speedmaster-overlay"],W:[{G:"div",N:"ytp-speedmaster-user-edu",ra:b}]});this.F=a;this.j=this.Da("ytp-speedmaster-user-edu");this.F.sb(this.j,this,173040,!0);g.Jm(this.j,"display","none")};
eT=function(a){OS.call(this,a);var b=this;this.D=this.B=!1;this.Ga=g.jJ(this.api.T().experiments,"speedmaster_touch_activation_ms")||500;this.oa=g.jJ(this.api.T().experiments,"speedmaster_cancellation_movement_dp")||10;this.Aa=g.jJ(this.api.T().experiments,"speedmaster_playback_rate")||2;this.K("web_enable_speedmaster")&&g.GK(this.api.T())&&(this.u=new g.eI(a),g.I(this,this.u),this.speedmasterUserEdu=new fLa(a,this.C),g.I(this,this.speedmasterUserEdu),g.yS(this.api,this.speedmasterUserEdu.element,
4),this.j=new g.aT(this.speedmasterUserEdu.element,!0),g.I(this,this.j),this.delay=new g.Ap(this.ya,this.Ga,this),g.I(this,this.delay),this.u.S(a,"videodatachange",function(c,d){var e,f;if(c=null==(e=d.fd)?void 0:null==(f=e.playerOverlays)?void 0:f.playerOverlayRenderer){var h,l;(e=null==(h=g.S(c.speedmasterUserEdu,gLa))?void 0:null==(l=h.bodyText)?void 0:l.content)&&e!==b.C&&(b.speedmasterUserEdu.j.textContent=e);b.C=e;hLa(b)}},this),this.u.S(a,"presentingplayerstatechange",function(){hLa(b)},this),
this.u.S(a,"autonavvisibility",function(){hLa(b)},this),this.u.S(a,"rootnodemousedown",function(c){b.ea=c}),this.K("web_speedmaster_spacebar_control")&&(this.u.S(a,"keyboardserviceglobalkeydown",function(c){32===c.keyCode&&(c.repeat||b.B||g.Bp(b.delay))},this),this.u.S(a,"keyboardserviceglobalkeyup",function(c){32===c.keyCode&&dT(b)},this)))};
dT=function(a){a.delay.stop();a.j.unsubscribe("dragmove",a.J,a);a.j.unsubscribe("dragend",a.I,a);a.B&&(a.B=!1,g.Jm(a.speedmasterUserEdu.j,"display","none"),a.api.setPlaybackRate(1),a.api.showControls())};
hLa=function(a){var b,c;var d=!!a.C&&!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.Af()&&2!==a.api.getPresentingPlayerType()&&!g.UN(a.api.Cb(),2)&&!(null==(c=g.iS(a.api))?0:c.Ug())&&!a.api.Tb();a.D!==d&&(a.D=d,a.D?a.j.subscribe("dragstart",a.Z,a):(a.j.unsubscribe("dragstart",a.Z,a),a.j.unsubscribe("dragmove",a.J,a),a.j.unsubscribe("dragend",a.I,a),dT(a)))};
iLa=function(a){OS.call(this,a);var b=this;this.events=new g.eI(a);g.I(this,this.events);a.K("html5_enable_ssap")&&(dS(this.api,"addPlayerResponsesForAssociation",function(c){b.api.addPlayerResponsesForAssociation(c)}),dS(this.api,"finishSegmentByCpn",function(c,d){return b.api.finishSegmentByCpn(c,d)}),dS(this.api,"getCpnByClipId",function(c){return b.api.getCpnByClipId(c)}))};
fT=function(a,b,c){g.pb.call(this,b,a);this.j=c};
g.gT=function(a){JO.call(this);var b=this;this.j=a;this.I={};this.listener=function(c){b.dispatchEvent(new fT(b,c.type,c))}};
kLa=function(a){var b=a.Pc(),c=a.getVideoData(),d=a.ue(),e=d.ub(),f=b.ZB(),h=b.wP,l=8*qS(h,"bandwidth")/1024,m=qS(h,"networkactivity")/1024,n=qS(h,"bufferhealth");if(b.pe){var p=b.videoData.useInnertubeDrmService()?"IT/":"";p+=b.pe.j.qh()+"/"+kF(b.Ou());p+="/"+b.pe.qh()}else p="";var q=p,t=b.getPlayerState().state.toString(16),w=d.getCurrentTime().toFixed(2),z=mI(d.Mh(),",",3);p="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(p+=c.LJ?"DS":"SS");p+="DAI, ";a:{if(b.jd){if(b.jd.Mp){var C="D,";break a}C=
b.jd.Bl;if(0<C){C="AD"+C+", ";break a}}C=""}C&&(p+=C)}aN(c)?p+="SSAP, ":$M(c)&&(p+="SABR, ");if(c.fetchType){switch(c.fetchType){case "onesie":C="o";break;case "gp":C="gp";break;default:C="gvi"}p+="vd:"+C+", "}p+="s:"+t+" t:"+w+" b:"+z+" ";d.fh()&&(p+="S");d.Hp()&&(p+="P");d.Ph()&&(p+="E");a.isOrchestrationLeader()&&(p+=" L");(d=b.OB())&&(p+=" l:"+d.toFixed());d=b.getCurrentTime();t=c.bE;d&&d>t.start&&d<t.end&&(p+=" as");d=p;p=g.iy(VE)("_start",void 0);t=[];w=g.v(["pl_i","vir","or_p","orfb","pbs"]);
for(z=w.next();!z.done;z=w.next())z=z.value,(C=g.iy(VE)(z,void 0))&&p&&(C-=p,t.push(z+":"+Math.round(C)));p=t.join(" ");t=g.FK();w=g.xS(a).i4;z=c.C&&!c.C.j?"display:none":"";if((C=c.clientPlaybackNonce)&&16==C.length){for(var G=0,O="",N=0;10>N;N++)if(G=(G<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(C.charAt(N)),4==N%5){for(var K="",W=0;6>W;W++)K="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(G&31)+K,G>>=5;O+=K}C=O.substr(0,4)+" "+O.substr(4,4)+" "+O.substr(8,4)}else C=
"";l={video_id_and_cpn:String(c.videoId)+" / "+C,codecs:"",dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:q?"":"display:none",drm:q,debug_info:d,extra_debug_info:"",bandwidth_style:z,network_activity_style:z,network_activity_bytes:m.toFixed(0)+" KB",shader_info:w,shader_info_style:w?"":"display:none",playback_categories:""};m=e.clientWidth+"x"+e.clientHeight+(1<t?"*"+t.toFixed(2):"");n="-";f.totalVideoFrames&&
(n=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames);l.dims_and_frames=m+" / "+n;a=a.getVolume();f=bAa(c);var Z;m=(null==(Z=c.D)?0:Z.audio.j)?"DRC":Math.round(a*f)+"%";Z=Math.round(a)+"% / "+m;a=c.Ri.toFixed(1);isFinite(Number(a))&&(Z+=" (content loudness "+a+"dB)");l.volume=Z;l.resolution=e.videoWidth+"x"+e.videoHeight;if(Z=c.u)if(e=Z.video)a=e.fps,1<a&&(l.resolution+="@"+a),(a=g.hT(b))&&a.video&&(l.resolution+=" / "+a.video.width+"x"+a.video.height,1<a.video.fps&&(l.resolution+="@"+a.video.fps)),
l.codecs=jLa(Z),!c.D||Z.audio&&Z.video?Z.IV&&(l.codecs+=" / "+Z.IV+"A"):l.codecs+=" / "+jLa(c.D),e.u||e.primaries?(Z=e.u||"unknown","smpte2084"===Z?Z+=" (PQ)":"arib-std-b67"===Z&&(Z+=" (HLG)"),l.color=Z+" / "+(e.primaries||"unknown"),l.color_style=""):l.color_style="display:none";e=c.isLivePlayback;Z=c.Se;l.live_mode_style=e||Z?"":"display:none";l.live_latency_style=e?"":"display:none";if(Z)l.live_mode="Post-Live"+(mM(c)?" Manifestless":"");else if(e){Z=qS(h,"livelatency");l.live_latency_secs=Z.toFixed(2)+
"s";e=mM(c)?"Manifestless, ":"";c.Kc&&(e+="Windowed, ");a="Uncertain";if(0<=Z&&120>Z)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":a="Optimized for Normal Latency";break;case "LOW":a="Optimized for Low Latency";break;case "ULTRALOW":a="Optimized for Ultra Low Latency";break;default:a="Unknown Latency Setting"}else a=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=a;(Z=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=
", seq "+Z.sequence);l.live_mode=e}b.isGapless()&&(l.playback_categories+="Gapless ");l.playback_categories_style=l.playback_categories?"":"display:none";l.bandwidth_samples=pS(h,"bandwidth");l.network_activity_samples=pS(h,"networkactivity");l.live_latency_samples=pS(h,"livelatency");l.buffer_health_samples=pS(h,"bufferhealth");b=g.bN(c);if(c.cotn||b)l.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+b;l.cotn_and_local_media_style=l.cotn_and_local_media?"":"display:none";iM(c,"web_player_release_debug")?
(l.release_name="youtube.player.web_20230430_00_RC00",l.release_style=""):l.release_style="display:none";l.debug_info&&0<p.length&&60>=l.debug_info.length+p.length?l.debug_info+=" "+p:l.extra_debug_info=p;l.extra_debug_info_style=l.extra_debug_info&&0<l.extra_debug_info.length?"":"display:none";return l};
jLa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.itag+")":a.itag};
iT=function(a,b,c,d,e){g.V.call(this,{G:"div",N:"ytp-horizonchart"});this.I=b;this.sampleCount=c;this.C=d;this.D=e;this.index=0;this.heightPx=-1;this.B=this.u=null;this.j=Math.round(a/c);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.I+"em"};
jT=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.Ze("CANVAS"),a.u=c.getContext("2d")}catch(l){}if(a.u){var d=a.j*a.sampleCount;a.B=c;a.B.width=d;a.B.style.width=d+"px";a.element.appendChild(a.B)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.j*=4,c=0;c<a.sampleCount;c++)d=g.Ze("SPAN"),d.style.width=a.j+"px",d.style.left=a.j*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.u&&(c=1<(window.devicePixelRatio||1)?2:1,a.B.height=a.heightPx*c,a.B.style.height=
a.heightPx+"px",a.u.scale(1,c)));b=g.v(b);for(d=b.next();!d.done;d=b.next()){c=a;var e=a.index,f=d.value;for(d=0;d+2<c.C.length&&c.C[d+1]<f;)d++;f=Math.min(1,(f-c.C[d])/(c.C[d+1]-c.C[d]));if(c.u)c.u.fillStyle=c.D[d],c.u.fillRect(e*c.j,0,c.j,c.heightPx),c.u.fillStyle=c.D[d+1],c.u.fillRect(e*c.j,c.heightPx*(1-f),c.j,c.heightPx);else{e=c.element.children[e];var h=window.devicePixelRatio||1;f=Math.min(c.heightPx,Math.round(c.heightPx*f*h)/h)||0;e.style.height=f+"px";e.style.backgroundColor=c.D[d+1];e.style.borderTop=
"solid "+(c.heightPx-f)+"px "+c.D[d]}a.index=(a.index+1)%a.sampleCount}b=a.index;a.u?a.u.clearRect(b*a.j,0,a.j,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
kT=function(a){var b=null;b={G:"button",Ia:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],X:{title:"close"},ra:"[X]"};g.V.call(this,{G:"div",Ia:["html5-video-info-panel","ytp-sfn"],W:[b,{G:"div",Ia:["html5-video-info-panel-content","ytp-sfn-content"],W:[{G:"div",W:[{G:"div",ra:"Video ID / sCPN"},{G:"span",ra:"{{video_id_and_cpn}}",N:"ytp-sfn-cpn"}]},{G:"div",W:[{G:"div",ra:"Viewport / Frames"},{G:"span",ra:"{{dims_and_frames}}"}]},{G:"div",W:[{G:"div",ra:"Current / Optimal Res"},{G:"span",
ra:"{{resolution}}"}]},{G:"div",W:[{G:"div",ra:"Volume / Normalized"},{G:"span",ra:"{{volume}}"}]},{G:"div",W:[{G:"div",ra:"Codecs"},{G:"span",ra:"{{codecs}}"}]},{G:"div",X:{style:"{{shader_info_style}}"},W:[{G:"div",ra:"Shader Info"},{G:"span",ra:"{{shader_info}}"}]},{G:"div",X:{style:"{{color_style}}"},W:[{G:"div",ra:"Color"},{G:"span",ra:"{{color}}"}]},{G:"div",X:{style:"{{drm_style}}"},W:[{G:"div",ra:"Protected"},{G:"span",ra:"{{drm}}"}]},{G:"div",X:{style:"{{bandwidth_style}}"},W:[{G:"div",ra:"Connection Speed"},
{G:"span",W:[{G:"span",ra:"{{bandwidth_chart}}"},{G:"span",ra:"{{bandwidth_kbps}}"}]}]},{G:"div",X:{style:"{{network_activity_style}}"},W:[{G:"div",ra:"Network Activity"},{G:"span",W:[{G:"span",ra:"{{network_activity_chart}}"},{G:"span",ra:"{{network_activity_bytes}}"}]}]},{G:"div",W:[{G:"div",ra:"Buffer Health"},{G:"span",W:[{G:"span",ra:"{{buffer_health_chart}}"},{G:"span",ra:"{{buffer_health_seconds}}"}]}]},{G:"div",X:{style:"{{live_latency_style}}"},W:[{G:"div",ra:"Live Latency"},{G:"span",W:[{G:"span",
ra:"{{live_latency_chart}}"},{G:"span",ra:"{{live_latency_secs}}"}]}]},{G:"div",X:{style:"{{live_mode_style}}"},W:[{G:"div",ra:"Live Mode"},{G:"span",ra:"{{live_mode}}"}]},{G:"div",X:{style:"{{playback_categories_style}}"},W:[{G:"div",ra:"Playback Categories"},{G:"span",ra:"{{playback_categories}}"}]},{G:"div",W:[{G:"div",ra:"Mystery Text"},{G:"span",ra:"{{debug_info}}"}]},{G:"div",X:{style:"{{extra_debug_info_style}}"},W:[{G:"div",ra:""},{G:"span",W:[{G:"span",ra:"{{extra_debug_info}}"}]}]},{G:"div",
W:[{G:"div",ra:"Date"},{G:"span",ra:"{{date}}"}]},{G:"div",X:{style:"{{cotn_and_local_media_style}}"},W:[{G:"div",ra:"COTN / Local Media"},{G:"span",ra:"{{cotn_and_local_media}}"}]},{G:"div",X:{style:"{{release_style}}"},W:[{G:"div",ra:"Player Release"},{G:"span",ra:"{{release_name}}"}]}]}]});this.Ua=a;b?(a=this.Da("ytp-sfn-close"),this.S(a,"click",this.hide)):this.S(this.element,"click",this.hide);a=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];b="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");
var c=a.map(function(d){return d/4});
this.D={};this.j=new iT(300,1,150,a,b);g.I(this,this.j);this.updateValue("bandwidth_chart",this.j);this.B=new iT(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.I(this,this.B);this.updateValue("live_latency_chart",this.B);this.u=new iT(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.I(this,this.u);this.updateValue("buffer_health_chart",this.u);this.C=new iT(300,1,150,c,b);g.I(this,this.C);this.updateValue("network_activity_chart",
this.C);this.delay=new g.Ap(this.Qa,500,this);g.I(this,this.delay)};
nLa=function(a){OS.call(this,a);var b=this;dS(a,"getStatsForNerds",function(){return kLa(b.api)});
eS(a,"showVideoInfo",function(){lLa(b,!0)});
eS(a,"hideVideoInfo",function(){lLa(b,!1)});
eS(a,"isVideoInfoVisible",function(){return mLa(b)})};
lLa=function(a,b){var c=mLa(a);a.j||(a.j=new kT(a.api),g.I(a,a.j),g.yS(a.api,a.j.element,4));g.iQ(a.j,b);var d=uS(a.api.wb());d&&d.loaded&&c!==b&&d.FP();b&&a.api.xa("sfn",{},!0)};
mLa=function(a){var b;return!(null==(b=a.j)||!b.yb)};
oLa=function(a){OS.call(this,a);var b=this;eS(this.api,"getPlaybackRate",function(){return b.api.getPlaybackRate()});
eS(this.api,"setPlaybackRate",function(c){"number"===typeof c&&b.api.setPlaybackRate(c)})};
lT=function(a){OS.call(this,a);var b=this;this.useLivingRoomPoToken=!1;this.vb=null;var c;this.useLivingRoomPoToken=!(null==(c=a.T().webPlayerContextConfig)||!c.useLivingRoomPoToken);a.addEventListener("csiinitialized",function(){b.vb=a.Nh();try{if(b.K("html5_generate_session_po_token")&&!b.useLivingRoomPoToken)if(b.vb.ai("pot_isc"),b.K("html5_webpo_idle_priority_job")){if(b.K("html5_web_po_prefetch")){pLa(b);var d;null==(d=b.j)||d.prefetch()}g.cA(g.eA(),function(){b.K("html5_web_po_prefetch")||pLa(b);
qLa(b)})}else pLa(b),qLa(b)}catch(e){e instanceof Error&&g.AD(e)}});
a.gP(this)};
rLa=function(a,b){var c=a.K("html5_po_token_enable_webpo_experimental")?"UE0a2bupPZ6aUyyLkkEY":"Z1elNkAKLpSR3oPOUMSN";var d=a.K("html5_webpo_critical_experiment")?"6BW35shnjYbBdd0Xn55t":a.K("html5_webpo_critical_control")?"Av5DGcHDtt8bC80Ew9nc":a.K("html5_po_token_enable_webpo_experimental")?"bxNLZUJrsnkb8KzwCOTR":a.K("html5_web_po_prefetch")?"0wjYMhvxbLZ78HRVBg8V":a.K("html5_web_po_token_caching")?"nJH2JWixsHocEBryELkG":"O43z0dpjhgX20SCx4KAo";b=g.wK(b)?c:d;a.K("html5_placeholder_po_tokens")&&(b=
"2ZCPXHYZSpebQXqOYNtj");return b};
pLa=function(a){function b(d){g.AD(d)}
var c=rLa(a,a.api.T());try{a.j=new tha({Ef:c,onError:b,qy:rha(c)}),a.K("html5_web_po_token_caching")&&xha(a.j)}catch(d){d instanceof Error&&g.AD(d)}};
qLa=function(a){var b=a.api.T();a.vb.ai("pot_ist");var c;null==(c=a.j)||c.start();if(!a.K("html5_generate_content_po_token")){mT(a);var d;null==(d=a.j)||d.ready().then(function(){a.vb.ai("pot_if");mT(a)});
b=g.jJ(b.experiments,"html5_session_po_token_interval_time_ms")||0;0<b&&(a.u=g.zy(function(){mT(a)},b))}};
mT=function(a){var b,c,d,e;g.A(function(f){if(!a.K("html5_generate_session_po_token")||a.useLivingRoomPoToken)return f.return();b=a.api.T();c=g.ay("EOM_VISITOR_DATA")||g.ay("VISITOR_DATA");d=b.Yn?b.datasyncId:c;e=b.livingRoomPoTokenId||d;b.Tf=sLa(a,e);g.ta(f)})};
sLa=function(a,b){if(!a.j)return"";try{var c=a.j.isReady();c?a.vb.ai("pot_cms"):a.vb.ai("pot_csms");a:{var d=a.j;b={Yx:b};var e,f=null!=(e=d.j)?e:new nl(d.logger,d.B,d.state),h=new Ej(d.logger,f.B);try{var l=f.C(b);break a}catch(p){h=new Ej(d.logger,"e");var m=p instanceof fl?p:new fl(5,p);d.logger.FC(m.code);var n;null==(n=d.onError)||n.call(d,m);f=new ml(d.logger,m);l=f.C(b);break a}finally{h.done()}l=void 0}c?a.vb.ai("pot_cmf"):a.vb.ai("pot_csmf");return l}catch(p){return g.AD(p),""}};
tLa=function(a){OS.call(this,a);var b=this;this.freePreviewWatchedDuration=0;this.events=new g.eI(a);g.I(this,this.events);g.IK(a.T())&&(this.events.S(a,"heartbeatRequest",function(c){c.heartbeatRequestParams||(c.heartbeatRequestParams={});c.heartbeatRequestParams.unpluggedParams||(c.heartbeatRequestParams.unpluggedParams={});c.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+b.freePreviewWatchedDuration}}),dS(a,"setFreePreviewWatchedDuration",function(c){b.freePreviewWatchedDuration=
c}))};
uLa=function(a){g.E.call(this);this.features=[];this.features.push(new PS(a),new aLa(a),new lT(a),new VS(a),new GKa(a),new ZS(a),new nLa(a),new oLa(a));this.features.push(new tLa(a),new iLa(a));this.features.push(new PKa(a),new XS(a),new WKa(a),new RKa(a),new SKa(a),new LKa(a),new YS(a),new eT(a));a=g.v(this.features);for(var b=a.next();!b.done;b=a.next())g.I(this,b.value)};
nT=function(){this.u=this.j=NaN};
oT=function(a,b,c){YE(a,c)||cF(a,b,c);YE(a,"video_to_ad")||cF(a,b,"video_to_ad");YE(a,"ad_to_video")||cF(a,b,"ad_to_video");YE(a,"ad_to_ad")||cF(a,b,"ad_to_ad")};
vLa=function(a,b){this.Y=a;this.timerName="";this.B=!1;this.u=NaN;this.C=new nT;this.j=b||null;this.B=!1};
wLa=function(a,b,c){var d=g.oK(b.B)&&!b.B.J;if(b.B.Yk&&(kK(b.B)||"shortspage"===b.B.Ga||NK(b.B)||d)&&!a.B){a.B=!0;a.I=b.clientPlaybackNonce;g.ay("TIMING_ACTION")||$x("TIMING_ACTION",a.Y.csiPageType);a.Y.csiServiceName&&$x("CSI_SERVICE_NAME",a.Y.csiServiceName);if(a.j){d=a.j.Nh();for(var e=g.v(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,bF(f,d[f],a.timerName);d=a.j.nF;e=g.v(Object.keys(d));for(f=e.next();!f.done;f=e.next())f=f.value,g.aF(f,d[f],a.timerName);d=a.j;d.j={};d.nF={}}g.aF("yt_pvis",
g.iy(TE)(),a.timerName);g.aF("yt_pt","html5",a.timerName);a.D!==b.clientPlaybackNonce||Number.isNaN(a.u)||(YE("_start",a.timerName)?c=g.iy(VE)("_start",a.timerName)+a.u:g.AD(new g.Yz("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!YE("pbs",a.timerName)&&a.tick("pbs",c)}};
pT=function(a){Hta();Fta();a.timerName=""};
xLa=function(a){if(a.j){var b=a.j;b.j={};b.nF={}}a.B=!1;a.D=void 0;a.u=NaN};
yLa=function(a,b){g.aE.call(this);this.u=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.ea={};this.B=0;if(a=b.session_data)this.sessionData=ky(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)"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;if(a=b.list)switch(b.listType){case "user_uploads":this.listId=new GL("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.HL(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");0<this.index&&(this.items=[]);a=g.v(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.ea=eL(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
zLa=function(a){return!!(a.playlist||a.list||a.api)};
ALa=function(a){var b=a.index+1;return b>=a.length?0:b};
BLa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
g.qT=function(a,b,c,d){b=void 0!==b?b:a.index;b=a.items&&b in a.items?a.items[a.order[b]]:null;var e=null;b&&(c&&(b.autoplay="1"),d&&(b.autonav="1"),e=new g.cM(a.u,b),g.I(a,e),e.Rk=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
CLa=function(a,b){a.index=g.pe(b,0,a.length-1);a.startSeconds=0};
DLa=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.qT(a);a.items=[];for(var d=g.v(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(b=b.index)?a.index=b:a.findIndex(c);a.setShuffle(!1);a.loaded=!0;a.B++;a.j&&a.j()}};
GLa=function(a,b){var c,d,e,f,h,l,m;return g.A(function(n){if(1==n.j){c=g.ER();var p=a.T(),q={context:g.aS(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}};p=p.embedConfig;var t=b.docid||b.video_id||b.videoId||b.id;if(!t){t=b.raw_embedded_player_response;if(!t){var w=b.embedded_player_response;w&&(t=JSON.parse(w))}if(t){var z,C,G,O,N,K;t=(null==(K=g.S(null==(z=t)?void 0:null==(C=z.embedPreview)?void 0:null==(G=C.thumbnailPreviewRenderer)?void 0:null==(O=G.playButton)?
void 0:null==(N=O.buttonRenderer)?void 0:N.navigationEndpoint,g.rM))?void 0:K.videoId)||null}else t=null}z=(z=t)?z:void 0;C=a.playlistId?a.playlistId:b.list;G=b.listType;if(C){var W;"user_uploads"===G?W={username:C}:W={playlistId:C};ELa(p,z,b,W);q.playlistRequest=W}else b.playlist?(W={templistVideoIds:b.playlist.toString().split(",")},ELa(p,z,b,W),q.playlistRequest=W):z&&(W={videoId:z},p&&(W.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=W);d=q;e=g.sR(FLa);g.ua(n,2);return g.y(n,g.EP(c,d,
e),4)}if(2!=n.j)return f=n.u,h=a.T(),b.raw_embedded_player_response=f,h.Pa=lz(b,g.iK(h)),h.B="EMBEDDED_PLAYER_MODE_PFL"===h.Pa,f&&(l=f,l.trackingParams&&(q=l.trackingParams,tP().cq(q))),n.return(new g.cM(h,b));m=g.xa(n);m instanceof Error||(m=Error("b259802748"));g.zD(m);return n.return(a)})};
ELa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.sT=function(a,b){rT.get(a);rT.set(a,b)};
g.tT=function(a){g.aE.call(this);this.loaded=!1;this.player=a};
HLa=function(){this.u=[];this.j=[]};
g.uT=function(a,b){return b?a.j.concat(a.u):a.j};
g.vT=function(a,b){switch(b.kind){case "asr":ILa(b,a.u);break;default:ILa(b,a.j)}};
ILa=function(a,b){g.sb(b,function(c){return a.equals(c)})||b.push(a)};
g.wT=function(a){g.E.call(this);this.Y=a;this.j=new HLa;this.C=[]};
g.xT=function(a,b,c){g.wT.call(this,a);this.audioTrack=c;this.u=null;this.B=!1;this.eventId=null;this.C=b.HK;this.B=g.TM(b);this.eventId=b.eventId};
JLa=function(){this.j=this.dk=!1};
KLa=function(a){a=void 0===a?{}:a;var b=void 0===a.Oo?!1:a.Oo,c=new JLa;c.dk=(void 0===a.hasSubfragmentedFmp4?!1:a.hasSubfragmentedFmp4)||b;return c};
g.LLa=function(a){this.j=a;this.I=new JLa;this.Un=this.Tn=!1;this.wm=2;this.Z=20971520;this.Ga=8388608;this.ea=120;this.ob=3145728;this.td=this.j.K("html5_platform_backpressure");this.tb=62914560;this.Kc=10485760;this.zm=g.jJ(this.j.experiments,"html5_min_readbehind_secs");this.qx=g.jJ(this.j.experiments,"html5_min_readbehind_cap_secs");this.nx=g.jJ(this.j.experiments,"html5_max_readbehind_secs");this.tD=this.j.K("html5_trim_future_discontiguous_ranges");this.Ri=this.j.K("html5_offline_reset_media_stream_on_unresumable_slices");
this.dc=NaN;this.jo=this.fm=this.Vv=2;this.Ja=2097152;this.uf=0;this.ao=1048576;this.Gc=!1;this.Ud=1800;this.ym=this.tm=5;this.Za=15;this.Rf=1;this.J=1.15;this.V=1.05;this.gm=1;this.Rn=!0;this.Wa=!1;this.oo=.8;this.hk=this.Bc=!1;this.Uc=6;this.D=this.ib=!1;this.Hj=g.jJ(this.j.experiments,"html5_static_abr_resolution_shelf");this.oi=g.jJ(this.j.experiments,"html5_min_startup_buffered_media_duration_secs");this.Vn=g.jJ(this.j.experiments,"html5_post_interrupt_readahead");this.Sn=!1;this.Xn=g.jJ(this.j.experiments,
"html5_probe_primary_delay_base_ms")||5E3;this.wq=100;this.Uf=10;this.sx=g.jJ(this.j.experiments,"html5_offline_failure_retry_limit")||2;this.lm=this.j.experiments.kb("html5_clone_original_for_fallback_location");this.oh=1;this.Zi=1.6;this.hd=!1;this.Gb=g.jJ(this.j.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.Kj=g.jJ(this.j.experiments,"html5_subsegment_readahead_timeout_secs");this.IC=g.jJ(this.j.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.Ij=
g.jJ(this.j.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.NC=g.jJ(this.j.experiments,"html5_subsegment_readahead_min_load_speed");this.Po=g.jJ(this.j.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.kD=g.jJ(this.j.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.Vf=15;this.pm=1;this.rd=!1;this.Dx=this.j.K("html5_restrict_streaming_xhr_on_sqless_requests");this.lx=g.jJ(this.j.experiments,"html5_max_headm_for_streaming_xhr");
this.xx=this.j.K("html5_pipeline_manifestless_allow_nonstreaming");this.zx=this.j.K("html5_prefer_server_bwe3");this.jx=this.j.K("html5_last_slice_transition");this.yC=this.j.K("html5_store_xhr_headers_readable");this.Lp=!1;this.Yn=0;this.Ti=2;this.Do=this.jm=!1;this.qm=g.jJ(this.j.experiments,"html5_max_drift_per_track_secs");this.Pn=this.j.K("html5_no_placeholder_rollbacks");this.zC=this.j.K("html5_subsegment_readahead_enable_mffa");this.tf=this.j.K("html5_allow_video_keyframe_without_audio");this.wx=
this.j.K("html5_enable_vp9_fairplay");this.On=this.j.K("html5_never_pause_appends");this.jc=!0;this.le=this.Ya=this.Ub=!1;this.jl=!0;this.Yi=!1;this.u="";this.Mw=1048576;this.ke=[];this.Ow=this.j.K("html5_woffle_resume");this.Yk=this.j.K("html5_abs_buffer_health");this.Sk=!1;this.Sw=this.j.K("html5_interruption_resets_seeked_time");this.mx=g.jJ(this.j.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.Pa=!1;this.ql=this.j.K("html5_explicitly_dispose_xhr");this.Zn=!1;this.lA=!this.j.K("html5_encourage_array_coalescing");
this.hm=!1;this.Cx=this.j.K("html5_restart_on_unexpected_detach");this.ya=0;this.ol="";this.Lw=this.j.K("html5_disable_codec_for_playback_on_error");this.Xi=!1;this.Rw=this.j.K("html5_filter_non_efficient_formats_for_safari");this.j.K("html5_format_hybridization");this.fA=this.j.K("html5_abort_before_separate_init");this.Lx=Yy();this.nh=!1;this.Iy=this.j.K("html5_serialize_server_stitched_ad_request");this.mA=this.j.K("html5_skip_buffer_check_seek_to_head");this.Wd=!1;this.kA=this.j.K("html5_attach_po_token_to_bandaid");
this.xm=g.jJ(this.j.experiments,"html5_max_redirect_response_length")||8192;this.Ro=this.j.K("html5_rewrite_timestamps_for_webm");this.Nb=this.j.K("html5_only_media_duration_for_discontinuities");this.Bx=g.jJ(this.j.experiments,"html5_resource_bad_status_delay_scaling")||1;this.j.K("html5_onesie_live");this.xD=this.j.K("html5_onesie_premieres");this.Nw=this.j.K("html5_drop_onesie_for_live_mode_mismatch");this.tx=g.jJ(this.j.experiments,"html5_onesie_live_ttl_secs")||8;this.Qn=g.jJ(this.j.experiments,
"html5_attach_num_random_bytes_to_bandaid");this.py=this.j.K("html5_self_init_consolidation");this.vx=g.jJ(this.j.experiments,"html5_onesie_request_timeout_ms")||3E3;this.C=!1;this.ll=this.j.K("html5_new_sabr_buffer_timeline")||this.C;this.Aa=this.j.K("html5_ssdai_use_post_for_media")&&this.j.K("gab_return_sabr_ssdai_config");this.tv=this.j.K("html5_use_post_for_media");this.xq=g.jJ(this.j.experiments,"html5_url_padding_length");this.Sj="";this.Nv=this.j.K("html5_post_body_in_string");this.yx=this.j.K("html5_post_body_as_prop");
this.useUmp=this.j.K("html5_use_ump")||this.j.K("html5_cabr_utc_seek");this.dl=this.j.K("html5_cabr_utc_seek");this.La=this.oa=!1;this.Wn=this.j.K("html5_prefer_drc");this.Ax=this.j.K("html5_reset_primary_stats_on_redirector_failure");this.j.K("html5_remap_to_original_host_when_redirected");this.B=!1;this.Sf=this.j.K("html5_enable_sabr_format_selection");this.nA=this.j.K("html5_iterative_seeking_buffered_time");this.Rk=this.j.K("html5_use_network_error_code_enums");this.Jw=this.j.K("html5_disable_overlapping_requests");
this.Iw=this.j.K("html5_disable_cabr_request_timeout_for_sabr");this.Pw=this.j.K("html5_fallback_to_cabr_on_net_bad_status");this.Tf=this.j.K("html5_enable_sabr_partial_segments");this.Vd=!1;this.Zz=this.j.K("html5_use_media_end_for_end_of_segment");this.kx=this.j.K("html5_log_smooth_audio_switching_reason");this.bE=this.j.K("html5_update_ctmp_rqs_logging");this.nm=!this.j.K("html5_remove_deprecated_ticks");this.Gf=this.j.K("html5_disable_bandwidth_cofactors_for_sabr")};
MLa=function(a,b){1080<b.video.j&&!a.Tn&&(a.Z=36700160,a.Ga=5242880,a.ob=10485760,a.Ja=Math.max(4194304,a.Ja),a.Tn=!0);2160<b.video.j&&!a.Un&&(a.Z=104857600,a.dc=13107200,a.Un=!0);b.isEncrypted()&&g.Uy()&&Sy("kant")&&(a.dc=1310720);b.dc&&(a.ao=Math.max(65536,Math.min(a.Ja,5*b.dc)))};
yT=function(a){return a.B&&a.Sf};
OLa=function(a,b){wL(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&(vL(a,14,0),uL(a,c<<1^c>>31));wL(a,16,b.x4);wL(a,17,b.detailedNetworkType);wL(a,18,b.q2);wL(a,19,b.o2);wL(a,21,b.j9);wL(a,23,b.Y1);wL(a,28,b.n8);wL(a,34,b.visibility);wL(a,36,b.S6a);AL(a,38,b.mediaCapabilities,NLa,3);wL(a,39,b.x9);wL(a,40,b.oT);wL(a,44,b.playerState);xL(a,46,b.O2);wL(a,48,b.U8)};
PLa=function(a){for(var b=[];mL(a,2);)b.push(lL(a));return{wK:b.length?b:void 0,videoId:qL(a,3),eQ:nL(a,4)}};
NLa=function(a,b){var c;if(b.dQ)for(c=0;c<b.dQ.length;c++)AL(a,1,b.dQ[c],QLa,1);if(b.vK)for(c=0;c<b.vK.length;c++)AL(a,2,b.vK[c],RLa,1)};
RLa=function(a,b){wL(a,1,b.X1);wL(a,2,b.numChannels);wL(a,3,b.F4)};
QLa=function(a,b){wL(a,1,b.U9);wL(a,3,b.G4);wL(a,4,b.H4);wL(a,11,b.maxFramerate);wL(a,12,b.F4)};
ULa=function(a){return{f8:nL(a,1),itag:qL(a,3),RW:rL(a,4,SLa),gj:nL(a,5),d7a:nL(a,7),xtags:qL(a,15),P4:rL(a,23,TLa)}};
VLa=function(a){return{q8:oL(a,8)}};
SLa=function(a){return{iv:pL(a,5),p4:oL(a,7)}};
TLa=function(a){return{videoId:qL(a,2)}};
XLa=function(a,b){AL(a,2,b.Du,OLa,3);AL(a,3,b.CM,WLa,3);yL(a,4,b.onesieUstreamerConfig);yL(a,9,b.pE)};
YLa=function(a){return{VH:nL(a,1),WH:nL(a,2),seekSource:nL(a,3)}};
WLa=function(a,b){yL(a,2,b.pT);yL(a,5,b.encryptedClientKey);yL(a,6,b.iv);yL(a,7,b.DU);xL(a,10,b.DX);xL(a,13,b.nT);xL(a,14,b.jL);yL(a,16,b.J9)};
ZLa=function(a,b){zL(a,1,b.name);zL(a,2,b.value)};
$La=function(a,b){zL(a,1,b.url);var c;if(b.sM)for(c=0;c<b.sM.length;c++)AL(a,2,b.sM[c],ZLa,3);yL(a,3,b.postBody);xL(a,4,b.v8);xL(a,6,b.VD)};
aMa=function(a){return{KW:nL(a,1),FU:nL(a,2),body:pL(a,4)}};
bMa=function(a,b){var c;if(b.hK)for(c=0;c<b.hK.length;c++)zL(a,1,b.hK[c]);yL(a,2,b.U1);zL(a,3,b.Pr);wL(a,4,b.QX);wL(a,5,b.V9);zL(a,6,b.W9)};
g.cMa=function(a,b){b.Du&&AL(a,1,b.Du,OLa,1);b.videoPlaybackUstreamerConfig&&yL(a,3,b.videoPlaybackUstreamerConfig);b.Iz&&AL(a,6,b.Iz,bMa,3)};
g.dMa=function(a,b){return MH(a.info.mimeType)?b?a.info.itag===b:!0:!1};
g.eMa=function(a,b){if(null!=a.j&&g.IK(b.T())&&!a.j.isManifestless&&null!=a.j.j.rawcc)return!0;if(!a.Zc())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.dMa(c,"386")});
a=!!a.j&&!a.j.isManifestless&&Qva(a.j);return b||a};
g.zT=function(a,b,c,d,e,f){g.wT.call(this,a);this.videoId=c;this.IU=e;this.eventId=f;this.D={};this.u=null;a=d||g.oy(b).hl||"";a=a.split("_").join("-");this.B=py(b,{hl:a})};
fMa=function(a){a.set=function(b,c){this[b]=c};
a.get=function(b){return this[b]};
return a};
gMa=function(a,b,c){for(var d,e=0,f=b,h=c.length,l=b+(3*h>>2)-("="==c[h-2])-("="==c[h-1]);e<h;e+=4)b=AT[c.charCodeAt(e+1)],d=AT[c.charCodeAt(e+2)],a[f++]=AT[c.charCodeAt(e)]<<2|b>>4,f<l&&(a[f++]=b<<4|d>>2),f<l&&(a[f++]=d<<6|AT[c.charCodeAt(e+3)])};
BT=function(){throw Error("abort");};
hMa=function(a){function b(u){u|=0;a:if(u){var D=u-8|0;var F=r[u-4>>2];u=F&-8;var B=D+u|0;b:if(!(F&1)){if(!(F&3))break a;F=r[D>>2];D=D-F|0;if(D>>>0<X[596])break a;u=u+F|0;if(r[597]!=(D|0))if(255>=F>>>0){F=F>>>3|0;var M=r[D+12>>2];var H=r[D+8>>2];(M|0)==(H|0)?(H=2368,F=r[592]&N(-2,F),r[H>>2]=F):(r[H+12>>2]=M,r[M+8>>2]=H)}else{var R=r[D+24>>2];F=r[D+12>>2];c:if((D|0)!=(F|0))H=r[D+8>>2],r[H+12>>2]=F,r[F+8>>2]=H;else{M=D+20|0;H=r[M>>2];if(!H&&(M=D+16|0,H=r[M>>2],!H)){F=0;break c}for(;;){var T=M;F=H;M=
F+20|0;H=r[M>>2];if(!H&&(M=F+16|0,H=r[F+16>>2],!H))break}r[T>>2]=0}if(R){M=r[D+28>>2];H=(M<<2)+2672|0;c:{if(r[H>>2]==(D|0)){if(r[H>>2]=F)break c;H=2372;F=r[593]&N(-2,M);r[H>>2]=F;break b}r[R+(r[R+16>>2]==(D|0)?16:20)>>2]=F;if(!F)break b}r[F+24>>2]=R;if(H=r[D+16>>2])r[F+16>>2]=H,r[H+24>>2]=F;if(H=r[D+20>>2])r[F+20>>2]=H,r[H+24>>2]=F}}else if(F=r[B+4>>2],3==(F&3)){r[594]=u;r[B+4>>2]=F&-2;r[D+4>>2]=u|1;r[u+D>>2]=u;return}}if(!(D>>>0>=B>>>0)&&(F=r[B+4>>2],F&1)){b:{if(!(F&2)){if(r[598]==(B|0)){r[598]=
D;u=r[595]+u|0;r[595]=u;r[D+4>>2]=u|1;if(r[597]!=(D|0))break a;r[594]=0;r[597]=0;return}if(r[597]==(B|0)){r[597]=D;u=r[594]+u|0;r[594]=u;r[D+4>>2]=u|1;r[u+D>>2]=u;return}u=(F&-8)+u|0;c:if(255>=F>>>0)F=F>>>3|0,M=r[B+12>>2],H=r[B+8>>2],(M|0)==(H|0)?(H=2368,F=r[592]&N(-2,F),r[H>>2]=F):(r[H+12>>2]=M,r[M+8>>2]=H);else{R=r[B+24>>2];F=r[B+12>>2];d:if((B|0)!=(F|0))H=r[B+8>>2],r[H+12>>2]=F,r[F+8>>2]=H;else{M=B+20|0;H=r[M>>2];if(!H&&(M=B+16|0,H=r[M>>2],!H)){F=0;break d}for(;T=M,F=H,M=F+20|0,H=r[M>>2],H||(M=
F+16|0,H=r[F+16>>2],H););r[T>>2]=0}if(R){M=r[B+28>>2];H=(M<<2)+2672|0;d:{if(r[H>>2]==(B|0)){if(r[H>>2]=F)break d;H=2372;F=r[593]&N(-2,M);r[H>>2]=F;break c}r[R+(r[R+16>>2]==(B|0)?16:20)>>2]=F;if(!F)break c}r[F+24>>2]=R;if(H=r[B+16>>2])r[F+16>>2]=H,r[H+24>>2]=F;if(H=r[B+20>>2])r[F+20>>2]=H,r[H+24>>2]=F}}r[D+4>>2]=u|1;r[u+D>>2]=u;if(r[597]!=(D|0))break b;r[594]=u;return}r[B+4>>2]=F&-2;r[D+4>>2]=u|1;r[u+D>>2]=u}if(255>=u>>>0)F=(u&-8)+2408|0,H=r[592],u=1<<(u>>>3),H&u?u=r[F+8>>2]:(r[592]=u|H,u=F),r[F+8>>
2]=D,r[u+12>>2]=D,r[D+12>>2]=F,r[D+8>>2]=u;else{M=31;16777215>=u>>>0&&(F=za(u>>>8|0),M=((u>>>38-F&1)-(F<<1)|0)+62|0);r[D+28>>2]=M;r[D+16>>2]=0;r[D+20>>2]=0;T=(M<<2)+2672|0;b:{c:{H=r[593];F=1<<M;if(H&F){M=u<<(31!=(M|0)?25-(M>>>1|0)|0:0);for(F=r[T>>2];;){H=F;if((r[F+4>>2]&-8)==(u|0))break c;F=M>>>29|0;M<<=1;T=H+(F&4)|0;F=r[T+16>>2];if(!F)break}r[T+16>>2]=D;r[D+24>>2]=H}else r[593]=F|H,r[T>>2]=D,r[D+24>>2]=T;r[D+12>>2]=D;r[D+8>>2]=D;break b}u=r[H+8>>2];r[u+12>>2]=D;r[H+8>>2]=D;r[D+24>>2]=0;r[D+12>>2]=
H;r[D+8>>2]=u}u=r[600]-1|0;r[600]=u?u:-1}}}}
function c(u,D,F){if(!F)return r[u+4>>2]==r[D+4>>2];if((u|0)==(D|0))return 1;F=r[u+4>>2];u=J[F|0];D=r[D+4>>2];var B=J[D|0];a:if(!(!u|(B|0)!=(u|0)))for(;;){B=J[D+1|0];u=J[F+1|0];if(!u)break a;D=D+1|0;F=F+1|0;if((u|0)!=(B|0))break}return(u|0)==(B|0)}
function d(u){var D;u=1>=u>>>0?1:u;a:{for(;;){if(D=h(u))break a;if(D=r[716])$a[D|0]();else break}Za(1);BT();BT();BT()}return D}
function e(u){var D=r[590];var F=u+7&-8;u=D+F|0;a:if(!(u>>>0<=D>>>0&&F)){if(u>>>0>K()<<16>>>0&&(-1==(W((u-(K()<<16)|0)+65535>>>16|0)|0)?F=0:(cb(0),F=1),!F))break a;r[590]=u;return D}r[591]=48;return-1}
function f(u,D,F){var B;if(F)for(B=u;Q[B|0]=D,B=B+1|0,F=F-1|0,F;);return u}
function h(u){u|=0;var D=0,F;wa=F=wa-16|0;a:{b:{c:{d:{e:{f:{g:{h:{i:{if(244>=u>>>0){var B=r[592];var M=11>u>>>0?16:u+11&-8;var H=M>>>3|0;var R=B>>>H|0;if(R&3){H=H+((R^-1)&1)|0;u=H<<3;R=u+2408|0;D=r[u+2416>>2];u=r[D+8>>2];if((R|0)==(u|0)){var T=2368;R=N(-2,H)&B;r[T>>2]=R}else r[u+12>>2]=R,r[R+8>>2]=u;u=D+8|0;R=H<<3;r[D+4>>2]=R|3;R=R+D|0;r[R+4>>2]|=1;break a}var ea=r[594];if(ea>>>0>=M>>>0)break i;if(R){u=2<<H;u=(0-u|u)&R<<H;D=O(0-u&u);u=D<<3;R=u+2408|0;var ca=r[u+2416>>2];u=r[ca+8>>2];(R|0)==(u|0)?
(B=N(-2,D)&B,r[592]=B):(r[u+12>>2]=R,r[R+8>>2]=u);r[ca+4>>2]=M|3;H=ca+M|0;u=D<<3;D=u-M|0;r[H+4>>2]=D|1;r[u+ca>>2]=D;if(ea){R=(ea&-8)+2408|0;var ia=r[597];u=1<<(ea>>>3);u&B?u=r[R+8>>2]:(r[592]=u|B,u=R);r[R+8>>2]=ia;r[u+12>>2]=ia;r[ia+12>>2]=R;r[ia+8>>2]=u}u=ca+8|0;r[597]=H;r[594]=D;break a}var ra=r[593];if(!ra)break i;H=r[(O(0-ra&ra)<<2)+2672>>2];ia=(r[H+4>>2]&-8)-M|0;for(R=H;;){j:{u=r[R+16>>2];if(!u&&(u=r[R+20>>2],!u))break j;R=(r[u+4>>2]&-8)-M|0;ia=(D=R>>>0<ia>>>0)?R:ia;H=D?u:H;R=u;continue}break}var ya=
r[H+24>>2];D=r[H+12>>2];if((D|0)!=(H|0)){u=r[H+8>>2];r[u+12>>2]=D;r[D+8>>2]=u;break b}R=H+20|0;u=r[R>>2];if(!u){u=r[H+16>>2];if(!u)break h;R=H+16|0}for(;ca=R,D=u,R=u+20|0,u=r[R>>2],u||(R=D+16|0,u=r[D+16>>2],u););r[ca>>2]=0;break b}M=-1;if(!(4294967231<u>>>0)&&(u=u+11|0,M=u&-8,ra=r[593])){ia=0-M|0;B=0;256>M>>>0||(B=31,16777215<M>>>0||(u=za(u>>>8|0),B=((M>>>38-u&1)-(u<<1)|0)+62|0));R=r[(B<<2)+2672>>2];j:{k:{if(R)for(u=0,H=M<<(31!=(B|0)?25-(B>>>1|0)|0:0);;){ca=(r[R+4>>2]&-8)-M|0;if(!(ca>>>0>=ia>>>0||
(D=R,ia=ca,ca))){ia=0;u=R;break k}ca=r[R+20>>2];R=r[((H>>>29&4)+R|0)+16>>2];u=ca?(ca|0)==(R|0)?u:ca:u;H<<=1;if(!R)break}else u=0;if(!(u|D)){D=0;u=2<<B;u=(0-u|u)&ra;if(!u)break i;u=r[(O(u&0-u)<<2)+2672>>2]}if(!u)break j}for(;R=(r[u+4>>2]&-8)-M|0,ia=(H=R>>>0<ia>>>0)?R:ia,D=H?u:D,u=(R=r[u+16>>2])?R:r[u+20>>2],u;);}if(!(!D|r[594]-M>>>0<=ia>>>0)){B=r[D+24>>2];H=r[D+12>>2];if((D|0)!=(H|0)){u=r[D+8>>2];r[u+12>>2]=H;r[H+8>>2]=u;break c}R=D+20|0;u=r[R>>2];if(!u){u=r[D+16>>2];if(!u)break g;R=D+16|0}for(;ca=
R,H=u,R=u+20|0,u=r[R>>2],u||(R=H+16|0,u=r[H+16>>2],u););r[ca>>2]=0;break c}}}u=r[594];if(u>>>0>=M>>>0){D=r[597];R=u-M|0;16<=R>>>0?(H=D+M|0,r[H+4>>2]=R|1,r[u+D>>2]=R,r[D+4>>2]=M|3):(r[D+4>>2]=u|3,u=u+D|0,r[u+4>>2]|=1,R=H=0);r[594]=R;r[597]=H;u=D+8|0;break a}ya=r[595];if(ya>>>0>M>>>0){R=ya-M|0;r[595]=R;H=r[598];u=H+M|0;r[598]=u;r[u+4>>2]=R|1;r[H+4>>2]=M|3;u=H+8|0;break a}u=0;ra=M+47|0;r[710]?H=r[712]:(r[713]=-1,r[714]=-1,r[711]=4096,r[712]=4096,r[710]=F+12&-16^1431655768,r[715]=0,r[703]=0,H=4096);ca=
ra+H|0;ia=0-H|0;R=ca&ia;if(R>>>0<=M>>>0)break a;if(D=r[702])if(H=r[700],B=H+R|0,D>>>0<B>>>0|H>>>0>=B>>>0)break a;i:{if(!(J[2812]&4)){j:{k:{l:{m:{if(D=r[598])for(u=2816;;){H=r[u>>2];if(H>>>0<=D>>>0&D>>>0<H+r[u+4>>2]>>>0)break m;u=r[u+8>>2];if(!u)break}H=e(0);if(-1==(H|0))break j;B=R;D=r[711];u=D-1|0;u&H&&(B=(R-H|0)+(u+H&0-D)|0);if(B>>>0<=M>>>0)break j;if(D=r[702])if(u=r[700],ia=u+B|0,D>>>0<ia>>>0|u>>>0>=ia>>>0)break j;u=e(B);if((H|0)!=(u|0))break l;break i}B=ia&ca-ya;H=e(B);if((H|0)==(r[u>>2]+r[u+
4>>2]|0))break k;u=H}if(-1==(u|0))break j;if(M+48>>>0<=B>>>0){H=u;break i}H=r[712];H=H+(ra-B|0)&0-H;if(-1==(e(H)|0))break j;B=H+B|0;H=u;break i}if(-1!=(H|0))break i}r[703]|=4}H=e(R);u=e(0);if(-1==(H|0)|-1==(u|0)|u>>>0<=H>>>0)break d;B=u-H|0;if(B>>>0<=M+40>>>0)break d}u=r[700]+B|0;r[700]=u;u>>>0>X[701]&&(r[701]=u);i:{if(ca=r[598]){for(u=2816;;){D=r[u>>2];R=r[u+4>>2];if((D+R|0)==(H|0))break i;u=r[u+8>>2];if(!u)break}break f}u=r[596];u>>>0<=H>>>0&&u||(r[596]=H);u=0;r[705]=B;r[704]=H;r[600]=-1;r[601]=
r[710];for(r[707]=0;D=u<<3,R=D+2408|0,r[D+2416>>2]=R,r[D+2420>>2]=R,u=u+1|0,32!=(u|0););D=B-40|0;u=H+8&7?-8-H&7:0;R=D-u|0;r[595]=R;u=u+H|0;r[598]=u;r[u+4>>2]=R|1;r[(H+D|0)+4>>2]=40;r[599]=r[714];break e}if(J[u+12|0]&8|D>>>0>ca>>>0|H>>>0<=ca>>>0)break f;r[u+4>>2]=R+B;u=ca+8&7?-8-ca&7:0;H=u+ca|0;r[598]=H;R=r[595]+B|0;u=R-u|0;r[595]=u;r[H+4>>2]=u|1;r[(R+ca|0)+4>>2]=40;r[599]=r[714];break e}D=0;break b}H=0;break c}X[596]>H>>>0&&(r[596]=H);R=H+B|0;u=2816;f:{g:{h:{i:{j:{k:{for(;;){if((R|0)!=r[u>>2]){if(u=
r[u+8>>2])continue;break k}break}if(!(J[u+12|0]&8))break j}for(u=2816;;){R=r[u>>2];if(R>>>0<=ca>>>0&&(ia=R+r[u+4>>2]|0,ia>>>0>ca>>>0))break i;u=r[u+8>>2]}}r[u>>2]=H;r[u+4>>2]+=B;ra=(H+8&7?-8-H&7:0)+H|0;r[ra+4>>2]=M|3;B=R+(R+8&7?-8-R&7:0)|0;ya=M+ra|0;u=B-ya|0;if((ca|0)==(B|0)){r[598]=ya;u=r[595]+u|0;r[595]=u;r[ya+4>>2]=u|1;break g}if(r[597]==(B|0)){r[597]=ya;u=r[594]+u|0;r[594]=u;r[ya+4>>2]=u|1;r[u+ya>>2]=u;break g}ia=r[B+4>>2];if(1==(ia&3)){ca=ia&-8;j:if(255>=ia>>>0)H=r[B+12>>2],R=r[B+8>>2],(H|0)==
(R|0)?(T=2368,R=r[592]&N(-2,ia>>>3|0),r[T>>2]=R):(r[R+12>>2]=H,r[H+8>>2]=R);else{M=r[B+24>>2];H=r[B+12>>2];k:if((B|0)!=(H|0))R=r[B+8>>2],r[R+12>>2]=H,r[H+8>>2]=R;else{ia=B+20|0;R=r[ia>>2];if(!R&&(ia=B+16|0,R=r[ia>>2],!R)){H=0;break k}for(;D=ia,H=R,ia=H+20|0,R=r[ia>>2],R||(ia=H+16|0,R=r[H+16>>2],R););r[D>>2]=0}if(M){D=r[B+28>>2];R=(D<<2)+2672|0;k:{if(r[R>>2]==(B|0)){if(r[R>>2]=H)break k;T=2372;R=r[593]&N(-2,D);r[T>>2]=R;break j}r[M+(r[M+16>>2]==(B|0)?16:20)>>2]=H;if(!H)break j}r[H+24>>2]=M;if(R=r[B+
16>>2])r[H+16>>2]=R,r[R+24>>2]=H;if(R=r[B+20>>2])r[H+20>>2]=R,r[R+24>>2]=H}}B=ca+B|0;ia=r[B+4>>2];u=u+ca|0}r[B+4>>2]=ia&-2;r[ya+4>>2]=u|1;r[u+ya>>2]=u;if(255>=u>>>0){R=(u&-8)+2408|0;H=r[592];u=1<<(u>>>3);H&u?u=r[R+8>>2]:(r[592]=u|H,u=R);r[R+8>>2]=ya;r[u+12>>2]=ya;r[ya+12>>2]=R;r[ya+8>>2]=u;break g}ia=31;16777215>=u>>>0&&(R=za(u>>>8|0),ia=((u>>>38-R&1)-(R<<1)|0)+62|0);r[ya+28>>2]=ia;r[ya+16>>2]=0;r[ya+20>>2]=0;R=(ia<<2)+2672|0;D=r[593];H=1<<ia;if(D&H){ia=u<<(31!=(ia|0)?25-(ia>>>1|0)|0:0);for(H=r[R>>
2];;){R=H;if((r[H+4>>2]&-8)==(u|0))break h;H=ia>>>29|0;ia<<=1;D=(H&4)+R|0;H=r[D+16>>2];if(!H)break}r[D+16>>2]=ya}else r[593]=H|D,r[R>>2]=ya;r[ya+24>>2]=R;r[ya+12>>2]=ya;r[ya+8>>2]=ya;break g}D=B-40|0;u=H+8&7?-8-H&7:0;R=D-u|0;r[595]=R;u=u+H|0;r[598]=u;r[u+4>>2]=R|1;r[(H+D|0)+4>>2]=40;r[599]=r[714];u=(ia+(ia-39&7?39-ia&7:0)|0)-47|0;D=u>>>0<ca+16>>>0?ca:u;r[D+4>>2]=27;u=r[707];r[D+16>>2]=r[706];r[D+20>>2]=u;u=r[705];r[D+8>>2]=r[704];r[D+12>>2]=u;r[706]=D+8;r[705]=B;r[704]=H;r[707]=0;for(u=D+24|0;r[u+
4>>2]=7,R=u+8|0,u=u+4|0,R>>>0<ia>>>0;);if((D|0)==(ca|0))break e;r[D+4>>2]&=-2;ia=D-ca|0;r[ca+4>>2]=ia|1;r[D>>2]=ia;if(255>=ia>>>0){R=(ia&-8)+2408|0;H=r[592];u=1<<(ia>>>3);H&u?u=r[R+8>>2]:(r[592]=u|H,u=R);r[R+8>>2]=ca;r[u+12>>2]=ca;r[ca+12>>2]=R;r[ca+8>>2]=u;break e}u=31;16777215>=ia>>>0&&(u=za(ia>>>8|0),u=((ia>>>38-u&1)-(u<<1)|0)+62|0);r[ca+28>>2]=u;r[ca+16>>2]=0;r[ca+20>>2]=0;R=(u<<2)+2672|0;D=r[593];H=1<<u;if(D&H){u=ia<<(31!=(u|0)?25-(u>>>1|0)|0:0);for(D=r[R>>2];;){R=D;if((ia|0)==(r[R+4>>2]&-8))break f;
H=u>>>29|0;u<<=1;H=(H&4)+R|0;D=r[H+16>>2];if(!D)break}r[H+16>>2]=ca}else r[593]=H|D,r[R>>2]=ca;r[ca+24>>2]=R;r[ca+12>>2]=ca;r[ca+8>>2]=ca;break e}u=r[R+8>>2];r[u+12>>2]=ya;r[R+8>>2]=ya;r[ya+24>>2]=0;r[ya+12>>2]=R;r[ya+8>>2]=u}u=ra+8|0;break a}u=r[R+8>>2];r[u+12>>2]=ca;r[R+8>>2]=ca;r[ca+24>>2]=0;r[ca+12>>2]=R;r[ca+8>>2]=u}u=r[595];if(!(u>>>0<=M>>>0)){R=u-M|0;r[595]=R;H=r[598];u=H+M|0;r[598]=u;r[u+4>>2]=R|1;r[H+4>>2]=M|3;u=H+8|0;break a}}r[591]=48;u=0;break a}c:if(B){R=r[D+28>>2];u=(R<<2)+2672|0;d:{if(r[u>>
2]==(D|0)){if(r[u>>2]=H)break d;ra=N(-2,R)&ra;r[593]=ra;break c}r[B+(r[B+16>>2]==(D|0)?16:20)>>2]=H;if(!H)break c}r[H+24>>2]=B;if(u=r[D+16>>2])r[H+16>>2]=u,r[u+24>>2]=H;if(u=r[D+20>>2])r[H+20>>2]=u,r[u+24>>2]=H}c:if(15>=ia>>>0)u=ia+M|0,r[D+4>>2]=u|3,u=u+D|0,r[u+4>>2]|=1;else{r[D+4>>2]=M|3;ca=D+M|0;r[ca+4>>2]=ia|1;r[ca+ia>>2]=ia;if(255>=ia>>>0)R=(ia&-8)+2408|0,H=r[592],u=1<<(ia>>>3),H&u?u=r[R+8>>2]:(r[592]=u|H,u=R),r[R+8>>2]=ca,r[u+12>>2]=ca,r[ca+12>>2]=R;else{u=31;16777215>=ia>>>0&&(u=za(ia>>>8|0),
u=((ia>>>38-u&1)-(u<<1)|0)+62|0);r[ca+28>>2]=u;r[ca+16>>2]=0;r[ca+20>>2]=0;R=(u<<2)+2672|0;d:{H=1<<u;if(H&ra){u=ia<<(31!=(u|0)?25-(u>>>1|0)|0:0);for(M=r[R>>2];;){R=M;if((r[R+4>>2]&-8)==(ia|0))break d;H=u>>>29|0;u<<=1;H=(H&4)+R|0;M=r[H+16>>2];if(!M)break}r[H+16>>2]=ca}else r[593]=H|ra,r[R>>2]=ca;r[ca+24>>2]=R;r[ca+12>>2]=ca;r[ca+8>>2]=ca;break c}u=r[R+8>>2];r[u+12>>2]=ca;r[R+8>>2]=ca;r[ca+24>>2]=0;r[ca+12>>2]=R}r[ca+8>>2]=u}u=D+8|0;break a}b:if(ya){R=r[H+28>>2];u=(R<<2)+2672|0;c:{if(r[u>>2]==(H|0)){if(r[u>>
2]=D)break c;T=2372;R=N(-2,R)&ra;r[T>>2]=R;break b}r[ya+(r[ya+16>>2]==(H|0)?16:20)>>2]=D;if(!D)break b}r[D+24>>2]=ya;if(u=r[H+16>>2])r[D+16>>2]=u,r[u+24>>2]=D;if(u=r[H+20>>2])r[D+20>>2]=u,r[u+24>>2]=D}15>=ia>>>0?(u=ia+M|0,r[H+4>>2]=u|3,u=u+H|0,r[u+4>>2]|=1):(r[H+4>>2]=M|3,D=H+M|0,r[D+4>>2]=ia|1,r[D+ia>>2]=ia,ea&&(R=(ea&-8)+2408|0,ca=r[597],u=1<<(ea>>>3),u&B?u=r[R+8>>2]:(r[592]=u|B,u=R),r[R+8>>2]=ca,r[u+12>>2]=ca,r[ca+12>>2]=R,r[ca+8>>2]=u),r[597]=D,r[594]=ia);u=H+8|0}wa=F+16|0;return u|0}
function l(u,D){var F,B=0,M=0,H=0,R=0,T=0,ea=0,ca=0,ia=0,ra=0,ya=0,tb=0,jb=0,yb=0;wa=F=wa-128|0;r[F+120>>2]=0;r[F+124>>2]=0;r[F+112>>2]=0;r[F+116>>2]=0;r[F+104>>2]=0;r[F+108>>2]=0;r[F+96>>2]=0;r[F+100>>2]=0;r[F+88>>2]=0;r[F+92>>2]=0;r[F+80>>2]=0;r[F+84>>2]=0;r[F+72>>2]=0;r[F+76>>2]=0;r[F+64>>2]=0;r[F+68>>2]=0;var eb=r[D+4>>2];var Ra=r[D>>2];if((eb|0)==(Ra|0))r[F+8>>2]=0,r[F+12>>2]=0,r[F>>2]=0,Ra=r[F+4>>2]=0;else{H=eb-Ra|0;H=1>=H>>>0?1:H;R=H&3;if(3<=H-1>>>0)for(ca=H&-4;H=F- -64|0,T=H+(J[M+Ra|0]<<2)|
0,r[T>>2]+=1,T=H+(J[Ra+(M|1)|0]<<2)|0,r[T>>2]+=1,T=H+(J[Ra+(M|2)|0]<<2)|0,r[T>>2]+=1,H=H+(J[Ra+(M|3)|0]<<2)|0,r[H>>2]+=1,M=M+4|0,B=B+4|0,(ca|0)!=(B|0););if(R)for(;H=(F- -64|0)+(J[M+Ra|0]<<2)|0,r[H>>2]+=1,M=M+1|0,ea=ea+1|0,(R|0)!=(ea|0););tb=r[F+112>>2];H=r[F+108>>2];M=r[F+104>>2];jb=r[F+100>>2];yb=r[F+96>>2];ia=r[F+92>>2];ra=r[F+88>>2];ca=r[F+84>>2];R=r[F+80>>2];ea=r[F+76>>2];B=r[F+72>>2];T=r[F+68>>2];Ra=r[F+64>>2];r[F>>2]=0;r[F+4>>2]=0;r[F+8>>2]=0;r[F+12>>2]=0;ya=Ra<<1;r[F+4>>2]=ya;Ra=2;B||(Ra=0!=
(T|0))}T=T+ya<<1;r[F+8>>2]=T;B=B+T<<1;r[F+12>>2]=B;B=B+ea<<1;r[F+16>>2]=B;B=B+R<<1;r[F+20>>2]=B;B=B+ca<<1;r[F+24>>2]=B;B=B+ra<<1;r[F+28>>2]=B;B=B+ia<<1;r[F+32>>2]=B;B=B+yb<<1;r[F+36>>2]=B;B=B+jb<<1;r[F+40>>2]=B;B=M+B<<1;r[F+44>>2]=B;B=B+H<<1;r[F+48>>2]=B;B=B+r[F+112>>2]<<1;r[F+52>>2]=B;eb=r[F+116>>2];B=eb+B<<1;r[F+56>>2]=B;var kb=r[F+120>>2];r[F+60>>2]=kb+B<<1;var Kb=r[F+124>>2];ya=0;r[u+8>>2]=0;r[u>>2]=0;r[u+4>>2]=0;T=512;B=0;a:{H=(1<<32-za(Kb+(kb+(eb+((M+H|0)+tb|0)|0)|0)|0))+(Kb?15:kb?14:eb?13:
tb?12:H?11:M?10:jb?9:yb?8:ia?7:ra?6:ca?5:R?4:ea?3:Ra)|0;if(M=(H<<1)+512|0){if(-257>=(H|0))break a;H=M<<1;B=d(H);r[u>>2]=B;M=B+H|0;r[u+8>>2]=M;f(B,0,H);r[u+4>>2]=M}M=r[D>>2];if((M|0)!=r[D+4>>2])for(;;){ea=J[M+ya|0];if(ea){H=(ea<<2)+F|0;R=r[H>>2];r[H>>2]=R+1;H=M=ca=0;if(4<=ea>>>0)for(Ra=ea&252,ia=0;ra=R>>>(M|2)<<1&2|(R>>>(M|1)&1|R>>>M<<1&2|H<<2)<<2,H=ra|R>>>(M|3)&1,M=M+4|0,ia=ia+4|0,(Ra|0)!=(ia|0););if(Ra=ea&3)for(;ra=H<<1,H=ra|R>>>M&1,M=M+1|0,ca=ca+1|0,(Ra|0)!=(ca|0););ia=ea|ya<<4;if(10>ea>>>0){M=
1<<9-ea;B=r[u>>2];if(8<=ea>>>0)for(ra=M&3,ca=0;M=M-1|0,na[((M<<ea|H)<<1)+B>>1]=ia,ca=ca+1|0,(ra|0)!=(ca|0););if(!(7<ea>>>0))for(;na[((M-1<<ea|H)<<1)+B>>1]=ia,na[((M-2<<ea|H)<<1)+B>>1]=ia,na[((M-3<<ea|H)<<1)+B>>1]=ia,M=M-4|0,na[((M<<ea|H)<<1)+B>>1]=ia,M;);}else{R=ra>>9;Ra=ea-10|0;ca=H&511;ea&1?(M=R,H=Ra):(H=(ca<<1)+B|0,ca=ha[H>>1],ca||(ca=0-T|0,na[H>>1]=ca,T=T+2|0),M=ra>>10,ca=(R&1)-(ca<<16>>16)|0,H=ea-11|0);if(Ra)for(;Ra=(ca<<1)+B|0,R=ha[Ra>>1],R||(R=0-T|0,na[Ra>>1]=R,T=T+2|0),ra=((M&1)-(R<<16>>16)<<
1)+B|0,R=ha[ra>>1],R||(R=0-T|0,na[ra>>1]=R,T=T+2|0),Ra=M>>>1|0,M>>=2,ca=(Ra&1)-(R<<16>>16)|0,R=1!=(H|0),H=H-2|0,R;);B=r[u>>2];na[B+(ca<<1)>>1]=ia}}ya=ya+1|0;M=r[D>>2];if(!(ya>>>0<r[D+4>>2]-M>>>0))break}wa=F+128|0;return}Za(1);BT();BT();BT()}
function m(u){b(u|0)}
function n(u,D,F){1==r[u+28>>2]|r[u+4>>2]!=(D|0)||(r[u+28>>2]=F)}
function p(u,D,F,B){Q[u+53|0]=1;a:if(r[u+4>>2]==(F|0)){Q[u+52|0]=1;F=r[u+16>>2];b:{if(!F){r[u+36>>2]=1;r[u+24>>2]=B;r[u+16>>2]=D;if(1!=(B|0))break a;if(1==r[u+48>>2])break b;break a}if((D|0)==(F|0)){F=r[u+24>>2];2==(F|0)&&(F=r[u+24>>2]=B);if(1!=r[u+48>>2])break a;if(1==(F|0))break b;break a}r[u+36>>2]+=1}Q[u+54|0]=1}}
function q(u,D,F){var B;(B=r[u+16>>2])?(D|0)==(B|0)?2==r[u+24>>2]&&(r[u+24>>2]=F):(Q[u+54|0]=1,r[u+24>>2]=2,r[u+36>>2]+=1):(r[u+36>>2]=1,r[u+24>>2]=F,r[u+16>>2]=D)}
function t(){}
function w(u,D){var F=u+D|0;var B=r[u+4>>2];a:{b:if(!(B&1)){if(!(B&3))break a;var M=r[u>>2];D=M+D|0;c:{u=u-M|0;if((u|0)!=r[597]){if(255>=M>>>0){var H=r[u+8>>2];B=r[u+12>>2];if((H|0)!=(B|0))break c;H=2368;B=r[592]&N(-2,M>>>3|0);r[H>>2]=B;break b}var R=r[u+24>>2];B=r[u+12>>2];d:if((B|0)!=(u|0))H=r[u+8>>2],r[H+12>>2]=B,r[B+8>>2]=H;else{M=u+20|0;H=r[M>>2];if(!H&&(M=u+16|0,H=r[M>>2],!H)){B=0;break d}for(;;){var T=M;B=H;M=B+20|0;H=r[M>>2];if(!H&&(M=B+16|0,H=r[B+16>>2],!H))break}r[T>>2]=0}if(!R)break b;
M=r[u+28>>2];H=(M<<2)+2672|0;d:{if(r[H>>2]==(u|0)){if(r[H>>2]=B)break d;H=2372;B=r[593]&N(-2,M);r[H>>2]=B;break b}r[R+(r[R+16>>2]==(u|0)?16:20)>>2]=B;if(!B)break b}r[B+24>>2]=R;if(H=r[u+16>>2])r[B+16>>2]=H,r[H+24>>2]=B;H=r[u+20>>2];if(!H)break b;r[B+20>>2]=H;r[H+24>>2]=B;break b}B=r[F+4>>2];if(3!=(B&3))break b;r[594]=D;r[F+4>>2]=B&-2;r[u+4>>2]=D|1;r[F>>2]=D;return}r[H+12>>2]=B;r[B+8>>2]=H}B=r[F+4>>2];b:{if(!(B&2)){if(r[598]==(F|0)){r[598]=u;D=r[595]+D|0;r[595]=D;r[u+4>>2]=D|1;if(r[597]!=(u|0))break a;
r[594]=0;r[597]=0;return}if(r[597]==(F|0)){r[597]=u;D=r[594]+D|0;r[594]=D;r[u+4>>2]=D|1;r[u+D>>2]=D;return}D=(B&-8)+D|0;c:if(255>=B>>>0)B=B>>>3|0,M=r[F+12>>2],H=r[F+8>>2],(M|0)==(H|0)?(H=2368,B=r[592]&N(-2,B),r[H>>2]=B):(r[H+12>>2]=M,r[M+8>>2]=H);else{R=r[F+24>>2];B=r[F+12>>2];d:if((F|0)!=(B|0))H=r[F+8>>2],r[H+12>>2]=B,r[B+8>>2]=H;else{H=F+20|0;M=r[H>>2];if(!M&&(H=F+16|0,M=r[H>>2],!M)){B=0;break d}for(;T=H,B=M,H=B+20|0,M=r[H>>2],M||(H=B+16|0,M=r[B+16>>2],M););r[T>>2]=0}if(R){M=r[F+28>>2];H=(M<<2)+
2672|0;d:{if(r[H>>2]==(F|0)){if(r[H>>2]=B)break d;H=2372;B=r[593]&N(-2,M);r[H>>2]=B;break c}r[R+(r[R+16>>2]==(F|0)?16:20)>>2]=B;if(!B)break c}r[B+24>>2]=R;if(H=r[F+16>>2])r[B+16>>2]=H,r[H+24>>2]=B;if(H=r[F+20>>2])r[B+20>>2]=H,r[H+24>>2]=B}}r[u+4>>2]=D|1;r[u+D>>2]=D;if(r[597]!=(u|0))break b;r[594]=D;return}r[F+4>>2]=B&-2;r[u+4>>2]=D|1;r[u+D>>2]=D}if(255>=D>>>0)B=(D&-8)+2408|0,H=r[592],D=1<<(D>>>3),H&D?D=r[B+8>>2]:(r[592]=D|H,D=B),r[B+8>>2]=u,r[D+12>>2]=u,r[u+12>>2]=B;else{M=31;16777215>=D>>>0&&(B=
za(D>>>8|0),M=((D>>>38-B&1)-(B<<1)|0)+62|0);r[u+28>>2]=M;r[u+16>>2]=0;r[u+20>>2]=0;T=(M<<2)+2672|0;b:{H=r[593];B=1<<M;if(H&B){M=D<<(31!=(M|0)?25-(M>>>1|0)|0:0);for(B=r[T>>2];;){H=B;if((r[B+4>>2]&-8)==(D|0))break b;B=M>>>29|0;M<<=1;T=H+(B&4)|0;B=r[T+16>>2];if(!B)break}r[T+16>>2]=u;r[u+24>>2]=H}else r[593]=B|H,r[T>>2]=u,r[u+24>>2]=T;r[u+12>>2]=u;r[u+8>>2]=u;return}D=r[H+8>>2];r[D+12>>2]=u;r[H+8>>2]=u;r[u+24>>2]=0;r[u+12>>2]=H}r[u+8>>2]=D}}
function z(u,D,F){var B,M,H;wa=B=wa-32|0;l(B+20|0,D);l(B+8|0,F);a:if(r[u+32>>2])var R=r[B+8>>2];else{R=r[B+8>>2];for(M=r[B+20>>2];;){var T=r[u+28>>2];b:if(15<=(T|0))var ea=r[u+24>>2];else{D=r[u+16>>2];F=r[u+4>>2];var ca=D>>>0>F>>>0?D:F;ea=r[u+24>>2];var ia=r[u>>2];for(F=T;;){if((D|0)!=(ca|0)){var ra=D+1|0;r[u+16>>2]=ra;D=J[D+ia|0];T=F+8|0;r[u+28>>2]=T;ea=D<<F|ea;r[u+24>>2]=ea;var ya=17>(F|0);F=T;D=ra;if(ya)continue;break b}break}14>=(F|0)&&(r[u+32>>2]=-2);T=F}F=na[((ea&511)<<1)+M>>1];if(0<=(F|0))ra=
F&15;else for(ra=9,D=ea>>>9&63;ra=ra+1|0,ca=D&1,D=D>>>1|0,F=na[(ca-F<<1)+M>>1],0>(F|0););ca=ea>>>ra|0;r[u+24>>2]=ca;D=T-ra|0;r[u+28>>2]=D;ra=F>>>4|0;b:{c:{if(4095>=F>>>0){D=r[u+20>>2];if(D>>>0<X[u+12>>2]){r[u+20>>2]=D+1;Q[D+r[u+8>>2]|0]=ra;break c}r[u+32>>2]=-3;break a}if(256==(ra|0))break a;var tb=ha[(ra<<1)+1470>>1];ia=20>ra-265>>>0?ra-261>>>2|0:0;if((ia|0)<=(D|0))ra=D;else{e:if(24<(D|0))ra=D;else for(F=r[u+16>>2],ra=r[u+4>>2],ea=F>>>0>ra>>>0?F:ra,ya=r[u>>2];;){if((F|0)==(ea|0)){ra=D;break e}T=
F+1|0;r[u+16>>2]=T;F=J[F+ya|0];ra=D+8|0;r[u+28>>2]=ra;ca|=F<<D;r[u+24>>2]=ca;var jb=17>(D|0);D=ra;F=T;if(!jb)break}(ra|0)>=(ia|0)||(r[u+32>>2]=-2)}ea=ca>>>ia|0;r[u+24>>2]=ea;D=ra-ia|0;r[u+28>>2]=D;d:{if(!(14<(D|0))){F=r[u+16>>2];ra=r[u+4>>2];ya=F>>>0>ra>>>0?F:ra;for(jb=r[u>>2];;){if((F|0)!=(ya|0)){ra=F+1|0;r[u+16>>2]=ra;F=J[F+jb|0];T=D+8|0;r[u+28>>2]=T;ea|=F<<D;r[u+24>>2]=ea;var yb=17>(D|0);D=T;F=ra;if(yb)continue;break d}break}14<(D|0)||(r[u+32>>2]=-2)}T=D}F=na[((ea&511)<<1)+R>>1];if(0<=(F|0))ra=
F&15;else for(ra=9,D=ea>>>9&63;ra=ra+1|0,ya=D&1,D=D>>>1|0,F=na[(ya-F<<1)+R>>1],0>(F|0););ea=ea>>>ra|0;r[u+24>>2]=ea;D=T-ra|0;r[u+28>>2]=D;jb=ha[(F>>>3&536870910)+2048>>1];ya=47<F>>>0?(F>>>5|0)-1|0:0;if((ya|0)<=(D|0))ra=D;else{e:if(24<(D|0))ra=D;else for(F=r[u+16>>2],ra=r[u+4>>2],yb=F>>>0>ra>>>0?F:ra,H=r[u>>2];;){if((F|0)==(yb|0)){ra=D;break e}T=F+1|0;r[u+16>>2]=T;F=J[F+H|0];ra=D+8|0;r[u+28>>2]=ra;ea|=F<<D;r[u+24>>2]=ea;var eb=17>(D|0);D=ra;F=T;if(!eb)break}(ra|0)>=(ya|0)||(r[u+32>>2]=-2)}r[u+24>>
2]=ea>>>ya;r[u+28>>2]=ra-ya;F=jb+((-1<<ya^-1)&ea)|0;if(0>(F|0))break b;D=r[u+20>>2];if(F>>>0>D>>>0)break b;ra=(-1<<ia^-1)&ca;T=ra+tb|0;if(X[u+12>>2]<T+D>>>0)break b;if(!(0>=(T|0))){if((ra-1|0)!=(0-tb|0))for(ea=T&-2,ra=0;ca=r[u+8>>2],Q[ca+D|0]=J[ca+(D-F|0)|0],D=r[u+20>>2]+1|0,r[u+20>>2]=D,ca=r[u+8>>2],Q[ca+D|0]=J[ca+(D-F|0)|0],D=r[u+20>>2]+1|0,r[u+20>>2]=D,ra=ra+2|0,(ea|0)!=(ra|0););T&1&&(ra=r[u+8>>2],Q[ra+D|0]=J[ra+(D-F|0)|0],r[u+20>>2]+=1)}}if(!r[u+32>>2])continue;break a}break}r[u+32>>2]=-6}R&&
b(R);(u=r[B+20>>2])&&b(u);wa=B+32|0}
function C(u){return u|0}
function G(u,D,F){var B,M;var H=r[F>>2]^r[D>>2];var R=r[F+4>>2]^r[D+4>>2];var T=r[F+12>>2]^r[D+12>>2];var ea=r[F+8>>2]^r[D+8>>2];F=ea<<8|R>>>24;var ca=ea<<16|R>>>16;var ia=ea<<24|R>>>8;var ra=(R&16777215)<<8|H>>>24;var ya=(R&65535)<<16|H>>>16;var tb=(R&255)<<24|H>>>8;var jb=T>>>24|0;var yb=T>>>16|0;var eb=T>>>8|0;var Ra=T;var kb=(T&16777215)<<8|ea>>>24;var Kb=(T&65535)<<16|ea>>>16;var xc=(T&255)<<24|ea>>>8;for(B=1;;){T=M=(B<<4)+D|0;var vd=r[T>>2];var ub=r[T+4>>2];T=N(J[(ya&255)+1034|0]<<24|(J[(Kb&
255)+1034|0]<<16|J[(ca&255)+1034|0]<<8|J[(yb&255)+1034|0]<<24)>>>8,24);ca=T>>>8|0;ya=J[(tb&255)+1034|0];tb=(J[(xc&255)+1034|0]<<16|J[(ia&255)+1034|0]<<8|J[(eb&255)+1034|0]<<24)>>>8|0;yb=ya<<24|tb;ia=yb>>>8|0;R=J[(R&255)+1034|0];eb=J[R+1546|0];var ac=N(J[(ra&255)+1034|0]<<24|(J[(kb&255)+1034|0]<<16|J[(F&255)+1034|0]<<8|J[jb+1034|0]<<24)>>>8,16);F=ac>>>8|0;ra=F&255;jb=ca&255;ra=(ca^ia^eb^J[ra+1290|0])<<24|((R^ia^J[jb+1290|0]^J[ra+1546|0])&255)<<16;ia&=255;F=ra|((R^F^J[ia+1290|0]^J[jb+1546|0])&255)<<
8|(F^ca^J[R+1290|0]^J[ia+1546|0])&255;eb=0;R=J[(H&255)+1034|0];H=ac&255;ca=T&255;ia=(T^tb^J[R+1546|0]^J[H+1290|0])<<24|((R^tb^J[ca+1290|0]^J[H+1546|0])&255)<<16;H=yb&255;H=(eb|ia|((ac^R^J[H+1290|0]^J[ca+1546|0])&255)<<8|(ac^T^J[H+1546|0]^J[R+1290|0])&255)^vd;R=F^=ub;jb=R>>>24|0;ca=T>>>16|0;ia=ca&255;ra=yb>>>16|0;tb=ra&255;T=T>>>24|0;F=J[(Ra&255)+1034|0];Ra=ac>>>24|0;F=(T^ya^J[F+1546|0]^J[Ra+1290|0])<<24|(F^ya^J[T+1290|0]^J[Ra+1546|0])<<16|(F^Ra^J[ya+1290|0]^J[T+1546|0])<<8|Ra^T^J[F+1290|0]^J[ya+1546|
0];ea=J[(ea&255)+1034|0];T=ac>>>16|0;Ra=T&255;ea=r[M+8>>2]^((ca^ra^J[ea+1546|0]^J[Ra+1290|0])<<24|((ea^ra^J[ia+1290|0]^J[Ra+1546|0])&255)<<16|((ea^T^J[tb+1290|0]^J[ia+1546|0])&255)<<8|(T^ca^J[ea+1290|0]^J[tb+1546|0])&255);T=F^r[M+12>>2];Ra=ea>>>24|0;F=M=ea<<8|jb;ca=ea<<16|R>>>16;ia=ea<<24|R>>>8;jb=T>>>24|0;yb=T>>>16|0;eb=T>>>8|0;ac=T;kb=Ra|(T&16777215)<<8;Kb=(T&65535)<<16|ea>>>16;Ra=T;xc=(T&255)<<24|ea>>>8;vd=T=R;ra=(T&16777215)<<8|H>>>24;ya=(T&65535)<<16|H>>>16;tb=(T&255)<<24|H>>>8;B=B+1|0;if(10==
(B|0))break}F=r[D+160>>2];R=r[D+164>>2];T=u;ub=r[D+168>>2];D=r[D+172>>2];B=N(J[(ra&255)+1034|0]<<24|(J[(kb&255)+1034|0]<<16|J[(M&255)+1034|0]<<8|J[jb+1034|0]<<24)>>>8,16);ya=N(J[(ya&255)+1034|0]<<24|(J[(Kb&255)+1034|0]<<16|J[(ca&255)+1034|0]<<8|J[(yb&255)+1034|0]<<24)>>>8,24);ca=J[(eb&255)+1034|0]<<24;ra=B<<8&-16777216|ya&16711680|J[(ea&255)+1034|0]|ca>>>16;D=(B&-16777216|ya>>>8&16711680|J[(ac&255)+1034|0]|J[((0|tb)&255)+1034|0]<<24>>>16)^D;r[T+8>>2]=ra^ub;ea=J[(xc&255)+1034|0]<<16;u=B<<16&-16777216|
ya<<8&16711680|J[(vd&255)+1034|0]|ea>>>8;r[T>>2]=(J[(H&255)+1034|0]|(ca|ea|J[(ia&255)+1034|0]<<8)&65280|ya<<16&16711680|B<<24)^F;r[T+12>>2]=D;r[T+4>>2]=u^R}
function O(u){return u?31-za(u-1^u)|0:32}
function N(u,D){var F=D&31;var B=(-1>>>F&u)<<F;F=u;u=0-D&31;return B|(F&-1<<u)>>>u}
function K(){return Z.byteLength/65536|0}
function W(u){u|=0;var D=K()|0;u=D+u|0;D<u&&65536>u&&(u=new ArrayBuffer(Da(u,65536)),(new Int8Array(u)).set(Q),Q=new Int8Array(u),na=new Int16Array(u),r=new Int32Array(u),J=new Uint8Array(u),ha=new Uint16Array(u),X=new Uint32Array(u),new Float32Array(u),new Float64Array(u),Z=u,CT=J);return D}
var Z=new ArrayBuffer(524288),Q=new Int8Array(Z),na=new Int16Array(Z),r=new Int32Array(Z),J=new Uint8Array(Z),ha=new Uint16Array(Z),X=new Uint32Array(Z);new Float32Array(Z);new Float64Array(Z);var Da=Math.imul,za=Math.clz32,Za=a.e9a.x8a,cb=a.env.T6a,wa=133952;CT=J;gMa(CT,1024,"AQIECBAgQIAbNmN8d3vya2/FMAFnK/7Xq3bKgsl9+llH8K3Uoq+cpHLAt/2TJjY/98w0peXxcdgxFQTHI8MYlgWaBxKA4usnsnUJgywaG25aoFI71rMp4y+EU9EA7SD8sVtqy745SkxYz9DvqvtDTTOFRfkCf1A8n6hRo0CPkp049by22iEQ//PSzQwT7F+XRBfEp349ZF0Zc2CBT9wiKpCIRu64FN5eC9vgMjoKSQYkXMLTrGKRleR558g3bY3VTqlsVvTqZXquCLp4JS4cprTG6N10H0u9i4pwPrVmSAP2DmE1V7mGwR2e4fiYEWnZjpSbHofpzlUo34yhiQ2/5kJoQZktD7BUuxYAAgQGCAoMDhASFBYYGhweICIkJigqLC4wMjQ2ODo8PkBCREZISkxOUFJUVlhaXF5gYmRmaGpsbnBydHZ4enx+gIKEhoiKjI6QkpSWmJqcnqCipKaoqqyusLK0tri6vL7AwsTGyMrMztDS1NbY2tze4OLk5ujq7O7w8vT2+Pr8/hsZHx0TERcVCwkPDQMBBwU7OT89MzE3NSspLy0jISclW1lfXVNRV1VLSU9NQ0FHRXt5f31zcXd1a2lvbWNhZ2WbmZ+dk5GXlYuJj42DgYeFu7m/vbOxt7Wrqa+to6GnpdvZ393T0dfVy8nPzcPBx8X7+f/98/H39evp7+3j4eflAAMGBQwPCgkYGx4dFBcSETAzNjU8Pzo5KCsuLSQnIiFgY2ZlbG9qaXh7fn10d3JxUFNWVVxfWllIS05NREdCQcDDxsXMz8rJ2Nve3dTX0tHw8/b1/P/6+ejr7u3k5+LhoKOmpayvqqm4u769tLeysZCTlpWcn5qZiIuOjYSHgoGbmJ2el5SRkoOAhYaPjImKq6itrqekoaKzsLW2v7y5uvv4/f739PHy4+Dl5u/s6erLyM3Ox8TBwtPQ1dbf3NnaW1hdXldUUVJDQEVGT0xJSmtobW5nZGFic3B1dn98eXo7OD0+NzQxMiMgJSYvLCkqCwgNDgcEAQITEBUWHxwZGgAAAAAAAJAHAAABAAAAAgAAAAMAAAAEAAAATjd5b3V0dWJlNHdhc202Y3J5cHRvMTJfR0xPQkFMX19OXzEyMUFFUzEyOENUUlN0cmVhbUNpcGhlckUATjd5b3V0dWJlNHdhc202Y3J5cHRvMTJTdHJlYW1DaXBoZXJFAAAAAKQIAABgBwAAzAgAACQHAACIBwAAAAAAABAREgAIBwkGCgULBAwDDQIOAQ8=");
gMa(CT,1984,"AwAEAAUABgAHAAgACQAKAAsADQAPABEAEwAXABsAHwAjACsAMwA7AEMAUwBjAHMAgwCjAMMA4wACAQAAAAAAAAEAAgADAAQABQAHAAkADQARABkAIQAxAEEAYQCBAMEAAQGBAQECAQMBBAEGAQgBDAEQARgBIAEwAUABYE4xMF9fY3h4YWJpdjExNl9fc2hpbV90eXBlX2luZm9FAAAAAMwIAAA8CAAAMAkAAE4xMF9fY3h4YWJpdjExN19fY2xhc3NfdHlwZV9pbmZvRQAAAMwIAABsCAAAYAgAAAAAAACQCAAABgAAAAcAAAAIAAAACQAAAAoAAAALAAAADAAAAA0AAAAAAAAAFAkAAAYAAAAOAAAACAAAAAkAAAAKAAAADwAAABAAAAARAAAATjEwX19jeHhhYml2MTIwX19zaV9jbGFzc190eXBlX2luZm9FAAAAAMwIAADsCAAAkAgAAFN0OXR5cGVfaW5mbwAAAACkCAAAIAk=");
gMa(CT,2360,"QAsC");var $a=fMa([null,function(u,D){u|=0;D|=0;var F=J[D+4|0]|J[D+5|0]<<8|J[D+6|0]<<16|J[D+7|0]<<24;var B=J[D|0]|J[D+1|0]<<8|J[D+2|0]<<16|J[D+3|0]<<24;Q[u+180|0]=B;Q[u+181|0]=B>>>8;Q[u+182|0]=B>>>16;Q[u+183|0]=B>>>24;Q[u+184|0]=F;Q[u+185|0]=F>>>8;Q[u+186|0]=F>>>16;Q[u+187|0]=F>>>24;F=J[D+12|0]|J[D+13|0]<<8|J[D+14|0]<<16|J[D+15|0]<<24;D=J[D+8|0]|J[D+9|0]<<8|J[D+10|0]<<16|J[D+11|0]<<24;Q[u+188|0]=D;Q[u+189|0]=D>>>8;Q[u+190|0]=D>>>16;Q[u+191|0]=D>>>24;Q[u+192|0]=F;Q[u+193|0]=F>>>8;Q[u+
194|0]=F>>>16;Q[u+195|0]=F>>>24;r[u+212>>2]=0},
function(u,D,F){u|=0;D|=0;F|=0;var B,M;wa=M=wa-16|0;a:if(F){var H=u+196|0;var R=u+180|0;var T=u+4|0;for(B=r[u+212>>2];;){b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(!B){G(M,T,R);B=r[M+12>>2];r[H+8>>2]=r[M+8>>2];r[H+12>>2]=B;B=r[M+4>>2];r[H>>2]=r[M>>2];r[H+4>>2]=B;r[u+212>>2]=16;B=J[u+195|0]+1|0;Q[u+195|0]=B;(B|0)!=(B&255)&&(B=J[u+194|0]+1|0,Q[u+194|0]=B,(B|0)!=(B&255)&&(B=J[u+193|0]+1|0,Q[u+193|0]=B,(B|0)!=(B&255)&&(B=J[u+192|0]+1|0,Q[u+192|0]=B,(B|0)!=(B&255)&&(B=J[u+191|0]+1|0,Q[u+191|0]=B,(B|0)!=(B&255)&&
(B=J[u+190|0]+1|0,Q[u+190|0]=B,(B|0)!=(B&255)&&(B=J[u+189|0]+1|0,Q[u+189|0]=B,(B|0)!=(B&255)&&(B=J[u+188|0]+1|0,Q[u+188|0]=B,(B|0)!=(B&255)&&(B=J[u+187|0]+1|0,Q[u+187|0]=B,(B|0)!=(B&255)&&(B=J[u+186|0]+1|0,Q[u+186|0]=B,(B|0)!=(B&255)&&(B=J[u+185|0]+1|0,Q[u+185|0]=B,(B|0)!=(B&255)&&(B=J[u+184|0]+1|0,Q[u+184|0]=B,(B|0)!=(B&255)&&(B=J[u+183|0]+1|0,Q[u+183|0]=B,(B|0)!=(B&255)&&(B=J[u+182|0]+1|0,Q[u+182|0]=B,(B|0)!=(B&255)&&(B=J[u+181|0]+1|0,Q[u+181|0]=B,(B|0)!=(B&255)&&(Q[R|0]=J[R|0]+1)))))))))))))));
B=16;if(16<=F>>>0)break k;break j}if(16>F>>>0)break j;if(16>B>>>0)break i}B=H-B|0;var ea=J[B+24|0]|J[B+25|0]<<8|J[B+26|0]<<16|J[B+27|0]<<24;var ca=J[B+28|0]|J[B+29|0]<<8|J[B+30|0]<<16|J[B+31|0]<<24;var ia=(J[B+20|0]|J[B+21|0]<<8|J[B+22|0]<<16|J[B+23|0]<<24)^(J[D+4|0]|J[D+5|0]<<8|J[D+6|0]<<16|J[D+7|0]<<24);B=(J[B+16|0]|J[B+17|0]<<8|J[B+18|0]<<16|J[B+19|0]<<24)^(J[D|0]|J[D+1|0]<<8|J[D+2|0]<<16|J[D+3|0]<<24);Q[D|0]=B;Q[D+1|0]=B>>>8;Q[D+2|0]=B>>>16;Q[D+3|0]=B>>>24;Q[D+4|0]=ia;Q[D+5|0]=ia>>>8;Q[D+6|0]=
ia>>>16;Q[D+7|0]=ia>>>24;ia=(J[D+12|0]|J[D+13|0]<<8|J[D+14|0]<<16|J[D+15|0]<<24)^ca;B=D+8|0;ea^=J[D+8|0]|J[D+9|0]<<8|J[D+10|0]<<16|J[D+11|0]<<24;Q[B|0]=ea;Q[B+1|0]=ea>>>8;Q[B+2|0]=ea>>>16;Q[B+3|0]=ea>>>24;Q[B+4|0]=ia;Q[B+5|0]=ia>>>8;Q[B+6|0]=ia>>>16;Q[B+7|0]=ia>>>24;B=r[u+212>>2]-16|0;r[u+212>>2]=B;F=F-16|0;D=D+16|0;break b}if(8>F>>>0)break h}if(8>B>>>0)break g;B=H-B|0;ia=J[B+16|0]|J[B+17|0]<<8|J[B+18|0]<<16|J[B+19|0]<<24;B=(J[B+20|0]|J[B+21|0]<<8|J[B+22|0]<<16|J[B+23|0]<<24)^(J[D+4|0]|J[D+5|0]<<
8|J[D+6|0]<<16|J[D+7|0]<<24);ia^=J[D|0]|J[D+1|0]<<8|J[D+2|0]<<16|J[D+3|0]<<24;Q[D|0]=ia;Q[D+1|0]=ia>>>8;Q[D+2|0]=ia>>>16;Q[D+3|0]=ia>>>24;Q[D+4|0]=B;Q[D+5|0]=B>>>8;Q[D+6|0]=B>>>16;Q[D+7|0]=B>>>24;B=r[u+212>>2]-8|0;r[u+212>>2]=B;F=F-8|0;D=D+8|0}if(4>F>>>0)break f}if(4>B>>>0)break e;B=H-B|0;B=(J[B+16|0]|J[B+17|0]<<8|J[B+18|0]<<16|J[B+19|0]<<24)^(J[D|0]|J[D+1|0]<<8|J[D+2|0]<<16|J[D+3|0]<<24);Q[D|0]=B;Q[D+1|0]=B>>>8;Q[D+2|0]=B>>>16;Q[D+3|0]=B>>>24;B=r[u+212>>2]-4|0;r[u+212>>2]=B;F=F-4|0;D=D+4|0}if(2>
F>>>0)break d}if(2>B>>>0)break c;B=H-B|0;B=(J[B+16|0]|J[B+17|0]<<8)^(J[D|0]|J[D+1|0]<<8);Q[D|0]=B;Q[D+1|0]=B>>>8;B=r[u+212>>2]-2|0;r[u+212>>2]=B;F=F-2|0;D=D+2|0}if(!F)break a}B?(Q[D|0]=J[(H-B|0)+16|0]^J[D|0],B=r[u+212>>2]-1|0,r[u+212>>2]=B,F=F-1|0,D=D+1|0):B=0}if(!F)break}}wa=M+16|0},
C,m,function(){},
C,m,t,t,function(u,D,F){u|=0;D|=0;F|=0;var B;wa=B=wa+-64|0;var M=1;if(!c(u,D,0)&&(M=0,D)){wa=M=wa+-64|0;var H=r[D>>2];var R=r[H-4>>2];H=r[H-8>>2];r[M+32>>2]=0;r[M+36>>2]=0;r[M+40>>2]=0;r[M+44>>2]=0;r[M+48>>2]=0;r[M+52>>2]=0;Q[M+55|0]=0;Q[M+56|0]=0;Q[M+57|0]=0;Q[M+58|0]=0;Q[M+59|0]=0;Q[M+60|0]=0;Q[M+61|0]=0;Q[M+62|0]=0;r[M+24>>2]=0;r[M+28>>2]=0;r[M+20>>2]=0;r[M+16>>2]=2144;r[M+12>>2]=D;r[M+8>>2]=2192;H=D+H|0;D=0;b:if(c(R,2192,0))r[M+56>>2]=1,$a[r[r[R>>2]+20>>2]](R,M+8|0,H,H,1,0),D=1==r[M+32>>2]?H:
0;else{$a[r[r[R>>2]+24>>2]](R,M+8|0,H,1,0);c:switch(r[M+44>>2]){case 0:D=1==r[M+48>>2]?1==r[M+36>>2]?1==r[M+40>>2]?r[M+28>>2]:0:0:0;break b;case 1:break c;default:break b}1!=r[M+32>>2]&&r[M+48>>2]|1!=r[M+36>>2]|1!=r[M+40>>2]||(D=r[M+24>>2])}wa=M- -64|0;M=0;D&&(f(B+12|0,0,52),r[B+56>>2]=1,r[B+20>>2]=-1,r[B+16>>2]=u,r[B+8>>2]=D,$a[r[r[D>>2]+28>>2]](D,B+8|0,r[F>>2],1),u=r[B+32>>2],1==(u|0)&&(r[F>>2]=r[B+24>>2]),M=1==(u|0))}wa=B- -64|0;return M|0},
function(u,D,F,B,M,H){D|=0;F|=0;B|=0;M|=0;c(u|0,r[D+8>>2],H|0)&&p(D,F,B,M)},
function(u,D,F,B,M){u|=0;D|=0;F|=0;B|=0;M|=0;c(u,r[D+8>>2],M)?n(D,F,B):c(u,r[D>>2],M)&&(r[D+16>>2]!=(F|0)&r[D+20>>2]!=(F|0)?(r[D+20>>2]=F,r[D+32>>2]=B,r[D+40>>2]+=1,1!=r[D+36>>2]|2!=r[D+24>>2]||(Q[D+54|0]=1),r[D+44>>2]=4):1==(B|0)&&(r[D+32>>2]=1))},
function(u,D,F,B){D|=0;F|=0;B|=0;c(u|0,r[D+8>>2],0)&&q(D,F,B)},
m,function(u,D,F,B,M,H){u|=0;D|=0;F|=0;B|=0;M|=0;H|=0;c(u,r[D+8>>2],H)?p(D,F,B,M):(u=r[u+8>>2],$a[r[r[u>>2]+20>>2]](u,D,F,B,M,H))},
function(u,D,F,B,M){u|=0;D|=0;F|=0;B|=0;M|=0;if(c(u,r[D+8>>2],M))n(D,F,B);else a:if(c(u,r[D>>2],M))if(r[D+16>>2]!=(F|0)&r[D+20>>2]!=(F|0)){r[D+32>>2]=B;b:if(4!=r[D+44>>2]){na[D+52>>1]=0;u=r[u+8>>2];$a[r[r[u>>2]+20>>2]](u,D,F,F,1,M);if(J[D+53|0]){r[D+44>>2]=3;if(!J[D+52|0])break b;break a}r[D+44>>2]=4}r[D+20>>2]=F;r[D+40>>2]+=1;1!=r[D+36>>2]|2!=r[D+24>>2]||(Q[D+54|0]=1)}else 1==(B|0)&&(r[D+32>>2]=1);else u=r[u+8>>2],$a[r[r[u>>2]+24>>2]](u,D,F,B,M)},
function(u,D,F,B){u|=0;D|=0;F|=0;B|=0;c(u,r[D+8>>2],0)?q(D,F,B):(u=r[u+8>>2],$a[r[r[u>>2]+28>>2]](u,D,F,B))}]);
return{memory:Object.create(Object.prototype,{grow:{value:W},buffer:{get:function(){return Z}}}),
add:function(u,D){return(u|0)+(D|0)|0},
getInflatedSize:function(u,D){u|=0;var F=0;J[u+3|0]|31!=J[u|0]|139!=J[u+1|0]||(u=(u+(D|0)|0)-4|0,F=J[u|0]|J[u+1|0]<<8|J[u+2|0]<<16|J[u+3|0]<<24);return F|0},
inflateGzip:function(u,D,F){u|=0;D|=0;var B,M=0,H;wa=B=wa-96|0;r[B+20>>2]=F|0;r[B+16>>2]=D;r[B+12>>2]=u;F=0;31==J[u|0]&&(F=0,139==J[u+1|0]&&(F=0,J[u+3|0]||(u=(u+D|0)-4|0,F=J[u|0]|J[u+1|0]<<8|J[u+2|0]<<16|J[u+3|0]<<24)));r[B+40>>2]=0;r[B+44>>2]=0;r[B+32>>2]=0;r[B+36>>2]=0;r[B+28>>2]=10;for(r[B+24>>2]=F;;){a:if(0<(M|0))var R=r[B+36>>2];else{var T=r[B+28>>2];u=r[B+16>>2];F=u>>>0<T>>>0?T:u;R=r[B+36>>2];var ea=r[B+12>>2];for(u=M;;){if((F|0)!=(T|0)){D=T+1|0;r[B+28>>2]=D;T=J[T+ea|0];M=u+8|0;r[B+40>>2]=M;
R=T<<u|R;r[B+36>>2]=R;var ca=17>(u|0);u=M;T=D;if(ca)continue;break a}break}0>=(u|0)&&(r[B+44>>2]=-2);M=u}D=R>>>1|0;r[B+36>>2]=D;T=M-1|0;r[B+40>>2]=T;a:{if(!(2<(M|0))){u=r[B+28>>2];F=r[B+16>>2];ea=u>>>0>F>>>0?u:F;for(ca=r[B+12>>2];;){if((u|0)!=(ea|0)){F=u+1|0;r[B+28>>2]=F;u=J[u+ca|0];M=T+8|0;r[B+40>>2]=M;D|=u<<T;r[B+36>>2]=D;var ia=17>(T|0);T=M;u=F;if(ia)continue;break a}break}1<(T|0)||(r[B+44>>2]=-2)}M=T}ea=D>>>2|0;r[B+36>>2]=ea;T=M-2|0;r[B+40>>2]=T;a:{switch(D&3){case 2:c:{if(!(6<(M|0))){u=r[B+28>>
2];D=r[B+16>>2];F=u>>>0>D>>>0?u:D;for(ca=r[B+12>>2];;){if((u|0)!=(F|0)){D=u+1|0;r[B+28>>2]=D;u=J[u+ca|0];M=T+8|0;r[B+40>>2]=M;ea|=u<<T;r[B+36>>2]=ea;ia=17>(T|0);T=M;u=D;if(ia)continue;break c}break}4<(T|0)||(r[B+44>>2]=-2)}M=T}D=ea>>>5|0;r[B+36>>2]=D;T=M-5|0;r[B+40>>2]=T;c:{if(!(9<(M|0))){u=r[B+28>>2];F=r[B+16>>2];ca=u>>>0>F>>>0?u:F;for(ia=r[B+12>>2];;){if((u|0)!=(ca|0)){M=u+1|0;r[B+28>>2]=M;u=J[u+ia|0];F=T+8|0;r[B+40>>2]=F;D|=u<<T;r[B+36>>2]=D;var ra=17>(T|0);T=F;u=M;if(ra)continue;break c}break}4<
(T|0)||(r[B+44>>2]=-2)}F=T}ca=ea&31;M=D>>>5|0;r[B+36>>2]=M;T=F-5|0;r[B+40>>2]=T;var ya=D&31;c:if(9<=(F|0)){ea=r[B+28>>2];ia=r[B+12>>2];var tb=r[B+16>>2]}else{u=r[B+28>>2];tb=r[B+16>>2];ea=u>>>0>tb>>>0?u:tb;ia=r[B+12>>2];d:{for(;;){if((u|0)==(ea|0))break d;D=u+1|0;r[B+28>>2]=D;F=J[u+ia|0];u=T+8|0;r[B+40>>2]=u;M|=F<<T;r[B+36>>2]=M;F=17>(T|0);T=u;u=D;if(!F)break}ea=u;break c}3<(T|0)||(r[B+44>>2]=-2)}var jb=ca+257|0;var yb=ya+1|0;D=M>>>4|0;r[B+36>>2]=D;T=T-4|0;r[B+40>>2]=T;var eb=d(19);r[B+84>>2]=eb;
F=eb+19|0;r[B+92>>2]=F;u=0;Q[eb+15|0]=0;Q[eb+16|0]=0;Q[eb+17|0]=0;Q[eb+18|0]=0;Q[eb+8|0]=0;Q[eb+9|0]=0;Q[eb+10|0]=0;Q[eb+11|0]=0;Q[eb+12|0]=0;Q[eb+13|0]=0;Q[eb+14|0]=0;Q[eb+15|0]=0;Q[eb|0]=0;Q[eb+1|0]=0;Q[eb+2|0]=0;Q[eb+3|0]=0;Q[eb+4|0]=0;Q[eb+5|0]=0;Q[eb+6|0]=0;Q[eb+7|0]=0;r[B+88>>2]=F;for(H=(M&15)+3|0;;){ca=u;c:{if(2<(T|0))M=D;else{ra=ea>>>0>tb>>>0?ea:tb;u=ea;for(M=D;;){if((u|0)!=(ra|0)){ea=u+1|0;r[B+28>>2]=ea;u=J[u+ia|0];F=T+8|0;r[B+40>>2]=F;M|=u<<T;r[B+36>>2]=M;D=17>(T|0);u=ea;T=F;if(D)continue;
break c}break}2>=(T|0)&&(r[B+44>>2]=-2);ea=ra}F=T}D=M>>>3|0;r[B+36>>2]=D;T=F-3|0;r[B+40>>2]=T;Q[J[ca+1952|0]+eb|0]=M&7;u=ca+1|0;if((ca|0)==(H|0))break}l(B+72|0,B+84|0);u=d(jb);r[B+60>>2]=u;D=u+jb|0;r[B+68>>2]=D;T=0;var Ra=f(u,0,jb);r[B+64>>2]=D;u=d(yb);r[B+48>>2]=u;D=u+yb|0;r[B+56>>2]=D;var kb=f(u,0,yb);r[B+52>>2]=D;var Kb=yb+jb|0;D=r[B+28>>2];yb=r[B+12>>2];tb=r[B+16>>2];ca=r[B+36>>2];ea=r[B+40>>2];H=r[B+72>>2];for(ra=0;;){c:{if(14>=(ea|0)){F=D>>>0>tb>>>0?D:tb;for(u=D;;){if((u|0)!=(F|0)){D=u+1|0;
r[B+28>>2]=D;u=J[u+yb|0];ia=ea+8|0;r[B+40>>2]=ia;ca=u<<ea|ca;r[B+36>>2]=ca;M=17>(ea|0);u=D;ea=ia;if(M)continue;break c}break}14>=(ea|0)&&(r[B+44>>2]=-2);D=F}ia=ea}F=na[H+((ca&511)<<1)>>1];if(0<=(F|0))M=F&15;else for(M=9,u=ca>>>9&63;M=M+1|0,ea=u&1,u=u>>>1|0,F=na[H+(ea-F<<1)>>1],0>(F|0););ca=ca>>>M|0;r[B+36>>2]=ca;ea=ia-M|0;r[B+40>>2]=ea;u=1;c:{d:{e:{f:{g:switch(F=F>>>4|0,F-16|0){case 2:break e;case 1:break f;case 0:break g;default:break c}g:{if(1<(ea|0))M=ca;else{ia=D>>>0>tb>>>0?D:tb;u=D;for(M=ca;;){if((u|
0)!=(ia|0)){D=u+1|0;r[B+28>>2]=D;u=J[u+yb|0];F=ea+8|0;r[B+40>>2]=F;M|=u<<ea;r[B+36>>2]=M;ca=17>(ea|0);u=D;ea=F;if(ca)continue;break g}break}1>=(ea|0)&&(r[B+44>>2]=-2);D=ia}F=ea}ca=M>>>2|0;r[B+36>>2]=ca;ea=F-2|0;r[B+40>>2]=ea;u=(M&3)+3|0;F=ra;break c}f:{if(2<(ea|0))M=ca;else{ia=D>>>0>tb>>>0?D:tb;u=D;for(M=ca;;){if((u|0)!=(ia|0)){D=u+1|0;r[B+28>>2]=D;u=J[u+yb|0];F=ea+8|0;r[B+40>>2]=F;M|=u<<ea;r[B+36>>2]=M;ca=17>(ea|0);u=D;ea=F;if(ca)continue;break f}break}2>=(ea|0)&&(r[B+44>>2]=-2);D=ia}F=ea}ca=M>>>
3|0;r[B+36>>2]=ca;ea=F-3|0;r[B+40>>2]=ea;u=(M&7)+3|0;break d}e:{if(6<(ea|0))M=ca;else{ia=D>>>0>tb>>>0?D:tb;u=D;for(M=ca;;){if((u|0)!=(ia|0)){D=u+1|0;r[B+28>>2]=D;u=J[u+yb|0];F=ea+8|0;r[B+40>>2]=F;M|=u<<ea;r[B+36>>2]=M;ca=17>(ea|0);u=D;ea=F;if(ca)continue;break e}break}6>=(ea|0)&&(r[B+44>>2]=-2);D=ia}F=ea}ca=M>>>7|0;r[B+36>>2]=ca;ea=F-7|0;r[B+40>>2]=ea;u=(M&127)+11|0}F=0}c:{for(;;){d:{if((T|0)<(jb|0)){if(T>>>0>=jb>>>0)break d;M=T+Ra|0}else{M=T-jb|0;if(M>>>0>ya>>>0)break d;M=M+kb|0}Q[M|0]=F;T=T+1|0;
if(u=u-1|0)continue;break c}break}Za(1);BT();BT();BT()}ra=F;if(!((T|0)<(Kb|0)))break}z(B+12|0,B+60|0,B+48|0);b(kb);b(Ra);H&&b(H);b(eb);break a;default:r[B+44>>2]=-4;break a;case 0:u=T&-8;r[B+40>>2]=u;ea=ea>>>(T&7)|0;r[B+36>>2]=ea;c:{d:{e:{if(15<(u|0))M=u;else for(D=r[B+28>>2],ia=r[B+16>>2],T=D>>>0>ia>>>0?D:ia,ca=r[B+12>>2];;){if((D|0)==(T|0))break e;F=D+1|0;r[B+28>>2]=F;D=J[D+ca|0];M=u+8|0;r[B+40>>2]=M;ea|=D<<u;r[B+36>>2]=ea;ra=17>(u|0);u=M;D=F;if(!ra)break}D=ea>>>16|0;r[B+36>>2]=D;u=M-16|0;r[B+40>>
2]=u;F=ea&65535;if(31<M>>>0)break c;ca=r[B+12>>2];ia=r[B+16>>2];T=r[B+28>>2];break d}15>=(u|0)&&(r[B+44>>2]=-2);D=ea>>>16|0;r[B+36>>2]=D;u=u-16|0;r[B+40>>2]=u;F=ea&65535}ia=T>>>0>ia>>>0?T:ia;d:{for(;;){if((T|0)==(ia|0))break d;M=T+1|0;r[B+28>>2]=M;ra=J[T+ca|0];T=u+8|0;r[B+40>>2]=T;D|=ra<<u;r[B+36>>2]=D;ra=17>(u|0);u=T;T=M;if(!ra)break}break c}15<(u|0)||(r[B+44>>2]=-2)}r[B+36>>2]=D>>>16;u=u-16|0;r[B+40>>2]=u;if(65535!=((D^ea)&65535)){r[B+44>>2]=-5;break a}D=r[B+28>>2];if(X[B+16>>2]<D+F>>>0){r[B+44>>
2]=-2;break a}r[B+36>>2]=0;r[B+40>>2]=0;u=D+((u|0)/-8|0)|0;r[B+28>>2]=u;if(F){T=0;if(1!=(F|0))for(D=F&65534,u=0;Q[r[B+20>>2]+(r[B+32>>2]+T|0)|0]=J[r[B+12>>2]+(r[B+28>>2]+T|0)|0],M=T|1,Q[r[B+20>>2]+(M+r[B+32>>2]|0)|0]=J[r[B+12>>2]+(M+r[B+28>>2]|0)|0],T=T+2|0,u=u+2|0,(D|0)!=(u|0););F&1&&(Q[r[B+20>>2]+(r[B+32>>2]+T|0)|0]=J[r[B+12>>2]+(r[B+28>>2]+T|0)|0]);u=r[B+28>>2]}r[B+28>>2]=u+F;r[B+32>>2]+=F;break a;case 1:}u=d(288);r[B+84>>2]=u;F=u+288|0;r[B+92>>2]=F;D=f(u,8,288);r[B+88>>2]=F;for(T=144;Q[D+T|0]=
256>T>>>0?9:7,Q[D+(T|1)|0]=255>T>>>0?9:7,Q[D+(T|2)|0]=254>T>>>0?9:7,Q[D+(T|3)|0]=253>T>>>0?9:7,T=T+4|0,280!=(T|0););u=d(32);r[B+72>>2]=u;F=u+32|0;r[B+80>>2]=F;Q[u+24|0]=5;Q[u+25|0]=5;Q[u+26|0]=5;Q[u+27|0]=5;Q[u+28|0]=5;Q[u+29|0]=5;Q[u+30|0]=5;Q[u+31|0]=5;Q[u+16|0]=5;Q[u+17|0]=5;Q[u+18|0]=5;Q[u+19|0]=5;Q[u+20|0]=5;Q[u+21|0]=5;Q[u+22|0]=5;Q[u+23|0]=5;Q[u+8|0]=5;Q[u+9|0]=5;Q[u+10|0]=5;Q[u+11|0]=5;Q[u+12|0]=5;Q[u+13|0]=5;Q[u+14|0]=5;Q[u+15|0]=5;Q[u|0]=5;Q[u+1|0]=5;Q[u+2|0]=5;Q[u+3|0]=5;Q[u+4|0]=5;Q[u+
5|0]=5;Q[u+6|0]=5;Q[u+7|0]=5;r[B+76>>2]=F;z(B+12|0,B+84|0,B+72|0);b(u);b(D)}u=r[B+44>>2];if(u|R&1)break;else M=r[B+40>>2]}wa=B+96|0;return u|0},
testOnlyExpandKey:function(u,D){u|=0;D|=0;var F=r[u+12>>2];r[D+8>>2]=r[u+8>>2];r[D+12>>2]=F;F=r[u+4>>2];r[D>>2]=r[u>>2];r[D+4>>2]=F;F=r[D+12>>2];for(u=4;;){var B=(u<<2)+D|0;if(!(u&3)){var M=J[(u>>>2|0)+1023|0];F=N(F,24);F=M^(J[(F>>>8&255)+1034|0]<<8|J[(F&255)+1034|0]|J[(F>>>16&255)+1034|0]<<16|J[(F>>>24|0)+1034|0]<<24)}F=r[B-16>>2]^F;r[B>>2]=F;u=u+1|0;if(44==(u|0))break}},
testOnlyAes128CipherBlock:function(u,D,F){u|=0;D|=0;F|=0;var B;wa=B=wa-176|0;var M=r[u+12>>2];r[B+8>>2]=r[u+8>>2];r[B+12>>2]=M;M=r[u+4>>2];r[B>>2]=r[u>>2];r[B+4>>2]=M;u=4;for(M=r[B+12>>2];;){var H=(u<<2)+B|0;if(!(u&3)){var R=J[(u>>>2|0)+1023|0];M=N(M,24);M=R^(J[(M>>>8&255)+1034|0]<<8|J[(M&255)+1034|0]|J[(M>>>16&255)+1034|0]<<16|J[(M>>>24|0)+1034|0]<<24)}M=r[H-16>>2]^M;r[H>>2]=M;u=u+1|0;if(44==(u|0))break}G(F,B,D);wa=B+176|0},
AES128CTRCipher_create:function(u){u|=0;var D=d(216);r[D>>2]=1812;var F=J[u+12|0]|J[u+13|0]<<8|J[u+14|0]<<16|J[u+15|0]<<24;var B=J[u+8|0]|J[u+9|0]<<8|J[u+10|0]<<16|J[u+11|0]<<24;Q[D+12|0]=B;Q[D+13|0]=B>>>8;Q[D+14|0]=B>>>16;Q[D+15|0]=B>>>24;Q[D+16|0]=F;Q[D+17|0]=F>>>8;Q[D+18|0]=F>>>16;Q[D+19|0]=F>>>24;F=J[u+4|0]|J[u+5|0]<<8|J[u+6|0]<<16|J[u+7|0]<<24;u=J[u|0]|J[u+1|0]<<8|J[u+2|0]<<16|J[u+3|0]<<24;Q[D+4|0]=u;Q[D+5|0]=u>>>8;Q[D+6|0]=u>>>16;Q[D+7|0]=u>>>24;Q[D+8|0]=F;Q[D+9|0]=F>>>8;Q[D+10|0]=F>>>16;Q[D+
11|0]=F>>>24;u=4;B=D+4|0;for(F=r[D+16>>2];;){var M=(u<<2)+B|0;if(!(u&3)){var H=J[(u>>>2|0)+1023|0];F=N(F,24);F=H^(J[(F>>>8&255)+1034|0]<<8|J[(F&255)+1034|0]|J[(F>>>16&255)+1034|0]<<16|J[(F>>>24|0)+1034|0]<<24)}F=r[M-16>>2]^F;r[M>>2]=F;u=u+1|0;if(44==(u|0))break}r[D+180>>2]=0;r[D+184>>2]=0;r[D+212>>2]=0;r[D+188>>2]=0;r[D+192>>2]=0;return D|0},
AES128CTRCipher_release:function(u){if(u|=0)$a[r[r[u>>2]+12>>2]](u)},
AES128CTRCipher_setCounter:function(u,D){u|=0;$a[r[r[u>>2]>>2]](u,D|0)},
AES128CTRCipher_encrypt:function(u,D,F){u|=0;$a[r[r[u>>2]+4>>2]](u,D|0,F|0)},
__indirect_function_table:$a,_start:function(){Za(0);BT();BT()},
malloc:h,free:b,realloc:function(u,D){u|=0;D|=0;var F=0,B=0;if(!u)return h(D)|0;if(4294967232<=D>>>0)return r[591]=48,0;var M=11>D>>>0?16:D+11&-8;var H=u-8|0;var R=r[H+4>>2];var T=R&-8;a:if(R&3){var ea=T+H|0;if(T>>>0>=M>>>0)T=T-M|0,16>T>>>0||(r[H+4>>2]=R&1|M|2,F=H+M|0,r[F+4>>2]=T|3,r[ea+4>>2]|=1,w(F,T));else if(r[598]==(ea|0)){B=T+r[595]|0;if(B>>>0<=M>>>0)break a;r[H+4>>2]=R&1|M|2;T=H+M|0;F=B-M|0;r[T+4>>2]=F|1;r[595]=F;r[598]=T}else if(r[597]==(ea|0)){T=T+r[594]|0;if(T>>>0<M>>>0)break a;F=T-M|0;16<=
F>>>0?(r[H+4>>2]=R&1|M|2,B=H+M|0,r[B+4>>2]=F|1,T=T+H|0,r[T>>2]=F,r[T+4>>2]&=-2):(r[H+4>>2]=T|R&1|2,F=T+H|0,r[F+4>>2]|=1,F=0);r[597]=B;r[594]=F}else{B=r[ea+4>>2];if(B&2)break a;var ca=T+(B&-8)|0;if(ca>>>0<M>>>0)break a;var ia=ca-M|0;c:if(255>=B>>>0)T=r[ea+12>>2],F=r[ea+8>>2],(T|0)==(F|0)?(F=2368,T=r[592]&N(-2,B>>>3|0),r[F>>2]=T):(r[F+12>>2]=T,r[T+8>>2]=F);else{var ra=r[ea+24>>2];var ya=r[ea+12>>2];d:if((ya|0)!=(ea|0))F=r[ea+8>>2],r[F+12>>2]=ya,r[ya+8>>2]=F;else{B=ea+20|0;F=r[B>>2];if(!F&&(B=ea+16|
0,F=r[B>>2],!F)){ya=0;break d}for(;T=B,ya=F,B=F+20|0,F=r[B>>2],F||(B=ya+16|0,F=r[ya+16>>2],F););r[T>>2]=0}if(ra){T=r[ea+28>>2];F=(T<<2)+2672|0;d:{if(r[F>>2]==(ea|0)){if(r[F>>2]=ya)break d;F=2372;T=r[593]&N(-2,T);r[F>>2]=T;break c}r[(r[ra+16>>2]==(ea|0)?16:20)+ra>>2]=ya;if(!ya)break c}r[ya+24>>2]=ra;if(F=r[ea+16>>2])r[ya+16>>2]=F,r[F+24>>2]=ya;if(F=r[ea+20>>2])r[ya+20>>2]=F,r[F+24>>2]=ya}}15>=ia>>>0?(r[H+4>>2]=R&1|ca|2,F=H+ca|0,r[F+4>>2]|=1):(r[H+4>>2]=R&1|M|2,T=H+M|0,r[T+4>>2]=ia|3,F=H+ca|0,r[F+4>>
2]|=1,w(T,ia))}F=H}else if(!(256>M>>>0)){if(T>>>0>=M+4>>>0&&(F=H,T-M>>>0<=r[712]<<1>>>0))break a;F=0}if(F)return F+8|0;F=h(D);if(!F)return 0;T=F;H=u;B=r[H-4>>2];B=(B&3?-4:-8)+(B&-8)|0;if(D=D>>>0>B>>>0?B:D)for(;Q[T|0]=J[H|0],T=T+1|0,H=H+1|0,D=D-1|0,D;);b(u);return F|0}}};
jMa=function(){this.j=iMa(this)};
iMa=function(a){return{env:{emscripten_notify_memory_growth:function(){}},
wasi_snapshot_preview1:{proc_exit:function(){},
fd_write:function(b,c,d){b=new DataView(a.exports.memory.buffer);for(var e="",f=0,h=0;h<d;h++){var l=b.getUint32(c,!0),m=b.getUint32(c+4,!0);f+=m;e+=g.TF(new Uint8Array(a.exports.memory.buffer,l,m));c+=8}console.log(e);return f}}}};
mMa=function(a,b){b=void 0===b?!1:b;var c=void 0===c?!1:c;var d,e;return g.A(function(f){if(1==f.j)return d=new jMa,b&&(c||kMa&&!lMa)?(d.exports=hMa(d.j),f.Ka(2)):lMa?g.y(f,WebAssembly.instantiateStreaming(fetch(a),d.j),4):f.Ka(2);2!=f.j&&(e=f.u,d.module=e.module,d.instance=e.instance,d.exports=d.instance.exports);return f.return(d)})};
nMa=function(a,b){g.E.call(this);this.F=a;this.C=b;this.nF={};this.j={};this.u=null;this.D=this.F.K("web_player_defer_modules");this.B=new Set;this.df=new Map};
g.DT=function(a){return a.df.get("captions")};
tMa=function(a,b){switch(b){case "ad":return oMa(a);case "annotations_module":return a.isShortsModeEnabled()?a=!1:(b=a.F,a=b.T(),b=b.getVideoData(),a=a.B||b.RS||"3"===a.controlsType?!1:a.Aa.isEmpty()&&"annotation-editor"!==a.playerStyle&&"live-dashboard"!==a.playerStyle?!!b.La||!!g.QM(b)||!!g.RM(b):!0),a;case "creatorendscreen":return pMa(a);case "embed":return g.iK(a.F.T());case "endscreen":return g.qMa(a);case "heartbeat":return a.lP();case "inline_preview":return a.F.T().showInlinePreviewUi;case "kids":return xK(a.F.T());
case "remote":return a.F.T().Hj;case "miniplayer":return a.F.T().showMiniplayerUiWhenMinimized;case "music":return g.rK(a.F.T());case "offline":return a.F.T().Xi;case "captions":return rMa(a);case "unplugged":return g.pK(a.F.T());case "ux":return a.F.T().Uf;case "webgl":return sMa(a);case "ypc":return a.SD();case "ypc_clickwrap":return a=a.F.getVideoData(),a.Gf&&!a.OJ;case "yto":return!!a.F.getVideoData().Ga.includes("yto");default:return g.zD(Error("Module descriptor "+b+" does not match")),!1}};
ET=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var h=a.df.get(b);if(!h||d)if(e||(e=function(){ET(a,b,c,d)}),f||(f=function(){a.F.hg(b)}),h=h||uMa(a,b,tMa(a,b),e,f))a.df.set(b,h),h.create(),a.F.ma("modulecreated",b),c&&a.F.Na("onApiChange")};
xMa=function(a){vMa(a)&&a.WK();wMa(a)&&(ET(a,"captions",!0),ET(a,"endscreen"),a.XK(),ET(a,"creatorendscreen",!0))};
wMa=function(a){var b=a.F.getVideoData(),c=a.D&&!b.isInlinePlaybackNoAd;a.F.K("html5_defer_modules_on_ads_only")&&!b.isAd()&&(c=!1);return c};
vMa=function(a){a=a.F.getVideoData();var b;if(b=a.K("web_player_defer_ad")){if(g.wb(a.Ga,"ad")||iM(a,"disable_defer_admodule_on_advertiser_video")&&Qza(a)||a.enableServerStitchedDai)a=!1;else{b=a.playerResponse;a=a.startSeconds;var c=null==b?void 0:b.adPlacements;if(b=c){b=Number.MAX_VALUE;c=g.v(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value.adPlacementRenderer){var e=void 0,f=null==(e=d.config)?void 0:e.adPlacementConfig;e=void 0;if("AD_PLACEMENT_KIND_MILLISECONDS"===(null==(e=f)?void 0:e.kind)){var h=
e=void 0;f=Number(null==(e=f)?void 0:null==(h=e.adTimeOffset)?void 0:h.offsetStartMilliseconds)||0;h=e=void 0;d=Number((null==(e=d.renderer)?void 0:null==(h=e.adBreakServiceRenderer)?void 0:h.prefetchMilliseconds)||0);d=f-d;d<b&&(b=d)}}b=b-5E3<=1E3*a}a=b?!1:!0}b=a}return b};
rMa=function(a){var b=a.F.getVideoData();return!!b.Ud||!!b.captionTracks.length||g.eMa(b,a.F)};
g.qMa=function(a){var b=a.F.T();if(b.B||NK(b)||b.J||!b.rd&&!b.Vf)return!1;var c=a.F.getPresentingPlayerType();if(2===c)return!1;if(3===c)return b.K("desktop_enable_autoplay");a=a.F.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||b.K("allow_poltergust_autoplay");c=a.isLivePlayback&&(!b.K("allow_live_autoplay")||!c);b=a.isLivePlayback&&b.K("allow_live_autoplay_on_mweb");return!c||b};
g.wS=function(a){return a.df.get("webgl")};
sMa=function(a){var b=a.F.getVideoData();a=a.F.T();var c=g.noa(),d=a.K("enable_spherical_kabuki"),e=g.LK(a);if(g.OM(b))return c||d||e;if(g.LM(b))return e||c||d;if(g.MM(b))return e||c||!1;if(g.NM(b))return e||!1;c=b.u&&b.u.video&&b.u.video.isHdr();return e&&!g.DM(b)&&!c&&a.K("enable_webgl_noop")};
oMa=function(a){if(a.F.T().B)return!1;if(a=a.F.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
pMa=function(a){if(a.isShortsModeEnabled())return!1;a=a.F;var b=a.T();if(b.B||"3"===b.controlsType)return!1;if("creator-endscreen-editor"===b.playerStyle)return!0;a=a.getVideoData();return!!a&&(!!g.$za(a)||!!g.aAa(a))};
uMa=function(a,b,c,d,e){try{if(c){var f=rT.get(b);if(f)return new f(a.F);yMa(a,b,d,e)}else a.F.hg(b)}catch(h){a.F.hg(b),g.zD(h)}return null};
FT=function(a,b,c){for(var d=g.v(a.df),e=d.next();!e.done;e=d.next()){var f=g.v(e.value);e=f.next().value;(f=f.next().value)&&(c||f.Uk(b))&&(g.gb(f),a.df.delete(e))}};
GT=function(a){return a.df.get("ad")};
zMa=function(a){if(xK(a.F.T()))return a.df.get("kids")};
uS=function(a){if(a.F.T().Hj)return a.df.get("remote")};
g.HT=function(a){if(g.pK(a.F.T()))return a.df.get("unplugged")};
kKa=function(a){if(a.F.T().Uf)return a.df.get("ux")};
IT=function(a){if(a.F.T().Xi)return a.df.get("offline")};
g.JT=function(a){return a.df.get("annotations_module")};
AMa=function(a){return a.df.get("creatorendscreen")};
BMa=function(a){var b=a.C.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";a=a.F.K("html5_allow_asmjs");return mMa(b,a)};
yMa=function(a,b,c,d){if(a.C){var e=CMa[b];DMa(a,a.C+e,function(){a.B.add(e);c.call(a)},d)}};
DMa=function(a,b,c,d){function e(){a.isDisposed()||d.call(a)}
function f(){a.isDisposed()||c.call(a)}
for(var h=g.Qe("SCRIPT"),l=!1,m,n=0;n<h.length;n++){var p=h[n];if(p.src===b||p.getAttribute("data-original-src")===b)m=p}m||(m=g.Ze("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(C){vf(f);q&&q.apply(window,[C])};
var t=m.onerror;m.onerror=function(C){if(.01>Math.random()){var G=new g.Yz("Unable to load player module",b,document.location&&document.location.origin);g.zD(G)}vf(e);t&&t(C)};
var w=m,z=w.onreadystatechange;w.onreadystatechange=function(C){switch(w.readyState){case "loaded":case "complete":vf(f)}z&&z(C)};
l&&((h=a.F.T().cspNonce)&&m.setAttribute("nonce",h),g.dk(m,g.pr(b)),h=g.Qe("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.lb(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))};
EMa=function(a,b,c,d,e){g.aE.call(this);var f=this;this.target=a;this.cF=b;this.u=0;this.I=!1;this.C=new g.ve(NaN,NaN);this.j=new g.eI(this);this.ya=this.B=this.J=null;g.I(this,this.j);b=d||e?4E3:3E3;this.ea=new g.Ap(function(){KT(f,1,!1)},b,this);
g.I(this,this.ea);this.Z=new g.Ap(function(){KT(f,2,!1)},b,this);
g.I(this,this.Z);this.oa=new g.Ap(function(){KT(f,512,!1)},b,this);
g.I(this,this.oa);this.Aa=c&&0<c.Sf.length?5E3:3E3;d||(this.B=this.j.S(a,"mouseover",this.Av),this.j.S(a,"mousemove",this.d0),this.j.S(a,"mouseleave",this.W4));Km?this.j.S(a,"keypress",this.v4):this.j.S(a,"focusin",this.j3);this.D=this.j.S(a,"mousedown",this.FR);this.V=this.j.S(a,"touchstart",this.GR,void 0,!0);KT(this,640,!0)};
FMa=function(a){KT(a,4,!1);a.J&&(a.j.Fc(a.J),a.J=null,a.B=a.j.S(a.target,"mouseover",a.Av));a.B&&(a.j.Fc(a.B),a.B=a.j.S(a.target,"mouseover",a.Av))};
KT=function(a,b,c){a.isDisposed();var d=!a.u;c?(a.u|=b,b&1&&a.ea.start(),b&2&&a.Z.start()):(a.u&=~b,b&1&&a.ea.stop(),b&2&&a.Z.stop(),b&512&&a.oa.stop());a.u&512&&!(a.u&128)&&g.Bp(a.oa,a.Aa);b=!a.u;d!==b&&a.ma("autohideupdate",b)};
g.MT=function(a){g.V.call(this,{G:"button",Ia:["ytp-large-play-button","ytp-button"],X:{"aria-label":"Play"},W:["{{largePlayButtonChildren}}"]});this.api=a;this.S(a,"videodatachange",this.Qa);this.S(a,"basechromeinitialized",this.Qa);a=this.api.T();a.V&&LT&&(this.Ra("click",this.j,this),this.Ra("touchstart",this.u,this));g.oK(a)&&g.Ip(this.element,"ytp-large-play-button-red-bg");this.api.sb(this.element,this,28572);this.Qa()};
g.NT=function(a){var b=a.T(),c=["ytp-cued-thumbnail-overlay"];b.J&&c.push("ytp-exp-contain-thumbnail");b.K("web_player_show_frame_zero_when_cued")&&c.push("ytp-exp-frame0");g.V.call(this,{G:"div",Ia:c,W:[{G:"div",N:"ytp-cued-thumbnail-overlay-image"}]});b=this.Da("ytp-cued-thumbnail-overlay");c=new g.MT(a);g.I(this,c);c.Ea(b);this.C=new g.eI(this);g.I(this,this.C);this.api=a;this.D=this.Da("ytp-cued-thumbnail-overlay-image");this.B=c;this.u=new g.WQ(this,250);g.I(this,this.u);this.j=new g.Ap(this.Qa,
0,this);g.I(this,this.j);this.Qa();this.S(a,"appresize",this.Db);this.S(a,"presentingplayerstatechange",this.onStateChange);this.S(a,"ypcStateChanged",this.b8);kK(a.T())&&this.S(a,"videoplayerreset",this.Fv)};
GMa=function(a){if(!a.api.K("web_player_show_frame_zero_when_cued"))return!1;var b=a.api.getCurrentTime();a=a.api.Cb();a=g.UN(a,64)&&g.UN(a,1);return 0===b&&a};
HMa=function(a){var b=!a.T().Ij&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.OT=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.kR(a))return g.IO(a),!0;b.pauseVideo();a=e.getAttribute("href");g.JN(a,d,!0);return!1};
g.PT=function(a,b,c){if(EK(b.T())&&2!==b.getPresentingPlayerType()){if(g.kR(c))return b.isFullscreen()&&!b.T().externalFullscreen&&b.toggleFullscreen(),g.IO(c),!0}else if(b.T().K("embeds_enable_webview_nonjs_navigation")&&g.iK(b.T())&&(cz()||az()))b=c.target,b instanceof HTMLAnchorElement&&ak(b,Bga(a));else{var d=g.kR(c);d&&b.pauseVideo();g.JN(a,void 0,!0);d&&(g.LN(a),g.IO(c))}return!1};
IMa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!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"}}],N:"ytp-subtitles-button-icon"}};
JMa=function(){return{G:"div",N:"ytp-spinner-container",W:[{G:"div",N:"ytp-spinner-rotator",W:[{G:"div",N:"ytp-spinner-left",W:[{G:"div",N:"ytp-spinner-circle"}]},{G:"div",N:"ytp-spinner-right",W:[{G:"div",N:"ytp-spinner-circle"}]}]}]}};
KMa=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
g.QT=function(a,b,c){a=a.T();return a.K("desktop_player_button_tooltip_with_shortcut")&&!a.Zi?g.pO("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.RT=function(a){g.V.call(this,{G:"div",Ia:["ytp-error"],X:{role:"alert"},W:[{G:"div",N:"ytp-error-content",W:[{G:"div",N:"ytp-error-icon-container",W:[{G:"svg",X:{fill:"#fff",viewBox:"0 0 48 48"},W:[{G:"path",X:{d:"M0 0h48v48H0V0z",fill:"none"}},{G:"path",X:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{G:"div",N:"ytp-error-content-wrap",
W:[{G:"div",N:"ytp-error-content-wrap-reason",ra:"{{content}}"},{G:"div",N:"ytp-error-content-wrap-subreason",ra:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.ST=function(a){a=a.split(LMa);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({G:"br"}),b.push(d[e]);c<a.length&&b.push({G:"a",X:{href:a[c],target:a[c+1]},ra:a[c+2]})}return{G:"span",W:b}};
MMa=function(a,b,c,d,e,f,h){d=void 0===d?!1:d;e=void 0===e?!1:e;h=void 0===h?!0:h;e||(e=a.api.T().C);a=a.api.getVideoData();b=g.pO(g.TT[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({G:"h2",ra:f});d.push(b[0]);h&&d.push({G:"br"});d.push({G:"a",X:{href:c,target:e?"_blank":null},ra:b[2]});d.push(b[4]);return{G:"span",W:d}};
NMa=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.S(c[d],"click",b);a.keys.push(e)}};
OMa=function(a){for(var b=0;b<a.keys.length;b++)a.Fc(a.keys[b]);a.keys=[]};
UT=function(a){g.eI.call(this);this.F=a;this.j=new Set;this.mediaSession=navigator.mediaSession;this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"presentingplayerstatechange",this.Gi);this.onVideoDataChange()};
VT=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.j.add(b)};
PMa=function(a){VT(a,"play",function(){a.F.playVideo()});
VT(a,"pause",function(){a.F.pauseVideo()});
VT(a,"seekbackward",function(){a.F.seekBy(-5*a.F.getPlaybackRate())});
VT(a,"seekforward",function(){a.F.seekBy(5*a.F.getPlaybackRate())})};
QMa=function(a){var b,c;a=a.F.getVideoData();a=a.fd&&a.fd.playerOverlays||null;return null==a?void 0:null==(b=a.playerOverlayRenderer)?void 0:null==(c=b.browserMediaSession)?void 0:c.browserMediaSessionRenderer};
RMa=function(a){var b=[];if(!a||!a.thumbnails)return b;a=g.v(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&(!c.width||0>=c.width||!c.height||0>=c.height||g.RD(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
SMa=function(a){var b=a.F.Cb();b=b.isCued()||b.isError()?"none":g.VO(b)?"playing":"paused";a.mediaSession.playbackState=b};
TMa=function(a){g.V.call(this,{G:"div",N:"ytp-paid-content-overlay",X:{"aria-live":"assertive","aria-atomic":"true"}});this.F=a;this.videoId=null;this.B=!1;this.Te=this.j=null;var b=a.T();a.K("enable_new_paid_product_placement")&&!g.JK(b)?(this.u=new g.V({G:"a",N:"ytp-paid-content-overlay-link",X:{href:"{{href}}",target:"_blank"},W:[{G:"div",N:"ytp-paid-content-overlay-icon",ra:"{{icon}}"},{G:"div",N:"ytp-paid-content-overlay-text",ra:"{{text}}"},{G:"div",N:"ytp-paid-content-overlay-chevron",ra:"{{chevron}}"}]}),
this.S(this.u.element,"click",this.onClick)):this.u=new g.V({G:"div",Ia:["ytp-button","ytp-paid-content-overlay-text"],ra:"{{text}}"});this.C=new g.WQ(this.u,250,!1,100);g.I(this,this.u);this.u.Ea(this.element);g.I(this,this.C);this.F.Yf(this.element,this);this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"presentingplayerstatechange",this.zd)};
VMa=function(a,b){var c=Pza(b),d=EM(b);b.Gf&&a.F.Mo()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.Dp(a.j),a.videoId=b.videoId,a.B=!!d,a.B&&c&&UMa(a,d,c,b)):c&&d&&UMa(a,d,c,b))};
UMa=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.Ap(a.Fb,b,a);g.I(a,a.j);var e,f;b=null==(e=d.getPlayerResponse())?void 0:null==(f=e.paidContentOverlay)?void 0:f.paidContentOverlayRenderer;e=null==b?void 0:b.navigationEndpoint;var h;f=null==b?void 0:null==(h=b.icon)?void 0:h.iconType;var l;h=null==(l=g.S(e,g.sM))?void 0:l.url;a.F.jg(a.element,(null==e?void 0:e.clickTrackingParams)||null);a.u.update({href:null!=h?h:"#",text:c,icon:"MONEY_HAND"===f?{G:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 24 24",
width:"100%"},W:[{G:"path",X:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
fill:"white"}}]}:null,chevron:h?g.oQ():null})};
WMa=function(a,b){a.j&&(g.UN(b,8)&&a.B?(a.B=!1,a.md(),a.j.start()):(g.UN(b,2)||g.UN(b,64))&&a.videoId&&(a.videoId=null))};
WT=function(a){g.V.call(this,{G:"div",N:"ytp-spinner",W:[JMa(),{G:"div",N:"ytp-spinner-message",ra:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Da("ytp-spinner-message");this.j=new g.Ap(this.show,500,this);g.I(this,this.j);this.S(a,"presentingplayerstatechange",this.onStateChange);this.S(a,"playbackstalledatstart",this.u);this.pc(a.Cb())};
XT=function(a){var b=vJ(a.T().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{G:"div",Ia:["ytp-unmute-icon"],W:[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,N:"ytp-svg-fill",X:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{G:"div",Ia:["ytp-unmute-text"],ra:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({G:"div",Ia:["ytp-unmute-box"],W:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.AS.call(this,a,{G:"button",Ia:["ytp-unmute","ytp-popup","ytp-button"].concat(c),W:[{G:"div",N:"ytp-unmute-inner",W:d}]},100);this.j=this.clicked=!1;this.api=a;this.api.sb(this.element,this,51663);this.S(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.S(a,"presentingplayerstatechange",
this.Gi);this.Ra("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.iK(this.api.T());g.iQ(this,a);a&&XMa(this);this.B=a};
XMa=function(a){a.j||(a.j=!0,a.api.Va(a.element,!0))};
g.ZT=function(a){g.eI.call(this);var b=this;this.api=a;this.jN=!1;this.Vo=null;this.mF=!1;this.qg=null;this.VK=this.qI=!1;this.MP=this.NP=null;this.gV=NaN;this.LP=this.oB=!1;this.MC=0;this.fK=[];this.mO=!1;this.iC={height:0,width:0};this.Z9=["ytp-player-content","html5-endscreen","ytp-overlay"];this.qN={GU:!1};var c=a.T(),d=a.jb();this.iC=a.getPlayerSize();this.BS=new g.Ap(this.zN,0,this);g.I(this,this.BS);g.rK(c)||(this.Gm=new g.NT(a),g.I(this,this.Gm),g.yS(a,this.Gm.element,4));if(YMa(this)){var e=
new WT(a);g.I(this,e);e=e.element;g.yS(a,e,4)}var f=a.getVideoData();this.Ve=new EMa(d,function(l){return b.cF(l)},f,c.oh,!1);
g.I(this,this.Ve);this.Ve.subscribe("autohideupdate",this.pn,this);if(!c.disablePaidContentOverlay){var h=new TMa(a);g.I(this,h);g.yS(a,h.element,4)}this.TP=new XT(a);g.I(this,this.TP);g.yS(this.api,this.TP.element,2);this.rM=this.api.isMutedByMutedAutoplay();this.S(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.pI=new g.Ap(this.Yz,200,this);g.I(this,this.pI);this.CC=f.videoId;this.oX=new g.Ap(function(){b.MC=0},350);
g.I(this,this.oX);this.rF=new g.Ap(function(){b.LP||ZMa(b)},350,this);
g.I(this,this.rF);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.Ip(f,"ytp-color-white")}g.rK(c)&&g.Ip(f,"ytp-music-player");navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new UT(a),g.I(this,f));this.S(a,"appresize",this.Db);this.S(a,"presentingplayerstatechange",this.Gi);this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"videoplayerreset",this.H6);this.S(a,"autonavvisibility",function(){b.vp()});
this.S(a,"sizestylechange",function(){b.vp()});
this.S(d,"click",this.e7,this);this.S(d,"dblclick",this.f7,this);this.S(d,"mousedown",this.i7,this);c.Ub&&(this.S(d,"gesturechange",this.g7,this),this.S(d,"gestureend",this.h7,this));this.Vs=[d.eB];this.Gm&&this.Vs.push(this.Gm.element);e&&this.Vs.push(e)};
$Ma=function(a,b){if(!b)return!1;var c=a.api.ue();if(c.Zt()&&(c=c.ub())&&g.lf(c,b))return c.controls;for(c=0;c<a.Vs.length;c++)if(g.lf(a.Vs[c],b))return!1;c=g.v(a.Z9);for(var d=c.next();!d.done;d=c.next())if(g.Hp(b,d.value))return!1;return b===a.api.getRootNode()?!1:!0};
aNa=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.jb().kG||!1)&&a.api.T().u&&LT&&11<=gM;a=a.api.T().V&&LT;return!(!b&&!a)};
$T=function(a,b){return!a.api.isInline()&&!$Ma(a,GO(b))&&g.kR(b)};
ZMa=function(a){a.Ve.rp();if(a.qI&&a.VK)a.VK=!1;else if(!a.api.T().Wa&&!a.Gl()){var b=a.api.Cb();g.UN(b,2)&&g.sS(a.api)||a.jw(b);if(!a.api.T().Ub||b.isCued()||g.UN(b,1024)){var c=a.api.eI();g.nA("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.UN(b,1024);c&&(b.isCued()||d)?(g.nA("embedsRequestStorageAccessState",{isCued:b.isCued(),X7a:d}),a.requestStorageAccess()):(!c||b.isCued()&&d||g.nA("embedsRequestStorageAccessFailedState",{state:b.state}),a.Yz())}else a.pI.isActive()?
(a.lG(),a.pI.stop()):a.pI.start()}};
bNa=function(a,b){var c;if(null==(c=a.api.getVideoData())?0:c.mutedAutoplay){var d,e;if(null==(d=b.target)?0:null==(e=d.className)?0:e.includes("ytp-info-panel"))return!1}return g.kR(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.Cb(),!g.UN(b,4)||g.UN(b,8)||g.UN(b,2)||a.Yz(),!0):!1};
cNa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
YMa=function(a){a=Ty()&&67<=joa()&&!a.api.T().V;return!Sy("tizen")&&!fK&&!a&&!0};
aU=function(a,b){b=void 0===b?2:b;g.aE.call(this);this.api=a;this.j=null;this.wd=new Fz(this);g.I(this,this.wd);this.u=oFa;this.wd.S(this.api,"presentingplayerstatechange",this.zd);this.j=this.wd.S(this.api,"progresssync",this.wc);this.Hn=b;1===this.Hn&&this.wc()};
dNa=function(a){g.V.call(this,{G:"button",Ia:["ytp-button","ytp-back-button"],W:[{G:"div",N:"ytp-arrow-back-icon",W:[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},W:[{G:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",vc:!0,X:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.F=a;g.iQ(this,a.T().nm);this.Ra("click",this.onClick)};
g.bU=function(a){g.V.call(this,{G:"div",W:[{G:"div",N:"ytp-bezel-text-wrapper",W:[{G:"div",N:"ytp-bezel-text",ra:"{{title}}"}]},{G:"div",N:"ytp-bezel",X:{role:"status","aria-label":"{{label}}"},W:[{G:"div",N:"ytp-bezel-icon",ra:"{{icon}}"}]}]});this.F=a;this.u=new g.Ap(this.show,10,this);this.j=new g.Ap(this.hide,500,this);g.I(this,this.u);g.I(this,this.j);this.hide()};
dU=function(a,b,c){if(0>=b){c=zQ();b="muted";var d=0}else c=c?{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!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"}}]}:{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!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";cU(a,c,b,d+"%")};
eNa=function(a,b){b=b?{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,N:"ytp-svg-fill",X:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,N:"ytp-svg-fill",X:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]};var c=a.F.getPlaybackRate(),d=g.pO("Speed is $RATE",{RATE:String(c)});cU(a,b,d,c+"x")};
fNa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";cU(a,IMa(),b)};
cU=function(a,b,c,d){d=void 0===d?"":d;a.updateValue("label",void 0===c?"":c);a.updateValue("icon",b);g.Dp(a.j);a.u.start();a.updateValue("title",d);g.Mp(a.element,"ytp-bezel-text-hide",!d)};
hNa=function(a,b,c){g.V.call(this,{G:"button",Ia:["ytp-button","ytp-cards-button"],X:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.iK(a.T()))},W:[{G:"span",N:"ytp-cards-button-icon-default",W:[{G:"div",N:"ytp-cards-button-icon",W:[a.T().K("player_new_info_card_format")?NEa():{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,N:"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"}}]}]},
{G:"div",N:"ytp-cards-button-title",ra:"Info"}]},{G:"span",N:"ytp-cards-button-icon-shopping",W:[{G:"div",N:"ytp-cards-button-icon",W:[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",N:"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"}},{G:"path",N:"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"}},{G:"path",N:"ytp-svg-shadow-fill",X:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{G:"div",
N:"ytp-cards-button-title",ra:"Shopping"}]}]});this.F=a;this.B=b;this.C=c;this.j=null;this.u=new g.WQ(this,250,!0,100);g.I(this,this.u);g.Mp(this.C,"ytp-show-cards-title",g.iK(a.T()));this.hide();this.Ra("click",this.M5);this.Ra("mouseover",this.g6);gNa(this,!0)};
gNa=function(a,b){b?a.j=g.QS(a.B.Hc(),a.element):(a.j=a.j,a.j(),a.j=null)};
iNa=function(a,b,c){g.V.call(this,{G:"div",N:"ytp-cards-teaser",W:[{G:"div",N:"ytp-cards-teaser-box"},{G:"div",N:"ytp-cards-teaser-text",W:a.T().K("player_new_info_card_format")?[{G:"button",N:"ytp-cards-teaser-info-icon",X:{"aria-label":"Show cards","aria-haspopup":"true"},W:[NEa()]},{G:"span",N:"ytp-cards-teaser-label",ra:"{{text}}"},{G:"button",N:"ytp-cards-teaser-close-button",X:{"aria-label":"Close"},W:[g.pQ()]}]:[{G:"span",N:"ytp-cards-teaser-label",ra:"{{text}}"}]}]});var d=this;this.F=a;this.Z=
b;this.Vi=c;this.C=new g.WQ(this,250,!1,250);this.j=null;this.J=new g.Ap(this.t6,300,this);this.I=new g.Ap(this.s6,2E3,this);this.D=[];this.u=null;this.V=new g.Ap(function(){d.element.style.margin="0"},250);
this.onClickCommand=this.B=null;g.I(this,this.C);g.I(this,this.J);g.I(this,this.I);g.I(this,this.V);a.T().K("player_new_info_card_format")?(g.Ip(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.S(this.Da("ytp-cards-teaser-close-button"),"click",this.Yo),this.S(this.Da("ytp-cards-teaser-info-icon"),"click",this.CP),this.S(this.Da("ytp-cards-teaser-label"),"click",this.CP)):this.Ra("click",this.CP);this.S(c.element,"mouseover",this.IR);this.S(c.element,"mouseout",this.HR);this.S(a,"cardsteasershow",
this.G7);this.S(a,"cardsteaserhide",this.Fb);this.S(a,"cardstatechange",this.CY);this.S(a,"presentingplayerstatechange",this.CY);this.S(a,"appresize",this.aQ);this.S(a,"onShowControls",this.aQ);this.S(a,"onHideControls",this.n2);this.Ra("mouseenter",this.g0)};
jNa=function(a){g.V.call(this,{G:"button",Ia:[eU.BUTTON,eU.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},W:[{G:"div",N:eU.TITLE_NOTIFICATIONS_ON,X:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},W:[g.tQ()]},{G:"div",N:eU.TITLE_NOTIFICATIONS_OFF,X:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},W:[{G:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},W:[{G:"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.sb(this.element,this,36927);this.Ra("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")};
kNa=function(a,b){a.j=b;a.element.classList.toggle(eU.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.lQ:c.jQ)?(a=a.api.Mm())?wR(a,b):g.zD(Error("No innertube service available when updating notification preferences.")):g.zD(Error("No update preferences command available.")):g.zD(Error("No video data when updating notification preferences."))};
g.fU=function(a,b,c){var d=void 0===d?800:d;var e=void 0===e?600:e;a=lNa(a,b);if(a=g.ek(a,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes"))ara(function(){c()}),a.moveTo((screen.width-d)/2,(screen.height-e)/2)};
lNa=function(a,b){var c=document.location.protocol;return yfa(c+"//"+a+"/signin?context=popup","feature",b,"next",c+"//"+location.hostname+"/post_login")};
g.hU=function(a,b,c,d,e,f,h,l,m,n,p,q){q=void 0===q?null:q;a=a.charAt(0)+a.substring(1).toLowerCase();c=c.charAt(0)+c.substring(1).toLowerCase();if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var t=p.T(),w=t.userDisplayName&&g.oK(t);g.V.call(this,{G:"div",Ia:["ytp-button","ytp-sb"],W:[{G:"div",N:"ytp-sb-subscribe",X:w?{title:g.pO("Subscribe as $USER_NAME",{USER_NAME:t.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":OK(t),"data-tooltip-opaque":String(g.iK(t)),tabindex:"0",
role:"button"}:{"aria-label":"Subscribe to channel"},W:[{G:"div",N:"ytp-sb-text",W:[{G:"div",N:"ytp-sb-icon"},a]},b?{G:"div",N:"ytp-sb-count",ra:b}:""]},{G:"div",N:"ytp-sb-unsubscribe",X:w?{title:g.pO("Subscribed as $USER_NAME",{USER_NAME:t.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":OK(t),"data-tooltip-opaque":String(g.iK(t)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},W:[{G:"div",N:"ytp-sb-text",W:[{G:"div",N:"ytp-sb-icon"},c]},d?{G:"div",
N:"ytp-sb-count",ra:d}:""]}],X:{"aria-live":"polite"}});var z=this;this.channelId=h;this.B=q;this.F=p;var C=this.Da("ytp-sb-subscribe"),G=this.Da("ytp-sb-unsubscribe");f&&g.Ip(this.element,"ytp-sb-classic");if(e){l?this.j():this.u();var O=function(){if(t.authUser){var K=z.channelId;if(m||n){var W={c:K};var Z;g.WR.isInitialized()&&(Z=LJa(W));W=Z||"";if(Z=p.getVideoData())if(Z=Z.subscribeCommand){var Q=p.Mm();Q?(wR(Q,Z,{botguardResponse:W,feature:m}),p.Na("SUBSCRIBE",K)):g.zD(Error("No innertube service available when updating subscriptions."))}else g.zD(Error("No subscribe command in videoData."));
else g.zD(Error("No video data available when updating subscription."))}G.focus();G.removeAttribute("aria-hidden");C.setAttribute("aria-hidden","true")}else g.fU(g.BK(z.F.T()),"sb_button",z.C)},N=function(){var K=z.channelId;
if(m||n){var W=p.getVideoData();wR(p.Mm(),W.unsubscribeCommand,{feature:m});p.Na("UNSUBSCRIBE",K)}C.focus();C.removeAttribute("aria-hidden");G.setAttribute("aria-hidden","true")};
this.S(C,"click",O);this.S(G,"click",N);this.S(C,"keypress",function(K){13===K.keyCode&&O(K)});
this.S(G,"keypress",function(K){13===K.keyCode&&N(K)});
this.S(p,"SUBSCRIBE",this.j);this.S(p,"UNSUBSCRIBE",this.u);this.B&&w&&(this.tooltip=this.B.Hc(),gU(this.tooltip),g.lb(this,g.QS(this.tooltip,C)),g.lb(this,g.QS(this.tooltip,G)))}else g.Ip(C,"ytp-sb-disabled"),g.Ip(G,"ytp-sb-disabled")};
nNa=function(a,b){g.V.call(this,{G:"div",N:"ytp-title-channel",W:[{G:"div",N:"ytp-title-beacon"},{G:"a",N:"ytp-title-channel-logo",X:{href:"{{channelLink}}",target:a.T().ea,"aria-label":"{{channelLogoLabel}}"}},{G:"div",N:"ytp-title-expanded-overlay",X:{"aria-hidden":"{{flyoutUnfocusable}}"},W:[{G:"div",N:"ytp-title-expanded-heading",W:[{G:"div",N:"ytp-title-expanded-title",W:[{G:"a",ra:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.T().ea,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
tabIndex:"{{channelTitleFocusable}}"}}]},{G:"div",N:"ytp-title-expanded-subtitle",ra:"{{expandedSubtitle}}",X:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var c=this;this.api=a;this.D=b;this.channel=this.Da("ytp-title-channel");this.j=this.Da("ytp-title-channel-logo");this.channelName=this.Da("ytp-title-expanded-title");this.I=this.Da("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;this.C=!1;a.sb(this.j,this,36925);a.sb(this.channelName,this,37220);g.iK(this.api.T())&&
mNa(this);this.S(a,"videodatachange",this.Qa);this.S(a,"videoplayerreset",this.Qa);this.api.K("web_player_ve_conversion_fixes_for_channel_info")&&(this.S(this.channelName,"click",function(d){c.api.qb(c.channelName);g.ek(iU(c));d.preventDefault()}),this.S(this.j,"click",this.J5));
this.Qa()};
oNa=function(a){if(!a.api.T().Bc){var b=a.api.getVideoData(),c=new g.hU("Subscribe",null,"Subscribed",null,!0,!1,b.bk,b.subscribed,"channel_avatar",null,a.api,a.D);a.api.Yf(c.element,a);var d;a.api.jg(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.S(c.element,"click",function(){a.api.qb(c.element)});
a.subscribeButton=c;g.I(a,a.subscribeButton);a.subscribeButton.Ea(a.I);a.subscribeButton.hide();var e=new jNa(a.api);a.u=e;g.I(a,e);e.Ea(a.I);e.hide();a.S(a.api,"SUBSCRIBE",function(){b.jm&&(e.show(),a.api.Va(e.element,!0))});
a.S(a.api,"UNSUBSCRIBE",function(){b.jm&&(e.hide(),a.api.Va(e.element,!1),kNa(e,!1))})}};
mNa=function(a){var b=a.api.T();oNa(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.u||b.Nb?a.S(a.j,"click",function(c){a.api.K("web_player_ve_conversion_fixes_for_channel_info")||(pNa(a)&&(c.preventDefault(),a.isExpanded()?a.kF():a.AF()),a.api.qb(a.j))}):(a.S(a.channel,"mouseenter",a.AF),a.S(a.channel,"mouseleave",a.kF),a.S(a.channel,"focusin",
a.AF),a.S(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||a.kF()}),a.S(a.j,"click",function(){a.api.K("web_player_ve_conversion_fixes_for_channel_info")||a.api.qb(a.j)}));
a.B=new g.Ap(function(){a.isExpanded()&&(a.api.K("web_player_ve_conversion_fixes_for_channel_info")&&a.api.Va(a.channelName,!1),a.subscribeButton&&(a.subscribeButton.hide(),a.api.Va(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.Va(a.u.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.I(a,a.B);a.S(a.channel,qNa,function(){rNa(a)});
a.S(a.api,"onHideControls",a.SO);a.S(a.api,"appresize",a.SO);a.S(a.api,"fullscreentoggled",a.SO)};
rNa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
pNa=function(a){var b=a.api.getPlayerSize();return g.iK(a.api.T())&&524<=b.width};
iU=function(a){var b=a.api.T(),c=a.api.getVideoData();c=g.PK(b)+c.Gc;if(!g.iK(b))return c;var d={};b.ya&&g.$R(d,a.api.T().loaderUrl);g.gS(a.api,"addEmbedsConversionTrackingParams",[d]);g.ZR(d,"emb_ch_name_ex");return g.Ui(c,d)};
jU=function(a,b,c,d,e,f){var h={G:"div",N:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={G:"div",N:"ytp-panel-header",W:[{G:"div",Ia:["ytp-panel-back-button-container"],W:[{X:{"aria-label":"Back to previous menu"},G:"button",Ia:["ytp-button",l]}]},{X:{tabindex:"0"},G:"span",Ia:[m],W:[c]}]};if(e){var p="ytp-panel-options";n.W.push({G:"button",Ia:["ytp-button",p],W:[d]})}h.W=[n]}d=!1;f&&(f={G:"div",N:"ytp-panel-footer",W:[f]},d=!0,h.W?h.W.push(f):h.W=[f]);g.jQ.call(this,
h);this.content=b;d&&h.W?b.Ea(this.element,h.W.length-1):b.Ea(this.element);this.xU=!1;this.wU=d;c&&(c=this.Da(l),m=this.Da(m),this.S(c,"click",this.VV),this.S(m,"click",this.VV),this.xU=!0,e&&(p=this.Da(p),this.S(p,"click",e)));b.subscribe("size-change",this.bW,this);this.S(a,"fullscreentoggled",this.bW);this.F=a};
g.kU=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.jQ({G:"div",N:"ytp-panel-menu",X:h});jU.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.I(this,this.menuItems)};
g.sNa=function(a){for(var b=g.v(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.SN,a);a.items=[];g.gf(a.menuItems.element);a.menuItems.ma("size-change")};
tNa=function(a,b){return b.priority-a.priority};
lU=function(a){var b=g.GS({"aria-haspopup":"true"});g.FS.call(this,b,a);this.Ra("keydown",this.j)};
mU=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
uNa=function(a,b){g.V.call(this,{G:"div",N:"ytp-user-info-panel",X:{"aria-label":"User info"},W:a.T().authUser&&!a.K("embeds_web_always_enable_signed_out_state")?[{G:"div",N:"ytp-user-info-panel-icon",ra:"{{icon}}"},{G:"div",N:"ytp-user-info-panel-content",W:[{G:"div",N:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable}}",role:"text"},ra:"{{watchingAsUsername}}"},{G:"div",N:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable2}}",role:"text"},ra:"{{watchingAsEmail}}"}]}]:[{G:"div",
N:"ytp-user-info-panel-icon",ra:"{{icon}}"},{G:"div",N:"ytp-user-info-panel-content",W:[{G:"div",W:[{G:"text",X:{tabIndex:"{{userInfoFocusable}}"},ra:"Signed out"}]},{G:"div",N:"ytp-user-info-panel-login",W:[{G:"a",X:{tabIndex:"{{userInfoFocusable2}}",role:"button"},ra:a.T().Bc?"":"Sign in on YouTube"}]}]}]});this.Ua=a;this.j=b;a.T().authUser||a.T().Bc||(a=this.Da("ytp-user-info-panel-login"),this.S(a,"click",this.j0));this.closeButton=new g.V({G:"button",Ia:["ytp-collapse","ytp-button"],X:{title:"Close"},
W:[g.yQ()]});this.closeButton.Ea(this.element);g.I(this,this.closeButton);this.S(window,"blur",this.hide);this.S(document,"click",this.h0);this.Qa()};
wNa=function(a,b,c,d){g.kU.call(this,a);this.Eb=c;this.Oc=d;this.getVideoUrl=new lU(6);this.Pm=new lU(5);this.Km=new lU(4);this.kc=new lU(3);this.ED=new g.FS(g.GS({href:"{{href}}",target:this.F.T().ea},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.FS(g.GS(),1,"Stats for nerds");this.Zx=new g.jQ({G:"div",Ia:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},ra:"{{text}}"});this.bT=new jU(this.F,this.Zx);this.iE=this.Is=null;g.iK(this.F.T())&&this.F.K("embeds_web_enable_new_context_menu_triggering")&&
(this.closeButton=new g.V({G:"button",Ia:["ytp-collapse","ytp-button"],X:{title:"Close"},W:[g.yQ()]}),g.I(this,this.closeButton),this.closeButton.Ea(this.element),this.closeButton.Ra("click",this.s2,this));g.iK(this.F.T())&&(this.Vk=new g.FS(g.GS(),8,"Account"),g.I(this,this.Vk),this.Xc(this.Vk,!0),this.Vk.Ra("click",this.s7,this),a.sb(this.Vk.element,this.Vk,137682));this.F.T().wm&&(this.Hk=new SS("Loop",7),g.I(this,this.Hk),this.Xc(this.Hk,!0),this.Hk.Ra("click",this.m6,this),a.sb(this.Hk.element,
this.Hk,28661));g.I(this,this.getVideoUrl);this.Xc(this.getVideoUrl,!0);this.getVideoUrl.Ra("click",this.e6,this);a.sb(this.getVideoUrl.element,this.getVideoUrl,28659);g.I(this,this.Pm);this.Xc(this.Pm,!0);this.Pm.Ra("click",this.f6,this);a.sb(this.Pm.element,this.Pm,28660);g.I(this,this.Km);this.Xc(this.Km,!0);this.Km.Ra("click",this.d6,this);a.sb(this.Km.element,this.Km,28658);g.I(this,this.kc);this.Xc(this.kc,!0);this.kc.Ra("click",this.c6,this);g.I(this,this.ED);this.Xc(this.ED,!0);this.ED.Ra("click",
this.a7,this);g.I(this,this.showVideoInfo);this.Xc(this.showVideoInfo,!0);this.showVideoInfo.Ra("click",this.t7,this);g.I(this,this.Zx);this.Zx.Ra("click",this.R5,this);g.I(this,this.bT);b=document.queryCommandSupported&&document.queryCommandSupported("copy");43<=Ac("Chromium")&&(b=!0);40>=Ac("Firefox")&&(b=!1);b&&(this.Is=new g.V({G:"textarea",N:"ytp-html5-clipboard",X:{readonly:"",tabindex:"-1"}}),g.I(this,this.Is),this.Is.Ea(this.element));var e;null==(e=this.Vk)||LS(e,QEa());var f;null==(f=this.Hk)||
LS(f,{G:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",X:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});LS(this.kc,{G:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"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"}}]});LS(this.ED,{G:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",X:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z",
fill:"white","fill-rule":"evenodd"}}]});LS(this.showVideoInfo,MEa());this.S(a,"onLoopChange",this.onLoopChange);this.S(a,"videodatachange",this.onVideoDataChange);vNa(this);this.iP(this.F.getVideoData())};
oU=function(a,b){var c=!1;if(a.Is){var d=a.Is.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Eb.Fb():(a.Zx.je(b,"text"),g.nU(a.Eb,a.bT),KMa(a.Zx.element),a.Is&&(a.Is=null,vNa(a)));return c};
vNa=function(a){var b=!!a.Is;g.CS(a.kc,b?"Copy debug info":"Get debug info");mU(a.kc,!b);g.CS(a.Km,b?"Copy embed code":"Get embed code");mU(a.Km,!b);g.CS(a.getVideoUrl,b?"Copy video URL":"Get video URL");mU(a.getVideoUrl,!b);g.CS(a.Pm,b?"Copy video URL at current time":"Get video URL at current time");mU(a.Pm,!b);LS(a.Km,b?KEa():null);LS(a.getVideoUrl,b?rQ():null);LS(a.Pm,b?rQ():null)};
xNa=function(a){return g.iK(a.F.T())?a.Vk:a.Hk};
g.pU=function(a,b){g.AS.call(this,a,{G:"div",Ia:["ytp-popup",b||""]},100,!0);this.j=[];this.I=this.D=null;this.RE=this.maxWidth=0;this.size=new g.xe(0,0);this.Ra("keydown",this.k0)};
yNa=function(a){var b=a.j[a.j.length-1];if(b){g.Tm(a.element,a.maxWidth||"100%",a.RE||"100%");g.Jm(b.element,"width","");g.Jm(b.element,"height","");g.Jm(b.element,"maxWidth","100%");g.Jm(b.element,"maxHeight","100%");g.Jm(b.content.element,"height","");var c=g.Um(b.element);c.width+=1;c.height+=1;g.Jm(b.element,"width",c.width+"px");g.Jm(b.element,"height",c.height+"px");g.Jm(b.element,"maxWidth","");g.Jm(b.element,"maxHeight","");var d=0;b.xU&&(d=b.Da("ytp-panel-header"),d=g.Um(d).height);var e=
0;b.wU&&(e=b.Da("ytp-panel-footer"),g.Jm(e,"width",c.width+"px"),e=g.Um(e).height);g.Jm(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,0<d.offsetWidth-d.clientWidth&&0<e&&(c.width+=e,g.Jm(b.element,"width",c.width+"px")));a.size=c}};
g.nU=function(a,b){var c=a.j[a.j.length-1];a.j.push(b);zNa(a,c,b)};
g.qU=function(a){if(!(1>=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];zNa(a,b,c,!0)}};
zNa=function(a,b,c,d){ANa(a);b&&(b.unsubscribe("size-change",a.eA,a),b.unsubscribe("back",a.jj,a));c.subscribe("size-change",a.eA,a);c.subscribe("back",a.jj,a);if(a.yb){g.Ip(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ea(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;yNa(a);g.Tm(a.element,e);a.D=new g.Ap(function(){BNa(a,b,c,d)},20,a);
a.D.start()}else c.Ea(a.element),b&&b.detach()};
BNa=function(a,b,c,d){a.D.dispose();a.D=null;g.Ip(a.element,"ytp-popup-animating");d?(g.Ip(b.element,"ytp-panel-animate-forward"),g.Kp(c.element,"ytp-panel-animate-back")):(g.Ip(b.element,"ytp-panel-animate-back"),g.Kp(c.element,"ytp-panel-animate-forward"));g.Tm(a.element,a.size);a.I=new g.Ap(function(){g.Kp(a.element,"ytp-popup-animating");b.detach();g.Lp(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.I.dispose();a.I=null},250,a);
a.I.start()};
ANa=function(a){a.D&&g.Cp(a.D);a.I&&g.Cp(a.I)};
g.rU=function(a,b,c){g.pU.call(this,a);this.Aa=b;this.Oc=c;this.C=new g.eI(this);this.oa=new g.Ap(this.L7,1E3,this);this.ya=this.B=null;g.I(this,this.C);g.I(this,this.oa);a.sb(this.element,this,28656);g.Ip(this.element,"ytp-contextmenu");CNa(this);this.hide()};
CNa=function(a){g.Hz(a.C);var b=a.F.T();"gvn"===b.playerStyle||(b.u||b.Nb)&&b.K("embeds_web_enable_new_context_menu_triggering")||(b=a.F.jb(),a.C.S(b,"contextmenu",a.P5),a.C.S(b,"touchstart",a.m0,null,!0),a.C.S(b,"touchmove",a.EW,null,!0),a.C.S(b,"touchend",a.EW,null,!0))};
DNa=function(a){a.F.isFullscreen()?g.yS(a.F,a.element,10):a.Ea(document.body)};
g.sU=function(a,b,c){c=void 0===c?240:c;g.V.call(this,{G:"button",Ia:["ytp-button","ytp-copylink-button"],X:{title:"{{title-attr}}","data-tooltip-opaque":String(g.iK(a.T()))},W:[{G:"div",N:"ytp-copylink-icon",ra:"{{icon}}"},{G:"div",N:"ytp-copylink-title",ra:"Copy link",X:{"aria-hidden":"true"}}]});this.api=a;this.j=b;this.u=c;this.visible=!1;this.tooltip=this.j.Hc();b=a.T();gU(this.tooltip);g.Mp(this.element,"ytp-show-copylink-title",g.iK(b)&&!g.rK(b));a.sb(this.element,this,86570);this.Ra("click",
this.onClick);this.S(a,"videodatachange",this.Qa);this.S(a,"videoplayerreset",this.Qa);this.S(a,"appresize",this.Qa);this.Qa();g.lb(this,g.QS(this.tooltip,this.element))};
ENa=function(a){var b=a.api.T(),c=a.api.getVideoData(),d=a.api.jb().getPlayerSize().width,e=b.K("shorts_mode_to_player_api")?a.api.Tb():a.j.Tb(),f=b.B;return!!c.videoId&&d>=a.u&&c.Wn&&!(c.pd&&b.Z)&&!e&&!f};
FNa=function(a){a.updateValue("icon",mQ());if(a.api.T().u)tU(a.tooltip,a.element,"Link copied to clipboard");else{a.updateValue("title-attr","Link copied to clipboard");RS(a.tooltip);tU(a.tooltip,a.element);var b=a.Ra("mouseleave",function(){a.Fc(b);a.Qa();a.tooltip.vk()})}};
GNa=function(a,b){return g.A(function(c){if(1==c.j)return g.ua(c,2),g.y(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.xa(c);var d=c.return,e=!1,f=g.Ze("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(kB){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)})};
uU=function(a){g.V.call(this,{G:"div",N:"ytp-doubletap-ui-legacy",W:[{G:"div",N:"ytp-doubletap-fast-forward-ve"},{G:"div",N:"ytp-doubletap-rewind-ve"},{G:"div",N:"ytp-doubletap-static-circle",W:[{G:"div",N:"ytp-doubletap-ripple"}]},{G:"div",N:"ytp-doubletap-overlay-a11y"},{G:"div",N:"ytp-doubletap-seek-info-container",W:[{G:"div",N:"ytp-doubletap-arrows-container",W:[{G:"span",N:"ytp-doubletap-base-arrow"},{G:"span",N:"ytp-doubletap-base-arrow"},{G:"span",N:"ytp-doubletap-base-arrow"}]},{G:"div",
N:"ytp-doubletap-tooltip",W:[{G:"div",N:"ytp-chapter-seek-text-legacy",ra:"{{seekText}}"},{G:"div",N:"ytp-doubletap-tooltip-label",ra:"{{seekTime}}"}]}]}]});this.F=a;this.C=new g.Ap(this.show,10,this);this.u=new g.Ap(this.hide,700,this);this.I=this.B=0;this.D=!1;this.j=this.Da("ytp-doubletap-static-circle");g.I(this,this.C);g.I(this,this.u);this.hide();this.J=this.Da("ytp-doubletap-fast-forward-ve");this.V=this.Da("ytp-doubletap-rewind-ve");this.F.sb(this.J,this,28240);this.F.sb(this.V,this,28239);
this.F.Va(this.J,!0);this.F.Va(this.V,!0);this.D=a.K("web_show_cumulative_seek_time")};
vU=function(a,b,c){a.B=b===a.I?a.B+c:c;a.I=b;var d=a.F.jb().getPlayerSize();a.D?a.u.stop():g.Dp(a.u);a.C.start();a.element.setAttribute("data-side",-1===b?"back":"forward");g.Ip(a.element,"ytp-time-seeking");a.j.style.width="110px";a.j.style.height="110px";1===b?(a.j.style.right="",a.j.style.left=.8*d.width-30+"px"):-1===b&&(a.j.style.right="",a.j.style.left=.1*d.width-15+"px");a.j.style.top=.5*d.height+15+"px";HNa(a,a.D?a.B:c)};
INa=function(a,b,c){g.Dp(a.u);a.C.start();switch(b){case -1:b="back";break;case 1:b="forward";break;default:b=""}a.element.setAttribute("data-side",b);a.j.style.width="0";a.j.style.height="0";g.Ip(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","")};
HNa=function(a,b){b=g.pO("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)};
yU=function(a,b,c){c=void 0===c?!0:c;g.V.call(this,{G:"div",N:"ytp-suggested-action"});var d=this;this.F=a;this.Ub=b;this.ob=this.Z=this.I=this.u=this.j=this.C=this.expanded=this.enabled=this.Ja=!1;this.Za=new g.Ap(function(){d.badge.element.style.width=""},200,this);
this.Ga=new g.Ap(function(){wU(d);xU(d)},200,this);
this.dismissButton=new g.V({G:"button",Ia:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.I(this,this.dismissButton);this.B=new g.V({G:"div",N:"ytp-suggested-action-badge-expanded-content-container",W:[{G:"label",N:"ytp-suggested-action-badge-title",ra:"{{badgeLabel}}"},this.dismissButton]});g.I(this,this.B);this.oa=new g.V({G:"div",N:"ytp-suggested-action-badge-icon-container",W:[c?{G:"div",N:"ytp-suggested-action-badge-icon"}:""]});g.I(this,this.oa);this.badge=new g.V({G:"button",
Ia:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],W:[this.oa,this.B]});g.I(this,this.badge);this.badge.Ea(this.element);this.D=new g.WQ(this.badge,250,!1,100);g.I(this,this.D);this.Pa=new g.WQ(this.B,250,!1,100);g.I(this,this.Pa);this.ib=new g.yp(this.i9,null,this);g.I(this,this.ib);this.La=new g.yp(this.U2,null,this);g.I(this,this.La);g.I(this,this.Za);g.I(this,this.Ga);this.F.Yf(this.badge.element,this.badge,!0);this.F.Yf(this.dismissButton.element,this.dismissButton,
!0);this.S(this.F,"onHideControls",function(){d.YG(!1)});
this.S(this.F,"onShowControls",function(){d.YG(!0)});
this.S(this.badge.element,"click",this.WG);this.S(this.dismissButton.element,"click",this.UC);this.S(this.F,"pageTransition",this.n0);this.S(this.F,"appresize",this.cm);this.S(this.F,"fullscreentoggled",this.a6);this.S(this.F,"cardstatechange",this.G5);this.S(this.F,"annotationvisibility",this.L9,this);this.S(this.F,"offlineslatestatechange",this.M9,this)};
wU=function(a){g.Mp(a.badge.element,"ytp-suggested-action-badge-with-controls",a.I||!a.C)};
xU=function(a,b){var c=a.gI();a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.ib.stop(),a.La.stop(),a.Za.stop(),a.ib.start()):(g.iQ(a.B,a.expanded),g.Mp(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),JNa(a))};
JNa=function(a){a.j&&a.F.Va(a.badge.element,a.Rz());a.u&&a.F.Va(a.dismissButton.element,a.Rz()&&a.gI())};
KNa=function(a){var b=a.text||"";g.mf(g.Te("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.tb?a.tb:"")};
zU=function(a,b){b?a.u&&a.F.qb(a.dismissButton.element):a.j&&a.F.qb(a.badge.element)};
LNa=function(a,b){yU.call(this,a,b,!1);this.V=[];this.C=!0;this.badge.element.classList.add("ytp-featured-product");this.banner=new g.V({G:"a",N:"ytp-featured-product-container",X:{href:"{{url}}",target:"_blank"},W:[{G:"div",N:"ytp-featured-product-thumbnail",W:[{G:"img",X:{src:"{{thumbnail}}"}},{G:"div",N:"ytp-featured-product-open-in-new"}]},{G:"div",N:"ytp-featured-product-details",W:[{G:"text",N:"ytp-featured-product-title",ra:"{{title}}"},{G:"text",N:"ytp-featured-product-vendor",ra:"{{vendor}}"},
{G:"text",N:"ytp-featured-product-price",ra:"{{price}}"}]},this.dismissButton]});g.I(this,this.banner);this.banner.Ea(this.B.element);this.S(this.F,g.WD("featured_product"),this.Y8);this.S(this.F,g.XD("featured_product"),this.LH);this.S(this.F,"videodatachange",this.onVideoDataChange)};
NNa=function(a,b){MNa(a);if(b){var c=g.vM.getState().entities;c=FL(c,"featuredProductsEntity",b);if(null!=c&&c.productsData){b=[];c=g.v(c.productsData);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;if(null!=(e=d)&&e.identifier&&d.featuredSegments){a.V.push(d);var f=void 0;e=g.v(null==(f=d)?void 0:f.featuredSegments);for(f=e.next();!f.done;f=e.next())(f=f.value)&&b.push(new g.UD(1E3*Number(f.startTimeSec),1E3*Number(f.endTimeSec)||0x7ffffffffffff,{id:d.identifier,namespace:"featured_product"}))}}a.F.Ae(b)}}};
MNa=function(a){a.V=[];a.F.hf("featured_product")};
QNa=function(a,b,c){g.V.call(this,{G:"div",Ia:["ytp-info-panel-action-item"],W:[{G:"div",N:"ytp-info-panel-action-item-disclaimer",ra:"{{disclaimer}}"},{G:"a",Ia:["ytp-info-panel-action-item-button","ytp-button"],X:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},W:[{G:"div",N:"ytp-info-panel-action-item-icon",ra:"{{icon}}"},{G:"div",N:"ytp-info-panel-action-item-label",ra:"{{label}}"}]}]});this.F=a;this.j=c;this.disclaimer=this.Da("ytp-info-panel-action-item-disclaimer");this.button=
this.Da("ytp-info-panel-action-item-button");this.De=!1;this.F.Yf(this.element,this,!0);this.Ra("click",this.onClick);a="";c=g.S(null==b?void 0:b.onTap,g.bQ);var d=g.S(c,g.sM);this.De=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.De=!0,ak(this.button,g.$d(a))):(d=g.S(c,ONa))&&!this.j?((a=d.phoneNumbers)&&0<a.length?(a="sms:"+a[0],d.messageText&&(a+="?&body="+encodeURI(d.messageText))):a="",this.De=!0,c=this.button,d=a,Yb(d,"sms:")&&Dba(d)||(d="about:invalid#zClosurez"),ak(c,Zd(d))):(c=
g.S(c,PNa))&&!this.j&&(a=c.phoneNumber?"tel:"+c.phoneNumber:"",this.De=!0,c=a,Yb(c,"tel:")||(c="about:invalid#zClosurez"),ak(this.button,Zd(c)));var e;if(c=null==(e=b.disclaimerText)?void 0:e.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var f;this.update({label:null==(f=b.bodyText)?void 0:f.content,icon:uQ(),disclaimer:c})}else{this.disclaimer.style.display="none";var h;this.update({label:null==(h=b.bodyText)?void 0:h.content,icon:uQ()})}this.F.jg(this.element,
b.trackingParams||null);this.De&&(this.u={externalLinkData:{url:a}})};
RNa=function(a,b){var c=eQ();g.AS.call(this,a,{G:"div",N:"ytp-info-panel-detail-skrim",W:[{G:"div",N:"ytp-info-panel-detail",X:{role:"dialog",id:c},W:[{G:"div",N:"ytp-info-panel-detail-header",W:[{G:"div",N:"ytp-info-panel-detail-title",ra:"{{title}}"},{G:"button",Ia:["ytp-info-panel-detail-close","ytp-button"],X:{"aria-label":"Close"},W:[g.pQ()]}]},{G:"div",N:"ytp-info-panel-detail-body",ra:"{{body}}"},{G:"div",N:"ytp-info-panel-detail-items"}]}]},250);this.j=b;this.items=this.Da("ytp-info-panel-detail-items");
this.B=new g.eI(this);this.itemData=[];this.C=c;b=this.Da("ytp-info-panel-detail-close");this.S(b,"click",this.Fb);b=this.Da("ytp-info-panel-detail-skrim");this.S(b,"click",this.Fb);b=this.Da("ytp-info-panel-detail");this.S(b,"click",function(d){d.stopPropagation()});
g.I(this,this.B);this.F.Yf(this.element,this,!0);this.S(a,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",a.getVideoData());this.hide()};
SNa=function(a,b){a=g.v(a.itemData);for(var c=a.next();!c.done;c=a.next())c=c.value,c.F.Va(c.element,b)};
VNa=function(a,b,c){g.V.call(this,{G:"div",N:"ytp-info-panel-preview",X:{"aria-live":"assertive","aria-atomic":"true","aria-owns":c.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.iK(a.T()))},W:[{G:"div",N:"ytp-info-panel-preview-text",ra:"{{text}}"},{G:"div",N:"ytp-info-panel-preview-chevron",ra:"{{chevron}}"}]});var d=this;this.F=a;this.Te=this.j=this.videoId=null;this.C=this.showControls=this.u=!1;this.S(this.element,"click",function(){a.qb(d.element);b.Gl();BS(c)});
this.B=new g.WQ(this,250,!1,100);g.I(this,this.B);this.F.Yf(this.element,this,!0);this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"presentingplayerstatechange",this.zd);this.S(this.F,"paidcontentoverlayvisibilitychange",this.cW);this.S(this.F,"infopaneldetailvisibilitychange",this.cW);var e=a.getVideoData()||{};TNa(e)&&UNa(this,e);this.S(a,"onShowControls",this.q0);this.S(a,"onHideControls",this.o0)};
UNa=function(a,b){if(!b.Gf||!a.F.Mo()){var c=b.IJ||1E4,d=TNa(b);a.j?b.videoId&&b.videoId!==a.videoId&&(g.Dp(a.j),a.videoId=b.videoId,d?(WNa(a,c,b),a.md()):(a.Fb(),a.j.dispose(),a.j=null)):d&&(b.videoId&&(a.videoId=b.videoId),WNa(a,c,b),a.md())}};
TNa=function(a){var b,c,d,e;return!!(null==(b=a.Wd)?0:null==(c=b.title)?0:c.content)||!!(null==(d=a.Wd)?0:null==(e=d.bodyText)?0:e.content)};
WNa=function(a,b,c){a.j&&a.j.dispose();a.j=new g.Ap(a.b9,b,a);g.I(a,a.j);var d;b=(null==(d=c.Wd)?void 0:d.trackingParams)||null;a.F.jg(a.element,b);var e;var f,h;if(null==c?0:null==(f=c.Wd)?0:null==(h=f.title)?0:h.content){var l;d=null==(e=c.Wd)?void 0:null==(l=e.title)?void 0:l.content;var m,n;if(null==(m=c.Wd)?0:null==(n=m.bodyText)?0:n.content)d+=" \u2022 ";e=d}else e="";var p,q;c=(null==(p=c.Wd)?void 0:null==(q=p.bodyText)?void 0:q.content)||"";a.update({text:e+c,chevron:g.oQ()})};
XNa=function(a,b){a.j&&(g.UN(b,8)?(a.u=!0,a.md(),a.j.start()):(g.UN(b,2)||g.UN(b,64))&&a.videoId&&(a.videoId=null))};
AU=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
BU=function(a,b){var c=0;a=g.v(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1};
YNa=function(a,b){for(var c=0,d=g.v(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b<e.timeRangeStartMillis)return null;if(b>=e.timeRangeStartMillis&&b<e.timeRangeStartMillis+e.j)break;c++}c+1<a.length&&a[c+1].timeRangeStartMillis<=b&&c++;return c<a.length?c:null};
ZNa=function(a,b){b=BU(a,b)+1;return b<a.length?b:-1};
$Na=function(a,b){return BU(a,b)-1};
aOa=function(a,b){return new g.UD(a,b,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+a})};
g.DU=function(a,b,c,d,e,f,h,l){g.eI.call(this);var m=this;this.api=a;this.contextMenu=c;this.Ve=d;this.Oc=e;this.j=f;this.C=h;this.Jc=l;this.B=new g.Ap(function(){bOa(m,!1)},1E3);
this.u="";g.I(this,this.B);this.S(b,"mousedown",function(){CU(m,!1)});
this.S(c.element,"mousedown",function(){CU(m,!1)});
this.S(b,"keydown",this.nU);this.S(c.element,"keydown",this.nU);this.S(b,"keyup",this.oU);this.S(c.element,"keyup",this.oU)};
CU=function(a,b){g.Mp(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.Mp(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
FU=function(a,b,c,d){var e=g.DT(a.api.wb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.EU.length;h++){var l=g.EU[h];if(l.option===b){e=l.options;break}}h=void 0;for(l=0;l<e.length;l++)e[l].option===f[b]&&(h=l);if(d)if(c){if(0===h)return}else if(h===e.length-1)return;d={};d[b]=e[(h+(c?e.length-1:1))%e.length].option;a.api.updateSubtitlesUserSettings(d);bOa(a,!0);a.B.start()}};
bOa=function(a,b){g.DT(a.api.wb())&&a.api.setOption("captions","sampleSubtitles",b)};
dOa=function(a){var b,c;a=null==(b=a.api.getVideoData())?void 0:null==(c=b.getPlayerResponse())?void 0:c.playabilityStatus;if(!a)return!1;var d;return"PLAYBACK_MODE_PAUSED_ONLY"===(null==(d=g.S(a.miniplayer,cOa))?void 0:d.playbackMode)};
g.GU=function(a,b,c){g.V.call(this,{G:"button",Ia:["ytp-button","ytp-overflow-button"],X:{title:"More","aria-haspopup":"true","aria-owns":c.element.id},W:[{G:"div",N:"ytp-overflow-icon",W:[{G:"svg",X:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},W:[{G:"path",X:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var d=this;this.F=a;this.j=b;this.Ah=c;this.u=this.visible=!1;this.tooltip=
this.j.Hc();a.sb(this.element,this,16499);this.S(a,"videoplayerreset",this.Qa);this.S(a,"appresize",this.Qa);this.S(a,"fullscreentoggled",this.Qa);this.S(a,"presentingplayerstatechange",this.Qa);this.Qa();g.lb(this,g.QS(this.tooltip,this.element));this.Ra("click",function(){a.qb(d.element);BS(c,d.element,!1)});
this.S(c.closeButton,"click",function(){d.focus()})};
eOa=function(a,b){g.AS.call(this,a,{G:"div",N:"ytp-overflow-panel",X:{id:eQ(),role:"dialog"},W:[{G:"div",N:"ytp-overflow-panel-content",W:[{G:"div",N:"ytp-overflow-panel-action-buttons",ra:"{{buttons}}"}]},{G:"button",Ia:["ytp-overflow-panel-close","ytp-button"],X:{title:"Close"},W:[g.pQ()]}]},250);this.actionButtons=[];this.tooltip=b.Hc();this.j=this.Da("ytp-overflow-panel-content");this.closeButton=this.Da("ytp-overflow-panel-close");this.S(this.closeButton,"click",this.Fb);g.lb(this,g.QS(this.tooltip,
this.closeButton));this.Ra("click",this.r0);this.S(a,"videoplayerreset",this.hide);this.S(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
fOa=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.updateValue("buttons",a.actionButtons))};
gOa=function(a,b){a=g.v(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.Zb(b)};
hOa=function(a,b,c){var d=g.qT(b,c),e=a.T(),f=d.vg("default.jpg");g.V.call(this,{G:"a",Ia:["ytp-video-menu-item","ytp-button"],X:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},W:[{G:"div",N:"ytp-video-menu-item-index",ra:String(c+1)},{G:"div",N:"ytp-video-menu-item-now-playing",ra:"\u25b6"},{G:"div",N:"ytp-video-menu-item-thumbnail",X:{style:f?"background-image: url("+f+");":void 0}},{G:"div",N:"ytp-video-menu-item-title",ra:d.title},{G:"div",
N:"ytp-video-menu-item-author",ra:d.author}]});this.api=a;this.index=c;this.Ra("click",this.onClick)};
iOa=function(a){g.AS.call(this,a,{G:"div",N:"ytp-playlist-menu",X:{role:"dialog",id:eQ()},W:[{G:"div",N:"ytp-playlist-menu-header",W:[{G:"div",N:"ytp-playlist-menu-title",W:[a.T().B?{G:"span",N:"ytp-playlist-menu-title-name",ra:"{{title}}"}:{G:"a",N:"ytp-playlist-menu-title-name",X:{href:"{{playlisturl}}"},ra:"{{title}}"},{G:"button",Ia:["ytp-playlist-menu-close","ytp-button"],X:{"aria-label":"Close"},W:[g.pQ()]}]},{G:"div",N:"ytp-playlist-menu-subtitle",ra:"{{subtitle}}"}]},{G:"div",N:"ytp-playlist-menu-items",
X:{role:"menu"}}]},250);this.api=a;this.C=this.selected=this.D=this.playlist=null;this.items=this.Da("ytp-playlist-menu-items");this.B=new g.eI(this);this.j=[];var b=this.Da("ytp-playlist-menu-close");this.S(b,"click",this.Fb);b=this.Da("ytp-playlist-menu-title-name");a.T().B||(this.C=this.S(b,"click",this.K7));g.I(this,this.B);this.hide()};
HU=function(a,b,c){g.V.call(this,{G:"button",Ia:["ytp-playlist-menu-button","ytp-button"],X:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},W:[{G:"div",N:"ytp-playlist-menu-button-icon",W:[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,X:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{G:"div",N:"ytp-playlist-menu-button-text",ra:"{{text}}"}]});var d=this;this.api=a;this.u=b;this.playlist=null;this.visible=!1;this.tooltip=b.Hc();a.sb(this.element,this,70344);this.S(a,"videodatachange",this.j);this.S(a,"videoplayerreset",this.j);this.S(a,"onPlaylistUpdate",this.j);this.S(a,"presentingplayerstatechange",this.Qa);this.S(a,"appresize",this.Qa);this.hide();this.j();g.lb(this,g.QS(this.tooltip,this.element));this.Ra("click",function(){a.qb(d.element);BS(c,d.element,
!1)})};
jOa=function(a,b,c){g.V.call(this,{G:"div",N:"ytp-promotooltip-wrapper",W:[{G:"div",N:"ytp-promotooltip-container",W:[{G:"div",N:"ytp-promotooltip-content",W:[{G:"div",N:"ytp-promotooltip-title",ra:"{{title}}"},{G:"div",N:"ytp-promotooltip-details",ra:"{{details}}"}]},{G:"div",N:"ytp-promotooltip-buttons",W:[{G:"div",N:"ytp-promotooltip-dismiss-button",ra:"{{dismissButtonText}}",X:{tabindex:"0"}},{G:"div",N:"ytp-promotooltip-accept-button",ra:"{{acceptButtonText}}",X:{tabindex:"0","aria-haspopup":"true"}}]}]},
{G:"div",N:"ytp-promotooltip-pointer"}]});var d=this;this.tooltipRenderer=a;this.J=b;this.F=c;this.j=this.B=null;this.title=this.Da("ytp-promotooltip-title");this.details=this.Da("ytp-promotooltip-details");this.acceptButton=this.Da("ytp-promotooltip-accept-button");this.dismissButton=this.Da("ytp-promotooltip-dismiss-button");this.u=this.D=!1;this.C=!0;this.oa=this.I=this.Z=this.V=!1;this.ze={OD:function(e){d.OD(e)}};
g.iQ(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.u=!!a)this.F.Yf(this.element,this,!0),this.F.jg(this.element,a);this.S(c,"onShowControls",this.t0);this.S(c,"onHideControls",this.s0);this.S(c,"resize",this.Db);this.S(this.acceptButton,"click",this.d5);this.S(this.dismissButton,"click",this.W5);this.S(document,"click",this.u0)};
kOa=function(a){var b=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');b=0<b.length?b[0]:null;var c=g.Te("ytp-chrome-bottom"),d=g.Te("ytp-ad-module");a.C=!(null==c||!c.contains(b));a.V=!(null==d||!d.contains(b));a.Z=!(null==b||!b.hasAttribute("data-tooltip-target-fixed"));return b};
nOa=function(a,b,c){if(!a.D){if(b){a.tooltipRenderer=b;b=a.tooltipRenderer.text;var d=!1,e;(null==b?0:null==(e=b.runs)?0:e.length)&&b.runs[0].text&&(a.update({title:b.runs[0].text.toString()}),d=!0);g.Vm(a.title,d);b=a.tooltipRenderer.detailsText;e=!1;var f;if((null==b?0:null==(f=b.runs)?0:f.length)&&b.runs[0].text){d=b.runs[0].text.toString();f=d.indexOf("$TARGET_ICON");if(-1<f)if(a.tooltipRenderer.targetId){b=[];d=d.split("$TARGET_ICON");var h=new g.fQ({G:"span",N:"ytp-promotooltip-details-icon",
W:[lOa[a.tooltipRenderer.targetId]]});g.I(a,h);for(var l=[],m=g.v(d),n=m.next();!n.done;n=m.next())n=new g.fQ({G:"span",N:"ytp-promotooltip-details-component",ra:n.value}),g.I(a,n),l.push(n);2===d.length?(b.push(l[0].element),b.push(h.element),b.push(l[1].element)):1===d.length&&(0===f?(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("string"!==typeof f)for(g.gf(a.details),e=g.v(f),f=e.next();!f.done;f=e.next())a.details.appendChild(f.value);
else a.update({details:f});e=!0}}g.Vm(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,t;(null==(p=g.S(e,g.pM))?0:null==(q=p.text)?0:null==(t=q.runs)?0:t.length)&&g.S(e,g.pM).text.runs[0].text&&(a.update({acceptButtonText:g.S(e,g.pM).text.runs[0].text.toString()}),f=!0);g.Vm(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var w,z,C;(null==(w=g.S(p,g.pM))?0:null==(z=w.text)?0:null==(C=z.runs)?0:C.length)&&g.S(p,g.pM).text.runs[0].text&&(a.update({dismissButtonText:g.S(p,g.pM).text.runs[0].text.toString()}),
q=!0);g.Vm(a.dismissButton,q)}c&&(a.B=c);a.j=kOa(a);a.I=!1;a.F.T().K("web_player_hide_nitrate_promo_tooltip")||g.iQ(a,!0);mOa(a);a.yb&&!a.oa&&(a.oa=!0,a.ze.OD(0));a.u&&a.F.Va(a.element,a.yb)}};
IU=function(a){g.iQ(a,!1);a.u&&a.F.Va(a.element,a.yb)};
oOa=function(a){var b,c,d,e=(null==(b=g.S(a.acceptButton,g.pM))?void 0:null==(c=b.text)?void 0:null==(d=c.runs)?void 0:d.length)&&!!g.S(a.acceptButton,g.pM).text.runs[0].text,f,h,l;b=(null==(f=g.S(a.dismissButton,g.pM))?void 0:null==(h=f.text)?void 0:null==(l=h.runs)?void 0:l.length)&&!!g.S(a.dismissButton,g.pM).text.runs[0].text;return e||b};
mOa=function(a){var b;if(!(b=!a.j)){b=a.j;var c=window.getComputedStyle(b);b="none"===c.display||"hidden"===c.visibility||"true"===b.getAttribute("aria-hidden")}if(b||a.F.yg())g.iQ(a,!1);else if(b=g.Um(a.j),b.width&&b.height){a.J.Rv(a.element,a.j);var d=a.F.jb().getPlayerSize().height;c=g.Um(a.Da("ytp-promotooltip-container")).height;a.C?a.element.style.top=d-c-b.height-12+"px":a.Z||(d=a.J.Ak().height-c-b.height-12,a.element.style.top=d+"px");d=a.Da("ytp-promotooltip-pointer");var e=g.Sm(a.j,a.F.getRootNode()),
f=Number(a.element.style.left.replace(/[^\d\.]/g,""));a=a.F.isFullscreen()?18:12;d.style.left=e.x-f+b.width/2-a+"px";d.style.top=c+"px"}else g.iQ(a,!1)};
JU=function(a,b){g.V.call(this,{G:"button",Ia:["ytp-replay-button","ytp-button"],X:{title:"Replay"},W:[g.wQ()]});this.F=a;this.S(a,"presentingplayerstatechange",this.onStateChange);this.Ra("click",this.onClick,this);this.pc(a.Cb());g.QS(b.Hc(),this.element)};
g.KU=function(a,b,c,d){d=void 0===d?240:d;g.V.call(this,{G:"button",Ia:["ytp-button","ytp-share-button"],X:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.iK(a.T()))},W:[{G:"div",N:"ytp-share-icon",ra:"{{icon}}"},{G:"div",N:"ytp-share-title",ra:"Share"}]});this.api=a;this.j=b;this.B=c;this.C=d;this.visible=!1;this.tooltip=this.j.Hc();this.u=!1;a.sb(this.element,this,28664);this.Ra("click",this.onClick);this.S(a,"videodatachange",this.Qa);this.S(a,"videoplayerreset",
this.Qa);this.S(a,"appresize",this.Qa);this.S(a,"presentingplayerstatechange",this.Qa);this.Qa();g.lb(this,g.QS(this.tooltip,this.element))};
pOa=function(a){var b=a.api.T(),c=a.api.getVideoData(),d=g.iK(b)&&g.vS(a.api)&&g.UN(a.api.Cb(),128);b=b.B||b.disableSharing&&2!==a.api.getPresentingPlayerType()||!a.showShareButton(c,b)||c.Wn||d||c.pd&&b.Z||a.u;d=a.api.jb().getPlayerSize().width;return!!c.videoId&&d>=a.C&&!b};
qOa=function(a,b){"InvalidStateError"!==b.name&&"AbortError"!==b.name&&("NotAllowedError"===b.name?(a.j.Gl(),BS(a.B,a.element,!1)):g.zD(b))};
g.LU=function(a,b){var c=eQ(),d=a.T();c={G:"div",N:"ytp-share-panel",X:{id:eQ(),role:"dialog","aria-labelledby":c},W:[{G:"div",N:"ytp-share-panel-inner-content",W:[{G:"div",N:"ytp-share-panel-title",X:{id:c},ra:"Share"},{G:"a",Ia:["ytp-share-panel-link","ytp-no-contextmenu"],X:{href:"{{link}}",target:d.ea,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},ra:"{{linkText}}"},{G:"label",N:"ytp-share-panel-include-playlist",W:[{G:"input",N:"ytp-share-panel-include-playlist-checkbox",X:{type:"checkbox",
checked:"true"}},"Include playlist"]},{G:"div",N:"ytp-share-panel-loading-spinner",W:[JMa()]},{G:"div",N:"ytp-share-panel-service-buttons",ra:"{{buttons}}"},{G:"div",N:"ytp-share-panel-error",ra:"An error occurred while retrieving sharing information. Please try again later."}]},{G:"button",Ia:["ytp-share-panel-close","ytp-button"],X:{title:"Close"},W:[g.pQ()]}]};g.AS.call(this,a,c,250);var e=this;this.moreButton=null;this.api=a;this.tooltip=b.Hc();this.B=[];this.D=this.Da("ytp-share-panel-inner-content");
this.closeButton=this.Da("ytp-share-panel-close");this.S(this.closeButton,"click",this.Fb);g.lb(this,g.QS(this.tooltip,this.closeButton));this.C=this.Da("ytp-share-panel-include-playlist-checkbox");this.S(this.C,"click",this.Qa);this.j=this.Da("ytp-share-panel-link");g.lb(this,g.QS(this.tooltip,this.j));this.api.sb(this.j,this,164503);this.S(this.j,"click",function(f){if(e.api.K("web_player_add_ve_conversion_logging_to_outbound_links")){g.IO(f);e.api.qb(e.j);var h=e.api.getVideoUrl(!0,!0,!1,!1);h=
rOa(e,h);g.PT(h,e.api,f)&&e.api.Na("SHARE_CLICKED")}else e.api.qb(e.j)});
this.Ra("click",this.v0);this.S(a,"videoplayerreset",this.hide);this.S(a,"fullscreentoggled",this.onFullscreenToggled);this.S(a,"onLoopRangeChange",this.D4);this.hide()};
tOa=function(a,b){sOa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={rr:e.rr,fk:e.fk},f++){e.rr=c[f];a:switch(e.rr.img||e.rr.iconId){case "facebook":var h={G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{G:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":h={G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{G:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};break a;default:h=null}if(h){var l=e.rr.sname||e.rr.serviceName;e.fk=new g.V({G:"a",Ia:["ytp-share-panel-service-button","ytp-button"],X:{href:e.rr.url,target:"_blank",title:l},W:[h]});e.fk.Ra("click",function(p){return function(q){if(g.kR(q)){var t=p.rr.url;var w=void 0===w?{}:w;w.target=w.target||"YouTube";w.width=w.width||"600";w.height=w.height||"600";var z=w;z||(z={});w=window;var C=t instanceof Xd?t:g.$d("undefined"!=typeof t.href?t.href:String(t));var G=void 0!==self.crossOriginIsolated,
O="strict-origin-when-cross-origin";window.Request&&(O=(new Request("/")).referrerPolicy);var N="unsafe-url"===O;O=z.noreferrer;if(G&&O){if(N)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");O=!1}t=z.target||t.target;G=[];for(var K in z)switch(K){case "width":case "height":case "top":case "left":G.push(K+"="+z[K]);break;case "target":case "noopener":case "noreferrer":break;default:G.push(K+"="+(z[K]?1:0))}K=G.join(",");Fc()&&
w.navigator&&w.navigator.standalone&&t&&"_self"!=t?(z=g.Ze("A"),g.ne(z,C),z.target=t,O&&(z.rel="noreferrer"),C=document.createEvent("MouseEvent"),C.initMouseEvent("click",!0,!0,w,1),z.dispatchEvent(C),w={}):O?(w=$ba("",w,t,K),C=g.Yd(C),w&&(g.KK&&g.cc(C,";")&&(C="'"+C.replace(/'/g,"%27")+"'"),w.opener=null,""===C&&(C="javascript:''"),g.Sd("b/12014412, meta tag with sanitized URL"),C='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.Ge(C)+'">',C=g.me(C),(z=
w.document)&&z.write&&(z.write(g.fe(C)),z.close()))):((w=$ba(C,w,t,K))&&z.noopener&&(w.opener=null),w&&z.noreferrer&&(w.opener=null));w&&(w.opener||(w.opener=window),w.focus());g.IO(q)}}}(e));
g.lb(e.fk,g.QS(a.tooltip,e.fk.element));"Facebook"===l?a.api.sb(e.fk.element,e.fk,164504):"Twitter"===l&&a.api.sb(e.fk.element,e.fk,164505);a.S(e.fk.element,"click",function(p){return function(){a.api.qb(p.fk.element)}}(e));
a.api.Va(e.fk.element,!0);a.B.push(e.fk);d++}}var m=b.more||b.moreLink,n=new g.V({G:"a",Ia:["ytp-share-panel-service-button","ytp-button"],W:[{G:"span",N:"ytp-share-panel-service-button-more",W:[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{G:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"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.Ra("click",function(p){var q=m;a.api.K("web_player_add_ve_conversion_logging_to_outbound_links")&&(a.api.qb(a.moreButton.element),q=rOa(a,q));g.PT(q,a.api,p)&&a.api.Na("SHARE_CLICKED")});
g.lb(n,g.QS(a.tooltip,n.element));a.api.sb(n.element,n,164506);a.api.K("web_player_add_ve_conversion_logging_to_outbound_links")||a.S(n.element,"click",function(){a.api.qb(n.element)});
a.api.Va(n.element,!0);a.B.push(n);a.moreButton=n;a.updateValue("buttons",a.B)};
rOa=function(a,b){var c=a.api.T(),d={};c.ya&&g.iK(c)&&g.$R(d,c.loaderUrl);g.iK(c)&&(g.gS(a.api,"addEmbedsConversionTrackingParams",[d]),b=g.Ui(b,g.ZR(d,"emb_share")));return b};
sOa=function(a){for(var b=g.v(a.B),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.gb(c);a.B=[]};
vOa=function(a,b){yU.call(this,a,b);this.V=this.J=this.isContentForward=this.ya=this.Wa=this.Ya=!1;uOa(this);this.S(this.F,"changeProductsInVideoVisibility",this.J6);this.S(this.F,"videodatachange",this.onVideoDataChange);this.S(this.F,"paidcontentoverlayvisibilitychange",this.C6)};
wOa=function(a){a.Aa&&a.oa.element.removeChild(a.Aa.element);a.Aa=void 0};
yOa=function(a){return a.map(function(b){var c,d;if((b=null==(c=g.S(b,xOa))?void 0:null==(d=c.thumbnail)?void 0:d.thumbnails)&&0!==b.length)return b[0].url}).filter(function(b){return void 0!==b}).map(function(b){return new g.V({G:"img",
N:"ytp-suggested-action-product-thumbnail",X:{alt:"",src:b}})})};
zOa=function(a,b){a.isContentForward=b;g.Mp(a.badge.element,"ytp-suggested-action-badge-content-forward",b)};
MU=function(a){var b=a.isContentForward&&!a.gI();g.Mp(a.badge.element,"ytp-suggested-action-badge-preview-collapsed",b&&a.J);g.Mp(a.badge.element,"ytp-suggested-action-badge-preview-expanded",b&&a.V)};
NU=function(a,b,c){return new g.UD(1E3*a,1E3*b,{priority:9,namespace:c})};
AOa=function(a){a.F.hf("shopping_overlay_visible");a.F.hf("shopping_overlay_preview_collapsed");a.F.hf("shopping_overlay_preview_expanded");a.F.hf("shopping_overlay_expanded")};
uOa=function(a){a.S(a.F,g.WD("shopping_overlay_visible"),function(){a.Ag(!0)});
a.S(a.F,g.XD("shopping_overlay_visible"),function(){a.Ag(!1)});
a.S(a.F,g.WD("shopping_overlay_expanded"),function(){a.Z=!0;xU(a)});
a.S(a.F,g.XD("shopping_overlay_expanded"),function(){a.Z=!1;xU(a)});
a.S(a.F,g.WD("shopping_overlay_preview_collapsed"),function(){a.J=!0;MU(a)});
a.S(a.F,g.XD("shopping_overlay_preview_collapsed"),function(){a.J=!1;MU(a)});
a.S(a.F,g.WD("shopping_overlay_preview_expanded"),function(){a.V=!0;MU(a)});
a.S(a.F,g.XD("shopping_overlay_preview_expanded"),function(){a.V=!1;MU(a)})};
COa=function(a,b){g.V.call(this,{G:"div",N:"ytp-shorts-title-channel",W:[{G:"a",N:"ytp-shorts-title-channel-logo",X:{href:"{{channelLink}}",target:a.T().ea,"aria-label":"{{channelLogoLabel}}"}},{G:"div",N:"ytp-shorts-title-expanded-heading",W:[{G:"div",N:"ytp-shorts-title-expanded-title",W:[{G:"a",ra:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.T().ea,tabIndex:"0"}}]}]}]});var c=this;this.api=a;this.u=b;this.j=this.Da("ytp-shorts-title-channel-logo");this.channelName=this.Da("ytp-shorts-title-expanded-title");
this.subscribeButton=null;a.sb(this.j,this,36925);this.S(this.j,"click",function(d){c.api.K("web_player_ve_conversion_fixes_for_channel_info")?(c.api.qb(c.j),g.ek(OU(c)),d.preventDefault()):c.api.qb(c.j)});
a.sb(this.channelName,this,37220);this.api.K("web_player_ve_conversion_fixes_for_channel_info")&&this.S(this.channelName,"click",function(d){c.api.qb(c.channelName);g.ek(OU(c));d.preventDefault()});
BOa(this);this.S(a,"videodatachange",this.Qa);this.S(a,"videoplayerreset",this.Qa);this.Qa()};
BOa=function(a){if(!a.api.T().Bc){var b=a.api.getVideoData(),c=new g.hU("Subscribe",null,"Subscribed",null,!0,!1,b.bk,b.subscribed,"channel_avatar",null,a.api,a.u);a.api.Yf(c.element,a);var d;a.api.jg(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.S(c.element,"click",function(){a.api.qb(c.element)});
a.subscribeButton=c;g.I(a,a.subscribeButton);a.subscribeButton.Ea(a.element)}};
OU=function(a){var b=a.api.T(),c=a.api.getVideoData();c=g.PK(b)+c.Gc;if(!g.iK(b))return c;var d={};b.ya&&g.$R(d,a.api.T().loaderUrl);g.gS(a.api,"addEmbedsConversionTrackingParams",[d]);g.ZR(d,"emb_ch_name_ex");return g.Ui(c,d)};
PU=function(a){g.AS.call(this,a,{G:"button",Ia:["ytp-skip-intro-button","ytp-popup","ytp-button"],W:[{G:"div",N:"ytp-skip-intro-button-text",ra:"Skip Intro"}]},100);var b=this;this.B=!1;this.j=new g.Ap(function(){b.hide()},5E3);
this.ke=this.Vf=NaN;g.I(this,this.j);this.I=function(){b.show()};
this.D=function(){b.hide()};
this.C=function(){var c=b.F.getCurrentTime();c>b.Vf/1E3&&c<b.ke/1E3&&b.show()};
this.S(this.F,"videodatachange",function(c,d){b.Fs(c,d)});
this.S(this.element,"click",function(){b.F.seekTo(b.ke/1E3)});
this.hide()};
QU=function(a,b){g.V.call(this,{G:"button",Ia:["ytp-airplay-button","ytp-button"],X:{title:"AirPlay"},ra:"{{icon}}"});this.F=a;this.Ra("click",this.onClick);this.S(a,"airplayactivechange",this.Qa);this.S(a,"airplayavailabilitychange",this.Qa);this.Qa();g.lb(this,g.QS(b.Hc(),this.element))};
g.SU=function(a){g.V.call(this,{G:"div",N:"ytp-gradient-bottom"});this.u=g.Ze("CANVAS");this.j=this.u.getContext("2d");this.C=NaN;this.u.width=1;this.B=g.rK(a.T());g.RU(this,a.jb().getPlayerSize().height)};
g.RU=function(a,b){if(a.j){b=Math.floor(b*(a.B?1:.4));b=Math.max(b,47);var c=b+2;if(a.C!==c){a.C=c;a.u.height=c;a.j.clearRect(0,0,1,c);var d=a.j.createLinearGradient(0,2,0,2+b);if(a.B)d.addColorStop(.133,"rgba(0, 0, 0, 0.2)"),d.addColorStop(.44,"rgba(0, 0, 0, 0.243867)"),d.addColorStop(1,"rgba(0, 0, 0, 0.8)");else{var e=b-42;d.addColorStop(0,"rgba(0, 0, 0, 0)");d.addColorStop(e/b,"rgba(0, 0, 0, 0.3)");d.addColorStop(1,"rgba(0, 0, 0, 0.68)")}a.j.fillStyle=d;a.j.fillRect(0,2,1,b);a.element.style.height=
c+"px";try{a.element.style.backgroundImage="url("+a.u.toDataURL()+")"}catch(f){}}}};
TU=function(a,b,c,d,e){g.V.call(this,{G:"div",N:"ytp-chapter-container",W:[{G:"button",Ia:["ytp-chapter-title","ytp-button"],W:[{G:"span",X:{"aria-hidden":"true"},N:"ytp-chapter-title-prefix",ra:"\u2022"},{G:"div",N:"ytp-chapter-title-content",ra:"{{title}}",X:{title:e,"aria-label":e}},{G:"div",N:"ytp-chapter-title-chevron",W:[{G:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",X:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});this.F=a;
this.C=c;this.D="";this.currentIndex=0;this.j=void 0;this.u=!0;this.V=this.Da("ytp-chapter-container");this.B=this.Da("ytp-chapter-title");this.Z=this.Da("ytp-chapter-title-content");this.updateVideoData("newdata",this.F.getVideoData());this.S(a,"videodatachange",this.updateVideoData);this.S(this.V,"click",this.onClick);this.S(a,g.WD(d),this.wc);this.S(a,"onLoopRangeChange",this.wc);this.S(a,"innertubeCommand",this.onClickCommand);g.iK(this.F.T())||g.lb(this,g.QS(b.Hc(),this.Z))};
UU=function(a,b,c){TU.call(this,a,b,c,"chapterCueRange","View chapter")};
DOa=function(a,b,c,d,e){var f=b.zv/b.rows,h=Math.min(c/(b.KC/b.columns),d/f),l=b.KC*h,m=b.zv*h;l=Math.floor(l/b.columns)*b.columns;m=Math.floor(m/b.rows)*b.rows;var n=l/b.columns,p=m/b.rows,q=-b.column*n,t=-b.row*p;e&&45>=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+q+"px "+t+"px/"+l+"px "+m+"px"};
g.VU=function(a,b){g.V.call(this,{G:"div",N:"ytp-storyboard-framepreview",W:[{G:"div",N:"ytp-storyboard-framepreview-timestamp",ra:"{{timestamp}}"},{G:"div",N:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.Da("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.eI(this);this.j=new g.WQ(this,100);g.I(this,this.events);g.I(this,this.j);this.S(this.api,"presentingplayerstatechange",this.zd);b&&this.S(this.element,"click",function(){b.Tr()});
a.K("web_big_boards")&&g.Ip(this.element,"ytp-storyboard-framepreview-big-boards")};
EOa=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.S(a.api,"videodatachange",function(){EOa(a,a.api.Ej())}),a.events.S(a.api,"progresssync",a.Ie),a.events.S(a.api,"appresize",a.D)),a.B=NaN,FOa(a),a.j.show(200)):(c&&g.Hz(a.events),a.j.hide(),a.j.stop())};
FOa=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.jb().getPlayerSize(),e=VL(b,d.width);e=Xya(b,e,c);a.update({timestamp:g.jR(c)});e!==a.B&&(a.B=e,Vya(b,e,d.width),b=Tya(b,e,d.width),DOa(a.C,b,d.width,d.height))};
g.WU=function(a,b){g.V.call(this,{G:"button",Ia:["ytp-fullscreen-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"f","data-title-no-tooltip":"{{data-title-no-tooltip}}"},ra:"{{icon}}"});this.F=a;this.u=b;this.message=null;this.j=g.QS(this.u.Hc(),this.element);this.B=new g.Ap(this.f2,2E3,this);g.I(this,this.B);this.S(a,"fullscreentoggled",this.Xl);this.S(a,"presentingplayerstatechange",this.Qa);this.Ra("click",this.onClick);g.uz()&&(b=this.F.jb(),this.S(b,Foa(),this.JN),this.S(b,xz(document),
this.Hq));a.T().Ub||a.T().V||this.disable();a.sb(this.element,this,139117);this.Qa();this.Xl(a.isFullscreen())};
XU=function(a,b,c){g.V.call(this,{G:"button",Ia:["ytp-button","ytp-jump-button"],X:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}",style:"display: none;"},W:[0<c?{G:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",Ia:["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"}},
{G:"text",Ia:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"7.05",y:"15.05"}}]}:{G:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",Ia:["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"}},
{G:"text",Ia:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"6.5",y:"15"}}]}]});var d=this;this.F=a;this.C=b;this.j=c;this.u=new g.Ap(function(){d.B?(d.B=!1,d.u.start()):d.element.classList.remove("ytp-jump-spin","backwards")},250);
this.B=!1;(a=0<c)?this.F.sb(this.element,this,36843):this.F.sb(this.element,this,36844);a=g.pO(a?"Seek forward $SECONDS seconds.":"Seek backwards $SECONDS seconds.",{SECONDS:Math.abs(this.j).toString()});this.update({title:a,"data-title-no-tooltip":a});this.D=this.element.querySelector(".ytp-jump-button-text");this.D.textContent=Math.abs(this.j).toString();this.Ra("click",this.onClick,this)};
GOa=function(a,b){a.element.style.display=b?"block":"";a.F.Va(a.element,b)};
YU=function(a,b,c){TU.call(this,a,b,c,"timedMarkerCueRange","View key moments");this.S(a,g.XD("timedMarkerCueRange"),this.wc);this.S(a,"updatemarkervisibility",this.updateVideoData)};
HOa=function(a){var b,c=null==(b=a.F.getVideoData())?void 0:b.Vd;if(c)for(a=a.C.Bc,c=g.v(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("engagement-panel-macro-markers-problem-walkthroughs"!==(null==(d=b.onTap)?void 0:null==(e=d.innertubeCommand)?void 0:null==(f=e.changeEngagementPanelVisibilityAction)?void 0:f.targetId))return b}};
ZU=function(a,b){g.V.call(this,{G:"button",Ia:["ytp-miniplayer-button","ytp-button"],X:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button","aria-keyshortcuts":"i","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W:[REa()]});this.F=a;this.visible=!1;this.Ra("click",this.onClick);this.S(a,"fullscreentoggled",this.Qa);this.updateValue("title",g.QT(a,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});g.lb(this,g.QS(b.Hc(),this.element));a.sb(this.element,this,62946);
this.Qa()};
$U=function(a,b,c){g.V.call(this,{G:"button",Ia:["ytp-multicam-button","ytp-button"],X:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},W:[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,X:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z",
fill:"#fff"}}]}]});var d=this;this.F=a;this.j=!1;this.u=new g.Ap(this.B,400,this);this.tooltip=b.Hc();gU(this.tooltip);g.I(this,this.u);this.Ra("click",function(){BS(c,d.element,!1)});
this.S(a,"presentingplayerstatechange",function(){d.Qa(!1)});
this.S(a,"videodatachange",this.onVideoDataChange);this.Qa(!0);g.lb(this,g.QS(this.tooltip,this.element))};
IOa=function(a){g.AS.call(this,a,{G:"div",N:"ytp-multicam-menu",X:{role:"dialog"},W:[{G:"div",N:"ytp-multicam-menu-header",W:[{G:"div",N:"ytp-multicam-menu-title",W:["Switch camera",{G:"button",Ia:["ytp-multicam-menu-close","ytp-button"],X:{"aria-label":"Close"},W:[g.pQ()]}]}]},{G:"div",N:"ytp-multicam-menu-items"}]},250);this.api=a;this.B=new g.eI(this);this.items=this.Da("ytp-multicam-menu-items");this.j=[];g.I(this,this.B);a=this.Da("ytp-multicam-menu-close");this.S(a,"click",this.Fb);this.hide()};
aV=function(){g.E.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.yp(this.j,null,this);g.I(this,this.delay)};
JOa=function(a,b){if("path"===b.G)return b.X.d;if(b.W)for(var c=0;c<b.W.length;c++){var d=b.W[c];if(d&&"string"!==typeof d&&(d=JOa(a,d)))return d}};
NOa=function(a,b,c){c=JOa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=eQ();b=b.getElementsByTagName("use");for(var h=0;h<b.length;h++)b[h].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=KOa(e),m=KOa(c);LOa(a,function(n){d.setAttribute("d",MOa(l,m,n))},200)};
LOa=function(a,b,c){a.u=b;a.startTime=(0,g.GA)();a.duration=c;a.j()};
KOa=function(a){var b=[];a=a.match(OOa);for(var c=0;c<a.length;c++){var d=" "===a[c]?NaN:Number(a[c]);b.push(isNaN(d)?a[c]:d)}return b};
MOa=function(a,b,c){for(var d="",e=0;e<a.length;e++){var f=a[e];d="number"===typeof f?d+(f+(b[e]-f)*c):d+f}return d};
g.bV=function(a,b,c){c=void 0===c?!1:c;g.V.call(this,{G:"button",Ia:["ytp-mute-button","ytp-button"],X:a.T().Ya?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}"}:{"aria-disabled":"true","aria-haspopup":"true"},ra:"{{icon}}"});this.F=a;this.Ga=c;this.j=null;this.C=this.V=this.D=this.oa=NaN;this.ya=this.I=null;this.B=[];this.u=[];this.visible=!1;this.J=null;c=this.F.T();this.updateValue("icon",zQ());this.tooltip=b.Hc();this.j=new g.fQ({G:"svg",X:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"defs",W:[{G:"clipPath",X:{id:"ytp-svg-volume-animation-mask"},W:[{G:"path",X:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{G:"path",X:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{G:"path",N:"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"}}]},{G:"clipPath",X:{id:"ytp-svg-volume-animation-slash-mask"},W:[{G:"path",N:"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"}}]}]},
{G:"path",vc:!0,Ia:["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"}},{G:"path",vc:!0,Ia:["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.I(this,this.j);this.I=this.j.Da("ytp-svg-volume-animation-speaker");
this.ya=this.I.getAttribute("d");this.B=g.Se("ytp-svg-volume-animation-mover",this.j.element);this.u=g.Se("ytp-svg-volume-animation-hider",this.j.element);this.Aa=new aV;g.I(this,this.Aa);this.Z=new aV;g.I(this,this.Z);this.Ra("click",this.u6);this.S(a,"appresize",this.JR);this.S(a,"onVolumeChange",this.onVolumeChange);var d=null;if(c.Ya)g.lb(this,g.QS(b.Hc(),this.element));else{var e="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/);d=
new g.AS(a,{G:"span",Ia:["ytp-popup","ytp-generic-popup"],X:{tabindex:"0"},W:[e[0],{G:"a",X:{href:"https://web.archive.org/web/20230505074338/https://support.google.com/youtube/?p=noaudio",target:c.ea},ra:e[2]},e[4]]},100,!0);g.I(this,d);d.hide();d.subscribe("show",function(f){b.oy(d,f)});
g.yS(a,d.element,4)}this.message=d;a.sb(this.element,this,28662);this.JR(a.jb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
ROa=function(a,b){a.oa=b;var c=a.ya;b&&(c+=MOa(POa,QOa,b));a.I.setAttribute("d",c)};
SOa=function(a,b){a.V=b;for(var c=20*b,d=0;d<a.B.length;d++)a.B[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=zQ():e=a.j;for(c=0;c<a.u.length;c++){d=a.u[c];var f=void 0;if(null==(f=d)?0:f.style)d.style.display=0===b?"none":""}e!==a.J&&(a.updateValue("icon",e),a.J=e)};
TOa=function(a,b){g.V.call(this,{G:"button",Ia:["ytp-pip-button","ytp-button"],X:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},W:[REa()]});this.F=a;this.updateValue("title","Picture in Picture");this.Ra("click",this.onClick);g.lb(this,g.QS(b.Hc(),this.element))};
g.cV=function(a,b){g.V.call(this,{G:"button",Ia:["ytp-play-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},ra:"{{icon}}"});this.F=a;this.j=null;this.transition=new aV;this.tooltip=b.Hc();g.I(this,this.transition);a.sb(this.element,this,36842);a.Va(this.element,!0);this.S(a,"fullscreentoggled",this.onVideoDataChange);this.S(a,"presentingplayerstatechange",this.onStateChange);this.S(a,"videodatachange",this.onVideoDataChange);this.pc(a.Cb());
this.Ra("click",this.Yz,this);g.lb(this,g.QS(b.Hc(),this.element))};
UOa=function(a){switch(a){case 1:return vQ();case 2:return PEa();case 3:return g.wQ();case 4:return TEa();default:return null}};
g.dV=function(a,b,c){g.V.call(this,{G:"a",Ia:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],X:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},W:[c?sQ():SEa()]});var d=this;this.F=a;this.j=c;this.playlist=this.videoData=null;this.I=
!1;this.C=this.D=this.u=null;this.B=!1;this.tooltip=b.Hc();c?a.sb(this.element,this,6193):a.sb(this.element,this,6194);this.S(a,"fullscreentoggled",this.onVideoDataChange);this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"onPlaylistUpdate",this.onVideoDataChange);this.S(a,"onLoopRangeChange",this.onVideoDataChange);this.j||this.S(a,"appresize",this.DJ);this.S(a,"mdxpreviousnextchange",function(){VOa(d);d.DJ()});
this.onVideoDataChange()};
WOa=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
XOa=function(a){return!!a.playlist&&!a.j&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.F.getCurrentTime()&&2!==a.F.getPresentingPlayerType()};
YOa=function(a){var b=uS(a.F.wb());return b?a.j?b.Dk():b.No():!1};
VOa=function(a){var b={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},c=null!=a.playlist&&a.playlist.Dk();c=g.vS(a.F)&&(!a.j||c);var d=a.j&&g.zS(a.F),e=YOa(a),f=a.j&&5===a.F.getPresentingPlayerType(),h=g.QT(a.F,"Next","SHIFT+n"),l=g.QT(a.F,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.B)b.title="Replay";else if(c){var m=null;a.playlist&&(m=g.qT(a.playlist,a.j?ALa(a.playlist):BLa(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;
b.url=a.F.T().getVideoUrl(m.videoId,n?n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.jR(m.lengthSeconds):null;b.preview=m.vg("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=null==(m=a.videoData)?void 0:g.tM(m))b.url=l.Bk(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.jR(l.lengthSeconds):
null,b.preview=l.vg("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.I=!!b.url;d||c||a.B||e||f?a.u||(a.u=g.QS(a.tooltip,a.element),a.D=a.Ra("click",a.onClick,a)):a.u&&(a.u(),a.u=null,a.Fc(a.D),a.D=null);RS(a.tooltip)};
ZOa=function(a,b){var c={G:"div",N:"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}}"}};a.K("web_fix_fine_scrubbing_drag")&&(c={G:"div",N:"ytp-fine-scrubbing-draggable",W:[{G:"div",N:"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}}"}}]});g.V.call(this,{G:"div",N:"ytp-fine-scrubbing",W:[c,{G:"div",X:{"aria-hidden":"true"},N:"ytp-fine-scrubbing-cursor"},{G:"div",N:"ytp-fine-scrubbing-seek-time",X:{"aria-hidden":"true"},ra:"{{seekTime}}"},{G:"div",N:"ytp-fine-scrubbing-play",W:[vQ()],X:{title:"Play from this position",role:"button"}},{G:"div",N:"ytp-fine-scrubbing-dismiss",W:[g.pQ()],X:{title:"Exit precise seeking",
role:"button"}}]});this.api=a;this.B=this.Da("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Da("ytp-fine-scrubbing-dismiss");this.ya=this.api.K("web_fix_fine_scrubbing_drag")?this.Da("ytp-fine-scrubbing-draggable"):null;this.playButton=this.Da("ytp-fine-scrubbing-play");this.thumbnails=[];this.C=[];this.Ja=this.j=0;this.Ga=void 0;this.oa=NaN;this.Pa=this.V=this.u=this.D=0;this.I=[];this.interval=this.frameCount=0;this.J=160;this.scale=1;this.La=0;this.isEnabled=this.Aa=!1;g.lb(this,g.QS(b,
this.dismissButton));g.lb(this,g.QS(b,this.playButton));a.K("web_fix_fine_scrubbing_drag")?this.Z=new g.aT(this.ya,!0):this.Z=new g.aT(this.B,!0);this.Z.subscribe("dragstart",this.FJ,this);this.Z.subscribe("dragmove",this.EJ,this);this.Z.subscribe("dragend",this.x0,this);this.S(a,"SEEK_COMPLETE",this.oz);this.B.addEventListener("keydown",function(){});
g.I(this,this.Z);this.api.sb(this.element,this,153154);this.api.sb(this.B,this,152789);this.api.sb(this.dismissButton,this,153156);this.api.sb(this.playButton,this,153155)};
$Oa=function(a){a.oa=NaN;a.V=0;a.D=a.u};
cPa=function(a){var b=a.api.Ej();if(b){var c=90*a.scale,d=VL(b,160*a.scale);if(b=b.levels[d]){a.J=b.width;if(!a.I.length){d=[];for(var e=WL(b,b.gx()),f=b.columns*b.rows,h=b.frameCount,l=0;l<=e;l++)for(var m=h<f?Math.ceil(h/b.columns):b.rows,n=0;n<b.rows;n++){var p=h<b.columns?h:b.columns,q={url:b.Ze(l),column:0,columns:p,row:n,rows:m,KC:b.width*p,zv:b.height*m};d.push(q);h-=p;if(1>=h)break}a.I=d;a.frameCount=b.KE();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>a.I.length;)d=
void 0,null==(d=a.thumbnails.pop())||d.dispose();for(;a.thumbnails.length<a.I.length;)d=new aPa,a.thumbnails.push(d),d.Ea(a.B),g.I(a,d);for(d=0;d<a.I.length;d++)e=a.thumbnails[d].element,f=a.I[d],h=a.J*a.scale,l=f.zv/f.rows,m=c/l,e.style.background="url("+f.url+") 0 "+-f.row*f.zv/f.rows*m+"px/"+h*b.columns+"px "+l*f.rows*m+"px",e.style.width=h*f.columns+"px",e.style.height=c+"px";eV(a,a.api.getCurrentTime());for(c=a.api.getVideoData().Hj;a.C.length>c.length;)d=void 0,null==(d=a.C.pop())||d.dispose();
for(;a.C.length<c.length;)d=new bPa,a.C.push(new bPa),g.I(a,d);for(d=0;d<c.length;d++)e=c[d],a.C[d].update({chapterTitle:e.title}),e=Math.round(e.startTime/b.j),f=Math.floor(e/b.rows),g.Jm(a.C[d].element,"transform","translateX("+e%b.rows*a.J*a.scale+"px)"),f<a.thumbnails.length&&a.thumbnails[f]&&a.C[d].Ea(a.thumbnails[f].element);a.Aa=!0}}};
eV=function(a,b){a.update({seekTime:g.jR(b)});var c=a.J*a.scale;b=b<a.interval/2?-b*c/a.interval*2+a.j/2:-b*c/a.interval-c/2+a.j/2;b=g.pe(b,dPa(a),a.j/2);a.D=b;a.u=a.D;a.api.K("web_fix_fine_scrubbing_drag")?(g.Jm(a.ya,"transform","translateX("+(a.D-a.j/2)+"px)"),g.Jm(a.ya,"padding","0px "+a.j/2+"px"),g.Jm(a.B,"position","relative")):g.Jm(a.B,"transform","translateX("+a.D+"px)")};
ePa=function(a,b){var c=a.J*a.scale;b-=a.j/2;return b>-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval};
dPa=function(a){return-((a.B.offsetWidth||(a.frameCount-1)*a.J*a.scale)-a.j/2)};
aPa=function(){g.V.call(this,{G:"div",N:"ytp-fine-scrubbing-thumbnail"})};
bPa=function(){g.V.call(this,{G:"div",N:"ytp-fine-scrubbing-chapter-title",W:[{G:"div",N:"ytp-fine-scrubbing-chapter-title-content",ra:"{{chapterTitle}}"}]})};
gPa=function(a,b,c,d){d=void 0===d?!1:d;b=new fPa(b||a,c||a);return{x:a.x+.2*((void 0===d?0:d)?-1*b.j:b.j),y:a.y+.2*((void 0===d?0:d)?-1*b.u:b.u)}};
fPa=function(a,b){this.u=this.j=0;this.j=b.x-a.x;this.u=b.y-a.y};
hPa=function(a){g.V.call(this,{G:"div",N:"ytp-heat-map-chapter",W:[{G:"svg",N:"ytp-heat-map-svg",X:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},W:[{G:"defs",W:[{G:"clipPath",X:{id:"{{id}}"},W:[{G:"path",N:"ytp-heat-map-path",X:{d:"",fill:"white","fill-opacity":"0.6"}}]}]},{G:"rect",N:"ytp-heat-map-graph",X:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{G:"rect",N:"ytp-heat-map-hover",X:{"clip-path":"url(#hm_1)",
height:"100%",x:"0",y:"0"}},{G:"rect",N:"ytp-heat-map-play",X:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.I=this.Da("ytp-heat-map-svg");this.D=this.Da("ytp-heat-map-path");this.C=this.Da("ytp-heat-map-graph");this.B=this.Da("ytp-heat-map-play");this.u=this.Da("ytp-heat-map-hover");this.De=!1;this.j=60;a=""+g.Sa(this);this.update({id:a});a="url(#"+a+")";this.C.setAttribute("clip-path",a);this.B.setAttribute("clip-path",a);this.u.setAttribute("clip-path",a)};
fV=function(){g.V.call(this,{G:"div",N:"ytp-chapter-hover-container",W:[{G:"div",N:"ytp-progress-bar-padding"},{G:"div",N:"ytp-progress-list",W:[{G:"div",Ia:["ytp-play-progress","ytp-swatch-background-color"]},{G:"div",N:"ytp-progress-linear-live-buffer"},{G:"div",N:"ytp-load-progress"},{G:"div",N:"ytp-hover-progress"},{G:"div",N:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.C=this.Da("ytp-progress-linear-live-buffer");this.B=this.Da("ytp-ad-progress-list");
this.D=this.Da("ytp-load-progress");this.I=this.Da("ytp-play-progress");this.u=this.Da("ytp-hover-progress");this.j=this.Da("ytp-chapter-hover-container")};
gV=function(a,b){g.Jm(a.j,"width",b)};
iPa=function(a,b){g.Jm(a.j,"margin-right",b+"px")};
jPa=function(){this.fraction=this.position=this.u=this.j=this.B=this.width=NaN};
kPa=function(){g.V.call(this,{G:"div",N:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
lPa=function(a){return a.K("embeds_web_enable_video_data_refactoring_offline_and_progress_bar")};
g.iV=function(a,b){g.jQ.call(this,{G:"div",N:"ytp-progress-bar-container",X:{"aria-disabled":"true"},W:[{G:"div",Ia:["ytp-heat-map-container"],W:[{G:"div",N:"ytp-heat-map-edu"}]},{G:"div",Ia:["ytp-progress-bar"],X:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},W:[{G:"div",N:"ytp-chapters-container"},{G:"div",N:"ytp-timed-markers-container"},{G:"div",N:"ytp-clip-start-exclude"},
{G:"div",N:"ytp-clip-end-exclude"},{G:"div",N:"ytp-scrubber-container",W:[{G:"div",Ia:["ytp-scrubber-button","ytp-swatch-background-color"],W:[{G:"div",N:"ytp-scrubber-pull-indicator"}]}]}]},{G:"div",Ia:["ytp-fine-scrubbing-container"],W:[{G:"div",N:"ytp-fine-scrubbing-edu"}]},{G:"div",N:"ytp-bound-time-left",ra:"{{boundTimeLeft}}"},{G:"div",N:"ytp-bound-time-right",ra:"{{boundTimeRight}}"},{G:"div",N:"ytp-clip-start",X:{title:"{{clipstarttitle}}"},ra:"{{clipstarticon}}"},{G:"div",N:"ytp-clip-end",
X:{title:"{{clipendtitle}}"},ra:"{{clipendicon}}"}]});this.api=a;this.le=!1;this.Tf=this.Pa=this.J=this.Sf=0;this.Ud=null;this.Ja={};this.jc={};this.clipEnd=Infinity;this.Gb=this.Da("ytp-clip-end");this.hd=new g.aT(this.Gb,!0);this.tf=this.Da("ytp-clip-end-exclude");this.nh=this.Da("ytp-clip-start-exclude");this.clipStart=0;this.Ub=this.Da("ytp-clip-start");this.Kc=new g.aT(this.Ub,!0);this.Z=this.ib=0;this.Jc=this.Da("ytp-progress-bar");this.tb={};this.Bc={};this.Gc=this.Da("ytp-chapters-container");
this.Vf=this.Da("ytp-timed-markers-container");this.j=[];this.I=[];this.Wd={};this.uf=null;this.Wa=-1;this.ob=this.ya=0;this.V=null;this.Uf=this.Da("ytp-scrubber-button");this.oh=this.Da("ytp-scrubber-container");this.Za=new g.ve;this.Gf=new jPa;this.B=new mR(0,0);this.Bb=null;this.C=this.ke=!1;this.Rf=null;this.oa=this.Da("ytp-heat-map-container");this.rd=this.Da("ytp-heat-map-edu");this.D=[];this.heatMarkersDecorations=[];this.Ya=this.Da("ytp-fine-scrubbing-container");this.Uc=this.Da("ytp-fine-scrubbing-edu");
this.u=void 0;this.Aa=this.td=this.Ga=!1;this.tooltip=b.Hc();g.lb(this,g.QS(this.tooltip,this.Gb));g.I(this,this.hd);this.hd.subscribe("hoverstart",this.YV,this);this.hd.subscribe("hoverend",this.XV,this);this.S(this.Gb,"click",this.JH);g.lb(this,g.QS(this.tooltip,this.Ub));g.I(this,this.Kc);this.Kc.subscribe("hoverstart",this.YV,this);this.Kc.subscribe("hoverend",this.XV,this);this.S(this.Ub,"click",this.JH);mPa(this);this.S(a,"resize",this.Db);this.S(a,"presentingplayerstatechange",this.z0);this.S(a,
"videodatachange",this.Fs);this.S(a,"videoplayerreset",this.K3);this.S(a,"cuerangesadded",this.GY);this.S(a,"cuerangesremoved",this.F8);this.S(a,"cuerangemarkersupdated",this.GY);this.S(a,"onLoopRangeChange",this.KR);this.S(a,"innertubeCommand",this.onClickCommand);this.S(a,g.WD("timedMarkerCueRange"),this.J7);this.S(a,"updatemarkervisibility",this.EY);this.updateVideoData(a.getVideoData(),!0);this.KR(a.getLoopRange());hV(this)&&!this.u&&(this.u=new ZOa(this.api,this.tooltip),a=g.Rm(this.element).x||
0,this.u.Db(a,this.J),this.u.Ea(this.Ya),g.I(this,this.u),this.S(this.u.dismissButton,"click",this.Tr),this.S(this.u.playButton,"click",this.wL),this.S(this.u.element,"dblclick",this.wL));a=this.api.T();g.iK(a)&&a.u&&g.Ip(this.element,"ytp-no-contextmenu");this.api.sb(this.oa,this,139609,!0);this.api.sb(this.rd,this,140127,!0);this.api.sb(this.Uc,this,151179,!0);this.api.K("web_modern_miniplayer")&&(this.element.hidden=!0)};
mPa=function(a){if(0===a.j.length){var b=new fV;a.j.push(b);g.I(a,b);b.Ea(a.Gc,0)}for(;1<a.j.length;)a.j.pop().dispose();gV(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""};
nPa=function(a){for(;a.I.length;)a.I.pop().dispose()};
oPa=function(a){if(lPa(a)){var b,c,d,e,f;return null==(f=g.S(null==(e=g.S(null==(b=a.fd)?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,KL))?void 0:e.playerBar,tza))?void 0:f.chapters}return a.ZR};
pPa=function(a){for(var b=a.j,c=[],d=0;d<b.length;d++)if(!isNaN(b[d].startTime)){var e=b[d].startTime;e=new g.UD(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.hf("chapterCueRange");a.api.Ae(c)};
xPa=function(a,b){var c,d=null==(c=a.tb[b])?void 0:c.chapters;d&&(qPa(a,d),a.api.getVideoData().Hj=a.j,pPa(a));var e;if((c=null==(e=a.tb[b])?void 0:e.markers)&&"HEATSEEKER"!==b){nPa(a);e=g.v(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new kPa,d=g.S(d,g.rPa)){var f=void 0;c.title=(null==(f=d.title)?void 0:f.simpleText)||"";f=void 0;c.timeRangeStartMillis=null!=(f=d.timeRangeStartMillis)?f:NaN;var h=f=void 0;c.onActiveCommand=null!=(h=null==(f=d)?void 0:f.onActiveCommand)?h:void 0;sPa(a,c)}tPa(a,
a.I);e=a.I;c=a.Wd;d=[];for(f=0;f<e.length;f++)!isNaN(e[f].timeRangeStartMillis)&&e[f].onActiveCommand&&(h=aOa(e[f].timeRangeStartMillis,f===e.length-1?Infinity:e[f+1].timeRangeStartMillis),d.push(h),c[h.id]=e[f].onActiveCommand);a.api.Ae(d)}var l;if(b=g.S(null==(l=a.tb[b])?void 0:l.heatmap,uPa)){l=b.heatMarkers||[];var m;e=null!=(m=b.minHeightDp)?m:0;var n;m=null!=(n=b.maxHeightDp)?n:60;n=a.j.length;c=null;for(d=0;d<n;d++){h=a.j[d].startTime;var p=d===n-1?Infinity:a.j[d+1].startTime;if(d===a.D.length){f=
void 0;var q=a;f=void 0===f?NaN:f;var t=new hPa(q.api);q.D.push(t);g.I(q,t);t.Ea(q.oa);0<=f&&(t.element.style.width=f+"px")}f=[];c&&f.push(c);q=g.v(l);for(t=q.next();!t.done;t=q.next()){t=t.value;var w=void 0,z=void 0,C=null!=(z=null==(w=g.S(t,vPa))?void 0:w.timeRangeStartMillis)?z:-1;C>=h&&C<=p&&f.push(t)}0<m&&(a.oa.style.height=m+"px");h=a.D[d];q=0===d;q=void 0===q?!1:q;p=h;0<m&&(p.j=m,p.I.style.height=p.j+"px");p=h.j;q=void 0===q?!1:q;t=1E3/f.length;w=[];w.push({x:0,y:100});for(z=0;z<f.length;z++){var G=
void 0;C=(null==(G=g.S(f[z],vPa))?void 0:G.heatMarkerIntensityScoreNormalized)||0;G=(z+.5)*t;C=100-g.pe(100*C,e/p*100,m/p*100);0!==z||q||w.push({x:0,y:C});w.push({x:G,y:C});z===f.length-1&&w.push({x:1E3,y:C})}w.push({x:1E3,y:100});p=w;if(0===f.length)p="";else{q="";for(t=0;t<p.length;t++)w=p[t],0===t?w="M "+w.x.toFixed(1)+","+w.y.toFixed(1):(z=gPa(p[t-1],p[t-2],w),C=gPa(w,p[t-1],p[t+1],!0),w=" C "+(z.x.toFixed(1)+","+z.y.toFixed(1)+" "+C.x.toFixed(1)+","+C.y.toFixed(1)+" "+w.x.toFixed(1)+","+w.y.toFixed(1))),
q+=w;p=q}h.D.setAttribute("d",p);h.De=""!==p;g.Mp(h.api.getRootNode(),"ytp-heat-map",h.De);g.Mp(h.api.getRootNode(),"ytp-heat-map-played_bar",h.api.K("web_player_heat_map_played_bar")&&""!==p);0<f.length&&(c=f[f.length-1])}g.jV(a);l=[];b=g.v(b.heatMarkersDecorations||[]);for(e=b.next();!e.done;e=b.next())if(e=g.S(e.value,wPa))m=e.label,d=c=n=void 0,l.push({visibleTimeRangeStartMillis:null!=(n=e.visibleTimeRangeStartMillis)?n:-1,visibleTimeRangeEndMillis:null!=(c=e.visibleTimeRangeEndMillis)?c:-1,
decorationTimeMillis:null!=(d=e.decorationTimeMillis)?d:NaN,label:m?g.dE(m):""});a.heatMarkersDecorations=l}};
sPa=function(a,b){a.I.push(b);g.I(a,b);b.Ea(a.Vf,a.Vf.children.length)};
tPa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=yPa(a,c.timeRangeStartMillis/(1E3*a.B.j),kV(a));g.Jm(c.element,"transform","translateX("+d+"px) scaleX(0.6)")}};
qPa=function(a,b){var c=0,d=!1;b=g.v(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(g.S(e,zPa)){e=g.S(e,zPa);var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;f.title=h?g.dE(h):"";h=e.timeRangeStartMillis;null!=h&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.j[c].startTime=0,a.j[c].title="",a.j[c].onActiveCommand=e.onActiveCommand,c++,d=!0);a.j.length<=c&&(f=new fV,a.j.push(f),g.I(a,f),f.Ea(a.Gc,a.Gc.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<a.j.length;)a.j.pop().dispose();g.jV(a);lV(a)};
g.jV=function(a){a.ya=a.j.length-1;a.ob=0;APa(a,!0)&&APa(a,!1);for(var b=0,c=0;c<a.j.length;c++)if(0===a.j[c].width){if(c===a.j.length-1)for(var d=a.j.length-1;0<=d;d--)if(0<a.j[d].width){iPa(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;gV(a.j[d],e+"px");break}a.j[c].width=0;gV(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,gV(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,gV(a.j[c],d+"px"));c=0;if(a.D.length===a.j.length)for(b=0;b<
a.D.length;b++)d=a.j[b].width,a.D[b].element.style.width=d+"px",a.D[b].element.style.left=c+"px",c+=d+(a.C?3:2)};
APa=function(a,b){var c=0,d=!1,e=a.j.length,f=1E3*a.B.j;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.J){for(var h=a.J-(a.C?3:2)*a.ya,l=0===a.ob?3:h*a.ob,m=g.v(a.j),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.j[c].startTime;c<e-1&&(m=a.j[c+1].startTime-a.j[c].startTime,iPa(a.j[c],a.C?3:2));g.Mp(a.j[c].j,"ytp-exp-chapter-hover-container",1<a.j.length);n=(0===f?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,t=p.j[q-1];void 0!==t&&0<t.width?
t.width+=n:q<p.j.length-1&&(p.j[q+1].width+=n);iPa(p.j[q],0);b&&(a.ya--,m/f>a.ob&&(a.ob=m/f),d=!0)}c++}}return d};
lV=function(a){if(a.J){var b=a.api.getProgressState(),c=a.api.getVideoData();if(!(c&&c.enableServerStitchedDai&&c.enablePreroll)||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:dN(d))&&b.airingStart&&b.airingEnd?BPa(a,b.airingStart,b.airingEnd):BPa(a,b.seekableStart,b.seekableEnd);d=nR(c,b.loaded,0);b=nR(c,b.current,0);var e=a.B.u!==c.u||a.B.j!==c.j;a.B=c;mV(a,b,d);e&&CPa(a);DPa(a)}}};
BPa=function(a,b,c){return EPa(a)?new mR(Math.max(b,a.Bb.startTimeMs/1E3),Math.min(c,a.Bb.endTimeMs/1E3)):new mR(b,c)};
FPa=function(a,b){var c;if("repeatChapter"===(null==(c=a.Bb)?void 0:c.type)||"repeatChapter"===(null==b?void 0:b.type))b&&(b=a.j[BU(a.j,b.startTimeMs)],g.Mp(b.j,"ytp-repeating-chapter",!1)),a.Bb&&(b=a.j[BU(a.j,a.Bb.startTimeMs)],g.Mp(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.Mp(d.j,"ytp-exp-chapter-hover-container",!a.Bb)})};
oV=function(a,b){var c=qFa(a.B,b.fraction);if(1<a.j.length){c=nV(a,b.u,!0);for(var d=0,e=0;e<c;e++)0<a.j[e].width&&(d+=a.j[e].width,d+=a.C?3:2);c=(a.j[c].startTime+(b.u-d)/a.j[c].width*((c===a.j.length-1?1E3*a.B.j:a.j[c+1].startTime)-a.j[c].startTime))/1E3||0}return c};
GPa=function(a,b,c){return c>=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.B.j*(a.J-(a.C?3:2)*a.ya)};
CPa=function(a){a.Uf.style.removeProperty("height");for(var b=g.v(Object.keys(a.Ja)),c=b.next();!c.done;c=b.next())HPa(a,c.value);pV(a);mV(a,a.Z,a.ib)};
kV=function(a){var b=a.Za.x;b=g.pe(b,0,a.J);a.Gf.update(b,a.J);return a.Gf};
rV=function(a){return(a.C?135:90)-qV(a)};
qV=function(a){var b=48,c=a.api.T();a.C?b=54:g.iK(c)&&!c.u&&(b=40);return b};
mV=function(a,b,c){a.Z=b;a.ib=c;var d=kV(a),e=a.B.j,f=qFa(a.B,a.Z),h=g.pO("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.jR(f,!0),DURATION:g.jR(e,!0)}),l=BU(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.B.u),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.Bb&&2!==a.api.getPresentingPlayerType()&&(e=a.Bb.startTimeMs/1E3,f=a.Bb.endTimeMs/1E3);e=nR(a.B,e,0);l=nR(a.B,f,1);h=a.api.getVideoData();f=g.pe(b,e,l);c=(null==h?0:g.bN(h))?1:g.pe(c,e,
l);b=yPa(a,b,d);g.Jm(a.oh,"transform","translateX("+b+"px)");sV(a,d,e,f,"PLAY_PROGRESS");(null==h?0:dN(h))?(b=a.api.getProgressState().seekableEnd)&&sV(a,d,f,nR(a.B,b),"LIVE_BUFFER"):sV(a,d,e,c,"LOAD_PROGRESS");if(a.api.K("web_player_heat_map_played_bar")){var m;null!=(m=a.D[0])&&m.B.setAttribute("width",(100*f).toFixed(2)+"%")}};
sV=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.ya*(a.C?3:2),l=c*h;c=nV(a,l);var m=d*h;h=nV(a,m);"HOVER_PROGRESS"===e&&(h=nV(a,b.j*d,!0),m=b.j*d-IPa(a,b.j*d)*(a.C?3:2));b=Math.max(l-JPa(a,c),0);for(d=c;d<f;d++)a.j[d].ub(e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.j[f].ub(e),l=a.j[f].width,tV(a,d,f===c?l-b:l,l);f=a.j[h].width;m=g.pe(m-JPa(a,h),0,f);c===h&&(m-=b);b=a.j[h].ub(e);tV(a,b,m,f);m=a.j.length;for(h+=1;h<m;h++)KPa(a,h,e);for(h=0;h<c;h++)KPa(a,h,e)};
JPa=function(a,b){if(b>=a.j.length)return a.J;for(var c=0,d=0;d<b;)c+=a.j[d].width,d++;return c};
KPa=function(a,b,c){c=a.j[b].ub(c);tV(a,c,0,a.j[b].width)};
tV=function(a,b,c,d,e){e||a.api.T().u?b.style.width=c+"px":g.Jm(b,"transform","scalex("+(d?c/d:0)+")")};
nV=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=IPa(a,b)*(a.C?3:2));c=g.v(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};
yPa=function(a,b,c){for(var d=b*a.B.j*1E3,e=-1,f=g.v(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.j-(a.C?3:2)*a.ya)+(a.C?3:2)*(0>e?0:e)+c.B};
IPa=function(a,b){for(var c=a.j.length,d=0,e=g.v(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.C?3:2,d++;else break;return d===c?c-1:d};
g.uV=function(a,b,c,d){var e=a.J!==c,f=a.C!==d;a.Sf=b;a.J=c;a.C=d;hV(a)&&null!=(b=a.u)&&(b.scale=d?1.5:1);CPa(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.jV(a);a.u&&f&&hV(a)&&(a.u.isEnabled&&(c=a.C?135:90,d=c-qV(a),a.Ya.style.height=c+"px",g.Jm(a.oa,"transform","translateY("+-d+"px)"),g.Jm(a.Jc,"transform","translateY("+-d+"px)")),cPa(a.u))};
pV=function(a){var b=!!a.Bb&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Bb?(c=a.Bb.startTimeMs/1E3,d=a.Bb.endTimeMs/1E3):(e=c>a.B.u,f=0<a.B.j&&d<a.B.j);var h,l;if((null==(h=a.Bb)?0:h.postId)||"repeatChapter"===(null==(l=a.Bb)?void 0:l.type))f=e=!1;g.Mp(a.element,"ytp-loop-range-enabled",b);g.Mp(a.element,"ytp-clip-start-enabled",e);g.Mp(a.element,"ytp-clip-end-enabled",f);b=e?nR(a.B,c,0):0;d=f?nR(a.B,d,1):1;a.Ub.style.left=Math.round(1E3*b)/10+"%";a.Gb.style.left=
Math.round(1E3*d)/10+"%";a.nh.style.width=Math.round(1E3*b)/10+"%";a.tf.style.left=Math.round(1E3*d)/10+"%";a.tf.style.width=Math.round(1E3*(1-d))/10+"%"};
DPa=function(a){var b;if(null==(b=a.api.getVideoData())||!dN(b)){b=kV(a);sV(a,b,a.Z,Math.max(b.fraction,a.Z),"HOVER_PROGRESS");for(var c=nV(a,b.j*a.Z,!0),d=nV(a,b.u,!0),e=c;e<=d;e++)g.Mp(a.j[e].u,"ytp-hover-progress-light",b.fraction>a.Z);g.Mp(a.Uf,"ytp-scrubber-button-hover",c===d&&1<a.j.length);if(a.api.K("web_player_heat_map_played_bar")){var f;null!=(f=a.D[0])&&f.u.setAttribute("width",(100*b.fraction).toFixed(2)+"%")}}};
HPa=function(a,b){var c=a.Ja[b];b=a.jc[b];var d=kV(a),e=nR(a.B,c.start/1E3,0),f=Tsa(c,a.C)/d.width;var h=nR(a.B,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.pe(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.B,0)+"px";tV(a,b,g.pe((h-c)*d.j+d.B,0,d.width),d.width,!0)};
LPa=function(a,b){var c=b.getId();a.Ja[c]===b&&(g.jf(a.jc[c]),delete a.Ja[c],delete a.jc[c])};
hV=function(a){var b;return!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.yg()&&!a.api.isInline()};
vV=function(a){a.u&&(a.u.disable(),a.Pa=0,a.oa.style.removeProperty("transform"),a.Jc.style.removeProperty("transform"),a.Ya.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
MPa=function(a,b){var c=b/rV(a)*qV(a);g.Jm(a.Jc,"transform","translateY("+-b+"px)");g.Jm(a.oa,"transform","translateY("+-b+"px)");g.Jm(a.Ya,"transform","translateY("+c+"px)");a.Ya.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=qV(a)-c+"px")};
NPa=function(a,b){b?a.V||(a.element.removeAttribute("aria-disabled"),a.V=new g.aT(a.Jc,!0),a.V.subscribe("hovermove",a.M6,a),a.V.subscribe("hoverend",a.L6,a),a.V.subscribe("dragstart",a.K6,a),a.V.subscribe("dragmove",a.O6,a),a.V.subscribe("dragend",a.N6,a),a.Rf=a.Ra("keydown",a.A0)):a.V&&(a.element.setAttribute("aria-disabled","true"),a.Fc(a.Rf),a.V.cancel(),a.V.dispose(),a.V=null)};
g.OPa=function(a){var b=2*a.J*g.FK(),c=a.B;return 1E3*(c.j-c.u)/a.api.getPlaybackRate()/b};
EPa=function(a){var b;return!(null==(b=a.Bb)||!b.postId)&&2!==a.api.getPresentingPlayerType()};
wV=function(a,b,c){g.V.call(this,{G:"button",Ia:["ytp-remote-button","ytp-button"],X:{title:"Play on TV","aria-haspopup":"true"},ra:"{{icon}}"});this.F=a;this.Eb=c;this.j=null;this.S(a,"onMdxReceiversChange",this.Qa);this.S(a,"presentingplayerstatechange",this.Qa);this.S(a,"appresize",this.Qa);a.sb(this.element,this,139118);this.Qa();this.Ra("click",this.u,this);g.lb(this,g.QS(b.Hc(),this.element))};
xV=function(a,b,c){g.V.call(this,{G:"button",Ia:["ytp-button","ytp-settings-button"],X:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":eQ(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},W:[g.xQ()]});this.F=a;this.Eb=c;this.u=!0;this.Ra("click",this.B);this.S(a,"onPlaybackQualityChange",this.updateBadge);this.S(a,"videodatachange",this.updateBadge);this.S(a,"webglsettingschanged",this.updateBadge);this.S(a,"appresize",this.j);g.lb(this,g.QS(b.Hc(),this.element));
this.F.sb(this.element,this,28663);this.updateBadge();this.j(a.jb().getPlayerSize())};
PPa=function(a,b){a.u=!!b;a.j(a.F.jb().getPlayerSize())};
yV=function(a,b){SS.call(this,"Annotations",7);this.F=a;this.Eb=b;this.j=!1;a.K("web_settings_menu_icons")&&LS(this,{G:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"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.S(a,"videodatachange",this.Qa);this.S(a,"onApiChange",this.Qa);this.subscribe("select",this.onSelect,this);this.Qa()};
g.zV=function(a,b,c,d,e,f,h){g.FS.call(this,g.GS({"aria-haspopup":"true"}),b,a);this.Eb=d;this.I=!1;this.B=null;this.options={};this.u=new g.kU(c,void 0,a,e,f,h);g.I(this,this.u);this.Ra("keydown",this.B0);this.Ra("click",this.open)};
QPa=function(a){if(a.B){var b=a.options[a.B];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.B=null}};
g.AV=function(a,b){g.sNa(a.u);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.B;l&&(d=!0);h&&h.priority===-e?(g.CS(a.options[f],a.gk(f,!0)),delete a.options[f]):h=a.zK(f,-e,l);c[f]=h;a.u.Xc(h,!0)}d||(a.B=null);b=g.v(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
BV=function(a,b){g.zV.call(this,"Audio track",4,a,b);this.F=a;this.tracks={};this.j=new g.V({G:"div",W:[{G:"span",ra:"Audio track"},{G:"span",N:"ytp-menuitem-label-count",ra:"{{content}}"}]});a.K("web_settings_menu_icons")&&LS(this,{G:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"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.I(this,this.j);g.CS(this,this.j);this.S(a,"videodatachange",this.Qa);this.S(a,"onPlaybackAudioChange",this.Qa);this.Qa()};
CV=function(a,b){SS.call(this,"Autoplay",8);this.F=a;this.Eb=b;this.j=!1;this.B=[];this.S(a,"presentingplayerstatechange",this.u);this.subscribe("select",this.onSelect,this);a.sb(this.element,this,113682);this.u()};
RPa=function(a,b){g.FS.call(this,g.GS({"aria-haspopup":"false"}),0,"More options");this.F=a;this.Eb=b;this.S(this.element,"click",this.onClick);this.Eb.Xc(this)};
SPa=function(a,b){var c;g.GK(a.T())&&(c={G:"div",N:"ytp-panel-footer-content",W:[{G:"span",ra:"Adjust download quality from your "},{G:"a",N:"ytp-panel-footer-content-link",ra:"Settings",X:{href:"/account_downloads"}}]});g.zV.call(this,"Quality",3,a,b,void 0,void 0,c);this.F=a;this.oa={};this.V={};this.C={};this.ya=new Set;this.j=this.D=!1;this.J="unknown";this.Z="";this.D=this.F.K("web_player_use_new_api_for_quality_pullback");this.j=this.F.K("web_player_enable_premium_hbr_playback_cap");a.K("web_settings_menu_icons")&&
LS(this,{G:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"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.Ip(this.u.element,"ytp-quality-menu");this.S(a,"videodatachange",this.MA);this.S(a,"videoplayerreset",this.MA);this.S(a,"onPlaybackQualityChange",this.LR);this.MA();a.sb(this.element,this,137721)};
UPa=function(a,b,c){var d=a.oa[b],e=g.gF[b];return TPa(a,d?d.qualityLabel:e?e+"p":"Auto",b,c)};
VPa=function(a,b,c,d,e){var f=(b=a.j?a.C[b]:a.V[b])&&b.quality,h=b&&b.qualityLabel;h=h?h:"Auto";d&&(h="("+h);a=TPa(a,h,f||"",e);d&&a.W.push(")");(d=(d=b&&b.paygatedQualityDetails)&&d.paygatedIndicatorText)&&c&&a.W.push({G:"div",N:"ytp-premium-label",ra:d});return a};
TPa=function(a,b,c,d){b={G:"span",Ia:d,W:[b]};var e;d="ytp-swatch-color";if(a.D||a.j)d="ytp-swatch-color-white";"highres"===c?e="8K":"hd2880"===c?e="5K":"hd2160"===c?e="4K":0===c.indexOf("hd")&&"hd720"!==c&&(e="HD");e&&(b.W.push(" "),b.W.push({G:"sup",N:d,ra:e}));return b};
DV=function(a,b,c,d,e,f,h){g.V.call(this,{G:"div",N:"ytp-slider-section",X:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{G:"div",N:"ytp-slider",W:[{G:"div",N:"ytp-slider-handle"}]}]});this.V=a;this.J=b;this.u=c;this.C=d;this.Z=e;this.Aa=f;this.range=this.C-this.u;this.Ga=this.Da("ytp-slider-section");this.B=this.Da("ytp-slider");this.oa=this.Da("ytp-slider-handle");this.I=new g.aT(this.B,
!0);this.j=h?h:c;g.I(this,this.I);this.I.subscribe("dragmove",this.D0,this);this.S(this.element,"keydown",this.E0);this.S(this.element,"wheel",this.C0);this.init()};
EV=function(a){DV.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.F=a;this.D=g.Ze("P");this.Ja=sba(this.ya,this);g.Ip(this.B,"ytp-speedslider");g.Ip(this.D,"ytp-speedslider-text");a=this.B;a.parentNode&&a.parentNode.insertBefore(this.D,a.nextSibling);WPa(this);this.S(this.F,"onPlaybackRateChange",this.updateValues)};
WPa=function(a){a.D.textContent=XPa(a,a.j)+"x"};
XPa=function(a,b){a=Number(g.pe(b,a.u,a.C).toFixed(2));b=Math.floor(100*(a+.001)%5+2E-15);var c=a;0!==b&&(c=a-.01*b);return Number(c.toFixed(2))};
YPa=function(a){g.jQ.call(this,{G:"div",N:"ytp-speedslider-component"});this.j=new EV(a);g.I(this,this.j);this.element.appendChild(this.j.element)};
ZPa=function(a){var b=new YPa(a);jU.call(this,a,b,"Custom");g.I(this,b)};
$Pa=function(a,b){var c=new ZPa(a);g.zV.call(this,"Playback speed",6,a,b,"Custom",function(){g.nU(b,c)});
a.K("web_settings_menu_icons")&&LS(this,{G:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"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"}}]});g.I(this,c);this.F=a;this.C=this.j=this.J=null;this.D=this.F.getAvailablePlaybackRates();this.S(a,"presentingplayerstatechange",this.Qa);this.Qa()};
bQa=function(a,b){var c=aQa(b);a.options[c]?a.vj(c):b===a.C&&a.j&&(a.vj(a.j),a.je(b.toString()))};
dQa=function(a){g.AV(a,a.D.map(aQa));a.j=null;a.C=null;var b=a.F.getPlaybackRate();a.D.includes(b)||(cQa(a,b),g.zV.prototype.ah.call(a,a.j))};
cQa=function(a,b){a.C=b;a.j=g.pO("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.D.map(aQa);b.unshift(a.j);g.AV(a,b)};
aQa=function(a){return a.toString()};
fQa=function(a,b,c,d){var e=new g.kU(b,void 0,"Video Override");g.zV.call(this,d.text||"",a,b,c,"Video Override",function(){g.nU(c,e)});
var f=this;g.Ip(this.element,"ytp-subtitles-options-menu-item");this.J=d.option.toString();a=d.options;this.settings=g.Vb(a,this.getKey,this);this.D=e;g.I(this,this.D);b=new g.FS({G:"div",N:"ytp-menuitemtitle",ra:"Allow for a different caption style if specified by the video."},0);g.I(this,b);this.D.Xc(b,!0);this.C=new g.FS({G:"div",N:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},W:[{G:"div",N:"ytp-menuitem-label",ra:"On"}]},-1);g.I(this,this.C);this.D.Xc(this.C,!0);this.S(this.C.element,"click",
function(){eQa(f,!0)});
this.j=new g.FS({G:"div",N:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},W:[{G:"div",N:"ytp-menuitem-label",ra:"Off"}]},-2);g.I(this,this.j);this.D.Xc(this.j,!0);this.S(this.j.element,"click",function(){eQa(f,!1)});
g.AV(this,g.$l(a,this.getKey))};
eQa=function(a,b){a.ma("settingChange",a.J+"Override",!b);a.Eb.jj()};
FV=function(a,b){g.kU.call(this,a,void 0,"Options");var c=this;this.Us={};for(var d=0;d<g.EU.length;d++){var e=g.EU[d],f=new fQa(-d,a,b,e);g.I(this,f);f.subscribe("settingChange",this.Oj,this);this.Us[e.option.toString()]=f;this.Xc(f,!0)}a=new g.FS(g.GS(),-g.EU.length,"Reset");g.I(this,a);a.Ra("click",function(){c.Oj("reset",!0)});
this.Xc(a,!0)};
GV=function(a,b){g.zV.call(this,"Auto-translate",0,a,b);this.F=a;this.languages={};a.sb(this.element,this,127301);a.Va(this.element,!0)};
gQa=function(a,b){a.languages=g.Vb(b,a.getKey,a);g.AV(a,g.$l(b,a.getKey))};
iQa=function(a,b){var c=new FV(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.GK(a.T())&&(e={G:"div",N:"ytp-panel-footer-content",W:[{G:"span",ra:d[0]},{G:"a",N:"ytp-panel-footer-content-link",ra:"Settings",X:{href:"/account_playback"}},{G:"span",ra:d[1]}]});g.zV.call(this,"Subtitles/CC",5,a,b,"Options",function(){g.nU(b,c)},e);
var f=this;this.F=a;this.Eb=b;this.tracks={};this.J=new g.Ap(function(){hQa(f,!1)},3E3);
g.I(this,this.J);this.V=new g.V({G:"div",W:[{G:"span",ra:"Subtitles/CC"},{G:"span",N:"ytp-menuitem-label-count",ra:"{{content}}"}]});g.I(this,this.V);g.CS(this,this.V);a.K("web_settings_menu_icons")&&LS(this,{G:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",X:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z            M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z            M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",
fill:"white"}}]});this.j=new GV(a,b);g.I(this,this.j);this.j.subscribe("select",this.F0,this);this.D=c;g.I(this,this.D);this.D.subscribe("settingChange",this.Oj,this);b.subscribe("show",this.r7,this);this.S(a,"videodatachange",this.Qa);this.S(a,"onApiChange",this.Qa);this.S(a,"onCaptionsTrackListChanged",this.Qa);this.S(a,"captionschanged",this.Qa);a.sb(this.element,this,127300);this.Qa()};
jQa=function(a){return Object.values(a.tracks).find(function(b){return"en"===b.languageCode&&"asr"===b.kind})};
HV=function(a,b){a.F.setOption("captions","track",b)};
hQa=function(a,b){a.F.setOption("captions","sampleSubtitles",b)};
kQa=function(a){g.pU.call(this,a,"ytp-settings-menu");var b=this;this.Jf=new g.kU(this.F);this.settingsButton=null;this.isInitialized=this.kO=!1;g.I(this,this.Jf);this.hide();g.nU(this,this.Jf);a.sb(this.element,this,108341,!0);this.subscribe("show",function(c){b.Ag(c)});
this.S(a,"highlightSettingsMenu",function(){b.kO=!0;b.md()})};
lQa=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-controls")};
IV=function(a,b){g.V.call(this,{G:"button",Ia:["ytp-size-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"t","data-title-no-tooltip":"{{data-title-no-tooltip}}"},ra:"{{icon}}"});this.F=a;this.ov=null;this.transition=new aV;this.tooltip=b.Hc();g.I(this,this.transition);this.S(a,"sizestylechange",this.Qa);this.S(a,"fullscreentoggled",this.Qa);this.S(a,"presentingplayerstatechange",this.Qa);a.sb(this.element,this,139116);this.Qa();this.Ra("click",this.onClick);g.lb(this,g.QS(this.tooltip,
this.element))};
g.JV=function(a,b){g.V.call(this,{G:"button",Ia:["ytp-subtitles-button","ytp-button"],X:{"aria-pressed":"{{pressed}}",title:"{{title}}","aria-keyshortcuts":"c","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W:[IMa()]});this.F=a;this.tooltip=b.Hc();this.S(a,"videodatachange",this.Qa);this.S(a,"appresize",this.Qa);this.S(a,"promotooltipacceptbuttonclicked",this.j);this.S(a,"onApiChange",this.Qa);this.S(a,"onCaptionsTrackListChanged",this.Qa);this.S(a,"captionschanged",this.Qa);this.F.sb(this.element,
this,127299);this.Qa();this.Ra("click",this.onClick);g.lb(this,g.QS(b.Hc(),this.element))};
g.LV=function(a,b,c){c=void 0===c?350:c;g.V.call(this,{G:"div",Ia:["ytp-time-display","notranslate"],W:[{G:"span",N:"ytp-time-clip-icon",ra:"{{clipicon}}"},{G:"span",W:[{G:"span",N:"ytp-time-current",ra:"{{currenttime}}"},{G:"span",N:"ytp-time-separator",ra:" / "},{G:"span",N:"ytp-time-duration",ra:"{{duration}}"}]},{G:"span",N:"ytp-clip-watch-full-video-button-separator",ra:"\u2022"},{G:"span",N:"ytp-clip-watch-full-video-button",ra:"{{watchfullvideo}}"}]});this.api=a;this.J=c;this.liveBadge=new g.V({G:"button",
Ia:["ytp-live-badge","ytp-button"],X:{disabled:"true"},ra:"{{content}}"});this.j=null;this.rC=this.u=!1;this.I=this.D=null;this.isPremiere=!1;this.Bb=this.C=this.B=null;this.V=this.Da("ytp-clip-watch-full-video-button");this.liveBadge.je("Live");g.I(this,this.liveBadge);this.liveBadge.Ea(this.element);this.tooltip=b.Hc();this.Ra("click",this.onClick);this.S(this.V,"click",this.X7);this.S(a,"presentingplayerstatechange",this.wc);this.S(a,"appresize",this.wc);this.S(a,"onLoopRangeChange",this.onLoopRangeChange);
this.S(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.wc();a=a.getLoopRange();b=this.Bb!==a;this.Bb=a;b&&KV(this);this.api.K("web_modern_miniplayer")&&(this.element.hidden=!0)};
KV=function(a){a.updateValue("clipicon",{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",X:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]});
a.rC&&!a.u?a.updateValue("watchfullvideo","Watch live stream"):a.updateValue("watchfullvideo","Watch full video");g.Mp(a.element,"ytp-clip",MV(a));g.Mp(a.element,"ytp-live",NV(a))};
NV=function(a){var b=a.api.T().K("enable_linear_program_progress");return a.rC&&!MV(a)&&(!b||!a.u)};
MV=function(a){return!!a.Bb&&!!a.Bb.postId&&2!==a.api.getPresentingPlayerType()&&(!a.Bb.type||"clips"===a.Bb.type)};
nQa=function(a,b,c){g.V.call(this,{G:"div",N:"ytp-volume-panel",X:{title:"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{G:"div",N:"ytp-volume-slider",W:[{G:"div",N:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.j=b;this.J=c;this.Ol=!1;this.Z=this.volume=0;this.I=null;this.B=this.u=this.isDragging=!1;this.j=b;this.J=c;this.C=b.xg();this.V=this.Da("ytp-volume-slider");this.oa=this.Da("ytp-volume-slider-handle");
this.D=new g.aT(this.V,!0);g.I(this,this.D);this.D.subscribe("dragstart",this.x7,this);this.D.subscribe("dragmove",this.H0,this);this.D.subscribe("dragend",this.v7,this);this.S(a,"onVolumeChange",this.onVolumeChange);this.S(a,"appresize",this.MR);this.S(a,"fullscreentoggled",this.Hq);this.S(a,"onShowControls",this.US);this.S(a,"onHideControls",this.US);this.S(this.element,"keydown",this.I0);this.S(this.element,"focus",function(){OV(d,d.u,d.isDragging,!0,d.j.Ol())});
this.S(this.element,"blur",function(){OV(d,d.u,d.isDragging,!1,d.j.Ol())});
this.MR(a.jb().getPlayerSize());mQa(this,a.getVolume(),a.isMuted());g.lb(this,g.QS(b.Hc(),this.element))};
mQa=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.updateValue("valuenow",d);a.updateValue("valuetext",e);a.oa.style.left=(a.C?60:40)*c+"px";a.volume=b};
oQa=function(a,b){g.Mp(a.element,"ytp-volume-control-hover",b);OV(a,b,a.isDragging,a.B,a.j.Ol())};
OV=function(a,b,c,d,e){var f=a.u||a.isDragging||a.B||a.Ol;a.u=b;a.isDragging=c;a.B=d;a.Ol=e;b=a.u||a.isDragging||a.B||a.Ol;f!==b&&(b?a.I=a.S(a.element,"wheel",a.G0):(a.Fc(a.I),a.I=null),g.Mp(a.J,"ytp-volume-slider-active",b))};
g.PV=function(a,b){var c=a.T(),d=g.CK(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];c.B&&e.push("no-link");g.rK(c)&&e.push("ytp-youtube-music-button");var f={target:c.ea,"data-sessionlink":"feature=player-button",title:""};c.B||(f.title="youtube.com"===d?"Watch on YouTube":g.pO("Watch on $WEBSITE",{WEBSITE:d}),f.href="{{url}}");g.V.call(this,{G:"a",Ia:e,X:f,ra:"{{logoSvg}}"});this.u=b;this.j=null;this.api=a;this.visible=!1;a.sb(this.element,
this,28666);c.B||(this.j=this.Ra("click",this.onClick));this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"videoplayerreset",this.onVideoDataChange);this.S(a,"onLoopRangeChange",this.onVideoDataChange);this.S(a,"appresize",this.Db);this.onVideoDataChange();c.B||g.lb(this,g.QS(b.Hc(),this.element));this.Db()};
pQa=function(a,b,c){g.eI.call(this);var d=this;this.F=a;this.u=b;this.Ve=c;this.ib=NaN;this.ob=this.Za=null;this.B=new kQa(this.F);this.Jc=new g.iV(this.F,this.u);this.oa=this.Z=this.J=null;this.qj=new g.LV(this.F,this.u);this.Wa=this.tb=this.I=this.D=this.Pa=this.La=null;this.ya=new TOa(this.F,this.u);this.Ya=new g.WU(this.F,this.u);this.lf=new g.yp(this.Ev,null,this);this.ea=null;c=a.T();this.Ve.subscribe("autohideupdate",this.pn,this);var e=!a.Cb().isCued(),f;g.rK(c)||a.T().K("html5_player_dynamic_bottom_gradient")?
this.ob=f=new g.SU(a):f=new g.V({G:"div",N:"ytp-gradient-bottom"});g.I(this,f);g.yS(a,f.element,9);this.Ga=new g.WQ(f,250,e,100);g.I(this,this.Ga);this.C=new g.V({G:"div",N:"ytp-chrome-bottom",W:[{G:"div",N:"ytp-chrome-controls"}]});g.I(this,this.C);g.yS(a,this.C.element,9);this.Aa=new g.WQ(this.C,250,e,100);g.I(this,this.Aa);this.Ja=this.C.element.children[0];g.lb(this.B,function(){a.Nm()===d.B&&(a.zJ=null)});
g.I(this,this.B);a.zJ=this.B;g.yS(a,this.B.element,6);this.B.subscribe("show",function(m){d.u.Hc().fP(!m);b.aI(d.B,m)});
g.I(this,this.Jc);this.Jc.Ea(this.C.element,0);e=new g.VU(a,b);g.I(this,e);g.yS(a,e.element,4);e=new g.fQ({G:"div",N:"ytp-left-controls"});g.I(this,e);e.Ea(this.Ja);f=new g.dV(a,b,!1);g.I(this,f);f.Ea(e.element);a.K("web_render_jump_buttons")&&(this.Z=new XU(a,b,g.jJ(a.T().experiments,"web_jump_button_backward_amount")||-10),g.I(this,this.Z),this.Z.Ea(e.element));c.Wa||(f=new g.cV(a,b),g.I(this,f),f.Ea(e.element));a.K("web_render_jump_buttons")&&(this.oa=new XU(a,b,g.jJ(a.T().experiments,"web_jump_button_forward_amount")||
10),g.I(this,this.oa),this.oa.Ea(e.element));f=new g.dV(a,b,!0);g.I(this,f);f.Ea(e.element);f=new g.V({G:"span",N:"ytp-volume-area"});g.I(this,f);f.Ea(e.element);if(!c.Uc&&(this.J=new g.bV(a,b),g.I(this,this.J),this.J.Ea(f.element),c.Ya&&!c.V)){var h=new nQa(a,b,this.C.element);this.Wa=h;g.I(this,h);h.Ea(f.element);f=new g.aT(f.element);g.I(this,f);f.subscribe("hoverstart",function(){var m;null==(m=d.Wa)||oQa(m,!0)});
f=new g.aT(e.element);g.I(this,f);f.subscribe("hoverend",function(){var m;null==(m=d.Wa)||oQa(m,!1)})}g.I(this,this.qj);
this.qj.Ea(e.element);this.j=new g.fQ({G:"div",N:"ytp-right-controls"});g.I(this,this.j);this.La=new UU(a,b,this.Jc);g.I(this,this.La);this.La.Ea(e.element);c.K("web_key_moments_markers")&&(this.Pa=new YU(a,b,this.Jc),g.I(this,this.Pa),this.Pa.Ea(e.element));this.j.Ea(this.Ja);e=new g.JV(a,b);g.I(this,e);e.Ea(this.j.element);e=new xV(a,b,this.B);g.I(this,e);lQa(this.B,e);e.Ea(this.j.element);var l=new IOa(a);g.I(this,l);g.yS(a,l.element,5);l.subscribe("show",function(m){b.Np(l,m)});
e=new $U(a,b,l);g.I(this,e);e.Ea(this.j.element);e=a.getVideoData();if(c.tm||e.pd&&"1"===c.controlsType)this.D=new g.PV(a,b),g.I(this,this.D),this.D.Ea(this.j.element);g.I(this,this.ya);c.showMiniplayerButton&&(this.I=new ZU(a,b),g.I(this,this.I),this.I.Ea(this.j.element));this.ya.Ea(this.j.element);e.uN||this.ya.hide();c.Kj||(e=new IV(a,b),g.I(this,e),e.Ea(this.j.element));c.Hj&&(e=new wV(a,b,this.B),g.I(this,e),e.Ea(this.j.element));c.ql&&(c=new QU(a,b),g.I(this,c),c.Ea(this.j.element));g.I(this,
this.Ya);this.Ya.Ea(this.j.element);g.I(this,this.lf);this.S(a,"appresize",this.Db);this.S(a,"fullscreentoggled",this.Db);this.S(a,"presentingplayerstatechange",this.GJ);this.S(a,"videodatachange",this.onVideoDataChange);this.Db()};
qQa=function(a,b){a.F.Cb().isCued()||b?b&&(a.Aa.hide(),a.Ga.hide(),a.J&&a.J.Zb(!1),a.D&&a.D.Zb(!1),a.I&&a.I.Zb(!1),a.u.Hc().vk(a.ub())):b||(a.Aa.show(),a.Ga.show(),a.J&&a.J.Zb(!0),a.D&&a.D.Zb(!0),a.I&&a.I.Zb(!0),a.pn())};
sQa=function(a){var b=a.F.jb().getPlayerSize().width;return Math.max(b-2*rQa(a),100)};
rQa=function(a){var b=a.u.xg(),c=a.F.getVideoData().pd,d=a.F.T().K("shorts_mode_to_player_api")?a.F.Tb():a.u.Tb(),e=0;a.u.xg()&&d&&(e=(a.F.jb().getPlayerSize().width-a.F.getVideoContentRect().width)/2);return 12*(c?0:b?2:1)+e};
tQa=function(a){var b=a.u.xg()?72:50;a=a.F.T();g.GK(a)&&(b=62,g.oK(a)&&(b=54));return b};
uQa=function(a,b){yU.call(this,a,b,!1);var c=this;this.suggestedActions={};this.S(this.F,"videodatachange",this.onVideoDataChange);this.S(this.F,g.WD("suggested_action_button_visible"),function(d){d=d.id;c.text=d;KNa(c);c.onClickCommand=c.suggestedActions[d];c.enabled=!0;c.Ag()});
this.S(this.F,g.XD("suggested_action_button_visible"),function(d){c.enabled=!1;c.Ag();c.F.K("suggested_actions_clear_cuerange_after_use")&&c.F.removeCueRange(d.id)})};
vQa=function(a){a.suggestedActions={};a.F.hf("suggested_action_button_visible")};
RV=function(a){g.V.call(this,{G:"div",N:QV.TITLE,W:[{G:"div",N:QV.TEXT,W:[{G:"a",Ia:[QV.LINK,QV.SESSIONLINK],X:{target:a.T().ea,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},ra:"{{title}}"},{G:"div",N:QV.SUBTEXT,W:["{{subtextElement}}"]}]}]});this.api=a;this.j=null;this.link=this.Da(QV.LINK);a.sb(this.element,this,23851);this.S(a,"videodatachange",this.Qa);this.S(a,"videoplayerreset",this.Qa);this.Qa()};
wQa=function(a){a.updateValue("channelLink","");a.updateValue("channelName","");g.oK(a.api.T())?a.updateValue("channelTitleFocusable","0"):a.updateValue("channelTitleFocusable","-1")};
g.SV=function(a,b){g.V.call(this,{G:"div",W:[{G:"div",N:"ytp-tooltip-text-wrapper",X:{"aria-hidden":"{{ariaHidden}}"},W:[{G:"div",N:"ytp-tooltip-edu",W:[{G:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",X:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{G:"span",ra:"{{eduText}}"}]},{G:"div",N:"ytp-tooltip-image"},{G:"div",N:"ytp-tooltip-title",W:[{G:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{G:"g",
W:[{G:"rect",X:{fill:"none",height:"24",width:"24",x:"0"}}]},{G:"g",W:[{G:"g",W:[{G:"polygon",X:{points:"19,9 20.25,6.25 23,5 20.25,3.75 19,1 17.75,3.75 15,5 17.75,6.25"}},{G:"polygon",X:{points:"19,15 17.75,17.75 15,19 17.75,20.25 19,23 20.25,20.25 23,19 20.25,17.75"}},{G:"path",X:{d:"M11.5,9.5L9,4L6.5,9.5L1,12l5.5,2.5L9,20l2.5-5.5L17,12L11.5,9.5z M9.99,12.99L9,15.17l-0.99-2.18L5.83,12l2.18-0.99 L9,8.83l0.99,2.18L12.17,12L9.99,12.99z"}}]}]}]},{G:"span",ra:"{{title}}"}]},{G:"span",N:"ytp-tooltip-text",
ra:"{{text}}"}]},{G:"div",N:"ytp-tooltip-bg",W:[{G:"div",N:"ytp-tooltip-duration",ra:"{{duration}}"}]}]});var c=this;this.api=a;this.Pa=b;this.env=this.api.T();this.La=this.env.u;this.bg=this.Da("ytp-tooltip-bg");this.Wa=this.Da("ytp-tooltip-edu");this.image=this.Da("ytp-tooltip-image");this.text=this.Da("ytp-tooltip-text");this.title=this.Da("ytp-tooltip-title");this.oa=function(d){(d=g.CO?d.relatedTarget:Cz(d))&&g.lf(c.j,d)||c.Mn()};
this.D=function(d){3===c.type&&c.Mn();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.D),d.addEventListener("mouseout",c.oa),d.removeEventListener("focus",c.D),d.addEventListener("blur",c.oa),xQa(c,d,2))};
this.Aa=function(){c.Mn()};
this.j=null;this.I=new g.WQ(this,100);this.type=null;this.Z=!1;this.u=null;this.C=NaN;this.B="";this.HJ=this.api.jb().getPlayerSize().width;this.V=!0;this.scale=1;this.J=160;this.ya=90;this.Ga=new g.Ap(this.z4,250,this);this.Ja=new g.Ap(this.Mn,5E3,this);g.I(this,this.I);g.I(this,this.Ga);g.I(this,this.Ja);eK&&(a=this.Da("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"));this.env.K("web_big_boards")&&(this.J=243,this.ya=141,g.Ip(this.api.getRootNode(),"ytp-bigboards"))};
gU=function(a){a.element.setAttribute("aria-live","polite")};
AQa=function(a,b,c,d,e,f,h,l,m){if(!a.La||a.env.V){3===a.type&&a.Mn();1!==a.type&&(g.Gp(a.element,"ytp-tooltip ytp-bottom"),(a.env.K("web_big_boards")||a.env.K("web_modern_scrubber")&&a.api.isInline())&&g.Ip(a.element,"ytp-rounded-tooltip"),a.type=1,a.V&&a.I.show(),a.u&&a.u.dispose(),a.u=a.api.Ej(),a.u&&a.u.subscribe("l",a.hW,a));if(m){var n=g.Um(a.bg).height||a.ya;a.Wa.style.bottom=n+2+"px"}a.update({text:d,title:null!=h?h:"",eduText:null!=m?m:""});g.Mp(a.text,"ytp-tooltip-text-no-title",1===a.type&&
!h);a.env.K("web_modern_scrubber")&&a.api.isInline()&&g.Ip(a.text,"ytp-modern-tooltip-text");g.Mp(a.element,"ytp-text-detail",!!e);d=-1;a.u&&(d=VL(a.u,a.J*a.scale),a.env.K("web_l3_storyboard")&&4===a.u.levels.length&&(d=a.u.levels.length-1),d=Xya(a.u,d,c));yQa(a,d);if(l)switch(c=g.Um(a.element).width,l){case 1:a.title.style.right="0";a.title.style.textAlign="left";break;case 2:a.title.style.right=c+"px";a.title.style.textAlign="right";break;case 3:a.title.style.right=c/2+"px",a.title.style.textAlign=
"center"}zQa(a,!!e,b,f)}};
g.TV=function(a){1===a.type&&a.Mn()};
g.QS=function(a,b){if(a.La)return function(){};
b.addEventListener("mouseover",a.D);b.addEventListener("focus",a.D);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.j===b&&a.Mn();b.removeEventListener("mouseover",a.D);b.removeEventListener("focus",a.D)}};
tU=function(a,b,c){if(a.type)if(3===a.type)a.Mn();else return;xQa(a,b,3,c)};
xQa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.Yz("showElementTooltip called with non-element.",b.toString()),g.zD(a);else{isNaN(a.C)||(a.C=NaN,a.bg.style.background="");a.j=b;a.Z=!!d;d?a.B=d:(a.B=b.getAttribute("title"),b.removeAttribute("title"));g.Gp(a.element,"ytp-tooltip");g.Ip(a.element,"ytp-rounded-tooltip");var e=b.getAttribute("data-tooltip-image");e&&(a.image.style.backgroundImage="url("+e+")");d?a.update({ariaHidden:"false"}):a.update({ariaHidden:"true"});g.Mp(a.element,"ytp-tooltip-image-enabled",
!!e);b=b.getAttribute("data-tooltip-opaque");g.Mp(a.element,"ytp-tooltip-opaque",!!b);a.type=c;a.api.addEventListener("appresize",a.Aa);a.V&&(BQa(a),a.I.show(0))}};
BQa=function(a){if(a.j){var b=a.j.getAttribute("data-tooltip-text");if(a.B&&a.j.getAttribute("aria-label")!==a.B)var c=a.B;var d=a.j.getAttribute("aria-keyshortcuts"),e=a.j.getAttribute("data-title-no-tooltip");d&&e&&(c=g.pO("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:e,SHORTCUT_KEY:d}));c&&a.j.setAttribute("aria-label",c);if(b&&!a.Z){d=a.j;a.updateValue("text",b);c=d.getAttribute("data-duration");a.update({title:a.B,duration:c});d=d.getAttribute("data-preview");e=a.J*a.scale;var f=
a.ya*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=d?"url("+d+")":"";a.bg.style.backgroundSize=e+"px "+f+"px";g.Jp(a.element,["ytp-text-detail","ytp-preview"]);g.Mp(a.element,"ytp-has-duration",!!c)}else a.updateValue("text",a.B),g.Lp(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);zQa(a,!!b)}};
zQa=function(a,b,c,d){var e=Math.min(a.HJ,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Pa.Rv(a.element,a.j,c,1===a.type,d);a.element.style.top?g.Ip(a.element,"ytp-bottom"):a.element.style.bottom&&g.Ip(a.element,"ytp-top");3===a.type&&a.Ja.start()};
RS=function(a){a.j&&!a.Z&&a.j.hasAttribute("title")&&(a.B=a.j.getAttribute("title")||"",a.j.removeAttribute("title"),a.V&&BQa(a))};
yQa=function(a,b){g.Mp(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.C)){a.C=b;b=a.J*a.scale;var c=a.ya*a.scale,d=Tya(a.u,a.C,b);DOa(a.bg,d,b,c,!0);a.Ga.start()}};
CQa=function(a){var b=a.j;3===a.type&&a.Ja.stop();a.api.removeEventListener("appresize",a.Aa);a.Z||b.setAttribute("title",a.B);a.B="";a.j=null};
EQa=function(a,b){g.V.call(this,{G:"button",Ia:["ytp-watch-later-button","ytp-button"],X:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.iK(a.T()))},W:[{G:"div",N:"ytp-watch-later-icon",ra:"{{icon}}"},{G:"div",N:"ytp-watch-later-title",ra:"Watch later"}]});this.F=a;this.u=b;this.icon=null;this.visible=this.isRequestPending=this.j=!1;this.tooltip=b.Hc();gU(this.tooltip);a.sb(this.element,this,28665);this.Ra("click",this.onClick,this);this.S(a,"videoplayerreset",this.Fv);
this.S(a,"appresize",this.NA);this.S(a,"videodatachange",this.NA);this.S(a,"presentingplayerstatechange",this.NA);this.NA();a=this.F.T();var c=g.Mz("yt-player-watch-later-pending");a.C&&c?(swa(),DQa(this)):this.Qa(2);g.Mp(this.element,"ytp-show-watch-later-title",g.iK(a));g.lb(this,g.QS(b.Hc(),this.element))};
FQa=function(a){var b=a.F.getPlayerSize(),c=a.F.T(),d=a.F.getVideoData(),e=g.iK(c)&&g.vS(a.F)&&g.UN(a.F.Cb(),128);a=c.K("shorts_mode_to_player_api")?a.F.Tb():a.u.Tb();var f=c.B;if(b=c.fm&&240<=b.width&&!d.isAd())if(d.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){b=!0;var h,l,m=null==(h=d.Kf)?void 0:null==(l=h.embedPreview)?void 0:l.thumbnailPreviewRenderer;m&&(b=!!m.addToWatchLaterButton);if(g.oK(d.T())){var n,p;(h=null==(n=d.fd)?void 0:null==(p=n.playerOverlays)?void 0:p.playerOverlayRenderer)&&
(b=!!h.addToMenu)}var q,t,w,z;if(null==(z=g.S(null==(q=d.fd)?void 0:null==(t=q.contents)?void 0:null==(w=t.twoColumnWatchNextResults)?void 0:w.desktopOverlay,qM))?0:z.suppressWatchLaterButton)b=!1}else b=d.Ij;return b&&!e&&!(d.pd&&c.Z)&&!a&&!f};
GQa=function(a,b){g.fU(g.BK(a.F.T()),"wl_button",function(){swa({videoId:b});window.location.reload()})};
DQa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Qa(3);var b=a.F.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.F.Mm(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Qa(2);a.F.T().I&&a.F.Na("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
a.isRequestPending=!1;a.Qa(1);a.F.T().u&&tU(a.tooltip,a.element);a.F.T().I&&a.F.Na("WATCH_LATER_VIDEO_ADDED")};
wR(c,b).then(d,function(){a.isRequestPending=!1;HQa(a,"An error occurred. Please try again later.")})}};
HQa=function(a,b){a.Qa(4,b);a.F.T().I&&a.F.Na("WATCH_LATER_ERROR",b)};
IQa=function(a,b){if(b!==a.icon){switch(b){case 3:var c=JMa();break;case 1:c=mQ();break;case 2:c={G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,N:"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={G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",
vc:!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.UV=function(a){g.ZT.call(this,a);var b=this;this.pG=(this.mq=g.iK(this.api.T()))&&(this.api.T().u||cz()||az());this.MK=48;this.NK=69;this.Bo=null;this.Ws=[];this.Oc=new g.bU(this.api);this.Lu=new uU(this.api);this.Eh=new g.V({G:"div",N:"ytp-chrome-top"});this.fE=[];this.tooltip=new g.SV(this.api,this);this.backButton=this.wz=null;this.channelAvatar=new nNa(this.api,this);this.title=new RV(this.api,this);this.di=new g.fQ({G:"div",N:"ytp-chrome-top-buttons"});this.Ai=this.shareButton=this.In=null;
this.Vi=new hNa(this.api,this,this.Eh.element);this.overflowButton=this.Ah=null;this.Zg="1"===this.api.T().controlsType?new pQa(this.api,this,this.Ve):null;this.contextMenu=new g.rU(this.api,this,this.Oc);this.xK=!1;this.GF=new g.V({G:"div",X:{tabindex:"0"}});this.FF=new g.V({G:"div",X:{tabindex:"0"}});this.rD=null;this.lO=this.jN=this.mF=!1;var c=a.jb(),d=a.T(),e=a.getVideoData();this.mq&&(g.Ip(a.getRootNode(),"ytp-embed"),g.Ip(a.getRootNode(),"ytp-embed-playlist"),this.pG&&(g.Ip(a.getRootNode(),
"ytp-embed-overlays-autohide"),g.Ip(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.MK=60,this.NK=89);a.T().B&&g.Ip(a.getRootNode(),"ytp-embed-pfl");this.api.T().u&&(g.Ip(a.getRootNode(),"ytp-mobile"),this.api.T().V&&g.Ip(a.getRootNode(),"ytp-embed-mobile-exp"));this.Kf=e&&e.Kf;g.I(this,this.Oc);g.yS(a,this.Oc.element,4);g.I(this,this.Lu);g.yS(a,this.Lu.element,4);e=new g.V({G:"div",N:"ytp-gradient-top"});g.I(this,e);g.yS(a,e.element,1);this.JP=new g.WQ(e,250,!0,100);g.I(this,this.JP);
g.I(this,this.Eh);g.yS(a,this.Eh.element,1);this.IP=new g.WQ(this.Eh,250,!0,100);g.I(this,this.IP);g.I(this,this.tooltip);g.yS(a,this.tooltip.element,4);var f=new iOa(a);g.I(this,f);g.yS(a,f.element,5);f.subscribe("show",function(n){b.Np(f,n)});
this.fE.push(f);this.wz=new HU(a,this,f);g.I(this,this.wz);d.nm&&(this.backButton=new dNa(a),g.I(this,this.backButton),this.backButton.Ea(this.Eh.element));this.mq||this.wz.Ea(this.Eh.element);g.I(this,this.channelAvatar);this.channelAvatar.Ea(this.Eh.element);g.I(this,this.title);this.title.Ea(this.Eh.element);this.mq&&(e=new COa(this.api,this),g.I(this,e),e.Ea(this.Eh.element));g.I(this,this.di);this.di.Ea(this.Eh.element);var h=new g.LU(a,this);g.I(this,h);g.yS(a,h.element,5);h.subscribe("show",
function(n){b.Np(h,n)});
this.fE.push(h);this.In=new EQa(a,this);g.I(this,this.In);this.In.Ea(this.di.element);this.shareButton=new g.KU(a,this,h);g.I(this,this.shareButton);this.shareButton.Ea(this.di.element);this.Ai=new g.sU(a,this);g.I(this,this.Ai);this.Ai.Ea(this.di.element);this.mq&&this.wz.Ea(this.di.element);g.I(this,this.Vi);this.Vi.Ea(this.di.element);d.Sn&&(e=new PU(a),g.I(this,e),g.yS(a,e.element,4));d.B||(e=new iNa(a,this,this.Vi),g.I(this,e),e.Ea(this.di.element));this.Ah=new eOa(a,this);g.I(this,this.Ah);
g.yS(a,this.Ah.element,5);this.Ah.subscribe("show",function(){b.Np(b.Ah,b.Ah.cj())});
this.fE.push(this.Ah);this.overflowButton=new g.GU(a,this,this.Ah);g.I(this,this.overflowButton);this.overflowButton.Ea(this.di.element);this.Zg&&g.I(this,this.Zg);"3"===d.controlsType&&(e=new JU(a,this),g.I(this,e),g.yS(a,e.element,9));g.I(this,this.contextMenu);this.contextMenu.subscribe("show",this.LY,this);e=new oR(a,new aU(a));g.I(this,e);g.yS(a,e.element,4);this.GF.Ra("focus",this.l3,this);g.I(this,this.GF);this.FF.Ra("focus",this.m3,this);g.I(this,this.FF);var l;(this.yq=d.oh?null:new g.DU(a,
c,this.contextMenu,this.Ve,this.Oc,this.Lu,function(){return b.Gl()},null==(l=this.Zg)?void 0:l.Jc))&&g.I(this,this.yq);
this.mq||(this.api.K("web_player_enable_featured_product_banner_on_desktop")&&(this.vT=new LNa(this.api,this),g.I(this,this.vT),g.yS(a,this.vT.element,4)),this.KX=new vOa(this.api,this),g.I(this,this.KX),g.yS(a,this.KX.element,4));this.bY=new uQa(this.api,this);g.I(this,this.bY);g.yS(a,this.bY.element,4);if(this.mq){var m=new RNa(a,this.api.T().Nb);g.I(this,m);g.yS(a,m.element,5);m.subscribe("show",function(n){b.Np(m,n)});
c=new VNa(a,this,m);g.I(this,c);g.yS(a,c.element,4)}this.Vs.push(this.Oc.element);this.S(a,"fullscreentoggled",this.Hq);this.S(a,"offlineslatestatechange",function(){b.api.tC()&&KT(b.Ve,128,!1)});
this.S(a,"cardstatechange",function(){b.fl()});
this.S(a,"resize",this.Q5);this.S(a,"videoplayerreset",this.Fv);this.S(a,"showpromotooltip",this.o6)};
JQa=function(a){var b=a.api.T(),c=g.UN(a.api.Cb(),128);return b.C&&c&&!a.api.isFullscreen()};
KQa=function(a){if(a.Ug()&&!a.Tb()&&a.Ah){var b=a.api.K("web_player_hide_overflow_button_if_empty_menu");!a.In||b&&!FQa(a.In)||fOa(a.Ah,a.In);!a.shareButton||b&&!pOa(a.shareButton)||fOa(a.Ah,a.shareButton);!a.Ai||b&&!ENa(a.Ai)||fOa(a.Ah,a.Ai)}else{if(a.Ah){b=a.Ah;for(var c=g.v(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}a.In&&!g.lf(a.di.element,a.In.element)&&a.In.Ea(a.di.element);a.shareButton&&!g.lf(a.di.element,a.shareButton.element)&&a.shareButton.Ea(a.di.element);
a.Ai&&!g.lf(a.di.element,a.Ai.element)&&a.Ai.Ea(a.di.element)}};
LQa=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Mm(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=LQa(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndex<d.tabIndex&&(d=e):d=e)}b=c?b.previousElementSibling:b.nextElementSibling}return d};
MQa=function(a,b,c){if(a.api.T().K("web_player_nitrate_promo_tooltip")){var d=a.api.getVideoData(1);if(null==d?0:d.tooltipRenderer){d=d.tooltipRenderer;var e;if(e=!a.rD){if(!(b=!b)){var f,h,l;b="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"!==(null==(f=d.tooltipDisplayStrategy)?void 0:f.type)&&"dtip-edu-player-iseecaptions"!==(null==(h=d.promoConfig)?void 0:h.promoId)&&"dtip-edu-player-touchcaptions"!==(null==(l=d.promoConfig)?void 0:l.promoId)}e=b}e&&(a.rD=new jOa(d,a,a.api),g.I(a,a.rD),g.yS(a.api,
a.rD.element,9));var m;null==(m=a.rD)||nOa(m,d,c)}}};
g.VV=function(a){g.tT.call(this,a);this.chrome=null;this.load()};
WV=function(a,b,c,d){function e(h){var l=!(204!==h.status&&200!==h.status&&!h.response),m;h={succ:""+ +l,rc:h.status,lb:(null==(m=h.response)?void 0:m.byteLength)||0,rt:((0,g.GA)()-f).toFixed(),shost:g.Pi(a),trigger:b};NQa(h,a);c&&c(h);d&&!l&&d(new SK("pathprobe.net",h))}
var f=(0,g.GA)();g.Dy(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
NQa=function(a,b){var c;(null==(c=window.performance)?0:c.getEntriesByName)&&(b=performance.getEntriesByName(b))&&b.length&&(b=b[0],a.pedns=(b.domainLookupEnd-b.startTime).toFixed(),a.pecon=(b.connectEnd-b.domainLookupEnd).toFixed(),a.perqs=(b.requestStart-b.connectEnd).toFixed())};
XV=function(a){g.E.call(this);var b=this;this.Y=a;this.j=new Map;this.C=[];this.u=this.Y.experiments.kb("html5_onesie_trusted_hosts_for_all")||!KJ();this.ea=g.jJ(this.Y.experiments,"html5_onesie_prewarm_interval_ms");this.V=new g.Ap(this.J,this.ea,this);this.I=-1;this.ze={u7a:function(){return b.j},
z7a:function(){return b.D},
v7a:function(){return OQa}};
g.I(this,this.V);PQa(this,g.Mz("yt-player-bandaid-host"));this.D=this.load();this.ea&&this.D.then(function(){b.J()})};
PQa=function(a,b){var c=null==b?void 0:b.primary;a.B(0,c);c=c?QQa(c):void 0;a.B(2,c);a.B(1,null==b?void 0:b.secondary)};
YV=function(a,b){return new g.AF("https://"+b+a.Y.Rk.baseUrl)};
RQa=function(a,b){a="https://"+CF(b.location)+"/initplayback?c="+g.uJ(a.Y)+"&owc=1";WV(a,"pw",function(c){c.ht=b.j})};
ZV=function(a,b,c,d){WV("https://"+b+"/videoplayback?probe=1",c,function(e){!d.K("html5_onesie_host_racing")||d.videoData.isLivePlayback||d.K("html5_onesie_probe_ec_hosts")||d.qG||d.rU();a.C.push(e)},function(e){a.C.push(e.details)})};
QQa=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
TQa=function(a,b){var c,d,e,f,h,l;return g.A(function(m){if(1==m.j){c=YV(a,"redirector.googlevideo.com");c.set("alr","yes");c.set("id",""+Math.round(1E5*Math.random()));if(1===b||2===b)c.set("cmo=sensitive_content","yes"),c.set("sc","yes");2===b&&c.set("cmo=td","c.youtube.com");d={format:"RAW",timeout:5E3};return g.y(m,Gy(c.Ze(),d),2)}e=m.u;if(200!==e.xhr.status||!e.xhr.responseText)return m.return(Promise.reject(new g.Yz("b204258371_no_host",c.Ze(),e.xhr.status)));f=new g.AF(e.xhr.responseText);
h=CF(f);l=f.get("ms");f=YV(a,h);f.set("ms",l);return h&&SQa(h)?2!==b||$V(h)?m.return(f):m.return(Promise.reject(new g.Yz("b204258371_untrusted",h,l))):m.return(Promise.reject(new g.Yz("b204258371_invalid",h,l)))})};
UQa=function(a){var b=a.C;a.C=[];return b};
SQa=function(a){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(a)};
$V=function(a){var b=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(a)&&!b.test(a)};
VQa=function(a,b){this.location=a;this.j=b};
g.aW=function(a){this.tag=a};
XQa=function(a,b){WQa.apply(null,[6,a,b].concat(g.la(g.Ca.apply(2,arguments))))};
YQa=function(a,b){WQa.apply(null,[5,a,b].concat(g.la(g.Ca.apply(2,arguments))))};
WQa=function(a,b,c){var d=g.Ca.apply(3,arguments),e=6===a?"ERROR":"WARNING",f="b"+c;g.zD(new (Function.prototype.bind.apply(g.Yz,[null,f].concat(g.la(d)))),e);d.unshift(f);d=d.join(", ");e=ZQa.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(h){}ZQa.set(b,f);e=f}a<e||("function"===typeof d&&(d=d()),console.log("plyr."+b,d))};
bW=function(a,b,c,d){var e=this;this.policy=a;this.gb=b;this.C=void 0===d?!1:d;this.j=0;this.u=null;this.Ke=[];this.B=null;this.ze={Om:function(){return e.gb}};
(this.length=c?c:0)?1!==this.gb.length||this.gb[0].u||(this.gb[0].u=this.length):1===this.gb.length||g.am(this.gb,function(f){return!!f.range})};
cW=function(a,b,c){a.u&&(JF(a.u,b),b=a.u,a.u=null);for(var d=!1,e=!1,f=0,h=0,l=g.v(a.gb),m=l.next();!m.done;m=l.next()){m=m.value;if(a.C&&m.range&&c)break;if(m.range&&f+m.u<=a.j)f+=m.u;else{if(WG(m)&&!c&&a.j+b.totalLength-h<f+m.u){a.u=b.split(h).Xk;break}var n=3===m.type||4===m.type;a:{var p=a;var q=a.j-f,t=n&&d&&!e&&1===b.j.length,w=b.totalLength-h;m.range&&(w=Math.min(m.u-q,w));q=new UG(m.type,m.j,m.range,"reslice"+m.D,m.Ma,m.startTime,m.duration,m.Qb+q,w,m.range?m.Qb+q+w===m.range.length:!!c,m.clipId);
var z=KF(b,h,w),C=void 0;if(t)for(C=new IF([]),t=0;t<p.Ke.length;t++)JF(C,p.Ke[t].j);t=new pH(q,z,C);if(p.policy.useUmp&&p.Ke.length&&(q=rH(p.Ke[p.Ke.length-1],t))){p.Ke[p.Ke.length-1]=q;p=w;break a}p.Ke.push(t);p=w}a.j+=p;h+=p;f+=m.u;1===m.type&&(d=!0);n&&(e=!0);a.C&&!m.range&&c&&(a.gb.shift(),a.j=0);if(h===b.totalLength)break}}};
$Qa=function(a){return a.length-a.j+a.Ke.reduce(function(b,c){return b+c.j.totalLength},0)};
dW=function(a){g.E.call(this);var b=this;this.C=a;this.logger=new g.aW("onesie");this.Vc=new Map;this.B=!1;this.j=this.Sa=null;this.u=!1;this.ze={M7a:function(c){var d;return null==(d=b.Vc.get(c))?void 0:d.ge}}};
aRa=function(a,b,c){a.Vc.get(b).Ie=c};
fW=function(a,b){a.Vc.has(b)&&(eW?a.Vc.get(b).Dq=[]:a.Vc.get(b).Ke=new IF,bRa(a,b))};
cRa=function(a){for(var b=g.v(a.Vc),c=b.next();!c.done;c=b.next()){var d=g.v(c.value);c=d.next().value;d=d.next().value;d.Ie||fW(a,c)}};
dRa=function(a,b){b=a.Vc.get(b);if(!b)return 0;a=0;if(0<b.gb.length){b=g.v(b.gb);for(var c=b.next();!c.done;c=b.next()){var d=void 0;a+=(null==(d=c.value.range)?void 0:d.length)||0}return a}if(0<b.MG.length)for(c=g.v(b.MG),d=c.next();!d.done;d=c.next())a+=d.value.Pq||0;return a+b.JU};
eRa=function(a,b){if(!eW){var c;return(null==(c=a.Vc.get(b))?void 0:c.Ke.totalLength)||0}var d;a=null==(d=a.Vc.get(b))?void 0:d.Dq;if(!a||!a.length)return 0;for(b=d=0;b<a.length;b++)d+=a[b].data.totalLength;return d};
fRa=function(a,b){if(eW){var c;return!(null==(c=a.Vc.get(b))||!c.Dq.length)}var d;return!(null==(d=a.Vc.get(b))||!d.Ke.totalLength)};
gRa=function(a,b){var c=a.Vc.get(b),d=dRa(a,b),e=!d&&!!c.bytesReceived,f=a.Ph(b);return e&&a.B&&void 0!==f?f:(e||c.bytesReceived===d)&&c.Ox+eRa(a,b)===c.bytesReceived};
hRa=function(a,b,c,d){c.gb.push.apply(c.gb,g.la(d));if(c.ge){a=g.v(d);for(var e=a.next();!e.done;e=a.next())b=void 0,d=c.ge,e=e.value,d.gb.push(e),d.length+=(null==(b=e.range)?void 0:b.length)||0}else c.ge=new bW(a.j,[].concat(g.la(c.gb)),dRa(a,b),!(null==(e=a.j)||!e.Zz))};
iRa=function(a,b,c,d){var e,f=null==(e=a.Sa)?void 0:e.I.get(b);if(!f)return[];if(c.Xm){var h;return(null==(h=f.Qu(0,d))?void 0:h.gb)||[]}if(f.Ym()){if(0>c.Hz||0>c.xt||0>c.durationMs||0>c.startMs||0>c.Pq)return fW(a,b),[];b=SG(c.Hz,c.Pq);var l;if(null==(l=a.j)?0:l.Tf){var m=c.wN||0;var n=b.length-m}return[new UG(3,f,b,"makeSliceInfosMediaBytes",c.xt-1,c.startMs/1E3,c.durationMs/1E3,m,n,void 0,d)]}if(0>c.xt)return fW(a,b),[];var p;return(null==(p=a.Sa)?0:p.Zc)?(a=f.Xj,[new UG(3,f,void 0,"makeSliceInfosMediaBytes",
c.xt,void 0,a,void 0,a*f.info.dc,!0,d)]):[]};
jRa=function(a,b,c){a.Sa=b;a.j=c;b=g.v(a.Vc);for(c=b.next();!c.done;c=b.next()){var d=g.v(c.value);c=d.next().value;d=d.next().value;for(var e=g.v(d.yX),f=e.next();!f.done;f=e.next())f=iRa(a,c,f.value),hRa(a,c,d,f)}};
kRa=function(a,b,c){(a=a.Vc.get(b))&&!a.Tg&&(eW?(b=0<a.Dq.length?a.Dq[a.Dq.length-1]:null,!b||b.mL?a.Dq.push({data:new IF([NF(c)]),mL:!1}):JF(b.data,c)):JF(a.Ke,c),a.bytesReceived+=c.totalLength,a.DO=!0)};
bRa=function(a,b){if((b=a.Vc.get(b))&&!b.Tg){b.Tg=!0;b.Ie&&b.Ie();a:{b=g.v(a.Vc.values());for(var c=b.next();!c.done;c=b.next())if(!c.value.Tg){b=!1;break a}b=!0}b&&a.C.TV()}};
gW=function(a,b){var c,d;null==(c=window.h5vcc)||null==(d=c.settings)||d.set(a,b)};
lRa=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.la(new Uint8Array(c))));a.close()}return b};
mRa=function(){for(var a=hW.length;4>a;a++){var b=g.Ze("VIDEO");b.load();hW.push(new g.gT(b))}};
iW=function(a){g.E.call(this);this.app=a;this.j=null;this.u=1};
nRa=function(){};
g.jW=function(a,b,c,d){d=void 0===d?!1:d;JO.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d};
oRa=function(a,b,c){var d=b.getVideoData(),e=a.getVideoData();if(b.getPlayerState().isError())return{msg:"player-error"};b=e.C;if(a.yk()>c/1E3+1)return{msg:"in-the-past"};if(e.isLivePlayback&&!isFinite(c))return{msg:"live-infinite"};(a=a.ue())&&a.isView()&&(a=a.mediaElement);if(a&&12<a.Ru().length&&g.DM(d))return{msg:"played-ranges"};if(!d.C)return null;if(!d.C.j||!b.j)return{msg:"non-dash"};if(d.C.videoInfos[0].containerType!==b.videoInfos[0].containerType)return{msg:"container"};if(g.DM(e)&&g.DM(d))return{msg:"content-protection"};
e=b.j[0];d=d.C.j[0];a=e.audio;c=d.audio;return a.sampleRate===c.sampleRate||g.hI?(a.numChannels||2)!==(c.numChannels||2)?{msg:"channel-count"}:null:{msg:"sample-rate",ci:e.itag,cr:a.sampleRate,ni:d.itag,nr:c.sampleRate}};
pRa=function(a,b,c,d,e,f){f=void 0===f?0:f;g.E.call(this);var h=this;this.policy=a;this.j=b;this.u=c;this.vf=e;this.V=f;this.C=this.B=null;this.currentVideoDuration=this.D=-1;this.I=!1;this.qp=new dK;this.Yl=d-1E3*b.Ed();this.qp.then(void 0,function(){});
this.timeout=new g.Ap(function(){h.Dg("timeout")},1E4);
g.I(this,this.timeout);this.J=isFinite(d);this.status={status:0,error:null}};
uRa=function(a){var b,c,d,e,f,h,l,m,n;return g.A(function(p){if(1==p.j){if(a.isDisposed())return p.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.kW.Xq("gtfta");return g.y(p,a.qp,2)}g.kW.Rp(b);c=a.j.ue();if(c.Ph())return a.Dg("ended_in_finishTransition"),p.return(Promise.reject(Error(a.status.error||"")));if(!a.C||!zI(a.C))return a.Dg("next_mse_closed"),p.return(Promise.reject(Error(a.status.error||"")));if(a.u.xs()!==a.C)return a.Dg("next_mse_mismatch"),p.return(Promise.reject(Error(a.status.error||
"")));d=qRa(a);e=d.LV;f=d.gT;h=d.KV;a.j.nj(!1,!0);l=rRa(c,e,h,!a.u.getVideoData().isAd());a.u.setMediaElement(l);a.J&&(a.u.seekTo(a.u.getCurrentTime()+.001,{Wu:!0,HP:3,xe:"gapless_pseudo"}),l.play()||Ky());m=c.kc();m.cpn=a.j.getVideoData().clientPlaybackNonce;m.st=""+e;m.et=""+h;a.u.xa("gapless",m);a.j.xa("gaplessTo",{cpn:a.u.getVideoData().clientPlaybackNonce});n=a.j.getPlayerType()===a.u.getPlayerType();sRa(a.j,f,!1,n,a.u.getVideoData().clientPlaybackNonce);sRa(a.u,a.u.getCurrentTime(),!0,n,a.j.getVideoData().clientPlaybackNonce);
g.Af(function(){!a.u.getVideoData().Za&&g.VO(a.u.getPlayerState())&&tRa(a.u)});
lW(a,6);a.dispose();return p.return(Promise.resolve())})};
yRa=function(a){if(a.u.getVideoData().C){vRa(a.u,a.C);lW(a,3);wRa(a);var b=xRa(a),c=b.JX;b=b.e9;c.subscribe("updateend",a.ix,a);b.subscribe("updateend",a.ix,a);a.ix(c);a.ix(b)}};
wRa=function(a){a.j.unsubscribe("internalvideodatachange",a.ou,a);a.u.unsubscribe("internalvideodatachange",a.ou,a);a.j.unsubscribe("mediasourceattached",a.ou,a);a.u.unsubscribe("statechange",a.zd,a)};
rRa=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.jW(a,b,c,d)};
lW=function(a,b){b<=a.status.status||(a.status={status:b,error:null},5===b&&a.qp.resolve(void 0))};
qRa=function(a){var b=a.j.ue();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:mW(a.j,!0);c=Math.min(a.Yl/1E3,c)+b;var d=a.J?100:0;a=c-a.u.yk()+d;return{G2:b,LV:a,gT:c,KV:Infinity}};
xRa=function(a){return{JX:a.B.j.Gd,e9:a.B.u.Gd}};
nW=function(a){g.E.call(this);var b=this;this.app=a;this.D=this.u=this.j=null;this.J=!1;this.C=null;this.V=new nRa;this.B=null;this.I=function(){g.Af(function(){zRa(b)})}};
ARa=function(a,b,c,d,e){d=void 0===d?0:d;e=void 0===e?0:e;a.hv()||oW(a);a.C=new dK;a.j=b;var f=c,h=0===e;h=void 0===h?!0:h;var l=a.app.Pc(),m=l.getVideoData().isLivePlayback?Infinity:1E3*mW(l,!0);f>m&&(f=m-200,a.J=!0);h&&l.getCurrentTime()>=f/1E3?a.I():(a.u=l,h&&(h=f,f=a.u,a.app.Ua.addEventListener(g.WD("vqueued"),a.I),h=isFinite(h)||h/1E3>f.getDuration()?h:0x8000000000000,a.D=new g.UD(h,0x8000000000000,{namespace:"vqueued"}),f.addCueRange(a.D)));h=d/=1E3;f=b.getVideoData().j;d&&f&&a.u&&(l=d,m=0,
b.getVideoData().isLivePlayback&&(h=Math.min(c/1E3,mW(a.u,!0)),m=Math.max(0,h-a.u.getCurrentTime()),l=Math.min(d,mW(b)+m)),h=jwa(f,l)||d,h!==d&&a.j.xa("qvaln",{st:d,at:h,rm:m,ct:l}));b=h;d=a.j;d.getVideoData().nh=!0;d.getVideoData().Wa=!0;g.pW(d,!0);f={};a.u&&(f=g.qW(a.u.yc.provider),h=a.u.getVideoData().clientPlaybackNonce,f={crt:(1E3*f).toFixed(),cpn:h});d.xa("queued",f);0!==b&&d.seekTo(b+.01,{Wu:!0,HP:3,xe:"videoqueuer_queued"});a.B=new pRa(a.V,a.app.Pc(),a.j,c,a.app,e);c=a.B;Infinity!==c.status.status&&
(lW(c,1),c.j.subscribe("internalvideodatachange",c.ou,c),c.u.subscribe("internalvideodatachange",c.ou,c),c.j.subscribe("mediasourceattached",c.ou,c),c.u.subscribe("statechange",c.zd,c),c.j.subscribe("newelementrequired",c.mW,c),c.ou());return a.C};
zRa=function(a){var b,c,d;g.A(function(e){switch(e.j){case 1:if(a.isDisposed()||!a.C||!a.j)return e.return();a.J&&rW(a.app.Pc(),!0,!1);b=null;if(!a.B){e.Ka(2);break}g.ua(e,3);return g.y(e,uRa(a.B),5);case 5:g.va(e,2);break;case 3:b=c=g.xa(e);case 2:if(!a.j)return e.return();g.kW.GH("vqsp",function(){sW(a.app,a.j)});
g.kW.GH("vqpv",function(){a.app.playVideo()});
b&&BRa(a.j,b.message);d=a.C;oW(a);return e.return(d.resolve(void 0))}})};
oW=function(a){if(a.u){if(a.D){var b=a.u;a.app.Ua.removeEventListener(g.WD("vqueued"),a.I);b.removeCueRange(a.D)}a.u=null;a.D=null}a.B&&(6!==a.B.status.status&&(b=a.B,Infinity!==b.status.status&&b.Dg("Canceled")),a.B=null);a.C=null;a.j&&a.j!==g.hS(a.app,1)&&a.j!==a.app.Pc()&&a.j.dispose();a.j=null;a.J=!1};
CRa=function(a){var b;return(null==(b=a.B)?void 0:b.currentVideoDuration)||-1};
DRa=function(a,b,c){if(a.hv())return"qine";var d;if(b.videoId!==(null==(d=a.j)?void 0:d.Pd()))return"vinm";if(0>=CRa(a))return"ivd";if(1!==c)return"upt";var e,f;null==(e=a.B)?f=void 0:f=5!==e.getStatus().status?"neb":null!=oRa(e.j,e.u,e.Yl)?"pge":null;a=f;return null!=a?a:null};
ERa=function(){var a=Eoa();return!(!a||"visible"===a)};
GRa=function(a){var b=FRa();b&&document.addEventListener(b,a,!1)};
HRa=function(a){var b=FRa();b&&document.removeEventListener(b,a,!1)};
FRa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[rz+"VisibilityState"])return"";a=rz+"visibilitychange"}return a};
IRa=function(){g.aE.call(this);var a=this;this.fullscreen=0;this.pictureInPicture=this.j=this.u=this.inline=!1;this.B=function(){a.Ag()};
GRa(this.B);this.C=this.getVisibilityState(this.uh(),this.isFullscreen(),this.yg(),this.isInline(),this.Qy(),this.Oy())};
tW=function(a,b,c,d,e){e=void 0===e?[]:e;g.E.call(this);this.Y=a;this.Cc=b;this.C=c;this.segments=e;this.j=void 0;this.B=new Map;this.u=new Map;if(e.length)for(this.j=e[0],a=g.v(e),b=a.next();!b.done;b=a.next())b=b.value,(c=b.Zr())&&this.B.set(c,b.HB())};
JRa=function(a,b,c,d){if(a.j&&!(b>c)){b=new tW(a.Y,b,c,a.j,d);d=g.v(d);for(c=d.next();!c.done;c=d.next()){c=c.value;var e=c.Zr();e&&e!==a.j.Zr()&&a.u.set(e,[c])}a.j.j.set(b.vy(),b)}};
LRa=function(a,b,c,d,e,f){return new KRa(c,c+(d||0),!d,b,a,new g.cM(a.Y,f),e)};
KRa=function(a,b,c,d,e,f,h){g.E.call(this);this.Cc=a;this.u=b;this.type=d;this.B=e;this.videoData=f;this.clipId=h;this.j=new Map};
MRa=function(a){this.end=this.start=a};
g.vW=function(a,b,c){g.E.call(this);var d=this;this.api=a;this.Y=b;this.va=c;this.ib="";this.Aa=new Map;this.Wa=new Map;this.Ja=new Map;this.C=new Map;this.B=[];this.V=[];this.D=new Map;this.hd=new Map;this.ea=new Map;this.Gc=NaN;this.Ub=this.tb=null;this.Bc=new g.Ap(function(){NRa(d,d.Gc)});
this.events=new g.eI(this);this.jc=g.jJ(this.Y.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.J=new g.Ap(function(){d.ya=!0;var e=d.va,f=d.jc;e.xa("sdai",{aftimeout:f});e.Ld(new SK("ad.fetchtimeout",{timeout:f}));ORa(d);d.cC(!1)},this.jc);
this.ya=!1;this.Ya=new Map;this.Gb=[];this.oa=null;this.le=new Set;this.Ga=[];this.Kc=[];this.Vd=[];this.td=[];this.j=void 0;this.ob=0;this.Za=!0;this.I=!1;this.La=[];this.Ud=new Set;this.ke=new Set;this.Wd=new Set;this.Bl=0;this.Z=null;this.Nb=new Set;this.rd=0;this.Mp=this.Uc=!1;this.u="";this.va.getPlayerType();PRa(this.va,this);this.Pa=this.Y.Qd();g.I(this,this.Bc);g.I(this,this.events);g.I(this,this.J);uW(this)||(this.events.S(this.api,g.WD("serverstitchedcuerange"),this.onCueRangeEnter),this.events.S(this.api,
g.XD("serverstitchedcuerange"),this.onCueRangeExit))};
TRa=function(a,b,c,d,e,f,h,l){var m=QRa(a,f,f+e);a.ya&&a.va.xa("sdai",{adaftto:1});a.Mp&&a.va.xa("sdai",{adfbk:1,enter:f,len:e,aid:l});var n=a.va;h=void 0===h?f+e:h;f===h&&!e&&a.Y.K("html5_allow_zero_duration_ads_on_timeline")&&a.va.xa("sdai",{attl0d:1});f>h&&wW(a,{reason:"enterTime_greater_than_return",Cc:f,Fd:h});var p=1E3*n.Kd();f<p&&wW(a,{reason:"enterTime_less_than_minSeekableTime",Cc:f,q8a:p});n=1E3*n.getDuration();h>n&&wW(a,{reason:"parent_return_greater_than_content_duration",Fd:h,p8a:n});
n=null;p=g.Ob(a.V,{Fd:f},function(q,t){return q.Fd-t.Fd});
0<=p&&(n=a.V[p],n.Fd>f&&RRa(a,b.video_id||"",f,h,n));if(m&&n)for(p=0;p<a.Ga.length;p++){if(a.Ga[p].identifier===m.identifier){a.Ga.splice(p,1);break}}else if(m)return a.va.xa("sdai",{rejectAttl:1}),l&&!Ym(a.td,function(q){return q===l})&&(a.va.xa("sdai",{rejectAdBreakAttl:1}),a.td.push(l)),xW(a),"";
m="ss_childplayback_"+SRa++;b.cpn||(b.cpn=g.HD(16));p=b.cpn;b=new g.cM(a.Y,b);b.Mc=m;c={Mc:m,playerType:d,durationMs:e,Cc:f,Fd:h,cpn:p,videoData:b,X2:0,ssdaiAdsConfig:c};g.Tb(a.V,c,function(q,t){return q.Cc===t.Cc?q.durationMs-t.durationMs:q.Cc-t.Cc});
a.D.set(p,c);a.hd.set(m,c);a.va.xa("sdai",{attlDone:h-f,acpn:p});l?c.Am=l:n?c.Am=n.Am:c.Am=c.cpn;if(f=c.Am)(d=a.ea.get(f))?(d.push(c),g.Rb(d,function(q,t){return q.Cc-t.Cc})):a.ea.set(f,[c]);
a.J.isActive()&&(a.ya=!1,a.J.stop(),ORa(a),a.cC(!0));return m};
yW=function(a,b){return{ssvc:a,cpn:(null==b?void 0:b.cpn)||"",vid:(null==b?void 0:b.videoData.videoId)||""}};
URa=function(a,b,c){return new g.UD(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
VRa=function(a){return{cpn:a.va.getVideoData().clientPlaybackNonce,durationMs:0,Cc:0,playerType:1,Fd:0,videoData:a.va.getVideoData(),X2:0}};
BW=function(a,b,c){var d=a.I,e=VRa(a),f=a.u;a.u="";var h=b.kh-c.kh;.5<Math.abs(h)&&a.va.xa("sdai",{ttdtb:1,delta:h,cpn:e.cpn,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f});if(b.isAd&&c.isAd){if(b.adCpn&&c.adCpn){var l=a.D.get(b.adCpn);var m=a.D.get(c.adCpn)}m&&l&&(a.api.ma("serverstitchedvideochange",l.Mc,l.Cr),a.va.xa("sdai",yW("a2a",l)),a.Bl++,zW(a,f)&&a.va.xa("sdai",{rsac:"a2a",sac:f,from:m.cpn,to:l.cpn}),AW(a.va,m,l,c.kh,b.kh,d,!!f))}else if(!b.isAd&&c.isAd){a.api.ma("serverstitchedvideochange");
a.va.xa("sdai",yW("a2c"));a.Bl=0;if(h=c.oe)a.ob=h.end;var n;c.adCpn&&(n=a.D.get(c.adCpn));n&&(zW(a,f)&&a.va.xa("sdai",{rsac:"a2c",sac:f,from:n.cpn,to:e.cpn}),AW(a.va,n,e,c.kh,b.kh,d,!!f))}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.D.get(b.adCpn));p&&(a.ob=0,a.api.ma("serverstitchedvideochange",p.Mc,p.Cr),a.va.xa("sdai",yW("c2a",p)),a.Bl=1,zW(a,f)&&a.va.xa("sdai",{rsac:"c2a",sac:f,from:e.cpn,to:p.cpn}),AW(a.va,e,p,c.kh,b.kh,d,!!f))}};
WRa=function(a,b){return a.Mp?!1:uW(a)?!!a.Z:!!CW(a,1E3*b)};
XRa=function(a,b,c){c=1E3*(b+(void 0===c?0:c));var d=g.Ob(a.V,{Cc:c},function(e,f){return e.Cc-f.Cc});
d=0>d?-1*(d+2):d;return 0<=d&&(a=a.V[d],a.Fd>=c)?{zo:a,lz:b}:{zo:void 0,lz:b}};
CW=function(a,b){var c="";uW(a)?(c=b/1E3-a.Zp(),c=a.va.Fy(c)):(b=YRa(a,b))&&(c=b.getId());return c?a.D.get(c):void 0};
YRa=function(a,b){a=g.v(a.C.values());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
NRa=function(a,b){var c=a.Ub||a.api.Pc().getPlayerState();DW(a,!0);a.va.seekTo(b);a=a.api.Pc();b=a.getPlayerState();g.VO(c)&&!g.VO(b)?a.playVideo():g.UO(c)&&!g.UO(b)&&a.pauseVideo()};
DW=function(a,b){a.Gc=NaN;a.Bc.stop();a.tb&&b&&ZRa(a.tb);a.Ub=null;a.tb=null};
$Ra=function(a){var b=void 0===b?-1:b;var c=void 0===c?Infinity:c;for(var d=[],e=g.v(a.V),f=e.next();!f.done;f=e.next())f=f.value,(f.Cc<b||f.Fd>c)&&d.push(f);a.V=d;d=g.v(a.C.values());for(e=d.next();!e.done;e=d.next())e=e.value,e.start>=b&&e.end<=c&&(a.va.removeCueRange(e),a.C.delete(e.getId()),a.va.xa("sdai",{rmAdCR:1}));d=XRa(a,b/1E3);b=d.zo;d=d.lz;if(b&&(d=1E3*d-b.Cc,e=b.Cc+d,b.durationMs=d,b.Fd=e,d=a.C.get(b.cpn))){e=g.v(a.B);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start=
b.Cc+b.durationMs:f.end===d.start&&(f.end=b.Cc);d.start=b.Cc;d.end=b.Cc+b.durationMs}if(b=XRa(a,c/1E3).zo){var h;d="playback_timelinePlaybackId_"+b.Mc+"_video_id_"+(null==(h=b.videoData)?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.Cc+"_parentReturnTimeMs_"+b.Fd;a.GC("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
aSa=function(a){a.ib="";a.Aa.clear();a.Wa.clear();a.Ja.clear();a.C.clear();a.B=[];a.V=[];a.D.clear();a.hd.clear();a.ea.clear();a.Ya.clear();a.Gb=[];a.oa=null;a.le.clear();a.Ga=[];a.Kc=[];a.Vd=[];a.td=[];a.La=[];a.Ud.clear();a.ke.clear();a.Wd.clear();a.Nb.clear();a.ya=!1;a.j=void 0;a.ob=0;a.Za=!0;a.I=!1;a.Bl=0;a.Z=null;a.rd=0;a.Uc=!1;a.Mp=!1;zW(a,a.u)&&a.va.xa("sdai",{rsac:"resetAll",sac:a.u});a.u="";a.J.isActive()&&xW(a)};
cSa=function(a,b,c,d,e){if(!a.Mp)if(g.bSa(a,c))a.Pa&&a.va.xa("sdai",{gdu:"undec",seg:c,itag:e});else return EW(a,b,c,d)};
EW=function(a,b,c,d){var e=a.Ya.get(c);if(!e){b+=a.Zp();b=XRa(a,b,1);var f;b.zo||2!==(null==(f=FW(a,c-1,null!=d?d:2))?void 0:f.RA)?e=b.zo:e=a.Ya.get(c-1)}return e};
dSa=function(a){if(a.La.length)for(var b=g.v(a.La),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);c=g.v(a.C.values());for(b=c.next();!b.done;b=c.next())a.va.removeCueRange(b.value);c=g.v(a.B);for(b=c.next();!b.done;b=c.next())a.va.removeCueRange(b.value);a.C.clear();a.B=[];a.Aa.clear();a.Wa.clear();a.Ja.clear();a.j||(a.Za=!0)};
FW=function(a,b,c,d){if(1===c){if(a.Y.K("html5_reset_daistate_on_audio_codec_change")&&d&&d!==a.ib&&(""!==a.ib&&(a.va.xa("sdai",{rstadaist:1,old:a.ib,"new":d}),a.Aa.clear()),a.ib=d),a.Aa.has(b))return a.Aa.get(b)}else{if(2===c&&a.Wa.has(b))return a.Wa.get(b);if(3===c&&a.Ja.has(b))return a.Ja.get(b)}};
fSa=function(a,b,c,d){if(d)for(d=0;d<a.B.length;){var e=a.B[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;eSa(a,c,f)}else if(e.start>=b&&e.start<c&&e.end>c)e.start=c;else if(e.end>b&&e.end<=c&&e.start<b)e.end=b;else if(e.start>=b&&e.end<=c){a.va.removeCueRange(e);if(a.La.includes(e))a.onCueRangeExit(e);a.B.splice(d,1);continue}d++}else eSa(a,b,c)};
eSa=function(a,b,c){b=URa(b,c);c=!0;g.Tb(a.B,b,function(h,l){return h.start-l.start});
for(var d=0;d<a.B.length;){if(0<d){var e=a.B[d],f=a.B[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.va.removeCueRange(e):c=!1;a.B.splice(d,1);continue}}d++}if(c)for(a.va.addCueRange(b),b=a.va.vB("serverstitchedcuerange",36E5),b=g.v(b),c=b.next();!c.done;c=b.next())a.C.delete(c.value.getId())};
GW=function(a,b,c){if(void 0===c||!c){c=g.v(a.Gb);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.Gb.push(new MRa(b))}};
g.bSa=function(a,b){a=g.v(a.Gb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
RRa=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",m8a:b,Cc:c,Fd:d,b7a:e.Mc,c7a:(null==(f=e.videoData)?void 0:f.videoId)||"",Y6a:e.durationMs,Z6a:e.Cc,a7a:e.Fd};wW(a,b)};
wW=function(a,b){a=a.va;a.xa("timelineerror",b);a.Ld(new SK("dai.timelineerror",b))};
gSa=function(a,b){var c=[];a=a.ea.get(b);if(!a)return[];a=g.v(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
hSa=function(a,b,c){var d=0;a=a.ea.get(c);if(!a)return-1;a=g.v(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
iSa=function(a,b){var c=[];a=a.ea.get(b);if(!a)return[];a=g.v(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=null==(b=d.value.videoData)?void 0:b.videoId)&&c.push(d);return c};
jSa=function(a,b){var c=0;a=a.ea.get(b);if(!a)return 0;a=g.v(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.Fd!==b.Cc&&c++;return c};
kSa=function(a,b,c){var d=!1;if(c&&(c=a.ea.get(c))){c=g.v(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Fd!==e.Cc&&(e=e.cpn,b===e&&(d=!0),d&&!a.ke.has(e)&&(a.va.xa("sdai",{decoratedAd:e}),a.ke.add(e)))}};
ORa=function(a){a.Pa&&a.va.xa("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.rd)+"_isTimeout_"+a.ya})};
QRa=function(a,b,c){if(a.Ga.length)for(var d={},e=g.v(a.Ga),f=e.next();!f.done;d={Rt:d.Rt},f=e.next()){d.Rt=f.value;f=1E3*d.Rt.startSecs;var h=1E3*d.Rt.Qg+f;if(b>f&&b<h||c>f&&c<h)return Ym(a.Vd,function(l){return function(m){return m.identifier===l.Rt.identifier}}(d))||(a.va.xa("sdai",{adskip:b}),a.Vd.push(d.Rt)),d.Rt}};
xW=function(a){a.ya=!1;a.J.isActive()&&ORa(a);a.J.stop();a.cC(!1)};
zW=function(a,b){return""!==b&&a.Y.experiments.kb("html5_ssdai_log_reset_skipping_ad_cpn")};
uW=function(a){return a.Y.experiments.kb("html5_ssdai_use_new_ad_report")};
HW=function(a,b,c){g.E.call(this);this.api=a;this.timeline=b;this.va=c;this.j=new Map;this.va.getPlayerType();this.va.cI(this)};
lSa=function(a,b){a=a.timeline.u.get(b);return(null==a?0:a.length)?a[0].vy():0};
mSa=function(a,b){var c=a.timeline.j;if(!c)return{clipId:"",hN:0};c=c.j;var d=Array.from(c.keys());g.Rb(d);var e=g.Ob(d,b);if(c=c.get(d[0>e?-1*(e+2):e]))for(c=g.v(c.segments),d=c.next();!d.done;d=c.next())if(d=d.value,d.vy()<=b&&d.ML()>b)return{clipId:d.Zr()||"",hN:d.vy()};a.api.xa("ssap",{mci:1});return{clipId:"",hN:0}};
oSa=function(a,b,c){g.E.call(this);var d=this;this.api=a;this.Y=b;this.j=c;this.I=new Map;this.u=[];this.B=this.J=null;this.ea=NaN;this.D=this.C=null;this.V=new g.Ap(function(){nSa(d,d.ea)});
this.Z=[];this.oa=new g.Ap(function(){var e=d.Z.pop();if(e){var f=e.Mc,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.Z.length&&g.Bp(d.oa,4500))}});
this.events=new g.eI(this);c.getPlayerType();g.I(this,this.V);g.I(this,this.oa);g.I(this,this.events);this.events.S(this.api,g.WD("childplayback"),this.onCueRangeEnter);this.events.S(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.S(this.api,"presentingplayerstatechange",this.Gi)};
sSa=function(a,b,c,d,e,f){var h=b.cpn,l=b.docid||b.video_id||b.videoId||b.id,m=a.j;f=void 0===f?e+d:f;if(e>f)return IW(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.Kd();if(e<n)return IW(a,"enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+n,h,l),"";n=1E3*m.getDuration();if(f>n)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+
m.Ed(),IW(a,m,h,l),"";n=null;for(var p=g.v(a.u),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Cc&&e<q.Fd)return IW(a,"overlappingEnter",h,l),"";if(f<=q.Fd&&f>q.Cc)return IW(a,"overlappingReturn",h,l),"";if(f===q.Cc)return IW(a,"outOfOrder",h,l),"";e===q.Fd&&(n=q)}h="cs_childplayback_"+pSa++;l={oe:JW(d,!0),Yl:Infinity,target:null};var t={Mc:h,playerVars:b,playerType:c,durationMs:d,Cc:e,Fd:f,Rr:l};a.u=a.u.concat(t).sort(function(C,G){return C.Cc-G.Cc});
n?qSa(a,n,{oe:JW(n.durationMs,!0),Yl:n.Rr.Yl,target:t}):(b={oe:JW(e,!1),Yl:e,target:t},a.I.set(b.oe,b),m.addCueRange(b.oe));b=!0;if(a.j===a.api.Pc()&&(m=1E3*m.getCurrentTime(),m>=t.Cc&&m<t.Fd)){var w=a.api.Pc().getPlayerState(),z=m-t.Cc;vf(function(){rSa(a,t,z/1E3,w)});
b=!1}b&&(a.Z.unshift(t),g.Bp(a.oa,0));return h};
JW=function(a,b){return new g.UD(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
tSa=function(a,b,c,d){a.B=d;a.api.wF(a.j,c,b)};
uSa=function(a,b,c,d){a.B=d;d=b.Mc;var e=b.playerVars,f=b.playerType;a.J=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
qSa=function(a,b,c){var d=b.Rr;b.Rr=c;KW(a,b)&&(c=a.api.Pc(),d.oe===a.B&&LW(a),c.removeCueRange(d.oe),c.addCueRange(b.Rr.oe))};
LW=function(a){a.J=null;a.B=null;a.api.hv()||a.api.clearQueue()};
vSa=function(a,b){KW(a,b)||IW(a,"childPlaybackIsNotPresenting");return b.Fd===b.Cc+b.durationMs?(a=a.api.Pc(),b.Cc+1E3*a.getCurrentTime()):b.Fd};
wSa=function(a,b){var c=0;a=g.v(a.u);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Cc/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{zo:d,lz:b-e};c=f-d.Fd/1E3}return{zo:null,lz:b-c}};
nSa=function(a,b){var c=a.D||a.api.Pc().getPlayerState();MW(a,!0);b=isFinite(b)?b:a.j.Vp();var d=wSa(a,b);b=d.zo;d=d.lz;var e=b&&!KW(a,b)||!b&&a.j!==a.api.Pc(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||LW(a);b?rSa(a,b,d,c):xSa(a,d,c)};
xSa=function(a,b,c){var d=a.j,e=a.api.Pc();d!==e&&a.api.Nq();d.seekTo(b,{xe:"application_timelinemanager"});ySa(a,c)};
rSa=function(a,b,c,d){var e=KW(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new g.cM(a.Y,b.playerVars);f.Mc=b.Mc;a.api.Qs(f,b.playerType)}f=a.api.Pc();e||f.addCueRange(b.Rr.oe);f.seekTo(c,{xe:"application_timelinemanager"});ySa(a,d)};
ySa=function(a,b){a=a.api.Pc();var c=a.getPlayerState();g.VO(b)&&!g.VO(c)?a.playVideo():g.UO(b)&&!g.UO(c)&&a.pauseVideo()};
MW=function(a,b){a.ea=NaN;a.V.stop();a.C&&b&&ZRa(a.C);a.D=null;a.C=null};
KW=function(a,b){a=a.api.Pc();return!!a&&a.getVideoData().Mc===b.Mc};
zSa=function(a){var b=a.u.find(function(e){return KW(a,e)});
if(b){var c=a.api.Pc();LW(a);var d=new g.OO(8);b=vSa(a,b)/1E3;xSa(a,b,d);c.xa("forceParentTransition",{childPlayback:1});a.j.xa("forceParentTransition",{parentPlayback:1})}};
BSa=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.v(a.I),h=f.next();!h.done;h=f.next()){var l=g.v(h.value);h=l.next().value;l=l.next().value;l.Yl>=d&&l.target&&l.target.Fd<=e&&(a.j.removeCueRange(h),a.I.delete(h))}d=b;e=c;f=[];h=g.v(a.u);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Cc>=d&&l.Fd<=e){var m=a;m.J===l&&LW(m);KW(m,l)&&m.api.Nq()}else f.push(l);a.u=f;d=wSa(a,b/1E3);b=d.zo;d=d.lz;b&&(d*=1E3,ASa(a,b,d,b.Fd===b.Cc+b.durationMs?b.Cc+d:b.Fd));(b=wSa(a,c/1E3).zo)&&
IW(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Mc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Cc+" parentReturnTimeMs="+b.Fd+"}.Child playbacks can only have duration updated not their start."))};
ASa=function(a,b,c,d){b.durationMs=c;b.Fd=d;d={oe:JW(c,!0),Yl:c,target:null};qSa(a,b,d);KW(a,b)&&1E3*a.api.Pc().getCurrentTime()>c&&(b=vSa(a,b)/1E3,c=a.api.Pc().getPlayerState(),xSa(a,b,c))};
IW=function(a,b,c,d){a.j.xa("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
DSa=function(a){a&&"web"!==a&&CSa.includes(a)};
OW=function(a,b){g.E.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.j=new g.Ap(function(){ESa(c);NW(c)});
g.I(this,this.j)};
ESa=function(a){var b=(0,g.GA)();a.data.forEach(function(c){c.expire<b&&PW(a,c,!0)});
a.data=g.On(a.data,function(c){return!(c.expire<b)})};
PW=function(a,b,c){c&&a.u&&a.u(b.value)};
NW=function(a){a.j.stop();var b=Infinity;for(var c=g.v(a.data),d=c.next();!d.done;d=c.next())d=d.value,d.expire<b&&(b=d.expire);b&&isFinite(b)&&(b=Math.max(b-Date.now(),100),a.j.start(b))};
QW=function(){g.E.call(this);this.j=new OW(5,null);g.I(this,this.j);this.u=new OW(15,null);g.I(this,this.u)};
FSa=function(a,b){return b?!!a.j.get(b):!1};
RW=function(){g.dq.call(this);this.D=new Map};
GSa=function(a){g.E.call(this);var b=this;this.j=null;for(var c=[],d=0;100>=d;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.u=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];"undefined"===typeof e.isVisible?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.u.observe(a)};
JSa=function(a){g.V.call(this,{G:"div",Ia:["html5-video-player"],X:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},W:[{G:"div",N:g.SW.VIDEO_CONTAINER,X:{"data-layer":"0"}}]});var b=this;this.app=a;this.eB=this.Da(g.SW.VIDEO_CONTAINER);this.xz=new g.Gm(0,0,0,0);this.hc=null;this.yH=new g.Gm(0,0,0,0);this.cM=this.nN=this.mN=NaN;this.kG=this.uH=this.vO=this.QS=!1;this.TK=NaN;this.LM=!1;this.HC=null;this.IN=function(){b.element.focus()};
this.fH=function(){b.app.Ua.ma("playerUnderlayVisibilityChange","visible");b.hc.classList.remove(g.SW.VIDEO_CONTAINER_TRANSITIONING);b.hc.removeEventListener(NKa,b.fH);b.hc.removeEventListener("transitioncancel",b.fH)};
var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,h,l){c.apply(b.element,[f,h,l])};
this.removeEventListener=function(f,h,l){d.apply(b.element,[f,h,l])};
var e=a.T();e.transparentBackground&&this.Dr("ytp-transparent");"0"===e.controlsType&&this.Dr("ytp-hide-controls");g.Ip(this.element,"ytp-exp-bottom-control-flexbox");e.K("enable_new_paid_product_placement")&&!g.JK(e)&&g.Ip(this.element,"ytp-exp-ppp-update");Boa(this.element,"version",HSa(a));this.LX=!1;this.yB=new g.xe(NaN,NaN);ISa(this);this.S(a.Ua,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
ISa=function(a){function b(){a.hc&&TW(a);UW(a)!==a.LM&&a.resize()}
function c(h,l){a.Fs(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.yH=new g.Gm(0,0,0,0);a.xz=new g.Gm(0,0,0,0)}
var f=a.app.Ua;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.lb(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
LSa=function(a){var b=g.hS(a.app);if(b=b?b.getVideoData():null){if(g.LM(b)||g.MM(b)||g.OM(b))return 16/9;if(wM(b)&&b.C.j)return a=b.C.videoInfos[0].video,KSa(a.width,a.height)}return(a=a.hc)?KSa(a.videoWidth,a.videoHeight):16/9};
MSa=function(a,b,c,d){var e=c,f=KSa(b.width,b.height);a.QS?e=c<f?Infinity:0:isNaN(a.cM)?isNaN(a.nN)||(e=a.nN):e=a.cM;isFinite(e)||(e=Math.max(c,f));a=e>f?{width:b.width,height:b.width/e,aspectRatio:e}:e<f?{width:b.height*e,height:b.height,aspectRatio:e}:{width:b.width,height:b.height,aspectRatio:f};d||isNaN(c)||(c>e?a.width=a.height*c:c<e&&(a.height=a.width/c),a.aspectRatio=c);return a};
KSa=function(a,b){return 1>Math.abs(NSa*b-a)||1>Math.abs(NSa/a-b)?NSa:a/b};
UW=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.hS(a.app);if(!b||b.Mo())return!1;a=a.app.Ua.Cb();b=!g.UN(a,2)||b&&b.getVideoData().Wa;var c=g.UN(a,1024);return a&&b&&!c&&!a.isCued()};
TW=function(a){var b="3"===a.app.T().controlsType&&!a.kG&&UW(a)&&!a.app.iz||!1;a.hc.controls=b;a.hc.tabIndex=b?0:-1;b?a.hc.removeEventListener("focus",a.IN):a.hc.addEventListener("focus",a.IN)};
OSa=function(a){var b=a.Fj(),c=1,d=!1,e=MSa(a,b,a.getVideoAspectRatio()),f=a.app.T(),h=f.K("enable_desktop_player_underlay"),l=ooa(),m=g.jJ(f.experiments,"player_underlay_min_player_width");m=h&&a.vO&&a.getPlayerSize().width>m;if(UW(a)){var n=LSa(a);var p=isNaN(n)||g.lB||VW&&g.xA||m;kB&&!g.Lc(601)?n=e.aspectRatio:p=p||"3"===f.controlsType;p?m?(p=f.K("place_shrunken_video_on_left_of_player"),n=.02*a.getPlayerSize().width,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.Gm(p,0,b.width,b.height)):p=new g.Gm(0,
0,b.width,b.height):(c=e.aspectRatio/n,p=new g.Gm((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.xA&&(n=p.width-b.height*n,0<n&&(p.width+=n,p.height+=n)));g.Mp(a.element,"ytp-fit-cover-video",1>Math.max(p.width-e.width,p.height-e.height));if(l||a.LX)a.hc.style.display="";a.LM=!0}else{p=-b.height;kB?p*=window.devicePixelRatio:g.KK&&(p-=window.screen.height);p=new g.Gm(0,p,b.width,b.height);if(l||a.LX)a.hc.style.display="none";a.LM=!1}Hm(a.yH,p)||(a.yH=p,g.pK(f)?(a.hc.style.setProperty("width",
p.width+"px","important"),a.hc.style.setProperty("height",p.height+"px","important")):g.Tm(a.hc,p.getSize()),d=new g.ve(p.left,p.top),g.Pm(a.hc,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Gm((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Hm(a.xz,b)||(a.xz=b,d=!0);g.Jm(a.hc,"transform",1===c?"":"scaleX("+c+")");h&&m!==a.uH&&(m&&(a.hc.addEventListener(NKa,a.fH),a.hc.addEventListener("transitioncancel",a.fH),a.hc.classList.add(g.SW.VIDEO_CONTAINER_TRANSITIONING)),a.uH=m,a.app.Ua.ma("playerUnderlayVisibilityChange",
a.uH?"transitioning":"hidden"));return d};
PSa=function(){this.csn=g.CE();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.j=new Set;this.u=new Set};
QSa=function(a,b){a.elements.has(b);a.elements.delete(b);a.B.delete(b);a.j.delete(b);a.u.delete(b)};
RSa=function(a){if(a.csn!==g.CE())if("UNDEFINED_CSN"===a.csn)a.csn=g.CE();else{var b=g.CE(),c=g.BE();if(b&&c){a.csn=b;for(var d=g.v(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&g.iy(g.fP)(void 0,b,c,e)}if(b)for(a=g.v(a.j),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.lP(b,c)}};
SSa=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1};
TSa=function(a,b){var c=Math.min(2.5,YJ(a.schedule));a=WW(a);return b-c*a};
VSa=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.Yk&&(d=Math.abs(d));d/=a.playbackRate;var f=1/$J(a.schedule);c=Math.max(.9*(d-3),YJ(a.schedule)+2048*f)/f*a.policy.oo/(b+c);if(!a.policy.uf||d)c=Math.min(c,d);a.policy.Vf&&e&&(c=Math.max(c,a.policy.Vf));return USa(a,c,b)};
USa=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.jo*c),Math.min(Math.min(a.policy.Ja,31*c),Math.ceil(b*c))))||65536};
WW=function(a){return $J(a.schedule,!a.policy.hk,a.policy.ao)};
XW=function(a){return WW(a)/a.playbackRate};
WSa=function(a,b,c,d,e){this.Fa=a;this.Sa=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.j=0;this.C=!1;this.u=this.Sa.isManifestless&&!this.Sa.Se;this.B=null};
XSa=function(a,b){var c=a.j.index,d=a.u.Ma;mH(c,d)||b&&b.Ma===d?(a.D=!mH(c,d),a.ea=!mH(c,d)):(a.D=!0,a.ea=!0)};
ZSa=function(a,b,c,d,e){if(!b.j.Ig()){if(!(d=0===c||!!b.B.length&&b.B[0]instanceof YW))a:{if(b.B.length&&(d=b.B[0],d instanceof ZW&&d.Yj&&d.sj)){d=!0;break a}d=!1}d||a.policy.B||$W(b);return c}a=aX(b,c);if(!isNaN(a))return a;e.AC||b.wk();return d&&(a=pI(d.Hg(),c),!isNaN(a))?(bX(b,a+YSa),c):bX(b,c)};
cTa=function(a,b,c,d){if(a.fh()&&a.j){var e=$Sa(a,b,c);if(-1!==e){a.videoTrack.D=!1;a.audioTrack.D=!1;a.u=!0;g.Af(function(){a.Fa.xa("seekreason",{reason:"behindMinSq",tgt:e});aTa(a,e)});
return}}c?a.videoTrack.ea=!1:a.audioTrack.ea=!1;var f=a.policy.mA||!a.u;0<=aX(a.videoTrack,a.j)&&0<=aX(a.audioTrack,a.j)&&f?((a.videoTrack.D||a.audioTrack.D)&&a.Fa.xa("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.D=!1,a.audioTrack.D=!1):d&&g.Af(function(){if(a.u||!a.policy.jc)bTa(a);else{var h=b.startTime,l=b.duration,m=c?a.videoTrack.D:a.audioTrack.D,n=-1!==a.videoTrack.I&&-1!==a.audioTrack.I,p=a.j>=h&&a.j<h+l+.1,q=!a.videoTrack.ea&&!a.audioTrack.ea,t=a.policy.nA&&aX(a.videoTrack,
h)&&aX(a.audioTrack,h);m&&n&&q&&(p||t?((c?a.videoTrack:a.audioTrack).D=!1,a.videoTrack.D||a.audioTrack.D||(a.Fa.xa("iterativeSeeking",{status:"done",target:h,count:a.seekCount}),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.Fa.xa("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.j,actual:h,duration:l,isVideo:c}),a.seek(a.j,{})):(a.Fa.xa("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.j,actual:h}),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Fa.va.seekTo(h+
.1,{Wu:!0,xe:"chunkSelectorSynchronizeMedia",Er:!0})))}})};
$Sa=function(a,b,c){if(!a.fh())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.rh(a.j);return(mH(c,a.Sa.Ge)||b.Ma===a.Sa.Ge)&&d<a.Sa.Ge?a.Sa.Kd():-1};
aTa=function(a,b){a.u&&-1!==a.videoTrack.I&&-1!==a.audioTrack.I&&(a.u=!1,a.j=b,a.Fa.va.seekTo(b+.1,{Wu:!0,xe:"chunkSelectorSynchronize",Er:!0}))};
bTa=function(a){var b=-1!==a.videoTrack.I,c=-1!==a.audioTrack.I;if(!b||!c)if(b=!b&&cX(a.videoTrack),c=!c&&cX(a.audioTrack),b||c)if(c=b?a.videoTrack:a.audioTrack,b=b?a.audioTrack:a.videoTrack,c.I=cX(c).info.Ma,-1!==b.I){var d=Math.max(b.j.index.getStartTime(b.I),c.j.index.getStartTime(c.I));QI(a.Sa)&&432E3<Math.abs(d-QI(a.Sa))&&mwa(a.Sa);g.Af(function(){aTa(a,d)});
a.Fa.xa("initManifestlessSync",{st:d,a:a.audioTrack.I,v:a.videoTrack.I});a.B&&(a.B.resolve(d+.1),a.B=null)}};
dTa=function(a){this.j=a;this.Z=this.La=this.V=this.Ga=this.B=this.D=this.C=this.I=this.ea=this.Ja=this.ya=this.Aa=this.oa=0;this.ticks={}};
eTa=function(a){a.oa||(a.oa=(0,g.GA)(),oT("mb_s",a.oa,a.j))};
fTa=function(a,b,c,d,e,f){g.aE.call(this);this.Fa=a;this.Sa=b;this.policy=c;this.V=d;this.Ga=e;this.oa=this.j=null;this.B=this.D=NaN;this.I=0;this.ea=NaN;this.C=null;this.ya=new Map;this.Z="";this.Aa=0;this.J=NaN;this.u=f?1:0};
dX=function(a,b,c){b.startSecs+=isNaN(a.I)?0:a.I;a=a.Sa;a.ea.push(b);a.ma("cuepointsadded",c)};
gTa=function(a,b,c){if(0!==a.u&&c&&b.gb[0].Vg()){var d=b.gb[0].Ma,e;d!==(null==(e=a.j)?void 0:e.Ma)||1===a.u||b.Jm()||"predictStart"===a.j.kf.event||a.xa("sdai",{undecevt:1,sq:d,evt:a.j.kf.event});d>a.B&&(a.B=NaN,a.D=NaN);if(a.j&&a.j.Ma===d){d=a.j;e=d.kf;var f=c.Zs(e);a.xa("sdai",{onqevt:e.event,sq:b.gb[0].Ma,gab:f});f?"predictStart"!==e.event?d.fC?eX(a,4,"cue"):(a.B=b.gb[0].Ma,a.D=b.gb[0].C,a.xa("sdai",{joinad:a.u,sg:a.B,st:a.D.toFixed(3)}),a.ea=Date.now(),eX(a,2,"join"),c.dG(d.kf)):(a.J=b.gb[0].Ma+
Math.max(Math.ceil(-e.j/5E3),1),a.xa("sdai",{onpred:b.gb[0].Ma,est:a.J}),a.ea=Date.now(),eX(a,3,"predict"),c.dG(d.kf)):1===a.u&&eX(a,5,"nogab")}else 1===a.u&&eX(a,5,"noad")}};
hTa=function(a,b,c){return(0>c||c===a.B)&&!isNaN(a.D)?a.D:b};
iTa=function(a,b){if(a.j){var c=a.j.kf.Qg-(b.startTime+a.I-a.j.kf.startSecs);0>=c||(c=new MD(a.j.kf.startSecs-(isNaN(a.I)?0:a.I),c,a.j.kf.context,a.j.kf.identifier,"stop",a.j.kf.j+1E3*b.duration),a.xa("cuepointdiscontinuity",{segNum:b.Ma}),dX(a,c,b.Ma))}};
eX=function(a,b,c){a.u!==b&&(a.xa("sdai",{setsst:b,old:a.u,r:c}),a.u=b)};
fX=function(a,b,c,d){(void 0===d?0:d)?eX(a,1,"sk2h"):0<b&&5<=Math.abs(b-c)&&4===a.u&&eX(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))};
gX=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
jTa=function(a,b,c,d,e,f){var h=this;f=void 0===f?[]:f;this.Fa=a;this.Aa=b;this.policy=c;this.Sa=d;this.D=e;this.ob=f;this.logger=new g.aW("dash/abr");this.B=bM;this.j=this.I=null;this.ea=-1;this.Pa=!1;this.nextVideo=this.u=null;this.C=[];this.Ja={};this.J=0;this.Za=this.Z=this.V=!1;this.Ga=0;this.Ya=new Set;this.ib=!1;this.ya=new Map;this.Wa=0;this.tb=!1;this.La=null;this.ze={AX:function(){hX(h)}}};
oTa=function(a,b,c){iX(a,b);kTa(a,c);a.I=a.u;lTa(a);mTa(a);a.j=a.nextVideo;a.I=a.u;return nTa(a)};
qTa=function(a,b){if(pTa(a,b))return null;if("m"===b.reason&&b.isLocked())return iX(a,b),a.J=a.C.length-1,hX(a),jX(a),a.Z=a.Z||a.j!==a.nextVideo,a.j=a.nextVideo,new gX(a.u,a.j,b.reason);"r"===b.reason&&(a.ea=-1);iX(a,b);jX(a);if("r"===b.reason&&a.nextVideo===a.j)return new gX(a.u,a.nextVideo,b.reason);a.j&&a.nextVideo&&kX(a,a.j.info)<kX(a,a.nextVideo.info)&&(b=a.B.reason,a.V=a.V||"r"===b||"u"===b||"v"===b);return null};
rTa=function(a,b){if(b.info.video){if(a.j!==b)return a.j=b,nTa(a)}else a.Za=a.I!==b,a.I=b;return null};
lX=function(a,b,c){a.Wa+=1;if(void 0===c?0:c)a.tb=!0;c=6E4*Math.pow(2,a.Wa);a.ya.set(b.info.id,(0,g.GA)()+c);a.ea=-1;iX(a,a.B)};
mX=function(a){if(a.ya.size){for(var b=(0,g.GA)(),c=g.v(a.ya.values()),d=c.next();!d.done;d=c.next())if(d.value>b)return!0;a.ya.clear()}return!1};
nX=function(a,b){return new gX(a.I,a.j,b||a.B.reason)};
oX=function(a){return a.B.isLocked()};
nTa=function(a){a.Pa?a.Pa=!1:a.ea=(0,g.GA)();a.V=!1;return new gX(a.I,a.j,a.B.reason)};
sTa=function(a,b){var c={};b=g.v(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.j,f=c[e],h=f&&HH(f)&&f.video.j>a.policy.ya,l=e<=a.policy.ya?HH(d):yF(d);if(!f||h||l)c[e]=d}return c};
iX=function(a,b){a.B=b;var c=a.D.videoInfos;if(!oX(a)){var d=(0,g.GA)();c=g.On(c,function(q){if(q.dc>this.policy.dc)return!1;var t=this.Sa.j[q.id],w=t.info.Mb;return this.policy.Lw&&this.Ya.has(w)||this.ya.get(q.id)>d||4<t.u.u||4<t.J?!1:!0},a);
a.tb&&mX(a)&&(c=g.On(c,function(q){return 854>=q.video.width&&480>=q.video.height}))}c.length||(c=a.D.videoInfos);
var e=g.On(c,b.C,b);if(oX(a)&&a.oa){var f=g.sb(c,function(q){return q.id===a.oa});
f?e=[f]:delete a.oa}f="m"===b.reason||"s"===b.reason;a.policy.Rw&&VW&&g.xA&&(!f||1080>b.j)&&(e=e.filter(function(q){return q.video&&(!q.j||q.j.powerEfficient)}));
if(0<e.length)if(wI()){var h=sTa(a,e);e=e.filter(function(q){return!!q&&!!q.video&&q.Mb===h[q.video.j].Mb})}else{var l,m,n=null==(l=e[0])?void 0:null==(m=l.video)?void 0:m.j;
if(n){b=e.filter(function(q){return!!q&&!!q.video&&q.video.j===n});
var p=sTa(a,b)[n].Mb;e=e.filter(function(q){return!!q&&!!q.video&&q.Mb===p})}}e.length||(e=[c[0]]);
e.sort(function(q,t){return kX(a,q)-kX(a,t)});
c={};for(b=1;b<e.length;c={rE:c.rE,qE:c.qE},b++)c.qE=e[b-1],c.rE=e[b],c.qE.video.width>c.rE.video.width?(g.zb(e,b),b--):kX(a,c.qE)*a.policy.J>kX(a,c.rE)&&(g.zb(e,b-1),b--);c=e[e.length-1];a.ib=!!a.j&&!!a.j.info&&a.j.info.Mb!==c.Mb;a.C=e;MLa(a.policy,c)};
kTa=function(a,b){b?a.u=a.Sa.j[b]:(b=g.sb(a.D.j,function(c){return!!c.Ic&&c.Ic.isDefault}),a.policy.Wn&&!b&&(b=g.sb(a.D.j,function(c){return c.audio.j})),b=b||a.D.j[0],a.u=a.Sa.j[b.id]);
hX(a)};
tTa=function(a,b){for(var c=0;c+1<a.C.length&&"tiny"===a.C[c].video.quality;)c++;var d=XW(a.Aa)/a.policy.J;return kX(a,b.info)+kX(a,a.C[c])>d};
hX=function(a){if(!a.u||!a.policy.u&&!a.u.info.Ic){var b=a.D.j;a.u&&a.policy.Wn&&(b=b.filter(function(d){return d.audio.j===a.u.info.audio.j}),b.length||(b=a.D.j));
a.u=a.Sa.j[b[0].id];if(1<b.length){var c=!1;if(c=a.policy.Ub?!0:a.B.isLocked()?240>a.B.j:tTa(a,a.u))a.u=a.Sa.j[g.qb(b).id]}}};
jX=function(a){a.policy.Xi&&(a.La=a.La||new g.Ap(function(){a.policy.Xi&&a.j&&!mX(a)&&1===Math.floor(10*Math.random())?(lX(a,a.j),a.V=!0):a.La.start()},6E4),g.Bp(a.La));
if(!a.nextVideo||!a.policy.u)if(oX(a))a.nextVideo=360>=a.B.j?a.Sa.j[a.C[0].id]:a.Sa.j[g.qb(a.C).id];else{for(var b=Math.min(a.J,a.C.length-1),c=XW(a.Aa),d=kX(a,a.u.info),e=c/a.policy.V-d;0<b&&!(kX(a,a.C[b])<=e);b--);for(var f=c/a.policy.J-d;b<a.C.length-1&&!(kX(a,a.C[b+1])>=f);b++);a.nextVideo=a.Sa.j[a.C[b].id];a.J!==b&&a.logger.info(function(){var h=a.B;return"Adapt to: "+Dva(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+f.toFixed(0)+
", constraint: ["+(h.u+"-"+h.j+", override: "+(h.B+", reason: "+h.reason+"]"))});
a.J=b}};
lTa=function(a){var b=a.policy.V,c=XW(a.Aa),d=c/b-kX(a,a.u.info);b=g.vb(a.C,function(e){return kX(this,e)<d},a);
0>b&&(b=0);a.J=b;a.nextVideo=a.Sa.j[a.C[b].id];a.logger.info(function(){return"Initial selected fmt: "+Dva(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
mTa=function(a){if(a.ob.length){var b=a.ob,c=function(d,e){if("f"===d.info.Mb||b.includes(PG(d,a.Sa.Zc,a.Fa.Pd())))return d;for(var f={},h=0;h<e.length;f={uE:f.uE,zE:f.zE},h++){var l=a.Sa.j[e[h].id],m=PG(l,a.Sa.Zc,a.Fa.Pd());if(b.includes(m)){m=d.info.Mb;var n=l.info.Mb;if(m===n||wI()){if(d.info.u!==l.info.u)return a.Fa.xa("ombifa",{mismatch:"xtag",f:d.info.id,t:l.info.id}),d;f.uE=d.info.itag;f.zE=l.info.itag;a.Fa.xa("ombifa",{f:f.uE,t:f.zE});a.logger.info(function(p){return function(){return"Initial format selection changed from "+
p.uE+" to "+p.zE+" based on prefetched media."}}(f));
a.Pa=!0;return l}a.Fa.xa("ombifa",{mismatch:"efficient",fc:m,tc:n})}}a.Fa.xa("ombifa",{mismatch:"unselectable",fmts:b.join(".")});return d};
a.nextVideo=c(a.nextVideo,a.D.videoInfos);a.u=c(a.u,a.D.j)}};
kX=function(a,b){if(!a.Ja[b.id]){var c=a.Sa.j[b.id].index.RT(a.Ga,15);c=b.vu&&a.j&&a.j.index.isLoaded()?c||b.vu:c||b.dc;a.Ja[b.id]=c}c=a.Ja[b.id];a.policy.Hj&&b.video&&b.video.j>a.policy.Hj&&(c*=1.5);return c};
uTa=function(a,b){a=fba(a.Sa.j,function(c){return c.info.itag===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
vTa=function(a){var b=[];if("m"===a.B.reason||"s"===a.B.reason)return b;if(Vva(a.Sa)){for(var c=Math.max(0,a.J-2);c<a.J&&c<a.C.length;c++)b.push(a.C[c].itag);b.reverse()}return b};
pTa=function(a,b){var c;return a.B.equals(b)&&(!a.oa||!oX(a)||(null==(c=a.nextVideo)?void 0:c.info.id)===a.oa)};
wTa=function(a,b,c){this.B=a;this.Sa=b;this.policy=c;this.rz=[];this.Ne=[];this.j=-1;this.Vb=null;this.timestampOffset=0;this.jd=null;this.u=b.Zc?0:1};
CTa=function(a,b,c,d,e){if(a.policy.Tf)if(e.info.bf){var f;(c=null==(f=c.pop())?void 0:rH(f,e))||(c=e)}else{if(0===c.length)c.push(e);else{var h;(a=null==(h=c[c.length-1])?void 0:rH(h,e))?(c.pop(),c.push(a)):c.push(e)}return d}else c=e;if(a.policy.ll){var l=c;e=xTa(a,l);var m=e.formatId,n=e.Ma;d=e.startTimeMs;e=e.clipId;c=0;a.policy.C&&a.jd&&(c=lSa(a.jd,e));l={formatId:m,startTimeMs:d+c,durationMs:1E3*l.info.I,Et:n,dh:n};m=yTa(b,l.startTimeMs);(n=0<=m?b[m]:null)&&zTa(a,n,l)?l=n:(m+=1,b.splice(m,0,
l));n=0;for(d=m+1;d<b.length;d++){e=b[d];c=l;f=e.startTimeMs+e.durationMs;h=c.startTimeMs+c.durationMs;h>=f+100?e=!0:h+100<e.startTimeMs?e=!1:ATa(a,e.formatId,c.formatId)?(c.durationMs=f-c.startTimeMs,c.dh=e.dh,e=!0):(e.startTimeMs=h,e.Et=c.dh+1,e=!1);if(!e)break;n++}n&&b.splice(m+1,n);a=m}else{e=c;h=xTa(a,e);c=h.formatId;f=h.Ma;h=h.startTimeMs;var p=0<=d?b[d]:null,q;if(q=p?!((null==(l=p.formatId)?void 0:l.itag)!==(null==c?void 0:c.itag)||(null==(m=p.formatId)?void 0:m.xtags)!==(null==c?void 0:c.xtags)||
!a.Sa.Zc&&(null==(n=p.formatId)?void 0:n.gj)!==(null==c?void 0:c.gj)||p.dh!==f&&p.dh+1!==f?0:100>Math.abs(p.startTimeMs+p.durationMs-h)):!0)d=BTa(b,h),p={formatId:c,startTimeMs:h,durationMs:0,Et:f},d+=1,b.splice(d,0,p);p.durationMs+=1E3*e.info.I;p.dh=f;a=d}return a};
BTa=function(a,b){for(var c=-1,d=0;d<a.length;d++){var e=a[d],f=e.startTimeMs;e=f+e.durationMs;b>e&&(c=d);if(b>=f&&b<=e)return d}return c};
yTa=function(a,b){a=g.Ob(a,{startTimeMs:b},function(c,d){return c.startTimeMs-d.startTimeMs});
return 0<=a?a:-a-2};
DTa=function(a){if(a.Vb){var b=a.Vb.Hg();if(0===b.length)a.Ne=[];else{var c=[],d=1E3*b.start(0);b=1E3*b.end(b.length-1);for(var e=g.v(a.Ne),f=e.next();!f.done;f=e.next())f=f.value,f.startTimeMs+f.durationMs<d||f.startTimeMs>b?--a.j:c.push(f);if(0!==c.length){e=c[0];if(e.startTimeMs<d)if(f=a.Sa.I.get(Wva(a.Sa,e.formatId)),d=f.index.rh(d/1E3),d=Math.min(f.index.ud(),d+1),d<=e.dh-a.u){var h=e.startTimeMs;e.startTimeMs=1E3*f.index.getStartTime(d);e.durationMs-=e.startTimeMs-h;e.Et=d+a.u}else c.shift(),
--a.j;0!==c.length&&(d=c[c.length-1],e=d.startTimeMs+d.durationMs,e>b&&a.j!==c.length-1&&(f=a.Sa.I.get(Wva(a.Sa,d.formatId)),b=f.index.rh(b/1E3),h=Math.max(0,b-1),h>=d.Et-a.u?(d.dh=h+a.u,b=1E3*f.index.getStartTime(b),d.durationMs-=e-b):c.pop()),a.Ne=c)}}}};
ETa=function(a){var b=[],c=[].concat(g.la(a.rz));a.Ne.forEach(function(h){b.push(Object.assign({},h))});
for(var d=a.j,e=g.v(a.B.aU()),f=e.next();!f.done;f=e.next())d=CTa(a,b,c,d,f.value);b.forEach(function(h){h.startTimeMs&&(h.startTimeMs+=1E3*a.timestampOffset)});
return{Ne:b,rz:c}};
zTa=function(a,b,c){var d=b.startTimeMs+b.durationMs,e=c.startTimeMs+c.durationMs;if(100<c.startTimeMs-d)return!1;if(ATa(a,b.formatId,c.formatId))return b.durationMs=Math.max(d,e)-b.startTimeMs,b.dh=Math.max(b.dh,c.dh),!0;if(100>=Math.abs(b.startTimeMs-c.startTimeMs)){if(b.durationMs>c.durationMs+100){a=b.formatId;var f=b.dh;b.formatId=c.formatId;b.durationMs=c.durationMs;b.dh=c.dh;c.formatId=a;c.startTimeMs=e;c.durationMs=d-e;c.Et=b.dh+1;c.dh=f;return!1}b.formatId=c.formatId;return!0}d>c.startTimeMs&&
(b.durationMs=c.startTimeMs-b.startTimeMs,b.dh=c.Et-1);return!1};
ATa=function(a,b,c){return b.itag!==c.itag||b.xtags!==c.xtags?!1:a.Sa.Zc||b.gj===c.gj};
xTa=function(a,b){return{formatId:JH(b.info.j.info,a.Sa.Zc),Ma:b.info.Ma+a.u,startTimeMs:1E3*b.info.C,clipId:b.info.clipId}};
FTa=function(a){a.Ne=[];a.rz=[];a.j=-1};
GTa=function(a,b){this.u=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
Jya=function(a,b){var c,d,e;return g.A(function(f){if(1==f.j){if(!b)return f.return(b);c=pX.Xq("woe");d=new g.MJ(a.u);return g.y(f,d.encrypt(b,a.j),2)}e=f.u;pX.Rp(c,Math.ceil(b.byteLength/16));return f.return(e)})};
Pya=function(a,b){var c,d,e;return g.A(function(f){if(1==f.j){if(!b)return f.return(b);c=pX.Xq("wod");d=new g.MJ(a.u);return g.y(f,d.decrypt(b,a.j),2)}e=f.u;pX.Rp(c,Math.ceil(b.byteLength/16));return f.return(e)})};
ITa=function(a,b,c){var d=this;this.policy=a;this.j=b;this.Aa=c;this.C=this.u=0;this.Bf=null;this.Z=new Set;this.ea=[];this.indexRange=this.initRange=null;this.V=new dK;this.oa=this.ya=!1;this.ze={G7a:function(){return d.B},
k7a:function(){return d.chunkSize},
j7a:function(){return d.J},
i7a:function(){return d.I}};
(b=HTa(this))?(this.chunkSize=b.csz,this.B=Math.floor(b.clen/b.csz),this.J=b.ck,this.I=b.civ):(this.chunkSize=a.Mw,this.B=0,this.J=g.HD(16),this.I=g.HD(16));this.D=new Uint8Array(this.chunkSize);this.J&&this.I&&(this.crypto=new GTa(this.J,this.I))};
HTa=function(a){if(a.policy.ke&&a.policy.Ow)for(var b={},c=g.v(a.policy.ke),d=c.next();!d.done;b={sE:b.sE,tE:b.tE},d=c.next())if(d=g.oy(d.value),b.sE=+d.clen,b.tE=+d.csz,0<b.sE&&0<b.tE&&a.policy.u===d.docid&&a.j.info.id===d.fmtid&&a.j.info.lastModified===+d.lmt)return a={},a.clen=b.sE,a.csz=b.tE,a.ck=d.ck,a.civ=d.civ,a};
qX=function(a){return!!a.Bf&&VG(a.Bf)};
NTa=function(a,b){if(!qX(a)&&!a.isDisposed()){if(!(a.ya||(a.ya=!0,0<a.B))){var c=JTa(a);c=TL(a.policy.u,a.j.info,rX(a),c,a.policy.La);KTa(a,c)}if(1===b.info.type){if(a.Bf){sX(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=SG(0,b.j.totalLength)}else if(2===b.info.type)a.Bf&&1===a.Bf.type||sX(a,Error("Woffle: Index before init")),a.indexRange=SG(a.initRange.end+1,b.j.totalLength);else if(3===b.info.type){if(!a.Bf){sX(a,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(3===a.Bf.type&&!YG(a.Bf,b.info)&&(a.ea=[],b.info.Ma!==ZG(a.Bf)||0!==b.info.Qb))return;if(b.info.bf){c=g.v(a.ea);for(var d=c.next();!d.done;d=c.next())LTa(a,d.value);a.ea=[]}else{a.ea.push(b);a.Bf=b.info;return}}else{sX(a,Error("Woffle: Unexpected slice type"));return}a.Bf=b.info;LTa(a,b);MTa(a)}};
LTa=function(a,b){var c=0,d=NF(b.j);if(a.C<a.B){c=a.B*a.chunkSize;var e,f=((null==(e=b.info.range)?void 0:e.start)||0)+b.info.Qb;c-=f;if(c>=d.length)return;if(0>c)throw Error("Missing data");a.C=a.B;a.u=0}for(e={};c<d.length;){e.uA=Math.min(d.length-c,a.D.byteLength-a.u);f=new Uint8Array(d.buffer,d.byteOffset+c,e.uA);a.D.set(f,a.u);a.u+=e.uA;c+=e.uA;if(a.u===a.D.length){if(b.info===a.Bf&&qX(a)&&c===d.length)break;f=JTa(a);f=TL(a.policy.u,a.j.info,rX(a),f,a.policy.La,a.C,a.D,a.crypto);a.Z.add(f);KTa(a,
f);a.isDisposed()||(f=JTa(a),a.Aa(rX(a),void 0!==f?(f.downloadedEndTime||0)*f.averageByteRate:f.maxKnownEndTime*f.averageByteRate,f.maxKnownEndTime*f.averageByteRate));a.D=new Uint8Array(a.chunkSize);a.u=0;a.C+=1}e={uA:e.uA}}};
MTa=function(a){if(qX(a))if(a.Bf&&a.indexRange)if(a.u){var b=new Uint8Array(a.D.buffer,0,a.u),c=OTa(a),d=a.policy.u;Promise.all(a.Z).then(function(){var e=TL(d,a.Bf.j.info,rX(a,!0),c,a.policy.La,a.C,b,a.crypto);KTa(a,e,!0)})}else sX(a,new tX("Woffle: Expect always re-mark currentChunkOffset at EOS"));
else sX(a,new tX("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
JTa=function(a){return{downloadedEndTime:Math.round(a.Bf?a.Bf.B:0),maxKnownEndTime:Math.round(a.j.index.ws()),averageByteRate:Math.round(a.j.info.vu)}};
OTa=function(a){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(a.j.index.ws()),averageByteRate:Math.round(a.j.info.vu)}};
rX=function(a,b){void 0===b||!b||a.indexRange&&a.initRange&&a.Bf||sX(a,new tX("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));b={lmt:a.j.info.lastModified,docid:a.policy.u,fmtid:a.j.info.id,type:a.j.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.C*a.chunkSize+a.u};a.crypto&&(b.ck=a.J,b.civ=a.I);var c="local://localhost/videoplayback?"+ly(b),d,e;b={itag:+a.j.info.itag,mimeType:a.j.info.mimeType,bitrate:8*a.j.info.dc,lastModified:String(a.j.info.lastModified),initRange:null==
(d=a.initRange)?void 0:Sua(d),indexRange:null==(e=a.indexRange)?void 0:Sua(e),url:c};if(d=a.j.info.u)b.xtags=d;if(d=a.j.info.video)if(b.quality=d.quality,b.qualityLabel=d.qualityLabel,b.width=d.width,b.height=d.height,d=d.fps)b.fps=d;if(a=a.j.info.audio){if(d=a.sampleRate)b.audioSampleRate=String(d);if(a=a.numChannels)b.audioChannels=a}return b};
KTa=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){a.Z.delete(b);(c||4===d)&&a.V.resolve(d)},function(d){a.V.reject(d)})};
sX=function(a,b){4!==g.PL(a.policy.u)&&(g.QL(a.policy.u,4),g.AD(b),a.V.reject(new tX(b.message)))};
tX=function(a,b){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.j=void 0===b?!1:b};
PTa=function(a){a=g.qG(a,1886614376);for(var b=g.v(a),c=b.next();!c.done;c=b.next());return g.$l(a,function(d){return new Uint8Array(d.data.buffer,d.offset+d.data.byteOffset,d.size)})};
QTa=function(a){var b=bm(a,function(e,f){return e+f.length},0);
b=new Uint8Array(b);var c=0;a=g.v(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b.set(d,c),c+=d.length;return b};
RTa=function(a,b,c,d,e,f){this.ids=a;this.j=b;this.u=c;this.C=d;this.B=e;this.RA=f};
STa=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.j=this.cryptoPeriodIndex=NaN;this.B=[];this.Ee=!1;this.u=null;if("webm"===(null==b?void 0:b.toLowerCase())||16===a.length)this.Ee=!0};
UTa=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c<d.byteLength-8;){var e=d.getUint32(c);if(1>=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0<d.getUint8(c+8)){var h=d.getUint32(c+28);f+=16*h+4}var l=d.getUint32(c+f-4);try{var m=TTa(b.subarray(c+f,c+f+l));if(null!==m){var n=m;break a}}catch(p){}}c+=e}n=null}catch(p){n=null}}if(null!=n)for(b=Kh(n,7),null==b||a.Ee||(a.cryptoPeriodIndex=b),b=Kh(n,10),null!=b&&0<b&&!a.Ee&&(a.j=b),n=g.v(jh(n,2,Tg(n.Re)&18?eea:fea)),
b=n.next();!b.done;b=n.next())a.B.push(g.Zf(mg(b.value),4))};
VTa=function(a){return isNaN(a.cryptoPeriodIndex)?g.Zf(a.initData):""+a.cryptoPeriodIndex};
uX=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;var e=void 0===d.qD?void 0:d.qD;d=void 0===d.mG?!1:d.mG;this.videoId=a;this.status=b;this.videoDuration=c;this.qD=e;this.mG=d};
WTa=function(a,b,c,d,e){this.videoId=a;this.B=b;this.u=c;this.bytesDownloaded=d;this.j=e};
XTa=function(a){this.j=a;this.offset=0};
YTa=function(a){if(a.offset>=a.j.totalLength)throw Error();return OF(a.j,a.offset++)};
ZTa=function(a,b){b=void 0===b?!1:b;var c=YTa(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=YTa(a);-1===b&&255!==d&&(b=0);-1<b&&(b=256*b+d)}return b}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+YTa(a),d*=128;return b?c:c-d};
aUa=function(a,b,c){var d=this;this.Fa=a;this.policy=b;this.I=c;this.logger=new g.aW("dash");this.u=[];this.j=null;this.ya=-1;this.ea=0;this.Ga=NaN;this.Z=0;this.B=NaN;this.V=this.La=0;this.Ya=-1;this.Ja=this.C=this.D=this.Aa=null;this.Za=this.Wa=NaN;this.J=this.oa=this.Pa=this.ib=null;this.ob=!1;this.timestampOffset=0;this.ze={aU:function(){return d.u}};
if(this.policy.u){var e=this.I,f=this.policy.u;this.policy.La&&a.xa("atv",{ap:this.policy.La});this.J=new ITa(this.policy,e,function(h,l,m){vX(a,new uX(d.policy.u,2,{qD:new WTa(f,h,e.info,l,m)}))});
this.J.V.promise.then(function(h){d.J=null;1===h?vX(a,new uX(d.policy.u,h)):d.Fa.xa("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
h instanceof tX&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.Fa.xa("offlinenwerr",{em:l}),$Ta(d),vX(a,new uX(d.policy.u,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.Fa.xa("dldbwerr",{em:l}),$Ta(d),vX(a,new uX(d.policy.u,4,{mG:!0})))})}};
bUa=function(a){return a.u.length?a.u[0]:null};
wX=function(a){return a.u.length?a.u[a.u.length-1]:null};
iUa=function(a,b,c,d){d=void 0===d?0:d;if(a.C){var e=a.C.Qb+a.C.u;if(0<c.info.Qb)if(c.info.Ma===a.C.Ma&&c.info.Qb<e){if(c.info.Qb+c.info.u<=e)return;c=rva(c,e-c.info.Qb)[1]}else if(0<=c.info.Ma&&0<=a.C.Ma&&!YG(a.C,c.info))throw new g.Yz("improper_continuation",aH(a.C),aH(c.info));e=a.C;var f=c.info;(e.Ma!==f.Ma&&f.Ma!==e.Ma+1||e.type!==f.type?0:YG(e,f)||(ue(e.C,f.C)&&e.Ma===f.Ma?0:Vua(e,f)))||cUa(a,"d")}else if(0<c.info.Qb)throw new g.Yz("continuation_of_null",aH(c.info));a.C=c.info;a.I=c.info.j;
if(0===c.info.Qb){if(a.j)if(!a.Fa.isOffline()||a.policy.Ri)a.Fa.xa("slice_not_fully_processed",{buffered:aH(a.j.info),push:aH(c.info)});else throw new g.Yz("slice_not_fully_processed",aH(a.j.info),aH(c.info));xX(a);a.La=d}else{if(a.La&&d&&a.La!==d)throw a=new g.Yz("lmt_mismatch",c.info.Ma,a.La,d),a.level="WARNING",a;!c.info.j.Ym()&&a.D&&(d=c.info,e=a.D.j,d.D="updateWithEmsg",d.Ma=e)}if(a.j){d=rH(a.j,c);if(!d)throw new g.Yz("failed_to_merge",aH(a.j.info),aH(c.info));a.j=d}else a.j=c;a:{c=g.sH(a.j.info.j.info);
if(3!==a.j.info.type){if(!a.j.info.bf)break a;6===a.j.info.type?dUa(a,b,a.j):eUa(a,a.j);a.j=null}for(;a.j;){d=a.j.j.totalLength;if(0>=a.ya&&0===a.ea){var h=a.j.j;e=f=-1;if(c){for(var l=0;l+8<h.totalLength;){var m=nua(h,l),n=nua(h,l+4);l+=m||1;if(1836019558===n)f=l;else if(1835295092===n){e=l;break}}0>e&&(f=-1)}else{h=new XTa(h);for(m=l=!1;;){n=h.Xp();var p=h;try{var q=ZTa(p,!0),t=ZTa(p,!1);var w=q;var z=t}catch(G){z=w=-1}p=w;var C=z;if(!(0<p))break;if(408125543!==p)if(524531317===p)l=!0,0<=C&&(e=
h.Xp()+C,m=!0);else{if(l&&(160===p||163===p)&&(0>f&&(f=n),m))break;163===p&&(f=Math.max(0,f),e=h.Xp()+C);if(160===p){0>f&&(e=f=h.Xp()+C);break}h.skip(C)}}0>f&&(e=-1)}if(0>f)break;a.ya=f;a.ea=e-f}if(a.ya>d)break;a.ya?(d=fUa(a,a.ya),d.C&&gUa(a,d),dUa(a,b,d),hUa(a,d),a.ya=0):a.ea&&(d=fUa(a,0>a.ea?Infinity:a.ea),a.ea-=d.j.totalLength,hUa(a,d))}}a.j&&a.j.info.bf&&(hUa(a,a.j),a.j=null)};
eUa=function(a,b){!b.info.j.Ym()&&0===b.info.Qb&&(g.sH(b.info.j.info)||b.info.j.info.Ee())&&xva(b);if(1===b.info.type)try{gUa(a,b),jUa(a,b)}catch(d){g.zD(d);var c=$G(b.info);c.hms="1";a.Fa.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.iM(b);a.J&&NTa(a.J,b);c.Ig()&&a.policy.B&&(a=a.Fa.Sa,a.La.push(JH(c.info,a.Zc)))};
$Ta=function(a){var b;null==(b=a.J)||b.dispose();a.J=null};
kUa=function(a){var b=a.u.reduce(function(c,d){return c+d.j.totalLength},0);
a.j&&(b+=a.j.j.totalLength);return b};
fUa=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=rva(c,b);a.j=c[1];return c[0]};
gUa=function(a,b){var c=qH(b);if(GH(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new rG(c);tG(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.pos,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.j.info;yF(d)&&!GH(d)&&(d=qH(b),(new rG(d)).Xm(),xG([408125543,374648427,174,224],21936,d));b.info.j.info.Vg()&&(d=b.info.j,d.info&&d.info.video&&"MESH"===d.info.video.projectionType&&!d.B&&(g.sH(d.info)?d.B=zua(c):d.info.Ee()&&(d.B=Gua(c))));b.info.j.info.Ee()&&
b.info.Vg()&&(c=qH(b),(new rG(c)).Xm(),xG([408125543,374648427,174,224],30320,c)&&xG([408125543,374648427,174,224],21432,c));if(a.policy.Lx&&b.info.j.info.Ee()){c=qH(b);var e=new rG(c);if(tG(e,[408125543,374648427,174,29637])){d=wG(e,!0);e=e.start+e.pos;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.Fk()&&g.sH(b.info.j.info)){d=qH(b);c=g.hG(d,0,1701606260);f=g.hG(d,0,1836476516);if(c&&f){c.skip(2);var h=YF(c),l=$F(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(aG(c)),e.push(aG(c)),
m.push(YF(c)),n.push(YF(c));else for(h=0;h<l;++h)d.push(ZF(c)),e.push(ZF(c)),m.push(YF(c)),n.push(YF(c));c=g.iG(f);c=new wua(e[0]/c,d[0]/c)}else c=null;if(c){if(g.sH(b.info.j.info))for(d=qH(b),e=g.hG(d,0,1701082227);e;)f=e,f.type=1936419184,f.data.setUint32(f.offset+4,1936419184),e=g.hG(d,e.offset+e.size,1701082227);a.ob=!0;b.info.j.D=c}}b.info.j.Ym()||b.info.j.j||b.info.j.indexRange||vH(b)};
dUa=function(a,b,c){if(c.info.j.Ym()){if(a.ob&&lUa(c)&&(b=qH(c),b=g.hG(b,0,1953658222))){b.skip(1);var d=XF(b)<<16|YF(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=$F(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=$F(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.j,e))}}if(b=a.Aa&&!!a.Aa.I.D)if(b=c.info.Vg())b=vva(c),h=a.Aa,yX?(l=1/b,b=zX(a,b)>=zX(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&lUa(c)&&(b=a.Aa,yX?(l=vva(c),h=1/l,l=zX(a,l),b=zX(b)+h-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,yua(qH(c),b))}else{h=!1;a.D||(xva(c),c.u&&(a.D=c.u,h=!0,f=c.info,d=c.u.j,f.D="updateWithEmsg",f.Ma=d,f=c.u,f.C&&(a.I.index.u=!f.C),f=c.info.j.info,d=qH(c),g.sH(f)?pG(d,1701671783):f.Ee()&&xG([408125543],307544935,d)));a:if((f=uH(c,a.policy.Nb))&&wva(c))l=mUa(a,c),a.V+=l,f-=l,a.Z+=f,a.B=a.policy.Ro?a.B+f:NaN;else{if(a.policy.Do){if(d=m=a.Fa.Er(sva(c),1),0<=a.B&&6!==c.info.type){if(a.policy.Ro&&isNaN(a.Wa)){g.AD(new g.Yz("Missing duration while processing previous chunk",
aH(c.info)));a.Fa.isOffline()&&!a.policy.Ri||nUa(a,c,d);cUa(a,"m");break a}var n=m-a.B,p=n-a.V,q=c.info.Ma,t=a.Ja?a.Ja.Ma:-1,w=a.Za,z=a.Wa,C=a.policy.qm&&n>a.policy.qm,G=10<Math.abs(p),O=1E-7>Math.abs(a.B-d);if(1E-4<Math.abs(p)){var N=null==(e=a.D)?void 0:fG(e);e={audio:""+ +a.Fk(),sq:q.toFixed(),sliceStart:m,lastSq:t.toFixed(),lastSliceStart:w,lastSliceDuration:z,totalDrift:(1E3*n).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+ +(C||G)};if(null==N?0:N.length)e.adCpn=N[0];a.Fa.handleError("qoe.avsync",
e);a.Ya=q}C||G||O||(d=a.B);e=mUa(a,c,m);f-=e;a.V=n+e;a.policy.D&&(p&&!O||e)&&(n=null==(l=a.D)?void 0:fG(l),a.Fa.xa("discontinuityRewrite",{adCpn:(null==n?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Ma,originalStartTime:m,rewrittenStartTime:d,startTimeAdjustment:d-m,segDrift:(1E3*p).toFixed(),originalDuration:f+e,rewrittenDuration:f,durationAdjustment:e}))}}else d=isNaN(a.B)?c.info.startTime:a.B;nUa(a,c,d)&&(a.Z+=f,a.B=d+f)}a.Ja=c.info;a.Wa=uva(c);0<=c.D&&(a.Za=c.D);if(h&&a.D){h=oUa(a,
!0);bH(c.info,h);a.j&&bH(a.j.info,h);if(!a.policy.Vd)for(b=g.v(b),l=b.next();!l.done;l=b.next())bH(l.value,h);(c.info.bf||a.j&&a.j.info.bf)&&6!==c.info.type||(a.oa=h,b=a.Fa,b.Sa.isManifestless&&pUa(b,h,null,!!a.I.info.video),a.policy.Wd||qUa(a))}}jUa(a,c);a.timestampOffset&&tH(c,a.timestampOffset)};
hUa=function(a,b){if(b.info.bf){a.ib=b.info;if(a.D){var c=a.D,d=oUa(a,!1),e=null;if(a.D.fC()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=fG(c),h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.v(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.v(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.v(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 RTa(e,f,h,l,g.uua(c),g.vua(c))}a.Fa.RN(a.I,d,e);a.oa||a.policy.Wd||qUa(a);a.oa=null}xX(a)}a.J&&NTa(a.J,b);if(c=wX(a))if(c=rH(c,b,a.policy.lA)){a.u.pop();a.u.push(c);return}a.u.push(b)};
xX=function(a){a.j=null;a.ya=-1;a.ea=0;a.D=null;a.Ga=NaN;a.Z=0;a.oa=null};
cUa=function(a,b){b={rst4disc:b,cd:a.V.toFixed(3),sq:a.Ja?a.Ja.Ma:-1};a.B=NaN;a.V=0;a.Ya=-1;a.Ja=null;a.Za=NaN;a.Wa=NaN;a.Pa=null;a.Fa.xa("mdstm",b)};
jUa=function(a,b){if(a.I.info.Nd){if(b.info.j.info.Ee()){var c=new rG(qH(b));if(tG(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=wG(c,!0);c=16!==d?null:BG(c,d)}else c=null;d="webm"}else b.info.J=PTa(qH(b)),c=QTa(b.info.J),d="cenc";c&&c.length&&(c=new STa(c,d),a.policy.wx&&g.sH(b.info.j.info)&&(d=Eua(qH(b)))&&(c.u=d),c.Ee=b.info.j.info.Ee(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),b.u&&b.u.B&&(c.j=b.u.B),a.Fa.mz(c))}};
qUa=function(a){var b=a.D,c=sua(b);c&&(c.startSecs+=a.Ga,a.Fa.QN(a.I,c,b.j,b.fC()))};
oUa=function(a,b){var c,d=a.D;if(c=sua(d))c.startSecs+=a.Ga;return new GF(d.j,a.Ga,b?d.Xj:a.Z,d.ingestionTime,"sq/"+d.j,void 0,void 0,b,c)};
nUa=function(a,b,c){if(!tva(b,c))return b=$G(b.info),b.smst="1",a.Fa.handleError("fmt.unparseable",b||{},1),!1;isNaN(a.Ga)&&(a.Ga=c);return!0};
mUa=function(a,b,c){var d=0;if(b.info.j.info.Ee()&&!wva(b))return 0;if(a.Aa&&!a.Fk()){var e=0;c&&g.sH(b.info.j.info)?e=c-a.B:b.info.j.info.Ee()&&(e=a.V);var f=b.info.Ma;c=uH(b,a.policy.Nb);var h=a.Aa;var l=h.Ya;h=h.V;var m=.02<Math.abs(h-e);if((f===l||f>l&&f>a.Ya)&&m){d=Math.max(.95,Math.min(1.05,(c-(h-e))/c));if(g.sH(b.info.j.info))yua(qH(b),d);else if(b.info.j.info.Ee()&&(f=e-h,!g.sH(b.info.j.info)&&(b.info.j.info.Ee(),d=new rG(qH(b)),l=b.C?d:new rG(new DataView(b.info.j.j.buffer)),uH(b,!0)))){var n=
1E3*f,p=DG(l);l=d.pos;d.pos=0;if(160===d.j.getUint8(d.pos)||EG(d))if(vG(d,160))if(wG(d,!0),vG(d,155)){if(f=d.pos,m=wG(d,!0),d.pos=f,n=1E9*n/p,p=yG(d),n=p+Math.max(.7*-p,Math.min(p,n)),n=Math.sign(n)*Math.floor(Math.abs(n)),!(Math.ceil(Math.log(n)/Math.log(2)/8)>m)){d.pos=f+1;for(f=m-1;0<=f;f--)d.j.setUint8(d.pos+f,n&255),n>>>=8;d.pos=l}}else d.pos=l;else d.pos=l;else d.pos=l}d=uH(b,a.policy.Nb);d=c-d}d&&b.info.j.info.Ee()&&a.Fa.xa("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+d,audioDrift:h})}return d};
lUa=function(a){return a.info.j.Ym()&&a.info.Ma===a.info.j.index.ud()};
zX=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.I.D&&b&&(b+=a.I.D.j);return b+a.getDuration()};
rUa=function(a,b){0>b||(a.u.forEach(function(c){tH(c,b)}),a.timestampOffset=b)};
AX=function(a,b){var c=this,d=b.Ih,e=b.Bz,f=void 0===b.uB?1:b.uB,h=void 0===b.jH?f:b.jH,l=void 0===b.Fm?!1:b.Fm,m=void 0===b.qq?!1:b.qq,n=void 0===b.kL?!1:b.kL,p=b.Ik,q=b.Ma;b=b.Rg;this.callbacks=a;this.requestNumber=++sUa;this.j=this.now();this.ya=this.Pa=NaN;this.Ja=0;this.C=this.j;this.u=0;this.Wa=this.j;this.Aa=0;this.Ya=this.La=this.isActive=!1;this.B=0;this.Z=NaN;this.J=this.D=Infinity;this.V=NaN;this.Ga=!1;this.ea=NaN;this.I=void 0;this.ze={Z7a:function(){return c.Fm}};
this.Ih=d;this.Bz=e;this.policy=this.Ih.ya;this.uB=f;this.jH=h;this.Fm=l;this.qq=m;n&&(this.I=[]);this.Ik=p;this.Ma=q;this.Rg=b;this.snapshot=aK(this.Ih);tUa(this);uUa(this,this.j);this.Z=(this.ea-this.j)/1E3};
vUa=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
BX=function(a){var b={rn:a.requestNumber,rt:(a.now()-a.j).toFixed(),lb:a.u,pt:(1E3*a.Z).toFixed(),pb:a.uB,stall:(1E3*a.B).toFixed(),ht:(a.Pa-a.j).toFixed(),elt:(a.ya-a.j).toFixed(),elb:a.Ja};a.url&&NQa(b,a.url);return b};
yUa=function(a,b,c,d){if(!a.La){a.La=!0;if(!a.qq){wUa(a,b,c);xUa(a,b,c);var e=a.Yr();if(2===e&&d)CX(a,a.u/d,a.u);else if(2===e||1===e)d=(b-a.j)/1E3,(d<=a.policy.j||!a.policy.j)&&!a.Ya&&DX(a)&&CX(a,d,c),DX(a)&&(d=a.Ih,d.j.xi(1,a.B/Math.max(c,2048)),bK(d));c=a.Ih;b=(b-a.j)/1E3||.05;d=a.Z;e=a.Fm;c.I.xi(b,a.u/b);c.C=(0,g.GA)();e||c.u.xi(1,b-d)}EX(a)}};
EX=function(a){a.isActive&&(a.isActive=!1)};
xUa=function(a,b,c){var d=(b-a.C)/1E3,e=c-a.u,f=a.Yr();if(a.isActive)1===f&&0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&CX(a,.05,e)):CX(a,d,e),a.Ya=!0);else if(zUa(a,c)){if(1===f&&(f=(b-a.j)/1E3,!AUa(a)&&!a.qq)){var h=a.Ih;h.J.xi(1,f);bK(h)}a.ya=b;a.Ja=c;a.isActive=!0}a.qq||(pxa(a.Ih,d,e),a.Bz(d,e));a.C=b;a.u=c};
CX=function(a,b,c){if(!a.qq){b=Math.max(b,.05);a=a.Ih;var d=b;a.B.xi(void 0===b?d:b,c/d);a.C=(0,g.GA)()}};
wUa=function(a,b,c){c=Math.round(c/1024);a.I&&a.I.push(BUa(b-a.Wa,c-a.Aa));a.Wa=b;a.Aa=c};
FX=function(a){return a.I?a.I.join(""):""};
zUa=function(a,b){return b?a.uG()?!0:2048<=b:!1};
DX=function(a){return zUa(a,a.u)};
CUa=function(a){return(a.C-a.j)/1E3};
tUa=function(a){a.V=a.j+1E3*a.snapshot.delay;a.Ga=!1};
FUa=function(a,b){if(a.Ik&&void 0!==a.Ma&&void 0!==a.Rg){var c=Math,d=c.min,e=a.D;var f=a.Ik;var h=a.j;if(DUa(f,a.Ma))f=b;else{var l=0;f.dk&&(l=.2);f=h+1E3*(f.pj+l)}a.D=d.call(c,e,f);c=Math;d=c.min;e=a.J;f=a.Ik;h=a.j;l=EUa(f,a.Ma,a.Rg);2!==l&&(b=l?b:h+1E3*f.pj,f.dk&&(b+=1E3*f.pj));a.J=d.call(c,e,b);a.D<=a.j?tUa(a):(a.V=a.D,a.Ga=!0)}};
AUa=function(a){a.Ik&&FUa(a,a.now());return a.Ga};
uUa=function(a,b){b=void 0===b?a.now():b;if(a.Ik){FUa(a,b);if(a.oa?a.uG():a.D!==a.J){var c=a.J;if(b<c){a.ea=a.J;return}}else c=a.D;c=Math.max(c,a.V)}else c=a.V;var d=a.uB-a.u;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=DX(a)?d+b:d+Math.max(b,c);a.ea=d};
BUa=function(a,b){for(var c="";4095<a;)c+=BUa(4095,0),a-=4095;for(;4095<b;)c+=BUa(a,4095),b-=4095,a=0;return c+("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))};
GUa=function(a,b){if(b+1<=a.totalLength){var c=OF(a,b);c=128>c?1:192>c?2:224>c?3:240>c?4:5}else c=0;if(1>c||!(b+c<=a.totalLength))return[-1,b];if(1===c)a=OF(a,b++);else if(2===c)c=OF(a,b++),a=OF(a,b++),a=(c&63)+64*a;else if(3===c){c=OF(a,b++);var d=OF(a,b++);a=OF(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=OF(a,b++);d=OF(a,b++);var e=OF(a,b++);a=OF(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),MF(a,c,4)?a=kua(a).getUint32(c-a.B,!0):(d=OF(a,c+2)+256*OF(a,c+3),a=OF(a,c)+256*(OF(a,c+1)+
256*d)),b+=5;return[a,b]};
GX=function(a){this.callbacks=a;this.j=new IF};
HX=function(a,b){this.info=a;this.callback=b;this.state=1;this.sz=this.pM=!1;this.ge=null};
HUa=function(a){return g.am(a.info.gb,function(b){return 3===b.type})};
IUa=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.status=0;this.j=new IF;this.B=0;this.isDisposed=this.C=!1;this.D=0;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.v(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.xhr.setRequestHeader(c,a[c]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return e.nz()};
this.xhr.onload=function(){return e.onDone()};
this.xhr.onerror=function(){return e.onError()};
this.xhr.fetch(function(f){e.u&&e.j.append(e.u);e.policy.j?e.j.append(f):e.u=f;e.B+=f.length;f=(0,g.GA)();10<f-e.D&&(e.callbacks.kt(f,e.B),e.D=f)},function(){},d.body||null)};
KUa=function(a,b){var c=this;this.j=a;this.callbacks=b;this.loaded=this.status=0;this.error="";a=RG(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new IF;JUa(this).then(function(){c.callbacks.Jq()},function(d){c.error=""+d||"unknown_err";
c.callbacks.Jq()})};
JUa=function(a){var b,c,d,e,f,h,l,m,n,p,q,t,w,z,C;return g.A(function(G){if(1==G.j){a.status=200;b=a.j.get("docid");c=Fe(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 GTa(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(5!=G.j)return n<=m?g.y(G,Qya(b,c,d,n,f),5):G.Ka(0);p=G.u;if(void 0===p)throw Error("invariant: data is undefined");q=n*e;t=(n+1)*e;
w=Math.max(0,h.start-q);z=Math.min(h.end+1,t)-(w+q);C=new Uint8Array(p.buffer,w,z);a.u.append(C);a.loaded+=z;a.loaded<h.length&&a.callbacks.kt((0,g.GA)(),a.loaded);n++;return G.Ka(2)})};
MUa=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.ea=d;this.status=0;this.response=void 0;this.V=this.u=0;this.I=this.J=!1;this.errorMessage="";this.oa=function(f){if(f)if(e.status=f.status,f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.gp=f.body.getReader(),e.isDisposed()?e.gp.cancel().catch(function(){}):(e.D=f.headers,e.callbacks.Iv(),LUa(e));
else e.onDone();else e.onError(Error("null_response"))};
this.Z=function(f){var h=(0,g.GA)();e.isDisposed()||(e.C&&(e.j.append(e.C),e.C=void 0),f.done?(e.gp=void 0,e.onDone()):(f=f.value,e.u+=f.length,e.policy.j?e.j.append(f):e.C=f,LUa(e),f=(0,g.GA)(),10<f-e.V&&(e.V=f,e.callbacks.kt(h,e.u))))};
this.onError=function(f){e.errorMessage=String(f);e.J=!0;e.onDone()};
this.j=new IF;this.B=window.AbortController?new AbortController:void 0;this.start(a)};
LUa=function(a){a.gp.read().then(a.Z,a.onError).then(void 0,mA)};
NUa=function(a,b,c){var d=this;c=void 0===c?{}:c;this.callbacks=b;this.u=this.status=0;this.isDisposed=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.v(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.nz(f)};
a=$I(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",$I(function(f){d.Ie(f)}),!1)};
OUa=function(a,b,c,d,e){if(DF(a.wj))return new KUa(a,c);a=a.Ze();return d?Lta()?new IUa(a,b,c,e):new MUa(a,b,c,e):new NUa(a,c,e)};
IX=function(a,b,c,d,e,f,h,l,m){m=void 0===m?!1:m;g.E.call(this);this.callbacks=a;this.policy=b;this.Le=c;this.B=d;this.timing=e;this.logger=f;this.C=h;this.Jv=l;this.D=m;this.lastError=null;this.u=0;this.j=new g.Ap(this.I8,this.policy.Ud,this)};
PUa=function(a){a.B.J=(0,g.GA)();a=JX(a);a.B=(0,g.GA)();a.started+=1};
QUa=function(a,b,c){yUa(a.timing,(0,g.GA)(),b,c);b=a.B;b.u=0;b.D=0;b.I=0;HG(JX(a));if(null!=(b=a.Jv)&&(a=a.Le.wj,!((0,g.GA)()<b.I+3E5||DF(a))&&(c=CF(a))&&SQa(c)&&b.u===$V(c))){var d;EF(a)&&(d=CF(FF(a)));g.Lz("yt-player-bandaid-host",{primary:c,secondary:d},864E3);b.I=(0,g.GA)();PQa(b,{primary:c,secondary:d})}};
KX=function(a){if("net.timeout"===a.lastError){var b=a.timing,c=(0,g.GA)();if(!b.qq){wUa(b,c,1024*b.Aa);var d=(c-b.j)/1E3;if(2!==b.Yr())if(DX(b)){b.B+=(c-b.C)/1E3;var e=b.Ih,f=b.u;f=Math.max(f,2048);e.j.xi(1,b.B/f);bK(e)}else AUa(b)||b.qq||(e=b.Ih,e.J.xi(1,d),bK(e)),b.ya=c;e=b.Ih;f=b.Z;var h=b.Fm;e.I.xi(d,b.u/d);e.C=(0,g.GA)();h||e.u.xi(1,d-f);c=(c-b.C)/1E3;pxa(b.Ih,c,0);b.Bz(c,0)}}"net.nocontent"!==a.lastError?((b="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)&&
!DF(a.Le.wj)?(c=JX(a),c.timedOut+=1):(c=JX(a),c.j+=1),a.timing.u||(c=a.B,d=a.Le,e=a.policy,f=a.C,++c.u,b&&++c.D,CF(d.wj).startsWith("redirector.")&&(c.j=c.B.clone(),delete c.C,e.Ax&&delete f[CF(c.j)]))):++a.B.I;a.callbacks.pc(5)};
RUa=function(a,b,c){return 400<=b.status?(a.lastError="net.badstatus",!0):b.yD()||void 0!==c&&c?!1:(a.lastError=204===b.status?"net.nocontent":"net.connect",!0)};
JX=function(a){return IG(a.C,CF(a.Le.wj))};
SUa=function(a){var b=BX(a.timing);b.shost=CF(a.Le.wj);return b};
ZW=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.mD?[]:h.mD;var l=void 0===h.XD?!1:h.XD,m=void 0===h.xu?0:h.xu,n=void 0===h.poToken?"":h.poToken,p=void 0===h.Jv?void 0:h.Jv,q=void 0===h.vD?"":h.vD,t=void 0===h.Yj?0:h.Yj;h=void 0===h.sj?new Uint8Array(0):h.sj;HX.call(this,b,e);var w=this;this.policy=a;this.logger=new g.aW("dash/request");this.Ux=this.Jg=0;this.EX=!1;this.iq=this.Qo=null;this.zU=!1;this.sj=this.Yj=null;this.yY=this.xY=!1;this.postBody=this.BK=null;this.ze={pc:function(C){w.pc(C)},
L7a:function(){return w.ge},
N8a:function(C){w.ge=C},
M8a:function(C){w.Jg=C},
L8a:function(C){w.Cd.lastError=C},
bM:function(){return w.xhr}};
this.timing=new AX(this,c);this.XD=l;this.policy.yx&&(this.postBody=this.policy.Nv?"x\x00":(0,g.LX)([120,0]));this.Yj=t;this.sj=h;this.Le=g.fH(this.info,this.policy,d);this.Le.set("rn",this.YF().toString());this.Le.set("rbuf",(1E3*m).toFixed().toString());this.XD&&this.Le.set("smb","1");this.policy.kA&&n&&this.Le.set("pot",n);q&&this.Le.set("bbs",q);this.policy.useUmp&&!DF(this.Le.wj)&&(this.rj=new GX(this),this.Le.set("ump","1"),this.Le.set("srfvp","1"));this.Cd=new IX(this,this.policy,this.Le,this.info.j,
this.timing,this.logger,d,p);this.mD=f||null;this.sz=TUa(this);PUa(this.Cd);a=void 0;if(this.policy.tv||this.rj||this.policy.Aa){a={method:"POST"};b=this.policy.Nv?"x\x00":(0,g.LX)([120,0]);if(this.rj||this.policy.tv)a.body=this.postBody?this.postBody:b;this.policy.Aa&&((c=this.info.Bs())?a.body=g.BL(c,g.cMa):a.body=b)}this.policy.xq&&(this.policy.Sj||(this.policy.Sj=(0,g.UUa)("1",this.policy.xq)),this.Le.set("postpad",this.policy.Sj));if(this.policy.dl&&this.Yj&&this.sj){this.Le.set("iwts","1");
a={method:"POST"};b={U8:1E3*this.Yj};var z;c=null==(z=this.info.Bs())?void 0:z.Iz;z=g.BL({Du:b,Iz:c||void 0,videoPlaybackUstreamerConfig:this.sj},g.cMa);a.body=z}try{this.xhr=OUa(this.Le,this.policy.I,this.timing,this.policy.Wa?this.policy.Dx&&!isNaN(this.info.Rg)&&this.info.Rg>this.policy.lx?!1:!0:!1,a),this.Cd.j.start(),g.Af(function(){})}catch(C){VUa(this,C,!0)}};
TUa=function(a){if(!(eH(a.info)&&a.info.Fm()&&a.policy.rd&&a.mD)||2<=a.info.j.u||0<VI()||!twa())return!1;var b=a.Le.get("aitags");if(!b)return!1;b=Fe(b).split(",");for(var c=[],d=g.v(a.mD),e=d.next();!e.done;e=d.next())e=e.value,g.wb(b,e)&&c.push(e);if(!c.length)return!1;a.Le.set("altitags",g.Ee(c.join(",")));return!0};
VUa=function(a,b,c){c=void 0===c?!1:c;g.zD(b);a.Cd.lastError="player.exception";a.errorMessage=b.name+"_"+b.message;c?g.Af(function(){KX(a.Cd)}):KX(a.Cd)};
WUa=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.GB();c=!c||c<=a.policy.xm;return(!a.xhr.Ht()||!b||-1!==b.indexOf("text/plain"))&&c};
YW=function(a,b,c,d,e){HX.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.dg=d;this.lastError=null;this.j=new g.Ap(function(){f.isComplete()||(f.lastError="net.timeout",f.pc(5))},this.policy.vx);
this.Ie=function(){f.isDisposed()||(f.dg.Vc.has(f.formatId)?(f.isComplete()||f.j.start(),fRa(f.dg,f.formatId)&&f.kz(2),f.dg.Tg(f.formatId)&&(gRa(f.dg,f.formatId)?f.pc(4):(f.lastError="net.closed",f.pc(5)))):(f.lastError="player.exception",f.pc(5)))};
this.j.start();aRa(this.dg,this.formatId,this.Ie);g.Af(this.Ie)};
XUa=function(a,b,c,d){var e=this;this.Fa=a;this.policy=b;this.j=c;this.timing=d;this.logger=new g.aW("dash");this.B=[];this.u=this.Vb=null;this.oa=this.ya=0;this.I=-1;this.ea=!1;this.Z=-1;this.ze={RL:function(){return e.C},
F7a:function(){return e.B}};
this.C=new aUa(a,b,c);this.policy.B&&(this.J=new wTa(this.C,this.Fa.TT(),this.policy));this.dc=c.info.dc;this.V=c.sC();this.isManifestless=c.sC();this.D=this.V};
MX=function(a,b){b&&yX&&rUa(a.C,b.ZL());var c;null==(c=a.J)||FTa(c);a.Vb=b;null!=(b=a.J)&&(b.Vb=a.Vb)};
NX=function(a){return a.Vb&&a.Vb.RF()};
YUa=function(a,b){a.B.push(b);a.u=g.qb(b.info.gb)};
$Ua=function(a){for(;a.B.length&&4===a.B[0].state;){var b=a.B.shift();ZUa(a,b);a.ya=b.IT()}a.B.length&&ZUa(a,a.B[0])};
ZUa=function(a,b){if(b.Pk()){var c=b.Vj();c=g.v(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.D&&b instanceof YW&&a.Fa.xa("omblss",{s:aH(d.info)}),OX(a,b.info.gb,d,b.XL())}};
OX=function(a,b,c,d){d=void 0===d?0:d;switch(c.info.type){case 1:case 2:aVa(a,c);break;case 4:var e=c.info.j,f=e.vR(c),h;(null==(h=a.u)?0:4===h.type)&&ava(c.info,a.u)&&(a.u=e.Cz(a.u).pop());c=g.v(f);for(e=c.next();!e.done;e=c.next())OX(a,b,e.value,d);break;case 3:c.info.j.info.video?(e=a.timing,f=a.policy.nm,f=void 0===f?!0:f,e.I||(e.I=(0,g.GA)(),f&&oT("fvb",e.I,e.j),oT("fvb_r",e.I,e.j))):(e=a.timing,f=a.policy.nm,f=void 0===f?!0:f,e.C||(e.C=(0,g.GA)(),f&&oT("avb",e.C,e.j),oT("fab_r",e.C,e.j)));iUa(a.C,
b,c,d);a.policy.B&&bVa(a);break;case 6:iUa(a.C,b,c,d),a.u=c.info}};
aVa=function(a,b){if(1===b.info.type)if(b.info.j.info.video){var c=a.timing;c.Ja||(c.Ja=(0,g.GA)(),oT("vis_r",c.Ja,c.j))}else c=a.timing,c.ea||(c.ea=(0,g.GA)(),oT("ais_r",c.ea,c.j));eUa(a.C,b)};
cX=function(a){return bUa(a.C)};
bVa=function(a){a.B.length?a.u=g.qb(g.qb(a.B).info.gb):a.C.u.length?a.u=wX(a.C).info:a.u=NX(a)};
cVa=function(a){var b={Ne:[],xn:[]},c;if(null==(a=a.J))a=void 0;else{DTa(a);var d=ETa(a),e=d.Ne;d=d.rz;for(var f=[],h=0;h<d.length;h++){var l=d[h];f.push({formatId:JH(l.info.j.info,a.Sa.Zc),sequenceNumber:l.info.Ma+a.u,EF:{Ki:1E3*(l.info.startTime+a.timestampOffset),sF:1E3*l.info.duration,Lt:1E3},kV:l.info.u})}a={Ne:e,xn:f}}return null!=(c=a)?c:b};
aX=function(a,b,c){c=void 0===c?!1:c;if(a.Vb){var d=a.Vb.Hg(),e=pI(d,b),f=NaN,h=NX(a);h&&(f=pI(d,h.j.index.getStartTime(h.Ma)));if(e===f&&a.u&&a.u.u&&dVa(eVa(a),0))return b}a=fVa(a,b,c);return 0<=a?a:NaN};
bX=function(a,b){a.j.Ig();var c=fVa(a,b);if(0<=c)return c;if(null!=(c=a.J)){var d=b;c.rz=[];DTa(c);c.j=c.policy.ll?yTa(c.Ne,1E3*d):BTa(c.Ne,1E3*d)}c=Math;d=c.min;var e=a.C;if(e.J)if(e=e.J,e.Bf&&3===e.Bf.type)e=e.Bf.startTime;else if(0<e.B){var f=e.j.index;f=g.Ob(f.offsets.subarray(0,f.count),e.B*e.chunkSize);e=e.j.index.getStartTime(0<=f?f:Math.max(0,-f-2))}else e=0;else e=Infinity;b=d.call(c,b,e);if(a.policy.C){var h,l;c=null==(h=a.Fa.Ng)?void 0:null==(l=mSa(h,b))?void 0:l.clipId;a.u=a.j.Yp(b,void 0,
c).gb[0]}else a.u=a.j.Yp(b).gb[0];PX(a)&&a.Vb&&a.Vb.abort();a.oa=0;return a.u.startTime};
gVa=function(a){a.V=!0;a.D=!0;a.I=-1;bX(a,Infinity)};
QX=function(a){for(var b=0,c=g.v(a.B),d=c.next();!d.done;d=c.next())d=d.value,d=d.ge&&d.ge.length?$Qa(d.ge):cva(d.info),b+=d;return b+=kUa(a.C)};
RX=function(a,b){b=void 0===b?!1:b;if(!a.Vb)return 0;var c=NX(a);if(c&&VG(c))return c.B;c=a.Fa.getCurrentTime();var d=a.Vb.Hg(!0);if(b&&(b=wX(a.C))){var e=0;a.policy.B&&(e=rI(d,b.info.B));return e+b.info.B-c}return rI(d,c)};
hVa=function(a,b,c,d){$W(a);for(var e=a.C,f=null,h=e.u.length-1;0<=h;h--){var l=e.u[h];l.info.Ma>=b&&(e.u.pop(),e.B-=uH(l,e.policy.Nb),f=l.info)}f&&(e.C=0<e.u.length?e.u[e.u.length-1].info:e.Pa,0!==e.u.length||e.C||cUa(e,"r"));e.Fa.xa("mdstm",{rollbk:1,itag:f?f.j.info.itag:"",popped:f?f.Ma:-1,sq:b,lastslc:e.C?e.C.Ma:-1,lastfraget:e.B.toFixed(3)});d>c?bX(a,d):a.u=a.j.Br(b-1,!1).gb[0]};
TX=function(a,b){var c;for(c=0;c<a.B.length&&b!==a.B[c];c++);if(c===a.B.length)SX(a,b);else{for(;c<a.B.length;)SX(a,a.B.pop());var d=iVa(a);d&&d.j.Zu()&&Ym(b.info.gb,function(e){return bva(e,d)})?(a.u=d,a.policy.D&&a.Fa.xa("cer",{lsr:"lsp",
lsp:aH(d)})):(XG(b.info.gb[0])?(a.u=b.ge&&b.ge.B?$ua(b.ge.B):Zua(b.info.gb[0]),a.policy.D&&a.Fa.xa("cer",{lsr:aH(a.u),lsp:null==d?void 0:aH(d)})):(a.u=null,a.policy.D&&a.Fa.xa("cer",{lsr:"null",lsp:null==d?void 0:aH(d)})),a.Fa.isOffline()&&!a.policy.Ri||SX(a,b,!0))}};
PX=function(a){var b;!(b="f"===a.j.info.Mb)&&(b=a.policy.u)&&(b=a.C,b=!!b.J&&qX(b.J));if(b)return!0;b=NX(a);if(!b)return!1;var c=VG(b)&&b.bf;return a.isManifestless&&0<a.Z?c||b.Ma>=a.Z:c};
UX=function(a){var b;return PX(a)||!(null==(b=wX(a.C))||!VG(b.info))};
eVa=function(a){var b=[],c=NX(a);c&&b.push(c);b=g.Cb(b,a.C.Om());c=g.v(a.B);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e={},f=g.v(d.info.gb),h=f.next();!h.done;e={Hw:e.Hw},h=f.next())e.Hw=h.value,d.pM&&(b=g.On(b,function(l){return function(m){return!ava(m,l.Hw)}}(e))),(XG(e.Hw)||4===e.Hw.type)&&b.push(e.Hw)}a.u&&!Uua(a.u,g.qb(b),a.u.j.Ym())&&b.push(a.u);
return b};
dVa=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!Vua(a[b-1],a[b]))return!1;return!0};
fVa=function(a,b,c){c=void 0===c?!1:c;if(!a.u||!a.u.u)return NaN;a=eVa(a);a:{var d=c;d=void 0===d?!1:d;for(var e=-1,f=0;f<a.length;++f){var h=a[f];if(h.C<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return 0>b?NaN:dVa(a,c?b:0)?a[b].startTime:NaN};
VX=function(a){return!(!a.u||a.u.j===a.j)};
jVa=function(a){return VX(a)&&a.j.Ig()&&a.u.j.info.dc<a.j.info.dc};
kVa=function(a,b,c){return(a=iVa(a))&&!VG(a)?a.B>b&&a.B<b+c:!1};
iVa=function(a){var b=wX(a.C);return b?b.info:NX(a)};
$W=function(a){for(var b=g.v(a.B),c=b.next();!c.done;c=b.next())SX(a,c.value);a.B=[];a.u=null};
SX=function(a,b,c){c=void 0===c?!1:c;b.pM&&((void 0===c?0:c)||!b.info.gb[0].j.Zu())&&(a=a.C,a.oa&&!a.policy.Pn&&(c=a.Fa,c.Sa.isManifestless&&SI(c.Sa,a.oa.Ma,!!a.I.info.video)),a.oa=null,a.D=null,a.C=a.ib,a.B=a.C?a.B-a.Z:NaN,xX(a));b.dispose()};
lVa=function(a){return!!a.u&&-1!==a.u.Ma&&a.u.Ma<a.j.index.Lm()};
mVa=function(a){var b=a.u;b&&-1===b.Ma&&(a=wX(a.C))&&XG(a.info)&&(a=a.info.Ma,b.D="updateLastSliceRequested",b.Ma=a)};
nVa=function(a){return Ym(a.B,function(b){return b.sz})};
oVa=function(a){a=void 0===a?{}:a;var b=a.dk,c=a.pj,d=a.ud,e=a.Nu;this.Lp=a.Lp;this.dk=b;this.pj=c;this.ud=d;this.Nu=e};
DUa=function(a,b){if(0>b)return!0;var c=a.ud();return b<c||b===c&&!a.Lp||b===c&&(a=a.Nu())&&b===a.Ma?!0:!1};
EUa=function(a,b,c){if(!DUa(a,b))return 0;if(!a.dk||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.ud();return b<c||b===c&&(a=a.Nu())&&b===a.Ma&&!a.pending?2:1};
pVa=function(a,b,c,d){var e=a.ys();if(a.isComplete()||!e||LG(a.info.j,b,c))return 0;var f=b.Yn;if(!d&&f&&e>=f)return 1;d=b.Ti;if(!d||e<d)return 0;a=IG(c,MG(a.info.j,!0,b));return a.j||a.timedOut||a.started?0:2};
qVa=function(a,b,c){if(!(b.Xn&&a.isComplete()&&a.canRetry()&&LG(a.info.j,b,c)))return 0;a=IG(c,MG(a.info.j,!1,b));return a.B+b.Xn*Oua(a,b,!0)>(0,g.GA)()?0:1};
WX=function(a,b,c,d,e,f,h,l,m,n,p,q){g.E.call(this);this.Fa=a;this.policy=b;this.videoTrack=c;this.audioTrack=d;this.C=e;this.j=f;this.timing=h;this.D=l;this.schedule=m;this.Sa=n;this.B=p;this.Z=q;this.oa=!1;this.vD="";this.Ik=null;this.J=0;this.Rg=NaN;this.ea=!1;this.u=null;this.Yj=this.V=NaN;this.sj=null;this.I=0;this.logger=new g.aW("dash");0<this.policy.Qn&&(this.vD=g.HD(this.policy.Qn))};
vVa=function(a,b,c){if(rVa(a,b,c)){if(b.V){if(a.Sa.isLive){var d=a.Sa.Ge&&a.Sa.B?b.j.Br(a.Sa.Ge,!1):b.j.Yp(Infinity);d.Rg=a.Rg}else d=b.j.Br(0,!1);a.Z?0===d.Rg&&(d.D=a.Z.V):d.D=a.V}else if(d=b.u,d.j.Ig()){var e=d.B-a.Fa.getCurrentTime(),f=!d.range||0===d.u&&0===d.Qb?0:d.range.length-(d.Qb+d.u),h=d.j;if(VX(b)&&b.j.Ig()){var l=Math.min(15,.5*sVa(a.Fa,b,!0));l=jVa(b)||e<=l||a.B.V}else l=!1;l&&0===f&&(a.Sa.isManifestless?h=b.j:(h=d.startTime+tVa,d.u&&(h+=d.duration),bX(b,h),d=b.u,h=d.j));h.Ym()?(f=a.B,
c=VSa(a.D,h.info.dc,c.j.info.dc,e,0<f.C.length&&0===f.J&&a.Fa.Ry),h=VX(b),c=d.j.ex(d,c),(e=c.C)&&1<c.gb.length&&(h||c.j.u||c.gb[0].j!==d.j?c=d.j.ex(d,c.gb[0].u):(h=c.gb[c.gb.length-1],f=h.u/e,!h.bf&&.4>f&&(c=d.j.ex(d,e-h.u)))),d=c):(0>d.Ma&&(c=$G(d),c.pr=""+b.B.length,a.Fa.fh()&&(c.sk="1"),c.snss=d.D,a.Fa.xa("nosq",c)),d=h.IA(d));if(a.policy.oa)for(c=g.v(d.gb),e=c.next();!e.done;e=c.next())e.value.type=6}else d.j.Ym()?(c=VSa(a.D,b.j.info.dc,c.j.info.dc,0),d=d.j.ex(d,c)):d=d.j.IA(d);if(a.u){l=d.gb[0].j.info.id;
c=a.j;e=d.gb[0].Ma;c=0>e&&!isNaN(c.B)?c.B:e;e=hTa(a.j,d.gb[0].C,c);var m=b===a.audioTrack?1:2;f=d.gb[0].j.info.Mb;h=l.split(";")[0];if(a.policy.Aa&&0!==a.j.u){if(l=a.u.Bs(e,c,l,m,f),0>c&&2===m&&fX(a.j,0,0,!0),l){var n;m=(null==(n=l.Iz)?void 0:n.Pr)||"";var p;n=(null==(p=l.Iz)?void 0:p.QX)||-1;a.Fa.xa("sdai",{ssdaiinfo:"1",ds:m,skipsq:n,itag:h,f:f,sg:c,st:e.toFixed(3)});d.J=l}}else if(p=a.u.Jm(e,c,l,m,f),0>c&&2===m&&fX(a.j,0,0,!0),p){n={dec_sq:c,itag:h,st:e.toFixed(3)};if(a.policy.Iy&&b.isRequestPending(c-
1)){a.Fa.xa("sdai",{wt_daistate_on_sg:c-1});return}a.Fa.xa("sdai",n);p&&(d.u=new g.AF(p))}else 5!==a.j.u&&a.Fa.xa("sdai",{nodec_sq:c,itag:h,st:e.toFixed(3)})}a.policy.hm&&-1!==d.gb[0].Ma&&d.gb[0].Ma<a.Sa.Ge&&(d=b.j.Br(a.Sa.Ge,!1));YUa(b,uVa(a,d));eTa(a.timing)}};
rVa=function(a,b,c){var d;var e=a.j,f=(null==(d=b.u)?void 0:d.Ma)||-1;3===e.u&&f+1>=e.J?(e.xa("sdai",{haltrq:f+1,est:e.J}),d=!1):d=2!==e.u;if(!d||!NG(b.u?b.u.j.u:b.j.u,a.policy,a.C)||a.Fa.isSuspended&&(!qxa(a.schedule)||a.Fa.pF))return!1;if(a.policy.u&&5<=SL)return g.Bp(a.Fa.DG),!1;if(a.Sa.isManifestless){if(0<b.B.length&&b.u&&-1===b.u.Ma||b.B.length>=a.policy.pm||!a.policy.xx&&0<b.B.length&&!a.policy.I.dk)return!1;if(b.V)return!a.Sa.isLive||!isNaN(a.Rg)}if(nVa(b))return!1;if(!b.u){if(!b.j.Ig())return!1;
bX(b,a.Fa.getCurrentTime())}if(a.policy.td&&cX(b))return!1;e=(d=a.policy.uf)&&!b.B.length&&RX(b,!0)<Math.min(d,RX(c));d=b.B.length+c.B.length;f=!a.policy.Jw&&((b.B.length?b.B[0].bv():!1)||(c.B.length?c.B[0].bv():!1)||a.Sa.isLive);(e||f)&&--d;if(d+1>=a.policy.wm)return!1;d=b.u;if(!d)return!0;4===d.type&&d.j.Ig()&&(b.u=g.qb(d.j.Cz(d)),d=b.u);if(!VG(d)&&!d.j.Ar(d))return!1;f=a.Sa.Se||a.Sa.B;if(a.Sa.isManifestless&&f){f=b.j.index.ud();var h=c.j.index.ud();f=Math.min(f,h);if(0<b.j.index.PF()&&0<f&&d.Ma>=
f)return b.Z=f,c.Z=f,!1}if(d.j.info.audio&&4===d.type)return!1;if(!a.policy.td&&jVa(b)&&!a.policy.Gc)return!0;if(VG(d)||!a.policy.td&&QX(b)&&QX(b)+QX(c)>a.policy.ob)return!1;f=!b.D&&!c.D;if(e=!e)e=d.B,e=!!(c.u&&!VG(c.u)&&c.u.B<e);h=b===a.videoTrack&&a.policy.oa;return e&&(!a.Sa.isManifestless||c.u&&c.u.B&&d.B)&&f&&!h||a.policy.jc&&!b.D&&c.D?!1:XG(d)&&d.B>wVa(a,b)?(wVa(a,b),!1):(a=b.Vb)&&a.isLocked()?!1:!0};
wVa=function(a,b){var c=a.j;c=c.j?c.j.kf:null;if(a.policy.oa&&c)return c.startSecs+c.Qg+15;b=sVa(a.Fa,b,!0);!oX(a.Fa.ye)&&0<a.policy.Za&&(c=((0,g.GA)()-a.J)/1E3,b=Math.min(b,a.policy.Za+a.policy.Rf*c));b=a.Fa.getCurrentTime()+b;return a.policy.Vn&&(c=xVa(a)+a.policy.Vn,c<b)?(a.Fa.xa("mrl",{ori:b,mod:c},!0),a.policy.Sw&&(a.J=(0,g.GA)()),c):b};
xVa=function(a){var b=a.Fa.Im().filter(function(d){return"ad"===d.namespace});
b=g.v(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.Fa.getCurrentTime())return c.start/1E3;return Infinity};
yVa=function(a,b,c){if(0!==c){a:if(b=b.info,c=2===c,b.u)b=null;else{var d=b.gb[0];if(b.range)var e=SG(b.range.start,Math.min(4096,b.C));else{if(b.B&&0<=b.B.indexOf("/range/")||"1"===b.j.B.get("defrag")||"1"===b.j.B.get("otf")){b=null;break a}e=SG(0,4096)}e=new cH([new UG(5,d.j,e,"createProbeRequestInfo"+d.D,d.Ma)],b.B);e.I=c;e.u=b.u;b=e}b&&uVa(a,b)}};
uVa=function(a,b){a.Fa.gG(b);var c=cva(b);c={Ih:a.schedule,uB:c,jH:TSa(a.D,c),Fm:WG(b.gb[0]),qq:DF(b.j.j),kL:a.policy.D,Bz:function(e,f){a.Fa.AD(e,f)}};
a.Ik&&(c.Ma=b.gb[0].Ma,c.Rg=b.Rg,c.Ik=a.Ik);var d={xu:dva(b,a.Fa.getCurrentTime()),mD:a.policy.rd&&eH(b)&&b.gb[0].j.info.video?vTa(a.B):void 0,XD:a.policy.oa,poToken:a.Fa.YL(),Jv:a.Fa.Ey(),vD:a.vD,Yj:isNaN(a.Yj)?null:a.Yj,sj:a.sj};return new ZW(a.policy,b,c,a.C,function(e,f){try{a:{var h=e.info.gb[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.ys()||!(!a.Fa.Xa||a.Fa.isSuspended||3<RX(l))){var m=pVa(e,a.policy,a.C,a.ea);1===m&&(a.ea=!0);yVa(a,e,m);if(e.isComplete()||
e.isDisposed()&&3>f){if(a.policy.ib){var n=e.policy.bE?Object.assign(BX(e.timing),{rst:e.state,strm:e.xhr.Ht(),d:FX(e.timing),cncl:e.isDisposed()}):Object.assign(BX(e.timing),{rst:e.state,strm:e.xhr.Ht(),d:FX(e.timing)});a.Fa.xa("rqs",n)}e.EX&&a.Fa.xa("sbwe3",{},!0)}if(!a.isDisposed()&&2<=e.state){var p=a.timing,q=e.info.gb[0].j,t=!p.J&&q.info.video,w=!p.u&&q.info.audio;3===e.state?t?p.tick("vrr"):w&&p.tick("arr"):4===e.state?t?(p.J=e.Ze(),g.eA(),gA(4)):w&&(p.u=e.Ze()):e.bv()&&t&&(g.eA(),gA(4));var z=
a.Fa;a.Yj&&e.BK&&z&&(a.Yj=NaN,a.Fa.xa("cabrUtcSeek",{mediaTimeSeconds:e.BK}));if(3===e.state){TX(l,e);eH(e.info)&&XX(a,l,h,!0);if(a.u){var C=e.info.Jm();C&&a.u.Ck(e.info.gb[0].Ma,h.info.id,C)}a.Fa.gf()}else if(e.isComplete()&&5===e.info.gb[0].type){if(4===e.state){var G=(e.info.gb[0].j.info.video?a.videoTrack:a.audioTrack).B[0]||null;G&&G instanceof ZW&&G.ys()&&G.gE(!0)}e.dispose()}else{if(!e.Wm()&&e.sz&&2<=e.state&&3!==e.state){var O=e.xhr.getResponseHeader("X-Response-Itag");if(O){var N=uTa(a.B,
O),K=e.info.C;if(K){var W=K-N.SL();N.C=!0;e.info.gb[0].j.C=!1;var Z=N.Qu(W);e.info=Z;if(e.ge){var Q=e.ge,na=Z.gb;(na.length!==Q.gb.length||na.length<Q.Ke.length)&&YQa("dash/request",260511119,""+na.length,""+Q.gb.length,""+Q.Ke.length);Q.gb=na;var r=na[0].range,J=new IF;for(f=0;f<Q.Ke.length;f++)JF(J,Q.Ke[f].j);for(f=0;f<Q.Ke.length;f++){Q.Ke[f].info=na[f];var ha=na[f].range;Q.Ke[f].j=KF(J,ha.start-r.start,ha.length);delete Q.Ke[f].B}}e.sz=!1;YX(a.videoTrack,N);var X=a.videoTrack;X.u&&(X.u.j=N);a.Fa.eO(N.info.video.quality);
var Da=e.XL();Da&&N.info.lastModified&&N.info.lastModified!==+Da&&TX(a.videoTrack,e)}}else e.sz=!1}if(4===e.state)zVa(a,e),a.j&&gTa(a.j,e.info,a.u);else if(a.policy.Wa&&e.Pk()&&!e.isComplete()&&!zVa(a,e)&&!e.Wm())break a;e.Wm()&&(a.Es(e),a.Yj=NaN);a.Fa.gf();var za=qVa(e,a.policy,a.C);yVa(a,e,za)}}}}}catch(Za){N=a.oa?1:0,a.oa=!0,e=TK(N),N=UK(Za,N),a.Fa.handleError(N.errorCode,N.details,N.severity),e||a.Fa.wk()}},d)};
zVa=function(a,b){if(a.policy.useUmp&&b.isDisposed())return!1;try{var c=b.info.gb[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.Sa.isManifestless&&d){a.I=0;d.V&&(b.isDisposed(),b.isComplete()||b.Pk(),d.V=!1);b.FL()&&a.Fa.hF.xi(1,b.FL());var e=b.PF(),f=b.NT(),h=a.Sa,l;for(l in h.j){var m=h.j[l].index;m.Dm&&(e&&(m.Qo=Math.max(m.Qo,e)),f&&(m.iq=Math.max(m.iq||0,f)))}}if(b.info.Fm()&&!dH(b.info))for(var n=g.v(b.Vj()),p=n.next();!p.done;p=n.next())aVa(d,p.value);$Ua(d,a.Fa.getCurrentTime());var q=
!!cX(d);if(q&&b instanceof YW)if(c.info.Fk()){var t=a.timing;t.ya||(t.ya=(0,g.GA)(),oT("oafs_rp",t.ya,t.j))}else{var w=a.timing;w.Aa||(w.Aa=(0,g.GA)(),oT("ovfs_rp",w.Aa,w.j))}return q}catch(z){return b=b.Up(),b.origin="hrhs",AVa(a.Fa,z,b),!1}};
BVa=function(a){var b=a.videoTrack.j.index;a.Ik=new oVa({Lp:a.policy.Lp,dk:a.policy.I.dk,pj:b.pj,ud:function(){return b.ud()},
Nu:function(){return b.Nu()}})};
XX=function(a,b,c,d){if(!(c.Ig()||c.Sy()||c.C||!NG(c.u,a.policy,a.C)||"f"===c.info.Mb||a.policy.B)){if(d){d=a.D;var e=c.info;d=USa(d,e.video?d.policy.Vv:d.policy.fm,e.dc)}else d=0;d=c.Qu(d);a=uVa(a,d);dH(d)&&YUa(b,a);c.C=!0}};
ZX=function(a,b,c,d,e,f){g.E.call(this);this.C=a;this.B=b;this.Fa=c;this.videoTrack=d;this.audioTrack=e;this.Sa=f;this.logger=new g.aW("sabr");this.videoInfos=this.C;this.j=this.B;CVa(this)};
DVa=function(a){var b=[];a=g.v(a);for(var c=a.next();!c.done;c=a.next())b.push(JH(c.value));return b};
EVa=function(a,b){a.videoInfos=a.C;a.videoInfos=g.On(a.videoInfos,function(c){return c.video.j===b})};
CVa=function(a){var b=g.sb(a.B,function(c){var d;return!(null==(d=c.Ic)||!d.isDefault)});
b&&(a.j=[b])};
FVa=function(a,b,c){return a.map(function(d){return Rua(d,b,c)})};
$X=function(a){this.u={};this.logger=new g.aW(a)};
GVa=function(a){return(a.videoId||"")+";"+a.itag+";"+(a.gj||0)+";"+(a.xtags||"")};
IVa=function(a,b){var c=[];b=g.v(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=HVa[d]||0;a.j&&e>a.j||c.push(d)}return c};
LVa=function(a,b,c){b.push.apply(b,g.la(JVa[a]||[]));c.K("html5_early_media_for_drm")&&b.push.apply(b,g.la(KVa[a]||[]))};
QVa=function(a,b){var c=yM(a),d=a.T().D;if(aY&&!d.j)return aY;for(var e=[],f=[],h={},l=g.v(MVa),m=l.next();!m.done;m=l.next()){var n=!1;m=g.v(m.value);for(var p=m.next();!p.done;p=m.next()){p=p.value;var q=NVa(p);!q||!q.video||HH(q)&&!c.Ja&&q.video.j>c.C||(n?(e.push(p),LVa(p,e,a)):(q=pF(c,q,d),!0===q?(n=!0,e.push(p),LVa(p,e,a)):h[p]=q))}}l=g.v(OVa);for(n=l.next();!n.done;n=l.next())for(n=g.v(n.value),p=n.next();!p.done;p=n.next())if(m=p.value,(p=PVa(m))&&p.audio&&(a.K("html5_onesie_51_audio")||!xF(p)&&
!wF(p)))if(p=pF(c,p,d),!0===p){f.push(m);LVa(m,f,a);break}else h[m]=p;c.B&&b("orfmts",h);aY={video:e,audio:f};d.j=!1;return aY};
NVa=function(a){var b=EH[a],c=RVa[b],d=SVa[a];if(!d||!c)return null;var e=new BH(d.width,d.height,d.fps);c=JI(c,e,b);return new FH(a,c,{video:e,dc:d.bitrate/8})};
PVa=function(a){var b=RVa[EH[a]],c=TVa[a];return c&&b?new FH(a,b,{audio:new zH(c.audioSampleRate,c.numChannels)}):null};
VVa=function(a){return{kY:rya(a,1,UVa)}};
WVa=function(a){return{h8a:nL(a,1)}};
UVa=function(a){return{clipId:qL(a,1),kE:rL(a,2,XVa),a5:rL(a,3,WVa)}};
XVa=function(a){return{c$:qL(a,1),m8:nL(a,2),f8a:nL(a,3),sF:nL(a,4),Lt:nL(a,5)}};
YVa=function(a){return{first:nL(a,1),dV:nL(a,2)}};
$Va=function(a,b){AL(a,1,b.formatId,bY,3);wL(a,2,b.startTimeMs);wL(a,3,b.durationMs);wL(a,4,b.Et);wL(a,5,b.dh);AL(a,9,b.G6a,ZVa,3)};
aWa=function(a,b){zL(a,1,b.videoId);wL(a,2,b.gj)};
ZVa=function(a,b){var c;if(b.uS)for(c=0;c<b.uS.length;c++)AL(a,1,b.uS[c],aWa,3)};
bY=function(a,b){wL(a,1,b.itag);wL(a,2,b.gj);zL(a,3,b.xtags)};
bWa=function(a){return{itag:nL(a,1),gj:nL(a,2),xtags:qL(a,3)}};
dWa=function(a,b){AL(a,1,b.formatId,bY,3);wL(a,2,b.V8);wL(a,3,b.sequenceNumber);AL(a,4,b.EF,cWa,1);wL(a,5,b.kV)};
eWa=function(a){return{oN:nL(a,1),PG:nL(a,2),minReadaheadMs:nL(a,3)}};
fWa=function(a,b){wL(a,1,b.type);yL(a,2,b.value)};
gWa=function(a,b){var c;if(b.My)for(c=0;c<b.My.length;c++)AL(a,1,b.My[c],bY,3);if(b.Ne)for(c=0;c<b.Ne.length;c++)AL(a,2,b.Ne[c],$Va,3);zL(a,3,b.clipId)};
hWa=function(a,b){yL(a,3,b.playbackCookie);var c;if(b.UH)for(c=0;c<b.UH.length;c++)AL(a,5,b.UH[c],fWa,3)};
cWa=function(a,b){wL(a,1,b.Ki);wL(a,2,b.sF);wL(a,3,b.Lt)};
iWa=function(a,b){AL(a,1,b.Du,OLa,1);var c;if(b.My)for(c=0;c<b.My.length;c++)AL(a,2,b.My[c],bY,3);if(b.Ne)for(c=0;c<b.Ne.length;c++)AL(a,3,b.Ne[c],$Va,3);yL(a,5,b.videoPlaybackUstreamerConfig);if(b.xn)for(c=0;c<b.xn.length;c++)AL(a,6,b.xn[c],dWa,3);if(b.MD)for(c=0;c<b.MD.length;c++)AL(a,16,b.MD[c],bY,3);if(b.ND)for(c=0;c<b.ND.length;c++)AL(a,17,b.ND[c],bY,3);AL(a,19,b.m9,hWa,3);if(b.lI)for(c=0;c<b.lI.length;c++)AL(a,1E3,b.lI[c],gWa,3)};
jWa=function(a){$X.call(this,"sabr");this.callbacks=a};
kWa=function(a,b,c,d,e,f,h){g.E.call(this);this.policy=a;this.info=b;this.Sa=c;this.callbacks=e;this.logger=new g.aW("sabr");this.rj=new GX(this);this.P8=new jWa(this);this.dg=new dW(this);this.state=1;this.wX=!1;this.OO=0;this.clipId="";this.Ch=new AX(this,f);e=this.policy;f=void 0===b.u?LG(b.j,e,d):b.u;e=Pua(b.j,f,e);b.fv()&&e.set("probe","1");this.Le=e;this.Le.set("rn",""+this.YF());jRa(this.dg,c,a);this.Cd=new IX(this,this.policy,this.Le,b.j,this.Ch,this.logger,d,h,this.policy.Iw);PUa(this.Cd);
a={method:"POST"};a.body=b.B;try{this.xhr=OUa(this.Le,this.policy.I,this.Ch,AM,a),this.Cd.j.start()}catch(l){g.AD(l)}};
lWa=function(a,b){var c=-1,d=-1,e=-1,f;if(null==(f=a.NO)?0:f.items)for(a=g.v(a.NO.items),f=a.next();!f.done;f=a.next())f=f.value,b<f.oN||f.oN<c||(c=f.oN,d=f.PG,e=f.minReadaheadMs);return{w4:c,PG:d,pN:e}};
nWa=function(a){var b=Object.assign(BX(a.Ch),{rst:a.state,strm:a.xhr.Ht(),d:FX(a.Ch)});return Object.assign(mWa(a.info),b)};
qWa=function(a,b,c,d,e,f){e=void 0===e?0:e;f=void 0===f?!1:f;var h={},l=VI(0);l&&(h.x4=l,h.lastManualDirection=pwa(),l=Soa()||0,0<l&&(l=(a.K("html5_use_date_now_for_local_storage")?Date.now():(0,g.GA)())-l,a.K("html5_use_date_now_for_local_storage")?0<l&&(h.timeSinceLastManualFormatSelectionMs=l):h.timeSinceLastManualFormatSelectionMs=l));h.j9=VI();a.schedule.V&&(h.Y1=$J(a.schedule,!f));f=g.FK();h.q2=c.width*f;h.o2=c.height*f;h.visibility=d;h.x9=KC();a.K("html5_onesie_media_capabilities")&&(h.oT=
3);a.K("html5_onesie_audio_only_playback")&&xM(b)&&(h.oT=1);if(a.K("html5_onesie_media_capabilities")){b=yM(b);c=a.D;d=[];f=[];l=g.v(MVa);for(var m=l.next();!m.done;m=l.next()){m=g.v(m.value);for(var n=m.next();!n.done;n=m.next()){n=n.value;var p=NVa(n);if(p&&p.video&&!0===pF(b,p,c)){d.push({U9:oWa[EH[n]],H4:p.video.width,G4:p.video.height,maxFramerate:p.video.fps});break}}}l=g.v(OVa);for(m=l.next();!m.done;m=l.next())for(m=g.v(m.value),n=m.next();!n.done;n=m.next())if(n=n.value,(p=PVa(n))&&p.audio&&
(a.K("html5_onesie_51_audio")||!xF(p)&&!wF(p))&&!0===pF(b,p,c)){f.push({X1:pWa[EH[n]],numChannels:p.audio.numChannels});break}h.mediaCapabilities={dQ:d,vK:f}}a.K("html5_prefer_drc")&&(h.O2=!0);h.n8=e;return h};
rWa=function(a,b,c,d,e){e=void 0===e?!1:e;var f=b.Sj,h="https://web.archive.org/web/20230505074338/https://youtubei.googleapis.com/youtubei/"+f.innertubeApiVersion+"/player";f.BM&&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.hc()});g.ay("EOM_VISITOR_DATA")?f.push({name:"X-Goog-EOM-Visitor-Id",value:g.ay("EOM_VISITOR_DATA")}):(c=c.visitorData||g.ay("VISITOR_DATA"))&&f.push({name:"X-Goog-Visitor-Id",value:c});(b=vJ(b.experiments,
"debug_sherlog_username"))&&f.push({name:"X-Youtube-Sherlog-Username",value:b});a=pua(JSON.stringify(a));return{url:h,sM:f,postBody:a,v8:e,VD:e}};
tWa=function(a,b,c,d,e,f,h,l){var m=g.BL(a,$La,c.Vd),n={encryptedClientKey:b.j.encryptedClientKey,DX:!0,nT:!0,jL:sWa(c,!!a.VD)};a.VD?n.J9=m:(a=b.encrypt(m),n.pT=a,(0,g.GA)(),a=fxa(new exa(b.j.B),a,b.iv),n.DU=a,n.iv=b.iv);b=qWa(c,d,e,f,1E3*d.startSeconds);return{CM:n,Du:b,onesieUstreamerConfig:h,pE:l}};
wWa=function(a,b,c){var d,e,f;return g.A(function(h){if(1==h.j)return d=g.BL(b,$La),g.y(h,uWa(c,d),2);if(3!=h.j)return e=h.u,g.y(h,vWa(c,e),3);f=h.u;return h.return({pT:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,DU:f,DX:!0,nT:!0,jL:sWa(a,!!b.VD)})})};
xWa=function(a,b,c,d,e,f,h,l){var m,n;return g.A(function(p){if(1==p.j)return g.y(p,wWa(c,a,b),2);m=p.u;n=qWa(c,d,e,f,1E3*d.startSeconds);return p.return({CM:m,Du:n,onesieUstreamerConfig:h,pE:l})})};
sWa=function(a,b){a=$J(a.schedule,!0);b=b||!!KJ()&&1572864<a;return"DecompressionStream"in window||!b};
cY=function(a,b,c,d){this.requestType=a;this.data=b;this.callbacks=c;this.B=null;if(!this.fv()){var e=b.videoData;a=b.Sa;c=aN(e);var f=qWa(e.T(),e,b.sH,b.visibilityState,b.Ju,!!b.L2),h=b.nextRequestPolicy;h={playbackCookie:null==h?void 0:h.playbackCookie};if(aN(e)&&e.sabrContextUpdates){h.UH=[];for(var l=g.v(e.sabrContextUpdates),m=l.next();!m.done;m=l.next())if(m=m.value,m.sendByDefault&&m.value){var n=UJ(m.value);n&&h.UH.push({type:m.type,value:n})}}m=b.MD;l=b.ND;if(void 0===l&&void 0===m){var p;
l=(l=null==(p=b.AK)?void 0:p.video)?[JH(l.info,a.Zc)]:[];var q;m=(p=null==(q=b.AK)?void 0:q.audio)?[JH(p.info,a.Zc)]:[]}if(e.sj)var t=e.sj;c&&(m=[],l=[]);q={Du:f,xn:b.xn,MD:m,ND:l,videoPlaybackUstreamerConfig:t,m9:h};if(c&&d){t=new Map;a=g.v(b.Ne);for(c=a.next();!c.done;c=a.next())c=c.value,p=c.startTimeMs||0,f=void 0,e=null==(f=d)?void 0:mSa(f,p),f=e.clipId,e=e.hN,f&&(t.has(f)||t.set(f,{clipId:f,Ne:[]}),0!==e&&(c.startTimeMs=p-e),t.get(f).Ne.push(c));q.lI=[];d=g.v(t.entries());for(t=d.next();!t.done;t=
d.next())t=g.v(t.value),t.next(),t=t.next().value,q.lI.push(t)}else q.Ne=b.Ne,q.My=a.La;this.C=q;this.B=g.BL(this.C,iWa)}this.j=b.Sa.Ga};
mWa=function(a){for(var b={},c=[],d=[],e=0;e<a.data.Ne.length;e++){var f=a.data.Ne[e],h=void 0;c.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_st."+f.startTimeMs+"_d."+f.durationMs+"_sn."+f.Et+"_en."+f.dh)}for(e=0;e<a.data.xn.length;e++){f=a.data.xn[e];var l=h=void 0,m=void 0,n=void 0;d.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_sn."+f.sequenceNumber+"_sl."+(f.V8||NaN)+"_lb."+f.kV+"_tr.s_"+(null==(l=f.EF)?void 0:l.Ki)+"_d_"+(null==(m=f.EF)?void 0:m.sF)+"_t_"+(null==(n=f.EF)?void 0:n.Lt))}b.rtype=
a.requestType;b.brl=c.join(";");b.ps=d.join(";");return b};
dY=function(a,b){g.E.call(this);this.j=a;this.B=b;this.iv=(0,g.LX)(GD(16))};
uWa=function(a,b){var c;return g.A(function(d){(0,g.GA)();c=lxa(a.j);return d.return(c.encrypt(b,a.iv))})};
vWa=function(a,b){var c;return g.A(function(d){(0,g.GA)();var e=a.j;e.C||(e.C=new gxa(e.B));c=e.C;return d.return(jxa(c,b,a.iv))})};
yWa=function(a,b,c){var d;return g.A(function(e){(0,g.GA)();d=lxa(a.j);return e.return(d.decrypt(b,c))})};
zWa=function(a){this.Ok=a;this.u=!1;this.j=[]};
BWa=function(a){for(;a.j.length&&!a.j[0].isEncrypted;){var b=a.j.shift(),c=b.zP;if(b=b.buffer)AWa(a.Ok.Md,c,b);else if(b=a.Ok,b.j[c].vU=!0,b=eY(b.Md,c),null==b?0:b.Vc.has(c))null==b||bRa(b,c)}};
g.EWa=function(a){this.data=a;this.j=0;this.C=!1;this.B=0;this.error=!1;this.register=this.u=0;if(0===fY.length){fY.length=288;fY.fill(8);for(a=144;280>a;a++)fY[a]=255>=a?9:7;CWa.length=32;CWa.fill(5);gY.length=286;gY.fill(0);for(a=261;285>a;a++)gY[a]=Math.floor((a-261)/4);hY[257]=3;for(a=258;285>a;a++){var b=hY[a-1];b+=1<<gY[a-1];hY[a]=b}hY[285]=258;for(a=0;30>a;a++)DWa[a]=3>=a?0:Math.floor((a-2)/2);for(a=iY[0]=1;30>a;a++)b=iY[a-1],b+=1<<DWa[a-1],iY[a]=b}a=100+7*this.data.length;31===this.data[0]&&
139===this.data[1]&&(a=(new DataView(this.data.buffer,this.data.byteOffset+this.data.length-4)).getUint32(0,!0),this.data=this.data.subarray(10,this.data.length-8));this.Rj=new Uint8Array(a)};
g.KWa=function(a){for(;!a.C&&!a.error;){var b=a;b.C=!!jY(b,1);switch(jY(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=jY(b,5)+257;var f=jY(b,5)+1;for(var h=jY(b,4)+4,l=0;l<h;l++)d[FWa[l]]=jY(b,3);d=GWa(d);for(h=e+f;c.length<h;){l=HWa(b,d);switch(l){case 16:l=c[c.length-1];var m=jY(b,2)+3;break;case 17:l=0;m=jY(b,3)+3;break;case 18:l=0;m=jY(b,7)+11;break;default:m=1}for(;0<m;m--)c.push(l)}c.length!==h?b.error=!0:(f=c.slice(-f),c.length=e,IWa(b,c,f));break;case 1:IWa(b,fY,CWa);break;case 0:JWa(b,
b.j&7);c=jY(b,16);e=jY(b,16);65535!==(c^e)&&(b.error=!0);b.Rj.set(b.data.subarray(b.u,b.u+c),b.B);b.u+=c;b.B+=c;break;default:b.error=!0}a.B>a.Rj.length&&(a.Rj=new Uint8Array(2*a.B),a.B=0,a.u=0,a.C=!1,a.j=0,a.register=0)}a.Rj.length!==a.B&&(a.Rj=a.Rj.subarray(0,a.B));return a.error?new Uint8Array(0):a.Rj};
IWa=function(a,b,c){b=GWa(b);c=GWa(c);for(var d=a.data,e=a.Rj,f=a.B,h=a.register,l=a.j,m=a.u;;){if(15>l){if(m>d.length){a.error=!0;break}h|=(d[m+1]<<8)+d[m]<<l;m+=2;l+=16}var n=b[h&127];if(0>n)for(h>>=7;0>n;)n=b[(h&1)-n],h>>=1;else h>>=n&15;l-=n&15;n>>=4;if(256>n)e[f++]=n;else if(a.register=h,a.j=l,a.u=m,256<n){h=hY[n];h+=jY(a,gY[n]);m=HWa(a,c);l=iY[m];l+=jY(a,DWa[m]);if(LWa&&h<l)l=f-l,e.copyWithin(f,l,l+h);else for(m=f+h,n=f;n<m;n+=4)e[n]=e[n-l],e[n+1]=e[n-l+1],e[n+2]=e[n-l+2],e[n+3]=e[n-l+3];f+=
h;h=a.register;l=a.j;m=a.u}else break}a.B=f};
HWa=function(a,b){if(7>a.j){var c=a.data,d=a.u;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<<a.j;a.u+=2;a.j+=16}c=b[a.register&127];if(0<=c)return JWa(a,c&15),c>>4;for(JWa(a,7);0>c;)c=b[jY(a,1)-c];return c>>4};
jY=function(a,b){for(;a.j<b;){if(a.u>=a.data.length)return a.error=!0,0;a.register|=a.data[a.u++]<<a.j;a.j+=8}var c=a.register&(1<<b)-1;a.register>>=b;a.j-=b;return c};
JWa=function(a,b){a.j-=b;a.register>>=b};
GWa=function(a){for(var b=[],c=g.v(a),d=c.next();!d.done;d=c.next())d=d.value,b[d]||(b[d]=0),b[d]++;var e=b[0]=0;c=[];var f=0;d=0;for(var h=1;h<b.length;h++)b[h]?d=h:b[h]=0,e=e+b[h-1]<<1,c[h]=e,7<h&&(f+=b[h]);for(e=1;e<f;)e<<=1;b=128;d=new Int16Array(128+2*(e+d));for(f=0;f<a.length;f++)if(h=a[f]){for(var l=c[h]++,m=e=0;m<h;m++)e=e<<1|l>>m&1;l=f<<4|h;if(7>=h)for(m=1<<7-h;m--;)d[m<<h|e]=l;else{m=e&127;h-=7;for(e>>=7;h--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d};
MWa=function(a,b){var c,d,e,f,h,l,m,n,p,q,t,w;return g.A(function(z){switch(z.j){case 1:if(b)try{c=b.exports.malloc(a.length);(new Uint8Array(b.exports.memory.buffer,c,a.length)).set(a);d=b.exports.getInflatedSize(c,a.length);e=b.exports.malloc(d);if(f=b.exports.inflateGzip(c,a.length,e))throw Error("inflateGzip="+f);h=new Uint8Array(d);h.set(new Uint8Array(b.exports.memory.buffer,e,d));b.exports.free(e);b.exports.free(c);return z.return(h)}catch(C){g.zD(C),b.reload()}if(!("DecompressionStream"in
window))return z.return(g.KWa(new g.EWa(a)));l=new DecompressionStream("gzip");m=l.writable.getWriter();m.write(a);m.close();n=l.readable.getReader();p=new IF([]);case 2:return g.y(z,n.read(),4);case 4:q=z.u;t=q.value;if(w=q.done){z.Ka(3);break}p.append(t);z.Ka(2);break;case 3:return z.return(NF(p))}})};
NWa=function(a){$X.call(this,"onesie");this.Md=a;this.j={};this.C=!0;this.B=null;this.queue=new zWa(this)};
OWa=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.u&&(b.j.length=0);b=g.v(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next())if(c=c.value,!a.j[c].vU){var d=a.queue;d.j.push({zP:c,isEncrypted:!1});d.u||BWa(d)}};
PWa=function(a,b){var c=b.totalLength,d=!1;switch(a.B){case 0:a.VN(b,a.C).then(function(e){var f=a.Md;f.Tc("oprr");f.playerResponse=e;f.iN||(f.GD=!1);kY(f)},function(e){a.Md.fail(e)});
break;case 2:a.Tc("ormk");b=NF(b);a.queue.decrypt(b);break;default:d=!0}a.Md.Ll&&a.Md.xa("ombup","id.11;pt."+a.B+";len."+c+(d?";ignored.1":""));a.B=null};
QWa=function(a){return new Promise(function(b){setTimeout(b,a)})};
RWa=function(a,b){var c=vJ(b.Y.experiments,"debug_bandaid_hostname");if(c)b=YV(b,c);else{var d;b=null==(d=b.j.get(0))?void 0:d.location.clone()}if((d=b)&&a.videoId){b=UJ(a.videoId);a=[];if(b)for(b=g.v(b),c=b.next();!c.done;c=b.next())a.push(c.value.toString(16).padStart(2,"0"));d.set("id",a.join(""));return d}};
SWa=function(a,b,c){c=void 0===c?0:c;var d,e;return g.A(function(f){if(1==f.j)return d=[],d.push(b.load()),0<c&&d.push(QWa(c)),g.y(f,Promise.race(d),2);e=RWa(a,b);return f.return(e)})};
TWa=function(a,b,c,d){d=void 0===d?!1:d;a.set("cpn",b.clientPlaybackNonce);a.set("opr","1");var e=b.T();a.set("por","1");KJ()||a.set("onem","1");0<b.startSeconds&&a.set("osts",""+b.startSeconds);d||(c?(b=c.audio,a.set("pvi",c.video.join(",")),e.K("html5_onesie_disable_audio_bytes")||a.set("pai",b.join(",")),AM||a.set("osh","1")):(a.set("oad","0"),a.set("ovd","0"),a.set("oaad","0"),a.set("oavd","0")))};
lY=function(a,b){g.E.call(this);var c=this;this.va=a;this.playerRequest=b;this.Y=this.va.T();this.videoData=this.va.getVideoData();this.logger=new g.aW("onesie");this.Ll=this.Y.Qd();this.cL=this.Y.Rk;var d;this.hD=new dY(this.cL.j,null==(d=this.Y.Vd)?void 0:d.exports);this.xhr=null;this.state=1;this.qp=new dK;this.yU=!1;this.playerResponse="";this.rj=new GX(this);this.Ok=new NWa(this);this.qz=new g.Ap(this.rU,1E4,this);this.hH=this.K("html5_enable_onesie_media_stall_timeout")?new g.Ap(function(){if(!c.isComplete()){var e=
UWa(c);c.fail(new SK("net.timeout",e));c.pc(5)}},g.jJ(this.Y.experiments,"html5_onesie_request_timeout_ms")):void 0;
this.IW=new g.Ap(this.M4,2E3,this);this.Uv="";this.qG=this.RU=!1;this.Ky=this.va.Ey();this.hO="";this.GD=this.K("html5_onesie_wait_for_media_availability");this.enableCompression=this.iN=this.qC=!1;this.YD=[];g.I(this.videoData,this);g.I(this,this.qz);g.I(this,this.IW);g.I(this,this.hD);a=xJ();AM&&a&&!this.Y.K("html5_disable_onesie_media_bytes")&&(this.zg=new Map);this.BT=new Map};
eY=function(a,b){if(a.zg)return b=b.split(";")[0],a.zg.get(b)};
VWa=function(a,b,c){var d;return g.A(function(e){if(1==e.j)return a.Tc("oprd_s"),KJ()?g.y(e,yWa(a.hD,b,c),3):(d=a.hD.decrypt(b,c),e.Ka(2));2!=e.j&&(d=e.u);a.Tc("oprd_c");return e.return(d)})};
WWa=function(a){return a.K("html5_onesie_host_probing")||a.Ll?AM:!1};
AWa=function(a,b,c){var d;null==(d=eY(a,b))||kRa(d,b,c);a.notifySubscribers(b)};
kY=function(a){if(!a.playerResponse)return!1;if(a.qC)return!0;var b=a.videoData.K("html5_onesie_audio_only_playback")&&xM(a.videoData);if(a.zg&&a.GD){if(!a.zg.has(a.Uv))return!1;var c=a.zg.get(a.Uv),d;if(d=c){d=!1;for(var e=g.v(c.Vc.keys()),f=e.next();!f.done;f=e.next())if(f=c.Vc.get(f.value))for(var h=g.v(f.MG),l=h.next();!l.done;l=h.next())0<l.value.Pq&&(f.Fk?d=!0:b=!0);d=!(b&&d)}if(d)return!1}a.Tc("ofr");a.qp.resolve(a.playerResponse);var m;null==(m=a.hH)||m.start();a.K("html5_onesie_time_out_after_resolving")?
a.qz.start():a.qz.stop();return a.qC=!0};
YWa=function(a){if(a.zg&&!a.K("html5_onesie_media_capabilities")){a.Tc("ogsf_s");var b=QVa(a.va.getVideoData(),function(d,e){a.xa(d,e)}),c=XWa(a.va);
b.video=IVa(c,b.video);a.Tc("ogsf_c");if(b.video.length)return b;a.xa("ombspf","l."+c.u+";u."+c.j+";o."+c.B+";r."+c.reason)}};
UWa=function(a){if(!a.Ch)return{};var b=BX(a.Ch);b.d=FX(a.Ch);b.shost=a.BX;b.ty="o";return b};
ZWa=function(a,b){var c,d;(d=null==(a=null==(c=a.zg)?void 0:c.get(b)))||(b=a.u?!1:a.u=!0,d=!b);return!d};
$Wa=function(a,b,c,d,e,f,h,l,m){g.E.call(this);var n=this;this.va=a;this.Fa=b;this.policy=c;this.audioTrack=d;this.videoTrack=e;this.Sa=f;this.Ih=h;this.I=l;this.B=m;this.j=[];this.u={};this.J=!1;this.V="";this.ze={K7a:function(){return n.j},
m7a:function(){return n.u},
L6a:function(){n.j.length=0}};
this.ea=this.va.T();this.videoData=this.va.getVideoData()};
aXa=function(a){if(a.Fa.pF||a.Fa.isSuspended||a.D&&(0,g.GA)()<a.D||0<a.j.length)return!1;var b;if(null==(b=a.Sa.Ga)||!NG(b,a.policy,a.u)||UX(a.audioTrack)&&UX(a.videoTrack)&&(!a.policy.C||a.V===a.videoData.videoId))return!1;if(QX(a.videoTrack)+QX(a.audioTrack)>a.policy.ob)return a.policy.D&&a.Fa.xa("sabrHeap",{a:""+QX(a.videoTrack),v:""+QX(a.videoTrack)}),!1;if(!a.C)return!0;b=1E3*RX(a.audioTrack,!0);var c=1E3*RX(a.videoTrack,!0)>a.C.targetVideoReadaheadMs;return!(b>a.C.targetAudioReadaheadMs)||!c};
bXa=function(a,b){b=new kWa(a.policy,b,a.Sa,a.u,a,{Ih:a.Ih,Bz:function(c,d){a.va.AD(c,d)},
Fm:a.policy.Gf},a.Fa.Ey());a.policy.ib&&a.Fa.xa("rqs",nWa(b));return b};
mY=function(a,b){if(!b.isDisposed()&&!a.isDisposed())if(b.isComplete()&&b.fv())b.dispose();else if(b.XU()?cXa(a,b):b.Wm()?a.Es(b):dXa(a),!(b.isDisposed()||b instanceof lY)){if(b.isComplete())var c=qVa(b,a.policy,a.u);else c=pVa(b,a.policy,a.u,a.J),1===c&&(a.J=!0);0!==c&&(c=2===c,b=new cY(1,b.info.data),b.u=c,bXa(a,b))}a.Fa.gf()};
dXa=function(a){for(;a.j.length&&a.j[0].YU();){var b=a.j.shift();eXa(a,b)}a.j.length&&eXa(a,a.j[0])};
eXa=function(a,b){if(a.policy.C){var c;var d=((null==(c=a.Fa.Ng)?void 0:lSa(c,b.Zr()))||0)/1E3}else d=0;if(a.policy.Sf){c=new Set(b.Tp(a.va.Pd()||""));c=g.v(c);for(var e=c.next();!e.done;e=c.next()){var f=e.value;if(!(e=!(b instanceof lY))){var h=a.B,l=h.Sa.Zc,m=h.Fa.Pd();e=FVa(h.j,l,m);h=FVa(h.videoInfos,l,m);e=e.includes(f)||h.includes(f)}if(e&&b.Pk(f))for(e=b.Vj(f),f=b.Om(f),e=g.v(e),h=e.next();!h.done;h=e.next()){h=h.value;a.policy.C&&a.policy.C&&d&&3===h.info.type&&tH(h,d);a.policy.D&&b instanceof
lY&&a.Fa.xa("omblss",{s:aH(h.info)});l=h.info.j.info.Fk();m=h.info.j;if(l){var n=a.B;m!==n.u&&(n.u=m,n.ZG(m,n.audioTrack,!0))}else n=a.B,m!==n.I&&(n.I=m,n.ZG(m,n.videoTrack,!1));OX(l?a.audioTrack:a.videoTrack,f,h)}}}else for(h=b.HT()||nX(a.I),c=new Set(b.Tp(a.va.Pd()||"")),a.policy.C?l=c:l=[(null==(f=h.video)?void 0:PG(f,a.Sa.Zc,a.va.Pd()))||"",(null==(e=h.audio)?void 0:PG(e,a.Sa.Zc,a.va.Pd()))||""],f=g.v(l),e=f.next();!e.done;e=f.next())if(e=e.value,c.has(e)&&b.Pk(e))for(h=b.Vj(e),l=g.v(h),h=l.next();!h.done;h=
l.next())h=h.value,a.policy.C&&d&&3===h.info.type&&tH(h,d),a.policy.D&&b instanceof lY&&a.Fa.xa("omblss",{s:aH(h.info)}),m=b.Om(e),OX(h.info.j.info.Fk()?a.audioTrack:a.videoTrack,m,h)};
cXa=function(a,b){a.j.pop();null==b||b.dispose()};
fXa=function(a,b){for(var c=[],d=0;d<a.j.length;d++)b&&a.j[d]instanceof lY?c.push(a.j[d]):a.j[d].dispose();a.j=c};
gXa=function(a,b){if(b.Wm()||b.isDisposed()){var c=a.Fa,d=c.xa,e=b.state;a=a.va.Pd()||"";var f,h;if(null==(b=null==(f=b.zg)?void 0:f.get(a)))b=void 0;else{f=0;a=b.Tp();for(var l=0;l<a.length;l++){var m=void 0;f+=(null==(m=b.Vc.get(a[l]))?void 0:m.bytesReceived)||0}b=f}b=null!=(h=b)?h:-1;d.call(c,"sabromb",{s:e,tbytes:b})}else a.j.push(b),b.YD.push(a)};
hXa=function(a,b,c,d,e){this.Fa=a;this.policy=b;this.schedule=c;this.Ux=d;this.ea=e;this.Z=NaN;this.u=this.J=this.C=null;this.j=this.D=this.I=this.startTimeSecs=NaN;this.B=!1;this.V=NaN};
iXa=function(a,b,c,d,e){return b.hd&&b.tf&&3===aua(b)?new hXa(a,b,c,d,e):null};
jXa=function(a,b){if(a.policy.zC){var c=b.info.dc,d=$J(a.schedule);b=b.index.pj;c=Math.max(1,d/c);a.V=Math.round(1E3*Math.max(((c-1)*b+a.policy.Gb)/c,b-a.policy.Kj))}};
mXa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.I,f=e>=a.policy.Po,h=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e<a.policy.NC&&(h=!0);a.I=c}c=d>=a.policy.Kj&&!a.B;if(!f&&!c&&kXa(a,b))return NaN;c&&(a.B=!0);a:{d=h;c=Date.now()/1E3-(a.Ux.aj()||0)-a.J.u-a.policy.Gb;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){nY(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.Ij;d<c&&(c=d)}else a.B&&(d=c+a.policy.Gb-a.Z+a.policy.kD,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.Ij))),c=d);f=c=Math.max(c,
f)}a.j=f;if(isNaN(a.j))return a.clear(),NaN;if(!h&&kXa(a,b))return lXa(a,b),NaN;if(a.j<=a.u.startTime)return nY(a,NaN,"y",b),a.clear(),NaN;if(!a.ea(a.j,!1))return!lXa(a,b)&&h&&(nY(a,NaN,"t",b),a.clear()),NaN;h=a.j;nY(a,h,"s",b);a.clear();return h};
lXa=function(a,b){return a.ea(a.j,!0)?!1:(nY(a,NaN,"ns",b),a.clear(),!0)};
kXa=function(a,b){return isNaN(b)?!0:isNaN(a.j)?!1:b<a.j+(a.B?a.policy.Ij:a.policy.IC)};
nY=function(a,b,c,d){var e=a.C.Up();e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.j).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.startTimeSecs).toFixed(0);e.ssr_n=Date.now().toFixed(0);e.ssr_f=(1E3*a.J.u).toFixed(0);e.ssr_fa=a.B?"1":"0";e.ssr_o=(1E3*a.Ux.aj()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.u.j.index;mH(b,a.u.Ma,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.u.Ma)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.u.Ma)).toFixed(0));a.Fa.xa("ssr",e)};
nXa=function(){var a={};if(window.performance){var b=window.performance.memory;b&&(a.jsTotal=b.totalJSHeapSize,a.jsUsed=b.usedJSHeapSize,a.msTotal=b.mediaSourceSizeLimit,a.msUsed=b.usedMediaSourceMemorySize)}var c;if(null==(c=window.h5vcc)?0:c.cVal)a.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),a.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used");return a};
g.oY=function(a,b,c,d,e,f,h,l,m,n){l=void 0===l?!1:l;g.E.call(this);var p=this;this.va=a;this.schedule=b;this.policy=c;this.Sa=d;this.V=m;this.ob=n;this.timing=new dTa(this.ob);this.J=new SSa(this.schedule,this.policy);this.Xa=null;this.Za=new g.Ap(this.gf,0,this);this.DG=new g.Ap(this.gf,1E3,this);this.ib=new g.Ap(this.gf,void 0,this);this.La=new g.Ap(this.gf,1E4,this);this.D=this.currentTime=NaN;this.ea=0;this.Ry=this.pF=this.isSuspended=!1;this.Ja="";this.hF=new VJ(5);this.tb={};this.timestampOffset=
NaN;this.Ya=!1;this.Pa=0;this.I=null;this.oa=NaN;this.Aa=!1;this.logger=new g.aW("dash");this.ze={getAudioTrack:function(){return p.audioTrack},
TT:function(){return p.Sa},
O7a:function(){return p.Z},
gf:function(){p.gf()}};
a=m&&m.Tp();m&&(jRa(m,this.Sa,this.policy),this.oa=Date.now());this.ye=new jTa(this,this.J,c,this.Sa,e,a);c=oTa(this.ye,f,h&&h.id);this.audioTrack=new XUa(this,this.policy,c.audio,this.timing);this.videoTrack=new XUa(this,this.policy,c.video,this.timing);this.videoTrack.C.Aa=this.audioTrack.RL();this.Ga={updateend:this.J0,error:this.w5};g.I(this,this.Za);g.I(this,this.DG);g.I(this,this.ib);g.I(this,this.La);this.C=iXa(this,this.policy,this.schedule,this.hF,function(q,t){return oXa(p,q,t)});
this.B=new fTa(this,this.Sa,this.policy,this.videoTrack,this.audioTrack,l);this.j=new WSa(this,this.Sa,this.videoTrack,this.audioTrack,this.policy);this.u=new WX(this,this.policy,this.videoTrack,this.audioTrack,this.tb,this.B,this.timing,this.J,this.schedule,this.Sa,this.ye,this.C);g.I(this,this.u);this.ya=new ZX(e.videoInfos,e.j,this,this.videoTrack,this.audioTrack,this.Sa);g.I(this,this.ya);this.Z=new $Wa(this.va,this,this.policy,this.audioTrack,this.videoTrack,this.Sa,this.schedule,this.ye,this.ya);
g.I(this,this.Z);this.Wa=this.va.vf.Ts.qy};
pXa=function(a,b){var c=PG(b.j,a.Sa.Zc,a.Pd()),d,e=(null==(d=a.V)?void 0:d.Om(c))||[];if(0===e.length)return a.xa("ombmsi",{}),!1;a:{d=new cH(e);c=a.currentTime;d=g.v(d.gb);for(e=d.next();!e.done;e=d.next())if(e=e.value,3===e.type&&c>=e.C&&c<=e.B){c=!0;break a}c=!1}return c?!0:(a.xa("ostmf",{ct:a.currentTime,a:b.j.info.Fk()}),!1)};
qXa=function(a){if(!a.Sa.Zc)return!0;var b=a.va.getVideoData(),c,d;if(a.policy.Nw&&!!(null==(c=a.Wa)?0:null==(d=c.y4)?0:d.q8)!==a.Sa.Se)return a.xa("ombplmm",{}),!1;b=b.Ub||b.liveUtcStartSeconds||b.Ti;if(a.Sa.Se&&b)return a.xa("ombplst",{}),!1;if(a.Sa.oa)return a.xa("ombab",{}),!1;b=Date.now();return nwa(a.Sa)&&!isNaN(a.oa)&&b-a.oa>1E3*a.policy.tx?(a.xa("ombttl",{}),!1):a.Sa.Ge&&a.Sa.B||!a.policy.xD&&a.Sa.isPremiere?!1:!0};
rXa=function(a,b){var c=b.j,d=a.Sa.Zc;if(qXa(a)){var e=a.Pd();if(a.V&&a.V.Vc.has(PG(c,d,e))){if(d=PG(c,d,e),pXa(a,b)){e=new cH(a.V.Om(d));var f=function(h){try{if(h.Wm())a.handleError(h.Ye(),h.Up()),TX(b,h),eH(h.info)&&XX(a.u,b,c,!0),a.gf();else if(zVa(a.u,h)){var l;null==(l=a.B)||gTa(l,h.info,a.I);a.gf()}}catch(m){h=UK(m),a.handleError(h.errorCode,h.details,h.severity),a.wk()}};
c.C=!0;dH(e)&&(YUa(b,new YW(a.policy,d,e,a.V,f)),eTa(a.timing))}}else a.xa("ombfmt",{})}};
pY=function(a,b){b=b||a.videoTrack&&a.videoTrack.u&&a.videoTrack.u.startTime||a.currentTime;var c=a.videoTrack,d=a.ye;b=d.nextVideo&&d.nextVideo.index.rh(b)||0;d.Ga!==b&&(d.Ja={},d.Ga=b,iX(d,d.B));b=!oX(d)&&-1<d.ea&&8E3>(0,g.GA)()-d.ea;var e=d.nextVideo&&3*kX(d,d.nextVideo.info)<XW(d.Aa);if(!b||e)hX(d),jX(d),d.Z=d.Z||d.nextVideo!==d.j;d.nextVideo&&!d.nextVideo.index.isLoaded()&&(d.Ga=-1);YX(c,d.nextVideo);YX(a.audioTrack,a.ye.u)};
qY=function(a,b){a.pF=b;a.policy.oa||(a.isSuspended=!0)};
sXa=function(a,b,c,d){hVa(a.videoTrack,d,c,b);hVa(a.audioTrack,d,c,b);SI(a.Sa,d,!0);SI(a.Sa,d,!1);a.xa("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})};
uXa=function(a){a.policy.Ya=!1;try{tXa(a)}catch(b){g.zD(b)}};
vXa=function(a){a.Xa&&a.Xa.j&&a.Xa.u&&(cE(a.Xa.j,a.Ga,a),cE(a.Xa.u,a.Ga,a));MX(a.audioTrack,null);MX(a.videoTrack,null);a.Xa&&(a.Xa.C=!1);a.Xa=null};
wXa=function(a){a.Xa&&a.Xa.Tg()&&(a.jy(),a.policy.Cx&&a.handleError("fmt.unplayable",{unexpected:1},1))};
xXa=function(a,b){b&&a.va.ZC(b);a.policy.nh&&a.ye.Za&&(b=nX(a.ye,"a"),rY(a.va,b.reason,b.audio.info))};
AVa=function(a,b,c){if(b instanceof Error){c.msg||(c.msg=""+b.message);c.name||(c.name=""+b.name);if(b instanceof g.Yz&&b.args)for(var d=g.v(Object.entries(b.args)),e=d.next();!e.done;e=d.next()){var f=g.v(e.value);e=f.next().value;f=f.next().value;c["arg"+e]=""+f}g.AD(b);if("WARNING"===b.level){sY(a.va,c);return}}a.handleError("fmt.unplayable",c,1)};
tY=function(a){g.Bp(a.Za)};
tXa=function(a){if(a.Xa){var b=a.Xa.j,c=a.Xa.u,d=yXa(a);if(d){if(a.policy.Wa){if(!b.hs()){var e=cX(a.audioTrack);e&&(zXa(a,a.audioTrack,b,e.info),AXa(a,b,e))}!c.hs()&&(b=cX(a.videoTrack))&&(zXa(a,a.videoTrack,c,b.info),AXa(a,c,b))}a.ea||(a.ea=(0,g.GA)(),a.policy.D&&a.xa("apdps",{r:d}))}else{if(a.ea){d=(0,g.GA)()-a.ea;e=RX(a.audioTrack,!0);var f=RX(a.videoTrack,!0);a.policy.D&&a.xa("apdpe",{dur:d.toFixed(),abuf:(1E3*e).toFixed(),vbuf:(1E3*f).toFixed()});a.ea=0}a.C&&(d=a.C.gf(a.audioTrack,qI(a.Xa.u.Hg())))&&
a.va.seekTo(d,{Wu:!0,xe:"pollSubsegmentReadahead",Er:!0});d=!1;BXa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.D||(e.D=(0,g.GA)(),oT("vda",e.D,e.j),e.B&&(g.eA(),gA(4))),e=a.timing,e.La||(e.La=(0,g.GA)(),oT("vrb_f",e.La,e.j)));if(a.Xa&&!a.Xa.Tg()&&(BXa(a,a.audioTrack,b)&&(d=!0,e=a.timing,e.B||(e.B=(0,g.GA)(),oT("ada",e.B,e.j),e.D&&(g.eA(),gA(4))),e=a.timing,e.Z||(e.Z=(0,g.GA)(),oT("arb_f",e.Z,e.j))),!a.isDisposed()&&a.Xa)){!a.policy.Ya&&PX(a.videoTrack)&&PX(a.audioTrack)&&zI(a.Xa)&&!a.Xa.dj()&&(e=NX(a.audioTrack).j,
e===a.Sa.j[e.info.id]&&(e=a.Xa,zI(e)&&(e.Xa?e.Xa.endOfStream():e.Cg.webkitSourceEndOfStream(e.Cg.EOS_NO_ERROR)),e=a.schedule,owa(aK(e)),e.D=(0,g.GA)(),e.V=!0));e=a.policy.nx;f=a.policy.tD;d||!(0<e||f)||!zI(a.Xa)||PX(a.videoTrack)||PX(a.audioTrack)||(b.tI(a.currentTime,f,e),c.tI(a.currentTime,f,e));if(c=d)c=a.Xa,c=!(c.j?c.j.supports(0):FI());c&&tY(a)}}}};
yXa=function(a){if(nVa(a.videoTrack))return"ssf";if(a.policy.On||UX(a.audioTrack)||UX(a.videoTrack)&&"f"!==a.videoTrack.j.info.Mb)return"";if(a.j.fh()){var b=a.J;var c=a.videoTrack;var d=a.audioTrack;if(b.policy.B)b=b.policy.oi,c=RX(d,!0)>=b&&RX(c,!0)>=b;else if(c.B.length||d.B.length){var e=c.j.info.dc+d.j.info.dc;e=10*(1-XW(b)/e);b=Math.max(e,b.policy.oi);c=RX(d,!0)>=b&&RX(c,!0)>=b}else c=!0;if(!c)return"abr";c=a.videoTrack;if(0<c.B.length&&1===c.C.u.length&&bUa(c.C).info.I<c.ya)return"seek"}if(!a.Ry||
!a.policy.Uc||10>a.currentTime||360<a.videoTrack.j.info.video.j)return"";c=kVa(a.videoTrack,a.currentTime,a.policy.Uc)||kVa(a.audioTrack,a.currentTime,a.policy.Uc);return(0<a.videoTrack.B.length||0<a.audioTrack.B.length||rVa(a.u,a.videoTrack,a.audioTrack)||rVa(a.u,a.audioTrack,a.videoTrack))&&c?"nord":""};
BXa=function(a,b,c){if(c.EM())return!0;if(!c.bF())return!1;var d=cX(b);if(!d||6===d.info.type)return!1;var e,f;(f=null==(e=a.B))||(f=1===e.u||2===e.u)||!(f=0!==e.u&&b===e.Ga)||(e=iVa(e.V),f=d.info.Ma>(e?e.Ma:-1));if(f)return a.j.fh()&&tY(a),!1;zXa(a,b,c,d.info);if(a.Sa.u&&0===d.info.Qb){if(null==c.hs()){e=NX(b);if(!(f=!e||e.j!==d.info.j)){b:if(e=e.J,f=d.info.J,e.length!==f.length)e=!1;else{for(var h=0;h<e.length;h++)if(!g.Sb(e[h],f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.hs(),d.info.j.Sy()&&vH(d),
f=d.info.j.j,e=e!==f&&!g.Sb(e,f);e&&(f=NX(b),a.xa("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,ty:d.info.type,seg:d.info.Ma}));f=g.sH(d.info.j.info);a.policy.Bc&&f&&!e&&(g.sH(d.info.j.info)?(pG(qH(d),1836019574),pG(qH(d),1718909296)):(e=new rG(qH(d)),Kua(e),vG(e,524531317,!0),d.j=d.j.split(e.start+e.pos).Xk),d.C=!1)}a.policy.Yi?d.B=void 0:a.policy.py&&!c.hs()&&(e=d.info.j.j,1===d.j.j.length||0!==d.info.Qb||d.C||d.B||3!==d.info.type||!e||(f=new IF([e]),JF(f,d.j),f=NF(f),e=(new IF([f])).split(e.length),
d.B=e.gC,d.j=e.Xk));e=a.C&&!!a.C.C&&b.j.info.audio;f=a.Sa.isManifestless||d.B||d.C;if(!(a.Sa.u&&0!==d.info.Qb||f&&!e)&&AXa(a,c,d))return!0;if(e)return!1;e=a.currentTime+sVa(a,b,!1);if(!(e=d.info.C>e)){a:{e=a.policy.Pa?(0,g.GA)():0;f=d.C||d.B?d.info.j.j:null;h=d.j;d.B&&(h=new IF([]),JF(h,d.B),JF(h,d.j));var l=NF(h);h=a.policy.Pa?(0,g.GA)():0;f=CXa(a,c,l,d.info,f);a.policy.Pa&&(!d.info.Qb||d.info.bf||10>d.info.C)&&a.xa("sba",c.kc({as:aH(d.info),pdur:Math.round(h-e),adur:Math.round((0,g.GA)()-h)}));
if("s"===f)a.Aa&&(a.Aa=!1),a.Pa=0,a=!0;else{if("i"===f||"x"===f)DXa(a,"checked",f,d.info);else{if("q"===f){if(!a.Aa){a.Aa=!0;a=!1;break a}d.info.Vg()?(c=a.policy,c.Z=Math.floor(.8*c.Z),c.tb=Math.floor(.8*c.tb),c.ea=Math.floor(.8*c.ea)):(c=a.policy,c.Ga=Math.floor(.8*c.Ga),c.Kc=Math.floor(.8*c.Kc),c.ea=Math.floor(.8*c.ea));yT(a.policy)||lX(a.ye,d.info.j)}sY(a.va,{reattachOnAppend:f})}a=!1}}e=!a}if(e)return!1;b.gw(d);return!0};
DXa=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",yT(a.policy)||d.j.info.video&&!mX(a.ye)&&lX(a.ye,d.j)):"i"===c&&(15>a.Pa?(a.Pa++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=$G(d);var h;d.mrs=null==(h=a.Xa)?void 0:EI(h);d.origin=b;d.reason=c;a.handleError(e,d,f)};
pUa=function(a,b,c,d,e){var f=a.Sa;var h=!1,l=-1;for(p in f.j){var m=MH(f.j[p].info.mimeType)||f.j[p].info.Vg();if(d===m)if(h=f.j[p].index,mH(h,b.Ma)){m=b;var n=h.Fo(m.Ma);n&&n.startTime!==m.startTime?(h.segments=[],h.wJ(m),h=!0):h=!1;h&&(l=b.Ma)}else h.wJ(b),h=!0}if(0<=l){var p={};f.ma("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}f=h;cTa(a.j,b,d,f);a.B.RN(b,c,d,e);b.Ma===a.Sa.Ge&&f&&QI(a.Sa)&&b.startTime>QI(a.Sa)&&(a.Sa.Gb=b.startTime+(isNaN(a.timestampOffset)?0:a.timestampOffset),a.j.fh()&&
a.j.j<a.Sa.Kd()&&a.j.seek(a.Sa.Kd(),{}))};
zXa=function(a,b,c,d){b=NX(b);!b||b.bf||YG(b,d)||c.abort();!c.NB()||wI()?c.VP(d.j.info.containerType,d.j.info.mimeType):d.j.info.containerType!==c.NB()&&a.xa("ctu",{ct:wI(),prev_c:c.NB(),curr_c:d.j.info.containerType});b=d.j.D;a.policy.jl&&b&&(d=0+b.duration,b=-b.j,0===c.BB()&&d===c.LF()||c.cP(0,d),b!==c.Ed()&&(c.Vq(b),yX&&rUa(a.audioTrack.RL(),c.ZL())))};
AXa=function(a,b,c){c.info.j.Ig();var d=c.info.j.j;if(!d||!b.bF()||b.hs()===d)return!1;var e=d,f=b.QF();if(a.policy.Yi&&f&&b.isView()&&g.sH(c.info.j.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=Dua(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.xa("fenc",{})}f=null;(h=c.info.j.Qu(0,c.info.clipId))&&(f=h.gb[0]);a.policy.Pa&&a.xa("sbi",b.kc({as:aH(c.info)}));a.policy.fA&&b.abort();d=CXa(a,b,e,f,d);if("s"!==d)return DXa(a,"sepInit",d,c.info),!0;c.info.Vg()?(a=a.timing,
a.Ga||(a.Ga=(0,g.GA)(),oT("vis_a",a.Ga,a.j))):(a=a.timing,a.V||(a.V=(0,g.GA)(),oT("ais_a",a.V,a.j)));return b.dj()};
CXa=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(f instanceof DOMException){if(11===f.code)return"i";if(12===f.code)return"x";if(22===f.code||0===f.message.indexOf("Not enough storage"))return b=Object.assign({name:"QuotaExceededError",buffered:mI(b.Hg()).replace(/,/g,"_"),vheap:QX(a.videoTrack),aheap:QX(a.audioTrack),message:g.$f(f.message,3),track:a.Xa?b===a.Xa.u?"v":"a":"u"},nXa()),a.handleError("player.exception",b),"q";g.zD(f)}return"u"}return a.Xa.Tg()?"m":"s"};
vX=function(a,b){a.va.bH(b)};
sVa=function(a,b,c){if(a.Aa&&!a.Ry)return c?5:3;if(a.isSuspended)return 1;var d=b.j.info.audio?a.policy.Ga:a.policy.Z;!a.policy.Gc&&oX(a.ye)&&(d=Math.max(d,b.j.info.audio?a.policy.Kc:a.policy.tb));c&&!a.policy.td&&(d+=a.policy.ob);c=oX(a.ye)?b.u?b.u.j.info.dc:b.j.info.dc:b.dc*a.policy.gm;d/=c;0<a.policy.zm&&a.Xa&&zI(a.Xa)&&(b=b.j.info.video?a.Xa.u:a.Xa.j)&&!b.dj()&&(b=b.Hg(),c=nI(b,a.currentTime),0<=c&&(b=a.currentTime-b.start(c),d+=Math.max(0,Math.min(b-a.policy.zm,a.policy.qx))));0<a.policy.ea&&
(d=Math.min(d,a.policy.ea));return d};
EXa=function(a,b){WV(b,"cms",function(c){a.policy.D&&a.xa("pathprobe",c)},function(c){a.va.handleError(c)})};
FXa=function(a,b){a.I=b;a.B&&(a.B.C=b);a.I.kP(a.videoTrack.j.info.Ee());a.u.u=a.I};
GXa=function(a,b){if(a.Xa&&a.Xa.u){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;var c=a.B,d=b;if(0!==c.u&&c.C){var e=c.Fy(d);e!==c.Z&&(c.C.bO(c.Z,e,c.Aa,d),c.Z=e);c.Aa=d}a.currentTime!==b&&a.resume();a.j.fh()&&a.Xa&&!a.Xa.Tg()&&(c=a.currentTime<=b&&b<a.currentTime+10,d=oI(a.Xa.u.Hg(),a.currentTime+tVa),c&&d&&(a.j.C=!1));a.j.fh()||(a.currentTime=b);g.Bp(a.DG)}};
HXa=function(a,b){var c=eVa(a.videoTrack).find(function(d){return d.startTime>=b&&oXa(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
oXa=function(a,b,c){if(!(a.videoTrack.j.Ig()&&a.audioTrack.j.Ig()&&a.Xa&&a.Xa.u&&a.Xa.j))return!1;if(c&&a.Sa.isManifestless&&(-1===a.videoTrack.I||-1===a.audioTrack.I))return!0;var d=aX(a.videoTrack,b,c);if(isNaN(d))return!1;a=aX(a.audioTrack,a.policy.tf?b:d,c);return isNaN(a)?!1:!0};
IXa=function(a){a.wk();a.C&&jXa(a.C,a.videoTrack.j);tY(a);a=a.j;var b=Math.max(a.videoTrack.C.B||0,a.audioTrack.C.B||0);gVa(a.videoTrack);gVa(a.audioTrack);lwa(a.Sa);a.Sa.isManifestless&&(a.u=!0);a.Fa.currentTime=b;a.C=!0;a.B=new dK;return a.B};
YX=function(a,b){a.j!==b&&(a.j=b)};
JXa=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.B.I=a.timestampOffset,a.va.dO(a.timestampOffset),a.Sa.isManifestless&&(a.Sa.timestampOffset=a.timestampOffset),a.videoTrack.Vq(a.timestampOffset),a.audioTrack.Vq(a.timestampOffset))};
g.uY=function(a){this.jd=a};
vY=function(){g.aE.apply(this,arguments)};
wY=function(a,b,c,d){vY.call(this);var e=this;this.B=-1;this.j={};this.C=new g.Ap(this.D,0,this);g.I(this,this.C);this.u=new g.Ap(function(){e.isDisposed()||(e.C.start(Math.random()*c),e.u.start(b))},a,this);
g.I(this,this.u);d.subscribe("fairplay_next_need_key_info",this.I,this)};
KXa=function(a){if(!(28>=a.length))for(var b=(0,g.LX)([60,0,75,0,73,0,68,0,62,0]),c=28;c<a.length;){a:if(a.length-c<b.length)var d=!1;else{for(d=0;d<b.length;++d)if(a[c+d]!==b[d]){d=!1;break a}d=!0}if(d){c+=b.length;if(a.length<=c+48)break;b=new Uint8Array(24);for(d=0;24>d;++d)b[d]=a[c+2*d];a=RF(b);a=ag(a);if(!a)break;c=a[0];a[0]=a[3];a[3]=c;c=a[1];a[1]=a[2];a[2]=c;c=a[4];a[4]=a[5];a[5]=c;c=a[6];a[6]=a[7];a[7]=c;return a}c++}};
xY=function(a,b){vY.call(this);var c=this;this.B=a;this.j=[];this.u=new g.Ap(function(){c.ma("log_qoe",{wvagt:"timer",reqlen:c.j?c.j.length:-1});if(c.j){if(0<c.j.length){var d=c.j.shift();LXa(c,d.info)}0<c.j.length&&(d=c.j[0].time-(0,g.GA)(),c.u.start(Math.max(0,d)))}},0);
g.I(this,this.u);b.subscribe("widevine_set_need_key_info",this.C,this)};
LXa=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&0<a.B.size)c=!0;else{for(var d=g.v(a.B.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.ma("log_qoe",{wvagt:"reqnews",canskip:c});c||a.ma("rotated_need_key_info_ready",b)};
MXa=function(a){var b=a.interval,c=a.Ez;this.url=a.url;this.interval=b;this.Ez=c};
NXa=function(a,b){this.statusCode=a;this.message=b;this.u=this.heartbeatParams=this.errorMessage=null;this.j={};this.nextFairplayKeyId=null};
OXa=function(a){var b=PF(a.subarray(0,16384)),c=b.indexOf("\r\n\r\n");if(-1===c)return null;var d=b.indexOf("\r\n"),e=b.slice(0,d).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null==e)return null;e=e[1];isFinite(e)&&(e=String(e));e="string"===typeof e?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;b=gG(b.slice(d+2));if(null==b)return null;a=new NXa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.tCa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new MXa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,Ez:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.u=c.split(",");if(c=b["Key-Ids"]){if(c)for(d=c.split(";"),c={},d=g.v(d),e=d.next();!e.done;e=d.next())e=e.value.split(","),2===e.length&&(c[e[1]]=e[0]);else c={};a.j=c}a.nextFairplayKeyId=b["Next-Key-Id"];return a};
PXa=function(a,b,c){c=void 0===c?"":c;g.E.call(this);this.message=a;this.requestNumber=b;this.timer=c;this.onError=this.onSuccess=null;this.j=new g.ti(5E3,2E4,.2)};
QXa=function(a,b,c){a.onSuccess=b;a.onError=c};
SXa=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.isDisposed())if(0!==e.status&&e.response)if(bF("drm_net_r",void 0,a.timer),e=new Uint8Array(e.response),e=OXa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else RXa(a,e)},
onError:function(e){RXa(a,e)}};
c&&(b=Cfa(b,"access_token",c));g.Dy(b,d)};
RXa=function(a,b){if(!a.isDisposed())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
UXa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.isDisposed()){bF("drm_net_r",void 0,a.timer);var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=ag(f.license)}catch(z){g.zD(z)}if(0!==h||l){l=new NXa(h,l);0!==h&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.v(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var t=TXa[q.trackType];if(t){"HD"===t&&f.isHd720&&(t="HD720");q.isHdr&&(t+="HDR");
h[t]||(m.push(t),h[t]=!0);var w=null;try{w=ag(q.keyId)}catch(z){g.zD(z)}w&&(n[g.Zf(w,4)]=t)}}l.u=m;l.j=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);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.isDisposed())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.zS="Bearer "+d);g.gC(c,"player/get_drm_license",b,e)};
VXa=function(a,b,c,d){g.aE.call(this);this.videoData=a;this.Y=b;this.ea=c;this.sessionId=d;this.D={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.J=this.oa=!1;this.B=null;this.Aa=[];this.C=[];this.V=!1;this.j={};this.ya=NaN;this.status="";this.I=NaN;this.u=a.I;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.Y.j);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.oa&&(a.vvt=this.videoData.oa,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.Y.authUser&&(a.authuser=this.Y.authUser);this.Y.pageId&&(a.pageid=this.Y.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.hc()))?e[1]:"";"ATV"===e&&(a.cdt=e);this.D=a;this.D.session_id=d;this.Z=!0;"widevine"===this.u.flavor&&(this.D.hdr="1");"playready"===this.u.flavor&&(b=Number(vJ(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.D.mfpe=""+b),this.Z=!1);b="";g.hJ(this.u)?gJ(this.u)?(d=c.u)&&
(b="https://web.archive.org/web/20230505074338/https://www.youtube.com/api/drm/fps?ek="+$ca(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.u.u;this.baseUrl=b;this.fairplayKeyId=Wi(this.baseUrl,"ek")||"";if(b=Wi(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Ga=this.videoData.K("html5_use_drm_retry");this.Aa=c.Ee?[g.Zf(c.initData,4)]:c.B;yY(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"};
ZXa=function(a,b){yY(a,{createkeysession:1});a.status="gr";bF("drm_gk_s",void 0,a.videoData.Ja);a.url=WXa(a);try{a.B=b.createSession(a.ea,function(c){yY(a,{m:c})})}catch(c){b="t.g";
c instanceof DOMException&&(b+=";c."+c.code);a.ma("licenseerror","drm.unavailable",1,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.B&&(XXa(a.B,function(c,d){YXa(a,c,d)},function(c,d,e){if(!a.isDisposed()){d=void 0;
var f=1;g.hJ(a.u)&&g.pK(a.Y)&&a.Y.K("html5_enable_safari_fairplay")&&1212433232===e&&(d="ERROR_HDCP",f=a.Y.K("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.isDisposed()||(yY(a,{onkyadd:1}),a.J||(a.ma("sessionready"),a.J=!0))},function(c){a.bp(c)}),g.I(a,a.B))};
WXa=function(a){var b=a.baseUrl;Nsa(b)||a.error("drm.net",2,"t.x");if(!Wi(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.Y.experiments.experiments[e]});
0<c.length&&(a.D.fexp=c.join())}c=g.v(Object.keys(a.D));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Cfa(b,d,a.D[d]);return b};
YXa=function(a,b,c){if(!a.isDisposed())if(b){yY(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":$Xa(a,b);return;default:a.ma("ctmp","message_type",{t:c,l:b.byteLength})}a.oa||(bF("drm_gk_f",void 0,a.videoData.Ja),a.oa=!0,a.ma("newsession",a));if(dJ(a.u)&&(b=aYa(b),!b))return;g.hJ(a.u)&&!a.videoData.useInnertubeDrmService()&&(b=oua(g.Zf(b)));b=new PXa(b,++a.requestNumber,a.videoData.Ja);QXa(b,function(d){bYa(a,
d)},function(d,e,f){if(!a.isDisposed()){var h=0,l;
(l=3<=d.j.u)||(l=a.Ga&&36E4<(0,g.GA)()-a.ya);l&&(h=1,e="drm.net.retryexhausted");yY(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(TK(h),d)&&cYa(a,d)}});
g.I(a,b);dYa(a,b)}else a.error("drm.unavailable",1,"km.empty")};
$Xa=function(a,b){yY(a,{sdpvrq:1});a.I=Date.now();if("widevine"!==a.u.flavor)a.error("drm.provision",1,"e.flavor;f."+a.u.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.Y.j);c=g.Ui("https://web.archive.org/web/20230505074338/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:PF(b)}),responseType:"arraybuffer"};
g.Hy(c,b,3,500).then($I(function(d){d=d.xhr;if(!a.isDisposed()){d=new Uint8Array(d.response);var e=PF(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.ma("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.I)/1E3,a.I=NaN,a.ma("ctmp","provs",{et:f.toFixed(3)}),a.B&&a.B.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",1,d))}}),$I(function(d){a.isDisposed()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
zY=function(a){var b;if(b=a.Z&&null!=a.B)a=a.B,b=!(!a.j||!a.j.keyStatuses);return b};
dYa=function(a,b){a.status="km";bF("drm_net_s",void 0,a.videoData.Ja);if(a.videoData.useInnertubeDrmService()){var c=new g.fC(a.Y.Sj),d={context:g.CB(c.config_||g.BB())};d.drmSystem=eYa[a.u.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.Zf(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e,f,h=!!(null==(e=a.videoData.u)?0:null==(f=e.video)?
0:f.isHdr());d.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(d.context&&d.context.client){if(e=a.Y.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.oa&&(d.context.user.credentialTransferTokens=[{token:a.videoData.oa,
scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.Nb&&(d.context.user.kidsParent={oauthToken:a.videoData.Nb});g.hJ(a.u)&&(d.fairplayKeyId=g.Zf(ada(a.fairplayKeyId)));g.QK(a.Y,g.YM(a.videoData)).then(function(l){UXa(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.QK(a.Y,g.YM(a.videoData)).then(function(l){SXa(b,a.url,l);
a.status="rs"})};
bYa=function(a,b){if(!a.isDisposed())if(yY(a,{onlcsrsp:1}),a.status="rr",0!==b.statusCode)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{bF("drm_kr_s",void 0,a.videoData.Ja);if(b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.K("outertube_streaming_data_always_use_staging_license_service")){var c=a.u.u.match(/(.*)youtube.com/g);c&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url)}b.heartbeatParams&&a.ma("newlicense",b.heartbeatParams);b.u&&(a.C=b.u,a.videoData.useInnertubeDrmService()&&
!a.videoData.ZI&&a.ma("newlicense",new MXa({})),a.videoData.ZI=!0,a.V=Ym(a.C,function(d){return d.includes("HDR")}));
b.j&&(a.Y.K("html5_enable_vp9_fairplay")&&gJ(a.u)?(c=g.Zf(ada(a.fairplayKeyId),4),a.j[c]={type:b.j[c],status:"unknown"}):a.j=Xc(b.j,function(d){return{type:d,status:"unknown"}}));
eJ(a.u)&&!a.videoData.useInnertubeDrmService()?b.message=ag(PF(b.message)):fJ(a.u)&&a.videoData.useInnertubeDrmService()&&(b.message=oua(g.Zf(b.message)));a.B&&(yY(a,{updtks:1}),a.status="ku",a.B.update(b.message).then(function(){bF("drm_kr_f",void 0,a.videoData.Ja);zY(a)||(yY(a,{ksApiUnsup:1}),a.ma("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.$f(d.message,3);
a.error("drm.keyerror",1,d)}));
a.J&&(a.ya=(0,g.GA)());g.hJ(a.u)&&a.ma("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId);a.Y.K("html5_enable_vp9_fairplay")&&gJ(a.u)&&a.ma("qualitychange",fYa(a.C))}};
cYa=function(a,b){var c=b.j.getValue();c=new g.Ap(function(){dYa(a,b)},c);
g.I(a,c);c.start();g.Gi(b.j);yY(a,{rtyrq:1})};
gYa=function(a,b){for(var c=[],d=g.v(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)};
hYa=function(a){var b={};b[a.status]=zY(a)?gYa(a,"."):a.C.join(".");return b};
iYa=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};
jYa=function(a,b){for(var c in a.j)if("usable"===a.j[c].status&&a.j[c].type===b)return!0;return!1};
kYa=function(a,b){for(var c in a.j)if(a.j[c].type===b)return a.j[c].status};
yY=function(a,b){var c=void 0===c?!1:c;RK(b);(c||a.Y.Qd())&&a.ma("ctmp","drmlog",b)};
lYa=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};
fYa=function(a){return g.wb(a,"UHD2")||g.wb(a,"UHD2HDR")?"highres":g.wb(a,"UHD1")||g.wb(a,"UHD1HDR")?"hd2160":g.wb(a,"HD")||g.wb(a,"HDHDR")?"hd1080":g.wb(a,"HD720")||g.wb(a,"HD720HDR")?"hd720":"large"};
aYa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=new DOMParser;b=g.me(b);b=a.parseFromString(g.fe(b),"text/xml");return b?(b=b.querySelector("Challenge"))&&b.childNodes&&0!==b.childNodes.length?new Uint8Array((0,g.LX)(fda(b.childNodes[0].nodeValue)).buffer):null:null};
AY=function(a,b,c,d,e){g.E.call(this);this.element=a;this.V=b;this.initData=c;this.j=d;this.u=e;this.sessionId="";this.J=this.I=this.B=this.D=null;this.C=new g.eI(this);g.I(this,this.C);mYa(this)};
mYa=function(a){a.j?(a.C.S(a.j,"message",a.K0),a.C.S(a.j,"keystatuseschange",a.bp),a.j.closed&&a.j.closed.then($I(function(){a.isDisposed()||Sy("xboxone")&&a.B&&a.B("closed")}),null)):a.u&&(Gz(a.C,a.u,["mskeymessage",
"webkitkeymessage"],a.tW),Gz(a.C,a.u,["mskeyerror","webkitkeyerror"],a.sW),Gz(a.C,a.u,["mskeyadded","webkitkeyadded"],a.rW))};
XXa=function(a,b,c,d,e){a.D=b;a.B=c;a.I=d;a.J=e};
nYa=function(a,b,c){g.zD(c);a.B&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.B(b))};
BY=function(a,b){g.E.call(this);this.element=a;this.j=b;this.I={};this.C=null;this.D=new g.eI(this);this.B=this.u=null;g.I(this,this.D)};
pYa=function(a,b){b=oYa(b,a.j.Pa);a=a.B.createSession("video/mp4",b);return new AY(null,null,null,null,a)};
qYa=function(a,b){for(var c=new Uint8Array(270),d=0;135>d;d++)c[2*d]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(d);a=a.B.createSession("video/mp4",b,c);return new AY(null,null,null,null,a)};
rYa=function(a,b){var c=a.I[b.sessionId];!c&&a.C&&(c=a.C,a.C=null,c.sessionId=b.sessionId,a.I[b.sessionId]=c);return c};
oYa=function(a,b){var c=a.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e<c.length;e+=2)d+=String.fromCharCode(parseInt(c.substr(e,2),16));c=d;d=new ArrayBuffer(2*c.length);e=new Uint16Array(d);for(var f=0;f<c.length;f++)e[f]=c.charCodeAt(f);c=new Uint8Array(d);d=0;f=new ArrayBuffer(a.byteLength+4+c.byteLength+4+b.byteLength);e=new Uint8Array(f);f=new DataView(f);e.set(a);d+=a.byteLength;f.setUint32(d,
c.length,!0);d+=4;e.set(c,d);d+=c.length;f.setUint32(d,b.byteLength,!0);e.set(b,d+4);return e};
CY=function(){this.keys=[];this.values=[]};
uYa=function(a,b,c){g.aE.call(this);this.element=a;this.videoData=b;this.Y=c;this.j=this.videoData.I;this.drmSessionId=this.videoData.drmSessionId||g.Fsa();this.u=new Map;this.I=new CY;this.J=new CY;this.B=[];this.Ja=2;this.oa=new g.eI(this);this.La=this.Aa=!1;this.heartbeatParams=null;this.ya=this.ea=!1;this.D=null;this.Ga=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||bJ()||kJ(c.experiments);this.Y.K("html5_enable_vp9_fairplay")&&gJ(this.j)?c=sYa:(c=this.videoData.Sk,c="fairplay"===this.j.flavor||
c?bM:sYa);this.V=c;this.C=new BY(this.element,this.j);g.I(this,this.C);cJ(this.j)&&(this.Z=new BY(this.element,this.j),g.I(this,this.Z));g.I(this,this.oa);c=this.element;this.j.keySystemAccess?this.oa.S(c,"encrypted",this.Z5):Gz(this.oa,c,cJ(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.w6);tYa(this);a:switch(a=this.j,c=this.u,a.flavor){case "fairplay":19.2999<koa()?(c=a.Sw,a=a.Rw,a>=c&&(a=.75*c),b=.5*(c-a),c=new wY(b,c,c-b-a,this)):c=null;break a;case "widevine":c=new xY(c,this);break a;
default:c=null}if(this.D=c)g.I(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.wS,this),this.D.subscribe("log_qoe",this.Qi,this);kJ(this.Y.experiments);this.Qi({cks:this.j.qh()})};
tYa=function(a){var b=a.C.attach();b?b.then($I(function(){vYa(a)}),$I(function(c){if(!a.isDisposed()){g.zD(c);
var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.ma("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.Qi({mdkrdy:1}),a.ea=!0);
a.Z&&(b=a.Z.attach())};
xYa=function(a,b,c){a.La=!0;c=new STa(b,c);a.Y.K("html5_eme_loader_sync")&&(a.I.get(b)||a.I.set(b,c));wYa(a,c)};
wYa=function(a,b){if(!a.isDisposed()){a.Qi({onInitData:1});if(a.Y.K("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.J.get(b.initData);b=a.I.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.I.remove(c);a.J.remove(c)}a.Qi({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.Aa&&!a.videoData.isLivePlayback)DY(a);else{if(!(a.Y.K("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Ee)){a.Aa=!0;c=b.cryptoPeriodIndex;var d=b.j;UTa(b);b.Ee||(d&&b.j!==d?a.ma("ctmp","cpsmm",
{emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.ma("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.ma("widevine_set_need_key_info",b)}}else a.wS(b)}};
vYa=function(a){if(!a.isDisposed())if(a.Y.K("html5_drm_set_server_cert")&&!g.wK(a.Y)||gJ(a.j)){var b=a.C.setServerCertificate();b?b.then($I(function(c){a.Y.Qd()&&a.ma("ctmp","ssc",{success:c})}),$I(function(c){a.ma("ctmp","ssce",{n:c.name,
m:c.message})})).then($I(function(){yYa(a)})):yYa(a)}else yYa(a)};
yYa=function(a){a.isDisposed()||(a.ea=!0,a.Qi({onmdkrdy:1}),DY(a))};
zYa=function(a){return"widevine"===a.j.flavor&&a.videoData.K("html5_drm_cpi_license_key")};
DY=function(a){if(a.La&&a.ea&&!a.ya){for(;a.B.length;){var b=a.B[0],c=zYa(a)?VTa(b):g.Zf(b.initData);if(gJ(a.j)&&!b.u)a.B.shift();else{if(a.u.get(c))if("fairplay"!==a.j.flavor||gJ(a.j)){a.B.shift();continue}else a.u.delete(c);UTa(b);break}}a.B.length&&a.createSession(a.B[0])}};
AYa=function(a){var b;if(b=g.Uy()){var c;b=!(null==(c=a.C.u)||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.TF(b),a.ma("ctmp","drm",{metrics:b}))};
FY=function(a){g.E.call(this);var b=this;this.va=a;this.j=this.va.T();this.videoData=this.va.getVideoData();this.DC=0;this.I=this.B=!1;this.D=0;this.C=g.jJ(this.j.experiments,"html5_delayed_retry_count");this.u=new g.Ap(function(){EY(b.va)},g.jJ(this.j.experiments,"html5_delayed_retry_delay_ms"));
this.J=g.jJ(this.j.experiments,"html5_url_signature_expiry_time_hours");g.I(this,this.u)};
EYa=function(a,b,c){var d=a.videoData.u,e=a.videoData.D;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.va.Ii.D&&d&&"22"===d.itag)return a.va.Ii.D=!0,a.Ld("qoe.restart",{reason:"fmt.unplayable.22"}),GY(a.va),!0;var f=!1,h=a.DC+3E4<(0,g.GA)()||a.u.isActive();if(a.j.K("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Ld("auth",c),!0;var l;if(l=!h)l=a.va.Cs(),l=!!(l.yg()||l.isInline()||l.isBackground()||
l.Qy()||l.Oy());l&&(c.nonfg="paused",h=!0,a.va.pauseVideo());("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:xF(e)||wF(e))&&(Ywa(a.j.D,e.Mb),c.acfallexp=e.Mb,f=h=!0);!h&&0<a.C&&(a.u.start(),h=!0,c.delayed="1",--a.C);e=a.va.Fa;if(!h&&((null==d?0:HH(d))||(null==d?0:yF(d)))){var m;if(a.videoData.K("html5_disable_codec_for_playback_on_error")&&e){if(yT(e.policy))l=0;else{l=e.ye;var n=d.Mb;l.Ya.has(n)?l=!1:(l.Ya.add(n),l.ea=-1,iX(l,l.B),l=!0)}l&&(m="cfallp")}else Ywa(a.j.D,d.Mb),m="cfallexp";m&&(f=
h=!0,c[m]=d.Mb)}if(!h)return BYa(a,c);a.DC=(0,g.GA)();h=a.videoData;h.Ya?(h=h.Ya.wR(),m=Date.now()/1E3+1800,h=h<m):h=!1;c.e=b;h&&(c.staleprog="1");a.Ld("qoe.restart",c);if(h&&CYa(a))return DYa(a),!0;if(Sy("philips")&&"GAME_CONSOLE"!==a.j.j.cplatform)try{window.close()}catch(p){}d&&HH(d)?(f=a.j.D,f.ea=!0,f=f.j=!0):e?(b=(b=NX(e.videoTrack)||e.videoTrack.u)?b.j:e.videoTrack.j,b.J+=1,yT(e.policy)||lX(e.ye,b,!0)):a.videoData.Ya&&a.videoData.Ya.ZO();a.u.isActive()||EY(a.va,f);return!0};
BYa=function(a,b){if(a.videoData.Za)return!1;a.j.jc+=1;if(10>=a.j.jc)return!1;b.exiled=""+a.j.jc;a.Ld("qoe.start15s",b);a.va.ma("playbackstalledatstart");return!0};
CYa=function(a){return a.B?!0:"yt"===a.j.Ja?a.videoData.Za?25>a.videoData.jc:!a.videoData.jc:!1};
DYa=function(a){if(!a.B){a.B=!0;var b=a.va.getPlayerState();b=g.UO(b)||b.isSuspended();a.va.Cn();b&&!ZM(a.videoData)||a.va.ma("signatureexpired")}};
FYa=function(a,b){if((a=a.va.ue())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.Ye();b.details.merr=c?c.toString():"0";b.details.mmsg=a.zf()}};
GYa=function(a){return"net.badstatus"===a.errorCode&&(1===a.severity||!!a.details.fmt_unav)};
HYa=function(a,b){return a.j.K("html5_use_network_error_code_enums")&&403===b.details.rc||"403"===b.details.rc?(a=b.errorCode,"net.badstatus"===a||"manifest.net.retryexhausted"===a):!1};
JYa=function(a,b){if(!HYa(a,b)&&!a.B)return!1;b.details.sts="19478";if(CYa(a))return TK(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new SK("qoe.restart",b)),a.Ld(b.errorCode,b.details),DYa(a),!0;6048E5<(0,g.GA)()-a.j.Sf&&IYa(a,"signature");return!1};
IYa=function(a,b){try{window.location.reload(),a.Ld("qoe.restart",{detail:"pr."+b})}catch(c){}};
KYa=function(a,b){var c=a.j.D;c.D=!1;c.j=!0;a.Ld("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});EY(a.va,!0)};
LYa=function(a,b,c,d){this.videoData=a;this.j=b;this.reason=c;this.u=d};
MYa=function(a,b,c){this.Y=a;this.UD=b;this.va=c;this.ea=this.I=this.J=this.u=this.j=this.C=this.V=this.B=0;this.D=!1;this.Z=g.jJ(this.Y.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45};
OYa=function(a,b,c){!a.Y.K("html5_tv_ignore_capable_constraint")&&g.wK(a.Y)&&(c=c.compose(NYa(a,b)));return c};
QYa=function(a,b){var c,d=PYa(a,null==(c=b.j)?void 0:c.videoInfos);c=a.va.getPlaybackRate();return 1<c&&d?(a=Swa(a.Y.D,b.j.videoInfos,c),new fF(0,a,!0,"o")):new fF(0,0,!1,"o")};
PYa=function(a,b){return b&&g.wK(a.Y)?b.some(function(c){return 32<c.video.fps}):!1};
RYa=function(a,b){var c=a.va.OF();if(a.K("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&0<c.eQ&&iF(b.videoData.jl))a=c.eQ,b.videoData.jl=new fF(0,a,!1,"u");else{var d;if(c&&(null==(d=c.wK)?0:d.length)&&iF(b.videoData.jl)){a=new Map;d=g.v(b.j.videoInfos);for(var e=d.next();!e.done;e=d.next())e=e.value,a.set(+e.itag,e.video.j);d=[];c=g.v(c.wK);for(e=c.next();!e.done;e=c.next())(e=a.get(e.value))&&d.push(e);a=Math.max.apply(Math,g.la(d));b.videoData.jl=new fF(0,a,!1,"u")}}return b.videoData.jl};
NYa=function(a,b){if(g.wK(a.Y)&&uF(a.Y.D,vF.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;g.nK(a.Y)&&(e=window.screen&&window.screen.width?new g.xe(window.screen.width,window.screen.height):null);e||(e=a.Y.ym?a.Y.ym.clone():a.UD.Fj());(Zy||VW||d)&&e.scale(g.FK());d=e;xM(b.videoData)||ZM(b.videoData);b=b.j.videoInfos;if(b.length){e=.85;var f=b[0].video;"MESH"!==f.projectionType&&"EQUIRECTANGULAR"!==f.projectionType&&"EQUIRECTANGULAR_THREED_TOP_BOTTOM"!==f.projectionType||lK||(e=
.45);a=g.jJ(a.Y.experiments,"html5_viewport_undersend_maximum");for(f=0;f<b.length;f++){c=b[f];var h=c.video;if(null===d||h.width*e<d.width&&h.height*e<d.height){a&&f&&h.width<d.width*a&&h.height<d.height*a&&(c=b[f-1]);break}}d=c.video;c=new fF(0,"93"===c.itag?g.gF[AH(d.width,d.height)]:d.j,!1,"r")}else c=bM;c=c.j}c&&(c=Math.max(c,360));return new fF(0,c,!1,"r")};
SYa=function(a){var b,c,d,e;return g.A(function(f){switch(f.j){case 1:return a.j.j&&"function"===typeof(null==(b=navigator.mediaCapabilities)?void 0:b.decodingInfo)?g.y(f,Promise.resolve(),2):f.return(Promise.resolve());case 2:c=g.v(a.j.videoInfos),d=c.next();case 3:if(d.done){f.Ka(0);break}e=d.value;return g.y(f,Cva(e),4);case 4:d=c.next(),f.Ka(3)}})};
UYa=function(a,b){if(!b.videoData.u||a.K("html5_disable_performance_downgrade"))return!1;6E4<g.Va()-a.V&&(a.B=0);a.B++;a.V=g.Va();if(4!==a.B)return!1;TYa(a,b.videoData.u);return!0};
WYa=function(a,b,c,d){if(!b||!c||!b.videoData.u)return!1;var e=g.jJ(a.Y.experiments,"html5_df_downgrade_thresh"),f=a.K("html5_log_media_perf_info"),h=g.jJ(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.GA)()-a.C?0:f||0<e||0<h))return!1;var l=((0,g.GA)()-a.C)/1E3;a.C=(0,g.GA)();c=c.getVideoPlaybackQuality();if(!c)return!1;var m=c.droppedVideoFrames-a.I,n=c.totalVideoFrames-a.ea;a.I=c.droppedVideoFrames;a.ea=c.totalVideoFrames;var p=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||
-1;f&&a.Y.Qd()&&a.va.xa("ddf",{dr:c.droppedVideoFrames,de:c.totalVideoFrames,comp:p});if(d)return a.j=0,a.u=0,!1;d=60<n?m/n:0;0<d&&(a.J=d);a.u=0<h&&60*d>h?a.u+1:0;if((n-m)/l>a.Z||!e||g.wK(a.Y))return!1;a.j=d>e?a.j+1:0;if(3!==a.j)return!1;TYa(a,b.videoData.u);a.va.xa("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},VYa()));return!0};
XYa=function(a,b){return 0>=g.jJ(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32<b.video.fps)?!1:3<=a.u?(a.u=0,!0):!1};
TYa=function(a,b){var c=b.Mb,d=b.video.fps;b=b.video.j-1;var e=WI();c=rwa(c,d);0<+e[c]&&(b=Math.min(+e[c],b));e[c]!==b&&(e[c]=b,g.Lz("yt-player-performance-cap",e,604800));a.va.bA()};
YYa=function(a,b){if(!b.j.j)return a.D?new fF(0,360,!1,"b"):bM;for(var c=!1,d=!1,e=g.v(b.j.videoInfos),f=e.next();!f.done;f=e.next())HH(f.value)?c=!0:d=!0;c=c&&d;d=0;f=g.jJ(a.Y.experiments,"html5_performance_cap_floor");a=a.Y.u?240:f;b=g.v(b.j.videoInfos);for(f=b.next();!f.done;f=b.next())if(e=f.value,!c||!HH(e))if(f=XI(e.Mb,e.video.fps),e=e.video.j,Math.max(f,a)>=e){d=e;break}return new fF(0,d,!1,"b")};
ZYa=function(a){a=a.va.Cs();return a.isInline()?new fF(0,480,!1,"v"):a.isBackground()&&60<KC()/1E3?new fF(0,360,!1,"v"):bM};
aZa=function(a,b,c){if(a.Y.experiments.kb("html5_disable_client_autonav_cap_for_onesie")&&"onesie"===b.fetchType||g.wK(a.Y)&&(1080<=VI(-1)||b.osid))return bM;var d=g.jJ(a.Y.experiments,"html5_autonav_quality_cap"),e=g.jJ(a.Y.experiments,"html5_autonav_cap_idle_secs");return d&&b.isAutonav&&KC()/1E3>e?(c&&(d=$Ya(a,c,d)),new fF(0,d,!1,"e")):bM};
$Ya=function(a,b,c){if(a.K("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.j.videoInfos,b=1;b<a.length;b++)if(a[b].video.j<c)return a[b-1].video.j;return c};
bZa=function(a,b){a.K("html5_log_media_perf_info")&&(a.va.xa("perfdb",VYa()),a.va.xa("hwc",{nch:navigator.hardwareConcurrency},!0),b&&a.va.xa("mcdb",{itags:b.j.videoInfos.filter(function(c){var d;return!1===(null==(d=c.j)?void 0:d.smooth)}).map(function(c){return c.itag}).join("-")}))};
VYa=function(){return Xc(WI(),function(a){return""+a})};
HY=function(a){g.E.call(this);this.provider=a;this.j=-1;this.D=!1;this.u=-1;this.playerState=new g.OO;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.C=0;this.delay=new g.Ap(this.send,6E4,this);this.B=!1;g.I(this,this.delay)};
cZa=function(a){0<=a.j||(3===a.provider.va.getVisibilityState()?a.D=!0:(a.j=g.qW(a.provider),a.delay.start()))};
dZa=function(a){if(!(0>a.u)){var b=g.qW(a.provider),c=b-a.C;a.C=b;8===a.playerState.state?a.playTimeSecs+=c:g.XO(a.playerState)&&!g.UN(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
fZa=function(a,b){b?eZa.test(a):(a=g.oy(a),Object.keys(a).includes("cpn"))};
hZa=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(ry(a)&&sy()){if(h){var n;2!==(null==(n=gZa.uaChPolyfill)?void 0:n.state.type)?h=null:(h=gZa.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.ay("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]=
d:g.ay("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.ay("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);d=b.authUser;b.K("move_vss_away_from_login_info_cookie")&&d&&(m["X-Goog-AuthUser"]=d,m["X-Yt-Auth-Test"]="test");e&&(m.Authorization="Bearer "+e);h||m["X-Goog-Visitor-Id"]||e||c||b.K("move_vss_away_from_login_info_cookie")&&d?l.withCredentials=!0:b.K("html5_send_cpn_with_options")&&eZa.test(a)&&(l.withCredentials=!0)}0<Object.keys(m).length&&(l.headers=m);f&&(l.onFinish=f);return 1<Object.keys(l).length?
l:null};
iZa=function(a,b,c,d,e,f,h,l){sy()&&c.token&&(a=py(a,{ctt:c.token,cttype:c.GP,mdx_environment:c.mdxEnvironment}));f||l&&d.K("nwl_skip_retry")?(null==b?b={}:fZa(a,d.K("html5_assert_cpn_with_regex")),h?eC().sendAndWrite(a,b):eC().sendThenWrite(a,b,l)):d.Sk?(b=b||{},fZa(a,d.K("html5_assert_cpn_with_regex")),c=d.Sk,c.queue.push({url:a,options:b}),Zwa(c)):b?(fZa(a,d.K("html5_assert_cpn_with_regex")),g.Dy(a,b)):g.VB(a,e)};
jZa=function(a,b){zL(a,1,b.cpn);wL(a,2,b.sequenceNumber);zL(a,3,b.serializedWatchEndpointLoggingContext)};
g.JY=function(a){g.E.call(this);var b=this;this.provider=a;this.logger=new g.aW("qoe");this.j={};this.sequenceNumber=1;this.ob=NaN;this.Te="N";this.J=this.jc=this.Nb=this.ib=this.C=0;this.Aa=this.Bc="";this.Gb=this.Ga=NaN;this.tb=0;this.Gc=-1;this.Ub=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Ya=this.oa=this.isOffline=this.Z=!1;this.Kc=[];this.ea=null;this.Wa=this.D=this.Pa=this.I=!1;this.u=-1;this.Ja=!1;this.hd=new g.Ap(this.M3,750,this);this.V=this.adCpn="";this.adFormat=void 0;this.Uc=0;
this.La=new Set("cl fexp drm drm_system drm_product ns el adformat live cat".split(" "));this.Za=!1;this.ze={HH:function(c){b.HH(c)},
y7a:function(){return b.B}};
g.I(this,this.hd);(a="function"===typeof navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(c){b.ea=c});
g.IY(this,0,"vps",["N"])};
g.IY=function(a,b,c,d){var e=a.j[c];e||(e=[],a.j[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
kZa=function(a,b){var c=a.provider.va.getCurrentTime();g.IY(a,b,"cmt",[c.toFixed(3)]);c=a.provider.va.yk();if(a.B&&1E3*c>a.B.MV+100&&a.B){var d=a.B,e=d.isAd;c=1E3*c-d.MV;a.ya=1E3*b-d.O8-c-d.D8;c=(0,g.GA)()-c;b=a.ya;d=a.provider.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.J&&(h.cttAuthInfo={token:d.J,videoId:d.videoId});h.startTime=c-b;$E(f,h);ZE({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},f);bF("pbs",c,f)}else c=a.provider.va.Nh(),c.I!==d.clientPlaybackNonce?
(c.D=d.clientPlaybackNonce,c.u=b):g.AD(new g.Yz("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.xa("gllat",{l:a.ya.toFixed(),prev_ad:+e});delete a.B}};
nZa=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.qW(a.provider);var c=a.provider.va.WB(),d=c.Zq-(a.Ga||0);0<d&&g.IY(a,b,"bwm",[d,(c.Mt-(a.Gb||0)).toFixed(3)]);isNaN(a.Ga)&&c.Zq&&a.isOffline&&a.HH(!1);a.Ga=c.Zq;a.Gb=c.Mt;isNaN(c.bandwidthEstimate)||g.IY(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.Y.Qd()&&0!==Object.keys(c.j).length&&a.xa("bwinfo",c.j);if(a.provider.Y.Qd()||a.provider.Y.K("html5_log_meminfo"))d=nXa(),Object.values(d).some(function(e){return void 0!==e})&&a.xa("meminfo",d);
a.ea&&g.IY(a,b,"bat",[a.ea.level,a.ea.charging?"1":"0"]);d=a.provider.va.getVisibilityState();a.Gc!==d&&(g.IY(a,b,"vis",[d]),a.Gc=d);kZa(a,b);(d=lZa(a.provider))&&d!==a.tb&&(g.IY(a,b,"conn",[d]),a.tb=d);mZa(a,b,c)};
mZa=function(a,b,c){if(!isNaN(c.xu)){var d=c.xu;c.u<d&&(d=c.u);g.IY(a,b,"bh",[d.toFixed(3)])}};
oZa=function(a,b,c){g.QK(a.provider.Y,g.YM(a.provider.videoData)).then(function(d){var e=!1;if(b.includes("&dt=")||b.includes("&cotn=")){if(a.provider.Y.K("kevlar_woffle")||a.provider.Y.K("qoe_nwl_downloads"))e=!0}else a.provider.Y.K("qoe_with_networkless")&&(e=!0);var f=a.provider.Y.K("qoe_send_and_write"),h=a.provider.Y;d=hZa(b,h,a.provider.Y.pageId,a.provider.Y.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,d);h.K("html5_simplify_pings")&&(d=d||{});d?(d.method="POST",d.postBody=c,
iZa(b,d,{token:a.provider.videoData.J,GP:a.provider.videoData.ek,mdxEnvironment:a.provider.videoData.mdxEnvironment},h,void 0,e,f&&a.oa)):e?(e=a.provider.Y.K("networkless_ajax"),h={method:"POST",postBody:c},f&&a.oa?eC().sendAndWrite(b,h):e?g.Dy(b,{method:"POST",postBody:c}):eC().sendThenWrite(b,h)):(f=c,f=void 0===f?"":f,Rqa(b,f)||g.VB(b,void 0,void 0,void 0,f))})};
pZa=function(a){for(var b=0,c=g.v(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(bm(a.j[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.Ap(a.reportStats,0,a)).start()};
qZa=function(a){a.provider.videoData.nh&&KY(a,"prefetch");a.provider.videoData.jc&&a.xa("reload",{r:a.provider.videoData.reloadReason,ct:a.provider.videoData.jc});a.provider.videoData.tb&&KY(a,"monitor");a.provider.videoData.isLivePlayback&&KY(a,"live");AM&&KY(a,"streaming");a.provider.videoData.Ji&&a.xa("ctrl",{mode:a.provider.videoData.Ji},!0);if(a.provider.videoData.mj){var b=a.provider.videoData.mj.replace(/,/g,"_");a.xa("ytp",{type:b},!0)}a.provider.videoData.tQ&&(b=a.provider.videoData.tQ.replace(/,/g,
"."),a.xa("ytrexp",{ids:b},!0));var c=a.provider.videoData;b=a.provider.Y.K("enable_white_noise")||a.provider.Y.K("enable_webgl_noop");c=g.NM(c)||g.LM(c)||g.MM(c)||g.OM(c);(b||c)&&(b=(0,g.LY)())&&(a.j.gpu=[b]);ZM(a.provider.videoData)&&g.IY(a,g.qW(a.provider),"dt",["1"]);a.provider.Y.Qd()&&(b=(0,g.GA)()-a.provider.Y.Sf,a.xa("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.D=!0;a.ob=g.zy(function(){a.reportStats()},1E4)};
sZa=function(a,b,c){var d=g.qW(a.provider);rZa(a,d,b,0,c);nZa(a,d);pZa(a)};
rZa=function(a,b,c,d,e){var f=a.provider.Y.j.cbrver;"Chrome"===a.provider.Y.j.cbr&&/^96[.]/.test(f)&&"net.badstatus"===c&&/rc\.500/.test(e)&&tZa(a,3);a.provider.Y.K("html5_use_ump")&&/b248180278/.test(e)&&tZa(a,4);f=a.provider.va.getCurrentTime();d=1===d?"fatal":"";c=[c,d,f.toFixed(3)];d&&(e+=";a6s."+PFa());e&&c.push(uZa(e));g.IY(a,b,"error",c);a.D=!0};
vZa=function(a){0<=a.u||(a.provider.Y.Gf||3!==a.provider.va.getVisibilityState()?a.u=g.qW(a.provider):a.Ja=!0)};
KY=function(a,b){var c=a.j.cat||[];c.push(b);a.j.cat=c};
wZa=function(a,b,c,d,e){var f=g.qW(a.provider);1!==b&&3!==b&&5!==b||g.IY(a,f,"vps",[a.Te]);var h=a.j.xvt||[];h.push("t."+f.toFixed(3)+";m."+e.toFixed(3)+";g.2;tt."+b+";np.0;c."+c+";d."+d);a.j.xvt=h};
tZa=function(a,b){if(!a.Wa){var c=a.j.fcnz;c||(c=[],a.j.fcnz=c);c.push(String(b));a.Wa=!0}};
uZa=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
xZa=function(a){this.provider=a;this.J=!1;this.j=0;this.C=-1;this.Wo=NaN;this.u=0;this.segments=[];this.I=this.D=0;this.ea=this.provider.va.getVolume();this.V=this.provider.va.isMuted()?1:0;this.B=MY(this.provider)};
NY=function(a){a.B.startTime=a.u;a.B.endTime=a.j;a.segments.length&&g.qb(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.B:a.segments.length&&a.B.isEmpty()||a.segments.push(a.B);a.D+=a.j-a.u;a.B=MY(a.provider);a.u=a.j};
zZa=function(a){yZa(a);a.I=g.zy(function(){a.update()},100);
a.Wo=g.qW(a.provider);a.B=MY(a.provider)};
yZa=function(a){window.clearInterval(a.I);a.I=NaN};
AZa=function(a,b,c){c-=a.Wo;return b===a.j&&.5<c};
BZa=function(a,b,c,d){this.Y=b;this.segments=[];this.experimentIds=[];this.Wa=this.Ub=this.isFinal=this.uf=this.Gb=this.Kc=this.autoplay=this.autonav=!1;this.Gc="yt";this.D=this.I=null;this.sendVisitorIdHeader=this.Ya=!1;this.pageId="";this.C="watchtime"===c;this.B="playback"===c;this.Z="delayplay"===c;this.ea="atr"===c;this.Gf="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.ea?"/api/stats/"+c:"//"+b.zm+"/api/stats/"+c;this.hk=this.B&&b.Z&&a.pd;d&&(this.Ub=d.fs,d.rtn&&(this.D=d.rtn),this.C?
(this.playerState=d.state,0<d.rti&&(this.I=d.rti)):(this.Rf=d.mos,this.Vf=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.hd=d.inview),d.size&&(this.sH=d.size));this.Ud=g.jd(b.j);this.tf=b.Kc;this.experimentIds=b.experiments.experimentIds;this.Pa=b.Ri;this.Gc=b.Ja;this.region=b.region;this.userAge=b.userAge;this.ib=b.Ti;this.rd=KC();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.oa=b.K("vss_pings_using_networkless")||b.K("kevlar_woffle");this.Sf=b.K("vss_final_ping_send_and_write");
this.ya=b.K("vss_use_send_and_write");this.pageId=b.pageId;this.Tf=b.K("vss_playback_use_send_and_write");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.ke=b.C&&b.K("embeds_append_synth_ch_headers");g.iK(b)&&(this.Ja=b.Pa);this.accessToken=g.YM(a);a.Bc&&(this.Bc=a.Bc);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=XM(a);this.B&&(this.Kc=(a.K("html5_enable_log_server_autoplay")||a.K("enable_cleanup_masthead_autoplay_hack_fix"))&&a.jp&&"adunit"==SM(a)?!0:!1);
this.autonav=a.isAutonav||this.autonav;this.le=UM(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.Gb=a.pd;a.J&&(this.J=a.J,this.Nb=a.ek);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.zC;this.ob=a.ob;a.u&&(this.td=a.u.itag,a.D&&a.D.itag!==this.td&&(this.tb=a.D.itag));a.j&&nF(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.hk?"embedded_unbranded":SM(a);this.Wa=WM(a);this.Vd=a.nm;if(b=FM(a))this.Uf=b;this.Wd=a.tv;this.Aa=a.Aa;this.eventId=a.eventId;this.playlistId=
a.OR||a.playlistId;this.vx=a.vx;this.Ji=a.Ji;this.mj=a.mj;this.Un=a.Un;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.bK=a.bK;this.referrer=a.referrer;this.Sn=a.rQ||a.Sn;this.Za=a.tD;this.yx=a.yx;this.userGenderAge=a.userGenderAge;this.Zz=a.Zz;this.embedsRct=a.embedsRct;this.embedsRctn=a.embedsRctn;a.K("html5_report_host_cpn")&&(this.La=a.Z0)};
CZa=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.QK(a.Y,a.accessToken).then(function(d){return hZa(a.uri,a.Y,a.pageId,c,d,b,a.ke)})};
EZa=function(a,b){return function(){a.Y.K("html5_simplify_pings")?(a.j=a.Ga,a.Uc=b(),a.rd=0,a.send()):CZa(a).then(function(c){var d=a.uri,e=DZa(a),f=a.oa,h=a.ya;e.cmt=e.len;e.lact="0";var l=b().toFixed(3);e.rt=Number(l).toString();d=g.Ui(d,e);f?(null==c&&(c={}),h?eC().sendAndWrite(d,c):eC().sendThenWrite(d,c)):c?g.Dy(d,c):g.VB(d)})}};
DZa=function(a){var b={ns:a.Gc,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.u(a.j),fmt:a.td,fs:a.Ub?"1":"0",rt:a.u(a.Uc),adformat:a.adFormat,content_v:a.le,euri:a.tf,lact:a.rd,live:a.Uf,cl:(528338113).toString(),mos:a.Rf,state:a.playerState,volume:a.Vf};a.subscribed&&(b.subscribed="1");Object.assign(b,a.Ud);a.autoplay&&(b.autoplay="1");a.Kc&&(b.sautoplay="1");a.Gb&&(b.dni="1");!a.C&&a.Ja&&(b.epm=FZa[a.Ja]);a.isFinal&&(b["final"]="1");a.Wa&&(b.splay="1");a.ob&&(b.delay=a.ob);a.Pa&&(b.hl=a.Pa);
a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.ib&&(b.uga=a.ib+a.userAge);void 0!==a.Ga&&(b.len=a.u(a.Ga));!a.C&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.D&&(b.rtn=a.u(a.D));a.Sn&&(b.feature=a.Sn);a.Ji&&(b.ctrl=a.Ji);a.mj&&(b.ytr=a.mj);a.tb&&(b.afmt=a.tb);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.jc&&(b.lio=a.u(a.jc));a.C?(b.idpj=a.Vd,b.ldpj=a.Wd,null!=a.I&&(b.rti=a.u(a.I)),a.Zz&&(b.ald=a.Zz)):void 0!==
a.adType&&(b.at=a.adType);a.sH&&(a.B||a.Z||a.C)&&(b.size=a.sH);null!=a.hd&&(a.B||a.Z||a.C)&&(b.inview=a.u(a.hd));a.C&&(b.volume=OY(a,g.$l(a.segments,function(d){return d.volume})),b.st=OY(a,g.$l(a.segments,function(d){return d.startTime})),b.et=OY(a,g.$l(a.segments,function(d){return d.endTime})),Ym(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=OY(a,g.$l(a.segments,function(d){return d.playbackRate}))),Ym(a.segments,function(d){return"-"!==d.j})&&(b.als=g.$l(a.segments,function(d){return d.j}).join(",")));
b.muted=OY(a,g.$l(a.segments,function(d){return d.muted?1:0}));
Ym(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=OY(a,g.$l(a.segments,function(d){return d.visibilityState})));
Ym(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=OY(a,g.$l(a.segments,function(d){return d.connectionType})));
Ym(a.segments,function(d){return 0!==d.u})&&(b.blo=OY(a,g.$l(a.segments,function(d){return d.u})));
Ym(a.segments,function(d){return!!d.B})&&(b.blo=g.$l(a.segments,function(d){return d.B}).join(","));
Ym(a.segments,function(d){return"-"!==d.D})&&(b.cc=g.$l(a.segments,function(d){return d.D}).join(","));
Ym(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.$l(a.segments,function(d){return d.clipId}).join(","));
if(Ym(a.segments,function(d){return!!d.C})){var c="au";
a.B&&(c="au_d");b[c]=g.$l(a.segments,function(d){return d.C}).join(",")}sy()&&a.J&&(b.ctt=a.J,b.cttype=a.Nb,b.mdx_environment=a.mdxEnvironment);
a.Gf&&(b.etype=void 0!==a.V?a.V:0);a.Za&&(b.uoo=a.Za);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=GZa[a.livingRoomAppMode]||a.livingRoomAppMode);a.Bc?HZa(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.bK,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.Un&&(b.ssrt="1"),a.yx&&(b.upt=a.yx));if(a.B||a.Z)a.embedsRct&&(b.rct=a.embedsRct),a.embedsRctn&&(b.rctn=
a.embedsRctn);a.La&&(b.host_cpn=a.La);return b};
HZa=function(a,b){if(b&&a.Bc){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"]);if(a.Y.K("html5_use_server_provided_namespace")){var f=a.Bc.ns,h=b.ns;f&&f!==h&&(g.AD(new g.Yz("b273365784_vss_diff",f,h)),d.delete("ns"))}f=g.v(Object.keys(a.Bc));for(h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||c.has(h)||e.has(h)&&!a.Bc[h]||(b[h]=a.Bc[h])}};
OY=function(a,b){return g.$l(b,a.u).join(",")};
IZa=function(a,b){a.attestationResponse&&CZa(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.oa?a.ya?eC().sendAndWrite(b,c):eC().sendThenWrite(b,c):g.Dy(b,c)})};
PY=function(a){g.E.call(this);this.provider=a;this.I="paused";this.C=NaN;this.J=[10,10,10,40];this.ea=this.V=0;this.Aa=this.ya=this.Ja=this.Ga=this.oa=this.Z=this.u=!1;this.B=this.D=NaN;this.j=new xZa(a)};
KZa=function(a){if(!a.u){16623===a.provider.videoData.Gz&&g.AD(Error("Playback for EmbedPage"));var b=QY(a,"playback");a:{if(a.provider.Y.K("web_player_use_server_vss_schedule")){var c,d=null==(c=a.provider.videoData.getPlayerResponse())?void 0:c.playbackTracking,e=null==d?void 0:d.videostatsScheduledFlushWalltimeSeconds;d=null==d?void 0:d.videostatsDefaultFlushIntervalSeconds;if(e&&0<e.length&&d){c=[];var f=a.provider.videoData.nm,h=a.provider.videoData.tv,l=-f;e=g.v(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.J=c;break a}}a.J=[10+a.provider.videoData.nm,10,10,40+a.provider.videoData.tv-a.provider.videoData.nm,40]}zZa(a.j);b.D=RY(a);0<a.B&&(b.j-=a.B);b.send();a.provider.videoData.nx&&(b=a.provider.Y,d=a.provider.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.nx,oid:d.FV,ptchn:d.mV,pltype:d.NV,content_v:UM(d)},d.Ow&&Object.assign(c,{m:d.Ow}),b=g.Ui(b.La+"ptracking",c),SY(a,b));a.provider.videoData.ob||JZa(a);
a.u=!0;a=a.j;a.j=a.provider.va.yk();a.Wo=g.qW(a.provider);!(0===a.u&&5>a.j)&&2<a.j-a.u&&(a.u=a.j);a.J=!0}};
RY=function(a,b){b=void 0===b?NaN:b;var c=g.qW(a.provider);b=isNaN(b)?c:b;b=Math.ceil(b);var d=a.J[a.V];a.V+1<a.J.length&&a.V++;var e=b+d;a.C=g.yy(function(){if(!a.isDisposed()){a.C=NaN;var f=LZa(a),h=MZa(a,f);h.I=e;var l=1E3<a.ea;!(1<f.length)&&f[0].isEmpty()||l||(h.D=RY(a,e));h.send();a.ea++}},1E3*(e-c));
return a.D=e};
TY=function(a){g.Ay(a.C);a.C=NaN};
LZa=function(a){a.j.update();a=a.j;a.segments.length&&a.j===a.u||NY(a);var b=a.segments;a.segments=[];return b};
QY=function(a,b){var c=NZa(a.provider);Object.assign(c,{state:a.I});b=new BZa(a.provider.videoData,a.provider.Y,b,c);b.j=a.provider.va.yk();a.provider.videoData.isLivePlayback||(b.Ga=a.provider.va.getDuration());a.provider.videoData.j&&(c=a.provider.videoData.j.Lf(b.j))&&(b.jc=c-b.j);b.Uc=g.qW(a.provider);b.segments=[MY(a.provider)];return b};
MZa=function(a,b){var c=QY(a,"watchtime");if(0<a.B){for(var d=g.v(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.j;c.segments=b;return c};
UY=function(a,b){var c=OZa(a,!isNaN(a.D));b&&(a.D=NaN);return c};
OZa=function(a,b){var c=MZa(a,LZa(a));!isNaN(a.D)&&b&&(c.I=a.D);return c};
JZa=function(a){a.provider.videoData.remarketingUrl&&!a.Ga&&(SY(a,a.provider.videoData.remarketingUrl),a.Ga=!0);a.provider.videoData.youtubeRemarketingUrl&&!a.Ja&&(SY(a,a.provider.videoData.youtubeRemarketingUrl),a.Ja=!0);a.provider.videoData.googleRemarketingUrl&&!a.ya&&(SY(a,a.provider.videoData.googleRemarketingUrl),a.ya=!0);a.provider.videoData.ppvRemarketingUrl&&!a.Aa&&(SY(a,a.provider.videoData.ppvRemarketingUrl),a.Aa=!0);a.dA()};
PZa=function(a){if(!a.isDisposed()&&a.u){a.I="paused";var b=UY(a);b.isFinal=!0;b.send();a.dispose()}};
QZa=function(a,b,c){if(!a.Z){c||(c=QY(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.Z=!0}};
SY=function(a,b){var c=a.provider.Y;g.QK(a.provider.Y,g.YM(a.provider.videoData)).then(function(d){var e=a.provider.Y.pageId,f=a.provider.Y.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,h=a.provider.Y.K("vss_pings_using_networkless")||a.provider.Y.K("kevlar_woffle"),l=a.provider.Y.K("allow_skip_networkless");d=hZa(b,c,e,f,d);iZa(b,d,{token:a.provider.videoData.J,GP:a.provider.videoData.ek,mdxEnvironment:a.provider.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})};
RZa=function(){this.endTime=this.startTime=-1;this.D="-";this.playbackRate=1;this.visibilityState=0;this.C="";this.u=0;this.B=void 0;this.volume=this.connectionType=0;this.muted=!1;this.j=this.clipId="-"};
SZa=function(a,b,c){this.videoData=a;this.Y=b;this.va=c;this.j=void 0};
g.qW=function(a){return TZa(a)()};
TZa=function(a){if(!a.j){var b=g.Ua(function(d){var e=(0,g.GA)();d&&631152E6>=e&&(a.va.xa("ytnerror",{issue:28799967,value:""+e}),e=(new Date).getTime()+2);return e},a.Y.K("html5_validate_yt_now")),c=b();
a.j=function(){return Math.round(b()-c)/1E3};
a.va.ZN()}return a.j};
NZa=function(a){var b=a.va.aq()||{};b.fs=a.va.oC();b.volume=a.va.getVolume();b.muted=a.va.isMuted()?1:0;b.mos=b.muted;b.inview=a.va.MB();b.size=a.va.AB();b.clipid=a.va.uy();var c=Object,d=c.assign;a=a.videoData;var e={};a.u&&(e.fmt=a.u.itag,a.D&&a.D.itag!=a.u.itag&&(e.afmt=a.D.itag));e.ei=a.eventId;e.list=a.playlistId;e.cpn=a.clientPlaybackNonce;a.videoId&&(e.v=a.videoId);a.Sj&&(e.infringe=1);WM(a)&&(e.splay=1);var f=FM(a);f&&(e.live=f);a.jp&&(e.sautoplay=1);a.Ul&&(e.autoplay=1);a.vx&&(e.sdetail=
a.vx);a.Aa&&(e.partnerid=a.Aa);a.osid&&(e.osid=a.osid);a.Jw&&(e.cc=a.Jw.vssId);return d.call(c,b,e)};
lZa=function(a){if(navigator.connection&&navigator.connection.type)return UZa[navigator.connection.type]||UZa.other;if(g.wK(a.Y)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
MY=function(a){var b=new RZa,c;b.D=(null==(c=NZa(a).cc)?void 0:c.toString())||"-";b.playbackRate=a.va.getPlaybackRate();c=a.va.getVisibilityState();0!==c&&(b.visibilityState=c);a.Y.Ud&&(b.u=1);b.B=a.videoData.wq;c=a.va.getAudioTrack();c.Ic&&c.Ic.id&&"und"!==c.Ic.id&&(b.C=c.Ic.id);b.connectionType=lZa(a);b.volume=a.va.getVolume();b.muted=a.va.isMuted();b.clipId=a.va.uy()||"-";b.j=a.videoData.sQ||"-";return b};
g.VY=function(a){g.E.call(this);this.provider=a;this.qoe=this.j=null;this.Bi=void 0;this.u=new Map;this.provider.videoData.De()&&!this.provider.videoData.lm&&(this.j=new PY(this.provider),g.I(this,this.j),this.qoe=new g.JY(this.provider),g.I(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Bi=this.provider.videoData.clientPlaybackNonce)&&this.u.set(this.Bi,this.j));this.B=new HY(this.provider);g.I(this,this.B)};
VZa=function(a){cZa(a.B);a.qoe&&vZa(a.qoe)};
WZa=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.Bi){var b;null!=(b=a.u.get(a.Bi))&&NY(b.j)}else a.j&&NY(a.j.j)};
XZa=function(a){a.B.send();if(a.qoe){var b=a.qoe;if(b.D){"PL"===b.Te&&(b.Te="N");var c=g.qW(b.provider);g.IY(b,c,"vps",[b.Te]);b.I||(0<=b.u&&(b.j.user_intent=[b.u.toString()]),b.I=!0);b.provider.Y.Qd()&&b.xa("finalized",{});b.oa=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.v(a.u.values()),c=b.next();!c.done;c=b.next())PZa(c.value);else a.j&&PZa(a.j);a.dispose()};
YZa=function(a,b){a.j&&QZa(a.j,b)};
ZZa=function(a){if(!a.j)return null;var b=QY(a.j,"atr");return function(c){a.j&&QZa(a.j,c,b)}};
$Za=function(a,b,c,d){c.adFormat=c.le;var e=b.va;b=new PY(new SZa(c,b.Y,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
yk:function(){return e.yk()},
WB:function(){return e.WB()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
ZB:function(){return e.ZB()},
getVisibilityState:function(){return e.getVisibilityState()},
Nh:function(){return e.Nh()},
aq:function(){return e.aq()},
getVolume:function(){return e.getVolume()},
isMuted:function(){return e.isMuted()},
oC:function(){return e.oC()},
uy:function(){return e.uy()},
MB:function(){return e.MB()},
AB:function(){return e.AB()},
ZN:function(){e.ZN()},
WC:function(){e.WC()},
xa:function(f,h){e.xa(f,h)}}));
b.B=d;g.I(a,b);return b};
a_a=function(){this.xu=0;this.B=this.Mt=this.Zq=this.u=NaN;this.j={};this.bandwidthEstimate=NaN};
b_a=function(){this.j=g.VD;this.array=[]};
d_a=function(a,b,c){var d=[];for(b=c_a(a,b);b<a.array.length;++b){var e=a.array[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
e_a=function(a,b){var c=[];a=g.v(a.array);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c};
f_a=function(a){return a.array.slice(c_a(a,0x7ffffffffffff),a.array.length)};
c_a=function(a,b){a=Qb(a.array,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
g_a=function(a,b){var c=NaN;a=g.v(a.array);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.end<c)&&(c=d.end),d.start>b&&(isNaN(c)||d.start<c)){c=d.start;break}return c};
h_a=function(a,b){a.array=a.array.filter(function(c){return!b.has(c)})};
WY=function(a,b,c,d){g.E.call(this);this.V=a;this.oa=b;this.D=c;this.ea=d;this.u=NaN;this.I=this.J=this.started=!1;this.B=[];this.Z=new g.Ap(this.Nn,250,this);g.I(this,this.Z);this.C=new g.Ap(this.Nn,0,this);g.I(this,this.C);this.j=new b_a};
i_a=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];1===c[0]?a.ea(g.WD(d.namespace),d):a.ea(g.XD(d.namespace),d)}};
j_a=function(a){this.u=this.mediaTime=NaN;this.B=this.j=!1;this.C=.001;g.wK(a)&&(this.C=.01)};
XY=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
YY=function(a,b,c,d){if(d=1<d)a.B=!0;if(a.j)b!==a.mediaTime&&(a.j=!1);else if(0<b&&a.mediaTime===b)return c-a.u>(d||!a.B?1500:400);a.mediaTime=b;a.u=c;return!1};
k_a=function(a,b){this.videoData=a;this.j=b};
l_a=function(a,b,c){return Mza(b,c).then(function(){return Ky(new k_a(b,b.C))},function(d){d instanceof Error&&g.AD(d);
var e=gI('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=iI('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.yJ(a.D,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:b.Uu(),d:!!b.ib,drm:b.Nl(),f18:0<=b.uf.indexOf("itag=18"),c18:e};b.j&&(b.Nl()?(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=iI('video/mp4; codecs="avc1.42001E"'),
e.cVP9=iI('video/webm; codecs="vp9"'));b.I&&(e.drmsys=b.I.keySystem,f=0,b.I.j&&(f=Object.keys(b.I.j).length),e.drmst=f);return new SK(d,e,h)})};
m_a=function(a){this.D=a;this.B=this.u=0;this.C=new nS(50)};
ZY=function(a,b,c){g.aE.call(this);this.videoData=a;this.experiments=b;this.V=c;this.u=[];this.C=0;this.B=!0;this.D=!1;this.I=0;c=new n_a;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.tb?c.u=3:g.JM(a)&&(c.u=2);"NORMAL"===a.latencyClass&&(c.V=!0);var d=Eza(a);c.D=2===d||-1===d;c.D&&(c.Z++,21530001===BM(a)&&(c.I=g.jJ(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Sy("trident/")||Sy("edge/"))c.B=Math.max(c.B,g.jJ(b,"html5_platform_minimum_readahead_seconds")||3);g.jJ(b,"html5_minimum_readahead_seconds")&&
(c.B=g.jJ(b,"html5_minimum_readahead_seconds"));g.jJ(b,"html5_maximum_readahead_seconds")&&(c.ea=g.jJ(b,"html5_maximum_readahead_seconds"));b.kb("html5_force_adaptive_readahead")&&(c.C=!0);switch(BM(a)){case 21530001:c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2),c.J=b.kb("html5_live_smoothly_extend_max_seekable_time")}this.policy=c;this.J=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.tb&&b--;this.experiments.kb("html5_disable_extra_readahead_normal_latency_live_stream")||
a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(BM(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.D&&b++;this.j=o_a(this,b)};
p_a=function(a,b){var c=a.j;(void 0===b?0:b)&&a.policy.J&&3===Eza(a.videoData)&&--c;return $Y(a)*c};
aZ=function(a,b){var c=a.Vp(),d=a.policy.j;a.D||(d=Math.max(d-1,0));a=d*$Y(a);return b>=c-a};
q_a=function(a,b,c){b=aZ(a,b);c||b?b&&(a.B=!0):a.B=!1;a.J=2===a.policy.u||3===a.policy.u&&a.B};
r_a=function(a,b){b=aZ(a,b);a.D!==b&&a.ma("livestatusshift",b);a.D=b};
$Y=function(a){return a.videoData.j?RI(a.videoData.j)||5:5};
o_a=function(a,b){b=Math.max(Math.max(a.policy.Z,Math.ceil(a.policy.B/$Y(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.ea/$Y(a))),b)};
n_a=function(){this.Z=1;this.B=0;this.ea=Infinity;this.C=!0;this.j=2;this.u=1;this.D=!1;this.I=NaN;this.J=this.V=!1};
dZ=function(a){g.E.call(this);this.va=a;this.Y=this.va.T();this.C=this.j=0;this.B=new g.Ap(this.gf,1E3,this);this.Ja=new bZ({delayMs:g.jJ(this.Y.experiments,"html5_seek_timeout_delay_ms")});this.V=new bZ({delayMs:g.jJ(this.Y.experiments,"html5_long_rebuffer_threshold_ms")});this.La=cZ(this,"html5_seek_set_cmt");this.Z=cZ(this,"html5_seek_jiggle_cmt");this.Ga=cZ(this,"html5_seek_new_elem");this.Za=cZ(this,"html5_unreported_seek_reseek");this.I=cZ(this,"html5_long_rebuffer_jiggle_cmt");this.J=new bZ({delayMs:2E4});
this.ya=cZ(this,"html5_seek_new_elem_shorts");this.Aa=cZ(this,"html5_seek_new_elem_shorts_vrs");this.oa=cZ(this,"html5_seek_new_elem_shorts_buffer_range");this.D=cZ(this,"html5_ads_preroll_lock_timeout");this.Pa=new bZ({delayMs:g.jJ(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,by:!this.Y.K("html5_report_slow_ads_as_error")});this.Wa=new bZ({delayMs:g.jJ(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,by:!this.Y.K("html5_skip_slow_buffering_ad")});this.Ya=new bZ({delayMs:g.jJ(this.Y.experiments,
"html5_slow_start_timeout_delay_ms")});this.ea=cZ(this,"html5_slow_start_no_media_source");this.u={};g.I(this,this.B)};
cZ=function(a,b){var c=g.jJ(a.Y.experiments,b+"_delay_ms");a=a.Y.K(b+"_cfl");return new bZ({delayMs:c,by:a})};
eZ=function(a,b,c,d,e,f,h,l){s_a(b,c)?(a.Ld(e,b,h),b.by||f()):(b.OH&&b.u&&!b.C?(c=(0,g.GA)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.u>b.OH,c=b.j&&c-b.j>b.LO||f?b.C=!0:!1):c=!1,c&&(l=Object.assign({},a.kc(b),l),l.wn=h,l.we=e,l.wsuc=d,a.va.xa("workaroundReport",l),d&&(b.reset(),a.u[e]=!1)))};
bZ=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.LO?1E3:b.LO,d=void 0===b.OH?3E4:b.OH;b=void 0===b.by?!1:b.by;this.j=this.u=this.B=this.startTimestamp=0;this.C=!1;this.D=Math.ceil(a/1E3);this.LO=c;this.OH=d;this.by=b};
s_a=function(a,b){if(!a.D||a.u)return!1;if(!b)return a.reset(),!1;b=(0,g.GA)();if(!a.startTimestamp)a.startTimestamp=b,a.B=0;else if(a.B>=a.D)return a.u=b,!0;a.B+=1;return!1};
w_a=function(a){g.E.call(this);var b=this;this.va=a;this.Y=this.va.T();this.videoData=this.va.getVideoData();this.policy=new t_a(this.Y);this.Z=new dZ(this.va);this.playbackData=null;this.Pa=new g.eI;this.I=this.u=this.Fa=this.mediaElement=null;this.j=NaN;this.C=0;this.Aa=NaN;this.B=null;this.Ga=NaN;this.D=this.J=null;this.ea=this.V=!1;this.ya=new g.Ap(function(){u_a(b,!1)},2E3);
this.ib=new g.Ap(function(){fZ(b)});
this.La=new g.Ap(function(){b.V=!0;v_a(b,{})});
this.timestampOffset=0;this.Wa=!0;this.Ja=0;this.Za=NaN;this.oa=new g.Ap(function(){var c=b.Y.uf;c.j+=1E4/36E5;c.j-c.B>1/6&&(sxa(c),c.B=c.j);b.oa.start()},1E4);
this.Ya=this.ob=!1;g.I(this,this.Z);g.I(this,this.Pa);g.I(this,this.ya);g.I(this,this.La);g.I(this,this.ib);g.I(this,this.oa)};
y_a=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.I=new m_a(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(mM(a.videoData)&&a.Fa){var c=a.Fa.hF.aj()||0;break a}if(a.videoData.j){c=a.videoData.j.Z;break a}}c=0}return c}),a.u=new ZY(a.videoData,a.Y.experiments,function(){return a.qe(!0)}));
x_a(a)||(a.C=a.C||a.videoData.startSeconds||0)};
A_a=function(a,b){(a.Fa=b)?z_a(a,!0):gZ(a)};
B_a=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.I&&d){var e=a.I;if(e.j&&!(c>=e.u&&c<e.B)){var f=e.j.rh(c);-1!==f&&(e.u=e.j.getStartTime(f),e.B=e.u+e.j.getDuration(f),f=Date.now()/1E3-e.j.Lf(f),f-=e.D(),e.C.add(f))}}a.u&&(d&&(e=a.u,f=a.mediaElement?LO(a.mediaElement):0,e.C++,3>e.C||3E3>g.Va()-e.I||(e.I=g.Va(),e.u.push(f),50<e.u.length&&e.u.shift())),e=a.u,q_a(e,c,void 0===b?!0:b),r_a(e,c),b&&u_a(a,!0));a.Y.K("html5_report_live_head_condition_to_qoe")&&d!==a.ob&&(b=a.va.yc,b.qoe&&
(b=b.qoe,c=g.qW(b.provider),g.IY(b,c,"lh",[d?"1":"0"])),a.ob=d)};
u_a=function(a,b){if(a.u){var c=a.u;var d=a.getCurrentTime();!aZ(c,d)&&c.rq()?(c.policy.V&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d<c.videoData.Kd()?Math.min(c.videoData.Kd()+10,c.Vp()):NaN;if(!isNaN(c)){if(a.Fa&&b&&(b=a.ya.isActive(),d=a.u.Vp(),(d=HXa(a.Fa,d-a.Ed()))&&!b)){a.ya.start();a.va.xa("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.Ed()});a.seekTo(d+a.Ed(),{xe:"seektimeline_inBufferSeek"});return}a.seekTo(c,{xe:"seektimeline_pegToLive"})}}};
z_a=function(a,b){if(a.u&&a.Fa){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(b=a.u,b.u.length){c=b.j;b:{if(b.u.length){if(1<Math.min.apply(null,b.u)){var d=o_a(b,b.j-1);break b}if(b.policy.C){d=o_a(b,b.j+1);break b}}d=b.j}b.j=d;if(c=c!==b.j)b.u=[],b.C=0}else c=!1;c&&(c=a.va.yc,b=p_a(a.u),c.qoe&&(c=c.qoe,g.IY(c,g.qW(c.provider),"lra",[b]),c.xa("live-readahead-seconds",{v:b})));b=a.Fa;c=a.u.j;d=a.u;d=(d.j-1+
d.policy.j)*$Y(d);var e=b.u;a=a.u.policy.I;e.Rg=Math.max(c-1,0);e.V=a;b.C&&(b.C.Z=d)}};
C_a=function(a,b){a.C=b};
v_a=function(a,b){D_a(a,b).then(void 0,function(){gZ(a)});
E_a(a).then(function(c){F_a(a,c)},function(){gZ(a)});
ZRa(a.va);a.Y.Qd()&&(b=a.kc(),b["native"]=""+ +a.ea,b.tgt=""+a.j,a.va.xa("startSeek",b))};
D_a=function(a,b){a.J||(a.Fa?isFinite(a.j)?a.J=a.Fa.seek(a.j-a.timestampOffset,b):(kM(a.videoData),a.J=IXa(a.Fa),a.j=a.Fa.getCurrentTime()+a.timestampOffset):a.J=Ef(a.j-a.timestampOffset));return a.J};
E_a=function(a){var b=a.B;b||(a.B=new dK,b=a.B,fZ(a));return b};
G_a=function(a,b,c){return isNaN(b)?NaN:g.pe(b,a.Kd(),a.qe(c))};
fZ=function(a){if(a.B)if(a.videoData.isLivePlayback&&a.videoData.C&&!a.videoData.C.j&&a.mediaElement&&0<a.mediaElement.uj()&&0<KO(a.mediaElement)&&(a.j=G_a(a,a.j,!1)),!a.mediaElement||!H_a(a))a.ib.start(750);else if(!isNaN(a.j)&&isFinite(a.j)&&a.Ga!==a.j-a.timestampOffset){var b=a.K("html5_live_seek_timeline_timestamps")?a.j-a.timestampOffset:a.j;b=a.mediaElement.getCurrentTime()-b;if(Math.abs(b)<=a.Ja)a.B&&a.B.resolve(a.mediaElement.getCurrentTime());else{if(a.videoData.QI)a.videoData.QI=!1;else if(!kM(a.videoData)&&
a.j>=a.qe()-.1){a.j=a.qe();a.B.resolve(a.qe());rW(a.va);return}try{var c=a.j-a.timestampOffset;a.mediaElement.seekTo(c);a.Z.j=c;a.Ga=c;a.C=a.j}catch(d){}}}};
H_a=function(a){if(!a.mediaElement||0===a.mediaElement.uj()||0<a.mediaElement.Ye())return!1;var b=0<a.mediaElement.getCurrentTime();if(!(a.videoData.C&&a.videoData.C.j||a.videoData.isLivePlayback)&&a.videoData.Nl())return b;if(0<=a.j){var c=a.mediaElement.VB();if(c.length||!b)return oI(c,a.j-a.timestampOffset)}return b};
F_a=function(a,b){a.D&&(a.D.resolve(b),a.va.ma("SEEK_COMPLETE"),a.Y.Qd()&&(b=a.kc(),b["native"]=""+ +a.ea,a.va.xa("seekEnd",b)));gZ(a)};
gZ=function(a){a.j=NaN;a.Ga=NaN;a.B=null;a.J=null;a.D=null;a.V=!1;a.ea=!1;a.Ja=0;a.ya.stop();a.La.stop()};
I_a=function(a){if(a.mediaElement){for(var b=g.v(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Pa.S(a.mediaElement,c.value,function(d){var e=a.mediaElement;switch(d.type){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.B||a.ea&&d!==a.j)a.B=new dK,a.Ga=d,e=e.getCurrentTime(),a.Z.j=e,a.seekTo(d,{xe:"seektimeline_mediaElementEvent"}),a.ea=!0;break;case "seeked":a.B&&a.B.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":if(a.Wa){e="ss";
d=0;a.videoData.j&&a.videoData.j.isManifestless&&a.videoData.Ub&&!x_a(a)&&(e="mss",d=a.videoData.Ub);a.K("html5_prioritize_st_start_seconds")&&!d&&a.videoData.Ti&&(e="stss",d=a.videoData.Ti);var f;if(f=!d)f=(KM(a.videoData)||!!a.videoData.liveUtcStartSeconds)&&(!!a.videoData.liveUtcStartSeconds||x_a(a))&&!!a.videoData.j;f&&(d=a.videoData.liveUtcStartSeconds||a.videoData.Ub,e="utc",d=a.qe()-a.Lf(a.qe())+d);!d&&a.videoData.Ti&&(e="stss",d=a.videoData.Ti);f={};if(d){if(d>a.qe()||d<a.Kd())f.minSeekableTime=
a.Kd(),f.maxSeekableTime=a.qe(),a.va.xa("startSecondsOutOfBounds",f),a.videoData.Zc()&&(d=G_a(a,d,!1));a.seekTo(d,{xe:"seektimeline_startSeconds"});f[e]=d;a.va.xa("startSeconds",f);a.Wa=!1}else a.videoData.Ub&&(f[e]=a.videoData.Ub+a.Ed(),a.va.xa("startSeconds",f))}fZ(a);break;case "progress":fZ(a)}});
a.D||a.C||!a.mediaElement.RO()||a.seekTo(.01,{xe:"seektimeline_setupMediaElement"})}};
x_a=function(a){return!!a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds};
J_a=function(a,b){a.va.xa("sdai",{adj4t:b.toFixed(3)});a.Aa=b;b+=1;a.j=b;a.C=b;E_a(a).then(function(c){F_a(a,c)},function(){gZ(a)})};
t_a=function(a){this.j=a.K("html5_live_smoothly_extend_max_seekable_time")};
hZ=function(){this.finished=this.started=!1};
P_a=function(a){function b(e){return c.jm&&(!d.tm||!d.B.I)||"yt"!==c.Ja&&(38===d.Aa&&"books"===c.playerStyle||30===d.Aa&&"docs"===c.playerStyle||33===d.Aa&&"google-live"===c.playerStyle)?K_a(a,d,e):L_a(a,d).then(function(){iZ(a,d)},function(f){iZ(a,d,!0);
throw f;})}
var c=a.T(),d=a.getVideoData();d.isDisposed();d.loading=!0;return M_a(a)?N_a(a,d).then(function(){iZ(a,d)},function(e){e=UK(e);
if(TK(e.severity))return iZ(a,d,!0),Promise.reject(e);"onesie.response.badproxystatus"===e.errorCode&&"3"===""+e.details.st&&(O_a=!0);a.handleError(e);return b("onesie")}):b("gvi")};
M_a=function(a){var b=a.T();if(b.K("html5_disable_onesie")||!b.K("html5_onesie")||!b.K("html5_onesie_inline")&&5===a.getVisibilityState()||"yt"!==b.Ja)return!1;var c=b.Rk;if(!c||!c.j)return a.handleError(new SK("onesie.unavailable.hotconfig",{key:"0"})),!1;if(c.j.D<(0,g.GA)()&&(a.xa("okexp","1"),(c=a.Ey())&&b.K("html5_prefer_trusted_host_on_key_expiration"))){c.u=!0;var d;(b=null==(d=c.j.get(0))?void 0:CF(d.location))&&!$V(b)&&c.j.delete(0)}if(O_a)return a.xa("ost3","1"),!1;d={};return 0<Object.keys(d).length?
(d.onesie="0",a.handleError(new SK("html5.missingapi",d)),!1):!0};
Q_a=function(a){var b=BP();CP(b,a);return g.ER(b,LFa())};
N_a=function(a,b){var c,d,e,f,h,l,m,n,p,q,t,w,z,C,G,O,N,K,W,Z,Q,na,r,J,ha,X;return g.A(function(Da){if(1==Da.j)return b.fetchType="onesie",c=$Ja(b,a.getPlayerSize(),a.getVisibilityState()),d=new lY(a,c),g.y(Da,d.fetch(),2);e=Da.u;f={player_response:e};b.loading=!1;h=a.vf.Ts;if(d.zg){l=g.v(d.zg.entries());for(m=l.next();!m.done;m=l.next())n=m.value,p=g.v(n),q=p.next().value,t=p.next().value,w=q,z=t,h.j.set(w,z,180),w===b.videoId&&(C=z.Tp(),b.ZJ=C);h.qy=d}G=g.v(d.BT.entries());for(O=G.next();!O.done;O=
G.next())N=O.value,K=g.v(N),W=K.next().value,Z=K.next().value,Q=W,na=Z,h.u.set(Q,na,180);g.fM(b,f,!0);if(b.loading||dM(b))return Da.return(Promise.resolve());h.j.Df();h.u.Df();b.ZJ=[];r={};J="onesie.response";ha=0;b.errorCode?(J="auth",r.ec=b.errorCode,r.ed=b.errorDetail,r.es=b.Hm||"",ha=2):(r.successButUnplayable="1",r.disposed=""+ +b.isDisposed(),r.afmts=""+ +/adaptiveFormats/.test(e),r.cpn=b.clientPlaybackNonce);X=new SK(J,r,ha);return Da.return(Promise.reject(X))})};
L_a=function(a,b){var c,d,e,f,h,l,m,n,p,q,t;return g.A(function(w){switch(w.j){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f<e)){w.Ka(4);break}if(!(0<f)){w.Ka(5);break}return g.y(w,Nf(5E3),6);case 6:h=new g.Yz("Retrying OnePlatform request",{attempt:f}),g.AD(h);case 5:return g.ua(w,7),g.y(w,R_a(a,b),9);case 9:return w.return();case 7:l=g.xa(w);m=UK(l);n=m.errorCode;p=a.T();p.K("html5_use_network_error_code_enums")?d&&"manifest.net.badstatus"===n&&401===m.details.rc&&(d=!1,f===e-1&&(e+=1)):d&&"manifest.net.badstatus"===
n&&"401"===m.details.rc&&(d=!1,f===e-1&&(e+=1));if("auth"===n||"manifest.net.retryexhausted"===n)return w.return(Promise.reject(m));a.handleError(m);if(TK(m.severity)){w.Ka(4);break}case 3:f++;w.Ka(2);break;case 4:return q=c?"auth":"manifest.net.retryexhausted",t=c?2:1,w.return(Promise.reject(new SK(q,{backend:"op"},t)))}})};
R_a=function(a,b){function c(J){2===J.readyState&&a.Tc("ps_c")}
var d,e,f,h,l,m,n,p,q,t,w,z,C,G,O,N,K,W,Z,Q,na,r;return g.A(function(J){switch(J.j){case 1:b.fetchType="gp";d=a.T();e=g.QK(d,g.YM(b));if(!e.j){f=e.getValue();J.Ka(2);break}return g.y(J,e.j,3);case 3:f=J.u;case 2:return h=f,l=Q_a(h),m=$Ja(b,a.getPlayerSize(),a.getVisibilityState()),n=g.sR(S_a),p=g.YM(b),q=(0,g.GA)(),t=!1,w="empty",z=0,a.Tc("psns"),C={nz:c},g.y(J,g.EP(l,m,n,void 0,C),4);case 4:G=J.u;a.Tc("psnr");if(b.isDisposed())return J.return();G?"error"in G&&G.error?(t=!0,w="esf:"+G.error.message,
z=G.error.code):G.errorMetadata&&(t=!0,w="its",z=G.errorMetadata.status):t=!0;if(t)return O=0,N=((0,g.GA)()-q).toFixed(),K={},K=d.K("html5_use_network_error_code_enums")?{backend:"op",rc:z,rt:N,reason:w,has_kpt:b.Nb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.ay("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.oa?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.Ji||"",token_eq:p===g.YM(b)?"1":"0"}:{backend:"op",
rc:""+z,rt:N,reason:w,has_kpt:b.Nb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.ay("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.oa?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.Ji||"",token_eq:p===g.YM(b)?"1":"0"},W="manifest.net.connect",429===z?(W="auth",O=2):200<z&&(W="manifest.net.badstatus",400===z&&(O=2)),J.return(Promise.reject(new SK(W,K,O)));b.loading=!1;g.fM(b,{raw_player_response:G},!0);
Z=G;if(g.oK(b.T())&&Z&&Z.trackingParams){var ha=Z.trackingParams;tP().cq(ha)}if(b.errorCode)return Q={ec:b.errorCode,ed:b.errorDetail,es:b.Hm||""},J.return(Promise.reject(new SK("auth",Q,2)));if(!b.loading&&!dM(b))return na=b.isAd()?"auth":"manifest.net.retryexhausted",r=b.isAd()?2:1,J.return(Promise.reject(new SK(na,{successButUnplayable:"1",hasMedia:HM(b)?"1":"0"},r)));g.ta(J)}})};
K_a=function(a,b,c){function d(){return!0}
function e(z){z=UK(z);if(TK(z.severity))return Promise.reject(z);a.handleError(z);return!1}
var f,h,l,m,n,p,q,t,w;return g.A(function(z){switch(z.j){case 1:var C=a.T(),G=a.getPlayerSize(),O=a.getVisibilityState();a.isFullscreen();var N=window.location.search;if(38===b.Aa&&"books"===C.playerStyle)N=b.videoId.indexOf(":"),N=g.Ui("//web.archive.org/web/20230505074338/https://play.google.com/books/volumes/"+b.videoId.slice(0,N)+"/content/media",{aid:b.videoId.slice(N+1),sig:b.o1});else if(30===b.Aa&&"docs"===C.playerStyle)N=g.Ui("https://web.archive.org/web/20230505074338/https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.authUser,authkey:b.QR,eurl:C.Kc});else if(33===
b.Aa&&"google-live"===C.playerStyle)N=g.Ui("//web.archive.org/web/20230505074338/https://google-liveplayer.appspot.com/get_video_info",{key:b.videoId});else{"yt"!==C.Ja&&g.zD(Error("getVideoInfoUrl for invalid namespace: "+C.Ja));var K={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:C.Kc,ps:C.playerStyle,el:SM(b),hl:C.Ri,list:b.playlistId,agcid:b.AQ,aqi:b.adQueryId,sts:19478,lact:KC()};Object.assign(K,C.j);C.forcedExperiments&&(K.forced_experiments=C.forcedExperiments);b.oa?(K.vvt=b.oa,b.mdxEnvironment&&(K.mdx_environment=b.mdxEnvironment)):
g.YM(b)&&(K.access_token=g.YM(b));b.adFormat&&(K.adformat=b.adFormat);0<=b.slotPosition&&(K.slot_pos=b.slotPosition);b.breakType&&(K.break_type=b.breakType);null!==b.xD&&(K.ad_id=b.xD);null!==b.RP&&(K.ad_sys=b.RP);null!==b.YI&&(K.encoded_ad_playback_context=b.YI);b.GO&&(K.tpra="1");C.captionsLanguagePreference&&(K.cc_lang_pref=C.captionsLanguagePreference);C.Gb&&2!==C.Gb&&(K.cc_load_policy=C.Gb);var W=g.Tz(g.Sz(),65);g.GK(C)&&null!=W&&!W&&(K.device_captions_on="1");C.mute&&(K.mute=C.mute);b.annotationsLoadPolicy&&
2!==C.annotationsLoadPolicy&&(K.iv_load_policy=b.annotationsLoadPolicy);b.Pw&&(K.endscreen_ad_tracking=b.Pw);(W=C.Aa.get(b.videoId))&&W.rI&&(K.ic_track=W.rI);b.ya&&(K.itct=b.ya);XM(b)&&(K.autoplay="1");b.mutedAutoplay&&(K.mutedautoplay=b.mutedAutoplay);b.isAutonav&&(K.autonav="1");b.MJ&&(K.noiba="1");b.isMdxPlayback&&(K.mdx="1",K.ytr=b.mj);b.mdxControlMode&&(K.mdx_control_mode=b.mdxControlMode);b.Jp&&(K.ytrcc=b.Jp);b.RJ&&(K.utpsa="1");b.isFling&&(K.is_fling="1");b.isInlinePlaybackNoAd&&(K.mute="1");
b.vnd&&(K.vnd=b.vnd);b.forceAdsUrl&&(W=3===b.forceAdsUrl.split("|").length,K.force_ad_params=W?b.forceAdsUrl:"||"+b.forceAdsUrl);b.nh&&(K.preload=b.nh);G.width&&(K.width=G.width);G.height&&(K.height=G.height);WM(b)&&(K.splay="1");b.ypcPreview&&(K.ypc_preview="1");UM(b)&&(K.content_v=UM(b));b.tb&&(K.livemonitor=1);C.authUser&&(K.authuser=C.authUser);C.pageId&&(K.pageid=C.pageId);C.ib&&(K.ei=C.ib);C.C&&(K.iframe="1");b.contentCheckOk&&(K.cco="1");b.racyCheckOk&&(K.rco="1");C.I&&b.XJ&&(K.live_start_walltime=
b.XJ);C.I&&b.fm&&(K.live_manifest_duration=b.fm);C.I&&b.playerParams&&(K.player_params=b.playerParams);C.I&&b.cycToken&&(K.cyc=b.cycToken);C.I&&b.SP&&(K.tkn=b.SP);0!==O&&(K.vis=O);C.enableSafetyMode&&(K.enable_safety_mode="1");b.Nb&&(K.kpt=b.Nb);b.On&&(K.kids_age_up_mode=b.On);b.kidsAppInfo&&(K.kids_app_info=b.kidsAppInfo);b.zx&&(K.upg_content_filter_mode="1");C.widgetReferrer&&(K.widget_referrer=C.widgetReferrer.substring(0,128));b.Z?(G=null!=b.Z.latitudeE7&&null!=b.Z.longitudeE7?b.Z.latitudeE7+
","+b.Z.longitudeE7:",",G+=","+(b.Z.clientPermissionState||0)+","+(b.Z.locationRadiusMeters||"")+","+(b.Z.locationOverrideToken||"")):G=null;G&&(K.uloc=G);b.ym&&(K.internalipoverride=b.ym);C.embedConfig&&(K.embed_config=C.embedConfig);C.pm&&(K.co_rel="1");0<C.ancestorOrigins.length&&(K.ancestor_origins=Array.from(C.ancestorOrigins).join(","));void 0!==C.homeGroupInfo&&(K.home_group_info=C.homeGroupInfo);void 0!==C.livingRoomAppMode&&(K.living_room_app_mode=C.livingRoomAppMode);C.enablePrivacyFilter&&
(K.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(K.is_living_room_deeplink="1");b.nA&&b.Iw&&(K.clip=b.nA,K.clipt=b.Iw);b.Nw&&(K.disable_watch_next="1");b.xm&&(K.forced_by_var="1");for(var Z in K)!T_a.has(Z)&&K[Z]&&512<String(K[Z]).length&&(g.AD(Error("GVI param too long: "+Z)),K[Z]="");Z=C.La;g.pK(C)&&(Z=PD(Z.replace(/\b(?:www|web)([.-])/,"tv$1"))||C.La);C=g.Ui(Z+"get_video_info",K);N&&(C=Zna(C,N));N=C}f=N;l=(h=b.isAd())?1:3;m=0;case 2:if(!(m<l)){z.Ka(4);break}n=f;if(!(0<m)){z.Ka(5);break}return g.y(z,
Nf(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=qy(f,p);case 5:return g.y(z,U_a(b,n).then(d,e),7);case 7:if(q=z.u)return z.return();m++;z.Ka(2);break;case 4:t=h?"auth":"manifest.net.retryexhausted";w=h?2:1;if(!h&&1E-4>Math.random())try{g.AD(new g.Yz("b/152131571",btoa(f)))}catch(Q){}return z.return(Promise.reject(new SK(t,{backend:"gvi"},w)))}})};
U_a=function(a,b){function c(G){if(!a.isDisposed()){G=G?G.status:-1;var O=0,N=((0,g.GA)()-p).toFixed();N=e.K("html5_use_network_error_code_enums")?{backend:"gvi",rc:G,rt:N}:{backend:"gvi",rc:""+G,rt:N};var K="manifest.net.connect";429===G?(K="auth",O=2):200<G&&(K="manifest.net.badstatus",400===G&&(O=2));return Promise.reject(new SK(K,N,O))}}
function d(G){return c(G.xhr)}
var e,f,h,l,m,n,p,q,t,w,z,C;return g.A(function(G){if(1==G.j){a.fetchType="gvi";e=a.T();var O={};a.fN&&(O.ytrext=a.fN);(l=g.fd(O)?void 0:O)?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=qy(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=vJ(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n);0<Object.keys(m).length&&
(f.headers=m);p=(0,g.GA)();return g.y(G,GI(Gy,h,f).then(void 0,d),2)}q=G.u;if(!q||!q.responseText)return G.return(c(q));a.loading=!1;t=my(q.responseText);g.fM(a,t,!0);if(a.errorCode)return w={ec:a.errorCode,ed:a.errorDetail,es:a.Hm||""},G.return(Promise.reject(new SK("auth",w,2)));if(!a.loading&&!dM(a))return z=a.isAd()?"auth":"manifest.net.retryexhausted",C=a.isAd()?2:1,G.return(Promise.reject(new SK(z,{successButUnplayable:"1"},C)));g.ta(G)})};
iZ=function(a,b,c){c=void 0===c?!1:c;var d,e,f,h;g.A(function(l){if(1==l.j){d=a.T();if(c&&(!g.JK(d)||"embedded"!==SM(b))||b.Nw||"adunit"!==SM(b)&&(g.wK(d)||xK(d)||g.qK(d)||g.pK(d)||"WEB_CREATOR"===g.uJ(d)))return l.return();e=g.QK(d,g.YM(b));return e.j?g.y(l,e.j,3):(f=e.getValue(),l.Ka(2))}2!=l.j&&(f=l.u);h=f;return l.return(V_a(a,b,h))})};
V_a=function(a,b,c){var d,e,f,h,l;return g.A(function(m){if(1==m.j){g.ua(m,2);d=Q_a(c);var n=b.T();g.Sz();var p={context:g.aS(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===SM(b)&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);n.pm&&(p.showContentOwnerOnly=!0);b.BQ&&(p.showShortsOnly=!0);g.Tz(0,141)&&(p.autonavState=g.Tz(0,140)?"STATE_OFF":"STATE_ON");if(g.GK(n)){n=g.Tz(0,65);n=null!=n?!n:!1;
var q=!!g.Mz("yt-player-sticky-caption");p.captionsRequested=n&&q}e=p;f=g.sR(W_a);a.Tc("wn_s");return g.y(m,g.EP(d,e,f),4)}if(2!=m.j)return h=m.u,a.Tc("wn_r"),!h||"error"in h&&h.error||(l=h,g.oK(b.T())&&l.trackingParams&&(p=l.trackingParams,tP().cq(p)),g.fM(b,{raw_watch_next_response:h},!1)),g.va(m,0);g.xa(m);g.ta(m)})};
X_a=function(a){a.Tc("vir");a.Tc("ps_s");cF("vir",void 0,"video_to_ad");var b=P_a(a);b.then(function(){a.Tc("virc");cF("virc",void 0,"video_to_ad");a.Tc("ps_r");cF("ps_r",void 0,"video_to_ad")},function(){a.Tc("virc");
cF("virc",void 0,"video_to_ad")});
return b};
g.lZ=function(a,b,c,d,e,f,h,l,m,n){m=void 0===m?new g.cM(a):m;n=void 0===n?!0:n;g.aE.call(this);var p=this;this.Y=a;this.playerType=b;this.vb=c;this.UD=d;this.getVisibilityState=f;this.visibility=h;this.vf=l;this.videoData=m;this.b2=n;this.logger=new g.aW("VideoPlayer");this.ZA=new j_a(this.Y);this.pe=null;this.vz=new CY;this.Op=null;this.Ii=new MYa(this.Y,this.UD,this);this.tU=!0;this.Xa=this.Fa=null;this.yn=[];this.ep=new hZ;this.Cf=this.jD=null;this.Lq=new hZ;this.pH=null;this.oM=this.Ms=!1;this.qH=
NaN;this.playerState=new g.OO;this.tH=[];this.hA=new g.eI;this.El=new FY(this);this.mediaElement=null;this.xv=new g.Ap(this.k6,15E3,this);this.XO=this.UG=!1;this.Tv=NaN;this.WE=!1;this.tK=0;this.uK=new g.Ap(this.aP,4500,this);this.nC=!1;this.yG=NaN;this.wP=new oS(new Map([["bufferhealth",function(){var q=p.yd;return q.mediaElement?LO(q.mediaElement):0}],
["bandwidth",function(){return p.DL()}],
["networkactivity",function(){return p.Y.schedule.ea}],
["livelatency",function(){return p.isAtLiveHead()&&p.Yc()?Y_a(p):NaN}],
["rawlivelatency",function(){return Y_a(p)}]]));
this.DC=0;this.loop=!1;this.playbackRate=1;this.eV=0;this.yd=new w_a(this);this.DS=!1;this.rH=[];this.SM=this.QW=0;this.VO=this.FY=!1;this.Mt=this.Zq=0;this.gK=new g.Ap(this.C3,0,this);this.Ng=this.jd=null;this.PV=new g.Ap(this.g2,0,this);this.zH=new g.Ap(this.mX,3E4,this);this.b5=[this.hA,this.gK,this.xv,this.zH,this.uK,this.wP,this.PV];this.Ag=function(){var q=p.yc;q.provider.Y.Gf||3===q.provider.va.getVisibilityState()||(q.provider.Y.Gf=!0);WZa(q);var t=q.B;t.D&&0>t.j&&3!==t.provider.va.getVisibilityState()&&
cZa(t);q.qoe&&(q=q.qoe,q.Ja&&0>q.u&&q.provider.Y.Gf&&vZa(q));p.Fa&&jZ(p);p.Y.Vn&&!p.videoData.backgroundable&&p.mediaElement&&!p.uh()&&(p.isBackground()&&p.mediaElement.NE()?(p.xa("bgmobile",{suspend:1}),p.Cn(!0,!0)):p.isBackground()||kZ(p)&&p.xa("bgmobile",{resume:1}));p.K("html5_log_tv_visibility_playerstate")&&g.wK(p.Y)&&p.xa("vischg",{vis:p.getVisibilityState(),ps:p.playerState.state.toString(16)})};
this.ze={bp:function(q){p.bp(q)},
J8a:function(q){p.pe=q},
A7a:function(){return p.yc}};
this.Wi=new WY(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,t){q!==g.WD("endcr")||g.UN(p.playerState,32)||rW(p);
e(q,t,p.playerType)});
g.I(this,this.Wi);g.I(this,this.yd);Z_a(this,m);this.videoData.subscribe("dataupdated",this.U7,this);this.videoData.subscribe("dataloaded",this.LK,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.xa,this);this.videoData.subscribe("ctmpstr",this.JO,this);!this.yc||this.yc.isDisposed();this.yc=new g.VY(new SZa(this.videoData,this.Y,this));GRa(this.Ag);this.visibility.subscribe("visibilitystatechange",this.Ag)};
CI=function(a){return a.K("html5_not_reset_media_source")&&!a.Nl()&&!a.videoData.isLivePlayback&&g.TM(a.videoData)};
Z_a=function(a,b){if(2===a.playerType||a.Y.Xn)b.iT=!0;var c=dya(b.le,b.Bx,a.Y.C,a.Y.I);c&&(b.adFormat=c);2===a.playerType&&(b.Ul=!0);if(a.isFullscreen()||a.Y.C)c=g.Mz("yt-player-autonavstate"),b.autonavState=c||(a.Y.C?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&$_a(a,b.endSeconds)};
b0a=function(a){if(a.videoData.Wa){var b=a.vf.Pc();a.videoData.Nv=a.videoData.Nv||(null==b?void 0:b.GL());a.videoData.Vv=a.videoData.Vv||(null==b?void 0:b.JL())}if(Vza(a.videoData)||!cN(a.videoData))b=a.videoData.errorDetail,a.Mg(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Hm||void 0);1===a.playerType&&mZ.isActive()&&a.zH.start();a.videoData.Xi=a.getUserAudio51Preference();a.K("html5_generate_content_po_token")&&a0a(a)};
XN=function(a){return a.mediaElement&&a.mediaElement.Zt()?a.mediaElement.ub():null};
nZ=function(a){if(a.videoData.De())return!0;a.Mg("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.pW=function(a,b){(b=void 0===b?!1:b)||VZa(a.yc);a.Ms=b;!nZ(a)||a.ep.Ns()?g.wK(a.Y)&&a.videoData.isLivePlayback&&a.ep.Ns()&&!a.ep.finished&&!a.Ms&&a.LK():(a.ep.start(),b=a.yc,g.qW(b.provider),b.qoe&&qZa(b.qoe),a.LK())};
c0a=function(a){var b=a.videoData;X_a(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=UK(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Mg(c.errorCode,2,unescape(a.videoData.errorReason),RK(c.details),a.videoData.errorDetail,a.videoData.Hm||void 0):a.handleError(c))})};
PRa=function(a,b){a.jd=b;a.Fa&&FXa(a.Fa,new g.uY(b))};
e0a=function(a){if(!g.UN(a.playerState,128))if(a.videoData.isLoaded(),4!==a.playerType&&(a.yn=g.Db(a.videoData.Ga)),HM(a.videoData)){a.vb.tick("bpd_s");oZ(a).then(function(){a.vb.tick("bpd_c");if(!a.isDisposed()){a.Ms&&(a.lc(QO(QO(a.playerState,512),1)),kZ(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&$_a(a,c.endSeconds);a.ep.finished=!0;pZ(a,"dataloaded");a.Lq.Ns()&&d0a(a);bZa(a.Ii,a.Cf)}});
a.K("html5_log_media_perf_info")&&a.xa("loudness",{v:a.videoData.Ri.toFixed(3)},!0);var b=eAa(a.videoData);b&&a.xa("playerResponseExperiment",{id:b},!0);a.sK()}else pZ(a,"dataloaded")};
oZ=function(a){qZ(a);a.Cf=null;var b=l_a(a.Y,a.videoData,a.uh());a.jD=b;a.jD.then(function(c){f0a(a,c)},function(c){a.isDisposed()||(c=UK(c),a.visibility.isBackground()?(rZ(a,"vp_none_avail"),a.jD=null,a.ep.reset()):(a.ep.finished=!0,a.Mg(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",RK(c.details))))});
return b};
GY=function(a){oZ(a).then(function(){return kZ(a)});
g.VO(a.playerState)&&a.playVideo()};
f0a=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()){a.Cf=b;y_a(a.yd,a.Cf);if(a.videoData.isLivePlayback){var c=FSa(a.vf.Ts,a.videoData.videoId)||a.Fa&&!isNaN(a.Fa.oa);c=a.K("html5_onesie_live")&&c;0<a.videoData.Ub&&!mM(a.videoData)||c||a.seekTo(a.qe(),{xe:"videoplayer_playbackData"})}a.videoData.C.j?a.Fa?g.AD(Error("Duplicated Loader")):(c=g.jJ(a.Y.experiments,"html5_onesie_defer_content_loader_ms"))&&g.wb(a.yn,"ad")&&FSa(a.vf.Ts,a.videoData.w1)?g.yy(function(){a.isDisposed()||a.Fa||
g0a(a)},c):g0a(a):!a.videoData.C.j&&ZM(a.videoData)&&a.bH(new uX(a.videoData.videoId||"",4));
sZ(a);SYa(b).then(function(){a.bA();jZ(a)})}};
h0a=function(a){a.mediaElement&&a.mediaElement.Fx();g.pW(a);if(nZ(a)&&!g.UN(a.playerState,128)){a.Lq.Ns()||(a.Lq.start(),a.videoData.Pn?a.lc(QO(a.playerState,4)):a.lc(QO(QO(a.playerState,8),1)));var b=a.vf.Pc();b=b&&2===b.getPlayerType();a.K("html5_suspend_for_preroll_join_latency")&&b&&1===a.getPlayerType()&&!g.UN(a.playerState,512)&&a.lc(QO(a.playerState,512));d0a(a)}};
d0a=function(a){a.isDisposed();if(!a.Lq.finished&&a.ep.finished&&!g.UN(a.playerState,128)&&!a.yn.length){if(!a.Wi.started){var b=a.Wi;b.started=!0;b.Nn()}if(!a.Mo()){a.Fa&&(b=a.Fa.timing,a.oM=!!b.u&&!!b.J);a.Lq.finished||(a.Lq.finished=!0);b=a.K("html5_onesie_live")&&a.Fa&&!isNaN(a.Fa.oa);!a.videoData.isLivePlayback||0<a.videoData.Ub&&!mM(a.videoData)||b||(a.seekTo(Infinity,{xe:"videoplayer_readying"}),a.isBackground()&&(a.XO=!0));b=a.yc;if(b.qoe){b=b.qoe;b.provider.videoData.Rn&&KY(b,b.provider.videoData.Rn);
if(b.provider.videoData.isLivePlayback){var c=b.provider.videoData.j;mM(b.provider.videoData)&&KY(b,"manifestless");c&&RI(c)&&KY(b,"live-segment-"+RI(c).toFixed(1))}$M(b.provider.videoData)&&KY(b,"sabr");"yt"!==b.provider.Y.Ja&&(b.j.len=[b.provider.videoData.lengthSeconds.toFixed(2)]);b.provider.videoData.cotn&&!ZM(b.provider.videoData)&&b.HH(!0);b.provider.Y.Qd()&&(c=lRa())&&b.xa("cblt",{m:c})}a.ma("playbackready",a);YE("pl_c",a.vb.timerName)||(a.vb.tick("pl_c"),cF("pl_c",void 0,"video_to_ad"));
a.K("html5_remove_deprecated_ticks")||YE("pbr",a.vb.timerName)||(a.vb.tick("pbr"),cF("pbr",void 0,"video_to_ad"))}}};
rW=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.mediaElement&&a.mediaElement.pause();a.lc(b?new g.OO(14):new g.OO)};
$_a=function(a,b){a.Op&&i0a(a);a.Op=new g.UD(1E3*b,0x7ffffffffffff);a.Op.namespace="endcr";a.addCueRange(a.Op)};
i0a=function(a){a.removeCueRange(a.Op);a.Op=null};
j0a=function(a,b,c,d){a.videoData.u=c;d&&rY(a,b,d);d=g.hT(a);a.yc.gD(new LYa(a.videoData,c,b,d?d.itag:""));c=a.Ii;c.B=0;c.j=0;a.ma("internalvideoformatchange",a.videoData,"m"===b)};
g.hT=function(a){var b=tZ(a);return iF(b)||!a.Cf?null:g.sb(a.Cf.j.videoInfos,function(c){return b.C(c)})};
rY=function(a,b,c){if(c!==a.videoData.D){var d=!a.videoData.D;a.videoData.D=c;"m"!==b&&(b=d?"i":"a");a.yc.TC(new LYa(a.videoData,c,b,""));d||a.ma("internalaudioformatchange",a.videoData,"m"===b)}};
sY=function(a,b){b&&a.Ld(new SK("qoe.restart",b));a.lc(QO(a.playerState,2048));uZ(a);b=a.videoData.j&&qF(a.videoData.j);var c=a.mediaElement&&a.mediaElement.isView();b||c?(a.Fa&&uXa(a.Fa),EY(a)):(kZ(a),g.VO(a.playerState)&&a.playVideo())};
tZ=function(a){if(a.Cf){var b=a.Ii;var c=a.Cf;a=a.Ou();if(b.va.Cs().isInline())var d=bM;else b.K("html5_exponential_memory_for_sticky")?d=.5>cK(b.Y.uf,"sticky-lifetime")?"auto":jF[VI()]:d=jF[VI()],d=g.hF("auto",d,!1,"s");if(iF(d)){d=NYa(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.v(f.videoInfos),l=h.next();!l.done;l=h.next()){l=l.value;var m=void 0;if(null==(m=l.j)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;loa()&&!g.wK(b.Y)&&yF(c.j.videoInfos[0])&&
(f=Math.min(f,g.gF.large));d=e.call(d,new fF(0,f,!1,"o"));e=d.compose;f=4320;!b.Y.u||g.oK(b.Y)||b.Y.K("hls_for_vod")||b.Y.K("mweb_remove_360p_cap")||(f=g.gF.medium);(h=g.jJ(b.Y.experiments,"html5_default_quality_cap"))&&c.j.j&&!c.videoData.Ji&&!c.videoData.Nd&&(f=Math.min(f,h));h=g.jJ(b.Y.experiments,"html5_random_playback_cap");l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,h));if(l=h=g.jJ(b.Y.experiments,"html5_hfr_quality_cap"))a:{l=c.j;if(l.j)for(l=g.v(l.videoInfos),m=l.next();!m.done;m=
l.next())if(32<m.value.video.fps){l=!0;break a}l=!1}l&&(f=Math.min(f,h));(h=g.jJ(b.Y.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=$Ya(b,c,f);d=e.call(d,new fF(0,4320===f?0:f,!1,"d")).compose(ZYa(b)).compose(aZa(b,c.videoData,c)).compose(YYa(b,c)).compose(QYa(b,c));if(!b.K("html5_ignore_ustreamer_cap_for_drm")||iF(a))d=d.compose(RYa(b,c))}else b.K("html5_perf_cap_override_sticky")&&(d=d.compose(YYa(b,c))),b.K("html5_ustreamer_cap_override_sticky")&&(d=d.compose(RYa(b,
c)));d=d.compose(QYa(b,c));b=c.videoData.Ax.compose(d).compose(c.videoData.YR).compose(a)}else b=bM;return b};
XWa=function(a){var b=a.Ii;a=a.videoData;var c=ZYa(b);b.K("html5_disable_client_autonav_cap_for_onesie")||c.compose(aZa(b,a));return c};
g.k0a=function(a,b,c,d){a.videoData.Ax=b;if(a.Cf&&c){c=a.Ii;var e=a.Cf;if(e.j.j){var f=VI(),h=e.j.videoInfos[0].video.j;if(!(f>h&&0!==h&&b.j===h)){var l;f=PYa(c,null==(l=e.j)?void 0:l.videoInfos);l=c.va.getPlaybackRate();1<l&&f&&(l=Swa(c.Y.D,e.j.videoInfos,l),0!==b.j&&l<b.j&&c.va.setPlaybackRate(1));var m,n;e=(null==(m=e.videoData.u)?void 0:null==(n=m.video)?void 0:n.j)||0;g.Lz("yt-player-quality",{quality:g.gF[kF(b)],previousQuality:e},31104E3);c.Y.schedule.policy.B=480<=VI();if(c.K("html5_exponential_memory_for_sticky")){b=
c.Y.uf;m=1;var p=void 0===p?!1:p;uxa(b,"sticky-lifetime");b.values["sticky-lifetime"]&&b.fq["sticky-lifetime"]||(b.values["sticky-lifetime"]=0,b.fq["sticky-lifetime"]=0);p&&.0625<cK(b,"sticky-lifetime")&&(m=2*b.fq["sticky-lifetime"]);b.values["sticky-lifetime"]+=1*Math.pow(2,b.j/m);b.fq["sticky-lifetime"]=m;b.C.start()}if(c.K("html5_perf_cap_override_sticky"))if(c.K("html5_perserve_av1_perf_cap")){p=WI();c=g.v(Object.keys(p));for(b=c.next();!b.done;b=c.next())b=b.value,0!==b.indexOf("1")&&(p[b]=0);
g.Lz("yt-player-performance-cap",p,604800)}else g.Nz("yt-player-performance-cap")}}}a.Fa&&(p=a.Fa,yT(p.policy)||(p.ye.oa=d||""));sZ(a)};
a0a=function(a){a.videoData.videoId?a.vf.BL(a.videoData.videoId).then(function(b){a.videoData.A6a=b}):a.xa("pomvid",{})};
sZ=function(a){if(!a.isDisposed()&&!g.UN(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)jZ(a);else{var b=tZ(a),c=a.videoData;a:{var d=a.videoData.rd;if(b.j){for(var e=g.v(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.qh(),l=g.gF[h.video.quality];if((!b.B||"auto"!==h.video.quality)&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.Ya=d;j0a(a,b.reason,l0a(a,a.videoData.Ya))}if(a.K("html5_check_unstarted")?g.VO(a.playerState):a.Yc())a.yd.Wa=!1,a.playVideo()}};
jZ=function(a){if(a.videoData.C&&a.videoData.C.j){var b=tZ(a);if(a.Fa&&(a=a.Fa,!a.isDisposed()))if(yT(a.policy)){var c=a.ya;void 0!==c.D&&b.equals(c.D)||(c=a.ya,"m"===b.reason?b.isLocked()&&EVa(c,b.j):c.videoInfos=c.C,c.D=b,"m"===b.reason?sY(a.va,{reattachOnConstraint:"u"}):tY(a))}else if(!pTa(a.ye,b)&&a.videoTrack){var d=a.ye.B;xXa(a,qTa(a.ye,b));pY(a);c=oX(a.ye)&&"m"===b.reason&&a.ye.Z;var e=a.policy.jm&&"l"===b.reason&&VX(a.videoTrack);b=d.j>b.j&&"b"===b.reason;d=a.ye.ib&&!wI();c||e||b||d?sY(a.va,
{reattachOnConstraint:c?"u":e?"drm":d?"codec":"perf"}):tY(a)}}};
m0a=function(a){var b;return!!(a.K("html5_native_audio_track_switching")&&g.xA&&(null==(b=a.videoData.u)?0:IH(b)))};
n0a=function(a){if(!m0a(a))return!1;var b;a=null==(b=a.mediaElement)?void 0:b.audioTracks();return!!(a&&1<a.length)};
p0a=function(a){var b=o0a(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Ic.getName()===b})};
o0a=function(a){var b;if(a=null==(b=a.mediaElement)?void 0:b.audioTracks())for(b=0;b<a.length;++b){var c=a[b];if(c.enabled)return c.label}};
g0a=function(a){for(var b=a.videoData.j,c=g.v(Object.entries({cpn:a.videoData.clientPlaybackNonce,c:a.Y.j.c,cver:a.Y.j.cver})),d=c.next();!d.done;d=c.next()){var e=g.v(d.value);d=e.next().value;e=e.next().value;for(var f=g.v(Object.values(b.j)),h=f.next();!h.done;h=f.next())Qua(h.value.u,d,e);f=void 0;null==(f=b.Ga)||Qua(f,d,e)}c=a.Y;d=a.videoData;b=new g.LLa(c);e=KLa({hasSubfragmentedFmp4:d.hasSubfragmentedFmp4,Oo:d.Oo});b.I=e;b.ea=d.maxReadAheadMediaTimeMs/1E3||b.ea;e=c.schedule;e.B.aj()===e.policy.u?
b.Za=10:b.Za=d.minReadAheadMediaTimeMs/1E3||b.Za;b.Rf=d.readAheadGrowthRateMs/1E3||b.Rf;Km&&(b.tb=41943040);b.Gc=!FI();g.wK(c)||!FI()?(e=c.experiments,b.Z=8388608,b.Ga=524288,b.fm=5,b.ob=2097152,b.Ja=1048576,b.jo=1.5,b.j.K("html5_enable_path_probe_on_tv")||(b.Rn=!1),b.dc=4587520,Wy()&&(b.dc=786432),b.J*=1.1,b.V*=1.1,b.Bc=!0,b.tb=b.Z,b.Kc=b.Ga,b.le=e.kb("persist_disable_player_preload_on_tv")||e.kb("persist_disable_player_preload_on_tv_for_living_room")||!1):c.u&&(b.J*=1.3,b.V*=1.3);g.hI&&Sy("crkey")&&
(e="CHROMECAST/ANCHOVY"===c.j.cmodel,b.Z=20971520,b.Ga=1572864,e&&(b.dc=812500,b.Ud=1E3,b.Vv=5,b.Ja=2097152));g.iJ&&(b.Bc=!0);c.supportsGaplessAudio()||(b.jl=!1);fK&&(b.Ub=!0);b.rd=c.K("html5_peak_shave");"onesie"===d.fetchType&&c.K("html5_disable_peak_shave_for_onesie")&&(b.rd=!1);var l;e=null==(l=d.j)?void 0:qF(l);if(mM(d)){b.Wd=!0;b.hk=!0;b.Nb=!0;b.Ro=!0;b.Do=!0;if("ULTRALOW"===d.latencyClass||"LOW"===d.latencyClass&&!c.K("html5_disable_low_pipeline"))b.pm=2,b.wm=4;b.Lp=d.defraggedFromSubfragments;
if(d.mf||c.K("html5_publish_all_cuepoints"))b.Zn=!0;g.JM(d)&&(b.jc=!1);b.hm=g.IK(c)}b.I.j=b.useUmp;d.isAd()&&(b.Uc=0,b.Vf=0,b.oi=g.jJ(c.experiments,"html5_min_startup_buffered_ad_media_duration_secs"));AM&&(b.Wa=!0,c.K("html5_aggressive_timeout_for_streaming_xhr")&&(b.Ud=400,b.ym=10,b.Yn=1,b.Sn=!0,b.Ti=5,b.tm=2,b.oh=3,b.Zi=1.4),c.K("html5_streaming_xhr_expand_request_size")&&(b.Ja=10485760,b.uf=3));b.hd=c.K("html5_enable_subsegment_readahead_v3")||c.K("html5_ultra_low_latency_subsegment_readahead")&&
"ULTRALOW"===d.latencyClass;b.ib=c.Qd();b.D=b.ib&&(/^rq[a-f]/.test(d.clientPlaybackNonce)||c.Qd());dz()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(c.j.cmodel)&&!c.K("html5_disable_move_pssh_to_moov")&&e&&(b.Bc=!1);f=0;c.K("html5_live_use_alternate_bandwidth_window_sizes")&&(f=c.schedule.policy.j,d.isLivePlayback&&(f=g.jJ(c.experiments,"ULTRALOW"===d.latencyClass?"html5_live_ultra_low_latency_bandwidth_window":d.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||
f));l=c.schedule;l.ya.j=mM(d)?.5:0;if(!l.policy.C&&f&&(l=l.B,f=Math.round(f*l.resolution),f!==l.j)){h=Array(f);var m=Math.min(f,l.B?l.j:l.u),n=l.u-m;0>n&&(n+=l.j);for(var p=0;p<m;++p)h[p]=l.values[(n+p)%l.j];for(;p<f;++p)h[p]=Infinity;l.j=f;l.values=h;l.u=m%f;l.B=m===f;l.D=!0;l.I=nxa(l)}b.On=d.isLivePlayback;switch(BM(d)){case 21530001:b.Sk=c.K("html5_live_smoothly_extend_max_seekable_time");b.hd=!0;"LOW"===d.latencyClass?b.Gb=g.jJ(c.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===
d.latencyClass&&(b.Gb=g.jJ(c.experiments,"html5_jumbo_ull_subsegment_readahead_target"));b.Pn=!0;break;case 2153E4:b.hd=!1}d.Zc()&&(b.gm=1.3);b.Ub=b.Ub||d.NC;b.C=aN(d);b.Ya=d.Wa||b.C;c.Qd()&&(b.Pa=!0);d.Wa&&!e&&(b.Yi=!0);d.Wa&&d.isAd()&&(b.J*=1.6,b.V*=1.6);ZM(d)&&(b.u=d.videoId,b.Yk=!0,b.wq=4,d.xq&&0<d.xq.length&&(b.ke=d.xq));b.jm=d.Sk;b.ya=ZI(c,{},d.C||void 0);b.La=xM(d)&&g.qK(c);$M(d)&&(b.B=!0,b.Gf&&(b.hk=!0));b.Vd=b.B&&c.K("html5_sabr_live");l=480<=VI();if(d=g.jJ(c.experiments,"html5_request_sizing_multiplier"))b.oo=
d;uF(c.D,vF.BITRATE)&&(b.dc=NaN);c.D.B&&(b.ol="; "+vF.EXPERIMENTAL.name+"=allowed");l&&(b.Hj=0);c.K("debug_html5_random_stun_format")&&(b.Xi=!0);c.K("html5_log_audio_abr")&&(b.nh=!0);c=a.getAudioTrack();c=c.Ic.isDefault?void 0:c;a.vz.Df();a:{l=a.vf.Ts;if(d=a.videoData.videoId)if(e=l.j.get(d)){l.j.remove(d);l=e;break a}l=void 0}a.Fa=new g.oY(a,a.Y.schedule,b,a.videoData.j,a.videoData.C,tZ(a),c,a.videoData.enableServerStitchedDai,l,a.videoData.Ja);b=q0a(a)?!0:a.Ms&&g.wK(a.Y)&&a.videoData.isLivePlayback;
a.Fa.initialize(a.getCurrentTime(),tZ(a),b);a.videoData.probeUrl&&(a.Fa.Ja=a.videoData.probeUrl);if(a.yn.length||a.Ms)a.videoData.cotn||vZ(a,!1);A_a(a.yd,a.Fa);a.jd&&FXa(a.Fa,new g.uY(a.jd));a.Ng&&a.Fa.cI(a.Ng);g.bN(a.videoData)&&(b=a.Fa,b.policy.Uf=b.policy.sx,a.K("html5_offline_retry_index_db_read")&&(Oya=!0))};
qZ=function(a){a.Fa&&(a.Fa.dispose(),a.Fa=null,A_a(a.yd,null));CI(a)?r0a(a):uZ(a)};
r0a=function(a){if(a.Xa)if(a.jy(),a.Xa.D)try{a.Y.Qd()&&a.xa("rms",{l:"vprms",sr:CI(a),rs:EI(a.Xa)});a.Xa.clear();var b;null!=(b=a.mediaElement)&&(b.u=a.Xa);a.Xa=null}catch(c){b=new g.Yz("Error while clearing Media Source in VideoPlayer: "+c.name+", "+c.message),b=UK(b),a.handleError(b),uZ(a)}else uZ(a)};
uZ=function(a){a.Xa&&(Lva(a.Xa),a.jy(),a.Xa.dispose(),a.Xa=null)};
s0a=function(a){if(a.Xa)return a.Xa.B;a:{try{g.Uy()&&a.videoData.GM()&&wCa(a.mediaElement);var b=a.mediaElement.xs(a.KL(),a.HL())}catch(d){if(EYa(a.El,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.Mg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}vRa(a,b)}var c;return(null==(c=a.xs())?void 0:c.B)||null};
vRa=function(a,b){function c(d){try{if(a.Xa&&(!d||a.Xa===d)){var e=a.getDuration();!e&&mM(a.videoData)&&(e=25200);a.Xa.isView?(d=e,d>a.Xa.getDuration()&&a.Xa.Tk(d)):a.Xa.Tk(e);var f=a.Fa,h=a.Xa;f.policy.oa&&(f.policy.Aa&&f.xa("loader",{setsmb:0}),f.wk(),f.policy.oa=!1);vXa(f);if(!DI(h)){var l=cX(f.videoTrack),m=cX(f.audioTrack),n=(l?l.info.j:f.videoTrack.j).info,p=(m?m.info.j:f.audioTrack.j).info,q=f.policy.ol,t=n.mimeType+(void 0===q?"":q),w=p.mimeType,z=n.Mb,C=p.Mb,G,O=null==(G=h.Xa)?void 0:G.addSourceBuffer(w),
N,K="fakesb"===t.split(";")[0]?void 0:null==(N=h.Xa)?void 0:N.addSourceBuffer(t);h.Cg&&(h.Cg.webkitSourceAddId("0",w),h.Cg.webkitSourceAddId("1",t));var W=new vI(O,h.Cg,"0",DH(w),C,!1),Z=new vI(K,h.Cg,"1",DH(t),z,!0);Jva(h,W,Z)}MX(f.videoTrack,h.u||null);MX(f.audioTrack,h.j||null);f.Xa=h;f.Xa.C=!0;f.resume();g.bE(h.j,f.Ga,f);g.bE(h.u,f.Ga,f);try{f.gf()}catch(Q){g.zD(Q)}a.ma("mediasourceattached")}}catch(Q){g.AD(Q),a.handleError(new SK("fmt.unplayable",{msi:"1",ename:Q.name},1))}}
t0a(a);a.Xa=b;CI(a)&&"open"===EI(a.Xa)?c(a.Xa):Iva(a.Xa,c)};
t0a=function(a){if(a.Fa){var b=a.getCurrentTime()-a.Ed();a.K("html5_skip_loader_media_source_seek")&&a.Fa.getCurrentTime()===b||a.Fa.seek(b,{}).Zj(function(){})}else g0a(a)};
EY=function(a,b){b=void 0===b?!1:b;var c,d,e;return g.A(function(f){if(1==f.j){a.Fa&&a.Fa.Tu();a.Fa&&a.Fa.isDisposed()&&qZ(a);if(a.K("html5_enable_vp9_fairplay")&&a.Nl()&&null!=(c=a.videoData.j)){var h=c,l;for(l in h.j)h.j.hasOwnProperty(l)&&(h.j[l].j=null,h.j[l].C=!1)}a.lc(QO(a.playerState,2048));a.ma("newelementrequired");return b?g.y(f,oZ(a),2):f.Ka(2)}a.videoData.Zc()&&(null==(d=a.Fa)?0:d.oa)&&(e=a.isAtLiveHead())&&kM(a.videoData)&&a.seekTo(Infinity,{xe:"videoPlayer_getNewElement"});g.UN(a.playerState,
8)&&a.playVideo();g.ta(f)})};
BRa=function(a,b){a.xa("newelem",{r:b});EY(a)};
u0a=function(a){a.vb.C.AN();g.UN(a.playerState,32)||(a.lc(QO(a.playerState,32)),g.UN(a.playerState,8)&&a.pauseVideo(!0),a.ma("beginseeking",a));a.wc()};
ZRa=function(a){g.UN(a.playerState,32)?(a.lc(SO(a.playerState,16,32)),a.ma("endseeking",a)):g.UN(a.playerState,2)||a.lc(QO(a.playerState,16));a.vb.C.FN(a.videoData,g.UO(a.playerState))};
pZ=function(a,b){a.ma("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
v0a=function(a){for(var b=g.v("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.hA.S(a.mediaElement,c.value,a.fO,a);a.Y.ql&&a.mediaElement.Zt()&&(a.hA.S(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.r5,a),a.hA.S(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.s5,a))};
x0a=function(a){window.clearInterval(a.qH);w0a(a)||(a.qH=g.zy(function(){return w0a(a)},100))};
w0a=function(a){var b=a.mediaElement;b&&a.UG&&!a.videoData.Za&&!YE("vfp",a.vb.timerName)&&2<=b.uj()&&!b.Ph()&&0<qI(b.Mh())&&a.vb.tick("vfp");return(b=a.mediaElement)&&!a.videoData.Za&&0<b.getDuration()&&(!YE("pbp",a.vb.timerName)&&b.Hp()&&2<=b.uj()&&0<qI(b.Mh())&&a.vb.tick("pbp"),b=b.getCurrentTime(),XY(a.ZA,b))?(tRa(a),!0):!1};
tRa=function(a){window.clearInterval(a.qH);a.xv.stop();a.videoData.Za=!0;a.Y.On=!0;a.Y.jc=0;var b=a.El;if(b.videoData.u){var c=b.j.D;c.u.delete(b.videoData.u.Mb);c.j=!0}b.u.stop();a.Y.gm=a.videoData.kD;a.videoData.FQ=!0;y0a(a);g.UN(a.playerState,8)&&a.lc(RO(a.playerState,65));a.Ms=!1;b=a.yc;b.j&&KZa(b.j);b=b.B;c=g.qW(b.provider);0>b.j&&(b.j=c,b.delay.start());b.u=c;b.C=c;g.Bp(a.uK);a.ma("playbackstarted");g.fA()&&((a=g.La("yt.scheduler.instance.clearPriorityThreshold"))?a():gA(0))};
y0a=function(a){var b=a.getCurrentTime(),c=a.vf.Jd();!YE("pbs",a.vb.timerName)&&uE.measure&&uE.getEntriesByName&&(uE.getEntriesByName("mark_nr")[0]?Jta("mark_nr"):Jta());c.videoId&&a.vb.info("docid",c.videoId);c.eventId&&a.vb.info("ei",c.eventId);c.clientPlaybackNonce&&!a.K("web_player_early_cpn")&&a.vb.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.vb.info("start",c.startSeconds.toString());if(a.mediaElement&&a.mediaElement.Hp())if(a.Y.experiments.kb("web_csi_via_jspb")){var d=new xx;L(d,
6,!0);var e=new zx;Ch(e,xx,22,d);g.iy(SE)(e,a.vb.timerName)}else a.vb.info("paused",1);a.Y.experiments.kb("web_csi_via_jspb")?(d=new xx,c.u?L(d,1,Number(c.u.itag)):L(d,1,-1),e=new zx,Ch(e,xx,22,d),g.iy(SE)(e,a.vb.timerName)):c.u?a.vb.info("fmt",c.u.itag):a.vb.info("fmt","-1");c.nh&&(e=a.oM?2:1,a.Y.experiments.kb("web_csi_via_jspb")?(d=new xx,L(d,8,e),e=new zx,Ch(e,xx,22,d),g.iy(SE)(e,a.vb.timerName)):a.vb.info("yt_pre",String(a.oM?2:1)));a.isFullscreen()&&a.vb.info("yt_fs","1");ZE({liveStreamMode:z0a[FM(c)]},
a.vb.timerName);a.vb.info("cmt",b.toFixed(3));if(a.Fa){b=a.Fa.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.J&&(c=window.performance.getEntriesByName(b.J),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.u&&(c=window.performance.getEntriesByName(b.u),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 f in b)b.hasOwnProperty(f)&&a.vb.tick(f,b[f])}};
A0a=function(a){a.yc.Ie();if(kM(a.videoData)&&Date.now()>a.eV+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&OI(a.videoData.j))){var b=a.yc;if(b.qoe){b=b.qoe;var c=b.provider.va.WB(),d=g.qW(b.provider);mZa(b,d,c);c=c.B;isNaN(c)||g.IY(b,d,"e2el",[c.toFixed(3)])}}g.IK(a.Y)&&a.xa("rawlat",{l:qS(a.wP,"rawlivelatency").toFixed(3)});a.eV=Date.now()}a.videoData.u&&IH(a.videoData.u)&&(b=XN(a))&&b.videoHeight!==a.SM&&(a.SM=b.videoHeight,j0a(a,"a",l0a(a,a.videoData.Ya)))};
l0a=function(a,b){if("auto"===b.j.video.quality&&IH(b.qh())&&a.videoData.rd)for(var c=g.v(a.videoData.rd),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.SM&&"auto"!==d.j.video.quality)return d.qh();return b.qh()};
Y_a=function(a){if(!kM(a.videoData))return NaN;var b=0;a.Fa&&a.videoData.j&&(b=mM(a.videoData)?a.Fa.hF.aj()||0:a.videoData.j.Z);return Date.now()/1E3-a.Lf()-b};
C0a=function(a){a.mediaElement&&a.mediaElement.uh()&&(a.yG=(0,g.GA)());a.Y.oo?g.yy(function(){B0a(a)},0):B0a(a)};
B0a=function(a){var b;if(null==(b=a.Xa)||!b.Ml()){if(a.mediaElement)try{a.pH=a.mediaElement.playVideo()}catch(d){rZ(a,"err."+d)}if(a.pH){var c=a.pH;c.then(void 0,function(d){if(!(g.UN(a.playerState,4)||g.UN(a.playerState,256)||a.pH!==c||d&&"AbortError"===d.name&&d.message&&d.message.includes("load"))){var e="promise";d&&d.name&&(e+=";m."+d.name);rZ(a,e);a.DS=!0;a.videoData.RI=!0}})}}};
rZ=function(a,b){g.UN(a.playerState,128)||(a.lc(SO(a.playerState,1028,9)),a.xa("dompaused",{r:b}),a.ma("onAutoplayBlocked"))};
kZ=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if(null==(b=a.videoData.C)?0:b.j){c=s0a(a);var d;null==(d=a.Fa)||d.resume()}else qZ(a),a.videoData.Ya&&(c=a.videoData.Ya.JA());b=c;d=a.mediaElement.NE();c=!1;d&&d.equals(b)||(D0a(a,b),c=!0);g.UN(a.playerState,2)||(b=a.yd,b.D||!(0<b.C)||b.mediaElement&&0<b.mediaElement.getCurrentTime()||b.seekTo(b.C,{xe:"seektimeline_resumeTime"}));a:if(b=c,g.DM(a.videoData)&&a.mediaElement)if((d=a.videoData.I)&&a.mediaElement.Zt()){var e=a.mediaElement.ub();
if(a.pe)if(e!==a.pe.element)wZ(a);else if(b&&"fairplay"===d.flavor&&!Vy())wZ(a);else break a;if(a.K("html5_report_error_for_unsupported_tvos_widevine")&&Vy()&&"widevine"===d.flavor)a.Mg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{a.pe=new uYa(e,a.videoData,a.Y);a.pe.subscribe("licenseerror",a.aH,a);a.pe.subscribe("qualitychange",a.i6,a);a.pe.subscribe("heartbeatparams",a.YC,a);a.pe.subscribe("keystatuseschange",a.bp,a);a.pe.subscribe("ctmp",a.xa,a);b=g.v(a.vz.keys);
for(d=b.next();!d.done;d=b.next())d=a.vz.get(d.value),a.pe.mz(d);a.K("html5_eme_loader_sync")||a.vz.Df()}}else a.Mg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1");return c};
D0a=function(a,b){a.vb.tick("vta");cF("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&C_a(a.yd,a.getCurrentTime());a.mediaElement.Fx(b);a.Xa&&gA(4);!a.videoData.Za&&g.VO(a.playerState)&&a.xv.start();if(m0a(a)){var c;if(b=null==(c=a.mediaElement)?void 0:c.audioTracks())b.onchange=function(){a.ma("internalaudioformatchange",a.videoData,!0)}}};
wZ=function(a){a.pe&&(a.pe.dispose(),a.pe=null)};
mW=function(a,b){b=void 0===b?!1:b;return kM(a.videoData)&&(a.isAtLiveHead()&&!g.UO(a.playerState)||a.rq()||g.JM(a.videoData))?a.getCurrentTime():a.qe(b)};
E0a=function(a){a.mediaElement&&(a.Xa?(wZ(a),uZ(a),s0a(a)):(a.videoData.Ya&&a.videoData.Ya.ZO(),a.mediaElement.stopVideo()),a.playVideo())};
F0a=function(a,b){a.Y.K("html5_log_rebuffer_reason")&&a.xa("bufreason",{r:b,lact:KC()})};
AW=function(a,b,c,d,e,f,h){var l;if(null==(l=a.videoData.j)?0:l.isLive){l=2===c.playerType?c:b;var m=b.videoData.videoId,n=c.videoData.videoId;if(m&&n){var p=a.yc;if(p.qoe){p=p.qoe;var q=b.cpn,t=c.cpn,w=l.videoData.le,z=p.provider.videoData.clientPlaybackNonce,C=p.provider.videoData.videoId,G=t!==z&&n!==C;z=q!==z&&m!==C;p.reportStats();p.adCpn&&p.adCpn!==q||(p.adCpn=z?q:"",p.V=z?m:"",p.adFormat=z?w:void 0,wZa(p,h?4:f?2:0,t,n,e),p.reportStats(),p.adCpn=G?t:"",p.V=G?n:"",p.adFormat=G?w:void 0,wZa(p,
h?5:f?3:1,q,m,d),p.reportStats())}d=a.yc;f=b.cpn;if(d.u.has(f)){if(h=d.u.get(f),UY(h,!0).send(),TY(h),f!==d.provider.videoData.clientPlaybackNonce){PZa(h);var O;null==(O=d.j)||LZa(O);d.u.delete(f)}}else d.Bi=d.provider.videoData.clientPlaybackNonce,d.Bi&&d.j&&(d.u.set(d.Bi,d.j),UY(d.j).send(),TY(d.j));O=a.yc;d=c.cpn;l=l.videoData;f=e-a.Zp();if(O.u.has(d)){l=O.u.get(d);var N=l.u&&isNaN(l.C)?RY(l):NaN;l=OZa(l,!1);isNaN(N)||(l.D=N);l.send()}else l=$Za(O,O.provider,l,f),O.u.set(d,l),l.zd(new g.$N(QO(new g.OO,
8),new g.OO)),KZa(l),null==(N=O.j)||TY(N);O.Bi=d;N=a.videoData.clientPlaybackNonce;a=c.videoData;b=(b.cpn===N?"video":"ad")+"_to_"+(c.cpn===N?"video":"ad");N={};a.J&&(N.cttAuthInfo={token:a.J,videoId:a.videoId});N.startTime=e;$E(b,N);ZE({targetVideoId:a.videoId,targetCpn:c.cpn},b);bF("pbs",e,b)}}};
G0a=function(a,b){if(a.Y.Qd()){var c=g.jJ(a.Y.experiments,"html5_log_rebuffer_events");if(c&&a.mediaElement){var d=a.mediaElement.kc();d.rt=(1E3*g.qW(a.yc.provider)).toFixed();d.e=b.substr(0,3);a.rH[a.QW++%c]=d}}};
H0a=function(a){if(a.Y.Qd()){a.rH.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.v(a.rH),c=b.next();!c.done;c=b.next())c=c.value,a.xa("vpe",Object.assign({t:c.rt},c));a.rH=[];a.QW=0}};
I0a=function(a){if(Sy("cobalt")&&Sy("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.xa("nxdock",{d:b})}};
sRa=function(a,b,c,d,e){a.xa("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
vZ=function(a,b){var c;null==(c=a.Fa)||qY(c,b||q0a(a))};
q0a=function(a){return a.K("disable_prefetch_when_ad_pending_for_living_room")&&g.wK(a.Y)&&g.wb(a.yn,"ad")};
J0a=function(a){return aN(a.videoData)&&a.Ng?a.Ng.getDuration():a.videoData.qe()};
g.xZ=function(a,b,c,d){g.E.call(this);var e=this;this.logger=new g.aW("App");this.iz=this.Kh=!1;this.zw={};this.Jx=new dKa;this.BH={};this.Fz=[];this.LU=!1;this.DM=null;this.PU=!1;this.ev=!0;this.nP=!1;this.hV=this.UM=null;this.oV=!0;this.mediaElement=this.Bb=null;this.tN=NaN;this.iD=!1;this.Ng=this.Je=this.screenLayer=this.uD=this.Lb=this.playlist=null;this.TD=void 0;this.Td=this.jA=null;this.config=Roa(b||{});this.webPlayerContextConfig=c;bpa();b=this.config.args||{};this.Y=new yK(b,c,c?c.canaryState:
this.config.assets.player_canary_state,d);g.I(this,this.Y);this.sK();this.Y.experiments.kb("web_player_empty_translator")?Xra({},{}):this.Y.experiments.kb("web_player_all_payloads_via_jspb")&&Xra(K0a,L0a);this.Y.u&&!M0a&&(window.addEventListener(eK?"touchstart":"click",mRa,{capture:!0,passive:!0}),M0a=!0);this.K("html5_onesie")&&(this.Jv=new XV(this.Y),g.I(this,this.Jv));this.OX=fz(kK(this.Y)&&!0,b.enablesizebutton);this.MM=fz(!1,b.player_wide);this.visibility=new IRa;g.I(this,this.visibility);this.Kh=
fz(!1,b.external_list);this.events=new g.eI(this);g.I(this,this.events);this.K("start_client_gcf")&&(NC(RC(),{FO:zB,cQ:Xpa()}),this.v2=RC().resolve(zB),Ypa(this.v2));this.Mq=new RW;g.I(this,this.Mq);this.Pp=new RW;g.I(this,this.Pp);this.Ks=new PSa;d=new eKa;this.Ua=new g.rS(this,d);g.I(this,this.Ua);this.template=new JSa(this);g.I(this,this.template);this.appState=1;this.gi=N0a(this);this.F=this.Y.I?new mS(this,d,!0,1):new jS(this,d,!0,1);g.I(this,this.F);g.I(this,d);d={};this.rK=(d.internalvideodatachange=
this.v5,d.playbackready=this.x5,d.playbackstarted=this.y5,d.statechange=this.z5,d);this.g3=new uLa(this.Ua);g.I(this,this.g3);this.bd=O0a(this);this.K("html5_load_wasm")&&"WebAssembly"in window&&BMa(this.bd).then(function(f){e.Y.Vd=f},function(f){g.AD(f)});
this.T4=new g.eI(this);g.I(this,this.T4);this.vb=new vLa(this.Y,this.bd);this.Ua.ma("csiinitialized");this.zb=P0a(this);this.zb.setPlaybackRate(this.Y.C?1:Q0a(this,Number(g.Mz("yt-player-playback-rate"))||1));g.bE(this.zb,this.rK,this);b0a(this.zb);d={};this.UW=(d.airplayactivechange=this.onAirPlayActiveChange,d.airplayavailabilitychange=this.onAirPlayAvailabilityChange,d.beginseeking=this.AN,d.endseeking=this.FN,d.internalAbandon=this.LN,d.internalaudioformatchange=this.TC,d.internalvideodatachange=
this.onVideoDataChange,d.internalvideoformatchange=this.gD,d.liveviewshift=this.j6,d.playbackstalledatstart=this.A7,d.progresssync=this.Q6,d.onLoadProgress=this.onLoadProgress,d.SEEK_COMPLETE=this.oz,d.SEEK_TO=this.o7,d.onVideoProgress=this.onVideoProgress,d.onLoadedMetadata=this.onLoadedMetadata,d.onAutoplayBlocked=this.onAutoplayBlocked,d.playbackready=this.G6,d.statechange=this.HW,d.connectionissue=this.WC,d.newelementrequired=this.nW,d.heartbeatparams=this.YC,d.videoelementevent=this.fO,d.drmoutputrestricted=
this.onDrmOutputRestricted,d.signatureexpired=this.u7,d.nonfatalerror=this.x6,d);this.Ss=new g.eI(this);g.I(this,this.Ss);d=10;g.wK(this.Y)&&(d=3);HK(this.Y)&&(d=g.jJ(this.Y.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Ts=new QW;g.I(this,this.Ts);this.oD=new OW(d,function(f){f!==g.hS(e,f.getPlayerType())&&f.dispose()});
g.I(this,this.oD);this.tL=this.BF=-1;this.SH=new g.Ap(this.template.resize,16,this.template);g.I(this,this.SH);R0a(this);this.jd=new oSa(this.Ua,this.Y,this.zb);this.Pv=new tW(this.Y);this.ir=new nW(this);g.I(this,this.ir);this.SY=new iW(this);g.I(this,this.SY);DSa(this.Y.j.c);this.events.S(this.Ua,g.WD("appapi"),this.t5);this.events.S(this.Ua,g.XD("appapi"),this.u5);this.events.S(this.Ua,g.WD("appad"),this.SV);this.events.S(this.Ua,g.XD("appad"),this.SV);this.events.S(this.Ua,g.WD("appprogressboundary"),
this.P6);this.events.S(this.Ua,g.XD("applooprange"),this.XH);this.events.S(this.Ua,"presentingplayerstatechange",this.Gi);this.events.S(this.Ua,"resize",this.b7);this.template.Ea(Ne(document,a));this.events.S(this.Ua,"offlineslatestatechange",this.z6);this.fQ=S0a(this,this.template.element);g.I(this,this.fQ);this.bd.F.T().Xi&&ET(this.bd,"offline");this.Y.Uf&&g.sT("ux",g.VV);this.yS=new g.Ap(this.B8,g.jJ(this.Y.experiments,"html5_defer_fetch_att_ms"),this);g.I(this,this.yS);this.Jd().De()&&(g.Oz()&&
this.Jd().Ga.push("remote"),T0a(this));this.vb.tick("fs");U0a(this);this.Y.Uf&&ET(this.bd,"ux",!0);g.rK(this.bd.F.T())&&ET(this.bd,"music");g.iK(this.bd.F.T())&&ET(this.bd,"embed");this.K("web_player_sentinel_is_uniplayer")||g.AD(new g.Yz("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.K("web_player_sentinel_yt_experiments_sync");d=g.cy("web_player_sentinel_yt_experiments_sync");a!==d&&g.AD(new g.Yz("b/195699950",{yt:a,player:d}));c||g.AD(new g.Yz("b/179532961"));this.zY=
V0a(this);if(c=g.jJ(this.Y.experiments,"html5_block_pip_safari_delay"))this.zL=new g.Ap(this.KS,c,this),g.I(this,this.zL);Ly=this.Y.Za;c=g.jJ(this.Y.experiments,"html5_performance_impact_profiling_timer_ms");0<c&&(this.MW=new g.Lf(c),g.I(this,this.MW),this.events.S(this.MW,"tick",function(){e.NW&&W0a.Rp(e.NW);e.NW=W0a.Xq("apit")}));
this.K("html5_proto_encoder_large_field_index")&&(tya=!0)};
V0a=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(a.Lb||a.zb).yc.Ld("player.exception",RK({n:c.name,m:c.message}))}
BD.subscribe("handleError",b);gy.push(b);return function(){BD.unsubscribe("handleError",b);var c=gy.indexOf(b);-1!==c&&gy.splice(c,1)}};
P0a=function(a){var b=new g.cM(a.Y,a.config.args);a.Ua.ma("initialvideodatacreated",b);return a.ey(1,b)};
O0a=function(a){var b="",c=HSa(a);0===c.indexOf("//")&&(c=a.Y.protocol+":"+c);var d=c.lastIndexOf("/base.js");-1!==d&&(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.AD(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new nMa(a.Ua,b);X0a(a,b);return b};
X0a=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.u=c};
N0a=function(a){if(a.Y.storeUserVolume){a=g.Mz("yt-player-volume")||{};var b=a.volume;a={volume:isNaN(b)?100:g.pe(Math.floor(b),0,100),muted:!!a.muted}}else a={volume:100,muted:a.Y.mute};return a};
yZ=function(a){a.mediaElement=a.Y.deviceIsAudioOnly?new g.gT(g.Ze("AUDIO")):hW.pop()||new g.gT(g.Ze("VIDEO"));g.I(a,a.mediaElement);a.Lb&&a.Lb.setMediaElement(a.mediaElement);try{a.Y.Uc?(a.jA&&a.events.Fc(a.jA),a.jA=a.events.S(a.mediaElement,"volumechange",a.r6)):(a.mediaElement.Lz(a.gi.muted),a.mediaElement.setVolume(a.gi.volume/100))}catch(e){a.Dg("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(e.message&&e.message.replace(/[;:,]/g,"_")));return}g.Hz(a.Ss);Y0a(a);var b=a.template,
c=a.mediaElement.ub();b.hc=c;b.kG=!1;b.hc.parentNode||g.hf(b.eB,b.hc,0);b.yH=new g.Gm(0,0,0,0);OSa(b);TW(b);c=b.hc;g.Ip(c,"video-stream");g.Ip(c,g.SW.MAIN_VIDEO);var d=b.app.T();d.Ij&&c.setAttribute("data-no-fullscreen","true");d.K("html5_local_playsinline")?"playsInline"in fI()&&(c.playsInline=!0):d.ol&&(c.setAttribute("webkit-playsinline",""),c.setAttribute("playsinline",""));d.jo&&b.hc&&b.S(c,"click",c.play,c);try{a.mediaElement.Fx()}catch(e){a.Dg("html5.missingapi",2,"UNSUPPORTED_DEVICE","activate.1;emsg."+
(e.message&&e.message.replace(/[;:,]/g,"_")))}};
sW=function(a,b,c){if(a.Lb!==b){var d=null;if(a.Lb){d=a.Lb.getPlayerState();FT(a.bd,3);zZ(a,"cuerangesremoved",a.Lb.Im());a.ir&&!b.isGapless()&&a.Lb.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var e=CI(b)&&CI(a.Lb);a.K("html5_rebase_video_to_ad_timeline")&&a.vb.Kt("iv_s");e=void 0===e?!0:e;var f;if(f=a.Td)f=a.mediaElement,f=!!f&&f===a.Td.mediaElement;f&&(a.nj(),yZ(a));a.Lb&&(a.Lb.nj(!e),cE(a.Lb,a.UW,a),1!==a.Lb.getPlayerType()&&a.Lb.dispose());a.Lb=null}1===b.getPlayerType()&&a.zb!==b&&
(b.getVideoData().autonavState=a.zb.getVideoData().autonavState,cE(a.zb,a.rK,a),e=a.zb.getPlaybackRate(),a.zb.dispose(),a.zb=b,a.zb.setPlaybackRate(e),g.bE(b,a.rK,a),T0a(a));e=b.getPlayerType();if(b!==a.zb&&b!==a.zw[e]){var h;null==(h=a.zw[e])||h.dispose();a.zw[e]=b}a.Lb=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.bE(b,a.UW,a);if(b.wG())Z0a(a,"setPresenting",!1);else{a.onVideoDataChange("newdata",b,b.getVideoData());d&&!g.TO(d,b.getPlayerState())&&a.HW(new g.$N(b.getPlayerState(),d));c=
c&&a.F.K("html5_player_preload_ad_fix")&&1===b.getPlayerType();if(b.ep.finished&&!c)a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().u)&&c.video)&&a.Ua.Na("onPlaybackQualityChange",c.quality);zZ(a,"cuerangesadded",a.Lb.Im());c=b.getPlayerState();g.UN(c,2)?$0a(a):g.UN(c,8)?b.playVideo():b.vC()&&b.pauseVideo();if(2===b.getPlayerType()&&a.K("html5_report_host_cpn")){var l;b.getVideoData().Z0=null==(l=g.hS(a,1))?void 0:l.getVideoData().clientPlaybackNonce}2!==b.getPlayerType()||
a.mf()||(b=b.getVideoData(),a.zb.Az(b.clientPlaybackNonce,b.le||"",b.breakType||0,b.Ri))}}};
$0a=function(a){if(!a1a(a)){var b=a.zb.ue();b&&(b=b.tB(),b instanceof Promise&&b.catch(function(){}));
AZ(a,YO(a.Cb()))}};
Y0a=function(a){var b=a.mediaElement;jI()?a.Ss.S(b,"webkitpresentationmodechanged",a.l7):window.document.pictureInPictureEnabled&&(a.Ss.S(b,"enterpictureinpicture",function(){a.Nz(!0)}),a.Ss.S(b,"leavepictureinpicture",function(){a.Nz(!1)}));
Zy&&(a.Ss.S(b,"webkitbeginfullscreen",function(){a.Xl(3)}),a.Ss.S(b,"webkitendfullscreen",function(){a.Xl(0)}))};
g.hS=function(a,b){return b?1===b?a.zb:a.getVideoData().enableServerStitchedDai&&2===b?a.getVideoData().enablePreroll?a.zw[2]||a.Lb:a.Lb:a.zw[b]||null:a.Lb};
b1a=function(a,b,c,d){a=a.ey(b,c,d);b0a(a);return a};
BZ=function(a,b){return a.mf(b)?a.zb:b};
CZ=function(a,b){var c=a.Lb;return c&&b===a.zb&&a.mf(b)&&a.mf(c)?c:b};
c1a=function(a){if(!DZ(a)){var b=GT(a.bd);b&&!b.created&&oMa(a.bd)&&b.create()}};
d1a=function(a){var b=a.getVideoData(),c=a.bd;vMa(c)||c.WK();ET(c,"embed");ET(c,"inline_preview");ET(c,"kids");ET(c,"remote");ET(c,"miniplayer");ET(c,"music");ET(c,"offline");ET(c,"unplugged");ET(c,"ypc",!1,!0);ET(c,"ypc_clickwrap",!1,!0);ET(c,"yto",!1,!0);ET(c,"webgl",!1,!0);wMa(c)||(ET(c,"captions",!0),ET(c,"endscreen"),c.XK(),ET(c,"creatorendscreen",!0));c.cT();a.Ua.ma("videoready",b)};
EZ=function(a){a=a.Jd();a.De();return VM(a)};
U0a=function(a){a.eL();var b=a.config.args;yZ(a);var c=a.Jd();a.Ua.Na("onVolumeChange",a.gi);if(b&&zLa(b)){var d=EK(a.Y);d&&!a.Kh&&(b.fetch=0);var e=g.iK(a.Y);e&&!a.Kh&&(b.fetch=0);FZ(a,b);g.iK(a.Y)&&a.vb.tick("ep_pr_s");if(d&&!a.Kh)GZ(a);else if(e&&!a.Kh)e1a(a);else if(!c.De())a.playlist.onReady(function(){HZ(a)})}sW(a,a.zb);
g.UN(a.zb.getPlayerState(),128)||(b=Eva(!a.Y.deviceIsAudioOnly),"fmt.noneavailable"===b?a.Dg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.Dg(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.De()&&EZ(a)&&(a.Y.dl||a.Y.nh)?IZ(a):g.Mz("yt-player-playback-on-reload")?(g.nA("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.Y.authUser}),uwa(!1),IZ(a)):NK(a.Y)||f1a(a),g.GK(a.Y)||"MWEB"===g.uJ(a.Y)?(g.cA(g.eA(),function(){JZ(a)}),g.cA(g.eA(),
function(){OFa()})):(JZ(a),OFa()))};
JZ=function(a){if(a.K("fetch_att_independently"))g.Bp(a.yS);else{var b=a.getVideoData().botguardData;b&&g.SJa(b,a.Y,a.getVideoData().qk||"")}};
f1a=function(a){a.Ua.ma("initializingmode");a.kp(2);ET(a.bd,"remote");ET(a.bd,"miniplayer")};
IZ=function(a){if(g.UN(a.zb.getPlayerState(),128))return!1;var b=a.zb.getVideoData();EZ(a)&&a.Y.nh&&(hW.length&&a.iz?(kS(a,{muted:!1,volume:a.gi.volume},!1),KZ(a,!1)):hW.length||a.gi.muted||(kS(a,{muted:!0,volume:a.gi.volume},!1),KZ(a,!0)));EZ(a)&&a.Y.Po&&b.mutedAutoplay&&(kS(a,{muted:!0,volume:a.gi.volume},!1),KZ(a,!0));b.NR&&kS(a,{muted:!0,volume:a.gi.volume},!1);g1a(a,1,b,!1);a.Ua.ma("initializingmode");sW(a,a.zb);a.kp(3);var c;if(!(c=!a.Y.xm)){if(c=a.Td)c=a.mediaElement,c=!!c&&c===a.Td.mediaElement;
c=c&&a.LU}c&&(a.nj(),yZ(a),a.zb.setMediaElement(a.mediaElement));h0a(a.zb);if(g.UN(a.zb.getPlayerState(),128))return!1;b.Pn||AZ(a,3);return a.LU=!0};
DZ=function(a){a=uS(a.bd);return!!a&&a.loaded};
h1a=function(a,b){if(!a.Bb)return!1;var c=.001*a.Bb.startTimeMs-1,d=.001*a.Bb.endTimeMs;"repeatChapter"===a.Bb.type&&d--;return ue(b,c)||ue(b,d)||b>=c&&b<=d};
i1a=function(a){if(!(g.UN(a.zb.getPlayerState(),64)&&a.Jd().isLivePlayback&&5E3>a.Bb.startTimeMs)){if("repeatChapter"===a.Bb.type){var b,c=null==(b=kKa(a.wb()))?void 0:b.FB(),d;b=null==(d=a.getVideoData())?void 0:d.Hj;c instanceof g.ZT&&b&&(d=b[BU(b,a.Bb.startTimeMs)],c.CD(0,d.title));isNaN(Number(a.Bb.loopCount))?a.Bb.loopCount=0:a.Bb.loopCount++;1===a.Bb.loopCount&&a.F.Na("innertubeCommand",a.getVideoData().C1)}a.zb.seekTo(.001*a.Bb.startTimeMs,{xe:"application_loopRangeStart"})}};
Q0a=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(100*b+.001)%5,b=0===a?b:Math.floor(100*(b-.01*a)+.001)/100);return b};
MZ=function(a,b,c){if(a.mf(c)){c=c.getVideoData();if(LZ(a))c=b;else{a=a.jd;for(var d=g.v(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,c.Mc===e.Mc){b+=e.Cc/1E3;break}d=b;a=g.v(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Mc===e.Mc)break;var f=e.Cc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Fd/1E3;else break}c=d}return c}return b};
j1a=function(a,b){if(3===a.getPresentingPlayerType())return YO(uS(a.bd).Te);if(a.getVideoData().enableServerStitchedDai&&2===b){var c;return(null==(c=a.Je)?0:WRa(c,a.getCurrentTime()))?a.BF:-1}return 2!==b||a.mf()?a.BF:a.tL};
T0a=function(a){NZ(a);a.setLoopVideo(!1);a.setLoopRange(null);a.Jx.Jx={};a.BH={};a.Fz=[];xLa(a.vb);if(a.Je){var b=a.Je,c=a.zb;c.getPlayerType();DW(b,!1);$Ra(b);aSa(b);b.va=c}b=a.jd;a=a.zb;1!==a.getPlayerType()&&IW(b,"invalidParentVideoPlayerType");MW(b,!1);BSa(b);b.j=a};
GZ=function(a){var b=k1a();if(b)if(!b.list)a.fF();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Ua.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==g.qT(a.playlist).videoId||(b.index=a.playlist.index));DLa(a.playlist,b);a.uD&&l1a(a,a.uD)}else a.uD=null};
e1a=function(a,b){var c=(b?b:a.Jd()).cS;a.vb.tick("ep_pr_r");if(null!=c&&(DLa(a.playlist,c),a.nP))a.playlist.onReady(function(){HZ(a,b)})};
FZ=function(a,b){a.playlist&&(g.gb(a.playlist),a.playlist=null);b&&(a.Kh&&(b.fetch=0),a.playlist=new yLa(a.Y,b))};
p1a=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.v(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d={CPN:a.getVideoData().clientPlaybackNonce};c=g.pp(c,d);d=void 0;d=void 0===d?!1:d;(d=ND(OD(c,m1a),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=void 0===d?!1:d,d=ND(OD(c,n1a),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=void 0===d?!1:d,d=ND(OD(c,o1a),c,d,"Nielsen OCR URL"));g.VB(c,void 0,d)}return!0};
AZ=function(a,b){if(a.Lb){var c=a.Lb.getPlayerType();if(2===c&&!a.mf()){a.tL!==b&&(a.tL=b,a.Ua.Na("onAdStateChange",b));return}if(2===c&&a.mf()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}if(0===b){if(a.Bb)return;var d;if((null==(d=a.Lb)?0:d.us())&&!MK(a.Y)){a.playVideo();return}}a.BF!==b&&(a.BF=b,a.Ua.Na("onStateChange",b))};
q1a=function(a,b,c,d,e){d=void 0===d?Infinity:d;e=void 0===e?0:e;c=c||a.Lb.getPlayerType();var f=g1a(a,c,b,!0);f||(f=b1a(a,c,b));2===c&&a.zb&&(b=f.getVideoData(),a.zb.Az(b.clientPlaybackNonce,b.le||"",b.breakType||0,b.Ri));a.wF(f,d,0,e)};
r1a=function(a,b,c){return OZ(a,b,c.videoId,c.Mc,c.isAutonav,c.jp)};
OZ=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;b=b+"_"+c+"_"+d;a.Y.K("html5_autonav_autoplay_in_preload_key")&&(b+="_"+ +e+ +f);return b};
g1a=function(a,b,c,d){var e=a.Y.K("html5_autonav_autoplay_in_preload_key")?r1a(a,b,c):OZ(a,b,c.videoId,c.Mc);var f=a.oD.get(e);if(!f)return null;a.oD.remove(e);if(g.UN(f.getPlayerState(),128))return f.dispose(),null;if(f===g.hS(a,b))return ZE({isCacheHit:!0},a.vb.timerName),f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||sW(a,f,!0);ZE({isCacheHit:!0},a.vb.timerName);return f};
PZ=function(a,b,c){c=g.hS(a,c);b&&c===a.zb&&(c.getVideoData().IC=!0)};
QZ=function(a,b,c){c=void 0===c?1:c;if(b.De()){var d=a.ey(c,b);a.cancelPlayback(4,c);sW(a,d);b0a(d);1===c&&(a.kp(1),a.K("embeds_web_enable_cue_video_unplayable_fix")&&g.iK(a.Y)&&!cN(b)?(b.dispose(),g.gb(g.hS(a,c))):f1a(a))}else b.dispose(),g.gb(g.hS(a,c)),dAa(a.Jd())&&2===c&&delete a.zw[2]};
s1a=function(a,b,c,d,e){b=oKa(b,c,d,e);(c=g.iK(a.Y)&&!a.Y.oa)&&!a.Kh&&(b.fetch=0);FZ(a,b);g.iK(a.Y)&&a.vb.tick("ep_a_pr_s");if(c&&!a.Kh)c=a.Jd(),GLa(c,b).then(function(f){a.nP=!0;e1a(a,f)});
else a.playlist.onReady(function(){HZ(a)});
g.iK(a.Y)&&a.vb.tick("ep_a_pr_r")};
HZ=function(a,b){var c=g.iK(a.Y)&&!a.Y.oa,d=c&&b?b:g.qT(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.Ul&&(a.Y.dl||a.Y.nh)||!a.ev?(b=b.IC,d=a.Qs(d,1),b&&PZ(a,d)):QZ(a,d,1));g.iK(a.Y)&&a.vb.tick("ep_p_l");a.nP=!1;a.Ua.Na("onPlaylistUpdate")};
a1a=function(a){if(a.playlist&&g.oK(a.Y)&&a.DB()){var b=a.Y.K("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
l1a=function(a,b){var c=g.La(b);c?((b=k1a())&&b.list&&c(),a.uD=null):a.uD=b};
k1a=function(){var a=g.La("yt.www.watch.lists.getState");return a?a():null};
t1a=function(a,b,c,d,e,f,h){b={id:b,namespace:null!=h?h:"appapi"};"chapter"===f?(b.style=TD.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=TD.AD_MARKER:(b.style=TD.TIME_MARKER,b.color=e),b.visible=!0);a.SA([new g.UD(1E3*c,1E3*d,b)],1);return!0};
u1a=function(a,b,c,d,e,f){f=void 0===f?!0:f;var h=a.Lf();if(!h)return f&&a.getVideoData().isLivePlayback&&a.Fz.push({id:b,T9:c,S9:d}),!1;f=h-a.getCurrentTime();return t1a(a,b,c-f,d-f,void 0,void 0,e)};
v1a=function(a,b){a.Fz=g.On(a.Fz,function(f){return f.id!==b});
for(var c=a.zb.Im(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.zb.removeCueRange(e),zZ(a,"cuerangesremoved",[e]),!0}return!1};
w1a=function(a){var b=(0,g.GA)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
kS=function(a,b,c){a.Y.Ya&&(a.gi=b,b.muted||KZ(a,!1),c&&a.Y.storeUserVolume&&!a.Y.Uc&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.Lz("yt-player-volume",c),g.Lz("yt-player-volume",c,2592E3))),x1a(a),c=g.hI&&a.mediaElement&&!a.mediaElement.Mf(),a.Y.Uc&&!c||a.Ua.Na("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.Y.storeUserVolume}))};
x1a=function(a){var b=a.getVideoData();if(!b.Sj){b=a.Y.Uc?1:bAa(b);var c=a.mediaElement;c.Lz(a.gi.muted);try{c.setVolume(a.gi.volume*b/100)}catch(d){g.AD(new g.Yz("b183742307","multiplier: "+b+", volume: "+a.gi.volume))}}};
KZ=function(a,b){b!==a.iz&&(a.iz=b,a.Ua.Na("onMutedAutoplayChange",b))};
g.lS=function(a){return a.iz&&a.getVideoData().mutedAutoplay};
y1a=function(a){var b=vz(!0);return b&&(b===a.template.element||a.mediaElement&&b===a.mediaElement.ub())?b:null};
A1a=function(a,b){var c=window.screen&&window.screen.orientation;if((a.Y.K("lock_fullscreen2")||a.Y.V)&&c&&c.lock&&(!g.hI||!z1a))if(b){b=0===c.type.indexOf("portrait");var d=a.template.getVideoAspectRatio(),e=b;1>d?e=!0:1<d&&(e=!1);if(!a.iD||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](function(){});
a.iD=!0}}else a.iD&&(a.iD=!1,c.unlock())};
zZ=function(a,b,c){a.Ua.ma(b,c);var d=g.wK(a.Y)||g.pK(a.Y)||g.qK(a.Y);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Ua.Na(e,c.map(function(f){return{getId:function(){return this.id},
end:f.end,id:f.getId(),namespace:"ad"===f.namespace?"ad":"",start:f.start,style:f.style,visible:f.visible}}))}};
RZ=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var h=g.hS(a,e);if(!h||(2!==h.getPlayerType()||a.mf(h)||f)&&!g.JM(h.getVideoData()))3===a.getPresentingPlayerType()?uS(a.bd).Zo("control_seek",b,c):(h===a.zb&&a.Bb&&!h1a(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
Z0a=function(a,b,c){c&&(a.nj(),yZ(a));c=g.hS(a);c.Ld(new SK("staleconfig",{reason:b}));var d=a.getVideoData(),e={};e.video_id=d.videoId;e.adformat=d.adFormat;d.isLivePlayback?mM(d)&&g.IK(a.Y)&&(e.live_utc_start=c.Lf(),e.resume="1"):(e.start=c.getCurrentTime(),e.resume="1");d.oa&&(e.vvt=d.oa);d.J&&(e.vss_credentials_token=d.J,e.vss_credentials_token_type=d.ek);d.oauthToken&&(e.oauth_token=d.oauthToken);d.xm&&(e.force_gvi=d.xm);e.autoplay=1;e.reload_count=d.jc+1;e.reload_reason=b;d.tD&&(e.unplugged_partner_opt_out=
d.tD);d.Rf&&(e.ypc_is_premiere_trailer=d.Rf);d.playerParams&&(e.player_params=d.playerParams);a.loadVideoByPlayerVars(e,void 0,!0);"signature"===b&&a.Je&&c1a(a)};
B1a=function(a,b){a.Jd().autonavState=b;g.Lz("yt-player-autonavstate",b);a.Ua.ma("autonavchange",b)};
C1a=function(a){var b=a.getVideoData().Sj,c=a.Y.Ud,d=a.isInline()&&!a.getVideoData().WI,e=a.mediaElement;b||c||d?e.gL():(e.iL(),kS(a,a.gi))};
S0a=function(a,b){return a.Y.K("html5_enable_embedded_player_visibility_signals")&&g.iK(a.Y)?new GSa(b):null};
NZ=function(a){(a=GT(a.wb()))&&a.created&&a.destroy()};
LZ=function(a){return a.getVideoData().enableServerStitchedDai&&!!a.Je};
D1a=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.v(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=Mm(a,d);b.hidden=!!a.hidden};
R0a=function(a){var b=a.Y,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;b.K("embeds_enable_request_storage_access_safari_itp")&&g.xA&&d&&b.C?az()||b.Za?(g.nA("embedsStorageAccessNotChecked",{isIosWebview:az(),isPemPlayer:b.Za}),a.TD=!1):c.hasStorageAccess().then(function(e){g.nA("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.TD=!e},function(e){g.nA("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.AD(Error("Embeds ITP Error: "+e));a.TD=!1}):a.TD=!1};
E1a=function(a,b){return g.wK(a.Y)&&ty(b)&&sy(b)?g.QK(a.Y,g.YM(a.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):Ky()};
SZ=function(a,b){E1a(a,b).then(function(c){g.VB(b,void 0,void 0,c)})};
TZ=function(a,b){b.forEach(function(c){SZ(a,c)})};
HSa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
UZ=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.j=b};
wC=function(a,b){return a.j.has(b)};
VZ=function(a,b){a=a.j.get(b);if(void 0!==a)return a.get()};
WZ=function(a){return Array.from(a.j.keys())};
G1a=function(a){var b;return(null==(b=F1a.get(a))?void 0:b.ow)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
I1a=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:H1a.get(b.eb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.slotEntryTrigger&&(c.entryTriggerType=b.slotEntryTrigger.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.slotEntryTrigger)c.debugData.slotEntryTriggerData=XZ(a);a=b.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];a=g.v(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(XZ(d.value));
b=b.slotExpirationTriggers;c.debugData.expirationTriggerData=[];b=g.v(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(XZ(a.value))}return c};
J1a=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:H1a.get(b.eb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
XZ=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.triggeringSlotId&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.triggeringSlotId);null!=a.triggeringLayoutId&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.triggeringLayoutId);return c};
K1a=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.$l(d||[],function(e){return I1a(a,e)}),b.debugData=Object.assign({},c&&0<c.length?{associatedSlotId:c}:{},0<d.length?{slots:d}:{}));
return b};
ZZ=function(a,b){return function(c){return L1a(YZ(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.eb,b.slotEntryTrigger,b.slotFulfillmentTriggers,b.slotExpirationTriggers,c.layoutId,c.layoutType,c.eb)}};
L1a=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:I1a(a,{slotId:b,slotType:c,slotPhysicalPosition:d,eb:e,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:l,Ba:new UZ([])}),layoutData:J1a(a,{layoutId:m,layoutType:n,eb:p,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],Rb:new Map,Ba:new UZ([]),xc:{}})}}};
M1a=function(){return!0};
$Z=function(a){this.u=M1a;this.Ca=a;a=Math.random();var b=this.Ca.get();b=g.jJ(b.F.T().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&0<=b&&1>=b?b:0;this.j=a<b};
YZ=function(a){return a.j||a.Ca.get().F.T().K("html5_force_debug_data_for_client_tmp_logs")};
N1a=function(a,b){var c={slotId:JD(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],eb:"surface",Ba:new UZ([])},d=Object,e=d.assign;b=KD(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Rb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],eb:"surface",Ba:new UZ([]),
xc:L1a(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.eb,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},a,{n4:!0,slot:c,layout:b})};
O1a=function(a,b,c){for(var d=!1,e=g.v(a.Wk.entries()),f=e.next();!f.done;f=e.next())f=g.v(f.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===f.slotType&&"core"===f.eb&&(d=!0);if(d){a:if(!c){a=g.v(a.Wk.entries());for(c=a.next();!c.done;c=a.next())if(d=g.v(c.value),c=d.next().value,d=d.next().value,"SLOT_TYPE_IN_PLAYER"===c.slotType&&"core"===c.eb){c=d.layoutId;break a}c=void 0}c?b.jM(c):DD("No triggering layout ID available when attempting to mute.")}};
a_=function(a){this.w2=a};
b_=function(a,b){this.ej=a;this.Jk=b};
c_=function(){};
d_=function(){};
e_=function(a,b,c){this.zn=a;this.k8=b;this.Oa=c};
f_=function(a,b){this.mu=a;this.Oa=b};
g_=function(a){this.F=a};
h_=function(a,b){this.Tl=a;this.Oa=b};
Q1a=function(a){g.E.call(this);this.j=a;this.IZ=P1a(this)};
P1a=function(a){var b=new UP(a.j.Ad);g.I(a,b);a=g.v([new f_(a.j.mu,a.j.Oa),new g_(a.j.F),new h_(a.j.Tl,a.j.Oa),new b_(a.j.ej,a.j.Jk),new a_(a.j.l2),new d_,new e_(a.j.zn,a.j.Ci,a.j.Oa),new c_]);for(var c=a.next();!c.done;c=a.next())c=c.value,WDa(b,c),XDa(b,c);a=g.v(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())c=c.value,SP(b,c,function(){}),TP(b,c,function(){});
return b};
i_=function(a){this.value=a};
j_=function(a){this.value=a};
R1a=function(a){this.value=a};
k_=function(a){this.value=a};
l_=function(a){this.value=a};
S1a=function(){i_.apply(this,arguments)};
T1a=function(a){this.value=a};
U1a=function(a){this.value=a};
m_=function(a){this.value=a};
n_=function(a){this.value=a};
o_=function(a){this.value=a};
p_=function(a){this.value=a};
q_=function(a){this.value=a};
r_=function(a){this.value=a};
s_=function(a){this.value=a};
t_=function(){i_.apply(this,arguments)};
V1a=function(){i_.apply(this,arguments)};
u_=function(a){this.value=a};
v_=function(a){this.value=a};
w_=function(a){this.value=a};
W1a=function(a){this.value=a};
X1a=function(a){this.value=a};
x_=function(a){this.value=a};
Y1a=function(a){this.value=a};
Z1a=function(a){this.value=a};
$1a=function(a){this.value=a};
a2a=function(a){this.value=a};
y_=function(a){this.value=a};
z_=function(a){this.value=a};
A_=function(a){this.value=a};
b2a=function(a){this.value=a};
B_=function(a){this.value=a};
C_=function(a){this.value=a};
D_=function(a){this.value=a};
c2a=function(a){this.value=a};
E_=function(a){this.value=a};
F_=function(a){this.value=a};
G_=function(a){this.value=a};
H_=function(a){this.value=a};
I_=function(a){this.value=a};
J_=function(a){this.value=a};
K_=function(a){this.value=a};
L_=function(a){this.value=a};
M_=function(a){this.value=a};
d2a=function(a){this.value=a};
N_=function(a){this.value=a};
O_=function(a){this.value=a};
P_=function(a){this.value=a};
e2a=function(a){this.value=a};
Q_=function(a){this.value=a};
R_=function(a){this.value=a};
S_=function(a){this.value=a};
T_=function(){i_.apply(this,arguments)};
f2a=function(a){this.value=a};
U_=function(){i_.apply(this,arguments)};
V_=function(){i_.apply(this,arguments)};
g2a=function(){i_.apply(this,arguments)};
W_=function(){i_.apply(this,arguments)};
h2a=function(a){this.value=a};
X_=function(a){this.value=a};
Y_=function(a,b,c,d){d=void 0===d?!1:d;nb.call(this,a);this.nk=c;this.nu=d;this.args=[];b&&this.args.push(b)};
i2a=function(a,b,c,d){g.E.call(this);this.Hd=b;this.Sb=c;this.Ca=d;this.j=a(this,this,this,this,this);g.I(this,this.j);a=g.v(b);for(b=a.next();!b.done;b=a.next())g.I(this,b.value)};
cCa=function(a,b){sO(a.Sb,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",b)};
dCa=function(a,b){sO(a.Sb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.v(a.Hd);for(var c=a.next();!c.done;c=a.next())c.value.Hi(b)};
eCa=function(a,b){sO(a.Sb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.v(a.Hd);for(var c=a.next();!c.done;c=a.next())c.value.Kg(b)};
WBa=function(a,b){sO(a.Sb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.v(a.Hd);for(var c=a.next();!c.done;c=a.next())c.value.Lg(b)};
j2a=function(a,b,c,d){DD(c,b,void 0,void 0,c.nu);c.nk?Z_(a.Sb,d,c.nk,b):DD("adsClientErrorMessage is missing.",b);$_(a,b,!0)};
n2a=function(a,b,c){if(a0(a.j,b))if(b0(a.j,b).C=c?"filled":"not_filled",null===c){c0(a.Sb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.v(a.Hd);for(var d=c.next();!d.done;d=c.next())d.value.Mk(b);$_(a,b,!1)}else{c0(a.Sb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);c0(a.Sb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);var e=null!=(d=c.nw)?d:VZ(c.Ba,"metadata_type_sub_layouts");if(e)for(d=g.v(e),e=d.next();!e.done;e=d.next())c0(a.Sb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,e.value);e=
g.v(a.Hd);for(d=e.next();!d.done;d=e.next())d.value.Nk(b);if(a0(a.j,b))if(b0(a.j,b).D)$_(a,b,!1);else{c0(a.Sb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.j;if(!b0(f,b))throw new Y_("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!f.rf.zq.get(b.slotType))throw new Y_("No LayoutRenderingAdapterFactory registered for slot of type: "+b.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");if(g.xb(c.layoutExitNormalTriggers)&&
g.xb(c.layoutExitSkipTriggers)&&g.xb(c.layoutExitMuteTriggers)&&g.xb(c.layoutExitUserInputSubmittedTriggers)&&g.xb(c.Qc))throw new Y_("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");d0(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);d0(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);d0(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);d0(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
c.layoutExitUserInputSubmittedTriggers);d0(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Qc)}catch(n){n instanceof Y_?a.eg(b,c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.eg(b,c,new Y_("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");$_(a,b,!0);return}b0(a.j,b).I=!0;try{var h=a.j,l=b0(h,b),m=h.rf.zq.get(b.slotType).get().wf(h.C,h.u,b,c);m.init();l.layout=c;if(l.B)throw new Y_("Already had LayoutRenderingAdapter registered for slot",
void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");l.B=m;e0(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);e0(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);e0(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);e0(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.layoutExitUserInputSubmittedTriggers);e0(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Qc)}catch(n){k2a(a,b);n instanceof Y_?a.eg(b,
c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.eg(b,c,new Y_("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");$_(a,b,!0);return}c0(a.Sb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);f=g.v(a.Hd);for(d=f.next();!d.done;d=f.next())d.value.Nj(b,c);k2a(a,b);l2a(a,b)}else m2a(a.Ca.get())&&DD("slot is unscheduled after been fulfilled.",b,c)}};
o2a=function(a,b,c){"core"!==b.eb&&c0(a.Sb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c)};
p2a=function(a,b,c){c0(a.Sb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.v(a.Hd);for(var d=a.next();!d.done;d=a.next())d.value.Nj(b,c)};
tO=function(a,b,c){a=g.v(a.Hd);for(var d=a.next();!d.done;d=a.next())d.value.Sh(b,c)};
f0=function(a,b,c){c0(a.Sb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.v(a.Hd);for(var d=a.next();!d.done;d=a.next())d.value.Rc(b,c)};
nO=function(a,b,c,d){c0(a.Sb,G1a(d),b,c);a=g.v(a.Hd);for(var e=a.next();!e.done;e=a.next())e.value.xd(b,c,d)};
k2a=function(a,b){if(a0(a.j,b)){b0(a.j,b).I=!1;var c=g0;b=b0(a.j,b);var d=[].concat(g.la(b.V));waa(b.V);c(a,d)}};
g0=function(a,b){b.sort(function(f,h){function l(m){DD("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):pra(f.category,l)-pra(h.category,l)});
var c=new Map;b=g.v(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,a0(a.j,d.slot))if(b0(a.j,d.slot).I)b0(a.j,d.slot).V.push(d);else{q2a(a.Sb,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.v(r2a);for(d=b.next();!d.done;d=b.next())e=g.v(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&s2a(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&t2a(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&u2a(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
v2a(a,c)};
s2a=function(a,b,c){b=g.v(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&w2a(a.j,d.slot)&&x2a(a,d.slot,d.layout,c)};
t2a=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next())$_(a,c.value.slot,!1)};
u2a=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(b0(a.j,c.slot).C){case "not_filled":var d=!0;break a;default:d=!1}d&&(sO(a.Sb,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.j.xB(c.slot))}};
v2a=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;sO(a.Sb,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.v(a.Hd),e=d.next();!e.done;e=d.next())e.value.Pj(c.slot);try{var f=a.j,h=c.slot,l=b0(f,h);if(!l)throw new zC("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!l.u)throw new zC("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if("scheduled"!==l.j)throw new zC("Tried to enter a slot from stage: "+
l.j,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(h0(l))throw new zC("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var m=g.v(i0(f,h.slotType+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&h0(p))throw new zC("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.j},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(q){q instanceof zC&&q.nk?(Z_(a.Sb,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",
q.nk,c.slot),DD(q,c.slot,j0(a.j,c.slot),void 0,q.nu)):(Z_(a.Sb,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c.slot),DD(q,c.slot));$_(a,c.slot,!0);continue}c=b0(a.j,c.slot);"scheduled"!==c.j&&k0(c.slot,c.j,"enterSlot");c.j="enter_requested";c.u.xF()}};
l2a=function(a,b){if(a0(a.j,b)&&h0(b0(a.j,b))&&j0(a.j,b)&&!w2a(a.j,b)){var c;c0(a.Sb,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!=(c=j0(a.j,b))?c:void 0);a=b0(a.j,b);"entered"!==a.j&&k0(a.slot,a.j,"enterLayoutForSlot");a.j="rendering";a.B.startRendering(a.layout)}};
x2a=function(a,b,c,d){if(a0(a.j,b)){var e=a.Sb,f;var h=(null==(f=F1a.get(d))?void 0:f.Xv)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";c0(e,h,b,c);a=b0(a.j,b);"rendering"!==a.j&&k0(a.slot,a.j,"exitLayout");a.j="rendering_stop_requested";a.B.Og(c,d)}};
$_=function(a,b,c){if(a0(a.j,b)){a:switch(b0(a.j,b).j){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(b0(a.j,b).j){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(b0(a.j,b).D=!0,!c))return;if(h0(b0(a.j,b)))b0(a.j,b).D=!0,y2a(a,b,c);else{a:switch(b0(a.j,b).C){case "fill_requested":c=!0;break a;default:c=!1}if(c)b0(a.j,b).D=!0,a0(a.j,b)&&(sO(a.Sb,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=b0(a.j,b),b.C="fill_cancel_requested",b.J.EK());else{c=
j0(a.j,b);(d=a.Ca.get().F.T().experiments.kb("h5_enable_layout_unscheduling_events"))&&(c?a.Sh(b,c):DD(Error("Layout is null for LayoutUnscheduled event."),b,c,void 0,!1));sO(a.Sb,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var e=b0(a.j,b),f=b.slotEntryTrigger,h=e.ya.get(f.triggerId);h&&(h.Zl(f),e.ya.delete(f.triggerId));f=g.v(b.slotFulfillmentTriggers);for(h=f.next();!h.done;h=f.next()){h=h.value;var l=e.Z.get(h.triggerId);l&&(l.Zl(h),e.Z.delete(h.triggerId))}f=g.v(b.slotExpirationTriggers);
for(h=f.next();!h.done;h=f.next())if(h=h.value,l=e.ea.get(h.triggerId))l.Zl(h),e.ea.delete(h.triggerId);null!=e.layout&&(f=e.layout,l0(e,f.layoutExitNormalTriggers),l0(e,f.layoutExitSkipTriggers),l0(e,f.layoutExitMuteTriggers),l0(e,f.layoutExitUserInputSubmittedTriggers),l0(e,f.Qc));e.J=void 0;null!=e.u&&(e.u.release(),e.u=void 0);null!=e.B&&(e.B.release(),e.B=void 0);e=a.j;b0(e,b)&&(e=i0(e,b.slotType+"_"+b.slotPhysicalPosition))&&e.delete(b.slotId);sO(a.Sb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
b);a=g.v(a.Hd);for(e=a.next();!e.done;e=a.next())e=e.value,e.Qj(b),c&&!d&&e.Sh(b,c)}}}};
y2a=function(a,b,c){if(a0(a.j,b)&&h0(b0(a.j,b))){var d=j0(a.j,b);if(d&&w2a(a.j,b))x2a(a,b,d,c?"error":"abandoned");else{sO(a.Sb,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=b0(a.j,b);if(!e)throw new zC("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");"enter_requested"!==e.j&&"entered"!==e.j&&"rendering"!==e.j&&k0(e.slot,e.j,"exitSlot");e.j="exit_requested";if(void 0===e.u)throw e.j="scheduled",new zC("Cannot exit slot because adapter is not defined",
void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");e.u.zF()}catch(f){f instanceof zC&&f.nk?(Z_(a.Sb,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",f.nk,b),DD(f,b,void 0,void 0,f.nu)):(Z_(a.Sb,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b),DD(f,b))}}}};
z2a=function(a){this.slot=a;this.ya=new Map;this.Z=new Map;this.ea=new Map;this.oa=new Map;this.B=this.layout=this.u=this.J=void 0;this.I=this.D=!1;this.V=[];this.j="not_scheduled";this.C="not_filled"};
h0=function(a){return"enter_requested"===a.j||a.isActive()};
A2a=function(a,b,c,d,e,f){g.E.call(this);this.rf=a;this.B=b;this.D=c;this.C=d;this.u=e;this.Ca=f;this.j=new Map};
i0=function(a,b){return(a=a.j.get(b))?a:new Map};
b0=function(a,b){return i0(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)};
B2a=function(a){var b=[];a.j.forEach(function(c){c=g.v(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
a0=function(a,b){return null!=b0(a,b)};
w2a=function(a,b){a=b0(a,b);if(b=null!=a.layout)a:switch(a.j){case "rendering":case "rendering_stop_requested":b=!0;break a;default:b=!1}return b};
j0=function(a,b){(a=b0(a,b))?null!=a.layout&&!a.layout&&DD("Unexpected empty layout",b):DD("Unexpected undefined slotState",b);return(null==a?void 0:a.layout)||null};
E2a=function(a,b,c){if(g.xb(c))throw new zC("No "+C2a.get(b)+" triggers found for slot.",void 0,D2a(b));c=g.v(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.rf.bl.get(d.triggerType))throw new zC("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
D2a=function(a){switch(a){case "TRIGGER_CATEGORY_SLOT_ENTRY":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_ENTRY_TRIGGER";case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_EXPIRATION_TRIGGER";case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_FULFILLMENT_TRIGGER";default:return"ADS_CLIENT_ERROR_MESSAGE_INVALID_TRIGGER"}};
d0=function(a,b,c){c=g.v(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.rf.bl.get(d.triggerType))throw new Y_("No trigger adapter registered for "+C2a.get(b)+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
e0=function(a,b,c,d){d=g.v(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.rf.bl.get(e.triggerType);f.Wl(c,e,b.slot,b.layout?b.layout:null);b.oa.set(e.triggerId,f)}};
l0=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.oa.get(c.triggerId);d&&(d.Zl(c),a.oa.delete(c.triggerId))}};
k0=function(a,b,c){DD("Slot stage was "+b+" when calling method "+c,a)};
F2a=function(a){return m0(a.Kv).concat(m0(a.bl)).concat(m0(a.Sp)).concat(m0(a.Wq)).concat(m0(a.zq))};
m0=function(a){var b=[];a=g.v(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.Gj&&b.push(c);return b};
H2a=function(a){g.E.call(this);this.j=a;this.u=G2a(this)};
G2a=function(a){var b=new i2a(function(c,d,e,f){return new A2a(a.j.rf,c,d,e,f,a.j.Ca)},new Set(F2a(a.j.rf).concat(a.j.listeners)),a.j.Sb,a.j.Ca);
g.I(a,b);return b};
I2a=function(a){g.E.call(this);var b=this;this.j=a;this.instance=null;g.lb(this,function(){g.gb(b.instance);b.instance=null})};
n0=function(a){return new I2a(a)};
o0=function(a){this.j=a};
p0=function(a,b,c,d){(a=a.j())||DD("Could not initiate a command router instance.");VP(a,b,c,d)};
q0=function(a){return null!=(null==a?void 0:a.layoutId)&&null!=(null==a?void 0:a.layoutType)};
J2a=function(a){var b,c=null==(b=a.config)?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
r0=function(a){return void 0!==a.playerVars&&void 0!==a.pings&&void 0!==a.externalVideoId};
u0=function(a){if(!q0(a.adLayoutMetadata))return!1;a=a.renderingContent;var b=g.S(a,K2a);return b?L2a(b):(b=g.S(a,JP))?r0(b):(b=g.S(a,LP))?void 0!==b.playerVars:(b=g.S(a,KP))?void 0!==b.durationMilliseconds:g.S(a,s0)||g.S(a,t0)?!0:!1};
L2a=function(a){a=(a.sequentialLayouts||[]).map(function(b){return g.S(b,M2a)});
return 0<a.length&&a.every(u0)};
Q2a=function(a){if(!q0(a.adLayoutMetadata))return!1;a=g.S(a.renderingContent,N2a);return g.S(null==a?void 0:a.sidePanel,O2a)||g.S(null==a?void 0:a.sidePanel,P2a)?!0:!1};
S2a=function(a){var b=a.adSlotMetadata;if(void 0===(null==b?void 0:b.slotId)||void 0===(null==b?void 0:b.slotType)||!(R2a(a)||a.slotEntryTrigger&&a.slotFulfillmentTriggers&&a.slotExpirationTriggers))return!1;var c;a=null==(c=a.fulfillmentContent)?void 0:c.fulfilledLayout;return(c=g.S(a,M2a))?u0(c):(c=g.S(a,v0))?Q2a(c):!1};
R2a=function(a){var b;a=g.S(null==(b=a.fulfillmentContent)?void 0:b.fulfilledLayout,v0);var c;return a&&"LAYOUT_TYPE_PANEL_QR_CODE"===(null==(c=a.adLayoutMetadata)?void 0:c.layoutType)};
T2a=function(a){return null!=a.linearAds&&q0(a.adLayoutMetadata)};
U2a=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
W2a=function(a,b,c,d,e,f,h){b=Wsa(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof zC?b:V2a(a,d,e,b,c);return a instanceof zC?a:[a]};
Y2a=function(a,b,c,d,e){var f=JD(a.fb.get(),"SLOT_TYPE_AD_BREAK_REQUEST");d=[new P_({getAdBreakUrl:d.getAdBreakUrl,IO:0,HO:0})];a=b.pauseDurationMs?{slotId:f,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:new w0(a.j,f),slotFulfillmentTriggers:[new X2a(a.j)],slotExpirationTriggers:[new x0(a.j,e)],eb:"core",Ba:new UZ(d),adSlotLoggingData:c}:new zC("AdPlacementConfig for Pause Ads is missing pause_duration_ms");return a instanceof zC?a:[a]};
Z2a=function(a){var b,c;return void 0!==(null==(b=a.renderer)?void 0:null==(c=b.adBreakServiceRenderer)?void 0:c.getAdBreakUrl)};
y0=function(a,b){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
z0=function(a,b){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
x0=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=c||a(this.triggerType)};
A0=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
B0=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
C0=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=c||a(this.triggerType)};
D0=function(a,b,c,d){this.triggeringLayoutId=b;this.j=c;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=d||a(this.triggerType)};
$2a=function(a){switch(a){case "LAYOUT_EXIT_REASON_UNSPECIFIED":return"unknown";case "LAYOUT_EXIT_REASON_NORMAL":return"normal";case "LAYOUT_EXIT_REASON_ERROR":return"error";case "LAYOUT_EXIT_REASON_USER_SKIPPED":return"skipped";case "LAYOUT_EXIT_REASON_USER_MUTED":return"muted";case "LAYOUT_EXIT_REASON_ABANDONED":return"abandoned";case "LAYOUT_EXIT_REASON_USER_INPUT_SUBMITTED":return"user_input_submitted";case "LAYOUT_EXIT_REASON_USER_CANCELLED":return"user_cancelled";default:return new zC("Invalid layout exit reason: "+
a)}};
a3a=function(a){this.triggerId=a;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
E0=function(a,b,c){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=c||a(this.triggerType)};
F0=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=c||a(this.triggerType)};
w0=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=c||a(this.triggerType)};
G0=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=c||a(this.triggerType)};
H0=function(a,b){if(a.beforeContentVideoIdStartedTrigger)a=a.beforeContentVideoIdStartedTrigger?new AC(yC,b,a.id):new zC("Not able to create BeforeContentVideoIdStartedTrigger");else if(a.layoutExitedForReasonTrigger){var c,d;if((null==(c=a.layoutExitedForReasonTrigger)?0:c.triggeringLayoutId)&&(null==(d=a.layoutExitedForReasonTrigger)?0:d.layoutExitReason)){var e=$2a(a.layoutExitedForReasonTrigger.layoutExitReason);a=e instanceof zC?e:new D0(yC,a.layoutExitedForReasonTrigger.triggeringLayoutId,[e],
a.id)}else a=new zC("Not able to create LayoutIdExitedForReasonTrigger")}else{if(a.onLayoutSelfExitRequestedTrigger)var f=null!=(e=a.onLayoutSelfExitRequestedTrigger)&&e.triggeringLayoutId?new E0(yC,a.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,a.id):new zC("Not able to create OnLayoutSelfExitRequestedTrigger");else{if(a.onNewPlaybackAfterContentVideoIdTrigger)a=a.onNewPlaybackAfterContentVideoIdTrigger?new x0(yC,b,a.id):new zC("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");
else{if(a.skipRequestedTrigger)e=null!=(f=a.skipRequestedTrigger)&&f.triggeringLayoutId?new F0(yC,a.skipRequestedTrigger.triggeringLayoutId,a.id):new zC("Not able to create SkipRequestedTrigger");else if(a.slotIdEnteredTrigger){var h;e=null!=(h=a.slotIdEnteredTrigger)&&h.triggeringSlotId?new A0(yC,a.slotIdEnteredTrigger.triggeringSlotId,a.id):new zC("Not able to create SlotIdEnteredTrigger")}else if(a.slotIdExitedTrigger){var l;e=null!=(l=a.slotIdExitedTrigger)&&l.triggeringSlotId?new B0(yC,a.slotIdExitedTrigger.triggeringSlotId,
a.id):new zC("Not able to create SkipRequestedTrigger")}else if(a.surveySubmittedTrigger){var m;e=null!=(m=a.surveySubmittedTrigger)&&m.triggeringLayoutId?new G0(yC,a.surveySubmittedTrigger.triggeringLayoutId,a.id):new zC("Not able to create SurveySubmittedTrigger")}else{if(a.mediaResumedTrigger)a=a.mediaResumedTrigger&&a.id?new a3a(a.id):new zC("Not able to create MediaResumedTrigger");else{if(a.closeRequestedTrigger){var n;e=null!=(n=a.closeRequestedTrigger)&&n.triggeringLayoutId?new C0(yC,a.closeRequestedTrigger.triggeringLayoutId,
a.id):new zC("Not able to create CloseRequestedTrigger")}else if(a.slotIdScheduledTrigger){var p;e=null!=(p=a.slotIdScheduledTrigger)&&p.triggeringSlotId?new w0(yC,a.slotIdScheduledTrigger.triggeringSlotId,a.id):new zC("Not able to create SlotIdScheduledTrigger")}else e=new zC("Not able to convert an AdsControlflowTrigger.");a=e}e=a}a=e}f=a}a=f}return a};
c3a=function(a,b,c,d,e,f,h,l){return null===b?new zC("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:b,ActionCompanionAdRenderer:d}):[b3a(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new UZ([new j_(d),new o_(e)]);n=KD(c.fb.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var t={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",eb:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Rb:new Map,
layoutExitNormalTriggers:[new x0(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],eb:"core",Ba:q,xc:m(t),adLayoutLoggingData:p}})]};
g3a=function(a,b,c,d,e,f){if(!f)for(b=g.v(b),f=b.next();!f.done;f=b.next())f=f.value,I0(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return d3a(p)});
b=[];f={};for(var h=g.v(a),l=h.next();!l.done;f={lr:f.lr},l=h.next()){f.lr=l.value;l={};for(var m=g.v(f.lr.lK),n=m.next();!n.done;l={il:l.il},n=m.next())l.il=n.value,n=function(p,q){return function(t){return p.il.YK(t,q.lr.instreamVideoAdRenderer.elementId,p.il.kK)}}(l,f),l.il.isContentVideoCompanion?b.push(e3a(c,d,e,f.lr.instreamVideoAdRenderer.elementId,l.il.associatedCompositePlayerBytesLayoutId,l.il.adSlotLoggingData,n)):1<a.length?b.push(f3a(c,d,e,f.lr.instreamVideoAdRenderer.elementId,l.il.adSlotLoggingData,
function(p,q){return function(t){return p.il.YK(t,q.lr.instreamVideoAdRenderer.elementId,p.il.kK,p.il.associatedCompositePlayerBytesLayoutId)}}(l,f))):b.push(f3a(c,d,e,f.lr.instreamVideoAdRenderer.elementId,l.il.adSlotLoggingData,n))}return b};
I0=function(a,b,c){if(b=h3a(b)){b=g.v(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=i3a(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.lC=c)}else DD("InstreamVideoAdRenderer without externalVideoId")}};
h3a=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&g.S(a.sandwichedLinearAdRenderer.linearAd,JP);if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.v(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,g.S(c,JP)&&b.push(g.S(c,JP));return b}return null};
d3a=function(a){if(void 0===a.instreamVideoAdRenderer)return DD("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.v(a.lK),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.YK)return!1;if(void 0===c.kK)return DD("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.lC||void 0===c.TE||a.lC!==c.TE&&"AD_PLACEMENT_KIND_SELF_START"!==c.TE)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return DD("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.lC,"matching APSR kind":c.TE}),!1}return!0};
i3a=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,lC:void 0,adVideoId:b,lK:[]});return a.get(b)};
J0=function(a,b,c,d,e,f,h,l,m){e?i3a(a,e).lK.push({D6a:b,TE:c,isContentVideoCompanion:d,kK:h,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:l,YK:m}):DD("Companion AdPlacementSupportedRenderer without adVideoId")};
j3a=function(a){var b,c=null==(b=VZ(a.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=VZ(a.Ba,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=VZ(a.Ba,"metadata_type_content_cpn"),f=VZ(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),h=VZ(a.Ba,"metadata_type_player_underlay_renderer"),l=VZ(a.Ba,"metadata_type_ad_placement_config"),m=VZ(a.Ba,"metadata_type_video_length_seconds");var n=wC(a.Ba,"metadata_type_layout_enter_ms")&&wC(a.Ba,
"metadata_type_layout_exit_ms")?(VZ(a.Ba,"metadata_type_layout_exit_ms")-VZ(a.Ba,"metadata_type_layout_enter_ms"))/1E3:void 0;return{tp:d,contentCpn:e,tO:c,mK:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,KG:n,inPlayerLayoutId:VZ(a.Ba,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:VZ(a.Ba,"metadata_type_linked_in_player_slot_id")}};
m3a=function(a,b,c,d,e,f,h,l,m,n,p,q,t,w,z){d=JD(d,"SLOT_TYPE_PLAYER_BYTES");a=k3a(e,a,h,c,d,m,n);if(a instanceof zC)return a;var C;n=null==(C=VZ(a.Ba,"metadata_type_fulfilled_layout"))?void 0:C.layoutId;if(!n)return new zC("Invalid adNotify layout");b=l3a(n,e,f,c,l,b,m,p,q,t,w,z,h);return b instanceof zC?b:[a].concat(g.la(b))};
l3a=function(a,b,c,d,e,f,h,l,m,n,p,q,t){c=n3a(b,c,d,f,h,l,m,n,p,q,t);if(c instanceof zC)return c;a=o3a(b,a,h,e,c);return a instanceof zC?a:[].concat(g.la(a.fg),[a.Qv])};
q3a=function(a,b,c,d,e,f,h,l,m,n,p,q,t){b=n3a(a,b,c,e,f,l,m,n,p,q,t);if(b instanceof zC)return b;a=p3a(a,c,f,h,d,l.Zc,b);return a instanceof zC?a:a.fg.concat(a.Qv)};
n3a=function(a,b,c,d,e,f,h,l,m,n,p){var q=K0(d);return q instanceof Y_?new zC(q):n.F.T().experiments.kb("html5_refactor_in_player_slot_generation")?function(t){var w=new oN(0,[q.qo]);t=r3a(b,q.Gn,c,L0(q.playerVars,q.zz,f,m,w),q.qo,e,w,h(t),l.get(q.Gn.externalVideoId));w=[];if(q.Gn.playerOverlay.instreamAdPlayerOverlayRenderer){var z=j3a(t);if(!z)return DD("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,t),{layout:t,fg:[]};w=[s3a(a,z.contentCpn,
z.tp,function(G){return M0(b,G.slotId,"core",z,ZZ(p,G))},z.inPlayerSlotId)].concat(g.la(w));
if(z.instreamAdPlayerUnderlayRenderer&&t3a(n)){var C=z.instreamAdPlayerUnderlayRenderer;w=[u3a(a,z.contentCpn,z.tp,function(G){return v3a(b,G.slotId,C,z.adPlacementConfig,z.tp,ZZ(p,G))})].concat(g.la(w))}}return{layout:t,
fg:w}}:function(t){var w=new oN(0,[q.qo]);
return{layout:r3a(b,q.Gn,c,L0(q.playerVars,q.zz,f,m,w),q.qo,e,w,h(t),l.get(q.Gn.externalVideoId)),fg:[]}}};
K0=function(a){if(!a.playerVars)return new Y_("No playerVars available in InstreamVideoAdRenderer.");var b;if(null==a.elementId||null==a.playerVars||null==a.playerOverlay||null==(null==(b=a.playerOverlay)?void 0:b.instreamAdPlayerOverlayRenderer)||null==a.pings||null==a.externalVideoId)return new Y_("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=my(a.playerVars);var c=Number(b.length_seconds);isNaN(c)&&(c=0,DD("Expected valid length seconds in player vars but got NaN"));
return{Gn:a,playerVars:b,zz:a.playerVars,qo:c}};
L0=function(a,b,c,d,e){a.iv_load_policy=d;b=my(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){DD(f)}c.Ji&&(a.ctrl=c.Ji);c.mj&&(a.ytr=c.mj);c.Jp&&(a.ytrcc=c.Jp);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.ek&&(a.vss_credentials_token_type=c.ek),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.u&&(a.slot_pos=e.j);a.autoplay="1";return a};
w3a=function(a){var b=new Map;a=g.v(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};
z3a=function(a,b,c,d,e,f,h,l,m,n){for(var p=[],q=g.v(a),t=q.next();!t.done;t=q.next())if(t=t.value,!R2a(t)){var w=H0(t.slotEntryTrigger,d);if(w instanceof zC)return w;for(var z=[],C=g.v(t.slotFulfillmentTriggers),G=C.next();!G.done;G=C.next()){G=H0(G.value,d);if(G instanceof zC)return G;z.push(G)}C=[];var O=g.v(t.slotExpirationTriggers);for(G=O.next();!G.done;G=O.next()){G=H0(G.value,d);if(G instanceof zC)return G;C.push(G)}O=[];c.Zc&&O.push(new V_({}));var N=void 0;G={slotId:t.adSlotMetadata.slotId,
slotType:t.adSlotMetadata.slotType,slotPhysicalPosition:null!=(N=t.adSlotMetadata.slotPhysicalPosition)?N:1,eb:"core",slotEntryTrigger:w,slotFulfillmentTriggers:z,slotExpirationTriggers:C};if(w=g.S(t.fulfillmentContent.fulfilledLayout,M2a)){if(!u0(w))return new zC("Invalid PlayerBytesAdLayoutRenderer");w=x3a(G,w,b,c,d,e,f,h,l,m,n,a);if(w instanceof zC)return w;t=Object.assign({},G,{Ba:new UZ(O),fulfilledLayout:w.layout,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});p.push.apply(p,g.la(w.fg));
p.push(t)}else if(w=g.S(t.fulfillmentContent.fulfilledLayout,v0),C=z=void 0,"LAYOUT_TYPE_PANEL_QR_CODE"!==(null==(z=w)?void 0:null==(C=z.adLayoutMetadata)?void 0:C.layoutType))if(w){if(!Q2a(w))return new zC("Invalid PlayerUnderlayAdLayoutRenderer");"LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE"===w.adLayoutMetadata.layoutType?(C=d,z=f,(O=g.S(w.renderingContent,N2a))?(O=g.S(O.sidePanel,P2a))?(N={layoutId:w.adLayoutMetadata.layoutId,layoutType:w.adLayoutMetadata.layoutType,eb:"core"},C=y3a(w,C),
w=C instanceof zC?C:Object.assign({},N,{renderingContent:w.renderingContent,Rb:new Map([["impression",O.impressionPings||[]],["resume",O.resumePings||[]]])},C,{xc:ZZ(z,G)(N),Ba:new UZ([])})):w=new zC("DismissablePanelTextPortraitImageRenderer is missing"):w=new zC("SqueezebackPlayerSidePanelRenderer is missing")):w=new zC("LayoutType ["+w.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");if(w instanceof zC)return w;t=Object.assign({},G,{Ba:new UZ([]),fulfilledLayout:w,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});
p.push(t)}else return new zC("Unable to retrieve a client slot ["+G.slotType+"] from a given AdSlotRenderer")}return p};
x3a=function(a,b,c,d,e,f,h,l,m,n,p,q){var t=y3a(b,e);if(t instanceof zC)return t;if(g.S(b.renderingContent,JP)){d=A3a([b],d,l);if(d instanceof zC)return d;if(1!==d.length)return new zC("Only expected one media layout.");a=B3a(a,b,t,d[0],void 0,"core",c,e,f,h,m,q);return a instanceof zC?a:{layout:a,fg:[]}}var w=g.S(b.renderingContent,K2a);if(w){if(!q0(b.adLayoutMetadata))return new zC("Invalid ad layout metadata");if(!L2a(w))return new zC("Invalid sequential layout");w=w.sequentialLayouts.map(function(z){return z.playerBytesAdLayoutRenderer});
a=C3a(a,b.adLayoutMetadata,t,w,c,e,d,l,f,h,m,n,p,q);return a instanceof zC?a:{layout:a.u2,fg:a.fg}}return new zC("Not able to convert a sequential layout")};
C3a=function(a,b,c,d,e,f,h,l,m,n,p,q,t,w){var z=new s_({current:null}),C=A3a(d,h,l);if(C instanceof zC)return C;h=[];l=[];for(var G=void 0,O=0;O<d.length;O++){var N=d[O];if(g.S(N.renderingContent,JP)){G=B3a(a,N,D3a,C[O],N0(q)&&O0(q)?C[O+1]:void 0,"adapter",e,f,m,n,p,w);if(G instanceof zC)return G;h.push(G);G=C[O]}else if(g.S(N.renderingContent,LP)){var K=a,W=n;if(u0(N)){var Z=g.S(N.renderingContent,LP);if(Z&&void 0!==Z.playerVars){var Q={layoutId:N.adLayoutMetadata.layoutId,layoutType:N.adLayoutMetadata.layoutType,
eb:"adapter"};Z=my(Z.playerVars);Z.autoplay="1";N=Object.assign({},Q,D3a,{renderingContent:N.renderingContent,Ba:new UZ([new M_({}),new o_({kind:"AD_PLACEMENT_KIND_START"}),new B_({current:null}),new F_(Z)]),Rb:new Map,xc:ZZ(W,K)(Q)})}else N=new zC("Invalid ad intro renderer")}else N=new zC("Invalid PlayerBytesAdLayoutRenderer");if(N instanceof zC)return N;h.push(N)}else if(g.S(N.renderingContent,KP)){a:{K=N.adLayoutMetadata.layoutId;W=g.v(e);for(Q=W.next();!Q.done;Q=W.next()){Q=Q.value;var na=Z=
void 0,r=(null==(Z=Q.renderer)?void 0:null==(na=Z.linearAdSequenceRenderer)?void 0:na.linearAds)||[];Z=g.v(r);for(na=Z.next();!na.done;na=Z.next())if((na=g.S(na.value,KP))&&void 0!==na.inPlayerSlotId&&void 0!==na.inPlayerLayoutId&&void 0!==na.associatedPlayerBytesLayoutId&&na.associatedPlayerBytesLayoutId===K){K={vF:na,adPlacementConfig:Q.config.adPlacementConfig};break a}}K=new zC("Not able to find associated InPlayer slot for endcap")}if(K instanceof zC)return K;W=void 0;Q=a;Z=n;var J=K.adPlacementConfig;
na=G;if(u0(N)){var ha=g.S(N.renderingContent,KP);ha&&void 0!==ha.durationMilliseconds?(r={layoutId:N.adLayoutMetadata.layoutId,layoutType:N.adLayoutMetadata.layoutType,eb:"adapter"},J=[new S_(ha.durationMilliseconds),new U_({impressionCommands:void 0,abandonCommands:ha.abandonCommands?[{commandExecutorCommand:ha.abandonCommands}]:void 0,completeCommands:ha.completionCommands}),new o_(J)],na&&(J.push(new q_(na.Gx.j-1)),J.push(new K_(na.Gx.j)),J.push(new r_(null!=(W=na.adPodSkipTarget)?W:-1))),N=Object.assign({},
r,D3a,{renderingContent:N.renderingContent,Ba:new UZ(J),Rb:new Map,xc:ZZ(Z,Q)(r)})):N=new zC("Invalid endcap renderer")}else N=new zC("Invalid PlayerBytesAdLayoutRenderer");if(N instanceof zC)return N;h.push(N);N=E3a(N.layoutId,t,f,K,z,n);if(N instanceof zC)return N;l.push(N)}}d={layoutId:b.layoutId,layoutType:b.layoutType,eb:"core"};return{u2:Object.assign({},d,c,{nw:h,Rb:new Map,Ba:new UZ([z]),xc:ZZ(n,a)(d),adLayoutLoggingData:b.adLayoutLoggingData}),fg:l}};
B3a=function(a,b,c,d,e,f,h,l,m,n,p,q){if(!u0(b))return new zC("Invalid PlayerBytesAdLayoutRenderer");var t=g.S(b.renderingContent,JP);(null==t?0:t.pings)?t=rN(t.pings):(t=g.S(b.renderingContent,KP),t=(null==t?0:t.skipPings)?new Map([["skip",t.skipPings]]):new Map);if(t instanceof zC)return t;f={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,eb:f};var w=b.adLayoutMetadata.layoutId;b:{var z=g.v(h);for(h=z.next();!h.done;h=z.next()){h=h.value;var C=h3a(h.renderer)||[],
G=g.v(C);for(C=G.next();!C.done;C=G.next())if(C=C.value,C.associatedPlayerBytesLayoutId===w){C.associatedPlayerBytesLayoutId?(z=C.playerOverlay,z=void 0!==z&&void 0!==z.instreamAdPlayerOverlayRenderer&&void 0!==z.instreamAdPlayerOverlayRenderer.inPlayerSlotId&&void 0!==z.instreamAdPlayerOverlayRenderer.inPlayerLayoutId):z=!1;h=z?{instreamVideoAdRenderer:C,adPlacementConfig:h.config.adPlacementConfig}:new zC("Invalid InPlayer shim");break b}}h=new zC("Not able to find associated InPlayer slot")}z=
h;if(z instanceof zC)e=z;else if((h=g.S(b.renderingContent,JP))&&r0(h)){C=z.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;d=[new p_(d.Gx),new t_(h.externalVideoId),new u_(l),new v_(z.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer),new U_({impressionCommands:h.impressionCommands,abandonCommands:h.onAbandonCommands,completeCommands:h.completeCommands}),new F_(d.WA),new B_({current:null}),new E_(d.o8.qo),new z_(C.inPlayerLayoutId),new A_(C.inPlayerSlotId),
new K_(d.Gx.j),new W_(qN(h.pings)),new o_(z.adPlacementConfig)];b:{q=g.v(q);for(l=q.next();!l.done;l=q.next())if(l=l.value,"SLOT_TYPE_PLAYER_UNDERLAY"===l.adSlotMetadata.slotType&&(z=g.S(l.fulfillmentContent.fulfilledLayout,v0))&&(z=g.S(z.renderingContent,N2a))&&z.associatedPlayerBytesLayoutId===w){w=l;break b}w=void 0}w&&d.push(new W1a(w));e&&d.push(new G_(e.WA));h.adNextParams&&d.push(new k_(h.adNextParams));h.clickthroughEndpoint&&d.push(new l_(h.clickthroughEndpoint));h.legacyInfoCardVastExtension&&
d.push(new T_(h.legacyInfoCardVastExtension));h.sodarExtensionData&&d.push(new H_(h.sodarExtensionData));(e=m.get(h.externalVideoId))&&d.push(new Q_(e));e=new UZ(d)}else e=new zC("Invalid vod media renderer");if(e instanceof zC)return e;a=Object.assign({},f,c,{Rb:t,renderingContent:b.renderingContent,Ba:e,xc:ZZ(n,a)(f),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData});b=g.S(b.renderingContent,JP);if(!b||!r0(b))return new zC("Invalid meida renderer");p=i3a(p,b.externalVideoId);p.instreamVideoAdRenderer=
b;p.lC="AD_PLACEMENT_KIND_START";return a};
E3a=function(a,b,c,d,e,f){function h(n){return LD(b,n)}
var l=d.vF.inPlayerSlotId,m={layoutId:d.vF.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",eb:"core"};c={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eb:"core",slotEntryTrigger:new y0(h,a),slotFulfillmentTriggers:[new A0(h,l)],slotExpirationTriggers:[new B0(h,l),new x0(h,c)]};a=Object.assign({},m,{layoutExitNormalTriggers:[new z0(h,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],Rb:new Map,Ba:new UZ([new x_(d.vF),new o_(d.adPlacementConfig),
e]),xc:ZZ(f,c)(m),adLayoutLoggingData:d.vF.adLayoutLoggingData});return Object.assign({},c,{Ba:new UZ([new O_(a)])})};
y3a=function(a,b){for(var c=[],d=g.v(a.layoutExitNormalTriggers||[]),e=d.next();!e.done;e=d.next()){e=H0(e.value,b);if(e instanceof zC)return e;c.push(e)}d=[];var f=g.v(a.layoutExitSkipTriggers||[]);for(e=f.next();!e.done;e=f.next()){e=H0(e.value,b);if(e instanceof zC)return e;d.push(e)}f=[];var h=g.v(a.layoutExitMuteTriggers||[]);for(e=h.next();!e.done;e=h.next()){e=H0(e.value,b);if(e instanceof zC)return e;f.push(e)}h=[];a=g.v(a.layoutExitUserInputSubmittedTriggers||[]);for(e=a.next();!e.done;e=
a.next()){e=H0(e.value,b);if(e instanceof zC)return e;h.push(e)}return{layoutExitNormalTriggers:c,layoutExitSkipTriggers:d,layoutExitMuteTriggers:f,layoutExitUserInputSubmittedTriggers:h,Qc:[]}};
A3a=function(a,b,c){for(var d=[],e=g.v(a),f=e.next();!f.done;f=e.next())if(f=g.S(f.value.renderingContent,JP)){if(!r0(f))return new zC("Invalid vod media renderer");d.push(F3a(f))}e=d.map(function(q){return q.qo});
f=[];for(var h=0,l=0;l<a.length;l++){var m=g.S(a[l].renderingContent,JP);if(m){var n=new oN(h,e),p=L0(d[h].playerVars,d[h].zz,b,c,n);f[l]={Gx:n,adPodSkipTarget:m.adPodSkipTarget,o8:d[h],WA:p};h++}}return f};
F3a=function(a){var b=my(a.playerVars),c=Number(b.length_seconds);isNaN(c)&&(c=0,DD("Expected valid length seconds in player vars but got NaN"));return{playerVars:b,zz:a.playerVars,qo:c}};
H3a=function(a,b){var c;if(null==(c=a.questions)||!c.length||!a.playbackCommands||(void 0===b||!b)&&1!==a.questions.length)return!1;a=g.v(a.questions);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=c=void 0,e=(null==(c=g.S(b,AN))?void 0:c.surveyAdQuestionCommon)||(null==(d=g.S(b,zN))?void 0:d.surveyAdQuestionCommon);if(!G3a(e))return!1}return!0};
I3a=function(a){a=((null==a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;if(a)if(a.playbackCommands&&a.questions&&1===a.questions.length){var c,d=(null==(b=g.S(a.questions[0],AN))?void 0:b.surveyAdQuestionCommon)||(null==(c=g.S(a.questions[0],zN))?void 0:c.surveyAdQuestionCommon);b=G3a(d)}else b=!1;else b=!1;return b};
G3a=function(a){if(!a)return!1;a=g.S(a.instreamAdPlayerOverlay,J3a);var b=g.S(null==a?void 0:a.skipOrPreviewRenderer,P0),c=g.S(null==a?void 0:a.adInfoRenderer,Q0);return(g.S(null==a?void 0:a.skipOrPreviewRenderer,R0)||b)&&c?!0:!1};
K3a=function(a){var b=0;a=g.v(a.questions);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c=g.S(c,AN)||g.S(c,zN)){var d=void 0;b+=(null==(d=c.surveyAdQuestionCommon)?void 0:d.durationMilliseconds)||0}return b};
L3a=function(a){var b,c,d,e,f=(null==(c=g.S(null==(b=a.questions)?void 0:b[0],AN))?void 0:c.surveyAdQuestionCommon)||(null==(e=g.S(null==(d=a.questions)?void 0:d[0],zN))?void 0:e.surveyAdQuestionCommon),h;b=[].concat(g.la((null==(h=a.playbackCommands)?void 0:h.instreamAdCompleteCommands)||[]),g.la((null==f?void 0:f.timeoutCommands)||[]));var l,m,n,p,q,t,w,z,C,G,O,N,K,W,Z,Q,na,r,J,ha;return{impressionCommands:null==(l=a.playbackCommands)?void 0:l.impressionCommands,errorCommands:null==(m=a.playbackCommands)?
void 0:m.errorCommands,muteCommands:null==(n=a.playbackCommands)?void 0:n.muteCommands,unmuteCommands:null==(p=a.playbackCommands)?void 0:p.unmuteCommands,pauseCommands:null==(q=a.playbackCommands)?void 0:q.pauseCommands,rewindCommands:null==(t=a.playbackCommands)?void 0:t.rewindCommands,resumeCommands:null==(w=a.playbackCommands)?void 0:w.resumeCommands,skipCommands:null==(z=a.playbackCommands)?void 0:z.skipCommands,progressCommands:null==(C=a.playbackCommands)?void 0:C.progressCommands,M6a:null==
(G=a.playbackCommands)?void 0:G.clickthroughCommands,fullscreenCommands:null==(O=a.playbackCommands)?void 0:O.fullscreenCommands,activeViewViewableCommands:null==(N=a.playbackCommands)?void 0:N.activeViewViewableCommands,activeViewMeasurableCommands:null==(K=a.playbackCommands)?void 0:K.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null==(W=a.playbackCommands)?void 0:W.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:null==(Z=a.playbackCommands)?
void 0:null==(Q=Z.activeViewTracking)?void 0:Q.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:null==(na=a.playbackCommands)?void 0:null==(r=na.activeViewTracking)?void 0:r.activeViewAudioMeasurableCommands,endFullscreenCommands:null==(J=a.playbackCommands)?void 0:J.endFullscreenCommands,abandonCommands:null==(ha=a.playbackCommands)?void 0:ha.abandonCommands,completeCommands:b}};
O3a=function(a,b,c,d,e,f,h){return function(l,m){return M3a(a,m.slotId,l,f,function(n,p){n=h(n);return N3a(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new $1a(c),d],c.adLayoutLoggingData)})}};
R3a=function(a,b,c,d,e,f,h){if(!P3a(a))return new zC("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[Q3a(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=KD(e.fb.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",eb:"core"},q=new z0(e.j,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Rb:new Map,layoutExitNormalTriggers:[q],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],eb:"core",Ba:new UZ([new a2a(l)]),xc:n(p)}})]};
P3a=function(a){a=g.S(null==a?void 0:a.additionalPlayerOverlay,S3a);if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1};
V3a=function(a,b,c,d,e){var f;if(null==(f=a.playerOverlay)||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!I3a(a))return function(){return new zC("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=K3a(h);return 0>=l?function(){return new zC("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=T3a(m,c,d,function(q){var t=n(q),w=q.slotId;
q=L3a(h);w=KD(e.fb.get(),"LAYOUT_TYPE_SURVEY",w);var z={layoutId:w,layoutType:"LAYOUT_TYPE_SURVEY",eb:"core"},C=new z0(e.j,d),G=new F0(e.j,w),O=new G0(e.j,w),N=new U3a(e.j);return{layoutId:w,layoutType:"LAYOUT_TYPE_SURVEY",Rb:new Map,layoutExitNormalTriggers:[C,N],layoutExitSkipTriggers:[G],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[O],Qc:[],eb:"core",Ba:new UZ([new Z1a(h),new o_(b),new R_(l/1E3),new U_(q)]),xc:t(z),adLayoutLoggingData:h.adLayoutLoggingData}});
m=R3a(a,c,p.slotId,d,e,m,n);return m instanceof zC?m:[p].concat(g.la(m))}};
d4a=function(a,b,c,d,e,f){var h=[];try{var l=[];if(c.renderer.linearAdSequenceRenderer)var m=function(z){z=W3a(z.slotId,c,b,e(z),d,f);l=z.q9;return z.H2};
else if(c.renderer.instreamVideoAdRenderer)m=function(z){var C=z.slotId;z=e(z);var G=c.config.adPlacementConfig,O=X3a(G),N=O.rT;O=O.uT;var K=c.renderer.instreamVideoAdRenderer,W;if(null==K?0:null==(W=K.playerOverlay)?0:W.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var Z=Y3a(K);W=Math.min(N+1E3*Z.videoLengthSeconds,O);O=new oN(0,[Z.videoLengthSeconds],W);var Q=Z.videoLengthSeconds,na=Z.playerVars,r=Z.instreamAdPlayerOverlayRenderer,J=Z.adVideoId,
ha=Z3a(c),X=Z.Rb;Z=Z.sS;var Da=null==K?void 0:K.adLayoutLoggingData;K=null==K?void 0:K.sodarExtensionData;C=KD(b.fb.get(),"LAYOUT_TYPE_MEDIA",C);var za={layoutId:C,layoutType:"LAYOUT_TYPE_MEDIA",eb:"core"};return{layoutId:C,layoutType:"LAYOUT_TYPE_MEDIA",Rb:X,layoutExitNormalTriggers:[new $3a(b.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],eb:"core",Ba:new UZ([new u_(d),new E_(Q),new F_(na),new I_(N),new J_(W),r&&new v_(r),new o_(G),new t_(J),
new p_(O),new N_(ha),K&&new H_(K),new B_({current:null}),new L_({}),new W_(Z)].filter(a4a)),xc:z(za),adLayoutLoggingData:Da}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var n=b4a(a,d,c.adSlotLoggingData,m);h.push(n);for(var p=g.v(l),q=p.next();!q.done;q=p.next()){var t=q.value,w=t(a,e);if(w instanceof zC)return w;h.push.apply(h,g.la(w))}}catch(z){return new zC(z,{errorMessage:z.message,AdPlacementRenderer:c,numberOfSurveyRenderers:c4a(c)})}return h};
c4a=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=g.S(b,JP))?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0};
W3a=function(a,b,c,d,e,f){var h=b.config.adPlacementConfig,l=X3a(h),m=l.rT,n=l.uT;l=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==l||!l.length)throw new TypeError("Expected linear ads");var p=[],q={ZX:m,aY:0,n9:p};l=l.map(function(w){return e4a(a,w,q,c,d,h,e,n)}).map(function(w,z){z=new oN(z,p,n);
return w(z)});
var t=l.map(function(w){return w.I2});
return{H2:f4a(c,a,m,t,h,Z3a(b),d,n,f),q9:l.map(function(w){return w.p9})}};
e4a=function(a,b,c,d,e,f,h,l){var m=Y3a(g.S(b,JP)),n=c.ZX,p=c.aY,q=Math.min(n+1E3*m.videoLengthSeconds,l);c.ZX=q;c.aY++;c.n9.push(m.videoLengthSeconds);var t,w,z=null==(t=g.S(b,JP))?void 0:null==(w=t.playerOverlay)?void 0:w.instreamSurveyAdRenderer;if("nPpU29QrbiU"===m.adVideoId&&null==z)throw new TypeError("Survey slate media has no survey overlay");return function(C){var G=m.playerVars;2<=C.u&&(G.slot_pos=C.j);G.autoplay="1";var O,N;G=m.videoLengthSeconds;var K=m.playerVars,W=m.Rb,Z=m.sS,Q=m.instreamAdPlayerOverlayRenderer,
na=m.adVideoId,r=null==(O=g.S(b,JP))?void 0:O.adLayoutLoggingData;O=null==(N=g.S(b,JP))?void 0:N.sodarExtensionData;N=KD(d.fb.get(),"LAYOUT_TYPE_MEDIA",a);var J={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",eb:"adapter"};C={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",Rb:W,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],eb:"adapter",Ba:new UZ([new u_(h),new E_(G),new F_(K),new I_(n),new J_(q),new K_(p),new B_({current:null}),
Q&&new v_(Q),new o_(f),new t_(na),new p_(C),O&&new H_(O),z&&new g2a(z),new L_({}),new W_(Z)].filter(a4a)),xc:e(J),adLayoutLoggingData:r};G=V3a(g.S(b,JP),f,h,C.layoutId,d);return{I2:C,p9:G}}};
Y3a=function(a){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var b=my(a.playerVars),c=Number(b.length_seconds);if(isNaN(c))throw new TypeError("Expected valid length seconds in player vars");var d=Number(a.trimmedMaxNonSkippableAdDurationMs);c=isNaN(d)?c:Math.min(c,d/1E3);d=a.playerOverlay||{};d=void 0===d.instreamAdPlayerOverlayRenderer?null:d.instreamAdPlayerOverlayRenderer;var e=b.video_id;e||
(e=(e=a.externalVideoId)?e:void 0);if(!e)throw new TypeError("Expected valid video id in IVAR");return{playerVars:b,videoLengthSeconds:c,instreamAdPlayerOverlayRenderer:d,adVideoId:e,Rb:a.pings?rN(a.pings):new Map,sS:qN(a.pings)}};
Z3a=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
X3a=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{rT:b,uT:a}};
h4a=function(a,b,c,d,e,f,h){var l=c.pings;return l?[g4a(a,f,e,function(m){var n=m.slotId;m=h(m);var p=c.adLayoutLoggingData;n=KD(b.fb.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",n);var q={layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",eb:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Rb:rN(l),layoutExitNormalTriggers:[new x0(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],eb:"core",Ba:new UZ([new o_(d)]),
xc:m(q),adLayoutLoggingData:p}})]:new zC("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:c})};
j4a=function(a,b,c,d,e,f,h,l){a=i4a(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=KD(b.fb.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",eb:"core"},q=new Map,t=e.impressionUrls;t&&q.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Rb:q,layoutExitNormalTriggers:[new E0(b.j,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],eb:"core",Ba:new UZ([new d2a(e),new o_(c)]),xc:m(p)}});
return a instanceof zC?a:[a]};
o4a=function(a,b,c,d,e,f,h,l){a=k4a(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=KD(b.fb.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=l4a(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,m4a(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=KD(b.fb.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=l4a(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,m4a(b,n,p))):q.imageOverlayAdContentRenderer?(q=KD(b.fb.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=m4a(b,n,p),n.push(new n4a(b.j,q)),n=l4a(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new Y_("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new Y_("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof zC?a:[a]};
r4a=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new zC("Expected valid duration for AdActionInterstitialRenderer."):function(p){return p4a(b,p.slotId,c,n,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,h(p),function(q){return q4a(a,q,e,function(t,w){var z=t.slotId;t=h(t);z=KD(b.fb.get(),"LAYOUT_TYPE_ENDCAP",
z);return N3a(b,z,w,c,t,"LAYOUT_TYPE_ENDCAP",[new x_(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}};
s4a=function(a,b,c,d){if(!c.playerVars)return new zC("No playerVars available in AdIntroRenderer.");var e=my(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=KD(a.fb.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",eb:"adapter"};return{Wj:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Rb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],eb:"adapter",Ba:new UZ([new M_({}),
new o_(b),new B_({current:null}),new F_(e)]),xc:f(l)},zl:[new D0(a.j,h,["error"])],yj:[],Wx:[],Vx:[]}}};
u4a=function(a,b,c,d,e,f,h,l,m,n){n=void 0===n?!1:n;var p=K3a(e);if(!H3a(e,n))return new zC("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=p)return new zC("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=O3a(a,b,e,f,c,d,h);return q instanceof zC?q:function(t){return t4a(b,t.slotId,c,p,L3a(e),h(t),q,l,m)}};
v4a=function(a){if(isNaN(Number(a.timeoutSeconds))||!a.text||!a.ctaButton||!g.S(a.ctaButton,g.pM)||!a.brandImage)return!1;var b;return a.backgroundImage&&g.S(a.backgroundImage,S0)&&(null==(b=g.S(a.backgroundImage,S0))?0:b.landscape)?!0:!1};
x4a=function(a,b,c,d,e,f,h,l){function m(q){return q4a(a,q,d,n)}
function n(q,t){var w=q.slotId;q=h(q);w=KD(b.fb.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",w);return N3a(b,w,t,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new Y1a(e),f],e.adLayoutLoggingData)}
if(!v4a(e))return new zC("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=1E3*e.timeoutSeconds;return function(q){var t={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},w=h(q);q=w4a(b,q.slotId,c,p,t,new Map,w,m);t=new z_(q.kH);w=new q_(l);return{Wj:{layoutId:q.layoutId,layoutType:q.layoutType,Rb:q.Rb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],
Qc:[],eb:q.eb,Ba:new UZ([].concat(g.la(q.Tx),[t,w])),xc:q.xc,adLayoutLoggingData:q.adLayoutLoggingData},zl:[],yj:q.layoutExitMuteTriggers,Wx:q.layoutExitUserInputSubmittedTriggers,Vx:q.Qc,Bg:q.Bg}}};
z4a=function(a,b,c,d,e,f,h,l,m,n,p,q,t,w,z,C){a=JD(a,"SLOT_TYPE_PLAYER_BYTES");d=k3a(b,h,d,e,a,n,p);if(d instanceof zC)return d;var G;h=null==(G=VZ(d.Ba,"metadata_type_fulfilled_layout"))?void 0:G.layoutId;if(!h)return new zC("Invalid adNotify layout");b=y4a(h,b,c,e,f,m,l,n,q,t,w,z,C);return b instanceof zC?b:[d].concat(g.la(b))};
y4a=function(a,b,c,d,e,f,h,l,m,n,p,q,t){c=A4a(b,c,d,f,h,l,m,n,p,q,t);B4a(f)?(d=C4a(b,a),a=JD(b.fb.get(),"SLOT_TYPE_IN_PLAYER"),f=KD(b.fb.get(),"LAYOUT_TYPE_SURVEY",a),l=D4a(b,d,l),b=[].concat(g.la(l.slotExpirationTriggers),[new C0(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:b,eb:l.eb},{slotId:a,layoutId:f}),e=a instanceof zC?a:{Qv:Object.assign({},
l,{slotExpirationTriggers:b,Ba:new UZ([new O_(a.layout)]),adSlotLoggingData:e}),fg:a.fg}):e=o3a(b,a,l,e,c);return e instanceof zC?e:[].concat(g.la(e.fg),[e.Qv])};
G4a=function(a,b,c,d,e,f,h,l,m,n,p,q,t){b=A4a(a,b,c,e,f,h,m,n,p,q,t);B4a(e)?(e=E4a(a,c,h,l),e instanceof zC?c=e:(l=JD(a.fb.get(),"SLOT_TYPE_IN_PLAYER"),m=KD(a.fb.get(),"LAYOUT_TYPE_SURVEY",l),h=[].concat(g.la(e.slotExpirationTriggers),[new C0(a.j,m)]),l=b({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,eb:e.eb,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h},{slotId:l,layoutId:m}),l instanceof zC?c=l:(a=
F4a(a,c,l.xT,e.slotEntryTrigger),c=a instanceof zC?a:{Qv:{slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:a,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h,eb:e.eb,Ba:new UZ([new X_(T0(c)),new O_(l.layout)]),adSlotLoggingData:d},fg:l.fg}))):c=p3a(a,c,h,l,d,m.Zc,b);return c instanceof zC?c:c.fg.concat(c.Qv)};
B4a=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(g.S(b.value,s0))return!0;return!1};
A4a=function(a,b,c,d,e,f,h,l,m,n,p){return function(q,t){if(N0(p)&&O0(p))a:{var w=H4a(d);if(w instanceof zC)t=w;else{for(var z=0,C=[],G=[],O=[],N=[],K=[],W=[],Z=new C_({current:null}),Q=new s_({current:null}),na=!1,r=[],J=0,ha=[],X=0;X<d.length;X++){var Da=d[X],za=g.S(Da,JP);if(za){za=K0(za);if(za instanceof Y_){t=new zC(za);break a}var Za=new oN(J,w),cb=L0(za.playerVars,za.zz,h,n,Za);J++;ha[X]={renderer:Da,data:za,Gx:Za,WA:cb}}}J=-1;for(w=0;w<d.length;w++)if(X=d[w],Da=g.S(X,LP)){X=s4a(b,c,Da,l);
if(X instanceof zC){t=X;break a}X=X(q);C.push(X.Wj);G=[].concat(g.la(X.zl),g.la(G));O=[].concat(g.la(X.yj),g.la(O));X.Bg&&(r=[X.Bg].concat(g.la(r)))}else if(g.S(X,JP))Da=ha[w],J=Da.data,X=Da.Gx,Da=Da.WA,za=ha[w+1],Za=void 0,za&&(Za=za.WA),X=I4a(b,J.Gn,c,Da,J.qo,f,X,l(q),Q,m.get(J.Gn.externalVideoId),Za),z++,C.push(X.Wj),G=[].concat(g.la(X.zl),g.la(G)),O=[].concat(g.la(X.yj),g.la(O)),na||(W.push(Q),na=!0),J=(J=J.Gn.adPodSkipTarget)&&0<J?J:-1;else if(Da=g.S(X,KP)){X=r4a(a,b,c,Da,f,z,l,Q,J);if(X instanceof
zC){t=X;break a}X=X(q);C.push(X.Wj);G=[].concat(g.la(X.zl),g.la(G));O=[].concat(g.la(X.yj),g.la(O));X.Bg&&(r=[X.Bg].concat(g.la(r)))}else if(Da=g.S(X,s0)){if(void 0===t){t=new zC("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:Da});break a}X=u4a(a,b,c,f,Da,Z,l,t,z,U0(p,"supports_multi_step_on_desktop"));if(X instanceof zC){t=X;break a}X=X(q);C.push(X.Wj);X.Bg&&r.push(X.Bg);G=[].concat(g.la(X.zl),g.la(G));O=[].concat(g.la(X.yj),g.la(O));N=[].concat(g.la(X.Wx),
g.la(N));K=[].concat(g.la(X.Vx),g.la(K));W=[Z].concat(g.la(W))}else if(X=g.S(X,t0)){X=x4a(a,b,c,f,X,Z,l,z);if(X instanceof zC){t=X;break a}X=X(q);C.push(X.Wj);X.Bg&&r.push(X.Bg);O=[].concat(g.la(X.yj),g.la(O))}else{t=new zC("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={nw:C,layoutExitSkipTriggers:G,layoutExitUserInputSubmittedTriggers:N,Qc:K,layoutExitMuteTriggers:O,Tx:W,fg:r}}}else a:if(z=H4a(d),z instanceof zC)t=z;else{C=0;G=[];O=[];N=[];K=[];W=[];Z=[];Q=new C_({current:null});
na=new s_({current:null});r=!1;ha=[];J=-1;w=g.v(d);for(X=w.next();!X.done;X=w.next())if(X=X.value,g.S(X,LP)){X=s4a(b,c,g.S(X,LP),l);if(X instanceof zC){t=X;break a}X=X(q);G.push(X.Wj);O=[].concat(g.la(X.zl),g.la(O));N=[].concat(g.la(X.yj),g.la(N));X.Bg&&(ha=[X.Bg].concat(g.la(ha)))}else if(g.S(X,JP)){J=K0(g.S(X,JP));if(J instanceof Y_){t=new zC(J);break a}X=new oN(C,z);X=I4a(b,J.Gn,c,L0(J.playerVars,J.zz,h,n,X),J.qo,f,X,l(q),na,m.get(J.Gn.externalVideoId));C++;G.push(X.Wj);O=[].concat(g.la(X.zl),
g.la(O));N=[].concat(g.la(X.yj),g.la(N));r||(Z.push(na),r=!0);J=(J=J.Gn.adPodSkipTarget)&&0<J?J:-1}else if(g.S(X,KP)){X=r4a(a,b,c,g.S(X,KP),f,C,l,na,J);if(X instanceof zC){t=X;break a}X=X(q);G.push(X.Wj);O=[].concat(g.la(X.zl),g.la(O));N=[].concat(g.la(X.yj),g.la(N));X.Bg&&(ha=[X.Bg].concat(g.la(ha)))}else if(g.S(X,s0)){if(void 0===t){t=new zC("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.S(X,s0)});break a}X=u4a(a,b,c,f,g.S(X,s0),Q,l,t,C,
U0(p,"supports_multi_step_on_desktop"));if(X instanceof zC){t=X;break a}X=X(q);G.push(X.Wj);X.Bg&&ha.push(X.Bg);O=[].concat(g.la(X.zl),g.la(O));N=[].concat(g.la(X.yj),g.la(N));K=[].concat(g.la(X.Wx),g.la(K));W=[].concat(g.la(X.Vx),g.la(W));Z=[Q].concat(g.la(Z))}else if(g.S(X,t0)){X=x4a(a,b,c,f,g.S(X,t0),Q,l,C);if(X instanceof zC){t=X;break a}X=X(q);G.push(X.Wj);X.Bg&&ha.push(X.Bg);N=[].concat(g.la(X.yj),g.la(N))}else{t=new zC("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={nw:G,
layoutExitSkipTriggers:O,layoutExitUserInputSubmittedTriggers:K,Qc:W,layoutExitMuteTriggers:N,Tx:Z,fg:ha}}if(t instanceof zC)return t;var wa;W=q.slotId;z=t.nw;C=t.layoutExitSkipTriggers;G=t.layoutExitMuteTriggers;O=t.layoutExitUserInputSubmittedTriggers;N=t.Tx;q=l(q);K=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";W=e?e.layoutId:KD(b.fb.get(),K,W);Z={layoutId:W,layoutType:K,eb:"core"};return{layout:{layoutId:W,layoutType:K,Rb:new Map,layoutExitNormalTriggers:[new E0(b.j,W)],layoutExitSkipTriggers:C,
layoutExitMuteTriggers:G,layoutExitUserInputSubmittedTriggers:O,Qc:[],eb:"core",Ba:new UZ([new D_(z)].concat(g.la(N))),xc:q(Z)},fg:t.fg,xT:null==(wa=t.nw[0])?void 0:wa.layoutId}}};
H4a=function(a){var b=[];a=g.v(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,g.S(c,JP)){c=K0(g.S(c,JP));if(c instanceof Y_)return new zC(c);b.push(c.qo)}return b};
K4a=function(a,b,c,d,e,f,h,l){if(!H3a(c,void 0===l?!1:l))return new zC("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var m=K3a(c);if(0>=m)return new zC("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new C_({current:null}),p=O3a(a,b,c,n,d,f,h);return J4a(a,d,f,m,e,function(q,t){var w=q.slotId,z=L3a(c);q=h(q);w=KD(b.fb.get(),"LAYOUT_TYPE_MEDIA_BREAK",w);var C={layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",
eb:"core"},G=p(w,t);VZ(G.Ba,"metadata_type_fulfilled_layout")||DD("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");z=[new o_(d),new S_(m),new U_(z),n];return{O4:{layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Rb:new Map,layoutExitNormalTriggers:[new E0(b.j,w)],layoutExitSkipTriggers:[new F0(b.j,t.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new G0(b.j,t.layoutId)],Qc:[],eb:"core",Ba:new UZ(z),xc:q(C)},
h4:G}})};
L4a=function(a){if(!U2a(a))return!1;var b=g.S(a.adVideoStart,IP);return b?g.S(a.linearAd,JP)&&kO(b)?!0:(DD("Invalid Sandwich with notify"),!1):!1};
M4a=function(a){if(null==a.linearAds)return!1;a=g.S(a.adStart,IP);return a?kO(a)?!0:(DD("Invalid LASR with notify"),!1):!1};
N4a=function(a){if(!T2a(a))return!1;a=g.S(a.adStart,IP);return a?kO(a)?!0:(DD("Invalid LASR with notify"),!1):!1};
V0=function(a,b,c,d,e,f,h,l){this.fb=a;this.Jb=b;this.Ab=c;this.Ca=d;this.Kb=e;this.j=f;this.Aj=h;this.loadPolicy=void 0===l?1:l};
nra=function(a,b,c,d,e,f,h,l,m){var n=[];if(0===b.length&&0===d.length)return n;b=b.filter(J2a);var p=c.filter(S2a),q=d.filter(J2a),t=new Map,w=w3a(b),z=c.some(function(X){var Da;return"SLOT_TYPE_PLAYER_BYTES"===(null==X?void 0:null==(Da=X.adSlotMetadata)?void 0:Da.slotType)});
c=c.some(function(X){var Da;return"SLOT_TYPE_PLAYER_UNDERLAY"===(null==X?void 0:null==(Da=X.adSlotMetadata)?void 0:Da.slotType)});
if(z||c)c=z3a(p,b,l,e,w,a.Kb.get(),a.loadPolicy,t,a.Ca.get(),a.fb.get()),c instanceof zC?DD(c,void 0,void 0,{contentCpn:e}):n.push.apply(n,g.la(c));c=g.v(b);for(p=c.next();!p.done;p=c.next()){p=p.value;var C=O4a(a,t,p,e,f,h,z,l,w,m);C instanceof zC?DD(C,void 0,void 0,{renderer:p.renderer,config:p.config.adPlacementConfig,kind:p.config.adPlacementConfig.kind,contentCpn:e,daiEnabled:h}):n.push.apply(n,g.la(C))}P4a(a.Ca.get())||(f=Q4a(a,q,e,l,w,t),n.push.apply(n,g.la(f)));if(null===a.j||h&&!l.hT){var G,
O,N;a=l.Zc&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(G=b[0].config)?void 0:null==(O=G.adPlacementConfig)?void 0:O.kind)&&(null==(N=b[0].renderer)?void 0:N.adBreakServiceRenderer);if(!n.length&&!a){var K,W,Z,Q;DD("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,"first APR kind":null==(K=b[0])?void 0:null==(W=K.config)?void 0:null==(Z=W.adPlacementConfig)?void 0:Z.kind,renderer:null==(Q=b[0])?void 0:Q.renderer})}return n}G=
d.filter(J2a);n.push.apply(n,g.la(g3a(t,G,a.Jb.get(),a.j,e,z)));if(!n.length){var na,r,J,ha;DD("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,daiEnabled:h.toString(),"first APR kind":null==(na=b[0])?void 0:null==(r=na.config)?void 0:null==(J=r.adPlacementConfig)?void 0:J.kind,renderer:null==(ha=b[0])?void 0:ha.renderer})}return n};
Q4a=function(a,b,c,d,e,f){function h(t){return ZZ(a.Kb.get(),t)}
var l=[];b=g.v(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,q=n.linearAdSequenceRenderer;p&&L4a(p)?(DD("Found AdNotify with SandwichedLinearAdRenderer"),q=g.S(p.adVideoStart,IP),p=g.S(p.linearAd,JP),I0(f,n,m.config.adPlacementConfig.kind),n=void 0,q=l3a(null==(n=q)?void 0:n.layout.layoutId,a.Jb.get(),a.Ab.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Ca.get(),a.Kb.get()),q instanceof zC?DD(q):l.push.apply(l,g.la(q))):
q&&(!q.adLayoutMetadata&&M4a(q)||q.adLayoutMetadata&&N4a(q))&&(DD("Found AdNotify with LinearAdSequenceRenderer"),I0(f,n,m.config.adPlacementConfig.kind),n=void 0,p=y4a(null==(n=g.S(q.adStart,IP))?void 0:n.layout.layoutId,a.Jb.get(),a.Ab.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,q0(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Ca.get()),p instanceof zC?DD(p):l.push.apply(l,g.la(p)))}return l};
O4a=function(a,b,c,d,e,f,h,l,m,n){function p(G){return ZZ(a.Kb.get(),G)}
var q=c.renderer,t=c.config.adPlacementConfig,w=t.kind,z=c.adSlotLoggingData,C=l.hT&&"AD_PLACEMENT_KIND_START"===w;C=f&&!C;if(null!=q.adsEngagementPanelRenderer)return J0(b,c.elementId,w,q.adsEngagementPanelRenderer.isContentVideoEngagementPanel,q.adsEngagementPanelRenderer.adVideoId,q.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,z,function(G,O,N,K){var W=a.Ab.get(),Z=q.adsEngagementPanelRenderer,Q=ZZ(a.Kb.get(),G);return W0(W,G.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
new R1a(Z),O,N,Z.impressionPings,Q,q.adsEngagementPanelRenderer.adLayoutLoggingData,K)}),[];
if(null!=q.actionCompanionAdRenderer){if(q.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return c3a(a.Jb.get(),a.j,a.Ab.get(),q.actionCompanionAdRenderer,t,z,d,p);J0(b,c.elementId,w,q.actionCompanionAdRenderer.isContentVideoCompanion,q.actionCompanionAdRenderer.adVideoId,q.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,z,function(G,O,N,K){var W=a.Ab.get(),Z=q.actionCompanionAdRenderer,Q=ZZ(a.Kb.get(),G);return W0(W,G.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new j_(Z),
O,N,Z.impressionPings,Q,q.actionCompanionAdRenderer.adLayoutLoggingData,K)})}else if(q.imageCompanionAdRenderer)J0(b,c.elementId,w,q.imageCompanionAdRenderer.isContentVideoCompanion,q.imageCompanionAdRenderer.adVideoId,q.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,z,function(G,O,N,K){var W=a.Ab.get(),Z=q.imageCompanionAdRenderer,Q=ZZ(a.Kb.get(),G);
return W0(W,G.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new T1a(Z),O,N,Z.impressionPings,Q,q.imageCompanionAdRenderer.adLayoutLoggingData,K)});
else if(q.shoppingCompanionCarouselRenderer)J0(b,c.elementId,w,q.shoppingCompanionCarouselRenderer.isContentVideoCompanion,q.shoppingCompanionCarouselRenderer.adVideoId,q.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,z,function(G,O,N,K){var W=a.Ab.get(),Z=q.shoppingCompanionCarouselRenderer,Q=ZZ(a.Kb.get(),G);return W0(W,G.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new U1a(Z),O,N,Z.impressionPings,Q,q.shoppingCompanionCarouselRenderer.adLayoutLoggingData,K)});
else if(q.adBreakServiceRenderer){if(!Z2a(c))return[];if("AD_PLACEMENT_KIND_PAUSE"===w)return Y2a(a.Jb.get(),t,z,c.renderer.adBreakServiceRenderer,d);if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==w)return W2a(a.Jb.get(),t,z,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.Aj)return new zC("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");l.Zc||DD("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:w,adPlacementConfig:t,
daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(l.Zc),clientPlaybackNonce:l.clientPlaybackNonce});R4a(a.Aj,{adPlacementRenderer:c,contentCpn:d,aT:e})}else{if(q.clientForecastingAdRenderer)return j4a(a.Jb.get(),a.Ab.get(),t,z,q.clientForecastingAdRenderer,d,e,p);if(q.invideoOverlayAdRenderer)return o4a(a.Jb.get(),a.Ab.get(),t,z,q.invideoOverlayAdRenderer,d,e,p);if((q.linearAdSequenceRenderer||q.instreamVideoAdRenderer)&&C)return d4a(a.Jb.get(),a.Ab.get(),c,d,p,n);if(q.linearAdSequenceRenderer&&
!C){if(h)return[];I0(b,q,w);if(q.linearAdSequenceRenderer.adLayoutMetadata){if(!T2a(q.linearAdSequenceRenderer))return new zC("Received invalid LinearAdSequenceRenderer.")}else if(null==q.linearAdSequenceRenderer.linearAds)return new zC("Received invalid LinearAdSequenceRenderer.");if(g.S(q.linearAdSequenceRenderer.adStart,IP)){DD("Found AdNotify in LinearAdSequenceRenderer");b=g.S(q.linearAdSequenceRenderer.adStart,IP);if(!UBa(b))return new zC("Invalid AdMessageRenderer.");c=q.linearAdSequenceRenderer.linearAds;
return z4a(a.fb.get(),a.Jb.get(),a.Ab.get(),a.Kb.get(),t,z,b,q0(q.linearAdSequenceRenderer.adLayoutMetadata)?q.linearAdSequenceRenderer.adLayoutMetadata:void 0,c,d,e,l,p,m,a.loadPolicy,a.Ca.get())}return G4a(a.Jb.get(),a.Ab.get(),t,z,q.linearAdSequenceRenderer.linearAds,q0(q.linearAdSequenceRenderer.adLayoutMetadata)?q.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,e,l,p,m,a.loadPolicy,a.Ca.get())}if(!q.remoteSlotsRenderer||f){if(q.instreamVideoAdRenderer&&!C){if(h)return[];I0(b,q,w);return q3a(a.Jb.get(),
a.Ab.get(),t,z,q.instreamVideoAdRenderer,d,e,l,p,m,a.loadPolicy,a.Ca.get(),a.Kb.get())}if(q.instreamSurveyAdRenderer)return K4a(a.Jb.get(),a.Ab.get(),q.instreamSurveyAdRenderer,t,z,d,p,U0(a.Ca.get(),"supports_multi_step_on_desktop"));if(null!=q.sandwichedLinearAdRenderer)return U2a(q.sandwichedLinearAdRenderer)?g.S(q.sandwichedLinearAdRenderer.adVideoStart,IP)?(DD("Found AdNotify in SandwichedLinearAdRenderer"),b=g.S(q.sandwichedLinearAdRenderer.adVideoStart,IP),UBa(b)?(c=g.S(q.sandwichedLinearAdRenderer.linearAd,
JP))?m3a(b,c,t,a.fb.get(),a.Jb.get(),a.Ab.get(),a.Kb.get(),z,d,e,l,p,m,a.loadPolicy,a.Ca.get()):new zC("Missing IVAR from Sandwich"):new zC("Invalid AdMessageRenderer.")):G4a(a.Jb.get(),a.Ab.get(),t,z,[q.sandwichedLinearAdRenderer.adVideoStart,q.sandwichedLinearAdRenderer.linearAd],void 0,d,e,l,p,m,a.loadPolicy,a.Ca.get()):new zC("Received invalid SandwichedLinearAdRenderer.");if(null!=q.videoAdTrackingRenderer)return h4a(a.Jb.get(),a.Ab.get(),q.videoAdTrackingRenderer,t,z,d,p)}}return[]};
X0=function(a){g.E.call(this);this.j=a};
vC=function(a,b,c,d){a.j().hj(b,d);c=c();a=a.j();a.Sb.j("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.v(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;sO(d.Sb,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);sO(d.Sb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.$b(c.slotId))throw new zC("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(b0(e,c))throw new zC("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType},
"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.rf.Sp.has(c.slotType))throw new zC("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.rf.Wq.has(c.slotType))throw new zC("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");E2a(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);E2a(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",
c.slotFulfillmentTriggers);E2a(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=i0(f,h);if(b0(f,c))throw new zC("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new z2a(c));f.j.set(h,l)}catch(r){r instanceof zC&&r.nk?(Z_(d.Sb,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",r.nk,c),DD(r,c,void 0,void 0,r.nu)):(Z_(d.Sb,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",
c),DD(r,c));break a}b0(d.j,c).I=!0;try{var m=d.j,n=b0(m,c),p=c.slotEntryTrigger,q=m.rf.bl.get(p.triggerType);q&&(q.Wl("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.ya.set(p.triggerId,q));for(var t=g.v(c.slotFulfillmentTriggers),w=t.next();!w.done;w=t.next()){var z=w.value,C=m.rf.bl.get(z.triggerType);C&&(C.Wl("TRIGGER_CATEGORY_SLOT_FULFILLMENT",z,c,null),n.Z.set(z.triggerId,C))}for(var G=g.v(c.slotExpirationTriggers),O=G.next();!O.done;O=G.next()){var N=O.value,K=m.rf.bl.get(N.triggerType);K&&(K.Wl("TRIGGER_CATEGORY_SLOT_EXPIRATION",
N,c,null),n.ea.set(N.triggerId,K))}var W=m.rf.Sp.get(c.slotType).get().wf(m.B,c);n.J=W;var Z=m.rf.Wq.get(c.slotType).get().wf(m.D,c);Z.init();n.u=Z}catch(r){r instanceof zC&&r.nk?(Z_(d.Sb,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",r.nk,c),DD(r,c,void 0,void 0,r.nu)):(Z_(d.Sb,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),DD(r,c));$_(d,c,!0);break a}sO(d.Sb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Hi(c);for(var Q=g.v(d.Hd),na=Q.next();!na.done;na=
Q.next())na.value.Hi(c);k2a(d,c)}};
Y0=function(a,b,c,d){this.er=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
Z0=function(a,b,c,d){g.E.call(this);var e=this;this.ac=a;this.Jb=b;this.uc=c;this.j=new Map;d.get().addListener(this);g.lb(this,function(){d.isDisposed()||d.get().removeListener(e)})};
lra=function(a,b){var c=0x8000000000000;for(var d=0,e=g.v(b.slotFulfillmentTriggers),f=e.next();!f.done;f=e.next())f=f.value,f instanceof Y0?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):DD("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new aq(c,d);d="throttledadcuerange:"+b.slotId;a.j.set(d,b);a.uc.get().addCueRange(d,c.start,c.end,!1,a)};
$0=function(){g.E.apply(this,arguments);this.Gj=!0;this.Wk=new Map;this.j=new Map};
S4a=function(a,b){a=g.v(a.Wk.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
T4a=function(a,b){a=g.v(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.v(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}DD("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.$b(b)),layoutId:b})};
$3a=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
U4a=function(a,b){this.j=b;this.slotType="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
V4a=function(a,b){this.j=b;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
W4a=function(a,b){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=b;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=a(this.triggerType)};
U3a=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
X4a=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
a1=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=a(this.triggerType)};
Y4a=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
n4a=function(a,b){this.durationMs=45E3;this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
Z4a=function(a){var b=[new y_(a.tp),new v_(a.instreamAdPlayerOverlayRenderer),new b2a(a.tO),new o_(a.adPlacementConfig),new E_(a.videoLengthSeconds),new R_(a.KG)];a.mK&&b.push(new s_(a.mK));return b};
$4a=function(a,b,c,d,e,f){a=c.inPlayerLayoutId?c.inPlayerLayoutId:KD(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",eb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Rb:new Map,layoutExitNormalTriggers:[new z0(function(l){return LD(f,l)},c.tp)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],eb:b,Ba:d,xc:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}};
b1=function(a){var b=this;this.fb=a;this.j=function(c){return LD(b.fb.get(),c)}};
v3a=function(a,b,c,d,e,f){c=new UZ([new w_(c),new o_(d)]);b=KD(a.fb.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",eb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Rb:new Map,layoutExitNormalTriggers:[new z0(function(h){return LD(a.fb.get(),h)},e)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],eb:"core",Ba:c,xc:f(d),adLayoutLoggingData:void 0}};
M0=function(a,b,c,d,e){var f=Z4a(d);return $4a(b,c,d,new UZ(f),e,a.fb.get())};
a5a=function(a,b,c,d,e){var f=Z4a(d);f.push(new m_(d.K1));f.push(new n_(d.L1));return $4a(b,c,d,new UZ(f),e,a.fb.get())};
W0=function(a,b,c,d,e,f,h,l,m,n){b=KD(a.fb.get(),c,b);var p={layoutId:b,layoutType:c,eb:"core"},q=new Map;h&&q.set("impression",h);h=[new U4a(a.j,e)];n&&h.push(new D0(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Rb:q,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],eb:"core",Ba:new UZ([d,new o_(f),new y_(e)]),xc:l(p),adLayoutLoggingData:m}};
m4a=function(a,b,c){var d=[];d.push(new V4a(a.j,c));b&&d.push(b);return d};
l4a=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,eb:"core"};return{layoutId:b,layoutType:c,Rb:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[new C0(a.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],eb:"core",Ba:new UZ([new S1a(d),new o_(e)]),xc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
N3a=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,eb:"core"};return{layoutId:b,layoutType:f,Rb:new Map,layoutExitNormalTriggers:[new z0(a.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],eb:"core",Ba:new UZ([new o_(d)].concat(g.la(h))),xc:e(m),adLayoutLoggingData:l}};
p4a=function(a,b,c,d,e,f,h,l,m,n,p,q){a=w4a(a,b,c,d,e,f,h,l,p,q);b=a.Tx;c=new z_(a.kH);d=a.layoutExitSkipTriggers;0<m&&(b.push(c),b.push(new r_(m)),d=[]);b.push(new q_(n));return{Wj:{layoutId:a.layoutId,layoutType:a.layoutType,Rb:a.Rb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],eb:a.eb,Ba:new UZ(b),xc:a.xc,adLayoutLoggingData:a.adLayoutLoggingData},zl:d,yj:a.layoutExitMuteTriggers,Wx:a.layoutExitUserInputSubmittedTriggers,
Vx:a.Qc,Bg:a.Bg}};
t4a=function(a,b,c,d,e,f,h,l,m){b=w4a(a,b,c,d,e,new Map,f,function(n){return h(n,l)});
a=new G0(a.j,b.kH);c=new z_(b.kH);m=new q_(m);return{Wj:{layoutId:b.layoutId,layoutType:b.layoutType,Rb:b.Rb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],eb:b.eb,Ba:new UZ([].concat(g.la(b.Tx),[c,m])),xc:b.xc,adLayoutLoggingData:b.adLayoutLoggingData},zl:b.layoutExitSkipTriggers,yj:b.layoutExitMuteTriggers,Wx:[].concat(g.la(b.layoutExitUserInputSubmittedTriggers),[a]),Vx:b.Qc,Bg:b.Bg}};
w4a=function(a,b,c,d,e,f,h,l,m,n){b=KD(a.fb.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",eb:"adapter"};l=l(b);var q=VZ(l.Ba,"metadata_type_fulfilled_layout");q||DD("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");q=q?q.layoutId:"";c=[new o_(c),new S_(d),new U_(e)];n&&c.push(new K_(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Rb:f,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new F0(a.j,
q)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],eb:"adapter",Tx:c,xc:h(p),adLayoutLoggingData:m,Bg:l,kH:q}};
r3a=function(a,b,c,d,e,f,h,l,m){a=b5a(a,"core",b,c,d,e,f,h,l,m);return{layoutId:a.layoutId,layoutType:a.layoutType,Rb:a.Rb,layoutExitNormalTriggers:a.layoutExitNormalTriggers,layoutExitSkipTriggers:a.layoutExitSkipTriggers,layoutExitMuteTriggers:a.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:a.layoutExitUserInputSubmittedTriggers,Qc:a.Qc,eb:a.eb,Ba:new UZ(a.WS),xc:a.xc,adLayoutLoggingData:a.adLayoutLoggingData}};
I4a=function(a,b,c,d,e,f,h,l,m,n,p){c=b5a(a,"adapter",b,c,d,e,f,h,l,n,p);d=c.layoutExitSkipTriggers;e=c.WS;b.adPodSkipTarget&&0<b.adPodSkipTarget&&(e.push(m),e.push(new r_(b.adPodSkipTarget)),d=[]);e.push(new q_(h.j));b.isCritical&&(d=[new D0(a.j,c.layoutId,["error"])].concat(g.la(d)));return{Wj:{layoutId:c.layoutId,layoutType:c.layoutType,Rb:c.Rb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],eb:c.eb,Ba:new UZ(e),xc:c.xc,
adLayoutLoggingData:c.adLayoutLoggingData},zl:d,yj:c.layoutExitMuteTriggers,Wx:c.layoutExitUserInputSubmittedTriggers,Vx:c.Qc}};
b5a=function(a,b,c,d,e,f,h,l,m,n,p){var q=c.elementId,t={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",eb:b};d=[new o_(d),new p_(l),new t_(c.externalVideoId),new u_(h),new v_(c.playerOverlay.instreamAdPlayerOverlayRenderer),new U_({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new F_(e),new B_({current:null}),new E_(f)];p&&d.push(new G_(p));(p=c.playerUnderlay)&&d.push(new w_(p));p=JD(a.fb.get(),"SLOT_TYPE_IN_PLAYER");e=(e=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?
e:KD(a.fb.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",p);d.push(new z_(e));d.push(new A_(p));d.push(new K_(l.j));c.adNextParams&&d.push(new k_(c.adNextParams));c.shrunkenPlayerBytesConfig&&d.push(new X1a(c.shrunkenPlayerBytesConfig));c.clickthroughEndpoint&&d.push(new l_(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new T_(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new H_(c.sodarExtensionData));n&&d.push(new Q_(n));d.push(new W_(qN(c.pings)));return{layoutId:q,
layoutType:"LAYOUT_TYPE_MEDIA",Rb:rN(c.pings),layoutExitNormalTriggers:[new E0(a.j,q)],layoutExitSkipTriggers:c.skipOffsetMilliseconds?[new F0(a.j,e)]:[],layoutExitMuteTriggers:[new F0(a.j,e)],layoutExitUserInputSubmittedTriggers:[],Qc:[],eb:b,WS:d,xc:m(t),adLayoutLoggingData:c.adLayoutLoggingData}};
f4a=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return jO(p,[],["LAYOUT_TYPE_MEDIA"])})||DD("Unexpect subLayout type for DAI composite layout");
b=KD(a.fb.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",eb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Rb:new Map,layoutExitNormalTriggers:[new $3a(a.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],eb:"core",Ba:new UZ([new I_(c),new J_(l),new D_(d),new o_(e),new N_(f),new L_({}),new h2a(m)]),xc:h(n)}};
a4a=function(a){return null!=a};
c5a=function(a){this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=a(this.triggerType)};
d5a=function(a,b,c){this.er=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)};
X2a=function(a){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=a(this.triggerType)};
c1=function(a,b,c){this.triggeringLayoutId=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
e5a=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
d1=function(a,b,c,d,e){this.er=b;this.j=c;this.visible=d;this.layoutId=e;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=a(this.triggerType)};
f5a=function(a,b,c){this.er=b;this.j=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
e1=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
f1=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
g1=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=a(this.triggerType)};
h1=function(a,b,c){var d=this;this.fb=a;this.Ab=b;this.Ca=c;this.j=function(e){return LD(d.fb.get(),e)}};
V2a=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=JD(a.fb.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Qp&&d.Qp.start!==d.Bn.start&&l.push(new Y0(a.j,c,new aq(d.Qp.start,d.Bn.start),!1));l.push(new Y0(a.j,c,new aq(d.Bn.start,d.Bn.end),d.wD));d={getAdBreakUrl:b.getAdBreakUrl,IO:d.Bn.start,HO:d.Bn.end};b=new f1(a.j,h);f=[new P_(d)].concat(g.la(f));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:[new x0(a.j,
c),new B0(a.j,h),new e1(a.j,h)],eb:"core",Ba:new UZ(f),adSlotLoggingData:e}};
h5a=function(a,b,c){var d=[];c=g.v(c);for(var e=c.next();!e.done;e=c.next())d.push(g5a(a,b,e.value));return d};
g5a=function(a,b,c){return null!=c.triggeringSlotId&&c.triggeringSlotId===a?c.clone(b):c};
M3a=function(a,b,c,d,e){return i5a(a,b,c,d,e)};
q4a=function(a,b,c,d){var e=JD(a.fb.get(),"SLOT_TYPE_IN_PLAYER");return i5a(a,e,b,c,d)};
i5a=function(a,b,c,d,e){var f=new y0(a.j,c),h=[new A0(a.j,b)];a=[new B0(a.j,b),new x0(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,eb:"core",Ba:new UZ([new O_(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eb:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a},c))]),adSlotLoggingData:void 0}};
J4a=function(a,b,c,d,e,f){var h=JD(a.fb.get(),"SLOT_TYPE_PLAYER_BYTES"),l=JD(a.fb.get(),"SLOT_TYPE_IN_PLAYER"),m=KD(a.fb.get(),"LAYOUT_TYPE_SURVEY",l);d=i1(a,b,c,d);var n=[new A0(a.j,h)];c=[new B0(a.j,h),new x0(a.j,c),new C0(a.j,m)];if(d instanceof zC)return d;l=f({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,eb:"core",slotEntryTrigger:d,slotFulfillmentTriggers:n,slotExpirationTriggers:c},{slotId:l,layoutId:m});f=l.O4;l=l.h4;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",
slotPhysicalPosition:1,slotEntryTrigger:F4a(a,b,f.layoutId,d),slotFulfillmentTriggers:n,slotExpirationTriggers:c,eb:"core",Ba:new UZ([new O_(f),new X_(T0(b))]),adSlotLoggingData:e},l]};
T0=function(a){return"AD_PLACEMENT_KIND_START"===a.kind};
s3a=function(a,b,c,d,e){e=e?e:JD(a.fb.get(),"SLOT_TYPE_IN_PLAYER");c=new y0(a.j,c);var f=[new A0(a.j,e)];a=[new x0(a.j,b),new B0(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,eb:"core",Ba:new UZ([new O_(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eb:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
u3a=function(a,b,c,d){var e=JD(a.fb.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new y0(a.j,c);var f=[new A0(a.j,e)];a=[new x0(a.j,b),new B0(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,eb:"core",Ba:new UZ([new O_(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,eb:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
k3a=function(a,b,c,d,e,f,h){var l=JD(a.fb.get(),"SLOT_TYPE_IN_PLAYER"),m=KD(a.fb.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=j5a(a,d,f,h,m);if(d instanceof zC)return d;h=[new A0(a.j,l)];e=[new x0(a.j,f),new A0(a.j,e),new g1(a.j,e)];c=ZZ(c,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eb:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e});a=a.Ab.get();f={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",eb:"core"};b={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",
Rb:new Map,layoutExitNormalTriggers:[new X4a(a.j,m,b.durationMs)],layoutExitSkipTriggers:[new Y4a(a.j,m,b.durationMs)],Qc:[new a1(a.j,m)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],eb:"core",Ba:new UZ([new f2a(b)]),xc:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eb:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e,Ba:new UZ([new O_(b)])}};
k4a=function(a,b,c,d,e,f){b=i1(a,b,c,d);if(b instanceof zC)return b;var h=b instanceof Y0?new f5a(a.j,c,b.j):null;d=JD(a.fb.get(),"SLOT_TYPE_IN_PLAYER");var l=[new A0(a.j,d)];a=[new x0(a.j,c),new B0(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eb:"core",slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a},h);return f instanceof Y_?new zC(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,
slotExpirationTriggers:a,eb:"core",Ba:new UZ([new O_(f)]),adSlotLoggingData:e}};
T3a=function(a,b,c,d){var e=JD(a.fb.get(),"SLOT_TYPE_IN_PLAYER");c=new y0(a.j,c);var f=[new A0(a.j,e)],h=[new B0(a.j,e),new x0(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eb:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:h};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:[new A0(a.j,e)],slotExpirationTriggers:[new x0(a.j,b),new B0(a.j,e)],eb:"core",Ba:new UZ([new O_(d(f))])}};
Q3a=function(a,b,c,d,e){var f=JD(a.fb.get(),"SLOT_TYPE_IN_PLAYER");c=new c1(a.j,d,c);d=[new A0(a.j,f)];a=[new x0(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a,eb:"core",Ba:new UZ([new O_(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eb:"core",slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))])}};
f3a=function(a,b,c,d,e,f){var h=JD(a.fb.get(),b);return k5a(a,h,b,new y0(a.j,d),[new x0(a.j,c),new B0(a.j,h),new D0(a.j,d,["error"])],e,f)};
e3a=function(a,b,c,d,e,f,h){var l=JD(a.fb.get(),b);return k5a(a,l,b,new D0(a.j,e,["normal"]),[new x0(a.j,c),new B0(a.j,l),new D0(a.j,d,["error"])],f,h)};
b3a=function(a,b,c,d,e){var f=JD(a.fb.get(),b);return k5a(a,f,b,new AC(a.j,c),[new x0(a.j,c),new B0(a.j,f)],d,e)};
g4a=function(a,b,c,d){var e=JD(a.fb.get(),"SLOT_TYPE_PLAYBACK_TRACKING");b=new AC(a.j,b);var f=[new A0(a.j,e)];a=[new B0(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:f,slotExpirationTriggers:a,eb:"core",Ba:new UZ([new O_(d({slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,eb:"core",slotEntryTrigger:b,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))]),adSlotLoggingData:c}};
b4a=function(a,b,c,d){var e=JD(a.fb.get(),"SLOT_TYPE_PLAYER_BYTES"),f=new e5a(a.j),h=[new w0(a.j,e)];b=[new x0(a.j,b)];var l={slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,eb:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b};a=a.Ca.get();return!g.wK(a.F.T())&&a.F.T().experiments.kb("enable_pacf_slot_asde_player_byte_h5")||g.wK(a.F.T())&&a.F.T().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,eb:"core",Ba:new UZ([new O_(d(l)),new L_({})]),adSlotLoggingData:c}:{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,eb:"core",Ba:new UZ([new O_(d(l)),new L_({})])}};
C4a=function(a,b){return P4a(a.Ca.get())?new D0(a.j,b,["normal","error","skipped"]):new D0(a.j,b,["normal"])};
o3a=function(a,b,c,d,e){b=C4a(a,b);a=D4a(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:a.slotEntryTrigger,slotFulfillmentTriggers:a.slotFulfillmentTriggers,slotExpirationTriggers:a.slotExpirationTriggers,eb:a.eb});return e instanceof zC?e:{Qv:Object.assign({},a,{Ba:new UZ([new O_(e.layout)]),adSlotLoggingData:d}),fg:e.fg}};
p3a=function(a,b,c,d,e,f,h){c=E4a(a,b,c,d);if(c instanceof zC)return c;h=h({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:c.slotEntryTrigger,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers,eb:c.eb});if(h instanceof zC)return h;d=[new X_(T0(b)),new O_(h.layout)];f&&d.push(new V_({}));a=F4a(a,b,h.xT,c.slotEntryTrigger);return a instanceof zC?a:{Qv:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,
slotEntryTrigger:a,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers,eb:c.eb,Ba:new UZ(d),adSlotLoggingData:e},fg:h.fg}};
F4a=function(a,b,c,d){return a.Ca.get().dI(T0(b))?null==c?new zC("Expected at least one triggering layout id of a PlayerBytes slot in SSAP"):new c5a(a.j):d};
D4a=function(a,b,c){var d=JD(a.fb.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new A0(a.j,d)];a=[new B0(a.j,d),new x0(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:e,slotExpirationTriggers:a,eb:"core"}};
E4a=function(a,b,c,d){b=i1(a,b,c,d);return b instanceof zC?b:D4a(a,b,c)};
i4a=function(a,b,c,d,e,f){var h=JD(a.fb.get(),"SLOT_TYPE_FORECASTING");b=i1(a,b,c,d);if(b instanceof zC)return b;d=[new A0(a.j,h)];a=[new B0(a.j,h),new x0(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a,eb:"core",Ba:new UZ([new O_(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,eb:"core",slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))]),adSlotLoggingData:e}};
l5a=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new AC(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=Wsa(b,d),a instanceof zC?a:e(a.Bn,f);case "AD_PLACEMENT_KIND_END":return new d5a(a.j,c,f);default:return new zC("Cannot construct entry trigger",{kind:b.kind})}};
j5a=function(a,b,c,d,e){return l5a(a,b,c,d,function(f,h){return new d1(a.j,c,f,h,e)})};
i1=function(a,b,c,d){return l5a(a,b,c,d,function(e,f){return new Y0(a.j,c,e,f)})};
k5a=function(a,b,c,d,e,f,h){a=[new w0(a.j,b)];return{slotId:b,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e,eb:"core",Ba:new UZ([new O_(h({slotId:b,slotType:c,slotPhysicalPosition:1,eb:"core",slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e}))]),adSlotLoggingData:f}};
j1=function(a,b){g.E.call(this);this.Ca=a;this.u=b;this.eventCount=0};
sO=function(a,b,c){a.j(b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData)};
c0=function(a,b,c,d){a.j(b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
q2a=function(a,b,c,d){YZ(a.u.get())&&a.j("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
Z_=function(a,b,c,d,e){a.j("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,d,e,void 0,d.adSlotLoggingData,e?e.adLayoutLoggingData:void 0,{errorType:b,errorMessage:c})};
m5a=function(a,b,c,d,e,f,h,l,m,n,p){if(a.B()&&("ADS_CLIENT_EVENT_TYPE_ERROR"!==b||a.mP())&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){b||DD("Empty PACF event type",f,h);var q=YZ(a.u.get());b={eventType:b,eventOrder:++a.eventCount};var t={};f&&(t.slotData=I1a(q,f));h&&(t.layoutData=J1a(q,h));l&&(t.triggerData=XZ(l.trigger,l.category));c&&(t.opportunityData=K1a(q,c,d,e));c={organicPlaybackContext:{contentCpn:a.Ta.get().rg(1).clientPlaybackNonce}};c.organicPlaybackContext.isLivePlayback=a.Ta.get().rg(1).Zc;
var w;c.organicPlaybackContext.isMdxPlayback=null==(w=a.Ta.get().rg(1))?void 0:w.isMdxPlayback;var z;if(w=null==(z=a.Ta.get().rg(2))?void 0:z.clientPlaybackNonce)c.adVideoPlaybackContext={adVideoCpn:w};c&&(t.externalContext=c);b.adClientData=t;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);p&&(b.errorInfo=p);m={adsClientEvent:b};U0(a.Ca.get(),"tvh5_pacf_disable_gel_log_action")||g.nA("adsClientStateChange",m)}};
k1=function(a,b,c){j1.call(this,a,b);this.Ca=a;this.Ta=c};
l1=function(){this.j=new Map};
m1=function(a,b,c,d,e){g.E.call(this);this.F=a;this.u=b;this.Ha=c;this.Ta=d;this.xf=e;this.listeners=[];var f=new Fz(this);g.I(this,f);f.S(a,"internalAbandon",this.LN);g.lb(this,function(){g.Hz(f)})};
n1=function(a){g.E.call(this);this.F=a;this.j=new Map;this.u=new Fz(this);g.I(this,this.u);this.u.S(this.F,g.WD("ad"),this.onCueRangeEnter,this);this.u.S(this.F,g.XD("ad"),this.onCueRangeExit,this)};
o5a=function(a,b){(b=a.j.get(b))&&n5a(a,b)};
n5a=function(a,b){a.F.Bh([b.oe],b.Hn);a.j.delete(b.oe.id)};
p5a=function(a,b,c,d,e){g.UD.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
o1=function(a){this.F=a};
p1=function(a){this.F=a;this.j=Math.random()<g.jJ(this.F.T().experiments,"tv_pacf_logging_sample_rate")};
q1=function(a){var b,c,d,e;return g.GK(a.F.T())&&(null==(b=a.F.getVideoData(1))?void 0:null==(c=b.getPlayerResponse())?void 0:null==(d=c.playerConfig)?void 0:null==(e=d.ssapConfig)?void 0:e.ssapPrerollEnabled)||!1};
U0=function(a,b){return a.F.T().K(b)};
r1=function(a){var b,c,d;return(null==(b=a.F.getVideoData(1).getPlayerResponse())?void 0:null==(c=b.playerConfig)?void 0:null==(d=c.daiConfig)?void 0:d.enableServerStitchedDai)||!1};
q5a=function(a){return a.F.T().K("html5_enable_vod_lasr_with_notify_pacf")};
P4a=function(a){return a.F.T().K("html5_enable_vod_slar_with_notify_pacf")};
m2a=function(a){if(g.IK(a.F.T())||vK(a.F.T())||g.wK(a.F.T()))return!0;DD("Composite VOD on legacy path.");return!1};
r5a=function(a){return a.F.T().K("html5_recognize_predict_start_cue_point")};
s5a=function(a){return a.F.T().K("enable_lr_home_infeed_ads_inline_playback_progress_pings")};
t3a=function(a){return a.F.T().experiments.kb("enable_desktop_player_underlay")};
N0=function(a){return a.F.T().experiments.kb("html5_load_ads_instead_of_cue")};
O0=function(a){return a.F.T().experiments.kb("html5_preload_ads")};
t5a=function(a){return a.F.T().experiments.kb("html5_rebase_video_to_ad_timeline")};
s1=function(a,b){this.Ha=a;this.F=b;this.j=new Map;nN().subscribe("adactiveviewmeasurable",this.RC,this);nN().subscribe("adfullyviewableaudiblehalfdurationimpression",this.QC,this);nN().subscribe("adviewableimpression",this.SC,this);nN().subscribe("adaudioaudible",this.OC,this);nN().subscribe("adaudiomeasurable",this.PC,this)};
u5a=function(a,b,c,d,e){e=void 0===e?null:e;a.j.has(b)?DD("Unexpected registration of layout in LidarApi"):(a.j.set(b,e),wl(hm().Ac,"fmd",1),np(cm(lp),c),jAa(nN(),b,{KB:function(){return d?{currentTime:a.Ha.get().getCurrentTimeSec(2,!1),duration:d,Yc:2===a.Ha.get().getPresentingPlayerType()&&1===t1(a.Ha.get(),2),a8a:!1,b8a:!0,volume:a.Ha.get().isMuted()?0:a.Ha.get().getVolume()/100}:{}}}))};
v5a=function(a,b){a.j.has(b)?(a.j.delete(b),delete nN().j[b]):DD("Unexpected unregistration of layout in LidarApi")};
u1=function(a,b,c,d){this.I=a;this.J=b;this.C=c;this.D=d};
v1=function(a,b,c,d){var e=void 0===e?new u1(function(){var f=a.T(),h=a.getVideoData(1);return g.QK(f,h?g.YM(h):"")},function(){return a.T().pageId},function(){return a.T().authUser},function(f){return a.T().K(f)}):e;
this.F=a;this.u=b;this.Ob=c;this.Ta=d;this.mu=e;this.nI=null;this.j=new Map;this.Tl=new MN(e)};
x5a=function(a,b,c,d){var e=T4a(a.u.get(),c);e?(c=w1(a,w5a(e),e,void 0,d),b.hasOwnProperty("baseUrl")?a.mu.send(b,c):a.Tl.send(b,c,{})):DD("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
x1=function(a,b){g.nA("adsClientStateChange",b)};
y5a=function(a,b){a.j.has(b.Ay())?DD("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.Ay(),b)};
z5a=function(a,b){a.j.delete(b.Ay())||DD("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
w5a=function(a){var b=VZ(a.Ba,"metadata_type_ad_placement_config");a=VZ(a.Ba,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,AV:a}};
w1=function(a,b,c,d,e){var f=c?A5a(a):{};c=c?B5a(a,c.layoutId):{};var h=C5a(a),l,m=null==(l=a.Ta.get().rg(2))?void 0:l.clientPlaybackNonce;a.F.T().K("enable_player_logging_lr_home_infeed_ads")&&!m&&(m=a.Ta.get().rg(1).clientPlaybackNonce);l={};d=Object.assign({},EN(a.F,d),sAa(b.adPlacementConfig,a.F.K("h5_disable_client_subs_slot_pos")),c,f,h,(l.FINAL=DN(function(){return"1"}),l.AD_CPN=DN(function(){return m||""}),l));
a.F.K("h5_disable_client_subs_slot_pos")||(d.SLOT_POS=DN(function(){return(b.AV||0).toString()}));
a={};e=Object.assign({},d,e);d=g.v(Object.values(D5a));for(f=d.next();!f.done;f=d.next())f=f.value,c=e[f],null!=c&&null!=c.toString()&&(a[f]=c.toString());return a};
A5a=function(a){var b={},c,d=null==(c=a.nI)?void 0:c.Li/1E3;null!=d&&(b.SURVEY_ELAPSED_MS=DN(function(){return Math.round(1E3*d).toString()}));
b.SURVEY_LOCAL_TIME_EPOCH_S=DN(function(){return Math.round(Date.now()/1E3).toString()});
return b};
B5a=function(a,b){a=a.j.get(b);if(!a)return{};a=a.CL();if(!a)return{};b={};return b.YT_ERROR_CODE=a.AI.toString(),b.ERRORCODE=a.jE.toString(),b.ERROR_MSG=a.errorMessage,b};
C5a=function(a){var b={},c=a.F.getVideoData(1);b.ASR=DN(function(){var d;return null!=(d=null==c?void 0:c.kA)?d:null});
b.EI=DN(function(){var d;return null!=(d=null==c?void 0:c.eventId)?d:null});
return b};
y1=function(a,b,c){g.E.call(this);this.F=a;this.Sd=b;this.Ca=c;this.listeners=[];this.XM=null;this.nK=new Map;b=new g.eI(this);g.I(this,b);b.S(a,"videodatachange",this.T7);b.S(a,"serverstitchedvideochange",this.p7);this.Ku=this.rg()};
F5a=function(a,b,c){var d=E5a(a,b,c);a.Ku=d;a.listeners.forEach(function(e){e.XN(d)})};
E5a=function(a,b,c){var d=b.author,e=b.clientPlaybackNonce,f=b.isListed,h=b.Mc,l=b.title,m=b.Ji,n=b.mj,p=b.isMdxPlayback,q=b.ek,t=b.mdxEnvironment,w=b.isAutonav,z=b.jp,C=b.Ul,G=b.Au,O=b.videoId||"",N=b.profilePicture||"",K=b.bk||"";b=b.Jp||void 0;h=a.Sd.get().j.get(h)||{layoutId:null,slotId:null};var W=a.F.getVideoData(1),Z=W.Zc();W=W.getPlayerResponse();c=1E3*a.F.getDuration(c);a=1E3*a.F.getDuration(1);var Q,na,r=(null==W?void 0:null==(Q=W.playerConfig)?void 0:null==(na=Q.daiConfig)?void 0:na.enableDai)||
!1,J,ha;Q=(null==W?void 0:null==(J=W.playerConfig)?void 0:null==(ha=J.daiConfig)?void 0:ha.enablePreroll)||!1;return Object.assign({},h,{videoId:O,author:d,clientPlaybackNonce:e,j8:c,aT:a,daiEnabled:r,hT:Q,isListed:f,Zc:Z,profilePicture:N,title:l,bk:K,Ji:m,mj:n,Jp:b,isMdxPlayback:p,ek:q,mdxEnvironment:t,isAutonav:w,jp:z,Ul:C,Au:G})};
z1=function(a,b,c){g.E.call(this);this.F=a;this.Ta=b;this.Ca=c;this.listeners=[];this.lF=[];this.j=function(){DD("Called 'doUnlockPreroll' before it's initialized.")};
b=new Fz(this);c=new g.eI(this);g.I(this,c);g.I(this,b);b.S(a,"progresssync",this.R6);b.S(a,"presentingplayerstatechange",this.I6);b.S(a,"fullscreentoggled",this.onFullscreenToggled);b.S(a,"onVolumeChange",this.onVolumeChange);b.S(a,"minimized",this.Th);b.S(a,"resize",this.Db);c.S(a,g.WD("appad"),this.Rl)};
ZP=function(a){q1(a.Ca.get())||a.j()};
G5a=function(a,b){a.lF=a.lF.filter(function(c){return c!==b})};
H5a=function(a,b){var c;b=null!=(c=a.Ta.get().nK.get(b))?c:null;if(null===b)return DD("Expected ad video start time on playback timeline"),0;a=a.F.getCurrentTime(2,!0);return a<b?0:a-b};
t1=function(a,b){return a.F.Cb(b)};
I5a=function(a){var b=a.F.jb().Fj();a=a.F.Ak(!0,!0);return b.height-(a.height+a.top)};
J5a=function(a){a.F.cueVideoByPlayerVars({videoId:"empty_video"},2)};
K5a=function(a,b){var c=a.F.T();g.nK(c)||"3"!==c.controlsType||a.F.jb().PD(b)};
A1=function(a,b){g.Ip(a.F.getRootNode(),b)};
B1=function(a,b){g.Kp(a.F.getRootNode(),b)};
L5a=function(a,b,c,d,e){g.E.call(this);var f=this;this.fb=n0(function(){return new ID});
g.I(this,this.fb);this.Ab=n0(function(){return new b1(f.fb)});
g.I(this,this.Ab);this.Nc=n0(function(){return new $0});
g.I(this,this.Nc);this.ac=n0(function(){return new X0(a)});
g.I(this,this.ac);this.Jb=n0(function(){return new h1(f.fb,f.Ab,f.Ca)});
g.I(this,this.Jb);this.Sd=n0(function(){return new l1});
g.I(this,this.Sd);this.Pb=n0(function(){return new o0(e)});
g.I(this,this.Pb);this.Lc=n0(function(){return new BO(b)});
g.I(this,this.Lc);this.uc=n0(function(){return new n1(b)});
g.I(this,this.uc);this.Ad=n0(function(){return new o1(b)});
g.I(this,this.Ad);this.Ca=n0(function(){return new p1(b)});
g.I(this,this.Ca);this.Kb=n0(function(){return new $Z(f.Ca)});
g.I(this,this.Kb);this.Xd=n0(function(){return new V0(f.fb,f.Jb,f.Ab,f.Ca,f.Kb,null,null)});
g.I(this,this.Xd);this.Ta=n0(function(){return new y1(b,f.Sd,f.Ca)});
g.I(this,this.Ta);this.Sb=new k1(this.Ca,this.Kb,this.Ta);g.I(this,this.Sb);this.Ha=n0(function(){return new z1(b,f.Ta,f.Ca)});
g.I(this,this.Ha);this.Ob=n0(function(){return new s1(f.Ha,b)});
g.I(this,this.Ob);this.Oa=n0(function(){return new v1(b,f.Nc,f.Ob,f.Ta)});
g.I(this,this.Oa);this.Sc=new ED(this.ac,this.Xd,c,this.Ca,a,this.Ta,this.Ha,this.Lc);g.I(this,this.Sc);var h=new m1(b,this.Sc,this.Ha,this.Ta);this.pg=n0(function(){return h});
this.Ys=h;this.sf=new Z0(this.ac,this.Jb,this.uc,this.pg);g.I(this,this.sf);this.Wc=new tC(this.Ca,this.ac,this.Jb,this.Xd,this.Ta,this.sf,c);g.I(this,this.Wc);this.rf={Kv:new Map,Sp:new Map,bl:new Map,Wq:new Map,zq:new Map};this.listeners=[];this.uv={Wc:this.Wc,Bq:null,Ci:this.Ca.get(),rb:this.Pb.get(),nt:this.Ha.get(),Sc:this.Sc,Tm:this.fb.get(),Aq:null,Jk:{jM:function(){}},
ej:this.Nc.get(),zn:this.Ta.get()}};
C1=function(){this.listeners=new Set};
D1=function(){};
M5a=function(a,b){a=b.bgp&&b.bgub;var c=b.upb;b.siub&&b.scs&&(a||c)&&$ka(b.siub,b.scs,b.bgub,b.bgp,c)};
N5a=function(a,b,c,d,e){this.callback=a;this.slot=b;this.Ab=c;this.Kb=d;this.Ca=e;this.j=null};
O5a=function(a,b,c,d){a.j&&DD("Currently active request ongoing for slot. This should never happen",a.slot);a.j=b();a.j.then(function(e){a.j=null;d&&d(e);var f=e.Wz?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.Ab.get(),l=a.slot.slotId,m=ZZ(a.Kb.get(),{slotId:a.slot.slotId,slotType:a.slot.slotType,slotPhysicalPosition:a.slot.slotPhysicalPosition,eb:a.slot.eb,slotEntryTrigger:a.slot.slotEntryTrigger,slotFulfillmentTriggers:a.slot.slotFulfillmentTriggers,slotExpirationTriggers:a.slot.slotExpirationTriggers}),
n=KD(h.fb.get(),f,l),p={layoutId:n,layoutType:f,eb:"core"};e={layoutId:n,layoutType:f,Rb:new Map,layoutExitNormalTriggers:[new W4a(h.j,l)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],eb:"core",Ba:new UZ([new e2a(e)]),xc:m(p)};n2a(a.callback,a.slot,e)},function(e){a.j=null;
c&&c();e instanceof Kf||j2a(a.callback,a.slot,new zC(e,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})};
P5a=function(a){if(null==a.j)a.callback.eH(a.slot);else try{a.j.cancel(),a.j=null,a.callback.eH(a.slot)}catch(b){a.j=null,j2a(a.callback,a.slot,new zC(b,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
Q5a=function(a,b,c,d,e,f,h,l,m){this.slot=b;this.Hf=c;this.Oa=h;this.Ha=l;this.qf=m;this.j=new N5a(a,b,d,e,f)};
R5a=function(a){var b;null==(b=a.qf)||b.get().jt(VZ(a.slot.Ba,"metadata_type_cue_point").identifier)};
S5a=function(a,b,c,d,e,f){this.slot=b;this.Hf=c;this.j=new N5a(a,b,d,e,f)};
T5a=function(a,b){this.callback=a;this.slot=b};
U5a=function(a,b){return xC(a,b.Be,b.slotType)?!0:!1};
V5a=function(){};
E1=function(a,b,c,d,e,f,h){this.Hf=a;this.Ab=b;this.Kb=c;this.Ca=d;this.Oa=e;this.Ha=f;this.qf=h};
F1=function(){};
W5a=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.j=d};
G1=function(a,b){return jO(a,b.Be,b.Nf)?!0:!1};
H1=function(a){this.j=a};
I1=function(a,b,c,d,e){e=void 0===e?null:e;this.B=a;this.Oa=b;this.layoutId=d;this.C=0;this.D=null;this.j=new Set;this.u=Array.from(this.B.get("progress")||[]);this.u.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.I={adPlacementConfig:c,AV:e}};
J1=function(){return["metadata_type_ad_placement_config"]};
K1=function(a){var b=a.Oa.get();return w1(b,a.I)};
L1=function(a,b,c){for(c=void 0===c?!1:c;a.C<a.u.length;){var d=a.u[a.C];if(d.offsetMilliseconds<=b||c)X5a(a,"progress",[d]),a.C++;else break}};
M1=function(a,b){return a.j.has(b)};
Y5a=function(a){return a.u.every(function(b){return b.hasOwnProperty("offsetMilliseconds")})};
X5a=function(a,b,c){var d,e=a.Oa.get(),f=a.layoutId;a=null!=(d=a.D)?d:void 0;c=void 0===c?[]:c;if(d=T4a(e.u.get(),f))for(b=e.Ob.get().jh(f,b),f=w1(e,w5a(d),d,a),c=g.v(c),d=c.next();!d.done;d=c.next())d=d.value,d.baseUrl&&e.Tl.send(d.baseUrl,f,b);else DD("Trying to track from an unknown layout.",void 0,void 0,{layoutId:f,trackingType:b})};
Z5a=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Oa=d;this.j=e;a=VZ(this.layout.Ba,"metadata_type_ad_placement_config");this.bb=new I1(c.Rb,this.Oa,a,c.layoutId)};
$5a=function(){var a=["metadata_type_client_forecasting_ad_renderer"];J1().forEach(function(b){a.push(b)});
return{Be:a,Nf:["LAYOUT_TYPE_FORECASTING"]}};
a6a=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Oa=d;this.j=e;a=VZ(this.layout.Ba,"metadata_type_ad_placement_config");this.bb=new I1(c.Rb,this.Oa,a,c.layoutId)};
N1=function(a,b,c,d){this.Ca=a;this.Oa=b;this.j=c;this.Ob=d};
b6a=function(a,b,c){this.j=a;this.slot=b;this.layout=c};
c6a=function(a,b,c){b.layoutId!==a.layout.layoutId?a.j.eg(a.slot,b,new Y_("Unknown layout received. Required LayoutId: "+a.layout.layoutId+("and LayoutType: "+a.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):c()};
O1=function(a,b,c,d){g.aE.call(this);this.callback=a;this.B=d;this.j=[];this.u=new b6a(a,b,c)};
P1=function(a,b,c,d,e,f,h){e=VZ(c.Ba,e);a=K1(a);var l=Jd(function(){d.Rc(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.xc},function(){l()}))};
Q1=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.v(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.F.sendVideoStatsEngageEvent(1,void 0,2):e?e():DD("Tried to call engagePingCallback but it is null",h,l)}}else DD("Companion AdUxClick received without a layoutId",h,l)};
d6a=function(a,b,c,d,e){jN.call(this,"action-companion",a,b,c,d,e)};
e6a=function(a,b,c,d,e,f,h,l){O1.call(this,a,b,c,d);this.Oa=e;this.Ue=f;this.I=l;this.Gj=!0;this.C=null;this.D=VZ(c.Ba,"metadata_type_linked_player_bytes_layout_id");this.Ue().Hd.add(this);a=VZ(c.Ba,"metadata_type_ad_placement_config");this.bb=new I1(c.Rb,this.Oa,a,c.layoutId)};
f6a=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];J1().forEach(function(b){a.push(b)});
return{Be:a,Nf:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
R1=function(a,b,c,d,e){O1.call(this,a,b,c,d);a=VZ(c.Ba,"metadata_type_ad_placement_config");this.bb=new I1(c.Rb,e,a,c.layoutId)};
g6a=function(){var a=["metadata_type_ad_action_interstitial_renderer"];J1().forEach(function(b){a.push(b)});
return{Be:a,Nf:["LAYOUT_TYPE_ENDCAP"]}};
S1=function(a,b,c,d,e,f,h,l){O1.call(this,a,b,c,d);this.Ha=e;this.Oa=f;this.I=h;this.D=l;this.C=!1;this.J=VZ(this.layout.Ba,"metadata_type_linked_player_bytes_layout_id")};
h6a=function(){return{Be:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],Nf:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
T1=function(a,b,c,d,e,f){O1.call(this,c,a,b,d);this.Ha=e;this.Ca=f};
i6a=function(){return{Be:["metadata_type_valid_ad_message_renderer"],Nf:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
U1=function(a,b,c,d,e,f,h,l,m){return G1(c,h6a())?new S1(a,b,c,d,e,f,h,l):G1(c,g6a())?new R1(a,b,c,d,f):G1(c,i6a())?new T1(b,c,a,d,e,m):null};
j6a=function(a,b,c,d,e,f){this.qc=a;this.Ha=b;this.Oa=c;this.u=d;this.j=e;this.Ca=f};
V1=function(a,b,c,d,e,f){g.E.call(this);this.callback=a;this.Pe=b;this.Ha=c;this.Lc=d;this.Ue=e;this.Ca=f;this.Gj=!0;this.uM=!1};
k6a=function(a,b,c,d,e,f,h,l,m,n,p){V1.call(this,a,c,d,e,n,p);this.Ta=b;this.B=f;this.slot=h;this.layout=l;this.I=m;this.u=[];this.j=-1;this.C=!1};
m6a=function(a,b,c){var d=a.u[a.j];if(c.layoutId!==W1(d,b,c))DD("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",d.od(),d.Ib(),{requestingSlot:b,requestingLayout:c});else{var e=VZ(d.Ib().Ba,"metadata_type_ad_pod_skip_target");if(e&&0<e&&e<a.u.length){for(var f=e;f<a.u.length;){if(e===VZ(a.u[f].Ib().Ba,"metadata_type_ad_pod_skip_index")){l6a(a,d.od(),d.Ib(),f);return}f++}DD("Skip-to-index was requested but target index was not found",d.od(),d.Ib(),{requestingSlot:b,
requestingLayout:c})}else DD("Invalid ad pod skip target index",d.od(),d.Ib(),{requestingSlot:b,requestingLayout:c})}};
W1=function(a,b,c){var d=VZ(a.Ib().Ba,"metadata_type_linked_in_player_layout_id");return d?d:(DD("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.od(),a.Ib(),{requestingSlot:b,requestingLayout:c}),null)};
p6a=function(a,b,c,d){n6a(a,b,c,d,function(){o6a(a,a.j+1)})};
l6a=function(a,b,c,d){n6a(a,b,c,"skipped",function(){o6a(a,d)})};
n6a=function(a,b,c,d,e){if(!a.C){var f=a.u[a.j];f?(f.Ib().layoutId!==c.layoutId&&DD("SubLayout mismatch in exitSubLayout",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:f.Ib().layoutId}),a.C=!0,f.Og(f.Ib(),d),nO(a.B,b,c,d),a.C=!1,a.D?(a.D(),a.Lc.get().Tz()):e()):DD("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
o6a=function(a,b){if(a.j===a.u.length-1)a.j++,X1(a.I,a.layout),a.Lc.get().Tz();else{if(-1===a.j&&(a.callback.Rc(a.slot,a.layout),0<b)){DD("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});return}a.j=b;b=a.u[a.j];0<a.j&&a.Lc.get().tP();b.startRendering(b.Ib())}};
q6a=function(a){return!a.Dv.Yc()&&a.state.Yc()};
Y1=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
r6a=function(a){var b;if("AD_VIDEO_PROGRESS_KIND_PERCENT"!==(null==(b=a.adVideoOffset)?void 0:b.kind))return!1;var c;return null!=(null==(c=a.adVideoOffset)?void 0:c.percent)};
s6a=function(a){var b;if("AD_VIDEO_PROGRESS_KIND_MILLISECONDS"!==(null==(b=a.adVideoOffset)?void 0:b.kind))return!1;var c;return null!=(null==(c=a.adVideoOffset)?void 0:c.milliseconds)&&!isNaN(Number(a.adVideoOffset.milliseconds))};
t6a=function(a,b,c,d){this.Pb=a;this.layoutId=c;this.D=d;this.u=[];this.j=[];this.B=this.C=0;a=g.v(b);for(b=a.next();!b.done;b=a.next())switch(b=b.value,c=void 0,null==(c=b.adVideoOffset)?void 0:c.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":r6a(b)?this.u.push(b):DD("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":s6a(b)?this.j.push(b):DD("Invalid AdVideoProgressMillisecondsCommand");break;default:DD("Unknown or invalid AdVideoProgressOffSet kind")}this.u.sort(function(e,
f){return e.adVideoOffset.percent-f.adVideoOffset.percent});
this.j.sort(function(e,f){return Number(e.adVideoOffset.milliseconds)-Number(f.adVideoOffset.milliseconds)})};
$1=function(a,b,c,d,e,f,h,l,m,n,p,q,t,w){g.E.call(this);var z=this;this.callback=a;this.slot=b;this.layout=c;this.Oa=d;this.Ob=e;this.Ha=f;this.Lc=h;this.Wf=l;this.Pb=m;this.sD=n;this.position=q;this.nY=t;this.Ca=w;this.Gj=!0;this.xX=!1;this.Dc="not_rendering";this.wC=!1;a=VZ(this.layout.Ba,"metadata_type_ad_placement_config");this.bb=new I1(c.Rb,this.Oa,a,c.layoutId);var C;a=(null==(C=Z1(this))?void 0:C.progressCommands)||[];this.u8=new t6a(m,a,c.layoutId,function(){return z.zy()});
this.YS=Jd(function(){z.callback.Rc(z.slot,z.layout)});
this.SK=Jd(function(){"rendering_stop_requested"!==z.Dc&&p(z);z.layoutExitReason?z.callback.xd(z.slot,z.layout,z.layoutExitReason):DD("Received layout exit signal when not in layout exit flow.",z.slot,z.layout)})};
Z1=function(a){return VZ(a.layout.Ba,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
a2=function(a,b,c){c=void 0===c?!1:c;if("rendering"===a.Dc){L1(a.bb,1E3*b,c);a.wC||L1(a.bb,1E3*b,void 0===c?!1:c);var d=a.zy();if(d&&(d/=1E3,(b>=.25*d||c)&&a.kd("first_quartile"),(b>=.5*d||c)&&a.kd("midpoint"),(b>=.75*d||c)&&a.kd("third_quartile"),a=a.u8,b*=1E3,c=a.D())){for(;a.C<a.u.length;)if(d=a.u[a.C],d.adVideoOffset.percent*c<=b)a.Pb.get().executeCommand(d.command,a.layoutId),a.C++;else break;for(;a.B<a.j.length;)if(c=a.j[a.B],Number(c.adVideoOffset.milliseconds)<=b)a.Pb.get().executeCommand(c.command,
a.layoutId),a.B++;else break}}};
u6a=function(a){U0(a.Ca.get(),"h5_enable_unified_csi_preroll")&&0===a.position&&(a.Lc.get(),a=VZ(a.layout.Ba,"metadata_type_ad_placement_config").kind,a={adBreakType:rCa(a)},bF("ad_bl"),ZE(a))};
v6a=function(a,b,c,d,e,f,h,l,m,n,p,q,t,w,z){$1.call(this,a,b,c,d,e,f,h,m,n,p,q,t,w,z);var C=this;this.Ad=l;this.rG=!0;this.WM=this.Li=0;this.timer=new g.Lf(200);this.timer.Ra("tick",function(){C.wc()});
g.I(this,this.timer)};
w6a=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.v(J1()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Be:a,Nf:["LAYOUT_TYPE_MEDIA_BREAK"]}};
y6a=function(a){a.WM=Date.now();x6a(a,a.Li);a.timer.start()};
x6a=function(a,b){b={current:b/1E3,duration:a.zy()/1E3};a.Ad.get().Na("onAdPlaybackProgress",b)};
b2=function(a,b,c,d,e,f,h,l,m,n,p,q,t,w,z,C,G,O,N,K){$1.call(this,a,b,c,d,e,m,p,t,w,C,G,O,N,K);var W=this;this.jf=f;this.Pe=h;this.Ta=l;this.uc=n;this.Ad=q;this.cg=z;this.adCpn="";this.LG=new g.Ap(function(){W.LC("load_timeout",new Y_("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4);
a=N0(this.Ca.get());K=O0(K.get());a&&K&&(this.ez=new g.Ap(function(){var Z=VZ(c.Ba,"metadata_type_preload_player_vars");Z&&W.Pe.get().F.preloadVideoByPlayerVars(Z,2,300)}))};
z6a=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.v(J1()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Be:a,Nf:["LAYOUT_TYPE_MEDIA"]}};
A6a=function(a,b,c,d,e,f,h){V1.call(this,a,b,c,d,f,h);this.j=e};
C6a=function(a,b,c,d,e,f,h,l,m,n,p,q,t,w,z,C,G,O,N){if(G1(d,{Be:["metadata_type_sub_layouts"],Nf:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||void 0!==d.nw&&"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"===d.layoutType){var K,W=null!=(K=d.nw)?K:VZ(d.Ba,"metadata_type_sub_layouts");a=new k6a(a,p,n,q,w,b,c,d,f,e,N);e=[];for(b={St:0};b.St<W.length;b={St:b.St},b.St++){K=B6a({Rc:a.C7.bind(a),xd:a.E7.bind(a),eg:a.D7.bind(a)},c,W[b.St],h,l,m,n,p,q,t,w,z,C,G,O,function(Z){return function(Q){Q.Og(W[Z.St],"normal")}}(b),
b.St,W.length,N);
if(!K)return;e.push(K)}a.u=e;return a}if(G1(d,{Be:[],Nf:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=B6a({Rc:a.Rc.bind(a),xd:a.xd.bind(a),eg:a.eg.bind(a)},c,d,h,l,m,n,p,q,t,w,z,C,G,O,function(){X1(f,d)},0,1,N))?new A6a(a,n,q,w,c,e,N):c};
B6a=function(a,b,c,d,e,f,h,l,m,n,p,q,t,w,z,C,G,O,N){if(G1(c,w6a()))return new v6a(a,b,c,d,e,m,p,q,t,w,function(){},C,G,O,N);
if(G1(c,z6a()))return wC(c.Ba,"metadata_type_ad_intro")?new b2(a,b,c,d,e,f,h,l,m,n,p,q,t,w,z,function(K){q.get().Na("onAdIntroStateChange",K)},C,G,O,N):new b2(a,b,c,d,e,f,h,l,m,n,p,q,t,w,z,function(K){q.get().Vl(K)},C,G,O,N)};
c2=function(a,b,c,d,e,f,h,l,m,n,p,q,t,w,z){this.Ue=a;this.j=b;this.Oa=c;this.Ob=d;this.jf=e;this.Pe=f;this.Ta=h;this.Ha=l;this.uc=m;this.Lc=n;this.Ad=p;this.Wf=q;this.Pb=t;this.cg=w;this.Ca=z};
d2=function(a,b,c,d,e,f,h,l){g.E.call(this);var m=this;this.ac=a;this.Jb=b;this.xf=d;this.Ha=e;this.Ca=f;this.Oa=h;this.qf=l;this.j=null;c.get().addListener(this);g.lb(this,function(){c.isDisposed()||c.get().removeListener(m)});
d.get().addListener(this);g.lb(this,function(){d.isDisposed()||d.get().removeListener(m)})};
R4a=function(a,b){if(a.j)DD("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.v(a.xf.get().sI);for(var c=b.next();!c.done;c=b.next())D6a(a,a.j,c.value)}};
D6a=function(a,b,c){var d=a.Ha.get().getCurrentTimeSec(1,!1);a.Ca.get().F.T().Qd()&&a.Oa.get().Rh("sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.Qg.toFixed(3));vC(a.ac.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.Jb.get(),f=b.adPlacementRenderer.renderer.adBreakServiceRenderer,h=b.contentCpn,l=b.adPlacementRenderer.adSlotLoggingData,m=r1(a.Ca.get()),n=a.Oa;if(e.Ca.get().F.T().experiments.kb("enable_smearing_expansion_dai")){var p=g.jJ(e.Ca.get().F.T().experiments,
"max_prefetch_window_sec_for_livestream_optimization");var q=g.jJ(e.Ca.get().F.T().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={Bn:Xsa(c),wD:!1};var t=c.startSecs+c.Qg;if(0===d)m.Qp=new aq(0,1E3*t);else{q=c.startSecs-q;var w=q-d;m.Qp=0>=w?new aq(1E3*q,1E3*t):new aq(1E3*Math.floor(d+Math.random()*Math.min(w,p)),1E3*t)}p=m}else p={Bn:Xsa(c),wD:!1},t=c.startSecs+c.Qg,c.startSecs<=d?m=new aq(1E3*(c.startSecs-4),1E3*t):(q=Math.max(0,c.startSecs-d-10),m=new aq(1E3*Math.floor(d+
Math.random()*(m?0===d?0:Math.min(q,5):q)),1E3*t)),p.Qp=m;e=V2a(e,f,h,p,l,[new c2a(c)]);n.get().Rh("daism","ct."+Date.now()+";cmt."+d+";smw."+(p.Qp.start/1E3-d)+";tw."+(c.startSecs-d)+";cid."+c.identifier.replaceAll(":","_")+";sid."+e.slotId);return[e]})};
e2=function(a,b,c,d,e,f,h,l,m){g.E.call(this);this.j=a;this.B=b;this.u=c;this.ac=d;this.Jb=e;this.Ab=f;this.Kb=h;this.Ca=l;this.Ta=m;this.Gj=!0};
E6a=function(a,b,c){return u3a(a.Jb.get(),b.contentCpn,b.tp,function(d){return v3a(a.Ab.get(),d.slotId,c,b.adPlacementConfig,b.tp,ZZ(a.Kb.get(),d))})};
f2=function(a){var b,c=null==(b=VZ(a.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=VZ(a.Ba,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=VZ(a.Ba,"metadata_type_content_cpn"),f=VZ(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),h=VZ(a.Ba,"metadata_type_player_underlay_renderer"),l=VZ(a.Ba,"metadata_type_ad_placement_config"),m=VZ(a.Ba,"metadata_type_video_length_seconds");var n=wC(a.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?
VZ(a.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):wC(a.Ba,"metadata_type_layout_enter_ms")&&wC(a.Ba,"metadata_type_layout_exit_ms")?(VZ(a.Ba,"metadata_type_layout_exit_ms")-VZ(a.Ba,"metadata_type_layout_enter_ms"))/1E3:void 0;return{tp:d,contentCpn:e,tO:c,mK:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,KG:n,inPlayerLayoutId:VZ(a.Ba,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:VZ(a.Ba,"metadata_type_linked_in_player_slot_id")}};
G6a=function(a,b){return F6a(a,b)};
H6a=function(a,b){b=F6a(a,b);if(!b)return null;var c;b.KG=null==(c=VZ(a.Ba,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b};
F6a=function(a,b){var c,d=null==(c=VZ(a.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;wC(a.Ba,"metadata_ad_video_is_listed")?c=VZ(a.Ba,"metadata_ad_video_is_listed"):b?c=b.isListed:(DD("No layout metadata nor AdPlayback specified for ad video isListed"),c=!1);wC(a.Ba,"metadata_type_ad_info_ad_metadata")?b=VZ(a.Ba,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.bk,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(DD("No layout metadata nor AdPlayback specified for AdMetaData"),
b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{K1:b,adPlacementConfig:VZ(a.Ba,"metadata_type_ad_placement_config"),L1:c,contentCpn:VZ(a.Ba,"metadata_type_content_cpn"),inPlayerLayoutId:VZ(a.Ba,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:VZ(a.Ba,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:VZ(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),instreamAdPlayerUnderlayRenderer:void 0,KG:void 0,tO:d,tp:a.layoutId,videoLengthSeconds:VZ(a.Ba,
"metadata_type_video_length_seconds")}};
I6a=function(a,b){this.callback=a;this.slot=b};
g2=function(){};
J6a=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c};
K6a=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c;this.u=!1;this.j=0};
L6a=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c};
h2=function(a){this.Ha=a};
i2=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
j2=function(a){g.E.call(this);this.cJ=a;this.Xb=new Map};
M6a=function(a,b){for(var c=[],d=g.v(a.Xb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof G0&&f.triggeringLayoutId===b&&c.push(e)}c.length?g0(a.cJ(),c):DD("Survey is submitted but no registered triggers can be activated.")};
k2=function(a,b,c){j2.call(this,a);var d=this;this.Ca=c;b.get().addListener(this);g.lb(this,function(){b.isDisposed()||b.get().removeListener(d)})};
l2=function(a){g.E.call(this);this.j=a;this.Gj=!0;this.Xb=new Map;this.D=new Set;this.B=new Set;this.C=new Set;this.I=new Set;this.u=new Set};
m2=function(a,b){g.E.call(this);var c=this;this.j=a;this.Xb=new Map;b.get().addListener(this);g.lb(this,function(){b.isDisposed()||b.get().removeListener(c)})};
N6a=function(a,b,c,d){var e=[];a=g.v(a.values());for(var f=a.next();!f.done;f=a.next())if(f=f.value,f.trigger instanceof x0){var h=f.trigger.j===b;h===c?e.push(f):d&&h&&(DD("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e};
O6a=function(a){return a instanceof X4a||a instanceof Y4a||a instanceof a1};
n2=function(a,b,c,d){g.E.call(this);var e=this;this.u=a;this.uc=b;this.Ha=c;this.Ta=d;this.Gj=!0;this.Xb=new Map;this.j=new Set;c.get().addListener(this);g.lb(this,function(){c.isDisposed()||c.get().removeListener(e)})};
P6a=function(a,b,c,d,e,f,h,l,m,n){if(a.Ta.get().rg(1).clientPlaybackNonce!==m)throw new zC("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Xb.set(c.triggerId,{yu:new i2(b,c,d,e),Iu:f});a.uc.get().addCueRange(f,h,l,n,a)};
Q6a=function(a,b){a=g.v(a.Xb.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.v(c.value);c=d.next().value;d=d.next().value;if(b===d.Iu)return c}return""};
o2=function(a){g.E.call(this);this.j=a;this.Gj=!0;this.Xb=new Map};
X1=function(a,b){b=b.layoutId;for(var c=[],d=g.v(a.Xb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof E0){var f;if(f=e.trigger.layoutId===b)f=(f=r2a.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&g0(a.j(),c)};
p2=function(a){g.E.call(this);this.j=a;this.Gj=!0;this.Xb=new Map};
q2=function(a,b,c){g.E.call(this);this.j=a;this.dn=b;this.fb=c;this.dn.get().addListener(this)};
r2=function(a,b,c,d,e,f){g.E.call(this);this.B=a;this.cf=b;this.Kb=c;this.Ta=d;this.fb=e;this.Ca=f;this.j=this.u=null;this.C=!1;this.cf.get().addListener(this)};
bCa=function(a,b,c,d,e){var f=JD(a.fb.get(),"SLOT_TYPE_PLAYER_BYTES");a.u={slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],eb:"surface",Ba:new UZ([])};a.j={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Rb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Qc:[],eb:"surface",Ba:new UZ(c),xc:L1a(YZ(a.Kb.get()),f,"SLOT_TYPE_PLAYER_BYTES",
1,"surface",void 0,[],[],b,"LAYOUT_TYPE_MEDIA","surface"),adLayoutLoggingData:e};o2a(a.B(),a.u,a.j);d&&(p2a(a.B(),a.u,a.j),a.C=!0,f0(a.B(),a.u,a.j))};
s2=function(a){this.au=a};
R6a=function(a,b){if(!a)return{po:[],adSlots:[],Wz:!0,ssdaiAdsConfig:void 0};a.trackingParams&&tP().cq(a.trackingParams);if(a.adThrottled)return{po:[],adSlots:[],Wz:!0,ssdaiAdsConfig:void 0};var c,d=null!=(c=a.adSlots)?c:[];c=a.playerAds;if(!c||!c.length)return{po:[],adSlots:d,Wz:!1,ssdaiAdsConfig:void 0};c=c.map(function(f){return f.adPlacementRenderer}).filter(function(f){return!(!f||!f.renderer)});
if(!c.length)return{po:[],adSlots:d,Wz:!1,ssdaiAdsConfig:void 0};if(0<b.end){var e=b.end.toString();c.forEach(function(f){(f=f.config&&f.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===f.kind&&f.adTimeOffset&&"-1"===f.adTimeOffset.offsetEndMilliseconds&&f.adTimeOffset.offsetEndMilliseconds!==e&&(f.adTimeOffset.offsetEndMilliseconds=e)})}return{po:c,
adSlots:d,Wz:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}};
t2=function(a){g.E.call(this);this.F=a;this.listeners=[];this.j=new Fz(this);g.I(this,this.j);this.j.S(this.F,"aduxclicked",this.onAdUxClicked);this.j.S(this.F,"aduxmouseover",this.yN);this.j.S(this.F,"aduxmouseout",this.xN);this.j.S(this.F,"muteadaccepted",this.p5)};
S6a=function(a,b,c){b=g.$l(b,function(d){return new $D(d,c,d.id)});
a.F.Na("onAdUxUpdate",b)};
u2=function(a,b){a=g.v(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
v2=function(a,b,c){g.E.call(this);this.F=a;this.Ca=b;this.Oa=c;this.listeners=[];this.C=!1;this.sI=[];this.u=null;this.D=new wO(this,r5a(b.get()));this.B=new xO;this.j=null};
U6a=function(a,b){x1(a.Oa.get(),{cuepointTrigger:{event:T6a(b.event),cuepointId:b.identifier,totalCueDurationMs:1E3*b.Qg,playheadTimeMs:b.j,cueStartTimeMs:1E3*b.startSecs,cuepointReceivedTimeMs:Date.now(),contentCpn:a.F.getVideoData(1).clientPlaybackNonce}})};
T6a=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 bk(a,"Unexpected cuepoint event")}};
w2=function(a){this.F=a};
x2=function(a){this.F=a};
y2=function(){this.listeners=[]};
V6a=function(a){this.F=a};
W6a=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.layout=c;this.Ha=d;this.Oa=e;this.Ca=f;a=VZ(c.Ba,"metadata_type_ad_placement_config");this.bb=new I1(c.Rb,this.Oa,a,c.layoutId)};
X6a=function(a,b,c){this.Ha=a;this.Oa=b;this.Ca=c};
z2=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Ta=d;this.qf=e;this.xf=f;this.Ha=h;this.bb=l;this.Oa=m;this.C=n;this.driftRecoveryMs=VZ(this.layout.Ba,"metadata_type_drift_recovery_ms")||null};
Y6a=function(a){var b=VZ(a.layout.Ba,"metadata_type_layout_enter_ms"),c=VZ(a.layout.Ba,"metadata_type_layout_exit_ms");a=a.xf.get();b=yO(a.B,b,c);return Math.min(c,null!==b?b:Infinity)};
Z6a=function(a,b){var c;x1(a.Oa.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:null==(c=a.Ta.get().Ku)?void 0:c.clientPlaybackNonce,adClientData:a.layout.xc.adClientDataEntry},b)})};
$6a=function(a,b,c,d,e,f,h,l,m,n,p){z2.call(this,a,b,c,d,e,f,h,l,m,n);this.B=p;this.u=this.j=null;a=g.v(this.B);for(b=a.next();!b.done;b=a.next())b=b.value,wC(b.Ib().Ba,"metadata_type_survey_overlay")&&(this.u=b.Ib().layoutId)};
b7a=function(a,b){var c=a7a(a,b);a.j={wl:c};c?c.startRendering(c.Ib()):b===a.u&&DD("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
a7a=function(a,b){return null==b?null:a.B.find(function(c){return c.Ib().layoutId===b})||null};
c7a=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,q=wC(b.Ba,"metadata_type_survey_overlay"),t,w=(null==(t=VZ(a.Ba,"metadata_type_fulfilled_layout"))?void 0:VZ(t.Ba,"metadata_type_ssdai_ads_config"))||"";if(!p)return h.jC(c,w,2,f,d,e,a.slotId),n.Rh("ads_iraot","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id),null;p=h.Ix(c,w,2,f,d,e,a.slotId);n.Rh("ads_atct","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id);if(!p)return DD("Unexpected failure to add to playback timeline",
a,b,m()),null;a=a.slotId;b=b.layoutId;p?(l.j.has(p)&&DD("Unexpected remap of timeline playback"),l.j.set(p,{slotId:a,layoutId:b})):DD("Invalid timeline playback ID");d+f>e&&h.cA(p,e-d);return p};
d7a=function(a,b){var c=VZ(b.Ba,"metadata_type_sodar_extension_data");if(c)try{M5a(0,c)}catch(d){DD("Unexpected error when loading Sodar",a,b,{error:d})}};
f7a=function(a,b,c,d,e,f){e7a(a,b,new g.$N(c,new g.OO),d,e,!1,f)};
e7a=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;q6a(c)&&Y1(e,0,null)&&(!M1(a,"impression")&&h&&h(),a.kd("impression"));M1(a,"impression")&&(g.bO(c,4)&&!g.bO(c,2)&&a.jh("pause"),0>aO(c,4)&&!(0>aO(c,2))&&a.jh("resume"),g.bO(c,16)&&.5<=e&&a.jh("seek"),f&&g.bO(c,2)&&g7a(a,c.state,b,d,e))};
g7a=function(a,b,c,d,e,f){if(M1(a,"impression")){var h=1>=Math.abs(d-e);h7a(a,b,h?d:e,c,d,f);h&&a.kd("complete")}};
h7a=function(a,b,c,d,e,f){L1(a,1E3*c);0>=e||0>=c||(null==b?0:g.UN(b,16))||(null==b?0:g.UN(b,32))||(Y1(c,.25*e,d)&&(f&&!M1(a,"first_quartile")&&f("first"),a.kd("first_quartile")),Y1(c,.5*e,d)&&(f&&!M1(a,"midpoint")&&f("second"),a.kd("midpoint")),Y1(c,.75*e,d)&&(f&&!M1(a,"third_quartile")&&f("third"),a.kd("third_quartile")))};
i7a=function(a,b){M1(a,"impression")&&a.jh(b?"fullscreen":"end_fullscreen")};
j7a=function(a){M1(a,"impression")&&a.jh("clickthrough")};
k7a=function(a){a.jh("active_view_measurable")};
l7a=function(a){M1(a,"impression")&&!M1(a,"seek")&&a.jh("active_view_fully_viewable_audible_half_duration")};
m7a=function(a){M1(a,"impression")&&!M1(a,"seek")&&a.jh("active_view_viewable")};
n7a=function(a){M1(a,"impression")&&!M1(a,"seek")&&a.jh("audio_audible")};
o7a=function(a){M1(a,"impression")&&!M1(a,"seek")&&a.jh("audio_measurable")};
p7a=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.qf=d;this.bb=e;this.Ha=f;this.Sd=h;this.Ob=l;this.jf=m;this.Ca=n;this.Oa=p;this.Ta=q;this.rG=!0;this.Mc=this.Dc=null};
q7a=function(a,b,c){var d;a.Oa.get().Rh("ads_qua","cpn."+VZ(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ta.get().rg(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
r7a=function(a,b){var c,d;a.Oa.get().Rh("ads_imp","cpn."+VZ(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(c=a.Ta.get().rg(2))?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.S(null==(d=VZ(a.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"))?void 0:d.skipOrPreviewRenderer,P0))};
s7a=function(a){return{enterMs:VZ(a.Ba,"metadata_type_layout_enter_ms"),exitMs:VZ(a.Ba,"metadata_type_layout_exit_ms")}};
t7a=function(a,b,c,d,e,f,h,l,m,n,p,q,t,w){z2.call(this,a,b,c,d,e,h,l,m,n,q);this.Sd=f;this.jf=p;this.Ob=t;this.Ca=w;this.Mc=this.Dc=null};
u7a=function(a,b){var c;a.Oa.get().Rh("ads_imp","acpn."+(null==(c=a.Ta.get().rg(2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
v7a=function(a,b,c){var d;a.Oa.get().Rh("ads_qua","cpn."+VZ(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ta.get().rg(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
w7a=function(a,b,c,d,e,f,h,l,m,n,p,q,t,w,z,C,G,O,N){this.Ue=a;this.u=b;this.Ta=c;this.qf=d;this.Ha=e;this.Oa=f;this.Sd=h;this.xf=l;this.Ob=m;this.jf=n;this.Pe=p;this.uc=q;this.Lc=t;this.Ad=w;this.Wf=z;this.Pb=C;this.cg=G;this.Ca=O;this.j=N};
A2=function(a){g.E.call(this);this.j=a;this.Xb=new Map};
B2=function(a,b){for(var c=[],d=g.v(a.Xb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&g0(a.j(),c)};
C2=function(a,b){g.E.call(this);var c=this;this.C=a;this.u=new Map;this.B=new Map;this.j=null;b.get().addListener(this);g.lb(this,function(){b.isDisposed()||b.get().removeListener(c)});
var d;this.j=(null==(d=b.get().Ku)?void 0:d.slotId)||null};
x7a=function(a,b){var c=[];a=g.v(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
y7a=function(a){this.F=a};
z7a=function(a,b,c,d,e){jN.call(this,"image-companion",a,b,c,d,e)};
A7a=function(a,b,c,d,e,f,h,l){O1.call(this,a,b,c,d);this.Oa=e;this.Ue=f;this.I=l;this.Gj=!0;this.C=null;this.D=VZ(c.Ba,"metadata_type_linked_player_bytes_layout_id");this.Ue().Hd.add(this);a=VZ(c.Ba,"metadata_type_ad_placement_config");this.bb=new I1(c.Rb,this.Oa,a,c.layoutId)};
B7a=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];J1().forEach(function(b){a.push(b)});
return{Be:a,Nf:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
C7a=function(a,b,c,d,e){jN.call(this,"shopping-companion",a,b,c,d,e)};
D7a=function(a,b,c,d,e,f,h,l){O1.call(this,a,b,c,d);this.Oa=e;this.Ue=f;this.I=l;this.Gj=!0;this.C=null;this.D=VZ(c.Ba,"metadata_type_linked_player_bytes_layout_id");this.Ue().Hd.add(this);a=VZ(c.Ba,"metadata_type_ad_placement_config");this.bb=new I1(c.Rb,this.Oa,a,c.layoutId)};
E7a=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];J1().forEach(function(b){a.push(b)});
return{Be:a,Nf:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
F7a=function(a,b,c,d,e,f){O1.call(this,a,b,c,d);this.Oa=e;this.Ue=f;this.Gj=!0;this.Ue().Hd.add(this);a=VZ(c.Ba,"metadata_type_ad_placement_config");this.bb=new I1(c.Rb,this.Oa,a,c.layoutId)};
G7a=function(){var a=["metadata_type_action_companion_ad_renderer"];J1().forEach(function(b){a.push(b)});
return{Be:a,Nf:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
H7a=function(a,b,c,d,e){jN.call(this,"ads-engagement-panel",a,b,c,d,e)};
I7a=function(a,b,c,d,e,f,h,l){O1.call(this,a,b,c,d);this.Oa=e;this.Ue=f;this.I=l;this.Gj=!0;this.C=null;this.D=VZ(c.Ba,"metadata_type_linked_player_bytes_layout_id");this.Ue().Hd.add(this);a=VZ(c.Ba,"metadata_type_ad_placement_config");this.bb=new I1(c.Rb,this.Oa,a,c.layoutId)};
J7a=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];J1().forEach(function(b){a.push(b)});
return{Be:a,Nf:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
K7a=function(a,b,c,d,e){this.qc=a;this.Oa=b;this.Ue=c;this.j=d;this.Ob=e};
L7a=function(a,b,c){jN.call(this,"player-underlay",a,{},b,c);this.interactionLoggingClientData=c};
D2=function(a,b,c,d){O1.call(this,a,b,c,d)};
M7a=function(a){this.qc=a};
N7a=function(a,b,c,d){jN.call(this,"survey-interstitial",a,b,c,d)};
E2=function(a,b,c,d,e){O1.call(this,c,a,b,d);this.Oa=e;a=VZ(b.Ba,"metadata_type_ad_placement_config");this.bb=new I1(b.Rb,e,a,b.layoutId)};
F2=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
P7a=function(a,b,c){c=void 0===c?O7a:c;c.width<O7a.width&&(c=O7a);if(a.width<c.width||a.height<c.height)return{AI:3,jE:501,errorMessage:"ad("+F2(c)+") larger than container("+F2(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{AI:3,jE:501,errorMessage:"ad("+F2(c)+") to container("+F2(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{AI:3,jE:501,errorMessage:"ad("+F2(c)+") covers container("+F2(a)+") center."}};
Q7a=function(a,b){var c=VZ(a.Ba,"metadata_type_ad_placement_config");return new I1(a.Rb,b,c,a.layoutId)};
G2=function(a){return VZ(a.Ba,"metadata_type_invideo_overlay_ad_renderer")};
R7a=function(a,b,c,d){jN.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d};
H2=function(a,b,c,d,e,f,h,l,m,n,p,q){O1.call(this,f,a,b,e);this.Oa=c;this.C=h;this.Ha=l;this.Pb=m;this.Ca=n;this.I=p;this.D=q;this.bb=Q7a(b,c)};
S7a=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];J1().forEach(function(b){a.push(b)});
return{Be:a,Nf:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
I2=function(a,b,c,d,e,f,h,l,m,n,p,q,t){O1.call(this,f,a,b,e);this.Oa=c;this.C=h;this.J=l;this.Ha=m;this.Pb=n;this.Ca=p;this.I=q;this.D=t;this.bb=Q7a(b,c)};
T7a=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.v(J1()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Be:a,Nf:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
J2=function(a){this.Ha=a;this.j=!1};
U7a=function(a,b,c){jN.call(this,"survey",a,{},b,c)};
V7a=function(a,b,c,d,e,f,h){O1.call(this,c,a,b,d);this.C=e;this.Ha=f;this.Ca=h};
W7a=function(a,b,c,d,e,f,h,l,m,n){this.qc=a;this.Ha=b;this.Oa=c;this.C=d;this.Ob=e;this.u=f;this.B=h;this.Pb=l;this.Ca=m;this.j=n};
K2=function(a){g.E.call(this);this.B=a;this.Gj=!0;this.Xb=new Map;this.j=new Map;this.u=new Map};
X7a=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.v(b);for(var d=b.next();!d.done;d=b.next())(d=a.u.get(d.value.triggerId))&&c.push(d)}return c};
Y7a=function(a,b,c,d,e){g.E.call(this);var f=this;this.fb=n0(function(){return new ID});
g.I(this,this.fb);this.Ab=n0(function(){return new b1(f.fb)});
g.I(this,this.Ab);this.Nc=n0(function(){return new $0});
g.I(this,this.Nc);this.ac=n0(function(){return new X0(a)});
g.I(this,this.ac);this.Jb=n0(function(){return new h1(f.fb,f.Ab,f.Ca)});
g.I(this,this.Jb);this.Sd=n0(function(){return new l1});
g.I(this,this.Sd);this.Wf=n0(function(){return new kN(b.T())});
g.I(this,this.Wf);this.qc=n0(function(){return new t2(b)});
g.I(this,this.qc);this.Pb=n0(function(){return new o0(e)});
g.I(this,this.Pb);this.Lc=n0(function(){return new BO(b)});
g.I(this,this.Lc);this.uc=n0(function(){return new n1(b)});
g.I(this,this.uc);this.Pe=n0(function(){return new w2(b)});
g.I(this,this.Pe);this.Ad=n0(function(){return new o1(b)});
g.I(this,this.Ad);this.Ca=n0(function(){return new p1(b)});
g.I(this,this.Ca);this.Hf=n0(function(){return new s2(d)});
g.I(this,this.Hf);this.Kb=n0(function(){return new $Z(f.Ca)});
g.I(this,this.Kb);this.Xd=n0(function(){return new V0(f.fb,f.Jb,f.Ab,f.Ca,f.Kb,"SLOT_TYPE_ABOVE_FEED",f.Aj)});
g.I(this,this.Xd);this.cg=n0(function(){return new x2(b)});
g.I(this,this.cg);this.cf=n0(function(){return new y2});
g.I(this,this.cf);this.dn=n0(function(){return new C1});
g.I(this,this.dn);this.Ta=n0(function(){return new y1(b,f.Sd,f.Ca)});
g.I(this,this.Ta);this.Sb=new k1(this.Ca,this.Kb,this.Ta);g.I(this,this.Sb);this.xf=n0(function(){return new v2(b,f.Ca,f.Oa)});
g.I(this,this.xf);this.qf=n0(function(){return new y7a(b)});
g.I(this,this.qf);this.Ha=n0(function(){return new z1(b,f.Ta,f.Ca)});
g.I(this,this.Ha);this.jf=n0(function(){return new D1});
this.Ob=n0(function(){return new s1(f.Ha,b)});
g.I(this,this.Ob);this.Oa=n0(function(){return new v1(b,f.Nc,f.Ob,f.Ta)});
g.I(this,this.Oa);this.Wh=new e2(f2,L2,function(l,m,n,p){return M0(f.Ab.get(),l,m,n,p)},this.ac,this.Jb,this.Ab,this.Kb,this.Ca,this.Ta);
g.I(this,this.Wh);this.Sc=new ED(this.ac,this.Xd,c,this.Ca,a,this.Ta,this.Ha,this.Lc);g.I(this,this.Sc);var h=new m1(b,this.Sc,this.Ha,this.Ta,this.xf);this.pg=n0(function(){return h});
this.Ys=h;this.Aj=new d2(this.ac,this.Jb,this.pg,this.xf,this.Ha,this.Ca,this.Oa,this.qf);g.I(this,this.Aj);this.sf=new Z0(this.ac,this.Jb,this.uc,this.pg);g.I(this,this.sf);this.Wc=new tC(this.Ca,this.ac,this.Jb,this.Xd,this.Ta,this.sf,c);g.I(this,this.Wc);this.Hh=n0(function(){return new E1(f.Hf,f.Ab,f.Kb,f.Ca,f.Oa,f.Ha,f.qf)});
g.I(this,this.Hh);this.Od=n0(function(){return new F1});
g.I(this,this.Od);this.If=new k2(a,this.qc,this.Ca);g.I(this,this.If);this.Hb=new l2(a);g.I(this,this.Hb);this.Eu=new A2(a);g.I(this,this.Eu);this.Xf=new m2(a,this.pg);g.I(this,this.Xf);this.Oe=new n2(a,this.uc,this.Ha,this.Ta);g.I(this,this.Oe);this.wv=new C2(a,this.Ta);g.I(this,this.wv);this.He=new o2(a);g.I(this,this.He);this.Uh=new p2(a);g.I(this,this.Uh);this.qw=new K2(a);g.I(this,this.qw);this.Id=n0(function(){return new g2});
g.I(this,this.Id);this.Xh=n0(function(){return new h2(f.Ha)});
g.I(this,this.Xh);this.rS=n0(function(){return new K7a(f.qc,f.Oa,a,f.Nc,f.Ob)});
g.I(this,this.rS);this.Gh=n0(function(){return new H1(f.Wc)});
g.I(this,this.Gh);this.Lh=n0(function(){return new N1(f.Ca,f.Oa,f.He,f.Ob)});
g.I(this,this.Lh);this.Vh=n0(function(){return new w7a(a,f.He,f.Ta,f.qf,f.Ha,f.Oa,f.Sd,f.xf,f.Ob,f.jf,f.Pe,f.uc,f.Lc,f.Ad,f.Wf,f.Pb,f.cg,f.Ca,f.Nc)});
g.I(this,this.Vh);this.PW=n0(function(){return new X6a(f.Ha,f.Oa,f.Ca)});
g.I(this,this.PW);this.Um=n0(function(){return new W7a(f.qc,f.Ha,f.Oa,f.Nc,f.Ob,f.Eu,f.qw,f.Pb,f.Ca,c)});
g.I(this,this.Um);this.AY=n0(function(){return new M7a(f.qc)});
g.I(this,this.AY);this.jK=new q2(a,this.dn,this.fb);g.I(this,this.jK);this.An=new r2(a,this.cf,this.Kb,this.Ta,this.fb,this.Ca);g.I(this,this.An);this.rf={Kv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Wc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Aj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Wh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.sf]]),Sp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Hh],["SLOT_TYPE_ABOVE_FEED",this.Od],["SLOT_TYPE_FORECASTING",this.Od],["SLOT_TYPE_IN_PLAYER",this.Od],["SLOT_TYPE_PLAYER_BYTES",this.Od],["SLOT_TYPE_PLAYER_UNDERLAY",this.Od],["SLOT_TYPE_PLAYBACK_TRACKING",this.Od]]),bl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.If],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.If],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Hb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Hb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Hb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Hb],
["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Hb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Hb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Hb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Hb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Hb],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Hb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Hb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Eu],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xf],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
this.Oe],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Oe],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Oe],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Oe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Oe],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Oe],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Oe],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.wv],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.wv],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",
this.He],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Uh],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.qw]]),Wq:new Map([["SLOT_TYPE_ABOVE_FEED",this.Id],["SLOT_TYPE_AD_BREAK_REQUEST",this.Id],["SLOT_TYPE_FORECASTING",this.Id],["SLOT_TYPE_IN_PLAYER",this.Id],["SLOT_TYPE_PLAYER_BYTES",this.Xh],["SLOT_TYPE_PLAYER_UNDERLAY",this.Id],["SLOT_TYPE_PLAYBACK_TRACKING",this.Id]]),zq:new Map([["SLOT_TYPE_ABOVE_FEED",this.rS],["SLOT_TYPE_AD_BREAK_REQUEST",
this.Gh],["SLOT_TYPE_FORECASTING",this.Lh],["SLOT_TYPE_PLAYER_BYTES",this.Vh],["SLOT_TYPE_PLAYBACK_TRACKING",this.PW],["SLOT_TYPE_IN_PLAYER",this.Um],["SLOT_TYPE_PLAYER_UNDERLAY",this.AY]])};this.listeners=[this.Nc.get()];this.uv={Wc:this.Wc,Bq:this.cf.get(),Ci:this.Ca.get(),rb:this.Pb.get(),nt:this.Ha.get(),Sc:this.Sc,Tm:this.fb.get(),Aq:this.dn.get(),Jk:this.If,ej:this.Nc.get(),zn:this.Ta.get()}};
Z7a=function(a,b,c,d,e,f,h,l,m,n){this.qc=a;this.Ha=b;this.Oa=c;this.C=d;this.Ob=e;this.u=f;this.B=h;this.Pb=l;this.Ca=m;this.j=n};
$7a=function(a,b,c,d,e){g.E.call(this);var f=this;this.fb=n0(function(){return new ID});
g.I(this,this.fb);this.Ab=n0(function(){return new b1(f.fb)});
g.I(this,this.Ab);this.Nc=n0(function(){return new $0});
g.I(this,this.Nc);this.ac=n0(function(){return new X0(a)});
g.I(this,this.ac);this.Jb=n0(function(){return new h1(f.fb,f.Ab,f.Ca)});
g.I(this,this.Jb);this.Sd=n0(function(){return new l1});
g.I(this,this.Sd);this.Wf=n0(function(){return new kN(b.T())});
g.I(this,this.Wf);this.qc=n0(function(){return new t2(b)});
g.I(this,this.qc);this.Pb=n0(function(){return new o0(e)});
g.I(this,this.Pb);this.Lc=n0(function(){return new BO(b)});
g.I(this,this.Lc);this.uc=n0(function(){return new n1(b)});
g.I(this,this.uc);this.Pe=n0(function(){return new w2(b)});
g.I(this,this.Pe);this.Ad=n0(function(){return new o1(b)});
g.I(this,this.Ad);this.Ca=n0(function(){return new p1(b)});
g.I(this,this.Ca);this.Hf=n0(function(){return new s2(d)});
g.I(this,this.Hf);this.Kb=n0(function(){return new $Z(f.Ca)});
g.I(this,this.Kb);this.Xd=n0(function(){return new V0(f.fb,f.Jb,f.Ab,f.Ca,f.Kb,null,f.Aj)});
g.I(this,this.Xd);this.cg=n0(function(){return new x2(b)});
g.I(this,this.cg);this.cf=n0(function(){return new y2});
g.I(this,this.cf);this.dn=n0(function(){return new C1});
g.I(this,this.dn);this.Ta=n0(function(){return new y1(b,f.Sd,f.Ca)});
g.I(this,this.Ta);this.Sb=new k1(this.Ca,this.Kb,this.Ta);g.I(this,this.Sb);this.xf=n0(function(){return new v2(b,f.Ca,f.Oa)});
this.Ha=n0(function(){return new z1(b,f.Ta,f.Ca)});
g.I(this,this.Ha);this.Ob=n0(function(){return new s1(f.Ha,b)});
g.I(this,this.Ob);this.Oa=n0(function(){return new v1(b,f.Nc,f.Ob,f.Ta)});
g.I(this,this.Oa);this.jf=n0(function(){return new D1});
g.I(this,this.jf);this.Wh=new e2(f2,L2,function(l,m,n,p){return M0(f.Ab.get(),l,m,n,p)},this.ac,this.Jb,this.Ab,this.Kb,this.Ca,this.Ta);
g.I(this,this.Wh);this.Sc=new ED(this.ac,this.Xd,c,this.Ca,a,this.Ta,this.Ha,this.Lc);g.I(this,this.Sc);var h=new m1(b,this.Sc,this.Ha,this.Ta,this.xf);this.pg=n0(function(){return h});
this.Ys=h;this.Aj=new d2(this.ac,this.Jb,this.pg,this.xf,this.Ha,this.Ca,this.Oa);g.I(this,this.Aj);this.sf=new Z0(this.ac,this.Jb,this.uc,this.pg);g.I(this,this.sf);this.Wc=new tC(this.Ca,this.ac,this.Jb,this.Xd,this.Ta,this.sf,c);g.I(this,this.Wc);this.Hh=n0(function(){return new E1(f.Hf,f.Ab,f.Kb,f.Ca,f.Oa,f.Ha)});
g.I(this,this.Hh);this.Od=n0(function(){return new F1});
g.I(this,this.Od);this.If=new k2(a,this.qc,this.Ca);g.I(this,this.If);this.Hb=new l2(a);g.I(this,this.Hb);this.Eu=new A2(a);g.I(this,this.Eu);this.Xf=new m2(a,this.pg);g.I(this,this.Xf);this.Oe=new n2(a,this.uc,this.Ha,this.Ta);g.I(this,this.Oe);this.He=new o2(a);g.I(this,this.He);this.Uh=new p2(a);g.I(this,this.Uh);this.qw=new K2(a);g.I(this,this.qw);this.Id=n0(function(){return new g2});
g.I(this,this.Id);this.Xh=n0(function(){return new h2(f.Ha)});
g.I(this,this.Xh);this.Gh=n0(function(){return new H1(f.Wc)});
g.I(this,this.Gh);this.Lh=n0(function(){return new N1(f.Ca,f.Oa,f.He,f.Ob)});
g.I(this,this.Lh);this.Um=n0(function(){return new Z7a(f.qc,f.Ha,f.Oa,f.Nc,f.Ob,f.Eu,f.qw,f.Pb,f.Ca,c)});
g.I(this,this.Um);this.Vh=n0(function(){return new c2(a,f.He,f.Oa,f.Ob,f.jf,f.Pe,f.Ta,f.Ha,f.uc,f.Lc,f.Ad,f.Wf,f.Pb,f.cg,f.Ca)});
g.I(this,this.Vh);this.jK=new q2(a,this.dn,this.fb);g.I(this,this.jK);this.An=new r2(a,this.cf,this.Kb,this.Ta,this.fb,this.Ca);g.I(this,this.An);this.rf={Kv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Wc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Aj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Wh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.sf]]),Sp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Hh],["SLOT_TYPE_FORECASTING",this.Od],["SLOT_TYPE_IN_PLAYER",this.Od],["SLOT_TYPE_PLAYER_BYTES",this.Od]]),bl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.If],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Hb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Hb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Hb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Hb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Hb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Hb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Hb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",
this.Hb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Hb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Hb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Eu],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Oe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Oe],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Oe],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.He],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",
this.Uh],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.qw]]),Wq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Id],["SLOT_TYPE_FORECASTING",this.Id],["SLOT_TYPE_IN_PLAYER",this.Id],["SLOT_TYPE_PLAYER_BYTES",this.Xh]]),zq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Gh],["SLOT_TYPE_FORECASTING",this.Lh],["SLOT_TYPE_IN_PLAYER",this.Um],["SLOT_TYPE_PLAYER_BYTES",this.Vh]])};this.listeners=[this.Nc.get()];this.uv={Wc:this.Wc,Bq:this.cf.get(),Ci:this.Ca.get(),rb:this.Pb.get(),nt:this.Ha.get(),Sc:this.Sc,
Tm:this.fb.get(),Aq:this.dn.get(),Jk:this.If,ej:this.Nc.get(),zn:this.Ta.get()}};
a8a=function(a,b,c,d,e){g.E.call(this);var f=this;this.fb=n0(function(){return new ID});
g.I(this,this.fb);this.Ab=n0(function(){return new b1(f.fb)});
g.I(this,this.Ab);this.Nc=n0(function(){return new $0});
g.I(this,this.Nc);this.ac=n0(function(){return new X0(a)});
g.I(this,this.ac);this.Jb=n0(function(){return new h1(f.fb,f.Ab,f.Ca)});
g.I(this,this.Jb);this.Sd=n0(function(){return new l1});
g.I(this,this.Sd);this.Wf=n0(function(){return new kN(b.T())});
g.I(this,this.Wf);this.qc=n0(function(){return new t2(b)});
g.I(this,this.qc);this.Pb=n0(function(){return new o0(e)});
g.I(this,this.Pb);this.Lc=n0(function(){return new BO(b)});
g.I(this,this.Lc);this.uc=n0(function(){return new n1(b)});
g.I(this,this.uc);this.Pe=n0(function(){return new w2(b)});
g.I(this,this.Pe);this.Ad=n0(function(){return new o1(b)});
g.I(this,this.Ad);this.Ca=n0(function(){return new p1(b)});
g.I(this,this.Ca);this.Hf=n0(function(){return new s2(d)});
g.I(this,this.Hf);this.Kb=n0(function(){return new $Z(f.Ca)});
g.I(this,this.Kb);this.Xd=n0(function(){return new V0(f.fb,f.Jb,f.Ab,f.Ca,f.Kb,null,null)});
g.I(this,this.Xd);this.cg=n0(function(){return new x2(b)});
g.I(this,this.cg);this.cf=n0(function(){return new y2});
g.I(this,this.cf);this.Ta=n0(function(){return new y1(b,f.Sd,f.Ca)});
g.I(this,this.Ta);this.Sb=new k1(this.Ca,this.Kb,this.Ta);g.I(this,this.Sb);this.Ha=n0(function(){return new z1(b,f.Ta,f.Ca)});
g.I(this,this.Ha);this.Ob=n0(function(){return new s1(f.Ha,b)});
g.I(this,this.Ob);this.Oa=n0(function(){return new v1(b,f.Nc,f.Ob,f.Ta)});
g.I(this,this.Oa);this.jf=n0(function(){return new D1});
g.I(this,this.jf);this.Wh=new e2(f2,L2,function(l,m,n,p){return M0(f.Ab.get(),l,m,n,p)},this.ac,this.Jb,this.Ab,this.Kb,this.Ca,this.Ta);
g.I(this,this.Wh);this.Sc=new ED(this.ac,this.Xd,c,this.Ca,a,this.Ta,this.Ha,this.Lc);g.I(this,this.Sc);var h=new m1(b,this.Sc,this.Ha,this.Ta);this.pg=n0(function(){return h});
this.Ys=h;this.sf=new Z0(this.ac,this.Jb,this.uc,this.pg);g.I(this,this.sf);this.Wc=new tC(this.Ca,this.ac,this.Jb,this.Xd,this.Ta,this.sf,c);g.I(this,this.Wc);this.Hh=n0(function(){return new E1(f.Hf,f.Ab,f.Kb,f.Ca,f.Oa,f.Ha)});
g.I(this,this.Hh);this.Od=n0(function(){return new F1});
g.I(this,this.Od);this.If=new k2(a,this.qc,this.Ca);g.I(this,this.If);this.Hb=new l2(a);g.I(this,this.Hb);this.Xf=new m2(a,this.pg);g.I(this,this.Xf);this.Oe=new n2(a,this.uc,this.Ha,this.Ta);g.I(this,this.Oe);this.He=new o2(a);g.I(this,this.He);this.Uh=new p2(a);g.I(this,this.Uh);this.Id=n0(function(){return new g2});
g.I(this,this.Id);this.Xh=n0(function(){return new h2(f.Ha)});
g.I(this,this.Xh);this.Gh=n0(function(){return new H1(f.Wc)});
g.I(this,this.Gh);this.Lh=n0(function(){return new N1(f.Ca,f.Oa,f.He,f.Ob)});
g.I(this,this.Lh);this.LW=n0(function(){return new j6a(f.qc,f.Ha,f.Oa,f.Nc,c,f.Ca)});
g.I(this,this.LW);this.Vh=n0(function(){return new c2(a,f.He,f.Oa,f.Ob,f.jf,f.Pe,f.Ta,f.Ha,f.uc,f.Lc,f.Ad,f.Wf,f.Pb,f.cg,f.Ca)});
g.I(this,this.Vh);this.An=new r2(a,this.cf,this.Kb,this.Ta,this.fb,this.Ca);g.I(this,this.An);this.rf={Kv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Wc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Wh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.sf]]),Sp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Hh],["SLOT_TYPE_FORECASTING",this.Od],["SLOT_TYPE_IN_PLAYER",this.Od],["SLOT_TYPE_PLAYER_BYTES",
this.Od]]),bl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.If],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Hb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Hb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Hb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Hb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Hb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Hb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Hb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Hb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Hb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Xf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Oe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Oe],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.He],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Uh]]),Wq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Id],["SLOT_TYPE_ABOVE_FEED",this.Id],["SLOT_TYPE_FORECASTING",this.Id],["SLOT_TYPE_IN_PLAYER",this.Id],["SLOT_TYPE_PLAYER_BYTES",this.Xh]]),zq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Gh],["SLOT_TYPE_FORECASTING",this.Lh],["SLOT_TYPE_IN_PLAYER",this.LW],["SLOT_TYPE_PLAYER_BYTES",this.Vh]])};this.listeners=[this.Nc.get()];this.uv={Wc:this.Wc,Bq:this.cf.get(),Ci:this.Ca.get(),rb:this.Pb.get(),nt:this.Ha.get(),Sc:this.Sc,Tm:this.fb.get(),Aq:null,Jk:this.If,ej:this.Nc.get(),zn:this.Ta.get()}};
b8a=function(a,b,c,d,e){g.E.call(this);var f=this;this.fb=n0(function(){return new ID});
g.I(this,this.fb);this.Ab=n0(function(){return new b1(f.fb)});
g.I(this,this.Ab);this.Nc=n0(function(){return new $0});
g.I(this,this.Nc);this.ac=n0(function(){return new X0(a)});
g.I(this,this.ac);this.Jb=n0(function(){return new h1(f.fb,f.Ab,f.Ca)});
g.I(this,this.Jb);this.Sd=n0(function(){return new l1});
g.I(this,this.Sd);this.Wf=n0(function(){return new kN(b.T())});
g.I(this,this.Wf);this.qc=n0(function(){return new t2(b)});
g.I(this,this.qc);this.Pb=n0(function(){return new o0(e)});
g.I(this,this.Pb);this.Lc=n0(function(){return new BO(b)});
g.I(this,this.Lc);this.uc=n0(function(){return new n1(b)});
g.I(this,this.uc);this.Pe=n0(function(){return new w2(b)});
g.I(this,this.Pe);this.Ad=n0(function(){return new o1(b)});
g.I(this,this.Ad);this.Ca=n0(function(){return new p1(b)});
g.I(this,this.Ca);this.Hf=n0(function(){return new s2(d)});
g.I(this,this.Hf);this.Kb=n0(function(){return new $Z(f.Ca)});
g.I(this,this.Kb);this.Xd=n0(function(){return new V0(f.fb,f.Jb,f.Ab,f.Ca,f.Kb,null,null)});
g.I(this,this.Xd);this.cg=n0(function(){return new x2(b)});
g.I(this,this.cg);this.cf=n0(function(){return new y2});
g.I(this,this.cf);this.Ta=n0(function(){return new y1(b,f.Sd,f.Ca)});
g.I(this,this.Ta);this.Sb=new k1(this.Ca,this.Kb,this.Ta);g.I(this,this.Sb);this.Ha=n0(function(){return new z1(b,f.Ta,f.Ca)});
g.I(this,this.Ha);this.Ob=n0(function(){return new s1(f.Ha,b)});
g.I(this,this.Ob);this.Oa=n0(function(){return new v1(b,f.Nc,f.Ob,f.Ta)});
g.I(this,this.Oa);this.jf=n0(function(){return new D1});
g.I(this,this.jf);this.Wh=new e2(f2,L2,function(l,m,n,p){return M0(f.Ab.get(),l,m,n,p)},this.ac,this.Jb,this.Ab,this.Kb,this.Ca,this.Ta);
g.I(this,this.Wh);this.Sc=new ED(this.ac,this.Xd,c,this.Ca,a,this.Ta,this.Ha,this.Lc);g.I(this,this.Sc);var h=new m1(b,this.Sc,this.Ha,this.Ta);this.pg=n0(function(){return h});
this.Ys=h;this.sf=new Z0(this.ac,this.Jb,this.uc,this.pg);g.I(this,this.sf);this.Wc=new tC(this.Ca,this.ac,this.Jb,this.Xd,this.Ta,this.sf,c);g.I(this,this.Wc);this.Hh=n0(function(){return new E1(f.Hf,f.Ab,f.Kb,f.Ca,f.Oa,f.Ha)});
g.I(this,this.Hh);this.Od=n0(function(){return new F1});
g.I(this,this.Od);this.If=new k2(a,this.qc,this.Ca);g.I(this,this.If);this.Hb=new l2(a);g.I(this,this.Hb);this.Xf=new m2(a,this.pg);g.I(this,this.Xf);this.Oe=new n2(a,this.uc,this.Ha,this.Ta);g.I(this,this.Oe);this.He=new o2(a);g.I(this,this.He);this.Uh=new p2(a);g.I(this,this.Uh);this.Id=n0(function(){return new g2});
g.I(this,this.Id);this.Xh=n0(function(){return new h2(f.Ha)});
g.I(this,this.Xh);this.Gh=n0(function(){return new H1(f.Wc)});
g.I(this,this.Gh);this.Lh=n0(function(){return new N1(f.Ca,f.Oa,f.He,f.Ob)});
g.I(this,this.Lh);this.Um=n0(function(){return new j6a(f.qc,f.Ha,f.Oa,f.Nc,c,f.Ca)});
g.I(this,this.Um);this.Vh=n0(function(){return new c2(a,f.He,f.Oa,f.Ob,f.jf,f.Pe,f.Ta,f.Ha,f.uc,f.Lc,f.Ad,f.Wf,f.Pb,f.cg,f.Ca)});
g.I(this,this.Vh);this.An=new r2(a,this.cf,this.Kb,this.Ta,this.fb,this.Ca);g.I(this,this.An);this.rf={Kv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Wc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Wh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.sf]]),Sp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Hh],["SLOT_TYPE_FORECASTING",this.Od],["SLOT_TYPE_IN_PLAYER",this.Od],["SLOT_TYPE_PLAYER_BYTES",
this.Od]]),bl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.If],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Hb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Hb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Hb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Hb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Hb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Hb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Hb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Hb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Hb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Xf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Oe],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.He],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Uh]]),Wq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Id],["SLOT_TYPE_FORECASTING",this.Id],["SLOT_TYPE_IN_PLAYER",this.Id],["SLOT_TYPE_PLAYER_BYTES",this.Xh]]),zq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Gh],["SLOT_TYPE_FORECASTING",this.Lh],["SLOT_TYPE_IN_PLAYER",this.Um],["SLOT_TYPE_PLAYER_BYTES",
this.Vh]])};this.listeners=[this.Nc.get()];this.uv={Wc:this.Wc,Bq:this.cf.get(),Ci:this.Ca.get(),rb:this.Pb.get(),nt:this.Ha.get(),Sc:this.Sc,Tm:this.fb.get(),Aq:null,Jk:this.If,ej:this.Nc.get(),zn:this.Ta.get()}};
M2=function(a,b,c,d,e,f,h,l,m){S1.call(this,a,b,c,d,e,f,h,m);this.Bm=l};
c8a=function(){var a=h6a();a.Be.push("metadata_type_ad_info_ad_metadata");return a};
d8a=function(a,b,c,d,e,f){this.qc=a;this.Ha=b;this.Oa=c;this.u=d;this.Bm=e;this.j=f};
e8a=function(a,b,c,d,e){g.E.call(this);var f=this;this.fb=n0(function(){return new ID});
g.I(this,this.fb);this.Ab=n0(function(){return new b1(f.fb)});
g.I(this,this.Ab);this.Nc=n0(function(){return new $0});
g.I(this,this.Nc);this.ac=n0(function(){return new X0(a)});
g.I(this,this.ac);this.Jb=n0(function(){return new h1(f.fb,f.Ab,f.Ca)});
g.I(this,this.Jb);this.Sd=n0(function(){return new l1});
g.I(this,this.Sd);this.Bm=n0(function(){return new V6a(b)});
g.I(this,this.Bm);this.Wf=n0(function(){return new kN(b.T())});
g.I(this,this.Wf);this.qc=n0(function(){return new t2(b)});
g.I(this,this.qc);this.Pb=n0(function(){return new o0(e)});
g.I(this,this.Pb);this.Lc=n0(function(){return new BO(b)});
g.I(this,this.Lc);this.uc=n0(function(){return new n1(b)});
g.I(this,this.uc);this.Pe=n0(function(){return new w2(b)});
g.I(this,this.Pe);this.Ad=n0(function(){return new o1(b)});
g.I(this,this.Ad);this.Ca=n0(function(){return new p1(b)});
g.I(this,this.Ca);this.Hf=n0(function(){return new s2(d)});
g.I(this,this.Hf);this.Kb=n0(function(){return new $Z(f.Ca)});
g.I(this,this.Kb);this.Xd=n0(function(){return new V0(f.fb,f.Jb,f.Ab,f.Ca,f.Kb,null,null)});
g.I(this,this.Xd);this.cg=n0(function(){return new x2(b)});
g.I(this,this.cg);this.cf=n0(function(){return new y2});
g.I(this,this.cf);this.Ta=n0(function(){return new y1(b,f.Sd,f.Ca)});
g.I(this,this.Ta);this.Sb=new k1(this.Ca,this.Kb,this.Ta);g.I(this,this.Sb);this.Ha=n0(function(){return new z1(b,f.Ta,f.Ca)});
g.I(this,this.Ha);this.Ob=n0(function(){return new s1(f.Ha,b)});
g.I(this,this.Ob);this.Oa=n0(function(){return new v1(b,f.Nc,f.Ob,f.Ta)});
g.I(this,this.Oa);this.jf=n0(function(){return new D1});
g.I(this,this.jf);this.Wh=new e2(G6a,L2,function(l,m,n,p){return a5a(f.Ab.get(),l,m,n,p)},this.ac,this.Jb,this.Ab,this.Kb,this.Ca,this.Ta);
g.I(this,this.Wh);this.Sc=new ED(this.ac,this.Xd,c,this.Ca,a,this.Ta,this.Ha,this.Lc);g.I(this,this.Sc);var h=new m1(b,this.Sc,this.Ha,this.Ta);this.pg=n0(function(){return h});
this.Ys=h;this.sf=new Z0(this.ac,this.Jb,this.uc,this.pg);g.I(this,this.sf);this.Wc=new tC(this.Ca,this.ac,this.Jb,this.Xd,this.Ta,this.sf,c);g.I(this,this.Wc);this.Hh=n0(function(){return new E1(f.Hf,f.Ab,f.Kb,f.Ca,f.Oa,f.Ha)});
g.I(this,this.Hh);this.Od=n0(function(){return new F1});
g.I(this,this.Od);this.If=new k2(a,this.qc,this.Ca);g.I(this,this.If);this.Hb=new l2(a);g.I(this,this.Hb);this.Xf=new m2(a,this.pg);g.I(this,this.Xf);this.Oe=new n2(a,this.uc,this.Ha,this.Ta);g.I(this,this.Oe);this.He=new o2(a);g.I(this,this.He);this.Uh=new p2(a);g.I(this,this.Uh);this.Id=n0(function(){return new g2});
g.I(this,this.Id);this.Xh=n0(function(){return new h2(f.Ha)});
g.I(this,this.Xh);this.Gh=n0(function(){return new H1(f.Wc)});
g.I(this,this.Gh);this.Lh=n0(function(){return new N1(f.Ca,f.Oa,f.He,f.Ob)});
g.I(this,this.Lh);this.Vh=n0(function(){return new c2(a,f.He,f.Oa,f.Ob,f.jf,f.Pe,f.Ta,f.Ha,f.uc,f.Lc,f.Ad,f.Wf,f.Pb,f.cg,f.Ca)});
g.I(this,this.Vh);this.WY=n0(function(){return new d8a(f.qc,f.Ha,f.Oa,f.Nc,f.Bm,c)});
g.I(this,this.WY);this.An=new r2(a,this.cf,this.Kb,this.Ta,this.fb,this.Ca);g.I(this,this.An);this.rf={Kv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Wc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Wh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.sf]]),Sp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Hh],["SLOT_TYPE_FORECASTING",this.Od],["SLOT_TYPE_IN_PLAYER",this.Od],["SLOT_TYPE_PLAYER_BYTES",
this.Od]]),bl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.If],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Hb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Hb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Hb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Hb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Hb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Hb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Hb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Hb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Hb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Xf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Oe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Oe],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.He],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Uh]]),Wq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Id],["SLOT_TYPE_FORECASTING",this.Id],["SLOT_TYPE_IN_PLAYER",this.Id],["SLOT_TYPE_PLAYER_BYTES",this.Xh]]),zq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Gh],["SLOT_TYPE_FORECASTING",
this.Lh],["SLOT_TYPE_IN_PLAYER",this.WY],["SLOT_TYPE_PLAYER_BYTES",this.Vh]])};this.listeners=[this.Nc.get()];this.uv={Wc:this.Wc,Bq:this.cf.get(),Ci:this.Ca.get(),rb:this.Pb.get(),nt:this.Ha.get(),Sc:this.Sc,Tm:this.fb.get(),Aq:null,Jk:this.If,ej:this.Nc.get(),zn:this.Ta.get()}};
f8a=function(a,b,c,d,e,f,h){this.qc=a;this.Ha=b;this.Oa=c;this.u=d;this.Bm=e;this.j=f;this.Ca=h};
g8a=function(a,b,c,d,e){g.E.call(this);var f=this;this.fb=n0(function(){return new ID});
g.I(this,this.fb);this.Ab=n0(function(){return new b1(f.fb)});
g.I(this,this.Ab);this.Nc=n0(function(){return new $0});
g.I(this,this.Nc);this.ac=n0(function(){return new X0(a)});
g.I(this,this.ac);this.Jb=n0(function(){return new h1(f.fb,f.Ab,f.Ca)});
g.I(this,this.Jb);this.Sd=n0(function(){return new l1});
g.I(this,this.Sd);this.Bm=n0(function(){return new V6a(b)});
g.I(this,this.Bm);this.Wf=n0(function(){return new kN(b.T())});
g.I(this,this.Wf);this.qc=n0(function(){return new t2(b)});
g.I(this,this.qc);this.Pb=n0(function(){return new o0(e)});
g.I(this,this.Pb);this.Lc=n0(function(){return new BO(b)});
g.I(this,this.Lc);this.uc=n0(function(){return new n1(b)});
g.I(this,this.uc);this.Pe=n0(function(){return new w2(b)});
g.I(this,this.Pe);this.Ad=n0(function(){return new o1(b)});
g.I(this,this.Ad);this.Ca=n0(function(){return new p1(b)});
g.I(this,this.Ca);this.Hf=n0(function(){return new s2(d)});
g.I(this,this.Hf);this.Kb=n0(function(){return new $Z(f.Ca)});
g.I(this,this.Kb);this.Xd=n0(function(){return new V0(f.fb,f.Jb,f.Ab,f.Ca,f.Kb,null,f.Aj,3)});
g.I(this,this.Xd);this.cg=n0(function(){return new x2(b)});
g.I(this,this.cg);this.cf=n0(function(){return new y2});
g.I(this,this.cf);this.Ta=n0(function(){return new y1(b,f.Sd,f.Ca)});
g.I(this,this.Ta);this.Sb=new k1(this.Ca,this.Kb,this.Ta);g.I(this,this.Sb);this.xf=n0(function(){return new v2(b,f.Ca,f.Oa)});
g.I(this,this.xf);this.qf=n0(function(){return new y7a(b)});
g.I(this,this.qf);this.Ha=n0(function(){return new z1(b,f.Ta,f.Ca)});
g.I(this,this.Ha);this.jf=n0(function(){return new D1});
this.Ob=n0(function(){return new s1(f.Ha,b)});
g.I(this,this.Ob);this.Oa=n0(function(){return new v1(b,f.Nc,f.Ob,f.Ta)});
g.I(this,this.Oa);this.Sc=new ED(this.ac,this.Xd,c,this.Ca,a,this.Ta,this.Ha,this.Lc);g.I(this,this.Sc);var h=new m1(b,this.Sc,this.Ha,this.Ta,this.xf);this.pg=n0(function(){return h});
this.Ys=h;this.Wh=new e2(H6a,L2,function(l,m,n,p){return a5a(f.Ab.get(),l,m,n,p)},this.ac,this.Jb,this.Ab,this.Kb,this.Ca,this.Ta);
g.I(this,this.Wh);this.Aj=new d2(this.ac,this.Jb,this.pg,this.xf,this.Ha,this.Ca,this.Oa,this.qf);g.I(this,this.Aj);this.sf=new Z0(this.ac,this.Jb,this.uc,this.pg);g.I(this,this.sf);this.Wc=new tC(this.Ca,this.ac,this.Jb,this.Xd,this.Ta,this.sf,c);g.I(this,this.Wc);this.Hh=n0(function(){return new E1(f.Hf,f.Ab,f.Kb,f.Ca,f.Oa,f.Ha,f.qf)});
g.I(this,this.Hh);this.Od=n0(function(){return new F1});
g.I(this,this.Od);this.If=new k2(a,this.qc,this.Ca);g.I(this,this.If);this.Hb=new l2(a);g.I(this,this.Hb);this.Xf=new m2(a,this.pg);g.I(this,this.Xf);this.Oe=new n2(a,this.uc,this.Ha,this.Ta);g.I(this,this.Oe);this.wv=new C2(a,this.Ta);g.I(this,this.wv);this.He=new o2(a);g.I(this,this.He);this.Uh=new p2(a);g.I(this,this.Uh);this.Id=n0(function(){return new g2});
g.I(this,this.Id);this.Xh=n0(function(){return new h2(f.Ha)});
g.I(this,this.Xh);this.Gh=n0(function(){return new H1(f.Wc)});
g.I(this,this.Gh);this.Lh=n0(function(){return new N1(f.Ca,f.Oa,f.He,f.Ob)});
g.I(this,this.Lh);this.Vh=n0(function(){return new w7a(a,f.He,f.Ta,f.qf,f.Ha,f.Oa,f.Sd,f.xf,f.Ob,f.jf,f.Pe,f.uc,f.Lc,f.Ad,f.Wf,f.Pb,f.cg,f.Ca,f.Nc)});
g.I(this,this.Vh);this.Um=n0(function(){return new f8a(f.qc,f.Ha,f.Oa,f.Nc,f.Bm,c,f.Ca)});
g.I(this,this.Um);this.An=new r2(a,this.cf,this.Kb,this.Ta,this.fb,this.Ca);g.I(this,this.An);this.rf={Kv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Wc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Aj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Wh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.sf]]),Sp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Hh],["SLOT_TYPE_FORECASTING",this.Od],
["SLOT_TYPE_IN_PLAYER",this.Od],["SLOT_TYPE_PLAYER_BYTES",this.Od]]),bl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.If],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Hb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Hb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Hb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Hb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Hb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Hb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Hb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Hb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.Hb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Oe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Oe],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.wv],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.wv],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.He],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Xf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Uh]]),Wq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Id],["SLOT_TYPE_FORECASTING",
this.Id],["SLOT_TYPE_IN_PLAYER",this.Id],["SLOT_TYPE_PLAYER_BYTES",this.Xh]]),zq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Gh],["SLOT_TYPE_FORECASTING",this.Lh],["SLOT_TYPE_PLAYER_BYTES",this.Vh],["SLOT_TYPE_IN_PLAYER",this.Um]])};this.listeners=[this.Nc.get()];this.uv={Wc:this.Wc,Bq:this.cf.get(),Ci:this.Ca.get(),rb:this.Pb.get(),nt:this.Ha.get(),Sc:this.Sc,Tm:this.fb.get(),Aq:null,Jk:this.If,ej:this.Nc.get(),zn:this.Ta.get()}};
i8a=function(a,b,c,d){g.E.call(this);var e=this;this.j=h8a(function(){return e.u},a,b,c,d);
g.I(this,this.j);this.u=(new H2a(this.j)).B();g.I(this,this.u)};
N2=function(a){return a.j.uv};
h8a=function(a,b,c,d,e){try{var f=b.T();if(g.GK(f))var h=new Y7a(a,b,c,d,e);else if(g.JK(f))h=new $7a(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===g.uJ(f))h=new b8a(a,b,c,d,e);else if(xK(f))h=new a8a(a,b,c,d,e);else if(g.qK(f))h=new e8a(a,b,c,d,e);else if(g.pK(f))h=new g8a(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.T(),DD("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.j.cplatform,interface:h.j.c,W7a:h.j.cver,V7a:h.j.ctheme,
U7a:h.j.cplayer,r8a:h.playerStyle}),new L5a(a,b,c,d,e)}};
j8a=function(a){LQ.call(this,a)};
k8a=function(a,b,c,d,e){TQ.call(this,a,{G:"div",N:"ytp-ad-timed-pie-countdown-container",W:[{G:"svg",N:"ytp-ad-timed-pie-countdown",X:{viewBox:"0 0 20 20"},W:[{G:"circle",N:"ytp-ad-timed-pie-countdown-background",X:{r:"10",cx:"10",cy:"10"}},{G:"circle",N:"ytp-ad-timed-pie-countdown-inner",X:{r:"5",cx:"10",cy:"10"}},{G:"circle",N:"ytp-ad-timed-pie-countdown-outer",X:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",b,c,d,e);this.B=this.Da("ytp-ad-timed-pie-countdown-inner");this.C=this.Da("ytp-ad-timed-pie-countdown-outer");
this.u=Math.ceil(10*Math.PI);this.hide()};
l8a=function(a,b,c,d,e,f){kQ.call(this,a,{G:"div",N:"ytp-ad-action-interstitial",X:{tabindex:"0"},W:[{G:"div",N:"ytp-ad-action-interstitial-background-container"},{G:"div",N:"ytp-ad-action-interstitial-slot",W:[{G:"div",N:"ytp-ad-action-interstitial-card",W:[{G:"div",N:"ytp-ad-action-interstitial-image-container"},{G:"div",N:"ytp-ad-action-interstitial-headline-container"},{G:"div",N:"ytp-ad-action-interstitial-description-container"},{G:"div",N:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial",b,c,d);this.oP=e;this.fI=f;this.navigationEndpoint=this.j=this.skipButton=this.u=this.actionButton=null;this.Ja=this.Da("ytp-ad-action-interstitial-image-container");this.J=new HQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-ad-action-interstitial-image");g.I(this,this.J);this.J.Ea(this.Ja);this.Ga=this.Da("ytp-ad-action-interstitial-headline-container");this.D=new RQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-ad-action-interstitial-headline");
g.I(this,this.D);this.D.Ea(this.Ga);this.Aa=this.Da("ytp-ad-action-interstitial-description-container");this.C=new RQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-ad-action-interstitial-description");g.I(this,this.C);this.C.Ea(this.Aa);this.Za=this.Da("ytp-ad-action-interstitial-background-container");this.Z=new HQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-ad-action-interstitial-background",!0);g.I(this,this.Z);this.Z.Ea(this.Za);this.Pa=this.Da("ytp-ad-action-interstitial-action-button-container");
this.slot=this.Da("ytp-ad-action-interstitial-slot");this.B=new Fz;g.I(this,this.B);this.hide()};
m8a=function(a){var b=g.Te("html5-video-player");b&&g.Mp(b,"ytp-ad-display-override",a)};
q8a=function(a,b,c,d){kQ.call(this,a,{G:"div",N:"ytp-ad-overlay-slot",W:[{G:"div",N:"ytp-ad-overlay-container"}]},"invideo-overlay",b,c,d);this.J=[];this.ib=this.Aa=this.C=this.Za=this.Ja=null;this.Pa=!1;this.D=null;this.Z=0;a=this.Da("ytp-ad-overlay-container");this.Ga=new bR(a,45E3,6E3,.3,.4);g.I(this,this.Ga);this.B=n8a(this);g.I(this,this.B);this.B.Ea(a);this.u=o8a(this);g.I(this,this.u);this.u.Ea(a);this.j=p8a(this);g.I(this,this.j);this.j.Ea(a);this.hide()};
n8a=function(a){var b=new g.jQ({G:"div",N:"ytp-ad-text-overlay",W:[{G:"div",N:"ytp-ad-overlay-ad-info-button-container"},{G:"div",N:"ytp-ad-overlay-close-container",W:[{G:"button",N:"ytp-ad-overlay-close-button",W:[AQ(r8a)]}]},{G:"div",N:"ytp-ad-overlay-title",ra:"{{title}}"},{G:"div",N:"ytp-ad-overlay-desc",ra:"{{description}}"},{G:"div",Ia:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],ra:"{{displayUrl}}"}]});a.S(b.Da("ytp-ad-overlay-title"),"click",function(c){O2(a,b.element,c)});
a.S(b.Da("ytp-ad-overlay-link"),"click",function(c){O2(a,b.element,c)});
a.S(b.Da("ytp-ad-overlay-close-container"),"click",a.Yo);b.hide();return b};
o8a=function(a){var b=new g.jQ({G:"div",Ia:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],W:[{G:"div",N:"ytp-ad-overlay-ad-info-button-container"},{G:"div",N:"ytp-ad-overlay-close-container",W:[{G:"button",N:"ytp-ad-overlay-close-button",W:[AQ(r8a)]}]},{G:"div",N:"ytp-ad-overlay-text-image",W:[{G:"img",X:{src:"{{imageUrl}}"}}]},{G:"div",N:"ytp-ad-overlay-title",ra:"{{title}}"},{G:"div",N:"ytp-ad-overlay-desc",ra:"{{description}}"},{G:"div",Ia:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
ra:"{{displayUrl}}"}]});a.S(b.Da("ytp-ad-overlay-title"),"click",function(c){O2(a,b.element,c)});
a.S(b.Da("ytp-ad-overlay-link"),"click",function(c){O2(a,b.element,c)});
a.S(b.Da("ytp-ad-overlay-close-container"),"click",a.Yo);a.S(b.Da("ytp-ad-overlay-text-image"),"click",a.H7);b.hide();return b};
p8a=function(a){var b=new g.jQ({G:"div",N:"ytp-ad-image-overlay",W:[{G:"div",N:"ytp-ad-overlay-ad-info-button-container"},{G:"div",N:"ytp-ad-overlay-close-container",W:[{G:"button",N:"ytp-ad-overlay-close-button",W:[AQ(r8a)]}]},{G:"div",N:"ytp-ad-overlay-image",W:[{G:"img",X:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.S(b.Da("ytp-ad-overlay-image"),"click",function(c){O2(a,b.element,c)});
a.S(b.Da("ytp-ad-overlay-close-container"),"click",a.Yo);b.hide();return b};
s8a=function(a,b){if(b){var c=g.S(b,Q0)||null;if(null==c)g.zD(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.Te("video-ads ytp-ad-module")||null,null==b)g.zD(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Aa=new g.jQ({G:"div",N:"ytp-ad-overlay-ad-info-dialog-container"}),g.I(a,a.Aa),a.Aa.Ea(b),b=new QQ(a.api,a.layoutId,a.interactionLoggingClientData,a.rb,a.Aa.element,!1),g.I(a,b),b.init(iN("ad-info-hover-text-button"),
c,a.macros),a.D){b.Ea(a.D,0);b.subscribe("f",a.i5,a);b.subscribe("e",a.TN,a);a.S(a.D,"click",a.j5);var d=g.Te("ytp-ad-button",b.element);a.S(d,"click",function(){var e;if(g.S(null==(e=g.S(c.button,g.pM))?void 0:e.serviceEndpoint,iFa))a.Pa=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.ib=b}else g.zD(Error("Ad info button container within overlay ad was not present."))}else g.AD(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
u8a=function(a,b){if(t8a(a,P2)||a.api.yg())return!1;var c=lQ(b.title),d=lQ(b.description);if(g.$b(c)||g.$b(d))return!1;a.Yf(a.B.element,b.trackingParams||null);a.B.updateValue("title",lQ(b.title));a.B.updateValue("description",lQ(b.description));a.B.updateValue("displayUrl",lQ(b.displayUrl));b.navigationEndpoint&&g.Fb(a.J,b.navigationEndpoint);a.B.show();a.Ga.start();a.Va(a.B.element,!0);a.S(a.B.element,"mouseover",function(){a.Z++});
return!0};
v8a=function(a,b){if(t8a(a,P2)||a.api.yg())return!1;var c=lQ(b.title),d=lQ(b.description);if(g.$b(c)||g.$b(d))return!1;a.Yf(a.u.element,b.trackingParams||null);a.u.updateValue("title",lQ(b.title));a.u.updateValue("description",lQ(b.description));a.u.updateValue("displayUrl",lQ(b.displayUrl));a.u.updateValue("imageUrl",EEa(b.image));b.navigationEndpoint&&g.Fb(a.J,b.navigationEndpoint);a.Za=b.imageNavigationEndpoint||null;a.u.show();a.Ga.start();a.Va(a.u.element,!0);a.S(a.u.element,"mouseover",function(){a.Z++});
return!0};
w8a=function(a,b){if(a.api.yg())return!1;var c=FEa(b.image),d=c;c.width<P2.width&&(d=P2);if(0===c.width||0===c.height||t8a(a,d))return!1;a.Yf(a.j.element,b.trackingParams||null);a.j.updateValue("imageUrl",EEa(b.image));a.j.updateValue("width",c.width);a.j.updateValue("height",c.height);b.navigationEndpoint&&g.Fb(a.J,b.navigationEndpoint);b=a.j.Da("ytp-ad-image-overlay");g.Jm(b,"max-width",c.width+"px");a.j.show();a.Va(a.j.element,!0);a.S(a.j.element,"mouseover",function(){a.Z++;a.api.yN("invideo-overlay",
a.layoutId)});
a.S(a.j.element,"mouseout",function(){a.api.xN("invideo-overlay",a.layoutId)});
return!0};
t8a=function(a,b){var c=a.api.jb().Fj(),d=a.api.Ak(!0,!1);return(b=P7a(c,c.height-(d.height+d.top),b))?(a.Ja&&b&&(c=g.jd(a.macros),c.ERRORCODE=b.jE.toString(),c.ERROR_MSG=b.errorMessage,a.layoutId?p0(a.rb,a.Ja,a.layoutId,c):g.zD(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
O2=function(a,b,c){var d=g.jd(a.macros),e=g.Um(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Sm(c,b).floor();d.I_X={toString:function(){return f.x.toString()}};
d.NX={toString:function(){return f.x.toString()}};
d.I_Y={toString:function(){return f.y.toString()}};
d.NY={toString:function(){return f.y.toString()}};
d.NM={toString:function(){return a.Z.toString()}};
b=g.v(a.J);for(c=b.next();!c.done;c=b.next())c=c.value,a.layoutId?p0(a.rb,c,a.layoutId,d):g.zD(Error("Missing layoutId for invideo_overlay_ad."));a.api.pauseVideo()};
x8a=function(a,b){a=a.api.getRootNode();g.Mp(a,"ytp-ad-overlay-open",b);g.Mp(a,"ytp-ad-overlay-closed",!b)};
y8a=function(a,b,c,d,e){TQ.call(this,a,{G:"div",N:"ytp-ad-message-overlay",W:[{G:"div",N:"ytp-ad-message-slot"}]},"ad-message",b,c,d,e);var f=this;this.Z=-1;this.B=0;this.J=!1;this.Aa=this.Da("ytp-ad-message-slot");this.u=new g.jQ({G:"span",N:"ytp-ad-message-container"});this.u.Ea(this.Aa);g.I(this,this.u);this.messageText=new RQ(this.api,this.layoutId,this.interactionLoggingClientData,d,"ytp-ad-message-text");g.I(this,this.messageText);this.messageText.Ea(this.u.element);this.C=new g.WQ(this.u,400,
!1,100,function(){f.hide()});
g.I(this,this.C);this.hide()};
z8a=function(a,b){a=a.api.getRootNode();g.Mp(a,"ytp-ad-overlay-open",b);g.Mp(a,"ytp-ad-overlay-closed",!b)};
A8a=function(a,b,c,d){kQ.call(this,a,{G:"div",N:"ytp-ad-underlay-companion",W:[{G:"div",N:"ytp-ad-underlay-side-container",W:[{G:"div",N:"ytp-ad-underlay-image-container"},{G:"div",N:"ytp-ad-underlay-description-container"},{G:"div",N:"ytp-ad-underlay-headline-container"},{G:"div",N:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",b,c,d);this.actionButton=null;this.Aa=this.Da("ytp-ad-underlay-image-container");this.B=new HQ(this.api,this.layoutId,this.interactionLoggingClientData,
this.rb,"ytp-ad-underlay-image");g.I(this,this.B);this.B.Ea(this.Aa);this.Z=this.Da("ytp-ad-underlay-headline-container");this.u=new RQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-ad-underlay-headline");g.I(this,this.u);this.u.Ea(this.Z);this.J=this.Da("ytp-ad-underlay-description-container");this.C=new RQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-ad-underlay-description");g.I(this,this.C);this.C.Ea(this.J);this.D=this.Da("ytp-ad-underlay-action-button-container");
this.j=this.Da("ytp-ad-underlay-side-container");this.hide()};
B8a=function(a){var b=g.Te("html5-video-player");b&&g.Mp(b,"ytp-ad-display-override",a)};
Q2=function(a,b,c,d,e,f){f=void 0===f?function(){}:f;
kQ.call(this,a,{G:"div",N:"ytp-ad-survey-answer"},"survey-answer",b,c,d);this.index=e;this.u=f;this.j=null;this.toggledLoggingParams="";this.answer=this.Da("ytp-ad-survey-answer");this.hide()};
C8a=function(a,b,c,d){kQ.call(this,a,{G:"div",N:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",b,c,d);this.button=null;this.j=this.Da("ytp-ad-survey-none-of-the-above");this.hide()};
R2=function(a,b,c,d){var e=["ytp-ad-survey-submit-button"];a.T().K("web_modern_buttons_bl_survey")&&e.push("ytp-ad-survey-submit-button-rounded");BQ.call(this,a,b,c,d,e,"survey-submit")};
S2=function(a,b,c,d,e){kQ.call(this,a,{G:"div",N:"ytp-ad-survey-player-overlay",W:[{G:"div",N:"ytp-ad-survey-player-overlay-instream-info"},{G:"div",N:"ytp-ad-survey-player-overlay-skip-preview-submit",W:[{G:"div",N:"ytp-ad-survey-player-overlay-skip-or-preview"},{G:"div",N:"ytp-ad-survey-player-overlay-submit"}]},{G:"div",N:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",b,c,d);this.B=e;this.u=this.j=null;this.C=this.Da("ytp-ad-survey-player-overlay-instream-info");
this.D=this.Da("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Da("ytp-ad-survey-player-overlay-submit");g.I(this,this.B);this.hide()};
T2=function(a,b,c,d,e,f){f=void 0===f?function(){}:f;
kQ.call(this,a,{G:"div",N:"ytp-ad-survey-question",W:[{G:"div",Ia:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{G:"div",Ia:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{G:"div",Ia:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{G:"div",N:"ytp-ad-survey-question-background"}]},e,b,c,d);this.Z=f;this.C=null;this.u=[];this.j=null;this.question=this.Da("ytp-ad-survey-question");this.Aa=this.Da("ytp-ad-survey-question-background");
this.questionText=this.Da("ytp-ad-survey-question-text");this.answers=this.Da("ytp-ad-survey-answers");this.playerOverlay=this.Da("ytp-ad-survey-question-player-overlay");this.B=g.Va()};
D8a=function(a,b){b=g.dE(b);g.mf(a.questionText,b);a.api.T().experiments.kb("fix_web_instream_survey_question_aria_label")&&a.answers.setAttribute("aria-label",b)};
E8a=function(a,b,c,d){d=new Q2(a.api,a.layoutId,a.interactionLoggingClientData,a.rb,d,a.Z);d.Ea(a.answers);d.init(iN("survey-answer"),b,c);a.u.push(d)};
G8a=function(a,b){if(b){var c=b.background;c&&g.S(c,F8a)&&(c=(c=g.S(c,F8a).image)&&GQ(c)||"",g.$b(c)?g.AD(Error("Found ThumbnailDetails without valid image URL")):g.Jm(a.Aa,"backgroundImage","url("+c+")"));if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.zD(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.B=g.Va();a.j=new hR(a.api,b.durationMilliseconds);g.I(a,a.j);if(a.j&&b.instreamAdPlayerOverlay&&g.S(b.instreamAdPlayerOverlay,
J3a))try{var d=new S2(a.api,a.layoutId,a.interactionLoggingClientData,a.rb,a.j);d.Ea(a.playerOverlay);d.init(iN("survey-player-overlay"),g.S(b.instreamAdPlayerOverlay,J3a),a.macros);a.C=d;g.I(a,d);a.kX()}catch(e){g.zD(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.zD(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.j&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new oR(a.api,a.j),b.Ea(a.playerOverlay),
g.I(a,b)):g.zD(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.zD(Error("addCommonComponents() needs to be called before starting countdown."))};
H8a=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.Va()-a.B).toString()})};
I8a=function(a,b,c,d,e){T2.call(this,a,b,c,d,"survey-question-multi-select");this.J=e;this.noneOfTheAbove=null;this.submitEndpoints=[];this.D=null;this.hide()};
J8a=function(a,b,c){a.noneOfTheAbove=new C8a(a.api,a.layoutId,a.interactionLoggingClientData,a.rb);a.noneOfTheAbove.Ea(a.answers);a.noneOfTheAbove.init(iN("survey-none-of-the-above"),b,c)};
L8a=function(a){a.u.forEach(function(b){b.j.toggleButton(!1)});
K8a(a,!0)};
K8a=function(a,b){var c=a.C;a=M8a(a);b=void 0===b?!1:b;c.j&&(a?c.j.hide():c.j.show(),b&&c.j instanceof dR&&!c.j.C&&nFa(c.j,!1));c.u&&(a?c.u.show():c.u.hide())};
M8a=function(a){return a.u.some(function(b){return b.j.isToggled()})||a.noneOfTheAbove.button.isToggled()};
U2=function(a,b,c,d,e){T2.call(this,a,b,c,d,"survey-question-single-select",function(h){f.api.T().K("supports_multi_step_on_desktop")&&e([h])});
var f=this;this.hide()};
V2=function(a,b,c,d){kQ.call(this,a,{G:"div",N:"ytp-ad-survey",W:[{G:"div",N:"ytp-ad-survey-questions"}]},"survey",b,c,d);this.questions=[];this.u=[];this.conditioningRules=[];this.j=0;this.D=this.Da("ytp-ad-survey-questions");this.hide()};
P8a=function(a,b){var c=a.u[b],d;null==(d=a.B)||d.dispose();g.S(c,zN)?N8a(a,g.S(c,zN),a.macros):g.S(c,AN)&&O8a(a,g.S(c,AN),a.macros);a.j=b};
N8a=function(a,b,c){var d=new U2(a.api,a.layoutId,a.interactionLoggingClientData,a.rb,a.C.bind(a));d.Ea(a.D);d.init(iN("survey-question-single-select"),b,c);a.api.T().K("supports_multi_step_on_desktop")?a.B=d:a.questions.push(d);g.I(a,d)};
O8a=function(a,b,c){var d=new I8a(a.api,a.layoutId,a.interactionLoggingClientData,a.rb,a.C.bind(a));d.Ea(a.D);d.init(iN("survey-question-multi-select"),b,c);a.api.T().K("supports_multi_step_on_desktop")?a.B=d:a.questions.push(d);g.I(a,d)};
W2=function(a,b,c,d){kQ.call(this,a,{G:"div",N:"ytp-ad-survey-interstitial",W:[{G:"div",N:"ytp-ad-survey-interstitial-contents",W:[{G:"div",N:"ytp-ad-survey-interstitial-logo",W:[{G:"div",N:"ytp-ad-survey-interstitial-logo-image"}]},{G:"div",N:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",b,c,d);this.j=this.actionButton=null;this.interstitial=this.Da("ytp-ad-survey-interstitial");this.u=this.Da("ytp-ad-survey-interstitial-contents");this.text=this.Da("ytp-ad-survey-interstitial-text");
this.logoImage=this.Da("ytp-ad-survey-interstitial-logo-image");this.transition=new g.WQ(this,500,!1,300);g.I(this,this.transition)};
Q8a=function(a,b){b=b&&GQ(b)||"";if(g.$b(b))g.AD(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.Ve&&10>document.documentMode)c=de;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.Ze("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=xla(d.style)}b=new ae([c,Lba({"background-image":'url("'+b+'")'})].map(wga).join(""),ce);a.style.cssText=be(b)}};
R8a=function(a){var b=g.Te("html5-video-player");b&&g.Mp(b,"ytp-ad-display-override",a)};
X2=function(a,b,c){LQ.call(this,a);this.api=a;this.rb=b;this.u={};a=new g.V({G:"div",Ia:["video-ads","ytp-ad-module"]});g.I(this,a);fK&&g.Ip(a.element,"ytp-ads-tiny-mode");this.D=new aQ(a.element);g.I(this,this.D);g.yS(this.api,a.element,4);t3a(c)&&(c=new g.V({G:"div",Ia:["ytp-ad-underlay"]}),g.I(this,c),this.B=new aQ(c.element),g.I(this,this.B),g.yS(this.api,c.element,0));g.I(this,VEa())};
S8a=function(a,b){a=g.hd(a.u,b.id,null);null==a&&g.AD(Error("Component not found for element id: "+b.id));return a||null};
T8a=function(a){g.tT.call(this,a);var b=this;this.u=this.Me=null;this.created=!1;this.au=new DP(this.player);this.B=function(){if(null!=b.u)return b.u;var d=eEa({Al:a.getVideoData(1)});d=new Q1a({mu:d.n3(),l2:function(){return b.Me},
Jk:N2(b.j).Jk,Tl:d.UL(),zn:N2(b.j).zn,F:b.player,Ci:N2(b.j).Ci,Oa:b.j.j.Oa,ej:N2(b.j).ej,Ad:b.j.j.Ad});b.u=d.IZ;return b.u};
this.j=new i8a(this.player,this,this.au,this.B);g.I(this,this.j);var c=a.T();!vK(c)||g.pK(c)||xK(c)||(g.I(this,new X2(a,N2(this.j).rb,N2(this.j).Ci)),g.I(this,new j8a(a)))};
U8a=function(a){a.created!==a.loaded&&DD("Created and loaded are out of sync")};
W8a=function(a){g.tT.prototype.load.call(a);var b=N2(a.j).Ci;Dsa(b.F.T().K("html5_reduce_ecatcher_errors"));try{a.player.getRootNode().classList.add("ad-created")}catch(n){DD(n instanceof Error?n:String(n))}var c=a.B(),d=a.player.getVideoData(1),e=d&&d.videoId||"",f=d&&d.getPlayerResponse()||{},h=(!a.player.T().experiments.kb("debug_ignore_ad_placements")&&f&&f.adPlacements||[]).map(function(n){return n.adPlacementRenderer}),l=((null==f?void 0:f.adSlots)||[]).map(function(n){return g.S(n,kra)});
f=f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;var m=d&&d.Zc()||!1;b=V8a(h,l,b,f,m,N2(a.j).Tm);h=d&&d.clientPlaybackNonce||"";d=d&&d.Au||!1;l=1E3*a.player.getDuration(1);a.Me=new XP(a,a.player,a.au,c,N2(a.j));oEa(a.Me,b.aB);a.j.j.Ys.Mj(h,l,d,b.mH,b.vS,b.mH.concat(b.aB),f,e);YP(a.Me)};
X8a=function(a,b){b===a.Ex&&(a.Ex=void 0)};
Y8a=function(a){a.Me?N2(a.j).Sc.nM()||a.Me.nM()||ZP(N2(a.j).nt):DD("AdService is null when calling maybeUnlockPrerollIfReady")};
Z8a=function(a){a=g.v(N2(a.j).ej.Wk.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&"core"===b.eb)return!0;DD("Ads Playback Not Managed By Controlflow");return!1};
$8a=function(a){a=g.v(N2(a.j).ej.Wk.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
uC=function(a,b,c,d,e){c=void 0===c?[]:c;d=void 0===d?"":d;e=void 0===e?"":e;var f=N2(a.j).Ci,h=a.player.getVideoData(1),l=h&&h.getPlayerResponse()||{};l=l&&l.playerConfig&&l.playerConfig.daiConfig&&l.playerConfig.daiConfig.enableDai||!1;h=h&&h.Zc()||!1;c=V8a(b,c,f,l,h,N2(a.j).Tm);ora(N2(a.j).Wc,d,c.mH,c.vS,b,e);a.Me&&0<c.aB.length&&(a=a.Me,b=c.aB,b=lEa(a,b),b=mEa(a,b),nEa(a,b))};
V8a=function(a,b,c,d,e,f){b={aB:[],mH:[],vS:b};a=g.v(a);for(var h=a.next();!h.done;h=a.next())if((h=h.value)&&null!=h.renderer){var l=h.renderer;if(!q5a(c)){var m=void 0,n=void 0,p=void 0,q=void 0,t=f;g.S(null==(q=l.sandwichedLinearAdRenderer)?void 0:q.adVideoStart,IP)?(m=g.S(null==(p=l.sandwichedLinearAdRenderer)?void 0:p.adVideoStart,IP),t=N1a(m,t),g.oO(l.sandwichedLinearAdRenderer.adVideoStart,IP,t)):g.S(null==(n=l.linearAdSequenceRenderer)?void 0:n.adStart,IP)&&(p=g.S(null==(m=l.linearAdSequenceRenderer)?
void 0:m.adStart,IP),t=N1a(p,t),g.oO(l.linearAdSequenceRenderer.adStart,IP,t))}t=c;m=e;d||null!=l.instreamSurveyAdRenderer||null!=l.sandwichedLinearAdRenderer&&null!=l.sandwichedLinearAdRenderer.linearAd&&null!=g.S(l.sandwichedLinearAdRenderer.linearAd,s0)||null!=l.videoAdTrackingRenderer||null!=l.clientForecastingAdRenderer||null!=l.actionCompanionAdRenderer||null!=l.imageCompanionAdRenderer||null!=l.shoppingCompanionCarouselRenderer||null!=l.adsEngagementPanelRenderer||null!=l.invideoOverlayAdRenderer||
null!=l.adBreakServiceRenderer?l=!0:null!=l.instreamVideoAdRenderer||null!=l.remoteSlotsRenderer?(l=m)||(g.IK(t.F.T())||vK(t.F.T())||g.wK(t.F.T())?l=!0:(DD("Single VOD on legacy path."),l=!1)):l=l.linearAdSequenceRenderer&&l.linearAdSequenceRenderer.linearAds?l.linearAdSequenceRenderer.adStart?q5a(t):m||m2a(t):null!=l.sandwichedLinearAdRenderer?P4a(t):!1;l?b.mH.push(h):(DD("Bulleit AdPlacementRenderer found"),b.aB.push(h))}return b};
a9a=function(){if(!g.Ve)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.c9a=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=g.me(a);return b.parseFromString(g.fe(a),"application/xml")}if(b9a){b=new ActiveXObject("MSXML2.DOMDocument");b.resolveExternals=!1;b.validateOnParse=!1;try{b.setProperty("ProhibitDTD",!0),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
g.Y2=function(a){g.E.call(this);this.callback=a;this.j=new Zp(0,0,.4,0,.2,1,1,1);this.delay=new g.yp(this.next,window,this);g.I(this,this.delay)};
g.d9a=function(a){var b=a.T();if(!b.rd||b.B||!g.iK(b))return!1;var c=g.iS(a);return(a=b.K("shorts_mode_to_player_api")?a.Tb():c.Tb())?(c=c.Ak(),315<=Math.min(c.width,c.height)):a?!1:!c.Ug()};
g.Z2=function(a,b){g.V.call(this,{G:"div",N:"ytp-more-videos-view",X:{tabIndex:"-1"}});var c=this;this.api=a;this.I=b;this.B=!0;this.C=new g.eI(this);this.u=[];this.suggestionData=[];this.columns=this.containerWidth=this.Z=this.D=this.j=0;this.title=new g.V({G:"h2",N:"ytp-related-title",ra:"{{title}}"});this.previous=new g.V({G:"button",Ia:["ytp-button","ytp-previous"],X:{"aria-label":"Show previous suggested videos"},W:[g.nQ()]});this.V=new g.Y2(function(d){c.suggestions.element.scrollLeft=-d});
this.next=new g.V({G:"button",Ia:["ytp-button","ytp-next"],X:{"aria-label":"Show more suggested videos"},W:[g.oQ()]});g.I(this,this.C);this.J=a.T().C;g.I(this,this.title);this.title.Ea(this.element);this.suggestions=new g.V({G:"div",N:"ytp-suggestions"});g.I(this,this.suggestions);this.suggestions.Ea(this.element);g.I(this,this.previous);this.previous.Ea(this.element);this.previous.Ra("click",this.KZ,this);g.I(this,this.V);e9a(this);g.I(this,this.next);this.next.Ea(this.element);this.next.Ra("click",
this.JZ,this);this.C.S(this.api,"appresize",this.Db);this.C.S(this.api,"fullscreentoggled",this.Hq);this.C.S(this.api,"videodatachange",this.onVideoDataChange);this.Db(this.api.jb().getPlayerSize());this.onVideoDataChange()};
e9a=function(a){for(var b={Cw:0};16>b.Cw;b={Cw:b.Cw},++b.Cw){var c=new g.V({G:"a",N:"ytp-suggestion-link",X:{href:"{{link}}",target:a.api.T().ea,"aria-label":"{{aria_label}}"},W:[{G:"div",N:"ytp-suggestion-image"},{G:"div",N:"ytp-suggestion-overlay",X:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},W:[{G:"div",N:"ytp-suggestion-title",ra:"{{title}}"},{G:"div",N:"ytp-suggestion-author",ra:"{{author_and_views}}"},{G:"div",X:{"data-is-live":"{{is_live}}"},N:"ytp-suggestion-duration",
ra:"{{duration}}"}]}]});g.I(a,c);var d=c.Da("ytp-suggestion-link");g.Jm(d,"transitionDelay",b.Cw/20+"s");a.C.S(d,"click",function(e){return function(f){var h=e.Cw;if(a.B){var l=a.suggestionData[h],m=l.sessionData;g.iK(a.api.T())&&a.api.K("web_player_log_click_before_generating_ve_conversion_params")?(a.api.qb(a.u[h].element),h=l.Bk(),l={},g.BKa(a.api,l,"emb_rel_pause"),h=g.Ui(h,l),g.PT(h,a.api,f)):g.OT(f,a.api,a.J,m||void 0)&&a.api.Jn(l.videoId,m,l.playlistId)}else g.IO(f),document.activeElement.blur()}}(b));
c.Ea(a.suggestions.element);a.u.push(c);a.api.Yf(c.element,c)}};
f9a=function(a){if(a.api.T().K("web_player_log_click_before_generating_ve_conversion_params"))for(var b=Math.floor(-a.j/(a.D+8)),c=Math.min(b+a.columns,a.suggestionData.length)-1;b<=c;b++)a.api.Va(a.u[b].element,!0)};
g.$2=function(a){var b=a.I.xg()?32:16;b=a.Z/2+b;a.next.element.style.bottom=b+"px";a.previous.element.style.bottom=b+"px";b=a.j;var c=a.containerWidth-a.suggestionData.length*(a.D+8);g.Mp(a.element,"ytp-scroll-min",0<=b);g.Mp(a.element,"ytp-scroll-max",b<=c)};
h9a=function(a){for(var b=a.suggestionData.length,c=0;c<b;++c){var d=void 0,e=void 0,f=void 0;d=a;var h=d.api.T(),l=d.suggestionData[c],m=d.u[c];f=d.isShortsModeEnabled()?l.shortViewCount||"":l.shortViewCount?l.author+" \u2022 "+l.shortViewCount:l.author;m.element.style.display="";e=m.Da("ytp-suggestion-link");g.Jm(e,"display","inline-block");g9a.test(l.title)&&(m.Da("ytp-suggestion-title").dir="rtl");g9a.test(f)&&(m.Da("ytp-suggestion-author").dir="rtl");e=l.isLivePlayback?"Live":l.lengthSeconds?
g.jR(l.lengthSeconds):"";var n=l.Bk(d.isShortsModeEnabled());if(g.iK(h)&&!h.K("web_player_log_click_before_generating_ve_conversion_params")){var p={};h.ya&&g.$R(p,h.loaderUrl);g.gS(d.api,"addEmbedsConversionTrackingParams",[p]);n=g.Ui(n,g.ZR(p,"emb_rel_pause"))}h.K("web_player_log_click_before_generating_ve_conversion_params")&&(h=(h=l.sessionData)&&h.itct)&&d.api.jg(m.element,h);m.update({author_and_views:f,duration:e,link:n,title:l.title,aria_label:l.ariaLabel||l.title,is_live:l.isLivePlayback,
aria_hidden:!!l.ariaLabel,blink_rendering_hack:g.hI||g.gK?"will-change: opacity":void 0});f=m.Da("ytp-suggestion-image");d=d.isShortsModeEnabled()?l.vg("hq2.jpg"):l.vg();f.style.backgroundImage=d?"url("+d+")":""}if(16>b)for(;16>b;++b)c=a.u[b].Da("ytp-suggestion-link"),g.Jm(c,"display","none");g.$2(a)};
aaa=[];fa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
g.da=caa(this);ka("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}
function c(f,h){this.j=f;fa(this,"description",{configurable:!0,writable:!0,value:h})}
if(a)return a;c.prototype.toString=function(){return this.j};
var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
ka("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=g.da[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&fa(d.prototype,a,{configurable:!0,writable:!0,value:function(){return daa(baa(this))}})}return a});
var i9a="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)ma(d,e)&&(a[e]=d[e])}return a};
ka("Object.assign",function(a){return a||i9a});
var gaa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},j9a=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
e=gaa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),k9a;
if("function"==typeof Object.setPrototypeOf)k9a=Object.setPrototypeOf;else{var l9a;a:{var m9a={a:!0},n9a={};try{n9a.__proto__=m9a;l9a=n9a.a;break a}catch(a){}l9a=!1}k9a=l9a?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var oa=k9a;
pa.prototype.V=function(a){this.u=a};
pa.prototype.return=function(a){this.B={return:a};this.j=this.D};
pa.prototype.Ka=function(a){this.j=a};
ka("Reflect",function(a){return a?a:{}});
ka("Reflect.construct",function(){return j9a});
ka("Reflect.setPrototypeOf",function(a){return a?a:oa?function(b,c){try{return oa(b,c),!0}catch(d){return!1}}:null});
ka("Promise",function(a){function b(h){this.j=0;this.B=void 0;this.u=[];this.J=!1;var l=this.C();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.j=null}
function d(h){return h instanceof b?h:new b(function(l){l(h)})}
if(a)return a;c.prototype.u=function(h){if(null==this.j){this.j=[];var l=this;this.B(function(){l.D()})}this.j.push(h)};
var e=g.da.setTimeout;c.prototype.B=function(h){e(h,0)};
c.prototype.D=function(){for(;this.j&&this.j.length;){var h=this.j;this.j=[];for(var l=0;l<h.length;++l){var m=h[l];h[l]=null;try{m()}catch(n){this.C(n)}}}this.j=null};
c.prototype.C=function(h){this.B(function(){throw h;})};
b.prototype.C=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:h(this.ya),reject:h(this.D)}};
b.prototype.ya=function(h){if(h===this)this.D(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Ga(h);else{a:switch(typeof h){case "object":var l=null!=h;break a;case "function":l=!0;break a;default:l=!1}l?this.oa(h):this.I(h)}};
b.prototype.oa=function(h){var l=void 0;try{l=h.then}catch(m){this.D(m);return}"function"==typeof l?this.Ja(l,h):this.I(h)};
b.prototype.D=function(h){this.V(2,h)};
b.prototype.I=function(h){this.V(1,h)};
b.prototype.V=function(h,l){if(0!=this.j)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.j);this.j=h;this.B=l;2===this.j&&this.Aa();this.ea()};
b.prototype.Aa=function(){var h=this;e(function(){if(h.Z()){var l=g.da.console;"undefined"!==typeof l&&l.error(h.B)}},1)};
b.prototype.Z=function(){if(this.J)return!1;var h=g.da.CustomEvent,l=g.da.Event,m=g.da.dispatchEvent;if("undefined"===typeof m)return!0;"function"===typeof h?h=new h("unhandledrejection",{cancelable:!0}):"function"===typeof l?h=new l("unhandledrejection",{cancelable:!0}):(h=g.da.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.B;return m(h)};
b.prototype.ea=function(){if(null!=this.u){for(var h=0;h<this.u.length;++h)f.u(this.u[h]);this.u=null}};
var f=new c;b.prototype.Ga=function(h){var l=this.C();h.aF(l.resolve,l.reject)};
b.prototype.Ja=function(h,l){var m=this.C();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(h,l){function m(t,w){return"function"==typeof t?function(z){try{n(t(z))}catch(C){p(C)}}:w}
var n,p,q=new b(function(t,w){n=t;p=w});
this.aF(m(h,n),m(l,p));return q};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.aF=function(h,l){function m(){switch(n.j){case 1:h(n.B);break;case 2:l(n.B);break;default:throw Error("Unexpected state: "+n.j);}}
var n=this;null==this.u?f.u(m):this.u.push(m);this.J=!0};
b.resolve=d;b.reject=function(h){return new b(function(l,m){m(h)})};
b.race=function(h){return new b(function(l,m){for(var n=g.v(h),p=n.next();!p.done;p=n.next())d(p.value).aF(l,m)})};
b.all=function(h){var l=g.v(h),m=l.next();return m.done?d([]):new b(function(n,p){function q(z){return function(C){t[z]=C;w--;0==w&&n(t)}}
var t=[],w=0;do t.push(void 0),w++,d(m.value).aF(q(t.length-1),p),m=l.next();while(!m.done)})};
return b});
ka("Object.setPrototypeOf",function(a){return a||oa});
ka("WeakMap",function(a){function b(m){this.j=(l+=Math.random()+1).toString();if(m){m=g.v(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}}
function c(){}
function d(m){var n=typeof m;return"object"===n&&null!==m||"function"===n}
function e(m){if(!ma(m,h)){var n=new c;fa(m,h,{value:n})}}
function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return n(p)})}
if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p.delete(m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(q){return!1}}())return a;
var h="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!ma(m,h))throw Error("WeakMap key fail: "+m);m[h][this.j]=n;return this};
b.prototype.get=function(m){return d(m)&&ma(m,h)?m[h][this.j]:void 0};
b.prototype.has=function(m){return d(m)&&ma(m,h)&&ma(m[h],this.j)};
b.prototype.delete=function(m){return d(m)&&ma(m,h)&&ma(m[h],this.j)?delete m[h][this.j]:!1};
return b});
ka("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.j;return daa(function(){if(n){for(;n.head!=l.j;)n=n.previous;for(;n.next!=n.head;)return n=n.next,{done:!1,value:m(n)};n=null}return{done:!0,value:void 0}})}
function d(l,m){var n=m&&typeof m;"object"==n||"function"==n?f.has(m)?n=f.get(m):(n=""+ ++h,f.set(m,n)):n="p_"+m;var p=l.data_[n];if(p&&ma(l.data_,n))for(l=0;l<p.length;l++){var q=p[l];if(m!==m&&q.key!==q.key||m===q.key)return{id:n,list:p,index:l,entry:q}}return{id:n,list:p,index:-1,entry:void 0}}
function e(l){this.data_={};this.j=b();this.size=0;if(l){l=g.v(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),m=new a(g.v([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||"s"!=p.value[1])return!1;p=n.next();return p.done||4!=p.value[0].x||"t"!=p.value[1]||!n.next().done?!1:!0}catch(q){return!1}}())return a;
var f=new WeakMap;e.prototype.set=function(l,m){l=0===l?0:l;var n=d(this,l);n.list||(n.list=this.data_[n.id]=[]);n.entry?n.entry.value=m:(n.entry={next:this.j,previous:this.j.previous,head:this.j,key:l,value:m},n.list.push(n.entry),this.j.previous.next=n.entry,this.j.previous=n.entry,this.size++);return this};
e.prototype.delete=function(l){l=d(this,l);return l.entry&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.data_[l.id],l.entry.previous.next=l.entry.next,l.entry.next.previous=l.entry.previous,l.entry.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.data_={};this.j=this.j.previous=b();this.size=0};
e.prototype.has=function(l){return!!d(this,l).entry};
e.prototype.get=function(l){return(l=d(this,l).entry)&&l.value};
e.prototype.entries=function(){return c(this,function(l){return[l.key,l.value]})};
e.prototype.keys=function(){return c(this,function(l){return l.key})};
e.prototype.values=function(){return c(this,function(l){return l.value})};
e.prototype.forEach=function(l,m){for(var n=this.entries(),p;!(p=n.next()).done;)p=p.value,l.call(m,p[1],p[0],this)};
e.prototype[Symbol.iterator]=e.prototype.entries;var h=0;return e});
ka("Array.prototype.keys",function(a){return a?a:function(){return Ea(this,function(b){return b})}});
ka("Array.prototype.find",function(a){return a?a:function(b,c){return naa(this,b,c).QY}});
ka("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Fa(this,b,"endsWith");b+="";void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});
ka("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&&c<e;)if(d[c++]!=b[h++])return!1;return h>=f}});
ka("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ka("String.prototype.repeat",function(a){return a?a:function(b){var c=Fa(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
ka("Set",function(a){function b(c){this.j=new Map;if(c){c=g.v(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.size}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.v([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;
b.prototype.add=function(c){c=0===c?0:c;this.j.set(c,c);this.size=this.j.size;return this};
b.prototype.delete=function(c){c=this.j.delete(c);this.size=this.j.size;return c};
b.prototype.clear=function(){this.j.clear();this.size=0};
b.prototype.has=function(c){return this.j.has(c)};
b.prototype.entries=function(){return this.j.entries()};
b.prototype.values=function(){return this.j.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.j.forEach(function(f){return c.call(d,f,f,e)})};
return b});
ka("Array.prototype.values",function(a){return a?a:function(){return Ea(this,function(b,c){return c})}});
ka("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
ka("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
ka("Array.prototype.entries",function(a){return a?a:function(){return Ea(this,function(b,c){return[b,c]})}});
ka("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l};
var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
ka("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
ka("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});
ka("Int8Array.prototype.fill",Ga);ka("Uint8Array.prototype.fill",Ga);ka("Uint8ClampedArray.prototype.fill",Ga);ka("Int16Array.prototype.fill",Ga);ka("Uint16Array.prototype.fill",Ga);ka("Int32Array.prototype.fill",Ga);ka("Uint32Array.prototype.fill",Ga);ka("Float32Array.prototype.fill",Ga);ka("Float64Array.prototype.fill",Ga);ka("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)ma(b,d)&&c.push([d,b[d]]);return c}});
ka("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
ka("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});
ka("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Fa(this,b,"includes").indexOf(b,c||0)}});
ka("globalThis",function(a){return a||g.da});
ka("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;
})})}});
ka("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});
ka("Array.prototype.findIndex",function(a){return a?a:function(b,c){return naa(this,b,c).i}});
ka("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)ma(b,d)&&c.push(b[d]);return c}});
ka("Math.sign",function(a){return a?a:function(b){b=Number(b);return 0===b||isNaN(b)?b:0<b?1:-1}});
ka("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
ka("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Fa(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";return(0<b&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});
ka("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError(""+b+" is not iterable");b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("iterable for fromEntries should yield objects");c[d[0]]=d[1]}return c}});
ka("WeakSet",function(a){function b(c){this.j=new WeakMap;if(c){c=g.v(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});
ka("Math.imul",function(a){return a?a:function(b,c){b=Number(b);c=Number(c);var d=b&65535,e=c&65535;return d*e+((b>>>16&65535)*e+d*(c>>>16&65535)<<16>>>0)|0}});
ka("Math.clz32",function(a){return a?a:function(b){b=Number(b)>>>0;if(0===b)return 32;var c=0;0===(b&4294901760)&&(b<<=16,c+=16);0===(b&4278190080)&&(b<<=8,c+=8);0===(b&4026531840)&&(b<<=4,c+=4);0===(b&3221225472)&&(b<<=2,c+=2);0===(b&2147483648)&&c++;return c}});
ka("Array.prototype.copyWithin",function(a){function b(c){c=Number(c);return Infinity===c||-Infinity===c?c:c|0}
return a?a:function(c,d,e){var f=this.length;c=b(c);d=b(d);e=void 0===e?f:b(e);c=0>c?Math.max(f+c,0):Math.min(c,f);d=0>d?Math.max(f+d,0):Math.min(d,f);e=0>e?Math.max(f+e,0):Math.min(e,f);if(c<d)for(;d<e;)d in this?this[c++]=this[d++]:(delete this[c++],d++);else for(e=Math.min(e,f+d-c),c+=e-d;e>d;)--e in this?this[--c]=this[e]:delete this[--c];return this}});
ka("Int8Array.prototype.copyWithin",Ia);ka("Uint8Array.prototype.copyWithin",Ia);ka("Uint8ClampedArray.prototype.copyWithin",Ia);ka("Int16Array.prototype.copyWithin",Ia);ka("Uint16Array.prototype.copyWithin",Ia);ka("Int32Array.prototype.copyWithin",Ia);ka("Uint32Array.prototype.copyWithin",Ia);ka("Float32Array.prototype.copyWithin",Ia);ka("Float64Array.prototype.copyWithin",Ia);
ka("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(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),c)}});
ka("Number.parseInt",function(a){return a||parseInt});
$i=$i||{};g.Ja=this||self;Qa="closure_uid_"+(1E9*Math.random()>>>0);paa=0;g.k=bb.prototype;g.k.M1=function(a){var b=g.Ca.apply(1,arguments),c=this.EL(b);c?c.push(new saa(a)):this.FX(a,b)};
g.k.FX=function(a){this.Px.set(this.QT(g.Ca.apply(1,arguments)),[new saa(a)])};
g.k.EL=function(){var a=this.QT(g.Ca.apply(0,arguments));return this.Px.has(a)?this.Px.get(a):void 0};
g.k.r3=function(){var a=this.EL(g.Ca.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.k.clear=function(){this.Px.clear()};
g.k.QT=function(){var a=g.Ca.apply(0,arguments);return a?a.join(","):"key"};g.x(db,bb);db.prototype.B=function(a){var b=g.Ca.apply(1,arguments),c=0,d=this.r3(b);d&&(c=d.PS);this.FX(c+a,b)};g.x(fb,bb);fb.prototype.Of=function(a){this.M1(a,g.Ca.apply(1,arguments))};g.E.prototype.Ro=!1;g.E.prototype.isDisposed=function(){return this.Ro};
g.E.prototype.dispose=function(){this.Ro||(this.Ro=!0,this.qa())};
g.E.prototype.qa=function(){if(this.hk)for(;this.hk.length;)this.hk.shift()()};g.Ya(nb,Error);nb.prototype.name="CustomError";var gca;g.Ya(ob,nb);ob.prototype.name="AssertionError";g.pb.prototype.stopPropagation=function(){this.u=!0};
g.pb.prototype.preventDefault=function(){this.defaultPrevented=!0};var vaa,bm,Ym;vaa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);
for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
g.o9a=Array.prototype.lastIndexOf?function(a,b){return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;
0>c&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
g.Ub=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
g.On=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h="string"===typeof a?a.split(""):a,l=0;l<d;l++)if(l in h){var m=h[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.$l=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f="string"===typeof a?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));
return e};
bm=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.Ub)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
Ym=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;
return!1};
g.am=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};var Wb={};var lba=function(){if(!g.Ja.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{var c=function(){};
g.Ja.addEventListener("test",c,b);g.Ja.removeEventListener("test",c,b)}catch(d){}return a}();var p9a=Ma(1,!0),ic=Ma(610401301,!1);Ma(899588437,!1);Ma(513561853,p9a);Ma(516931134,p9a);Ma(2147483644,!1);Ma(2147483645,!1);Ma(2147483646,p9a);Ma(2147483647,!0);var jc=!!g.La("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var ec=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Jaa=/&/g,Kaa=/</g,Laa=/>/g,Maa=/"/g,Naa=/'/g,Oaa=/\x00/g,Iaa=/[\x00&<>"']/;var lc,q9a=g.Ja.navigator;lc=q9a?q9a.userAgentData||null:null;Hc[" "]=function(){};var Km,VW,z1a,r9a,s9a,t9a,eK,fK,u9a;g.gK=rc();g.Ve=tc();g.lB=nc("Edge");g.KK=g.lB||g.Ve;Km=nc("Gecko")&&!(dc(g.hc(),"WebKit")&&!nc("Edge"))&&!(nc("Trident")||nc("MSIE"))&&!nc("Edge");g.Nc=dc(g.hc(),"WebKit")&&!nc("Edge");VW=Gc();z1a=Uaa();g.bz=Taa();r9a=Cc();s9a=nc("iPad");t9a=nc("iPod");eK=Fc();fK=dc(g.hc(),"KaiOS");
a:{var v9a="",w9a=function(){var a=g.hc();if(Km)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.lB)return/Edge\/([\d\.]+)/.exec(a);if(g.Ve)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Nc)return/WebKit\/(\S+)/.exec(a);if(g.gK)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
w9a&&(v9a=w9a?w9a[1]:"");if(g.Ve){var x9a=Yaa();if(null!=x9a&&x9a>parseFloat(v9a)){u9a=String(x9a);break a}}u9a=v9a}var Jc=u9a,Waa={},y9a;if(g.Ja.document&&g.Ve){var z9a=Yaa();y9a=z9a?z9a:parseInt(Jc,10)||void 0}else y9a=void 0;var Zaa=y9a;var qNa=$aa("AnimationEnd"),NKa=$aa("TransitionEnd");g.Ya(Rc,g.pb);var A9a={2:"touch",3:"pen",4:"mouse"};
Rc.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)?Km&&(Ic(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=void 0!==a.clientX?
a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:A9a[a.pointerType]||"";this.state=a.state;this.j=a;a.defaultPrevented&&Rc.Ff.preventDefault.call(this)};
Rc.prototype.stopPropagation=function(){Rc.Ff.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
Rc.prototype.preventDefault=function(){Rc.Ff.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var aba="closure_listenable_"+(1E6*Math.random()|0);var bba=0;var hba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");g.k=md.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=od(a,b,d,e);-1<h?(b=a[h],c||(b.ZE=!1)):(b=new cba(b,this.src,f,!!d,e),b.ZE=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=od(e,b,c,d);return-1<b?(Tc(e[b]),g.zb(e,b),0==e.length&&(delete this.listeners[a],this.j--),!0):!1};
g.k.Df=function(){var a=0,b;for(b in this.listeners){for(var c=this.listeners[b],d=0;d<c.length;d++)++a,Tc(c[d]);delete this.listeners[b];this.j--}};
g.k.PB=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=od(a,b,c,d));return-1<e?a[e]:null};
g.k.hasListener=function(a,b){var c=void 0!==a,d=c?a.toString():"",e=void 0!==b;return g.Yc(this.listeners,function(f){for(var h=0;h<f.length;++h)if(!(c&&f[h].type!=d||e&&f[h].capture!=b))return!0;return!1})};var yd="closure_lm_"+(1E6*Math.random()|0),Ad={},nba=0,Bd="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Ya(g.Cd,g.E);g.Cd.prototype[aba]=!0;g.k=g.Cd.prototype;g.k.addEventListener=function(a,b,c,d){g.sd(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){pba(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.nO;if(b){var c=[];for(var d=1;b;b=b.nO)c.push(b),++d}b=this.G1;d=a.type||a;if("string"===typeof a)a=new g.pb(a,b);else if(a instanceof g.pb)a.target=a.target||b;else{var e=a;a=new g.pb(d,b);g.ld(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var h=a.currentTarget=c[f];e=Dd(h,d,!0,a)&&e}a.u||(h=a.currentTarget=b,e=Dd(h,d,!0,a)&&e,a.u||(e=Dd(h,d,!1,a)&&e));if(c)for(f=0;!a.u&&f<c.length;f++)h=a.currentTarget=c[f],e=Dd(h,d,!1,a)&&e;return e};
g.k.qa=function(){g.Cd.Ff.qa.call(this);this.Fl&&this.Fl.Df();this.nO=null};
g.k.Ra=function(a,b,c,d){return this.Fl.add(String(a),b,!1,c,d)};
g.k.AG=function(a,b,c,d){return this.Fl.add(String(a),b,!0,c,d)};
g.k.Fc=function(a,b,c,d){this.Fl.remove(String(a),b,c,d)};
g.k.PB=function(a,b,c,d){return this.Fl.PB(String(a),b,c,d)};
g.k.hasListener=function(a,b){return this.Fl.hasListener(void 0!==a?String(a):void 0,b)};Ed.prototype.get=function(){if(0<this.u){this.u--;var a=this.j;this.j=a.next;a.next=null}else a=this.B();return a};try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var mca=g.Ve||g.Nc;var B9a={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};var Od;Qd.prototype.So=!0;Qd.prototype.Jl=function(){return this.YX};
var uba={},tba={};g.Sd("");var wba={};Td.prototype.toString=function(){return this.yO.toString()};
Td.prototype.Jl=function(){return this.yO.toString()};Vd.prototype.toString=function(){return this.BO+""};
Vd.prototype.So=!0;Vd.prototype.Jl=function(){return this.BO.toString()};
var Aba=/%{(\w+)}/g,zba=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),Cba={};Xd.prototype.toString=function(){return this.AO.toString()};
Xd.prototype.So=!0;Xd.prototype.Jl=function(){return this.AO.toString()};
var Fba=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Eba=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,C9a;try{new URL("s://g"),C9a=!0}catch(a){C9a=!1}var Hba=C9a,Jba={},Gba=Zd("about:invalid#zClosurez");var ce={};ae.prototype.Jl=function(){return this.zO};
ae.prototype.toString=function(){return this.zO.toString()};
var de=new ae("",ce),Oba=RegExp("^[-+,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),Nba=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Mba=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"),Pba=/\/\*/;var Wba={};ee.prototype.Jl=function(){return this.xO.toString()};
ee.prototype.toString=function(){return this.xO.toString()};
var D9a=/^[a-zA-Z0-9-]+$/,E9a={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},F9a={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Tba=new ee(g.Ja.trustedTypes&&g.Ja.trustedTypes.emptyHTML||"",Wba);var Yba=Id(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.fe(Tba);return!b.parentElement}),aca=/^[\w+/_-]+[=]{0,2}$/;g.k=g.ve.prototype;g.k.clone=function(){return new g.ve(this.x,this.y)};
g.k.equals=function(a){return a instanceof g.ve&&we(this,a)};
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*="number"===typeof b?b:a;return this};g.k=g.xe.prototype;g.k.clone=function(){return new g.xe(this.width,this.height)};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!De(this)};
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*="number"===typeof b?b:a;return this};g.UUa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var hca={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=Ke.prototype;g.k.ub=function(a){return Ne(this.j,a)};
g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))};
g.k.Da=function(a){return g.Te(a,this.j)};
g.k.createElement=function(a){return Xe(this.j,a)};
g.k.appendChild=g.ff;g.k.append=function(a,b){lca(Le(a),a,arguments,1)};
g.k.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
g.k.removeNode=g.jf;g.k.contains=g.lf;var uf;wf.prototype.add=function(a,b){var c=tca.get();c.set(a,b);this.u?this.u.next=c:this.j=c;this.u=c};
wf.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.u=null),a.next=null);return a};
var tca=new Ed(function(){return new xf},function(a){return a.reset()});
xf.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};
xf.prototype.reset=function(){this.next=this.scope=this.fn=null};var yf,zf=!1,rca=new wf;uca.prototype.reset=function(){this.context=this.u=this.B=this.j=null;this.C=!1};
var vca=new Ed(function(){return new uca},function(a){a.reset()});
g.Cf.prototype.then=function(a,b,c){return Dca(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
g.Cf.prototype.$goog_Thenable=!0;g.k=g.Cf.prototype;g.k.Zj=function(a,b){return Dca(this,null,a,b)};
g.k.catch=g.Cf.prototype.Zj;g.k.cancel=function(a){if(0==this.j){var b=new Kf(a);g.Af(function(){zca(this,b)},this)}};
g.k.H9=function(a){this.j=0;Bf(this,2,a)};
g.k.I9=function(a){this.j=0;Bf(this,3,a)};
g.k.Y2=function(){for(var a;a=Aca(this);)Bca(this,a,this.j,this.J);this.I=!1};
var Hca=pca;g.Ya(Kf,nb);Kf.prototype.name="cancel";g.Ya(g.Lf,g.Cd);g.k=g.Lf.prototype;g.k.enabled=!1;g.k.Ec=null;g.k.setInterval=function(a){this.Ei=a;this.Ec&&this.enabled?(this.stop(),this.start()):this.Ec&&this.stop()};
g.k.v9=function(){if(this.enabled){var a=g.Va()-this.iV;0<a&&a<.8*this.Ei?this.Ec=this.eE.setTimeout(this.HS,this.Ei-a):(this.Ec&&(this.eE.clearTimeout(this.Ec),this.Ec=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.Ec||(this.Ec=this.eE.setTimeout(this.HS,this.Ei),this.iV=g.Va())};
g.k.stop=function(){this.enabled=!1;this.Ec&&(this.eE.clearTimeout(this.Ec),this.Ec=null)};
g.k.qa=function(){g.Lf.Ff.qa.call(this);this.stop();delete this.eE};g.x(g.Of,g.E);g.k=g.Of.prototype;g.k.sendIsolatedPayload=function(a){this.D=a;this.C=1};
g.k.bx=function(){var a=this.u.values();a=[].concat(g.la(a)).filter(function(b){return b.Px.size});
a.length&&this.J.flush(a,this.D);Kca(a);this.B=0;this.j.enabled&&this.j.stop()};
g.k.lk=function(a){var b=g.Ca.apply(1,arguments);this.u.has(a)||this.u.set(a,new db(a,b))};
g.k.Hx=function(a){var b=g.Ca.apply(1,arguments);this.u.has(a)||this.u.set(a,new fb(a,b))};
g.k.vl=function(a){this.sJ.apply(this,[a,1].concat(g.la(g.Ca.apply(1,arguments))))};
g.k.sJ=function(a,b){var c=g.Ca.apply(2,arguments),d=Jca(this,a);d&&d instanceof db&&(d.B(b,c),Ica(this))};
g.k.Of=function(a,b){var c=g.Ca.apply(2,arguments),d=Jca(this,a);d&&d instanceof fb&&(d.Of(b,c),Ica(this))};Lca.prototype.Of=function(a,b,c,d,e){this.j.Of("/client_streamz/po/w/rl",a,b,c,d,e)};
Mca.prototype.Of=function(a,b,c){this.j.Of("/client_streamz/po/w/el",a,b,c)};
Pca.prototype.Of=function(a,b,c){this.j.Of("/client_streamz/po/w/cl",a,b,c)};
Qca.prototype.Of=function(a,b){this.j.Of("/client_streamz/po/w/clt",a,b)};var Cg=void 0,Bg,Ada="undefined"!==typeof TextDecoder,Yca,Xca="undefined"!==typeof TextEncoder;var Zy,$y;g.iJ=vc();Zy=Cc()||nc("iPod");$y=nc("iPad");g.hK=Qaa();g.hI=wc();g.xA=zc()&&!Fc();var cda={},bg=null,dda=Km||g.Nc||"function"==typeof g.Ja.btoa;var mda="undefined"!==typeof Uint8Array,gda=!g.Ve&&"function"===typeof btoa,kda=/[-_.]/g,ida={"-":"+",_:"/",".":"="},nda,eg={};var pda;fg.prototype.isEmpty=function(){return null==this.j};
fg.prototype.sizeBytes=function(){var a=hg(this);return a?a.length:0};var wda="function"===typeof Uint8Array.prototype.slice,og=0,pg=0,tda="function"===typeof BigInt;g.k=qg.prototype;g.k.init=function(a,b,c,d){d=void 0===d?{}:d;this.UE=void 0===d.UE?!1:d.UE;a&&(a=ng(a),this.u=a.buffer,this.D=a.oq,this.C=b||0,this.B=void 0!==c?this.C+c:this.u.length,this.j=this.C)};
g.k.free=function(){this.clear();100>xg.length&&xg.push(this)};
g.k.clear=function(){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.UE=!1};
g.k.reset=function(){this.j=this.C};
g.k.advance=function(a){rg(this,this.j+a)};
g.k.tJ=function(){var a=ug(this);return 4294967296*ug(this)+(a>>>0)};
var xg=[];yg.prototype.free=function(){this.j.clear();this.u=this.C=-1;100>a3.length&&a3.push(this)};
yg.prototype.reset=function(){this.j.reset();this.B=this.j.j;this.u=this.C=-1};
yg.prototype.advance=function(a){this.j.advance(a)};
var a3=[];var Dda,Gda;Eg.prototype.length=function(){return this.j.length};
Eg.prototype.end=function(){var a=this.j;this.j=[];return a};var Rg="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():void 0;var ch={},G9a,hh=Object.freeze(Ug([],23));var $da="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():"di";var Ph;g.k=P.prototype;g.k.toJSON=function(){var a=this.Re,b;G9a?b=a:b=Qh(a,tea,void 0,void 0,!1,!1);return b};
g.k.ip=function(){G9a=!0;try{return JSON.stringify(this.toJSON(),rea)}finally{G9a=!1}};
g.k.clone=function(){return Yh(this,!1)};
g.k.oq=function(){return Wg(this.Re)};
g.k.lN=ch;g.k.toString=function(){return this.Re.toString()};var Zh=Symbol(),ci=Symbol(),bi=Symbol(),ai=Symbol(),H9a=ei(function(a,b,c){if(1!==a.u)return!1;L(b,c,vg(a.j));return!0},fi),I9a=ei(function(a,b,c){if(1!==a.u)return!1;
a=vg(a.j);lh(b,c,ah(a),0);return!0},fi),J9a=ei(function(a,b,c,d){if(1!==a.u)return!1;
yh(b,c,d,vg(a.j));return!0},fi),K9a=ei(function(a,b,c){if(0!==a.u)return!1;
L(b,c,sg(a.j));return!0},gi),L9a=ei(function(a,b,c){if(0!==a.u)return!1;
a=sg(a.j);lh(b,c,a,0);return!0},gi),M9a=ei(function(a,b,c,d){if(0!==a.u)return!1;
yh(b,c,d,sg(a.j));return!0},gi),N9a=ei(function(a,b,c){if(0!==a.u)return!1;
L(b,c,tg(a.j));return!0},hi),O9a=ei(function(a,b,c){if(0!==a.u)return!1;
a=tg(a.j);lh(b,c,a,0);return!0},hi),P9a=ei(function(a,b,c,d){if(0!==a.u)return!1;
yh(b,c,d,tg(a.j));return!0},hi),Q9a=ei(function(a,b,c){if(1!==a.u)return!1;
L(b,c,a.j.tJ());return!0},function(a,b,c){Oda(a,c,eh(b,c))}),R9a=ei(function(a,b,c){if(1!==a.u&&2!==a.u)return!1;
b=ih(b,c,0,!1,Wg(b.Re));if(2==a.u){c=qg.prototype.tJ;var d=tg(a.j)>>>0;for(d=a.j.j+d;a.j.j<d;)b.push(c.call(a.j))}else b.push(a.j.tJ());return!0},function(a,b,c){b=jh(b,c,Xda);
if(null!=b)for(var d=0;d<b.length;d++)Oda(a,c,b[d])}),S9a=ei(function(a,b,c){if(0!==a.u)return!1;
L(b,c,wg(a.j));return!0},Oea),h$a=ei(function(a,b,c,d){if(0!==a.u)return!1;
yh(b,c,d,wg(a.j));return!0},Oea),b3=ei(function(a,b,c){if(2!==a.u)return!1;
L(b,c,Dg(a));return!0},Pea),i$a=ei(function(a,b,c){if(2!==a.u)return!1;
a=Dg(a);wh(b,c,a);return!0},function(a,b,c){b=Lh(b,c);
if(null!=b)for(var d=0;d<b.length;d++){var e=b[d];null!=e&&Jg(a,c,Zca(e))}}),j$a=ei(function(a,b,c,d){if(2!==a.u)return!1;
yh(b,c,d,Dg(a));return!0},Pea),k$a=ei(function(a,b,c,d,e){if(2!==a.u)return!1;
Ag(a,iea(b,d,c),e);return!0},Qea),c3=ei(function(a,b,c,d,e){if(2!==a.u)return!1;
b=kea(b,c,d);Ag(a,b,e);return!0},function(a,b,c,d,e){b=Bh(b,d,c);
if(null!=b)for(d=0;d<b.length;d++){var f=Lda(a,c);e(b[d],a);Mda(a,f)}}),l$a=ei(function(a,b,c,d,e,f){if(2!==a.u)return!1;
(f=xh(b,f))&&f!==c&&L(b,f,void 0,!1);b=iea(b,d,c);Ag(a,b,e);return!0},Qea),d3=ei(function(a,b,c){if(2!==a.u)return!1;
L(b,c,Bda(a));return!0},function(a,b,c){b=dea(b,c);
null!=b&&Jg(a,c,ng(b).buffer)}),m$a=ei(function(a,b,c){if(2!==a.u)return!1;
a=Bda(a);wh(b,c,Yg(a,!1,!1,!1));return!0},function(a,b,c){b=jh(b,c,Tg(b.Re)&18?eea:fea);
if(null!=b)for(var d=0;d<b.length;d++){var e=b[d];null!=e&&Jg(a,c,ng(e).buffer)}}),e3=ei(function(a,b,c){if(0!==a.u)return!1;
L(b,c,tg(a.j)>>>0);return!0},function(a,b,c){b=Kh(b,c);
null!=b&&null!=b&&(Ig(a,c,0),Fg(a.j,b))}),n$a=ei(function(a,b,c){if(0!==a.u)return!1;
L(b,c,tg(a.j));return!0},function(a,b,c){b=eh(b,c);
null!=b&&(b=parseInt(b,10),Ig(a,c,0),Jda(a.j,b))});g.x(Tea,P);var Sea=[1,2,3,4];g.x(ji,P);var oi=[1,2,3],o$a=[ji,1,j$a,oi,2,P9a,oi,3,h$a,oi];g.x(Uea,P);var p$a=[Uea,1,H9a,2,K9a];g.x(Wea,P);var Vea=[1],q$a=[Wea,1,c3,p$a];g.x(ki,P);var ni=[1,2,3],r$a=[ki,1,M9a,ni,2,J9a,ni,3,l$a,q$a,ni];g.x(li,P);var Xea=[1],s$a=[li,1,c3,o$a,2,k$a,r$a];g.x(Yea,P);var t$a=[Yea,1,b3,2,b3,3,S9a];g.x(Zea,P);var u$a=[Zea,1,b3,2,b3,3,N9a,4,S9a];g.x($ea,P);var v$a=[1,2],w$a=[$ea,1,l$a,t$a,v$a,2,l$a,u$a,v$a];g.x(mi,P);mi.prototype.Go=function(){var a=Lh(this,3,void 0,2);if(void 0>=a.length)throw Error();return a[void 0]};
var afa=[3,6,4];mi.prototype.j=Rea([mi,1,b3,5,Q9a,2,k$a,w$a,3,i$a,6,R9a,4,c3,s$a]);g.x(cfa,P);var bfa=[1];var jfa={};g.k=pi.prototype;g.k.isEnabled=function(){if(!g.Ja.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{FG:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.C8a;d=c.T8||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.FG}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.j.cookie=a+"="+b+c+h+l+d+(null!=e?";samesite="+
e:"")};
g.k.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;e<d.length;e++){f=ec(d[e]);if(0==f.lastIndexOf(c,0))return f.slice(c.length);if(f==a)return""}return b};
g.k.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{FG:0,path:b,domain:c});return d};
g.k.Wp=function(){return qi(this).keys};
g.k.Kl=function(){return qi(this).values};
g.k.isEmpty=function(){return!this.j.cookie};
g.k.clear=function(){for(var a=qi(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var My=new pi("undefined"==typeof document?null:document);g.x(si,P);var nfa=[2];g.ti.prototype.u=0;g.ti.prototype.reset=function(){this.j=this.B=this.C;this.u=0};
g.ti.prototype.getValue=function(){return this.B};ofa.prototype.ip=function(a){var b=[];Ii(this,a,b);return b.join("")};
var rfa={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},qfa=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Ji.prototype.B=null;Ji.prototype.getOptions=function(){return this.B||(this.B=this.C())};var x$a;g.Ya(Ki,Ji);Ki.prototype.j=function(){var a=tfa(this);return a?new ActiveXObject(a):new XMLHttpRequest};
Ki.prototype.C=function(){var a={};tfa(this)&&(a[0]=!0,a[1]=!0);return a};
x$a=new Ki;var Ni=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Afa=/#|$/,Bfa=/[?&]($|#)/;g.Ya(g.Yi,g.Cd);var Kfa=/^https?$/i,y$a=["POST","PUT"],Dfa=[];g.k=g.Yi.prototype;g.k.j2=function(){this.dispose();g.Ab(Dfa,this)};
g.k.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Z+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Z=a;this.C="";this.u=0;this.Aa=!1;this.B=!0;this.j=this.V?this.V.j():x$a.j();this.ya=this.V?this.V.getOptions():x$a.getOptions();this.j.onreadystatechange=(0,g.Ta)(this.wW,this);try{this.getStatus(),this.Ga=!0,this.j.open(b,String(a),!0),this.Ga=!1}catch(h){this.getStatus();Hfa(this,h);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===
Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===typeof d.keys&&"function"===typeof d.get){e=g.v(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});
e=g.Ja.FormData&&a instanceof g.Ja.FormData;!g.wb(y$a,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.v(c);for(d=b.next();!d.done;d=b.next())c=g.v(d.value),d=c.next().value,c=c.next().value,this.j.setRequestHeader(d,c);this.Ja&&(this.j.responseType=this.Ja);"withCredentials"in this.j&&this.j.withCredentials!==this.I&&(this.j.withCredentials=this.I);try{Jfa(this),0<this.J&&(this.La=Ffa(this.j),this.getStatus(),this.La?(this.j.timeout=this.J,this.j.ontimeout=(0,g.Ta)(this.pR,
this)):this.oa=g.Mf(this.pR,this.J,this)),this.getStatus(),this.ea=!0,this.j.send(a),this.ea=!1}catch(h){this.getStatus(),Hfa(this,h)}};
g.k.pR=function(){"undefined"!=typeof $i&&this.j&&(this.C="Timed out after "+this.J+"ms, aborting",this.u=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.k.abort=function(a){this.j&&this.B&&(this.getStatus(),this.B=!1,this.D=!0,this.j.abort(),this.D=!1,this.u=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Zi(this))};
g.k.qa=function(){this.j&&(this.B&&(this.B=!1,this.D=!0,this.j.abort(),this.D=!1),Zi(this,!0));g.Yi.Ff.qa.call(this)};
g.k.wW=function(){this.isDisposed()||(this.Ga||this.ea||this.D?Ifa(this):this.T6())};
g.k.T6=function(){Ifa(this)};
g.k.isActive=function(){return!!this.j};
g.k.isComplete=function(){return 4==g.aj(this)};
g.k.getStatus=function(){try{return 2<g.aj(this)?this.j.status:-1}catch(a){return-1}};
g.k.getResponseHeader=function(a){if(this.j&&this.isComplete())return a=this.j.getResponseHeader(a),null===a?void 0:a};
g.k.getLastError=function(){return"string"===typeof this.C?this.C:String(this.C)};g.x(sj,P);g.x(tj,P);var Mfa=[1];g.x(uj,P);var ega=["platform","platformVersion","architecture","model","uaFullVersion"];new tj;g.x(Mh,P);g.x(Ofa,P);var Nfa=[1,2,3,4,5];g.x(vj,P);vj.prototype.K=function(){return gh(this,Ofa,7)};
vj.prototype.m2=function(){return L(this,16,void 0,!1)};
var Pfa=[3,20,27];g.x(Rfa,P);var Qfa=[3,5];g.x(Tfa,P);var Sfa=[5];g.x(Ufa,P);var f3;f3=new function(a,b,c){this.j=a;this.fieldName=b;this.Mr=c;this.isRepeated=0;this.u=Ah;this.defaultValue=void 0}(175237375,{c8a:0},Ufa);g.x(xj,g.Cd);g.k=xj.prototype;g.k.qa=function(){this.vL();g.Cd.prototype.qa.call(this)};
g.k.dispatch=function(a){if(a instanceof vj)this.log(a);else{var b=new vj;a=a.ip();b=L(b,8,a);this.log(b)}};
g.k.log=function(a){a=a.clone();var b=this.Za++;L(a,21,b);this.componentId&&L(a,26,this.componentId);if(!eh(a,1)){b=a;var c=Date.now().toString();L(b,1,c)}null==eh(a,15)&&L(a,15,60*(new Date).getTimezoneOffset());this.B&&(b=this.B.clone(),Ch(a,si,16,b));for(;1E3<=this.u.length;)this.u.shift(),++this.J;this.u.push(a);this.dispatchEvent(new aga(a));this.oa||this.j.enabled||this.j.start()};
g.k.flush=function(a,b){var c=this;if(0===this.u.length)a&&a();else if(this.ya)cga(this.C,3),$fa(this);else{var d=Date.now();if(this.Wa>d&&this.Aa<d)b&&b("throttled");else{cga(this.C,1);var e=this.C.wf(this.u,this.J,this.I);d={};var f=this.La();f&&(d.Authorization=f);var h=Xfa(this);this.sessionIndex&&(d["X-Goog-AuthUser"]=this.sessionIndex,h=Vi(h,"authuser",this.sessionIndex));this.pageId&&(d["X-Goog-PageId"]=this.pageId,h=Vi(h,"pageId",this.pageId));if(f&&this.Pa===f)b&&b("stale-auth-token");else{this.u=
[];this.j.enabled&&this.j.stop();this.J=0;var l=e.ip(),m;this.V&&this.V.isSupported(l.length)&&(m=this.V.compress(l));var n={url:h,body:l,Z1:1,Yv:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},p=function(w){c.D.reset();c.j.setInterval(c.D.getValue());if(w){var z=null;try{var C=JSON.parse(w.replace(")]}'\n",""));z=new Tfa(C)}catch(G){}z&&(w=Number(Ih(eh(z,1),"-1")),0<w&&(c.Aa=Date.now(),c.Wa=c.Aa+w),z=f3.Mr?f3.u(z,f3.Mr,f3.j,!0):f3.isRepeated?f3.u(z,f3.j,
!0):f3.u(z,f3.j,f3.defaultValue,!0))&&(z=Jh(z,1,-1),-1!=z&&(c.Ja||Yfa(c,z)))}a&&a();c.I=0},q=function(w,z){var C=Bh(e,vj,3);
g.Gi(c.D);c.j.setInterval(c.D.getValue());401===w&&f&&(c.Pa=f);void 0===z&&(z=500<=w&&600>w||401===w||0===w);z&&(c.u=C.concat(c.u),c.oa||c.j.enabled||c.j.start());b&&b("net-send-failed",w);++c.I},t=function(){c.network?c.network.send(n,p,q):c.Ya(n,p,q)};
m?m.then(function(w){n.Yv["Content-Encoding"]="gzip";n.Yv["Content-Type"]="application/binary";n.body=w;n.Z1=2;t()},function(){t()}):t()}}}};
g.k.vL=function(){dga(this.C,!0);this.flush();dga(this.C,!1)};
g.x(aga,g.pb);Vfa.prototype.wf=function(a,b,c){b=void 0===b?0:b;c=void 0===c?0:c;if(gh(Ah(this.j,Mh,1),uj,11)){var d=zj(this);L(d,3,c)}c=this.j.clone();d=Date.now().toString();c=L(c,4,d);a=Fh(c,vj,3,a);b&&L(a,14,b);return a};g.Ya(Aj,g.E);
Aj.prototype.wf=function(){var a=new xj(this.I,this.ea?this.ea:mfa,this.Ga,this.oa,this.C,this.D,!1,this.La,void 0,void 0,this.ya?this.ya:void 0);g.I(this,a);this.J&&wj(a.C,this.J);if(this.u){var b=this.u,c=yj(a.C);L(c,7,b)}this.Z&&(a.V=this.Z);this.j&&(a.componentId=this.j);this.B&&((b=this.B)?(a.B||(a.B=new si),b=b.ip(),L(a.B,4,b)):a.B&&L(a.B,4,void 0,!1));if(this.Aa){c=this.Aa;a.B||(a.B=new si);b=a.B;if(null==c)c=hh;else{var d=Tg(c);1!==(d&1)&&(Object.isFrozen(c)&&(c=Array.prototype.slice.call(c)),Ug(c,
d|1))}L(b,2,c)}this.V&&(b=this.V,a.Ja=!0,Yfa(a,b));this.Ja&&fga(a.C,this.Ja);return a};g.x(Bj,g.E);Bj.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new cfa,c=[],d=0;d<a.length;d++){var e=a[d],f=g.dfa(e);c.push(f);e.clear()}Fh(b,mi,1,c);this.j.dispatch(b);this.j.flush()}};g.x(Cj,Error);Cj.prototype.toString=function(){var a="RpcError("+(iga(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};
Cj.prototype.name="RpcError";Ej.prototype.done=function(){this.logger.sV(this.j,Dj()-this.startMillis)};
Fj.prototype.done=function(){this.logger.bN(this.operation,Dj()-this.startMillis)};
g.k=kga.prototype;g.k.FC=function(){};
g.k.sV=function(){};
g.k.cN=function(a,b,c){return c};
g.k.rV=function(){};
g.k.bN=function(){};
g.k.qV=function(){};
g.k.Xy=function(){};
g.k.BG=function(){};
g.k.pV=function(){};
g.k=lga.prototype;g.k.FC=function(a){this.clientError.j.vl("/client_streamz/po/w/cec",a,this.Ef)};
g.k.sV=function(a,b){this.J.Of(b,a,this.Ef)};
g.k.cN=function(a,b,c){function d(h){var l=Dj()-f;e.V.Of(l,a,b,h,e.Ef)}
var e=this,f=Dj();c.then(function(){d(0)},function(h){h instanceof Cj?d(h.code):d(-1)});
return c};
g.k.rV=function(a){this.I.j.vl("/client_streamz/po/w/csc",a,this.Ef)};
g.k.bN=function(a,b){this.B.Of(b,a,this.Ef)};
g.k.qV=function(a){this.C.Of(a,this.Ef)};
g.k.Xy=function(a){this.j.j.vl("/client_streamz/po/w/ca",a,this.Ef)};
g.k.BG=function(a){this.D.j.vl("/client_streamz/po/w/cta",a,this.Ef)};
g.k.pV=function(){this.u.j.vl("/client_streamz/po/w/cen",this.Ef)};nga.prototype.Of=function(a,b){this.j.Of("/client_streamz/bg/fil",a,b)};
pga.prototype.Of=function(a,b){this.j.Of("/client_streamz/bg/fsl",a,b)};var rga={toString:function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);0<a;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};g.x(uga,P);g.x(vga,P);g.x(Jj,P);var z$a=ii(Jj);Jj.j="bfkj";Lj.prototype.snapshot=function(a){var b=this;if(this.j)throw Error("Already disposed");var c=Ij(),d;null!=(d=this.xj)&&d.B.j.vl("/client_streamz/bg/fsc",d.Ef);return this.u.then(function(e){var f=e.W1;return new Promise(function(h){f(function(l){var m;null!=(m=b.xj)&&m.C.Of(Ij()-c,m.Ef);h(l)},[a.Yx,
a.g9])})})};
Lj.prototype.RX=function(a){if(this.j)throw Error("Already disposed");var b=Ij(),c;null!=(c=this.xj)&&c.B.j.vl("/client_streamz/bg/fsc",c.Ef);a=this.B([a.Yx,a.g9]);var d;null!=(d=this.xj)&&d.C.Of(Ij()-b,d.Ef);return a};
Lj.prototype.dispose=function(){var a;null!=(a=this.xj)&&a.j.bx();this.j=!0;this.u.then(function(b){(b=b.f9)&&b()})};
Lj.prototype.isDisposed=function(){return this.j};var Aoa={};g.x(Mj,yga);Mj.prototype.toString=function(){return this.j};var A$a;try{new URL("s://g"),A$a=!0}catch(a){A$a=!1}var zga=A$a;var Aga=[Zj("data"),Zj("http"),Zj("https"),Zj("mailto"),Zj("ftp"),new Oj(function(a){return/^[^:]*([/?#]|$)/.test(a)})];g.x(gk,P);g.x(hk,P);Jga.prototype.CF=function(a,b){var c=this,d,e,f,h,l;return g.A(function(m){if(1==m.j){var n=new gk;d=lh(n,1,c.Ef,"");a&&lh(d,2,a,"");b&&lh(d,3,b,"");e=c.j();return g.y(m,c.client.create(d,e),2)}f=m.u;h=mg(kh(f,2));if(h.length){n=m.return;var p=new Uint8Array(h.length);for(var q=0;q<h.length;q++)p[q]=h[q]+97;if(g.Ja.TextDecoder)p=(new TextDecoder).decode(p);else if(8192>=p.length)p=String.fromCharCode.apply(null,p);else{q="";for(var t=0;t<p.length;t+=8192)q+=String.fromCharCode.apply(null,Array.prototype.slice.call(p,
t,t+8192));p=q}p=z$a(p);return n.call(m,p)}l=Ah(f,Jj,1);if(!l)throw Error("Missing field");return m.return(l)})};g.x(ik,P);var B$a=ii(ik);jk.prototype.SF=function(){return this.B};
jk.prototype.getMetadata=function(){return this.u};kk.prototype.getMetadata=function(){return this.j};
kk.prototype.SF=function(){return this.u};
kk.prototype.getStatus=function(){return null};lk.prototype.getName=function(){return this.name};
lk.prototype.getName=lk.prototype.getName;var C$a=new lk("/google.internal.waa.v1.Waa/Create",gk,ik,function(a){return a.ip()},B$a);g.x(mk,P);var Lga=new lk("/google.internal.waa.v1.Waa/GenerateIT",hk,mk,function(a){return a.ip()},ii(mk));var lha=Promise;g.x(nk,P);nk.prototype.getValue=function(){var a=eh(this,2);if(Array.isArray(a)||a instanceof P)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return kh(this,2)};g.x(ok,P);ok.prototype.getMessage=function(){return g.Nh(this,2)};
var Tga=ii(ok),Oga=[3];pk.prototype.on=function(a,b){"data"==a?this.B.push(b):"metadata"==a?this.D.push(b):"status"==a?this.I.push(b):"end"==a?this.C.push(b):"error"==a&&this.u.push(b);return this};
pk.prototype.removeListener=function(a,b){"data"==a?tk(this.B,b):"metadata"==a?tk(this.D,b):"status"==a?tk(this.I,b):"end"==a?tk(this.C,b):"error"==a&&tk(this.u,b);return this};
pk.prototype.cancel=function(){this.j.abort()};
pk.prototype.cancel=pk.prototype.cancel;pk.prototype.removeListener=pk.prototype.removeListener;pk.prototype.on=pk.prototype.on;g.Ya(g.uk,Ji);g.uk.prototype.j=function(){var a=new vk(this.I,this.D);this.u&&a.setCredentialsMode(this.u);return a};
g.uk.prototype.C=Gd({});g.uk.prototype.setCredentialsMode=function(a){this.u=a};
g.Ya(vk,g.Cd);g.k=vk.prototype;g.k.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.Z=a;this.ea=b;this.readyState=1;wk(this)};
g.k.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.j=!0;var b={headers:this.V,method:this.Z,credentials:this.D,cache:void 0};a&&(b.body=a);(this.oa||g.Ja).fetch(new Request(this.ea,b)).then(this.P3.bind(this),this.iG.bind(this))};
g.k.abort=function(){this.response=this.responseText="";this.V=new Headers;this.status=0;this.B&&this.B.cancel("Request was aborted.").catch(function(){});
1<=this.readyState&&this.j&&4!=this.readyState&&(this.j=!1,xk(this));this.readyState=0};
g.k.P3=function(a){if(this.j&&(this.C=a,this.u||(this.status=this.C.status,this.statusText=this.C.statusText,this.u=a.headers,this.readyState=2,wk(this)),this.j&&(this.readyState=3,wk(this),this.j)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.N3.bind(this),this.iG.bind(this));else if("undefined"!==typeof g.Ja.ReadableStream&&"body"in a){this.B=a.body.getReader();if(this.I){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.J=new TextDecoder;Uga(this)}else a.text().then(this.O3.bind(this),this.iG.bind(this))};
g.k.F3=function(a){if(this.j){if(this.I&&a.value)this.response.push(a.value);else if(!this.I){var b=a.value?a.value:new Uint8Array(0);if(b=this.J.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?xk(this):wk(this);3==this.readyState&&Uga(this)}};
g.k.O3=function(a){this.j&&(this.response=this.responseText=a,xk(this))};
g.k.N3=function(a){this.j&&(this.response=a,xk(this))};
g.k.iG=function(){this.j&&xk(this)};
g.k.setRequestHeader=function(a,b){this.V.append(a,b)};
g.k.getResponseHeader=function(a){return this.u?this.u.get(a.toLowerCase())||"":""};
g.k.getAllResponseHeaders=function(){if(!this.u)return"";for(var a=[],b=this.u.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.D=a};
Object.defineProperty(vk.prototype,"withCredentials",{get:function(){return"include"===this.D},
set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.zk.prototype.toString=function(){var a=[],b=this.D;b&&a.push(Gk(b,D$a,!0),":");var c=this.j;if(c||"file"==b)a.push("//"),(b=this.V)&&a.push(Gk(b,D$a,!0),"@"),a.push(g.Ee(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.C,null!=c&&a.push(":",String(c));if(c=this.B)this.j&&"/"!=c.charAt(0)&&a.push("/"),a.push(Gk(c,"/"==c.charAt(0)?E$a:F$a,!0));(c=this.u.toString())&&a.push("?",c);(c=this.I)&&a.push("#",Gk(c,G$a));return a.join("")};
g.zk.prototype.resolve=function(a){var b=this.clone(),c=!!a.D;c?g.Ak(b,a.D):c=!!a.V;c?b.V=a.V:c=!!a.j;c?g.Bk(b,a.j):c=null!=a.C;var d=a.B;if(c)g.Ck(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("/");-1!=e&&(d=b.B.slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(g.cc(e,"./")||g.cc(e,"/.")){d=Xb(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var l=e[h++];"."==l?d&&h==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=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.u.toString();c?Dk(b,a.u.clone()):c=!!a.I;c&&(b.I=a.I);return b};
g.zk.prototype.clone=function(){return new g.zk(this)};
var D$a=/[#\/\?@]/g,F$a=/[#\?:]/g,E$a=/[#\?]/g,Yga=/[#\?@]/g,G$a=/#/g;g.k=Fk.prototype;g.k.add=function(a,b){Jk(this);this.B=null;a=Kk(this,a);var c=this.j.get(a);c||this.j.set(a,c=[]);c.push(b);this.u=this.u+1;return this};
g.k.remove=function(a){Jk(this);a=Kk(this,a);return this.j.has(a)?(this.B=null,this.u=this.u-this.j.get(a).length,this.j.delete(a)):!1};
g.k.clear=function(){this.j=this.B=null;this.u=0};
g.k.isEmpty=function(){Jk(this);return 0==this.u};
g.k.forEach=function(a,b){Jk(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.k.Wp=function(){Jk(this);for(var a=Array.from(this.j.values()),b=Array.from(this.j.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.k.Kl=function(a){Jk(this);var b=[];if("string"===typeof a)$ga(this,a)&&(b=b.concat(this.j.get(Kk(this,a))));else{a=Array.from(this.j.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};
g.k.set=function(a,b){Jk(this);this.B=null;a=Kk(this,a);$ga(this,a)&&(this.u=this.u-this.j.get(a).length);this.j.set(a,[b]);this.u=this.u+1;return this};
g.k.get=function(a,b){if(!a)return b;a=this.Kl(a);return 0<a.length?String(a[0]):b};
g.k.toString=function(){if(this.B)return this.B;if(!this.j)return"";for(var a=[],b=Array.from(this.j.keys()),c=0;c<b.length;c++){var d=b[c],e=g.Ee(d);d=this.Kl(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+g.Ee(d[f]));a.push(h)}}return this.B=a.join("&")};
g.k.clone=function(){var a=new Fk;a.B=this.B;this.j&&(a.j=new Map(this.j),a.u=this.u);return a};
g.k.extend=function(a){for(var b=0;b<arguments.length;b++)g.yk(arguments[b],function(c,d){this.add(d,c)},this)};g.Ya(g.Mk,g.E);var H$a=[];g.k=g.Mk.prototype;g.k.Ra=function(a,b,c,d){Array.isArray(b)||(b&&(H$a[0]=b.toString()),b=H$a);for(var e=0;e<b.length;e++){var f=g.sd(a,b[e],c||this.handleEvent,d||!1,this.u||this);if(!f)break;this.j[f.key]=f}return this};
g.k.AG=function(a,b,c,d){return cha(this,a,b,c,d)};
g.k.Fc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.Fc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Pa(d)?!!d.capture:!!d,e=e||this.u||this,c=td(c),d=!!d,b=Sc(a)?a.PB(b,c,d,e):a?(a=ud(a))?a.PB(b,c,d,e):null:null,b&&(zd(b),delete this.j[b.key])};
g.k.Df=function(){g.Vc(this.j,function(a,b){this.j.hasOwnProperty(b)&&zd(a)},this);
this.j={}};
g.k.qa=function(){g.Mk.Ff.qa.call(this);this.Df()};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};dha.prototype.isInputValid=function(){return this.B};Vk.prototype.isInputValid=function(){return 3!=this.j};
Vk.prototype.zf=function(){return this.I};
Vk.prototype.SE=function(){return!0};
Vk.prototype.parse=function(a){function b(m){m&128&&Wk(f,h,l,"invalid tag");2!=(m&7)&&Wk(f,h,l,"invalid wire type");f.B=m>>>3;1!=f.B&&2!=f.B&&15!=f.B&&Wk(f,h,l,"unexpected tag");f.j=1;f.u=0;f.C=0}
function c(m){f.C++;5==f.C&&m&240&&Wk(f,h,l,"message length too long");f.u|=(m&127)<<7*(f.C-1);m&128||(f.j=2,f.V=0,"undefined"!==typeof Uint8Array?f.D=new Uint8Array(f.u):f.D=Array(f.u),0==f.u&&e())}
function d(m){f.D[f.V++]=m;f.V==f.u&&e()}
function e(){if(15>f.B){var m={};m[f.B]=f.D;f.J.push(m)}f.j=0}
for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;l<h.length;){switch(f.j){case 3:Wk(f,h,l,"stream already broken");break;case 0:b(h[l]);break;case 1:c(h[l]);break;case 2:d(h[l]);break;default:throw Error("unexpected parser state: "+f.j);}f.ea++;l++}a=f.J;f.J=[];return 0<a.length?a:null};Xk.prototype.isInputValid=function(){return null===this.j};
Xk.prototype.zf=function(){return this.j};
Xk.prototype.SE=function(){return!1};
Xk.prototype.parse=function(a){null!==this.j&&fha(this,a,"stream already broken");var b=null;try{var c=this.B;c.B||eha(c,a,"stream already broken");c.j+=a;var d=Math.floor(c.j.length/4);if(0==d)var e=null;else{try{var f=fda(c.j.slice(0,4*d))}catch(h){eha(c,c.j,h.message)}c.u+=4*d;c.j=c.j.slice(4*d);e=f}b=null===e?null:this.C.parse(e)}catch(h){fha(this,a,h.message)}this.u+=a.length;return b};var I$a={INIT:0,OA:1,PJ:2,ox:3,wA:4,vA:5,STRING:6,JJ:7,PR:8,eS:9,fS:10,gS:11,uQ:12,vQ:13,wQ:14,xQ:15,VR:16,WR:17,XR:18,X0:19,NJ:20};g.k=Zk.prototype;g.k.isInputValid=function(){return 3!=this.D};
g.k.zf=function(){return this.ea};
g.k.done=function(){return 2===this.D};
g.k.SE=function(){return!1};
g.k.parse=function(a){function b(){for(;t<a.length;)if(Yk(a[t]))t++,f.B++;else break;return t<n}
function c(){for(var z;;){z=a[t++];if(!z)break;f.B++;switch(f.j){case m.INIT:"{"===z?f.j=m.PJ:"["===z?f.j=m.wA:Yk(z)||$k(f,a,t);continue;case m.JJ:case m.PJ:if(Yk(z))continue;if(f.j===m.JJ)h.push(m.PR);else if("}"===z){e("{}");f.j=d();continue}else h.push(m.ox);'"'===z?f.j=m.STRING:$k(f,a,t);continue;case m.PR:case m.ox:if(Yk(z))continue;":"===z?(f.j===m.ox&&(h.push(m.ox),f.u++),f.j=m.OA):"}"===z?(f.u--,e(),f.j=d()):","===z?(f.j===m.ox&&h.push(m.ox),f.j=m.JJ):$k(f,a,t);continue;case m.wA:case m.OA:if(Yk(z))continue;
if(f.j===m.wA)if(f.u++,f.j=m.OA,"]"===z){f.u--;if(0===f.u){f.j=m.vA;return}e("[]");f.j=d();continue}else h.push(m.vA);'"'===z?f.j=m.STRING:"{"===z?f.j=m.PJ:"["===z?f.j=m.wA:"t"===z?f.j=m.eS:"f"===z?f.j=m.uQ:"n"===z?f.j=m.VR:"-"!==z&&(-1!=="0123456789".indexOf(z)?f.j=m.NJ:$k(f,a,t));continue;case m.vA:if(","===z)h.push(m.vA),f.j=m.OA,1===f.u&&(q=t);else if("]"===z){f.u--;if(0===f.u)return;e();f.j=d()}else if(Yk(z))continue;else $k(f,a,t);continue;case m.STRING:var C=t;a:for(;;){for(;0<f.V;)if(z=a[t++],
4===f.V?f.V=0:f.V++,!z)break a;if('"'===z&&!f.J){f.j=d();break}if("\\"===z&&!f.J&&(f.J=!0,z=a[t++],!z))break;if(f.J)if(f.J=!1,"u"===z&&(f.V=1),z=a[t++])continue;else break;l.lastIndex=t;z=l.exec(a);if(!z){t=a.length+1;break}t=z.index+1;z=a[z.index];if(!z)break}f.B+=t-C;continue;case m.eS:if(!z)continue;"r"===z?f.j=m.fS:$k(f,a,t);continue;case m.fS:if(!z)continue;"u"===z?f.j=m.gS:$k(f,a,t);continue;case m.gS:if(!z)continue;"e"===z?f.j=d():$k(f,a,t);continue;case m.uQ:if(!z)continue;"a"===z?f.j=m.vQ:
$k(f,a,t);continue;case m.vQ:if(!z)continue;"l"===z?f.j=m.wQ:$k(f,a,t);continue;case m.wQ:if(!z)continue;"s"===z?f.j=m.xQ:$k(f,a,t);continue;case m.xQ:if(!z)continue;"e"===z?f.j=d():$k(f,a,t);continue;case m.VR:if(!z)continue;"u"===z?f.j=m.WR:$k(f,a,t);continue;case m.WR:if(!z)continue;"l"===z?f.j=m.XR:$k(f,a,t);continue;case m.XR:if(!z)continue;"l"===z?f.j=d():$k(f,a,t);continue;case m.X0:"."===z?f.j=m.NJ:$k(f,a,t);continue;case m.NJ:if(-1!=="0123456789.eE+-".indexOf(z))continue;else t--,f.B--,f.j=
d();continue;default:$k(f,a,t)}}}
function d(){var z=h.pop();return null!=z?z:m.OA}
function e(z){1<f.u||(z||(z=-1===q?f.C+a.substring(p,t):a.substring(q,t)),f.Z?f.I.push(z):f.I.push(JSON.parse(z)),q=t)}
for(var f=this,h=f.oa,l=f.ya,m=I$a,n=a.length,p=0,q=-1,t=0;t<n;)switch(f.D){case 3:return $k(f,a,t),null;case 2:return b()&&$k(f,a,t),null;case 0:if(b()){var w=a[t++];f.B++;if("["===w){f.D=1;p=t;f.j=m.wA;continue}else $k(f,a,t)}return null;case 1:return c(),0===f.u&&f.j==m.vA?(f.D=2,f.C=a.substring(t)):f.C=-1===q?f.C+a.substring(p):a.substring(q),0<f.I.length?(w=f.I,f.I=[],w):null}return null};al.prototype.isInputValid=function(){return null===this.D};
al.prototype.zf=function(){return this.D};
al.prototype.SE=function(){return!1};
al.prototype.parse=function(a){function b(m){f.u=6;f.D="The stream is broken @"+f.j+"/"+h+". Error: "+m+". With input:\n";throw Error(f.D);}
function c(){f.B=new Zk({H6a:!0,J2:!0})}
function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.C.push(p)}}
function e(m){if(m){(f.I||1<m.length)&&b("extra status: "+m);f.I=!0;var n={};n[2]=m[0];f.C.push(n)}}
for(var f=this,h=0;h<a.length;){var l;if(l=2!==f.u){a:{for(;h<a.length;){if(!Yk(a[h])){l=!0;break a}h++;f.j++}l=!1}l=!l}if(l)return null;switch(f.u){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.u=1,h++,f.j++):b("unexpected input token");break;case 1:"["===a[h]?(f.u=2,c()):","===a[h]||"null,"==a.slice(h,h+5)?f.u=3:"]"===a[h]?(f.u=5,h++,f.j++):b("unexpected input token");break;case 2:l=f.B.parse(a.substring(h));d(l);f.B.done()?(f.u=3,l=f.B.C,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-
h,h=a.length);break;case 3:","===a[h]||"null,"==a.slice(h,h+5)?(f.u=4,c(),f.B.parse("["),h+=","===a[h]?1:5,f.j++):"]"===a[h]&&(f.u=5,h++,f.j++);break;case 4:l=f.B.parse(a.substring(h));e(l);f.B.done()?(f.u=5,l=f.B.C,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-h,h=a.length);break;case 5:b("extra input after stream end")}}return 0<f.C.length?(a=f.C,f.C=[],a):null};bl.prototype.bM=function(){return this.j};
bl.prototype.getStatus=function(){return this.C};
bl.prototype.Z=function(a){a=a.target;try{if(a==this.j)a:{var b=g.aj(this.j),c=this.j.u,d=this.j.getStatus(),e=g.pj(this.j);a=[];if(g.qj(this.j)instanceof Array){var f=g.qj(this.j);0<f.length&&f[0]instanceof Uint8Array&&(this.ea=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?cl(this,7):7==c?cl(this,8):d||cl(this,3)),this.u||(this.u=gha(this.j),null==this.u&&cl(this,5)),2<this.C)dl(this);else{if(a.length>this.B){var h=a.length;c=[];try{if(this.u.SE())for(var l=0;l<h;l++){var m=
this.u.parse(Array.from(a[l]));m&&(c=c.concat(m))}else{m="";if(!this.I){if("undefined"===typeof TextDecoder)throw Error("TextDecoder is not supported by this browser.");this.I=new TextDecoder}for(l=0;l<h;l++)m+=this.I.decode(a[l],{stream:4==b&&l==h-1});c=this.u.parse(m)}a.splice(0,h);c&&this.D(c)}catch(p){cl(this,5);dl(this);break a}}else if(e.length>this.B){l=e.slice(this.B);this.B=e.length;try{var n=this.u.parse(l);null!=n&&this.D&&this.D(n)}catch(p){cl(this,5);dl(this);break a}}4==b?(0!=e.length||
this.ea?cl(this,2):cl(this,4),dl(this)):cl(this,1)}}}catch(p){cl(this,6),dl(this)}};g.k=hha.prototype;g.k.on=function(a,b){var c=this.u[a];c||(c=[],this.u[a]=c);c.push(b);return this};
g.k.addListener=function(a,b){this.on(a,b);return this};
g.k.removeListener=function(a,b){var c=this.u[a];c&&g.Ab(c,b);(a=this.j[a])&&g.Ab(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.T5=function(a){var b=this.u.data;b&&iha(a,b);(b=this.j.data)&&iha(a,b);this.j.data=[]};
g.k.B7=function(){switch(this.B.getStatus()){case 1:el(this,"readable");break;case 5:case 6:case 4:case 7:case 3:el(this,"error");break;case 8:el(this,"close");break;case 2:el(this,"end")}};jha.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return kha(function(h){var l=h.SF(),m=h.getMetadata(),n=nha(e,!1);m=oha(e,m,n,f+l.getName());var p=pha(n,l.u,!0);h=l.j(h.j);n.send(m,"POST",h);return p},this.C).call(this,Nga(d,b,c))};qha.prototype.create=function(a,b){return Kga(this.j,this.u+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},C$a)};g.x(fl,Error);g.x(gl,g.E);gl.prototype.C=function(a){var b=this.j(a);a=new Ej(this.logger,this.u);b=g.Zf(b,2);a.done();return b};
g.x(jl,gl);jl.prototype.j=function(a){++this.J>=this.V&&this.D.resolve();var b=new Ej(this.logger,"C");a=this.I(a.Yx);b.done();if(void 0===a)throw new fl(17,Error("YNJ:Undefined"));if(!(a instanceof Uint8Array))throw new fl(18,Error("ODM:Invalid"));return a};
g.x(kl,gl);kl.prototype.j=function(){return this.I};
g.x(ll,gl);ll.prototype.j=function(){return ag(this.I)};
ll.prototype.C=function(){return this.I};
g.x(ml,gl);ml.prototype.j=function(){if(this.I)return this.I;this.I=sha(this,function(a){return"_"+sga(a)});
return sha(this,function(a){return a})};
g.x(nl,gl);nl.prototype.j=function(a){var b;a=g.Yf(null!=(b=a.Yx)?b:"");if(118<a.length)throw new fl(19,Error("DFO:Invalid"));var c=Date.now()/1E3|0;b=[255*Math.random()|0,255*Math.random()|0];a=b.concat([this.I&255,this.clientState],[c>>24&255,c>>16&255,c>>8&255,c&255],a);for(c=b=b.length;c<a.length;++c)a[c]^=a[c%b];this.logger.rV(this.clientState);b=new Uint8Array(a.length+2);b[0]=34;b[1]=a.length;for(c=2;c<b.length;++c)b[c]=a[c-2];return b};
g.k=tha.prototype;g.k.isReady=function(){return!!this.j};
g.k.ready=function(){var a=this;return g.A(function(b){return g.y(b,a.C.promise,0)})};
g.k.CF=function(a){return ol(this.logger.cN("c",void 0===a?1:a,this.qy.CF(Dga().u,null)),function(){return Promise.reject(new fl(10,"JVZ:Timeout"))})};
g.k.prefetch=function(){1===this.state&&(this.u=this.CF())};
g.k.start=function(){if(1===this.state){this.state=2;var a=new Ej(this.logger,"r");this.ready().finally(function(){return void a.done()});
wha(this)}};var Bha={NONE:0,ipa:1},hia={sZ:0,URa:1,TRa:2,VRa:3},im={fZ:"a",Foa:"d",VIDEO:"v"};pl.prototype.isVisible=function(){return this.Yu?.3<=this.Yd:.5<=this.Yd};var zl={gma:0,Gta:1},fia={NONE:0,vya:1,Qva:2};ql.prototype.getValue=function(){return this.u};
g.x(rl,ql);rl.prototype.B=function(a){null===this.u&&g.cd(this.C,a)&&(this.u=a)};
g.x(sl,ql);sl.prototype.B=function(a){null===this.u&&"number"===typeof a&&(this.u=a)};
g.x(tl,ql);tl.prototype.B=function(a){null===this.u&&"string"===typeof a&&(this.u=a)};ul.prototype.disable=function(){this.u=!1};
ul.prototype.enable=function(){this.u=!0};
ul.prototype.isEnabled=function(){return this.u};
ul.prototype.reset=function(){this.j={};this.u=!0;this.B={}};var $m=document,Dl=window;var ija=!g.Ve&&!zc();Al.prototype.now=function(){return 0};
Al.prototype.u=function(){return 0};
Al.prototype.B=function(){return 0};
Al.prototype.j=function(){return 0};g.x(Cl,Al);Cl.prototype.now=function(){return Bl()&&Dl.performance.now?Dl.performance.now():Al.prototype.now.call(this)};
Cl.prototype.u=function(){return Bl()&&Dl.performance.memory?Dl.performance.memory.totalJSHeapSize||0:Al.prototype.u.call(this)};
Cl.prototype.B=function(){return Bl()&&Dl.performance.memory?Dl.performance.memory.usedJSHeapSize||0:Al.prototype.B.call(this)};
Cl.prototype.j=function(){return Bl()&&Dl.performance.memory?Dl.performance.memory.jsHeapSizeLimit||0:Al.prototype.j.call(this)};var Eha=Id(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.Ja.addEventListener("test",null,b)}catch(c){}return a});Fha.prototype.isVisible=function(){return 1===Gl($m)};g.Sd("csi.gstatic.com");g.Sd("googleads.g.doubleclick.net");g.Sd("partner.googleadservices.com");g.Sd("pubads.g.doubleclick.net");g.Sd("securepubads.g.doubleclick.net");g.Sd("tpc.googlesyndication.com");var Hha={uea:"allow-forms",vea:"allow-modals",wea:"allow-orientation-lock",xea:"allow-pointer-lock",yea:"allow-popups",zea:"allow-popups-to-escape-sandbox",Aea:"allow-presentation",Bea:"allow-same-origin",Cea:"allow-scripts",Dea:"allow-top-navigation",Eea:"allow-top-navigation-by-user-activation"},Lha=Id(function(){return Iha()});var Pha=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Wl.prototype.Ze=function(a,b,c){a=a+"//"+b+c;var d=Tha(this)-c.length;if(0>d)return"";this.j.sort(function(n,p){return n-p});
c=null;b="";for(var e=0;e<this.j.length;e++)for(var f=this.j[e],h=this.u[f],l=0;l<h.length;l++){if(!d){c=null==c?f:c;break}var m=Sha(h[l],this.B,",$");if(m){m=b+m;if(d>=m.length){d-=m.length;a+=m;b=this.B;break}c=null==c?f:c}}d="";null!=c&&(d=b+"trn="+c);return a+d};dm.prototype.setInterval=function(a,b){return Dl.setInterval(a,b)};
dm.prototype.clearInterval=function(a){Dl.clearInterval(a)};
dm.prototype.setTimeout=function(a,b){return Dl.setTimeout(a,b)};
dm.prototype.clearTimeout=function(a){Dl.clearTimeout(a)};$ha.prototype.getContext=function(){if(!this.j){if(!Dl)throw Error("Context has not been set and window is undefined.");this.j=cm(dm)}return this.j};g.x(fm,P);fm.prototype.j=Rea([fm,1,I9a,2,L9a,3,L9a,4,L9a,5,O9a]);var gia={hQa:1,A1:2,yJa:3};iia.prototype.CO=function(a){if("string"===typeof a&&0!=a.length){var b=this.Ac;if(b.u){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=decodeURIComponent(d[0]);1<d.length?(d=decodeURIComponent(d[1]),d=/^[0-9]+$/g.exec(d)?parseInt(d,10):d):d=1;(e=b.j[e])&&e.B(d)}}}};var g3=null;var lm=g.Ja.performance,J$a=!!(lm&&lm.mark&&lm.measure&&lm.clearMarks),jm=Id(function(){var a;if(a=J$a){var b;if(null===g3){g3="";try{a="";try{a=g.Ja.top.location.hash}catch(c){a=g.Ja.location.hash}a&&(g3=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=g3;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
km.prototype.disable=function(){this.j=!1;this.events!=this.u.google_js_reporting_queue&&(jm()&&g.Ub(this.events,oia),this.events.length=0)};
km.prototype.start=function(a,b){if(!this.j)return null;var c=mia()||lia();a=new nia(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";lm&&jm()&&lm.mark(b);return a};
km.prototype.end=function(a){if(this.j&&"number"===typeof a.value){var b=mia()||lia();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";lm&&jm()&&lm.mark(b);!this.j||2048<this.events.length||this.events.push(a)}};pia.prototype.eN=function(a,b,c,d,e){e=e||this.sT;try{var f=new Wl;f.j.push(1);f.u[1]=Xl("context",a);b.error&&b.meta&&b.id||(b=new pm(qm(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.u[2]=Xl("msg",h)}var l=b.meta||{};if(this.oK)try{this.oK(l)}catch(q){}if(d)try{d(l)}catch(q){}b=[l];f.j.push(3);f.u[3]=b;var m=Rha();if(m.u){var n=m.u.url||"";f.j.push(4);f.u[4]=Xl("top",n)}var p=[{url:m.j.url||""},{url:m.j.url?vfa(m.j.url):""}];f.j.push(5);f.u[5]=p;jia(this.j,e,f,c)}catch(q){try{jia(this.j,
e,{context:"ecmserr",rctx:a,msg:qm(q),url:m&&m.j.url},c)}catch(t){}}return this.rP};
g.x(pm,kia);var nm,om,mm=new km;nm=new function(){var a="https:";Dl&&Dl.location&&"http:"===Dl.location.protocol&&(a="http:");this.u=a;this.j=.01};
om=new pia;Dl&&Dl.document&&("complete"==Dl.document.readyState?ria():mm.j&&Fl(Dl,"load",function(){ria()}));var uia=Date.now(),xm=-1,vm=-1,Jja,ym=-1,wm=!1;g.k=zm.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new zm(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof zm?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="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};Dm.prototype.equals=function(a,b){return!!a&&(!(void 0===b?0:b)||this.volume==a.volume)&&this.B==a.B&&Bm(this.j,a.j)&&!0};Em.prototype.ub=function(){return this.J};
Em.prototype.equals=function(a,b){return this.C.equals(a.C,void 0===b?!1:b)&&this.J==a.J&&Bm(this.B,a.B)&&Bm(this.I,a.I)&&this.j==a.j&&this.D==a.D&&this.u==a.u&&this.V==a.V};var K$a={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},go={m1:"start",BZ:"firstquartile",T0:"midpoint",q1:"thirdquartile",nZ:"complete",ERROR:"error",S0:"metric",PAUSE:"pause",g1:"resume",j1:"skip",z1:"viewable_impression",V0:"mute",v1:"unmute",CZ:"fullscreen",yZ:"exitfullscreen",lZ:"bufferstart",kZ:"bufferfinish",DZ:"fully_viewable_audible_half_duration_impression",R0:"measurable_impression",dZ:"abandon",xZ:"engagedview",GZ:"impression",pZ:"creativeview",Q0:"loaded",rRa:"progress",
CLOSE:"close",Jla:"collapse",oOa:"overlay_resize",pOa:"overlay_unmeasurable_impression",qOa:"overlay_unviewable_impression",sOa:"overlay_viewable_immediate_impression",rOa:"overlay_viewable_end_of_session_impression",rZ:"custom_metric_viewable",tNa:"verification_debug",gZ:"audio_audible",iZ:"audio_measurable",hZ:"audio_impression"},Uka="start firstquartile midpoint thirdquartile resume loaded".split(" "),Vka=["start","firstquartile","midpoint","thirdquartile"],Kja=["abandon"],Ao={UNKNOWN:-1,m1:0,
BZ:1,T0:2,q1:3,nZ:4,S0:5,PAUSE:6,g1:7,j1:8,z1:9,V0:10,v1:11,CZ:12,yZ:13,DZ:14,R0:15,dZ:16,xZ:17,GZ:18,pZ:19,Q0:20,rZ:21,lZ:22,kZ:23,hZ:27,iZ:28,gZ:29};var wia={Y$:"addEventListener",Sva:"getMaxSize",Tva:"getScreenSize",Uva:"getState",Vva:"getVersion",ORa:"removeEventListener",tza:"isViewable"};g.k=g.Gm.prototype;g.k.clone=function(){return new g.Gm(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.ve?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
g.k.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};
g.k.getSize=function(){return new g.xe(this.width,this.height)};
g.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var Aia={};Jia.prototype.update=function(a){a&&a.document&&(this.J=Fm(!1,a,this.isMobileDevice),this.j=Fm(!0,a,this.isMobileDevice),Lia(this,a),Kia(this,a))};bn.prototype.cancel=function(){em().clearTimeout(this.j);this.j=null};
bn.prototype.schedule=function(){var a=this,b=em(),c=hm().j.j;this.j=b.setTimeout(gm(c,sm(143,function(){a.u++;a.B.sample()})),via())};g.k=cn.prototype;g.k.EA=function(){return!1};
g.k.initialize=function(){return this.isInitialized=!0};
g.k.wy=function(){return this.j.Ga};
g.k.eC=function(){return this.j.Z};
g.k.fail=function(a,b){if(!this.Z||(void 0===b?0:b))this.Z=!0,this.Ga=a,this.V=0,this.j!=this||en(this)};
g.k.getName=function(){return this.j.Pa};
g.k.qs=function(){return this.j.OT()};
g.k.OT=function(){return{}};
g.k.bq=function(){return this.j.V};
g.k.qR=function(){var a=Zm();a.j=Fm(!0,this.B,a.isMobileDevice)};
g.k.rR=function(){Kia(Zm(),this.B)};
g.k.cU=function(){return this.C.j};
g.k.sample=function(){};
g.k.isActive=function(){return this.j.I};
g.k.Gy=function(a){var b=this.j;this.j=a.bq()>=this.V?a:this;b!==this.j?(this.I=this.j.I,en(this)):this.I!==this.j.I&&(this.I=this.j.I,en(this))};
g.k.Gs=function(a){if(a.u===this.j){var b=!this.C.equals(a,this.ea);this.C=a;b&&Oia(this)}};
g.k.hp=function(){return this.ea};
g.k.dispose=function(){this.Aa=!0};
g.k.isDisposed=function(){return this.Aa};g.k=fn.prototype;g.k.uJ=function(){return!0};
g.k.FA=function(){};
g.k.dispose=function(){if(!this.isDisposed()){var a=this.u;g.Ab(a.D,this);a.ea&&this.hp()&&Nia(a);this.FA();this.Z=!0}};
g.k.isDisposed=function(){return this.Z};
g.k.qs=function(){return this.u.qs()};
g.k.bq=function(){return this.u.bq()};
g.k.wy=function(){return this.u.wy()};
g.k.eC=function(){return this.u.eC()};
g.k.Gy=function(){};
g.k.Gs=function(){this.Hr()};
g.k.hp=function(){return this.oa};g.k=gn.prototype;g.k.bq=function(){return this.j.bq()};
g.k.wy=function(){return this.j.wy()};
g.k.eC=function(){return this.j.eC()};
g.k.create=function(a,b,c){var d=null;this.j&&(d=this.JE(a,b,c),dn(this.j,d));return d};
g.k.sR=function(){return this.GA()};
g.k.GA=function(){return!1};
g.k.init=function(a){return this.j.initialize()?(dn(this.j,this),this.C=a,!0):!1};
g.k.Gy=function(a){0==a.bq()&&this.C(a.wy(),this)};
g.k.Gs=function(){};
g.k.hp=function(){return!1};
g.k.dispose=function(){this.D=!0};
g.k.isDisposed=function(){return this.D};
g.k.qs=function(){return{}};hn.prototype.add=function(a,b,c){++this.B;a=new Pia(a,b,c);this.j.push(new Pia(a.u,a.j,a.B+this.B/4096));this.u=!0;return this};Uia.prototype.toString=function(){var a="//web.archive.org/web/20230505074338/https://pagead2.googlesyndication.com//pagead/gen_204",b=kn(this.j);0<b.length&&(a+="?"+b);return a};ln.prototype.update=function(a,b,c){a&&(this.j+=b,this.u+=b,this.C+=b,this.B=Math.max(this.B,this.C));if(void 0===c?!a:c)this.C=0};var Zia=[1,.75,.5,.3,0];wn.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.u.length;e++){var h=this.u[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.j[e].update(f&&l,d,!f||h)}};Cn.prototype.update=function(a,b,c,d){this.J=-1!=this.J?Math.min(this.J,b.Yd):b.Yd;this.oa=Math.max(this.oa,b.Yd);this.ya=-1!=this.ya?Math.min(this.ya,b.Tj):b.Tj;this.Ga=Math.max(this.Ga,b.Tj);this.ib.update(b.Tj,c.Tj,b.j,a,d);this.u.update(b.Yd,c.Yd,b.j,a,d);c=d||c.Yu!=b.Yu?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Pa.update(c,a,b)};
Cn.prototype.uq=function(){return this.Pa.B>=this.Za};if($m&&$m.URL){var L$a=$m.URL,M$a;if(M$a=!!L$a){var N$a;a:{if(L$a){var O$a=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var h3=O$a.exec(decodeURIComponent(L$a));if(h3){N$a=h3[1]&&1<h3[1].length?h3[1].substring(1):"true";break a}}catch(a){}}N$a=""}M$a=0<N$a.length}om.rP=!M$a};var P$a=new zm(0,0,0,0);var gja=new zm(0,0,0,0);g.x(Hn,g.E);g.k=Hn.prototype;
g.k.qa=function(){if(this.zj.j){if(this.Gu.sN){var a=this.zj.j;a.removeEventListener&&a.removeEventListener("mouseover",this.Gu.sN,El());this.Gu.sN=null}this.Gu.rN&&(a=this.zj.j,a.removeEventListener&&a.removeEventListener("mouseout",this.Gu.rN,El()),this.Gu.rN=null)}this.WD&&this.WD.dispose();this.nf&&this.nf.dispose();delete this.JG;delete this.gN;delete this.BY;delete this.zj.Rs;delete this.zj.j;delete this.Gu;delete this.WD;delete this.nf;delete this.Ac;g.E.prototype.qa.call(this)};
g.k.zs=function(){return this.nf?this.nf.j:this.position};
g.k.CO=function(a){hm().CO(a)};
g.k.hp=function(){return!1};
g.k.VF=function(){return new Cn};
g.k.bj=function(){return this.JG};
g.k.UT=function(a){return kja(this,a,1E4)};
g.k.Qa=function(a,b,c,d,e,f,h){this.Ls||(this.pB&&(a=this.yK(a,c,e,h),d=d&&this.yh.Yd>=(this.Yu()?.3:.5),this.YP(f,a,d),this.Wo=b,0<a.Yd&&-1===this.hY&&(this.hY=b),-1==this.lY&&this.uq()&&(this.lY=b),-2==this.aN&&(this.aN=Fn(this.zs())?a.Yd:-1),this.yh=a),this.gN(this))};
g.k.YP=function(a,b,c){this.bj().update(a,b,this.yh,c)};
g.k.TL=function(){return new pl};
g.k.yK=function(a,b,c,d){c=this.TL();c.j=b;b=em().u;b=0===Gl($m)?-1:b.isVisible()?0:1;c.u=b;c.Yd=this.RK(a);c.Yu=this.Yu();c.Tj=d;return c};
g.k.RK=function(a){return 0===this.opacity&&1===xl(this.Ac,"opac")?0:a};
g.k.Yu=function(){return!1};
g.k.hI=function(){return this.q4||this.t4};
g.k.Av=function(){um()};
g.k.gz=function(){um()};
g.k.Io=function(){return 0};
g.k.uq=function(){return this.JG.uq()};
g.k.eU=function(){var a=this.pB;a=(this.hasCompleted||this.isDisposed())&&!a;var b=2!==hm().u||this.C9;return this.Ls||b&&a?2:this.uq()?4:3};
g.k.MF=function(){return 0};g.Jn.prototype.next=function(){return g.i3};
g.i3={done:!0,value:void 0};g.Jn.prototype.jk=function(){return this};g.x(qja,pl);var j3=sja([void 0,1,2,3,4,8,16]),k3=sja([void 0,4,8,16]),Q$a={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Nn("p0",k3),p1:Nn("p1",k3),p2:Nn("p2",k3),p3:Nn("p3",k3),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Mn("mtos1",[0,2,4],!1,k3),mtos2:Mn("mtos2",[0,2,4],!1,k3),mtos3:Mn("mtos3",[0,2,4],!1,k3),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Nn("a0",k3),a1:Nn("a1",k3),a2:Nn("a2",k3),a3:Nn("a3",k3),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:Nn("c0",k3),c1:Nn("c1",k3),c2:Nn("c2",k3),c3:Nn("c3",k3),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Nn("qmtos",j3),qnc:Nn("qnc",j3),qmv:Nn("qmv",j3),qnv:Nn("qnv",j3),
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:Nn("ss0",k3),ss1:Nn("ss1",k3),ss2:Nn("ss2",k3),ss3:Nn("ss3",k3),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"},R$a=Object.assign({},Q$a,{avid:Gd("audio"),avas:"avas",vs:"vs"}),S$a={atos:"atos",avt:Mn("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(a,b){return function(c){return void 0===c[a]&&void 0!==b?b:c[a]}}("ss",0),
t:"t"};Sn.prototype.getValue=function(){return this.u};
Sn.prototype.update=function(a,b){32<=a||(this.j&1<<a&&!b?this.u&=~(1<<a):this.j&1<<a||!b||(this.u|=1<<a),this.j|=1<<a)};g.x(Tn,Cn);
Tn.prototype.update=function(a,b,c,d){if(!b.paused){Cn.prototype.update.call(this,a,b,c,d);var e=Ln(b)&&Ln(c),f=.5<=(d?Math.min(b.Yd,c.Yd):c.Yd);Xm(b.volume)&&(this.C=-1!=this.C?Math.min(this.C,b.volume):b.volume,this.I=Math.max(this.I,b.volume));f&&(this.Aa+=a,this.ea+=e?a:0);this.j.update(b.Yd,c.Yd,b.j,a,d,e);this.B.update(!0,a);this.D.update(e,a);this.Z.update(c.fullscreen,a);this.ob.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Ja.update(a,b.isVisible());this.Ya.update(a,1<=b.Yd);this.Wa.update(a,
Ln(b))}};xja.prototype.u=function(a){this.B||(this.j(a)?(a=Hka(this.ea,this.C,a),this.D|=a,a=0==a):a=!1,this.B=a)};g.x(Vn,xja);Vn.prototype.j=function(){return!0};
Vn.prototype.I=function(){return!1};
Vn.prototype.getId=function(){var a=this,b=ed(go,function(c){return c==a.C});
return Ao[b].toString()};
Vn.prototype.toString=function(){var a="";this.I()&&(a+="c");this.B&&(a+="s");0<this.D&&(a+=":"+this.D);return this.getId()+a};g.x(Wn,Vn);Wn.prototype.u=function(a,b){b=void 0===b?null:b;null!=b&&this.J.push(b);Vn.prototype.u.call(this,a)};g.x(Xn,yja);Xn.prototype.u=function(){return null};
Xn.prototype.B=function(){return[]};g.x(Yn,fn);g.k=Yn.prototype;g.k.DK=function(){if(this.element){var a=this.element,b=this.u.j.B;try{try{var c=Gia(a.getBoundingClientRect())}catch(n){c=new zm(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Dia(a,b),h=f.x,l=f.y;var m=new zm(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=P$a.clone()}this.j=m}};
g.k.IS=function(){this.C=this.u.C.j};
g.k.UU=function(a){var b=1==xl(this.Ac,"od");return fja(a,this.C,this.element,b)};
g.k.JS=function(){this.timestamp=um()};
g.k.Hr=function(){this.JS();this.DK();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.xe(a.videoWidth,a.videoHeight);a=this.j;var c=Am(a),d=a.getHeight(),e=b.width;b=b.height;0>=e||0>=b||0>=c||0>=d||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,0<d&&(d=a.top+d,a.top=Math.round(d),a.bottom=Math.round(d+c))):(d*=e,c=Math.round((c-d)/2),0<c&&(c=a.left+c,a.left=Math.round(c),a.right=Math.round(c+d))));this.j=a}this.IS();
a=this.j;c=this.C;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new zm(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 zm(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new zm(0,0,0,0):a;a=this.u.C;b=e=d=0;0<(this.j.bottom-this.j.top)*(this.j.right-this.j.left)&&(this.UU(c)?c=new zm(0,0,0,0):(d=Zm().C,b=new zm(0,d.height,d.width,0),d=Gn(c,this.j),e=Gn(c,Zm().j),b=Gn(c,b)));c=c.top>=c.bottom||c.left>=c.right?new zm(0,0,0,
0):Cm(c,-this.j.left,-this.j.top);an()||(e=d=0);this.J=new Em(a,this.element,this.j,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.u.getName()};var T$a=new zm(0,0,0,0);g.x(Zn,Yn);g.k=Zn.prototype;g.k.uJ=function(){this.B();return!0};
g.k.Gs=function(){Yn.prototype.Hr.call(this)};
g.k.JS=function(){};
g.k.DK=function(){};
g.k.Hr=function(){this.B();Yn.prototype.Hr.call(this)};
g.k.Gy=function(a){a=a.isActive();a!==this.I&&(a?this.B():(Zm().j=new zm(0,0,0,0),this.j=new zm(0,0,0,0),this.C=new zm(0,0,0,0),this.timestamp=-1));this.I=a};var l3={},Ija=(l3.firstquartile=0,l3.midpoint=1,l3.thirdquartile=2,l3.complete=3,l3);g.x(ao,Hn);g.k=ao.prototype;g.k.hp=function(){return!0};
g.k.tq=function(){return 2==this.Fi};
g.k.UT=function(a){return kja(this,a,Math.max(1E4,this.B/3))};
g.k.Qa=function(a,b,c,d,e,f,h){var l=this,m=this.J(this)||{};g.ld(m,e);this.B=m.duration||this.B;this.ea=m.isVpaid||this.ea;this.La=m.isYouTube||this.La;e=Aja(this,b);1===zja(this)&&(f=e);Hn.prototype.Qa.call(this,a,b,c,d,m,f,h);this.Cq&&this.Cq.B&&g.Ub(this.I,function(n){n.u(l)})};
g.k.YP=function(a,b,c){Hn.prototype.YP.call(this,a,b,c);eo(this).update(a,b,this.yh,c);this.ib=Ln(this.yh)&&Ln(b);-1==this.Ga&&this.Za&&(this.Ga=this.bj().B.j);this.Pg.B=0;a=this.uq();b.isVisible()&&Rn(this.Pg,"vs");a&&Rn(this.Pg,"vw");Xm(b.volume)&&Rn(this.Pg,"am");Ln(b)?Rn(this.Pg,"a"):Rn(this.Pg,"mut");this.Ly&&Rn(this.Pg,"f");-1!=b.u&&(Rn(this.Pg,"bm"),1==b.u&&(Rn(this.Pg,"b"),Ln(b)&&Rn(this.Pg,"umutb")));Ln(b)&&b.isVisible()&&Rn(this.Pg,"avs");this.ib&&a&&Rn(this.Pg,"avw");0<b.Yd&&Rn(this.Pg,
"pv");fo(this,this.bj().B.j,!0)&&Rn(this.Pg,"gdr");2E3<=An(this.bj().u,1)&&Rn(this.Pg,"pmx")};
g.k.VF=function(){return new Tn};
g.k.bj=function(){return this.JG};
g.k.TL=function(){return new qja};
g.k.yK=function(a,b,c,d){a=Hn.prototype.yK.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Ly;a.paused=this.tq();a.volume=c.volume;Xm(a.volume)||(this.tb++,b=this.yh,Xm(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.RK=function(a){return Zm(),this.Ly?1:Hn.prototype.RK.call(this,a)};
g.k.Io=function(){return 1};
g.k.getDuration=function(){return this.B};
g.k.eU=function(){return this.Ls?2:Cja(this)?5:this.uq()?4:3};
g.k.MF=function(){return this.ob?2E3<=this.bj().D.B?4:3:2};var U$a=g.Va();Sja.prototype.reset=function(){this.j=[];this.u=[]};
var lo=cm(Sja);g.x(oo,gn);g.k=oo.prototype;g.k.getName=function(){return(this.u?this.u:this.j).getName()};
g.k.qs=function(){return(this.u?this.u:this.j).qs()};
g.k.bq=function(){return(this.u?this.u:this.j).bq()};
g.k.init=function(a){var b=!1;(0,g.Ub)(this.B,function(c){c.initialize()&&(b=!0)});
b&&(this.C=a,dn(this.j,this));return b};
g.k.dispose=function(){(0,g.Ub)(this.B,function(a){a.dispose()});
gn.prototype.dispose.call(this)};
g.k.sR=function(){return Ym(this.B,function(a){return a.EA()})};
g.k.GA=function(){return Ym(this.B,function(a){return a.EA()})};
g.k.JE=function(a,b,c){return new Yn(a,this.j,b,c)};
g.k.Gs=function(a){this.u=a.u};var aka={threshold:[0,.3,.5,.75,1]};g.x(po,Yn);g.k=po.prototype;g.k.uJ=function(){var a=this;this.ea||(this.ea=um());if(tia(298,function(){return bka(a)}))return!0;
this.u.fail("msf");return!1};
g.k.FA=function(){if(this.B&&this.element)try{this.B.unobserve(this.element),this.I?(this.I.unobserve(this.element),this.I=null):this.D&&(this.D.disconnect(),this.D=null)}catch(a){}};
g.k.Hr=function(){var a=qo(this);0<a.length&&ro(this,a);Yn.prototype.Hr.call(this)};
g.k.DK=function(){};
g.k.UU=function(){return!1};
g.k.IS=function(){};
g.k.qs=function(){var a={};return Object.assign(this.u.qs(),(a.niot_obs=this.ea,a.niot_cbk=this.V,a))};
g.k.getName=function(){return"nio"};g.x(so,gn);so.prototype.getName=function(){return"nio"};
so.prototype.GA=function(){return!Zm().u&&null!=this.j.j.B.IntersectionObserver};
so.prototype.JE=function(a,b,c){return new po(a,this.j,b,c)};g.x(to,cn);to.prototype.cU=function(){return Zm().j};
to.prototype.EA=function(){var a=dka();this.V!==a&&(this.j!=this&&a>this.j.V&&(this.j=this,en(this)),this.V=a);return 2==a};uo.prototype.sample=function(){xo(this,mo(),!1)};
uo.prototype.C=function(){var a=an(),b=um();a?(wm||(xm=b,g.Ub(lo.j,function(c){var d=c.bj();d.La=Un(d,b,1!=c.Fi)})),wm=!0):(this.J=ika(this,b),wm=!1,Jja=b,g.Ub(lo.j,function(c){c.pB&&(c.bj().V=b)}));
xo(this,mo(),!a)};
var vo=cm(uo);var kka=null,cp="",bp=!1;var nka=mka().Ao,zo=mka().Co;var qka={Hta:"visible",aia:"audible",xZa:"time",BZa:"timetype"},rka={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)},
audible:function(a){return"0"==a||"1"==a},
timetype:function(a){return"mtos"==a||"tos"==a},
time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}};
pka.prototype.setTime=function(a,b,c){"ms"==b?(this.B=a,this.C=-1):(this.B=-1,this.C=a);this.D=void 0===c?"tos":c;return this};g.x(Do,Vn);Do.prototype.getId=function(){return this.J};
Do.prototype.I=function(){return!0};
Do.prototype.j=function(a){var b=a.bj(),c=a.getDuration();return Ym(this.V,function(d){if(void 0!=d.j)var e=tka(d,b);else b:{switch(d.D){case "mtos":e=d.u?b.D.B:b.B.j;break b;case "tos":e=d.u?b.D.j:b.B.j;break b}e=0}0==e?d=!1:(d=-1!=d.B?d.B:void 0!==c&&0<c?d.C*c:-1,d=-1!=d&&e>=d);return d})};g.x(Eo,tja);Eo.prototype.j=function(a){var b=new Pn;b.j=Qn(a,Q$a);b.u=Qn(a,S$a);return b};g.x(Fo,Vn);Fo.prototype.j=function(a){return Cja(a)};g.x(Go,yja);g.x(Ho,Vn);Ho.prototype.j=function(a){return a.bj().uq()};g.x(Io,Wn);Io.prototype.j=function(a){var b=g.wb(this.J,xl(hm().Ac,"ovms"));return!a.Ls&&(0!=a.Fi||b)};g.x(So,Go);So.prototype.u=function(){return new Io(this.j)};
So.prototype.B=function(){return[new Ho("viewable_impression",this.j),new Fo(this.j)]};g.x(To,Zn);To.prototype.B=function(){var a=g.La("ima.admob.getViewability"),b=xl(this.Ac,"queryid");"function"===typeof a&&b&&a(b)};
To.prototype.getName=function(){return"gsv"};g.x(Uo,gn);Uo.prototype.getName=function(){return"gsv"};
Uo.prototype.GA=function(){var a=Zm();hm();return a.u&&!1};
Uo.prototype.JE=function(a,b,c){return new To(this.j,b,c)};g.x(Vo,Zn);Vo.prototype.B=function(){var a=this,b=g.La("ima.bridge.getNativeViewability"),c=xl(this.Ac,"queryid");"function"===typeof b&&c&&b(c,function(d){g.fd(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=Hia(d.opt_nativeViewBounds||{});var h=a.u.C;h.j=f?T$a.clone():Hia(e);a.timestamp=d.opt_nativeTime||-1;Zm().j=h.j;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
Vo.prototype.getName=function(){return"nis"};g.x(Wo,gn);Wo.prototype.getName=function(){return"nis"};
Wo.prototype.GA=function(){var a=Zm();hm();return a.u&&!1};
Wo.prototype.JE=function(a,b,c){return new Vo(this.j,b,c)};g.x(Xo,cn);g.k=Xo.prototype;g.k.EA=function(){return null!=this.u.hn};
g.k.OT=function(){var a={};this.Ja&&(a.mraid=this.Ja);this.ya&&(a.mlc=1);a.mtop=this.u.h9;this.J&&(a.mse=this.J);this.La&&(a.msc=1);a.mcp=this.u.compatibility;return a};
g.k.wt=function(a){var b=g.Ca.apply(1,arguments);try{return this.u.hn[a].apply(this.u.hn,b)}catch(c){tm(538,c,.01,function(d){d.method=a})}};
g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.eC();this.isInitialized=!0;if(2===this.u.compatibility)return this.J="ng",this.fail("w"),!1;if(1===this.u.compatibility)return this.J="mm",this.fail("w"),!1;Zm().V=!0;this.B.document.readyState&&"complete"==this.B.document.readyState?xka(this):En(this.B,"load",function(){em().setTimeout(sm(292,function(){return xka(a)}),100)},292);
return!0};
g.k.qR=function(){var a=Zm(),b=Cka(this,"getMaxSize");a.j=new zm(0,b.width,b.height,0)};
g.k.rR=function(){Zm().C=Cka(this,"getScreenSize")};
g.k.dispose=function(){zka(this);cn.prototype.dispose.call(this)};var dia=new function(a,b){this.key=a;this.defaultValue=void 0===b?!1:b;this.valueType="boolean"}("45378663");g.k=Zo.prototype;g.k.kB=function(a){In(a,!1);Wja(a)};
g.k.cG=function(){};
g.k.BD=function(a,b,c,d){var e=this;a=new ao(Dl,a,c?b:-1,7,this.ZK(),this.dT());a.Yh=d;zha(a.Ac);wl(a.Ac,"queryid",a.Yh);a.CO("");nja(a,function(){return e.mU.apply(e,g.la(g.Ca.apply(0,arguments)))},function(){return e.R3.apply(e,g.la(g.Ca.apply(0,arguments)))});
(d=cm(no).j)&&jja(a,d);a.zj.Rs&&cm(eka);return a};
g.k.Gy=function(a){switch(a.bq()){case 0:if(a=cm(no).j)a=a.j,g.Ab(a.D,this),a.ea&&this.hp()&&Nia(a);ap();break;case 2:wo()}};
g.k.Gs=function(){};
g.k.hp=function(){return!1};
g.k.R3=function(a,b){a.Ls=!0;switch(a.Io()){case 1:Ika(a,b);break;case 2:this.MO(a)}};
g.k.a4=function(a){var b=a.J(a);b&&(b=b.volume,a.ob=Xm(b)&&0<b);Fja(a,0);return ho(a,"start",an())};
g.k.aA=function(a,b,c){xo(vo,[a],!an());return this.Jo(a,b,c)};
g.k.Jo=function(a,b,c){return ho(a,c,an())};
g.k.V3=function(a){return gp(a,"firstquartile",1)};
g.k.X3=function(a){a.Za=!0;return gp(a,"midpoint",2)};
g.k.b4=function(a){return gp(a,"thirdquartile",3)};
g.k.S3=function(a){var b=gp(a,"complete",4);bo(a);return b};
g.k.T3=function(a){a.Fi=3;return ho(a,"error",an())};
g.k.rX=function(a,b,c){b=an();if(a.tq()&&!b){var d=um();a.bj().V=d}xo(vo,[a],!b);a.tq()&&(a.Fi=1);return ho(a,c,b)};
g.k.Z3=function(a,b){b=this.aA(a,b||{},"skip");bo(a);return b};
g.k.W3=function(a,b){In(a,!0);return this.aA(a,b||{},"fullscreen")};
g.k.U3=function(a,b){In(a,!1);return this.aA(a,b||{},"exitfullscreen")};
g.k.pO=function(a,b,c){b=a.bj();var d=um();b.La=Un(b,d,1!=a.Fi);xo(vo,[a],!an());1==a.Fi&&(a.Fi=2);return ho(a,c,an())};
g.k.Y3=function(a){xo(vo,[a],!an());return a.u()};
g.k.lM=function(a){xo(vo,[a],!an());this.lX(a);bo(a);return a.u()};
g.k.mU=function(){};
g.k.MO=function(){};
g.k.lX=function(){};
g.k.tR=function(){};
g.k.bL=function(){};
g.k.dT=function(){this.j||(this.j=this.bL());return null==this.j?new Xn:new So(this.j)};
g.k.ZK=function(){return new Eo};g.x(hp,Vn);hp.prototype.j=function(a){return 4==a.MF()};g.x(ip,Wn);ip.prototype.j=function(a){a=a.MF();return 3==a||4==a};g.x(jp,Go);jp.prototype.u=function(){return new ip(this.j)};
jp.prototype.B=function(){return[new hp(this.j)]};g.x(kp,tja);kp.prototype.j=function(a){a&&(28===a.e&&(a=Object.assign({},a,{avas:3})),4===a.vs||5===a.vs)&&(a=Object.assign({},a,{vs:3}));var b=new Pn;b.j=Qn(a,R$a);b.u=Qn(a,S$a);return b};Nka.prototype.u=function(){return g.La(this.j)};g.x(lp,Zo);g.k=lp.prototype;g.k.cG=function(a,b){var c=this,d=cm(no);if(null!=d.j)switch(d.j.getName()){case "nis":var e=Rka(this,a,b);break;case "gsv":e=Qka(this,a,b);break;case "exc":e=Ska(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=Kka(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Io()&&(e.J==g.Hd&&(e.J=function(f){return c.tR(f)}),Pka(this,e,b));
return e};
g.k.tR=function(a){a.u=0;a.Aa=0;if("h"==a.C||"n"==a.C){hm();a.Ya&&(hm(),"h"!=ep(this)&&ep(this));var b=g.La("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.Yh)}catch(e){a.u|=4}else a.u|=2}else if("b"==a.C)if(b=g.La("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.Yh)}catch(e){a.u|=4}else a.u|=2;else if("ml"==a.C)if(b=g.La("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.Yh)}catch(e){a.u|=4}else a.u|=2;else a.u|=1;a.u||(void 0===c?a.u|=8:null===
c?a.u|=16:g.fd(c)?a.u|=32:null!=c.errorCode&&(a.Aa=c.errorCode,a.u|=64));null==c&&(c={});b=c;a.V=0;for(var d in K$a)null==b[d]&&(a.V|=K$a[d]);Mka(b,"currentTime");Mka(b,"duration");Xm(c.volume)&&Xm()&&(c.volume*=NaN);return c};
g.k.bL=function(){hm();"h"!=ep(this)&&ep(this);var a=Tka(this);return null!=a?new Nka(a):null};
g.k.MO=function(a){!a.j&&a.Ls&&fp(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)};
g.k.lX=function(a){a.MX&&(a.uq()?fp(this,a,"overlay_viewable_end_of_session_impression"):fp(this,a,"overlay_unviewable_impression"),a.MX=!1)};
g.k.mU=function(){};
g.k.BD=function(a,b,c,d){if(eia()){var e=xl(hm().Ac,"mm"),f={};(e=(f[im.fZ]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[im.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&np(this,e);"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"===this.C&&tm(1044,Error())}a=Zo.prototype.BD.call(this,a,b,c,d);this.D&&(b=this.I,null==a.D&&(a.D=new oja),b.j[a.Yh]=a.D,a.D.D=U$a);return a};
g.k.kB=function(a){a&&1==a.Io()&&this.D&&delete this.I.j[a.Yh];return Zo.prototype.kB.call(this,a)};
g.k.dT=function(){this.j||(this.j=this.bL());return null==this.j?new Xn:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new jp(this.j):new So(this.j)};
g.k.ZK=function(){return"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new kp:new Eo};
var mp=new Pn;mp.j="stopped";mp.u="stopped";var V$a=rm(193,op,void 0,Jka);g.Ka("Goog_AdSense_Lidar_sendVastEvent",V$a);var W$a=sm(194,function(a,b){b=void 0===b?{}:b;a=Wka(cm(lp),a,b);return Xka(a)});
g.Ka("Goog_AdSense_Lidar_getViewability",W$a);var X$a=rm(195,function(){return Zha()});
g.Ka("Goog_AdSense_Lidar_getUrlSignalsArray",X$a);var Y$a=sm(196,function(){return JSON.stringify(Zha())});
g.Ka("Goog_AdSense_Lidar_getUrlSignalsList",Y$a);var kJa={QSa:0,NSa:1,KSa:2,LSa:3,MSa:4,PSa:5,OSa:6};var Tna=(new Date).getTime();var Z$a="client_dev_domain client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");[].concat(g.la(Z$a),["client_dev_set_cookie"]);var ala="://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(" "),bla=/\bocr\b/;var ela=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;"undefined"!==typeof TextDecoder&&new TextDecoder;var $$a="undefined"!==typeof TextEncoder?new TextEncoder:null,vqa=$$a?function(a){return $$a.encode(a)}:function(a){a=g.Yf(a);
for(var b=new Uint8Array(a.length),c=0;c<b.length;c++)b[c]=a[c];return b};g.x(rp,g.Cd);rp.prototype.dispose=function(){window.removeEventListener("offline",this.B);window.removeEventListener("online",this.B);this.Zm.Em(this.D);delete rp.instance};
rp.prototype.Qh=function(){return this.j};
rp.prototype.gf=function(){var a=this;this.D=this.Zm.wi(function(){var b;return g.A(function(c){if(1==c.j)return a.j?(null==(b=window.navigator)?0:b.onLine)?c.Ka(3):g.y(c,qp(a),3):g.y(c,qp(a),3);a.gf();g.ta(c)})},3E4)};tp.prototype.set=function(a,b){b=void 0===b?!0:b;Number.isInteger(a);0<=a&&52>a&&Number.isInteger(a)&&this.data_[a]!==b&&(this.data_[a]=b,this.j=-1)};
tp.prototype.get=function(a){return!!this.data_[a]};var vp;g.Ya(g.yp,g.E);g.k=g.yp.prototype;g.k.start=function(){this.stop();this.C=!1;var a=hla(this),b=ila(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.j=g.sd(this.u,"MozBeforePaint",this.B),this.u.mozRequestAnimationFrame(null),this.C=!0):this.j=a&&b?a.call(this.u,this.B):this.u.setTimeout(rba(this.B),20)};
g.k.stop=function(){if(this.isActive()){var a=hla(this),b=ila(this);a&&!b&&this.u.mozRequestAnimationFrame?zd(this.j):a&&b?b.call(this.u,this.j):this.u.clearTimeout(this.j)}this.j=null};
g.k.isActive=function(){return null!=this.j};
g.k.N_=function(){this.C&&this.j&&zd(this.j);this.j=null;this.I.call(this.D,g.Va())};
g.k.qa=function(){this.stop();g.yp.Ff.qa.call(this)};g.Ya(g.Ap,g.E);g.k=g.Ap.prototype;g.k.HA=0;g.k.qa=function(){g.Ap.Ff.qa.call(this);this.stop();delete this.j;delete this.u};
g.k.start=function(a){this.stop();this.HA=g.Mf(this.B,void 0!==a?a:this.Ei)};
g.k.stop=function(){this.isActive()&&g.Ja.clearTimeout(this.HA);this.HA=0};
g.k.isActive=function(){return 0!=this.HA};
g.k.uR=function(){this.HA=0;this.j&&this.j.call(this.u)};Ep.prototype[Symbol.iterator]=function(){return this};
Ep.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.u.call(void 0,a.value),done:a.done}};Np.prototype.jk=function(){return new Op(this.u())};
Np.prototype[Symbol.iterator]=function(){return new Pp(this.u())};
Np.prototype.j=function(){return new Pp(this.u())};
g.x(Op,g.Jn);Op.prototype.next=function(){return this.u.next()};
Op.prototype[Symbol.iterator]=function(){return new Pp(this.u)};
Op.prototype.j=function(){return new Pp(this.u)};
g.x(Pp,Np);Pp.prototype.next=function(){return this.B.next()};g.k=g.Rp.prototype;g.k.Kl=function(){Tp(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.u[this.j[b]]);return a};
g.k.Wp=function(){Tp(this);return this.j.concat()};
g.k.has=function(a){return Sp(this.u,a)};
g.k.equals=function(a,b){if(this===a)return!0;if(this.size!=a.size)return!1;b=b||mla;Tp(this);for(var c,d=0;c=this.j[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};
g.k.isEmpty=function(){return 0==this.size};
g.k.clear=function(){this.u={};this.Nt=this.size=this.j.length=0};
g.k.remove=function(a){return this.delete(a)};
g.k.delete=function(a){return Sp(this.u,a)?(delete this.u[a],--this.size,this.Nt++,this.j.length>2*this.size&&Tp(this),!0):!1};
g.k.get=function(a,b){return Sp(this.u,a)?this.u[a]:b};
g.k.set=function(a,b){Sp(this.u,a)||(this.size+=1,this.j.push(a),this.Nt++);this.u[a]=b};
g.k.forEach=function(a,b){for(var c=this.Wp(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.k.clone=function(){return new g.Rp(this)};
g.k.transpose=function(){for(var a=new g.Rp,b=0;b<this.j.length;b++){var c=this.j[b];a.set(this.u[c],c)}return a};
g.k.keys=function(){return Qp(this.jk(!0)).j()};
g.k.values=function(){return Qp(this.jk(!1)).j()};
g.k.entries=function(){var a=this;return jla(this.keys(),function(b){return[b,a.get(b)]})};
g.k.jk=function(a){Tp(this);var b=0,c=this.Nt,d=this,e=new g.Jn;e.next=function(){if(c!=d.Nt)throw Error("The map has changed since the iterator was created");if(b>=d.j.length)return g.i3;var f=d.j[b++];return g.Kn(a?f:d.u[f])};
return e};g.Ya(g.Up,g.Cd);g.k=g.Up.prototype;g.k.Yc=function(){return 1==this.j};
g.k.XG=function(){this.Cl("begin")};
g.k.Gq=function(){this.Cl("end")};
g.k.onFinish=function(){this.Cl("finish")};
g.k.Cl=function(a){this.dispatchEvent(a)};var aab=Id(function(){if(g.Ve)return!0;var a=g.Ze("DIV"),b=g.Nc?"-webkit":Km?"-moz":g.Ve?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!D9a.test("div"))throw Error("");if("DIV"in F9a)throw Error("");b=void 0;var d="";if(c)for(h in c)if(Object.prototype.hasOwnProperty.call(c,h)){if(!D9a.test(h))throw Error("");var e=c[h];if(null!=e){var f=h;if(e instanceof Qd)e=Rd(e);else if("style"==f.toLowerCase()){if(!g.Pa(e))throw Error("");e instanceof
ae||(e=Lba(e));e=be(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in E9a)if(e instanceof Vd)e=yba(e).toString();else if(e instanceof Xd)e=g.Yd(e);else if("string"===typeof e)e=g.$d(e).Jl();else throw Error("");}e.So&&(e=e.Jl());f=f+'="'+bc(String(e))+'"';d+=" "+f}}var h="<div"+d;null==b?b=[]:Array.isArray(b)||(b=[b]);!0===B9a.div?h+=">":(b=Vba(b),h+=">"+g.fe(b).toString()+"</div>");h=g.me(h);g.Zba(a,h);return""!=g.Lm(a.firstChild,"transition")});g.Ya(Vp,g.Up);g.k=Vp.prototype;g.k.play=function(){if(this.Yc())return!1;this.XG();this.Cl("play");this.startTime=g.Va();this.j=1;if(aab())return g.Jm(this.u,this.I),this.B=g.Mf(this.i8,void 0,this),!0;this.vJ(!1);return!1};
g.k.i8=function(){g.Um(this.u);nla(this.u,this.J);g.Jm(this.u,this.C);this.B=g.Mf((0,g.Ta)(this.vJ,this,!1),1E3*this.D)};
g.k.stop=function(){this.Yc()&&this.vJ(!0)};
g.k.vJ=function(a){g.Jm(this.u,"transition","");g.Ja.clearTimeout(this.B);g.Jm(this.u,this.C);this.endTime=g.Va();this.j=0;if(a)this.Cl("stop");else this.onFinish();this.Gq()};
g.k.qa=function(){this.stop();Vp.Ff.qa.call(this)};
g.k.pause=function(){};var pla={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};Wp("Element","attributes")||Wp("Node","attributes");Wp("Element","innerHTML")||Wp("HTMLElement","innerHTML");Wp("Node","nodeName");Wp("Node","nodeType");Wp("Node","parentNode");Wp("Node","childNodes");Wp("HTMLElement","style")||Wp("Element","style");Wp("HTMLStyleElement","sheet");var vla=rla("getPropertyValue"),wla=rla("setProperty");Wp("Element","namespaceURI")||Wp("Node","namespaceURI");var ula={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var Ala,g9a,zla,yla,Bla;Ala=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]");g9a=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.bab=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.Xp=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]");zla=/^http:\/\/.*/;g.cab=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");yla=/\s+/;Bla=/[\d\u06f0-\u06f9]/;Zp.prototype.clone=function(){return new Zp(this.j,this.J,this.B,this.D,this.C,this.I,this.u,this.V)};
Zp.prototype.equals=function(a){return this.j==a.j&&this.J==a.J&&this.B==a.B&&this.D==a.D&&this.C==a.C&&this.I==a.I&&this.u==a.u&&this.V==a.V};aq.prototype.clone=function(){return new aq(this.start,this.end)};(function(){if(z1a){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.hc()))?a[1]:"0"}return VW?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.hc()))?a[0].replace(/_/g,"."):"10"):g.bz?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.hc()))?a[1]:""):r9a||s9a||t9a?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.hc()))?a[1].replace(/_/g,"."):""):""})();var Dla=function(){if(g.iJ)return bq(/Firefox\/([0-9.]+)/);if(g.Ve||g.lB||g.gK)return Jc;if(g.hI){if(Fc()||Gc()){var a=bq(/CriOS\/([0-9.]+)/);if(a)return a}return bq(/Chrome\/([0-9.]+)/)}if(g.xA&&!Fc())return bq(/Version\/([0-9.]+)/);if(Zy||$y){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.hc()))return a[1]+"."+a[2]}else if(g.hK)return(a=bq(/Android\s+([0-9.]+)/))?a:bq(/Version\/([0-9.]+)/);return""}();g.Ya(g.dq,g.E);g.k=g.dq.prototype;g.k.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.I;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.I=e+3;d.push(e);return e};
g.k.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Fh(a)}return!1};
g.k.Fh=function(a){var b=this.j[a];if(b){var c=this.u[b];0!=this.C?(this.B.push(a),this.j[a+1]=function(){}):(c&&g.Ab(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b};
g.k.ma=function(a,b){var c=this.u[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.J)for(e=0;e<c.length;e++){var h=c[e];Ela(this.j[h+1],this.j[h+2],d)}else{this.C++;try{for(e=0,f=c.length;e<f&&!this.isDisposed();e++)h=c[e],this.j[h+1].apply(this.j[h+2],d)}finally{if(this.C--,0<this.B.length&&0==this.C)for(;c=this.B.pop();)this.Fh(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.u[a];b&&(b.forEach(this.Fh,this),delete this.u[a])}else this.j.length=0,this.u={}};
g.k.qa=function(){g.dq.Ff.qa.call(this);this.clear();this.B.length=0};g.eq.prototype.set=function(a,b){void 0===b?this.j.remove(a):this.j.set(a,g.Hi(b))};
g.eq.prototype.get=function(a){try{var b=this.j.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.eq.prototype.remove=function(a){this.j.remove(a)};g.Ya(fq,g.eq);fq.prototype.set=function(a,b){fq.Ff.set.call(this,a,Gla(b))};
fq.prototype.u=function(a){a=fq.Ff.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
fq.prototype.get=function(a){if(a=this.u(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Ya(gq,fq);gq.prototype.set=function(a,b,c){if(b=Gla(b)){if(c){if(c<g.Va()){gq.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.Va()}gq.Ff.set.call(this,a,b)};
gq.prototype.u=function(a,b){var c=gq.Ff.u.call(this,a);if(c)if(!b&&g.Hla(c))gq.prototype.remove.call(this,a);else return c};g.Ya(g.hq,gq);g.Ya(iq,Ila);iq.prototype[Symbol.iterator]=function(){return Qp(this.jk(!0)).j()};
iq.prototype.clear=function(){var a=Array.from(this);a=g.v(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};g.Ya(jq,iq);g.k=jq.prototype;g.k.isAvailable=function(){if(!this.j)return!1;try{return this.j.setItem("__sak","1"),this.j.removeItem("__sak"),!0}catch(a){return!1}};
g.k.set=function(a,b){try{this.j.setItem(a,b)}catch(c){if(0==this.j.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.k.get=function(a){a=this.j.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.j.removeItem(a)};
g.k.jk=function(a){var b=0,c=this.j,d=new g.Jn;d.next=function(){if(b>=c.length)return g.i3;var e=c.key(b++);if(a)return g.Kn(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.Kn(e)};
return d};
g.k.clear=function(){this.j.clear()};
g.k.key=function(a){return this.j.key(a)};g.Ya(kq,jq);g.Ya(Jla,jq);g.Ya(mq,iq);var Kla={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},lq=null;g.k=mq.prototype;g.k.isAvailable=function(){return!!this.j};
g.k.set=function(a,b){this.j.setAttribute(nq(a),b);oq(this)};
g.k.get=function(a){a=this.j.getAttribute(nq(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.j.removeAttribute(nq(a));oq(this)};
g.k.jk=function(a){var b=0,c=this.j.XMLDocument.documentElement.attributes,d=new g.Jn;d.next=function(){if(b>=c.length)return g.i3;var e=c[b++];if(a)return g.Kn(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.Kn(e)};
return d};
g.k.clear=function(){for(var a=this.j.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);oq(this)};g.Ya(pq,iq);pq.prototype.set=function(a,b){this.u.set(this.j+a,b)};
pq.prototype.get=function(a){return this.u.get(this.j+a)};
pq.prototype.remove=function(a){this.u.remove(this.j+a)};
pq.prototype.jk=function(a){var b=this.u[Symbol.iterator](),c=this,d=new g.Jn;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.Kn(a?e.slice(c.j.length):c.u.get(e))};
return d};rq.prototype.getKey=function(){return this.j};
rq.prototype.getValue=function(){return this.u};
rq.prototype.clone=function(){return new rq(this.j,this.u)};g.k=sq.prototype;g.k.Oh=function(a,b){var c=this.j;c.push(new rq(a,b));a=c.length-1;b=this.j;for(c=b[a];0<a;){var d=a-1>>1;if(b[d].getKey()>c.getKey())b[a]=b[d],a=d;else break}b[a]=c};
g.k.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)a.length=0;else{a[0]=a.pop();a=0;b=this.j;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,h=2*a+2;f=h<d&&b[h].getKey()<b[f].getKey()?h:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.k.Kl=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.Wp=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
g.k.clone=function(){return new sq(this)};
g.k.isEmpty=function(){return 0===this.j.length};
g.k.clear=function(){this.j.length=0};g.x(Lla,sq);tq.Sg=void 0;tq.getInstance=function(){return tq.Sg?tq.Sg:tq.Sg=new tq};
tq.prototype.j=0;var uq={},dab="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;uq.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if("object"!==typeof c)throw new TypeError(c+"must be non-object");for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}}return a};
uq.qP=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a};
var eab={Kx:function(a,b,c,d,e){if(b.subarray&&a.subarray)a.set(b.subarray(c,c+d),e);else for(var f=0;f<d;f++)a[e+f]=b[c+f]},
zT:function(a){var b,c;var d=c=0;for(b=a.length;d<b;d++)c+=a[d].length;var e=new Uint8Array(c);d=c=0;for(b=a.length;d<b;d++){var f=a[d];e.set(f,c);c+=f.length}return e}},fab={Kx:function(a,b,c,d,e){for(var f=0;f<d;f++)a[e+f]=b[c+f]},
zT:function(a){return[].concat.apply([],a)}};
uq.c9=function(){dab?(uq.Kw=Uint8Array,uq.Bp=Uint16Array,uq.mZ=Int32Array,uq.assign(uq,eab)):(uq.Kw=Array,uq.Bp=Array,uq.mZ=Array,uq.assign(uq,fab))};
uq.c9();var gab=!0;try{new Uint8Array(1)}catch(a){gab=!1};var fr={};fr=function(a,b,c,d){var e=a&65535|0;a=a>>>16&65535|0;for(var f;0!==c;){f=2E3<c?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 gr={},m3,hab=[],n3=0;256>n3;n3++){m3=n3;for(var iab=0;8>iab;iab++)m3=m3&1?3988292384^m3>>>1:m3>>>1;hab[n3]=m3}gr=function(a,b,c,d){c=d+c;for(a^=-1;d<c;d++)a=a>>>8^hab[(a^b[d])&255];return a^-1};var Xq={};Xq={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 Qq=[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],Tq=[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],hma=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Xla=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ar=Array(576);vq(ar);var br=Array(60);vq(br);var Sq=Array(512);vq(Sq);var Pq=Array(256);vq(Pq);var Rq=Array(29);vq(Rq);var Uq=Array(30);vq(Uq);var ema,fma,gma,dma=!1;var lr;lr=[new kr(0,0,0,0,function(a,b){var c=65535;for(c>a.Sl-5&&(c=a.Sl-5);;){if(1>=a.Yb){hr(a);if(0===a.Yb&&0===b)return 1;if(0===a.Yb)break}a.xb+=a.Yb;a.Yb=0;var d=a.rk+c;if(0===a.xb||a.xb>=d)if(a.Yb=a.xb-d,a.xb=d,cr(a,!1),0===a.Rd.me)return 1;if(a.xb-a.rk>=a.Ni-262&&(cr(a,!1),0===a.Rd.me))return 1}a.Oh=0;if(4===b)return cr(a,!0),0===a.Rd.me?3:4;a.xb>a.rk&&cr(a,!1);return 1}),
new kr(4,4,8,4,ir),new kr(4,5,16,8,ir),new kr(4,6,32,32,ir),new kr(4,4,16,16,jr),new kr(8,16,32,32,jr),new kr(8,16,128,128,jr),new kr(8,32,128,256,jr),new kr(32,128,258,1024,jr),new kr(32,258,258,4096,jr)];var cma={};cma=function(){this.input=null;this.uw=this.Si=this.Cv=0;this.Rj=null;this.KP=this.me=this.jz=0;this.msg="";this.state=null;this.dL=2;this.Dd=0};var ima=Object.prototype.toString;
mr.prototype.push=function(a,b){var c=this.Rd,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:!0===b?4:0;"string"===typeof a?c.input=Mla(a):"[object ArrayBuffer]"===ima.call(a)?c.input=new Uint8Array(a):c.input=a;c.Cv=0;c.Si=c.input.length;do{0===c.me&&(c.Rj=new uq.Kw(d),c.jz=0,c.me=d);a=bma(c,e);if(1!==a&&0!==a)return this.Gq(a),this.ended=!0,!1;if(0===c.me||0===c.Si&&(4===e||2===e))if("string"===this.options.to){var f=uq.qP(c.Rj,c.jz);b=f;f=f.length;if(65537>f&&(b.subarray&&gab||
!b.subarray))b=String.fromCharCode.apply(null,uq.qP(b,f));else{for(var h="",l=0;l<f;l++)h+=String.fromCharCode(b[l]);b=h}this.chunks.push(b)}else b=uq.qP(c.Rj,c.jz),this.chunks.push(b)}while((0<c.Si||0===c.me)&&1!==a);if(4===e)return(c=this.Rd)&&c.state?(d=c.state.status,42!==d&&69!==d&&73!==d&&91!==d&&103!==d&&113!==d&&666!==d?a=Yq(c,-2):(c.state=null,a=113===d?Yq(c,-3):0)):a=-2,this.Gq(a),this.ended=!0,0===a;2===e&&(this.Gq(0),c.me=0);return!0};
mr.prototype.Gq=function(a){0===a&&(this.result="string"===this.options.to?this.chunks.join(""):uq.zT(this.chunks));this.chunks=[];this.err=a;this.msg=this.Rd.msg};var or="@@redux/INIT"+nr(),oma="@@redux/REPLACE"+nr();var pma="function"===typeof Symbol&&Symbol.observable||"@@observable";g.x(qr,P);qr.prototype.getKey=function(){return kh(this,3)};
var jab=[qr,1,d3,2,d3,3,d3,4,d3,5,e3];g.x(rr,P);rr.prototype.getType=function(){return Oh(this,11)};
var rma=[2,13,14],TTa=function(){var a=[rr,2,m$a,4,d3,7,e3,9,e3,10,e3,11,n$a,12,e3,13,m$a,14,c3,jab,15,b3,16,b3,17,e3,1,n$a,3,b3,5,b3,6,b3,8,d3];return function(b,c){a:{if(a3.length){var d=a3.pop();yda(d,c);d.j.init(b,void 0,void 0,c);b=d}else b=new yg(b,c);try{var e=$h(a);var f=zea(new e.Mr,b,e);break a}finally{b.free()}f=void 0}return f}}();var iFa=new g.sr("adInfoDialogEndpoint");var ZDa=new g.sr("adPingingEndpoint");var KP=new g.sr("adActionInterstitialRenderer");var kab=new g.sr("adDurationRemainingRenderer");var Q0=new g.sr("adHoverTextButtonRenderer");var gFa=new g.sr("adInfoDialogRenderer");var IP=new g.sr("adMessageRenderer");var R0=new g.sr("adPreviewRenderer");var P2a=new g.sr("dismissablePanelTextPortraitImageRenderer");var lab=new g.sr("flyoutCtaRenderer");var mab=new g.sr("instreamAdPlayerUnderlayRenderer");var F8a=new g.sr("instreamSurveyAdBackgroundImageRenderer");var J3a=new g.sr("instreamSurveyAdPlayerOverlayRenderer");var s0=new g.sr("instreamSurveyAdRenderer"),zN=new g.sr("instreamSurveyAdSingleSelectQuestionRenderer"),AN=new g.sr("instreamSurveyAdMultiSelectQuestionRenderer"),o3=new g.sr("instreamSurveyAdAnswerRenderer"),nab=new g.sr("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var JP=new g.sr("instreamVideoAdRenderer");var oab=new g.sr("textOverlayAdContentRenderer"),pab=new g.sr("enhancedTextOverlayAdContentRenderer"),qab=new g.sr("imageOverlayAdContentRenderer");var M2a=new g.sr("playerBytesAdLayoutRenderer");var v0=new g.sr("playerUnderlayAdLayoutRenderer");var LP=new g.sr("adIntroRenderer");var K2a=new g.sr("playerBytesSequentialLayoutRenderer");var S3a=new g.sr("slidingTextPlayerOverlayRenderer");var t0=new g.sr("surveyTextInterstitialRenderer");var rab=new g.sr("simpleAdBadgeRenderer");var P0=new g.sr("skipAdRenderer"),sab=new g.sr("skipButtonRenderer");var kra=new g.sr("adSlotRenderer");var N2a=new g.sr("squeezebackPlayerSidePanelRenderer");var tab=new g.sr("timedPieCountdownRenderer");g.x(tr,P);g.x(ur,P);g.x(vr,P);g.x(wr,P);wr.prototype.clearVideo=function(){return L(this,1,void 0,!1)};
var iGa=[1,2,3];var UFa={Kea:0,Iea:1,Jea:2};var VFa={Oea:0,Nea:1,Mea:2,Lea:3};var ZFa={Nha:0,Mha:1,Lha:2};var LR={cka:0,dka:1,aka:2,Zja:3,Xja:4,bka:5,Yja:6,Wja:7};var YFa={Oka:0,Nka:1,Jka:2,Fka:3,Mka:4,Pka:5,Ika:6,Eka:7,Hka:8,Lka:9,Kka:10,Qka:11,Gka:12,Rka:13};var GGa={mla:0,Yka:1,dla:2,nla:3,Zka:4,ala:5,ila:6,kla:7,fla:8,Xka:9,hla:10,lla:11,gla:12,ela:13,jla:14};var XFa={Uoa:0,Soa:1,Toa:2};var FGa={fSa:0,eSa:1,dSa:2,cSa:3};var EGa={mSa:0,gSa:1,hSa:5,iSa:6,kSa:2,lSa:3,jSa:4};var DGa={pSa:0,qSa:1,oSa:2,nSa:3};var CGa={uSa:0,sSa:1,tSa:2};var BGa={N3a:0,C3a:1,J3a:2,D3a:3,K3a:4,G3a:5,L3a:6,H3a:7,F3a:8,E3a:9,I3a:10,M3a:11,B3a:12};g.x(xr,P);xr.prototype.getType=function(){return Oh(this,1)};g.x(yr,P);g.x(zr,P);g.x(Ar,P);g.x(Br,P);Br.prototype.j=function(a,b){return wh(this,2,a,b)};
var tma=[2];g.x(Cr,P);Cr.prototype.j=function(a,b){return wh(this,3,a,b)};
var uma=[3];g.x(Dr,P);g.x(Er,P);g.x(Fr,P);g.x(Gr,P);g.x(Hr,P);g.x(Ir,P);g.x(Jr,P);g.x(Kr,P);var JR=[2,3,4,5,6,7,8,9,10,11,12];var dGa={fga:0,ufa:2,hga:3,vfa:4,tfa:5,Wfa:6,Yfa:58,Gfa:17,lfa:18,aga:15,ega:7,Kfa:8,Xea:10,Yea:26,nfa:45,rfa:11,Ffa:14,jga:16,Tea:19,Zea:20,Uea:21,lga:22,afa:23,kga:24,sfa:25,Pea:27,Qea:53,Jfa:28,mfa:30,Ofa:31,ifa:32,bfa:33,Mfa:34,Hfa:35,Cfa:36,Vea:37,Ufa:38,Tfa:39,yfa:41,Dfa:42,Afa:43,zfa:44,Wea:40,Qfa:46,Pfa:49,Rfa:50,Bfa:51,Efa:52,iga:54,cga:55,dga:56,cfa:57,Vfa:60,jfa:67,Rea:64,ofa:65,dfa:68,Sea:69,Lfa:70,xfa:71,wfa:72,gfa:73,ffa:75,gga:76,Nfa:77,Ifa:78,Xfa:79,Sfa:80,kfa:81,pfa:82,efa:83,qfa:84,
Zfa:85};var cGa={Aga:0,zga:1,yga:2};var eGa={ZDa:0,SDa:1,VDa:2,vDa:3,XDa:4,iDa:5,ODa:6,yDa:7,YDa:8,rDa:9,LDa:10,sDa:11,QDa:12,TCa:13,CDa:14,ADa:15,BDa:16,PDa:17,EDa:18,NDa:19,MDa:20,IDa:21,nDa:22,UCa:23,zDa:24,GDa:25,pDa:26,oDa:27,FDa:28,VCa:29,JDa:30,uDa:31,WDa:32,hDa:33,HDa:34,gDa:35,jDa:36,kDa:37,qDa:38,mDa:39,lDa:40,KDa:41,DDa:42,RDa:43,wDa:44,TDa:45,UDa:46,xDa:47,tDa:70,dDa:48,aDa:49,fDa:50,eDa:51,cDa:52,ZCa:53,WCa:54,bDa:55,YCa:56,XCa:57,RCa:58,QCa:59,PCa:60,JCa:61,OCa:62,KCa:63,LCa:64,ICa:65,MCa:66,SCa:67,NCa:68,HCa:69};var TFa={Rja:0,Oja:1,Nja:18,Hja:2,Aja:3,Gja:9,Bja:10,Eja:14,Cja:4,zja:5,Dja:6,Sja:11,Fja:12,yja:13,xja:15,Jja:16,Pja:17,Qja:19,Tja:20,Mja:21,Kja:22,Lja:23,Ija:7};var fGa={wga:0,xga:1,pga:2,qga:3,rga:4,nga:5,oga:6,tga:7,vga:8};var KR={Vga:0,Kga:1,Uga:3,Sga:4,Rga:5,Lga:25,Wga:6,Iga:7,Cga:8,Nga:9,Bga:12,Mga:22,Pga:23,Tga:24,Qga:13,Xga:14,Oga:15,Dga:16,Gga:17,Ega:18,Fga:19,Hga:20,Jga:21};g.x(Lr,P);g.x(Mr,P);Mr.prototype.j=function(a,b){return Hh(this,1,Lr,a,b)};
var vma=[1];g.x(Nr,P);Nr.prototype.j=function(a,b){return wh(this,2,a,b)};
Nr.prototype.getMetrics=function(a){return oea(this,2,a)};
var wma=[2];g.x(Or,P);var gGa=[1,2];g.p3=new g.sr("browseEndpoint");var uab=new g.sr("confirmDialogEndpoint");var Sra=new g.sr("rawColdConfigGroup");var Rra=new g.sr("rawHotConfigGroup");var JGa={fQa:0,eQa:1,aQa:2,YPa:3,bQa:4,ZPa:5,dQa:6,cQa:7};g.dQ=new g.sr("commandExecutorCommand");g.x(Pr,P);g.x(Qr,P);g.x(Rr,P);g.x(Sr,P);var kGa=[1,2,3];g.x(Tr,P);g.x(Ur,P);Ur.prototype.B=function(a,b){return wh(this,1,a,b)};
Ur.prototype.j=function(a,b){return wh(this,2,a,b)};
Ur.prototype.Mf=function(){return eh(this,3)};
var xma=[1,2];g.x(Vr,P);g.x(Wr,P);Wr.prototype.j=function(a,b){return wh(this,1,a,b)};
Wr.prototype.getMetrics=function(a){return oea(this,1,a)};
var yma=[1];g.x(Xr,P);g.x(Yr,P);g.x(Zr,P);g.x($r,P);g.x(as,P);g.x(bs,P);g.x(cs,P);g.x(ds,P);var vGa=[1,2],yGa=[3,4,5];g.x(es,P);es.prototype.getId=function(){return eh(this,1)};g.x(fs,P);fs.prototype.getType=function(){return eh(this,1)};g.x(gs,P);gs.prototype.getType=function(){return eh(this,1)};g.x(hs,P);var QGa=[1,2,3];g.x(is,P);g.x(js,P);g.x(ks,P);var NR=[1,2,3,4];g.x(ls,P);ls.prototype.j=function(a,b){return Hh(this,2,ks,a,b)};
var zma=[2],tGa=[3,4];g.x(ms,P);var mGa=[1,2,3];g.x(ns,P);g.x(os,P);g.x(ps,P);g.x(qs,P);g.x(rs,P);g.x(ts,P);ts.prototype.j=function(a,b){return wh(this,1,a,b)};
var Ama=[1];g.x(us,P);g.x(vs,P);g.x(ws,P);var IGa=[1,2,3];g.x(xs,P);xs.prototype.j=function(a,b){return Hh(this,1,ws,a,b)};
var Bma=[1];g.x(ys,P);g.x(zs,P);g.x(As,P);g.x(Bs,P);Bs.prototype.j=function(a,b){return Hh(this,1,As,a,b)};
var Cma=[1];g.x(Cs,P);g.x(Ds,P);g.x(Es,P);Es.prototype.j=function(a,b){return Hh(this,1,Ds,a,b)};
var Ema=[1];g.x(Fs,P);Fs.prototype.j=function(a,b){return Hh(this,1,Ds,a,b)};
var Fma=[1];g.x(Gs,P);g.x(Hs,P);var Bxa={S2a:0,p4a:1,K4a:32,T4a:61,f5a:67,V4a:86,I4a:42,L4a:60,w4a:62,R4a:73,P4a:76,X4a:88,Y4a:90,q5a:41,r5a:69,s5a:70,t5a:71,OJa:2,jKa:27,ANDROID:3,dha:54,eha:14,mha:91,fha:55,gha:24,hha:20,iha:18,lha:21,oha:30,rha:29,sha:28,tha:34,nha:36,jha:38,IOS:5,yya:15,Iya:92,zya:40,Bya:25,Cya:17,Dya:19,Eya:64,Fya:66,Gya:26,Kya:22,Vya:33,Wya:68,Xya:35,Hya:53,Jya:37,Aya:39,b1a:7,Z1a:57,o2a:43,z2a:59,p2a:93,qha:74,G2a:75,H2a:85,I2a:65,K2a:80,L2a:8,Z0a:10,N2a:58,M2a:63,J2a:72,pha:23,T5a:11,U5a:13,Ala:12,a1a:16,
G4a:56,U4a:31,MJa:77,Wva:84,O4a:87,Yva:89,Xva:94,uHa:95};var vab={t1:0,CLASSIC:1,O0:2,HZ:3,qZ:4,U0:5,EZ:6,iS:7};g.x(Is,P);Is.prototype.s3=function(){return g.Nh(this,3)};
Is.prototype.t3=function(){return g.Nh(this,5)};g.x(Js,P);g.x(Ks,P);g.x(Ls,P);g.x(Ms,P);g.x(Hma,P);var Gma=[2];g.x(g.Ns,P);g.Ns.prototype.gs=aa(0);g.Ns.prototype.getPlayerType=function(){return Oh(this,36)};
g.Ns.prototype.setHomeGroupInfo=function(a){return Ch(this,Hma,81,a)};
g.Ns.prototype.clearLocationPlayabilityToken=function(){return L(this,89,void 0,!1)};
var Ima=[9,66,24,32,86,100,101];g.x(Os,P);Os.prototype.getKey=function(){return g.Nh(this,1)};
Os.prototype.getValue=function(){return g.Nh(this,2===xh(this,jqa)?2:-1)};
var jqa=[2,3,4,5,6];g.x(Ps,P);var Jma=[15,26,28];g.x(Qs,P);var Kma=[5];g.x(Rs,P);Rs.prototype.setToken=function(a){return L(this,2,a)};g.x(Ss,P);Ss.prototype.setSafetyMode=function(a){return L(this,5,a)};
var Lma=[12];g.x(Ts,P);Ts.prototype.zt=function(a){return Ch(this,g.Ns,1,a)};
var Mma=[12];var S0=new g.sr("thumbnailLandscapePortraitRenderer");var PGa={wXa:0,vXa:1,RWa:2,SWa:3,TWa:4,UWa:5,VWa:6,WWa:7,XWa:8,ZWa:9,aXa:10,bXa:11,cXa:12,dXa:13,eXa:14,fXa:15,hXa:16,iXa:17,lXa:18,mXa:19,nXa:20,qXa:21,oXa:22,pXa:23,rXa:24,sXa:25,tXa:26,uXa:27,kXa:28,YWa:29,gXa:30,jXa:31};var OGa={GXa:0,xXa:1,yXa:2,zXa:3,AXa:4,BXa:5,CXa:6,DXa:7,EXa:8,FXa:9,HXa:10};var wGa={xka:0,ika:1,yka:2,tka:3,fka:4,gka:5,rka:6,hka:7,pka:8,qka:13,kka:9,mka:10,oka:11,zka:12,jka:14,nka:15,lka:16,uka:17,ska:18,wka:19,vka:20};var xGa={Dka:0,Cka:1,Bka:2,Aka:3};var KGa={OZa:0,MZa:1,NZa:2};var oGa={Uha:0,Sha:4,Rha:2,Pha:5,Qha:8,Tha:9,Oha:3,Vha:6,Wha:7};var pGa={cma:0,Zla:1,ama:2,dma:3,ema:4,bma:5};var nGa={Cma:0,Ama:8,yma:2,wma:5,xma:9,zma:3,vma:4,Dma:6,Ema:7,Bma:10};var HGa={S3a:0,R3a:1,T3a:2};var wab={V3a:0,U3a:1};var OHa={h$:0,f$:1,e$:2,g$:3};g.xab=new g.sr("changeEngagementPanelVisibilityAction");var uFa=new g.sr("continuationCommand");g.yab=new g.sr("openPopupAction");g.q3=new g.sr("webCommandMetadata");var zza=new g.sr("metadataBadgeRenderer");var tFa=new g.sr("signalServiceEndpoint");var PIa={lea:0,mea:1,gea:2,jea:3,hea:4,iea:5};var QIa={sea:0,qea:1,nea:2,rea:3,tea:4,pea:5,oea:6};var zab={Uka:0,Ska:1,Wka:2,Tka:3,Vka:4};g.x(Us,P);Us.prototype.getType=function(){return Oh(this,1)};var TR={Cza:0,Dza:1,Bza:2,wza:3,yza:4,Aza:5,Eza:6,xza:7};var Aab={KJa:0,CJa:1,DJa:2,JJa:3,EJa:4,IJa:6,HJa:7,FJa:8,GJa:9};var Bab={RKa:0,OKa:1,QKa:2,PKa:3,NKa:4};var Cab={ROa:0,COa:1,SOa:2,QOa:3,POa:4,OOa:5,NOa:6,FOa:7,DOa:8,JOa:9,WOa:10,EOa:11,LOa:12,UOa:13,VOa:14,MOa:15,IOa:16,HOa:17,KOa:18,GOa:19,TOa:20};var jGa={ZOa:0,YOa:86};var UR={mRa:0,lRa:1,eRa:2,bRa:3,dRa:4,nRa:5,kRa:6,ZQa:7,oRa:8,XQa:9,iRa:10,pRa:11,jRa:12,aRa:13,WQa:14,cRa:15,gRa:16,fRa:17,hRa:18,YQa:19};g.bQ=new g.sr("innertubeCommand");var Dab={wZ:0,tZ:1,vZ:2,uZ:3};var roa={wZ:"EMBEDDED_PLAYER_MODE_UNKNOWN",tZ:"EMBEDDED_PLAYER_MODE_DEFAULT",vZ:"EMBEDDED_PLAYER_MODE_PFP",uZ:"EMBEDDED_PLAYER_MODE_PFL"};var Xza=new g.sr("channelThumbnailEndpoint");var Wza=new g.sr("embeddedPlayerErrorMessageRenderer");var Sza=new g.sr("embeddedPlayerOverlayVideoDetailsRenderer"),Yza=new g.sr("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),Zza=new g.sr("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var xza=new g.sr("embedsInfoPanelRenderer");var zGa={cGa:0,QFa:1,ZFa:2,bGa:3,RFa:4,UFa:5,WFa:6,SFa:7,TFa:8,YFa:9,aGa:10,VFa:11,XFa:12};var Eab=new g.sr("feedbackEndpoint");var Fab=new g.sr("callToActionButtonViewModel");g.x(Vs,P);g.x(Ws,P);g.x(Xs,P);var cIa=[1,2];var Gab={Mza:0,Nza:1,Lza:2,Gza:3,Fza:4,Hza:5,Jza:6,Iza:7,Kza:8};var Hab={hAa:0,Vza:1,gAa:2,fAa:3,Qza:4,Sza:5,Tza:6,Rza:7,Zza:8,Wza:9,Xza:10,Yza:16,Oza:11,iAa:12,Pza:13,dAa:14,Uza:15,eAa:17,aAa:18,bAa:19,cAa:20};var Iab={mAa:0,jAa:1,lAa:2,kAa:3};var Jab={cxa:0,Jwa:1,dxa:8,Uwa:16,Vwa:17,Ywa:2,Wwa:3,Xwa:4,Mwa:5,Kwa:6,Lwa:7,bxa:9,Zwa:10,axa:11,Twa:12,Qwa:13,Swa:14,Rwa:15,Pwa:18,Nwa:19,Owa:20,Iwa:21};var Kab={uOa:0,vOa:1,tOa:2};var Lab={BOa:0,xOa:1,zOa:2,wOa:3,yOa:4,AOa:5};var Mab={BAa:0,sAa:1,tAa:2,uAa:3,zAa:4,wAa:5,xAa:6,vAa:7,yAa:8,rAa:9,AAa:10};var Nab={NEa:0,JEa:1,xEa:2,IEa:3,sEa:4,HEa:5,GEa:6,FEa:7,QEa:8,zEa:9,tEa:10,AEa:11,BEa:12,uEa:13,EEa:14,PEa:15,DEa:16,CEa:17,vEa:18,wEa:19,yEa:20,KEa:21,LEa:22,MEa:23,OEa:24};var Oab={kFa:0,gFa:9,aFa:8,mFa:1,rFa:2,pFa:3,qFa:13,hFa:4,cFa:21,dFa:20,eFa:5,WEa:6,VEa:7,YEa:14,XEa:15,tFa:17,uFa:10,fFa:16,ZEa:18,jFa:19,TEa:11,UEa:12,nFa:22,oFa:23,SEa:24,lFa:25,REa:26,sFa:27,bFa:28,iFa:29};var Pab={Yia:0,Wia:1,Xia:2};var Qab={lEa:0,dEa:1,gEa:2,jEa:3,eEa:4,bEa:5,hEa:6,iEa:7,aEa:8,kEa:9,fEa:10,cEa:11};var Rab={bja:0,Zia:1,cja:2,aja:3};var Sab=new g.sr("interactionLoggingCommandMetadata");var lqa={E4a:"WEB_DISPLAY_MODE_UNKNOWN",A4a:"WEB_DISPLAY_MODE_BROWSER",C4a:"WEB_DISPLAY_MODE_MINIMAL_UI",D4a:"WEB_DISPLAY_MODE_STANDALONE",B4a:"WEB_DISPLAY_MODE_FULLSCREEN"};g.x(Ys,P);g.x(Zs,P);g.x($s,P);$s.prototype.j=function(a,b){return Hh(this,1,Zs,a,b)};
var Nma=[1];var lJa={Q$:0,t$:1,C$:2,G$:3,M$:4,N$:5,R$:6,H$:7,s$:8,z$:9,y$:10,i$:11,B$:12,q$:14,v$:15,F$:16,E$:17,A$:18,u$:29,w$:19,n$:20,r$:21,P$:22,j$:23,T$:24,x$:25,o$:26,J$:27,p$:28,K$:30,L$:31,D$:32,O$:33,k$:34,I$:35,U$:36,l$:37,m$:38,S$:39};var Uab={Ula:0,Tla:1,Sla:2};g.x(at,P);g.x(ut,P);var Vab={hca:0,cca:114,dba:1,Wba:4,Xba:14,Qaa:15,Yba:17,Eaa:6,Haa:7,Jaa:8,Iaa:9,Oaa:5,vba:16,rba:101,Vba:20,Uba:26,Mba:28,Uaa:104,raa:105,ica:50,Tba:88,Pba:89,Rba:90,Qba:91,Vaa:2,kba:92,lba:19,uaa:25,eca:107,Gaa:29,Yaa:93,aba:94,Zaa:95,fca:30,tba:31,jba:116,fba:3,bba:82,Xaa:83,Waa:84,eba:85,Oba:11,jca:27,wba:10,bca:115,oaa:12,qaa:13,paa:49,naa:106,Caa:18,qba:21,Laa:22,maa:23,Sba:24,aaa:32,pba:33,eaa:34,qca:35,zaa:36,Dba:37,Saa:38,dca:39,Zba:40,aca:41,lca:42,Daa:43,gca:44,Raa:45,Kaa:46,xba:47,uba:48,
cba:51,Paa:52,Faa:53,Nba:54,Taa:55,taa:56,yaa:57,Aaa:99,saa:58,Aba:59,Maa:60,Bba:61,yba:62,nba:63,pca:64,mca:65,kca:66,oca:67,nca:68,Z$:69,zba:70,Eba:71,Fba:72,Hba:73,Iba:74,Gba:75,waa:76,xaa:77,haa:78,Baa:79,hba:80,Naa:81,vaa:86,jaa:87,caa:97,baa:103,mba:98,Cba:100,faa:102,Lba:108,Kba:109,daa:110,iaa:111,oba:112,Jba:113};var Wab={Fca:0,zca:1,Bca:2,Dca:3,xca:4,sca:5,uca:6,wca:7,Cca:8,tca:9,vca:10,Aca:13,Eca:14,rca:11,yca:12};var Xab={Cda:0,Ica:1,Jca:2,Lca:3,Sca:4,wda:42,oda:9,xda:10,Qca:11,uda:12,tda:13,bda:43,nda:14,cda:15,Ada:47,eda:46,jda:16,ida:17,Mca:18,rda:19,Pca:20,sda:21,Bda:22,yda:23,zda:24,Oca:25,Kca:26,vda:27,gda:28,lda:38,mda:39,kda:49,qda:5,dda:6,Rca:7,Wca:8,hda:29,pda:30,fda:31,Gca:32,Xca:33,Vca:34,Tca:35,Eda:36,Zca:37,Dda:40,Yca:41,Hca:44,Uca:45,Nca:48};var AIa={Ida:0,Hda:1,Fda:2,Gda:3};var yIa={mma:0,jma:1,hma:2,lma:3,kma:4};var Yab={Nma:0,Lma:1,Ima:2,Mma:3,Jma:4,Kma:5};var Zab={Qma:0,Oma:1,Pma:2};var $ab={Xma:0,Wma:1,Uma:2,Vma:3,Tma:4};var abb={ana:0,Yma:1,Zma:2,bna:3};var bbb={hna:0,cna:1,gna:2,fna:3,ena:4,dna:5};var cbb={nna:0,mna:1,ina:2};var dbb={lna:0,jna:1,kna:2};var ebb={qna:0,ona:1,pna:2};var fbb={Ena:0,Ana:1,zna:2,una:3,yna:4,sna:5,tna:6,Bna:7,vna:8,Cna:9,xna:10,rna:11,wna:12,Dna:13};var gbb={Jna:0,Hna:1,Ina:2,Gna:3,Fna:4};var xIa={bCa:0,BBa:1,CBa:2,PAa:3,sBa:4,DBa:5,tBa:6,QAa:7,EBa:8,IAa:9,JAa:10,XAa:11,OAa:12,RAa:13,vBa:14,VAa:15,HAa:16,RBa:17,qBa:18,SAa:19,yBa:20,wBa:21,xBa:22,GAa:23,ZBa:25,QBa:26,DCa:61,jBa:35,bBa:36,ZAa:37,fBa:38,eBa:93,hBa:39,gBa:40,nBa:41,XBa:97,YBa:102,kBa:42,iBa:43,oBa:44,pBa:45,LAa:24,MAa:27,NAa:28,wCa:29,yCa:75,xCa:30,sCa:98,tCa:89,zCa:31,ACa:86,uCa:32,vCa:91,gCa:51,iCa:52,rCa:62,kCa:70,oCa:63,mCa:64,hCa:65,qCa:66,jCa:71,nCa:67,lCa:68,pCa:69,CCa:33,lBa:46,mBa:47,SBa:49,TBa:50,UBa:94,MBa:77,
GBa:78,FBa:79,HBa:80,uBa:53,cCa:54,eCa:55,dCa:56,NBa:57,OBa:101,PBa:96,fCa:58,zBa:59,ABa:60,IBa:72,LBa:84,JBa:92,UAa:73,VBa:74,KAa:76,aCa:81,aBa:82,WBa:83,cBa:85,dBa:95,BCa:87,rBa:88,WAa:90,KBa:99,YAa:100,TAa:103};var BIa={oZ:0,Fla:1,FAa:2,Xla:3,b1:4,d1:5,SRa:6,FSa:7,CPa:8,B1:9,Gla:10,Lda:11,Nda:12,k4a:13,bea:14,dea:15,Vda:16,Wda:17,Oda:18,Lia:19,Zpa:20,Exa:21,tya:22,F1:23,AZa:24,Kda:25,IIa:26,HIa:47,l1:27,Kia:28,RRa:29,Xta:30,Dxa:31,Rla:32,s3a:33,l3a:34,i3a:35,q3a:36,r3a:37,n3a:38,o3a:39,p3a:40,k3a:41,j3a:42,Via:43,P0:44,tia:45,eZ:46,W$:48,FZ:49,tZa:50,Roa:51,wFa:52,z6a:53};var hbb={INa:0,xNa:1,CNa:2,ANa:3,BNa:4,wNa:5,GNa:6,HNa:7,vNa:8,ENa:9,yNa:10,zNa:11,DNa:12,FNa:13};var ibb={NNa:0,ONa:1,JNa:2,KNa:3,MNa:4,LNa:5};var wIa={lOa:0,hOa:1,cOa:2,dOa:3,eOa:21,YNa:4,TNa:5,VNa:6,UNa:7,XNa:8,kOa:9,SNa:10,jOa:11,iOa:12,gOa:13,fOa:20,ZNa:14,bOa:15,aOa:16,RNa:17,QNa:19,WNa:18};var DIa={qWa:0,lWa:1,mWa:14,oWa:15,pWa:20,ZVa:2,hWa:3,eWa:4,fWa:5,WVa:6,iWa:7,dWa:8,aWa:9,YVa:10,kWa:11,gWa:12,jWa:13,XVa:16,nWa:17,cWa:18,bWa:19};var EIa={J_a:0,G_a:1,I_a:2,H_a:3,A_a:4,E_a:5,D_a:6,C_a:8,B_a:9,F_a:7};var SR={X0a:0,K_a:1,n0a:2,R0a:3,M0a:4,T_a:5,x0a:6,d0a:7,A0a:8,u0a:9,K0a:10,O0a:11,C0a:12,U_a:13,v0a:14,b0a:15,R_a:16,s0a:17,B0a:18,N0a:19,Y_a:20,g0a:21,V0a:22,U0a:57,f0a:23,X_a:24,S_a:25,W0a:26,q0a:27,P0a:28,Q0a:29,y0a:30,T0a:31,a0a:32,D0a:33,k0a:34,m0a:35,t0a:36,r0a:37,F0a:38,w0a:39,Y0a:40,h0a:41,i0a:42,j0a:43,P_a:44,O_a:45,N_a:46,L_a:58,M_a:59,I0a:47,J0a:48,c0a:49,E0a:50,H0a:51,G0a:52,p0a:53,W_a:54,S0a:55,l0a:56,z0a:60,o0a:61,e0a:62,L0a:63,Z_a:64,V_a:65,Q_a:66};g.x(wt,P);g.x(xt,P);g.x(zt,P);g.x(At,P);g.x(Bt,P);g.x(Ct,P);var GIa=[1,2];g.x(Dt,P);Dt.prototype.getType=function(){return Oh(this,1)};
var FIa=[3,4];g.x(Et,P);g.k=Et.prototype;g.k.Ay=function(){return g.Nh(this,1)};
g.k.Q1=function(a,b){return Hh(this,2,Dt,a,b)};
g.k.R1=function(a,b){return Hh(this,3,Dt,a,b)};
g.k.P1=function(a,b){return Hh(this,4,Dt,a,b)};
g.k.T1=function(a,b){return Hh(this,5,Dt,a,b)};
g.k.S1=function(a,b){return Hh(this,6,Dt,a,b)};
var Oma=[2,3,4,5,6];g.x(Ft,P);Ft.prototype.getType=function(){return Oh(this,2)};
Ft.prototype.j=function(a,b){return wh(this,5,a,b)};
var Pma=[5];g.x(Gt,P);Gt.prototype.B=function(a,b){return wh(this,2,a,b)};
Gt.prototype.j=function(a,b){return Hh(this,4,Dt,a,b)};
Gt.prototype.I=function(a,b){return Hh(this,5,Dt,a,b)};
Gt.prototype.D=function(a,b){return Hh(this,6,Dt,a,b)};
var Qma=[2,4,5,6];g.x(Ht,P);Ht.prototype.getType=function(){return Oh(this,2)};g.x(It,P);It.prototype.j=function(a,b){return Hh(this,1,Ht,a,b)};
var Rma=[1];g.x(Jt,P);g.x(Kt,P);Kt.prototype.j=function(a,b){return wh(this,1,a,b)};
var Sma=[1];g.x(Lt,P);Lt.prototype.j=function(a,b){return wh(this,1,a,b)};
Lt.prototype.B=function(a,b){return wh(this,2,a,b)};
var Tma=[1,2];g.x(Mt,P);Mt.prototype.j=function(a,b){return Hh(this,2,Kt,a,b)};
var Uma=[2];g.x(Nt,P);g.x(Ot,P);g.x(Pt,P);Pt.prototype.j=function(a,b){return Hh(this,3,Ot,a,b)};
var Vma=[3];g.x(Qt,P);Qt.prototype.Ye=function(){return Oh(this,1)};g.x(Rt,P);Rt.prototype.zf=function(){return Oh(this,2)};g.x(St,P);g.x(Tt,P);g.x(Ut,P);Ut.prototype.getType=function(){return Oh(this,1)};g.x(Vt,P);g.x(Wt,P);g.x(Xt,P);g.x(Yt,P);Yt.prototype.zB=function(){return g.Nh(this,4)};g.x(Zt,P);g.x($t,P);g.x(au,P);g.x(bu,P);g.x(cu,P);g.x(du,P);g.x(eu,P);g.x(fu,P);var r3=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];g.x(gu,P);g.x(hu,P);g.x(iu,P);g.x(ju,P);g.x(ku,P);ku.prototype.getState=function(){return Oh(this,1)};
ku.prototype.pc=function(a){return L(this,1,a)};g.x(lu,P);g.x(mu,P);mu.prototype.j=function(a,b){return Hh(this,1,lu,a,b)};
var Wma=[1];g.x(nu,P);nu.prototype.j=function(a,b){return Hh(this,2,mu,a,b)};
nu.prototype.B=function(a,b){return Hh(this,3,ju,a,b)};
var Xma=[2,3];g.x(ou,P);ou.prototype.B=function(a,b){return Hh(this,1,nu,a,b)};
ou.prototype.j=function(a,b){return Hh(this,2,iu,a,b)};
var Yma=[1,2];g.x(pu,P);g.x(qu,P);g.x(ru,P);g.x(tu,P);tu.prototype.Hl=function(){return Ih(eh(this,4),0)};g.x(uu,P);g.x(vu,P);vu.prototype.setConfig=function(a){return Ch(this,uu,2,a)};g.x(wu,P);g.x(xu,P);xu.prototype.getKey=function(){return g.Nh(this,1)};
xu.prototype.getValue=function(){return g.Nh(this,2)};g.x(yu,P);g.x(zu,P);g.x(Au,P);Au.prototype.j=function(a,b){return Hh(this,3,zu,a,b)};
var Zma=[3];g.x(Bu,P);g.x(Cu,P);g.k=Cu.prototype;g.k.getSettings=function(){return Ah(this,Bu,1)};
g.k.Yg=function(a){return Ch(this,Bu,1,a)};
g.k.getState=function(){return Oh(this,2)};
g.k.pc=function(a){return L(this,2,a)};
g.k.Hl=function(){return Ih(eh(this,3),0)};g.x(Du,P);g.x(Eu,P);Eu.prototype.Hl=function(){return Ih(eh(this,4),0)};g.x(Fu,P);g.x(Gu,P);g.k=Gu.prototype;g.k.getType=function(){return Oh(this,1)};
g.k.N1=function(a,b){return Hh(this,2,Fu,a,b)};
g.k.Hl=function(){return Ih(eh(this,6),0)};
g.k.getPlaybackRate=function(){return nea(this,7)};
g.k.setPlaybackRate=function(a){return Eh(this,7,a)};
g.k.fP=function(a){L(this,8,a)};
var $ma=[2];g.x(Hu,P);Hu.prototype.Hl=function(){return Ih(eh(this,3),0)};g.x(Iu,P);Iu.prototype.j=function(a,b){return Hh(this,1,Gu,a,b)};
Iu.prototype.B=function(a,b){return Hh(this,2,Hu,a,b)};
var ana=[1,2];g.x(Ju,P);Ju.prototype.getState=function(){return Oh(this,1)};
Ju.prototype.pc=function(a){return L(this,1,a)};g.x(Ku,P);Ku.prototype.zt=function(a){return L(this,1,a)};
Ku.prototype.j=function(a,b){return Hh(this,4,Iu,a,b)};
var bna=[4];g.x(Lu,P);Lu.prototype.j=function(a,b){return wh(this,1,a,b)};
Lu.prototype.Dg=function(a,b){hea(this,1,a,b,lea)};
var cna=[1];g.x(Mu,P);Mu.prototype.j=function(a,b){return Hh(this,4,xu,a,b)};
Mu.prototype.B=function(a,b){return wh(this,5,a,b)};
var dna=[4,5];g.x(Nu,P);g.x(Ou,P);g.x(Pu,P);g.x(Qu,P);Qu.prototype.Mf=function(){return g.Nh(this,2)};g.x(Ru,P);Ru.prototype.j=function(a,b){return Hh(this,1,Qu,a,b)};
var ena=[1];g.x(Su,P);g.x(Tu,P);Tu.prototype.Mf=function(){return g.Nh(this,2)};g.x(Uu,P);Uu.prototype.j=function(a,b){return Hh(this,1,Tu,a,b)};
var fna=[1];g.x(Vu,P);var YHa=[1,2,3];g.x(Wu,P);Wu.prototype.j=function(a,b){return Hh(this,1,Vu,a,b)};
var gna=[1];g.x(Xu,P);var CD=[2,3,4,5];g.x(Yu,P);Yu.prototype.getMessage=function(){return g.Nh(this,1)};g.x(Zu,P);g.x($u,P);g.x(av,P);g.x(bv,P);bv.prototype.xi=function(a,b){return Hh(this,5,av,a,b)};
var hna=[5];g.x(cv,P);g.x(dv,P);dv.prototype.j=function(a,b){return Hh(this,3,cv,a,b)};
var ina=[3];g.x(ev,P);g.x(fv,P);fv.prototype.B=function(a,b){return Hh(this,19,Ls,a,b)};
fv.prototype.j=function(a,b){return Hh(this,20,Ks,a,b)};
var jna=[19,20];g.x(gv,P);g.x(hv,P);g.x(iv,P);iv.prototype.j=function(a,b){return Hh(this,2,gv,a,b)};
iv.prototype.setConfig=function(a){return Ch(this,hv,3,a)};
iv.prototype.D=function(a,b){return Hh(this,5,gv,a,b)};
iv.prototype.B=function(a,b){return Hh(this,9,Xs,a,b)};
var kna=[2,5,9];g.x(jv,P);jv.prototype.Hl=function(){return Ih(eh(this,2),0)};g.x(kv,P);kv.prototype.j=function(a,b){return Hh(this,9,jv,a,b)};
var lna=[9];g.x(lv,P);g.x(mv,P);g.x(nv,P);g.x(ov,P);g.x(pv,P);pv.prototype.getType=function(){return Oh(this,2)};
pv.prototype.j=function(a,b){return Hh(this,3,ov,a,b)};
var mna=[3];g.x(qv,P);qv.prototype.j=function(a,b){return Hh(this,10,pu,a,b)};
qv.prototype.B=function(a,b){return Hh(this,17,kv,a,b)};
var nna=[10,17];g.x(rv,P);var LHa={Iha:0,Hha:1,Eha:2,Fha:3,Gha:4};g.x(tv,P);tv.prototype.Mf=function(){return g.Nh(this,2)};
tv.prototype.zB=function(){return g.Nh(this,7)};var kHa={Tia:0,Sia:1,Mia:2,Nia:3,Oia:4,Pia:5,Qia:6,Ria:7};var rHa={Vpa:0,Wpa:3,Xpa:1,Upa:2};var gHa={Pqa:0,fqa:1,iqa:2,kqa:3,lqa:4,mqa:5,oqa:6,pqa:7,qqa:8,rqa:9,sqa:10,vqa:11,wqa:12,xqa:13,yqa:14,zqa:15,Bqa:16,Eqa:17,Fqa:18,Gqa:19,Hqa:20,Iqa:21,Jqa:22,Kqa:23,Lqa:24,Qqa:25,Rqa:26,Cqa:27,Mqa:28,Dqa:29,uqa:30,nqa:31,tqa:32,Sqa:33,Tqa:34,eqa:35,hqa:36,Nqa:37,Oqa:38,jqa:39,Aqa:40,gqa:41};var jHa={pta:0,mra:1,ysa:2,kta:3,Bta:4,usa:5,zsa:6,qra:7,sra:8,rra:9,Jsa:10,tsa:11,ssa:12,Rsa:13,Vsa:14,lta:15,yta:16,pra:17,ara:18,Hra:19,wra:20,xsa:21,Dsa:22,mta:23,cra:24,fra:25,Osa:26,yra:116,Kra:27,Lra:28,Isa:29,nra:30,Era:31,wsa:32,Hsa:33,Yqa:34,Zqa:35,Wqa:36,Xqa:37,Asa:38,Bsa:39,Usa:40,ora:41,zta:42,Msa:43,Gsa:44,Ksa:45,vsa:46,Lsa:47,zra:48,tra:49,Dta:50,Jra:51,Ira:52,ura:53,vra:54,ita:55,hta:56,gta:57,jta:58,xra:59,Ara:60,xta:61,Qsa:62,Nsa:63,Psa:64,Csa:65,bta:66,Zsa:67,ata:117,dta:68,Fra:69,
Gra:121,Cta:70,Dra:71,eta:72,fta:73,Ssa:74,Tsa:75,Cra:76,Bra:77,Fsa:78,nta:79,Esa:80,Uqa:81,kra:115,ira:120,jra:122,lra:123,Nra:124,Mra:125,hra:126,Ysa:127,Wsa:128,Xsa:129,Ata:130,Vqa:131,gra:132,dra:133,Qra:82,Sra:83,isa:84,Tra:85,qsa:86,Rra:87,Vra:88,csa:89,fsa:90,ksa:91,hsa:92,jsa:93,Pra:94,Wra:95,gsa:96,Yra:97,Xra:98,Ora:99,Ura:100,lsa:101,dsa:102,rsa:103,msa:104,Zra:105,nsa:106,esa:107,bsa:118,rta:108,vta:109,uta:110,tta:111,wta:112,sta:113,qta:114};var jbb={Ela:0,Dla:1,Bla:2,Cla:3};var vJa={lUa:0,SUa:1,XUa:2,FUa:3,GUa:4,HUa:5,ZUa:39,aVa:6,VUa:7,RUa:50,YUa:69,TUa:70,UUa:71,PUa:74,IUa:32,JUa:44,KUa:33,WUa:8,LUa:9,MUa:10,OUa:11,NUa:12,QUa:73,mUa:56,nUa:57,oUa:58,pUa:59,qUa:60,rUa:61,wVa:13,xVa:14,yVa:15,GVa:16,BVa:17,IVa:18,HVa:19,DVa:20,EVa:21,zVa:34,FVa:35,CVa:36,AVa:49,vUa:37,wUa:38,yUa:40,AUa:41,zUa:42,BUa:43,CUa:51,xUa:52,uUa:67,sUa:22,tUa:23,eVa:24,kVa:25,lVa:62,jVa:26,hVa:27,dVa:48,bVa:53,cVa:63,mVa:66,gVa:54,iVa:68,nVa:72,fVa:75,EUa:64,DUa:65,oVa:28,rVa:29,qVa:30,pVa:31,
tVa:45,vVa:46,uVa:47,sVa:55};var sJa={KVa:0,LVa:1,JVa:2};var xJa={OVa:0,NVa:1,MVa:2};var wJa={VVa:0,TVa:1,RVa:2,UVa:3,PVa:4,QVa:5,SVa:6};var cJa={nZa:0,mZa:1,lZa:2};var bJa={rZa:0,pZa:1,oZa:2,qZa:3};g.x(uv,P);g.x(vv,P);g.x(wv,P);g.x(xv,P);g.x(yv,P);g.x(zv,P);zv.prototype.hasFeature=function(){return null!=eh(this,2)};g.x(Av,P);Av.prototype.HB=function(){return g.Nh(this,7)};g.x(Bv,P);g.x(Cv,P);g.x(Dv,P);Dv.prototype.getName=function(){return Oh(this,1)};
Dv.prototype.getStatus=function(){return Oh(this,2)};
Dv.prototype.getState=function(){return Oh(this,3)};
Dv.prototype.pc=function(a){return L(this,3,a)};g.x(Ev,P);Ev.prototype.j=function(a,b){return Hh(this,2,Dv,a,b)};
var ona=[2];g.x(Fv,P);g.x(Gv,P);Gv.prototype.j=function(a,b){return Hh(this,1,Ev,a,b)};
Gv.prototype.B=function(a,b){return Hh(this,2,Ev,a,b)};
var pna=[1,2];var rJa={pAa:0,nAa:1,oAa:2};var $Ia={pGa:0,jGa:1,mGa:2,qGa:3,kGa:4,lGa:5,nGa:6,oGa:7};var aJa={tGa:0,sGa:1,rGa:2};var ZIa={QJa:0,RJa:1,PJa:2};var YIa={hKa:0,UJa:1,dKa:2,iKa:3,fKa:4,XJa:5,TJa:6,VJa:7,WJa:8,gKa:9,eKa:10,YJa:11,bKa:12,cKa:13,aKa:14,ZJa:15,SJa:16};var VIa={YXa:0,UXa:1,XXa:2,WXa:3,VXa:4};var UIa={cYa:0,aYa:1,bYa:2,ZXa:3};var WIa={jYa:0,fYa:1,hYa:2,dYa:3,iYa:4,eYa:5,gYa:6};var TIa={qYa:0,sYa:1,rYa:2,mYa:3,kYa:4,lYa:5,tYa:6,nYa:7,uYa:8,oYa:9,pYa:10};var XIa={xYa:0,wYa:1,vYa:2};var gJa={o1a:0,m1a:1,l1a:2,g1a:3,i1a:4,j1a:5,f1a:6,h1a:7,n1a:8,q1a:9,k1a:10,d1a:11,e1a:12,p1a:13};var fJa={t1a:0,s1a:1};var nJa={P1a:0,u1a:1,O1a:2,N1a:3,T1a:4,S1a:5,M1a:19,y1a:6,A1a:7,I1a:8,z1a:24,L1a:25,J1a:20,C1a:21,w1a:22,K1a:23,v1a:9,x1a:10,B1a:11,D1a:12,E1a:13,F1a:14,H1a:15,G1a:16,Q1a:17,R1a:18};var hJa={X1a:0,W1a:1,Y1a:2,U1a:3,V1a:4};var dJa={n2a:0,g2a:1,b2a:2,k2a:3,f2a:4,m2a:5,a2a:6,c2a:7,h2a:8,d2a:9,i2a:10,j2a:11,e2a:12,l2a:13};var jJa={u2a:0,s2a:1,q2a:2,r2a:3,t2a:4};var iJa={y2a:0,v2a:1,w2a:2,x2a:3};var eJa={C2a:0,B2a:1,A2a:2};var oJa={F2a:0,D2a:1,E2a:2};var pJa={Z2a:0,Y2a:1,X2a:2,V2a:3,W2a:4};var qJa={d3a:0,b3a:1,a3a:2,c3a:3};var kbb={Qla:0,Nla:1,Ola:2,Lla:3,Pla:4,Mla:5};var QFa={u1:0,Qxa:1,Ova:2,Pva:3,qAa:4,zKa:5,Zha:6};var PR={noa:0,Una:101,aoa:102,Pna:103,Sna:104,Xna:105,Yna:106,boa:107,coa:108,eoa:109,foa:110,moa:111,Zna:112,Vna:113,doa:114,hoa:115,ooa:116,Rna:117,Wna:118,poa:119,ioa:120,joa:121,Tna:122,Qna:123,goa:124,loa:125,koa:126};var WHa={yoa:0,voa:1,woa:2,toa:3,uoa:4,soa:5,xoa:6};var lbb={ppa:0,opa:1,mpa:2,npa:3};var mbb={Bpa:0,zpa:1,rpa:2,ypa:3,qpa:4,upa:5,xpa:6,Apa:7,wpa:8,tpa:9,spa:10};var nbb={Dpa:0,Epa:1,Cpa:2};g.x(Hv,P);g.x(Iv,P);g.x(Jv,P);Jv.prototype.getState=function(){return Jh(this,1)};
Jv.prototype.pc=function(a){return L(this,1,a)};g.x(Kv,P);g.x(Lv,P);g.x(Mv,P);g.x(Nv,P);g.x(Ov,P);g.x(Pv,P);Pv.prototype.Pd=function(){return g.Nh(this,1)};
Pv.prototype.setVideoId=function(a){return L(this,1,a)};g.x(Qv,P);Qv.prototype.jg=function(a){Gh(this,1,a)};g.x(Rv,P);Rv.prototype.Ek=function(){return gh(this,Qv,2)};g.x(Sv,P);Sv.prototype.hasFeature=function(){return null!=eh(this,1)};g.x(Tv,P);g.x(Uv,P);g.x(Vv,P);Vv.prototype.Mf=function(){return Oh(this,2)};
var obb=[1];g.x(Wv,P);g.x(Xv,P);g.x(Yv,P);g.x(Zv,P);Zv.prototype.getVideoAspectRatio=function(){return nea(this,2)};g.x($v,P);g.x(aw,P);g.x(bw,P);g.x(cw,P);g.x(dw,P);g.x(ew,P);g.x(fw,P);g.x(gw,P);g.x(hw,P);g.x(iw,P);g.x(jw,P);jw.prototype.getId=function(){return g.Nh(this,1)};g.x(kw,P);g.x(lw,P);g.x(mw,P);mw.prototype.j=function(a,b){return Hh(this,5,lw,a,b)};
var qna=[5];g.x(nw,P);g.x(ow,P);g.x(pw,P);pw.prototype.HB=function(){return g.Nh(this,30)};
pw.prototype.j=function(a,b){return Hh(this,27,ow,a,b)};
var rna=[27];g.x(qw,P);g.x(rw,P);g.x(tw,P);g.x(uw,P);var s3=[1,2,3,4];g.x(vw,P);g.x(ww,P);g.x(xw,P);g.x(yw,P);g.x(zw,P);zw.prototype.Hl=function(){return Ih(eh(this,2),0)};g.x(Bw,P);g.x(Fw,P);g.x(Gw,P);g.x(Hw,P);g.x(Iw,P);g.x(Jw,P);g.x(Kw,P);Kw.prototype.j=function(a,b){return wh(this,1,a,b)};
var sna=[1];g.x(Lw,P);Lw.prototype.Mf=function(){return Oh(this,3)};g.x(Mw,P);g.x(Nw,P);g.x(Ow,P);g.x(Pw,P);Pw.prototype.Pd=function(){return Ah(this,Nw,2===xh(this,t3)?2:-1)};
Pw.prototype.setVideoId=function(a){return Dh(this,Nw,2,t3,a)};
Pw.prototype.getPlaylistId=function(){return Ah(this,Mw,4===xh(this,t3)?4:-1)};
var t3=[2,3,4,5];g.x(Qw,P);Qw.prototype.getType=function(){return Oh(this,1)};
Qw.prototype.Pd=function(){return g.Nh(this,3)};
Qw.prototype.setVideoId=function(a){return L(this,3,a)};g.x(Rw,P);g.x(Sw,P);g.x(Tw,P);var RIa=[3];g.x(Uw,P);g.x(Vw,P);g.x(Ww,P);g.x(Xw,P);g.x(Yw,P);g.x(Zw,P);g.x($w,P);g.x(ax,P);g.x(bx,P);g.x(cx,P);cx.prototype.getStarted=function(){return Ih(Vda(eh(this,1)),!1)};g.x(dx,P);g.x(ex,P);g.x(fx,P);fx.prototype.getDuration=function(){return Jh(this,2)};
fx.prototype.Tk=function(a){L(this,2,a)};g.x(gx,P);g.x(hx,P);g.x(ix,P);ix.prototype.HB=function(){return g.Nh(this,1)};g.x(jx,P);g.x(kx,P);g.x(lx,P);lx.prototype.rg=function(){return Ah(this,jx,8)};
lx.prototype.d4=function(){return gh(this,jx,8)};
lx.prototype.getVideoData=function(){return Ah(this,kx,15)};
lx.prototype.iP=function(a){Ch(this,kx,15,a)};
var tna=[4];g.x(mx,P);g.x(nx,P);nx.prototype.j=function(a){return L(this,2,a)};g.x(ox,P);ox.prototype.j=function(a){return L(this,1,a)};
var wna=[3];g.x(px,P);px.prototype.j=function(a){return L(this,1,a)};
px.prototype.Ek=function(){return gh(this,Qv,2)};g.x(qx,P);qx.prototype.j=function(a){return L(this,1,a)};
qx.prototype.Ek=function(){return gh(this,Qv,2)};g.x(rx,P);rx.prototype.j=function(a){return L(this,1,a)};
rx.prototype.Ek=function(){return gh(this,Qv,2)};g.x(sx,P);sx.prototype.j=function(a){return L(this,1,a)};
sx.prototype.Ek=function(){return gh(this,Qv,2)};g.x(tx,P);g.x(ux,P);ux.prototype.getId=function(){return g.Nh(this,2)};g.x(xx,P);xx.prototype.getVisibilityState=function(){return Oh(this,5)};
var yna=[16];g.x(yx,P);g.x(zx,P);zx.prototype.getPlayerType=function(){return Oh(this,7)};
zx.prototype.Pd=function(){return g.Nh(this,19)};
zx.prototype.setVideoId=function(a){return L(this,19,a)};
var zna=[112,83,68];g.x(Bx,P);g.x(Cx,P);g.x(Dx,P);Dx.prototype.Pd=function(){return g.Nh(this,1)};
Dx.prototype.setVideoId=function(a){return L(this,1,a)};
Dx.prototype.j=function(a,b){return Hh(this,9,Cx,a,b)};
var Ana=[9];g.x(Ex,P);Ex.prototype.j=function(a,b){return Hh(this,3,Dx,a,b)};
var Bna=[3];g.x(Fx,P);Fx.prototype.Pd=function(){return g.Nh(this,1)};
Fx.prototype.setVideoId=function(a){return L(this,1,a)};g.x(Gx,P);g.x(Hx,P);Hx.prototype.j=function(a,b){return Hh(this,1,Fx,a,b)};
Hx.prototype.B=function(a,b){return Hh(this,2,Gx,a,b)};
var Cna=[1,2];g.x(Ix,P);g.x(Jx,P);Jx.prototype.getId=function(){return g.Nh(this,1)};
Jx.prototype.j=function(a,b){return wh(this,2,a,b)};
Jx.prototype.setVideoIds=function(a,b){return hea(this,2,a,b,Lh)};
var Dna=[2];g.x(Kx,P);g.x(Lx,P);g.x(Mx,P);Mx.prototype.j=function(a,b){return wh(this,9,a,b)};
var Ena=[9];g.x(Nx,P);g.x(Ox,P);g.x(Px,P);Px.prototype.getId=function(){return g.Nh(this,1)};
Px.prototype.j=function(a,b){return Hh(this,14,Lx,a,b)};
Px.prototype.B=function(a,b){return Hh(this,17,Nx,a,b)};
var Fna=[14,17];g.x(Qx,P);Qx.prototype.B=function(a,b){return Hh(this,1,Px,a,b)};
Qx.prototype.j=function(a,b){return Hh(this,2,Jx,a,b)};
var Gna=[1,2];g.x(Rx,P);g.x(Sx,P);Sx.prototype.getOrigin=function(){return g.Nh(this,3)};
Sx.prototype.Ye=function(){return Jh(this,6)};g.x(Tx,P);g.x(Ux,P);g.x(Vx,P);Vx.prototype.getContext=function(){return Ah(this,Ux,33)};
var xD=[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,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];var pbb={Ooa:0,Loa:1,Koa:2,Noa:3,Moa:4,Ioa:5,Joa:6};var qbb={Mua:0,yua:1,Bua:2,zua:3,Eua:4,Aua:5,iua:6,Jua:7,tua:8,aua:9,uua:10,Fua:11,Cua:12,kua:13,gua:14,jua:15,Lua:16,cua:17,eua:18,Kua:19,nua:20,hua:21,Iua:22,Rua:23,Qua:24,Nua:25,vua:26,Dua:27,Sua:28,oua:29,Yta:30,Pua:31,Oua:32,sua:33,Vua:34,rua:35,Gua:36,Uua:37,wua:38,Hua:39,qua:40,pua:41,fua:42,xua:43,Tua:44,Zta:45};var rbb={Eva:0,qva:1,tva:2,rva:3,wva:4,sva:5,fva:6,Bva:7,kva:8,Yua:9,mva:10,xva:11,uva:12,hva:13,dva:14,gva:15,Dva:16,ava:17,bva:18,Cva:19,iva:20,eva:21,Ava:22,Iva:23,Hva:24,Fva:25,nva:26,vva:27,Jva:28,jva:29,Wua:30,Gva:31,Zua:32,Mva:33,yva:34,Lva:35,ova:36,zva:37,cva:38,pva:39,Kva:40,Xua:41};var sbb={uxa:0,txa:1,vxa:2};var tbb={xwa:0,vwa:1,rwa:3,twa:4,uwa:5,wwa:6,swa:7};var ubb={Dwa:0,Awa:1,Cwa:2,Bwa:3,zwa:4,ywa:5};var vbb={pxa:0,lxa:1,mxa:2,nxa:3,oxa:4};var wbb={Axa:0,Bxa:1,Cxa:2,zxa:3,xxa:4,yxa:5};var OCa={kya:0,Rxa:1,Xxa:2,Yxa:4,eya:8,Zxa:16,aya:32,jya:64,iya:128,Txa:256,Vxa:512,cya:1024,Uxa:2048,Wxa:4096,Sxa:8192,bya:16384,fya:32768,dya:65536,gya:131072,hya:262144};var VHa={Oya:0,Nya:1,Mya:2,Lya:4};var UHa={Tya:0,Qya:1,Rya:2,Uya:3,Sya:4,Pya:5};var xbb={Kta:0,Jta:1,Ita:2};var ybb={xGa:0,wGa:1,vGa:2};var zbb={mHa:0,UGa:1,kHa:2,WGa:3,cHa:4,oHa:5,lHa:6,KGa:7,JGa:8,IGa:9,OGa:10,TGa:11,SGa:12,LGa:13,dHa:14,YGa:15,aHa:16,AGa:17,jHa:18,EGa:19,ZGa:20,zGa:21,bHa:22,RGa:23,BGa:24,DGa:25,gHa:26,nHa:27,hHa:28,XGa:29,MGa:30,PGa:31,QGa:32,HGa:33,pHa:34,FGa:35,NGa:36,eHa:37,CGa:38,yGa:39,GGa:41,VGa:42,fHa:43,iHa:44};var Abb={tHa:0,sHa:1,rHa:2,qHa:3};var pHa={nja:0,mja:1,lja:2};var mHa={XHa:0,WHa:1,UHa:2,VHa:7,THa:8,SHa:25,HHa:3,IHa:4,QHa:5,RHa:27,PHa:28,JHa:9,xHa:10,vHa:11,wHa:6,GHa:12,EHa:13,FHa:14,DHa:15,LHa:16,MHa:17,KHa:18,OHa:19,NHa:20,AHa:26,BHa:21,zHa:22,CHa:23,yHa:24,YHa:29};var oHa={dIa:0,aIa:1,bIa:2,cIa:3,ZHa:4};var nHa={iIa:0,gIa:1,hIa:2,eIa:3,fIa:4};var VGa={pIa:0,jIa:1,lIa:2,kIa:3,mIa:4,nIa:5,oIa:6,qIa:7};var hIa={hpa:0,fpa:1,gpa:2,cpa:3,dpa:4,epa:5};var mIa={CMa:0,BMa:1,uMa:2,zMa:3,vMa:4,yMa:5,AMa:6,xMa:7,wMa:8};var HHa={WMa:0,OMa:1,XMa:2,VMa:4,SMa:8,RMa:16,QMa:32,TMa:64,PMa:128,UMa:256};var iIa={pNa:0,kNa:1,oNa:2,hNa:3,ZMa:4,fNa:5,aNa:6,bNa:7,dNa:8,iNa:9,mNa:10,lNa:11,nNa:12,cNa:13,eNa:14,gNa:15,jNa:16,YMa:17};var EHa={rMa:0,oMa:1,pMa:2,qMa:3};var KHa={JMa:0,LMa:1,IMa:2,EMa:3,KMa:4,FMa:5,GMa:6,HMa:7};var $Ga={Q2a:0,Vla:1,iGa:2,EKa:3,GKa:4,HKa:5,BKa:6,HZa:7,XKa:8,WKa:9,CKa:10,FKa:11,l_a:12,Qda:13,Yda:14,Rda:15,zPa:16,jMa:17,YKa:18,bLa:19,NMa:20,aLa:21,DMa:22,qNa:23,gLa:24,tMa:25,DKa:26,EZa:27,NXa:28,YRa:29,oja:30,y6a:31,sMa:32};var ZGa={T2a:0,X$:1,sNa:2,rNa:3,SUCCESS:4,sZa:5,Lta:6,NRa:7,qwa:9,Wla:10,Nna:11,CANCELLED:12,XRa:13,OXa:14,TXa:15,m3a:16};var YGa={z_a:0,q_a:1,v_a:2,u_a:3,r_a:4,s_a:5,m_a:6,y_a:7,x_a:8,p_a:9,o_a:10,t_a:11,w_a:12,n_a:13};var iHa={oPa:0,fPa:1,jPa:2,hPa:3,nPa:4,iPa:5,mPa:6,lPa:7,kPa:8,gPa:9};var Bbb={wQa:0,vQa:1,uQa:2};var Cbb={zQa:0,xQa:1,yQa:2};var lHa={WSa:0,VSa:1,USa:2};var Dbb={dTa:0,eTa:1};var NIa={kTa:0,iTa:1,jTa:2,lTa:3};var Ebb={tWa:0,rWa:1,sWa:2};var Fbb={QYa:0,MYa:1,NYa:2,OYa:3,PYa:4};var JHa={wWa:0,uWa:1,vWa:2};var lIa={QWa:0,NWa:1,OWa:2,PWa:3};var AHa={cha:0,bha:1,Zga:2,aha:3};var bIa={Hia:0,Bia:1,Eia:2,Fia:3,Dia:4,Gia:5,Iia:6,Cia:7};var uHa={tma:0,rma:1,uma:2};var cHa={O2a:0,qla:1,rla:2,ola:3,sla:4};var bHa={P2a:0,mQa:1,XOa:2};var eIa={Uta:0,Qta:1,Mta:2,Tta:3,Ota:4,Rta:5,Pta:6,Nta:7,Sta:8};var gIa={sxa:0,rxa:1,qxa:2};var aIa={hGa:0,gGa:1,fGa:2};var dIa={qKa:0,pKa:1,oKa:2};var $Ha={BSa:0,zSa:1,ASa:2};var yHa={wZa:0,vZa:1,uZa:2};var Gbb={DFa:0,zFa:1,AFa:2,BFa:3,CFa:4,EFa:5};var Hbb={xPa:0,uPa:1,sPa:2,pPa:3,tPa:4,vPa:5,qPa:6,rPa:7,wPa:8,yPa:9};var Ibb={VZa:0,UZa:1,WZa:2};var MIa={u6a:0,f6a:1,m6a:2,l6a:3,e6a:4,v6a:5,s6a:6,g6a:7,h6a:8,k6a:9,j6a:12,a6a:10,t6a:11,o6a:13,p6a:14,w6a:15,n6a:16,q6a:17,b6a:18,r6a:19,d6a:20,x6a:21,i6a:22};var HIa={oya:0,mya:1,nya:2,lya:3};g.x(Wx,P);g.x(Xx,P);Xx.prototype.Pd=function(){var a=1===xh(this,hD)?1:-1;return eh(this,a)};
Xx.prototype.setVideoId=function(a){return yh(this,1,hD,a)};
Xx.prototype.getPlaylistId=function(){var a=2===xh(this,hD)?2:-1;return eh(this,a)};
var hD=[1,2];g.x(Yx,P);Yx.prototype.getContext=function(){return Ah(this,Ts,1)};
var Hna=[3];var uM=new g.sr("changeKeyedMarkersVisibilityCommand");var Jbb=new g.sr("changeMarkersVisibilityCommand");var Bza=new g.sr("loadMarkersCommand");var xOa=new g.sr("productListItemRenderer");var vza=new g.sr("shoppingOverlayRenderer");g.Tza=new g.sr("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var Kbb=new g.sr("adFeedbackEndpoint");var PNa=new g.sr("phoneDialerEndpoint");var ONa=new g.sr("sendSmsEndpoint");var Rza=new g.sr("copyTextEndpoint");var Lbb=new g.sr("webPlayerShareEntityServiceEndpoint");g.sM=new g.sr("urlEndpoint");g.rM=new g.sr("watchEndpoint");var JCa=new g.sr("watchPlaylistEndpoint");var qIa={kja:0,jja:1,ija:2,gja:3,hja:4};var GHa={VKa:0,TKa:1,UKa:2,SKa:3};var Mbb={lLa:0,kLa:1,iLa:2,jLa:3};var Nbb={pLa:0,mLa:1,nLa:2,oLa:3,qLa:4};var Obb={gMa:0,bMa:1,hMa:2,dMa:3,ULa:4,MLa:37,xLa:5,uLa:36,zLa:38,HLa:39,ILa:40,DLa:41,fMa:42,ALa:27,RLa:31,TLa:6,VLa:7,WLa:8,XLa:9,YLa:10,ZLa:11,cMa:29,BLa:30,SLa:32,LLa:12,KLa:13,wLa:14,QLa:15,rLa:16,tLa:35,yLa:43,CLa:28,OLa:17,NLa:18,PLa:19,eMa:20,GLa:25,vLa:33,iMa:21,JLa:22,FLa:26,ELa:34,aMa:23,sLa:24};var oIa={nMa:0,lMa:1,kMa:2,mMa:3};var QR={SXa:0,PXa:1,RXa:2,QXa:3};var aHa={k_a:0,YZa:1,XZa:2,d_a:3,j_a:4,ZZa:5,g_a:6,e_a:7,f_a:8,a_a:9,h_a:10,b_a:11,i_a:12,c_a:13};var DHa={MMa:0,hLa:1,ZKa:2,eLa:3,fLa:4,cLa:5,dLa:6};var Pbb={ZSa:0,YSa:1};var Qbb={TYa:0,SYa:1,RYa:2,UYa:3};var Rbb={XYa:0,WYa:1,VYa:2};var Sbb={hZa:0,bZa:1,cZa:2,dZa:5,gZa:7,iZa:8,eZa:9,fZa:10};var Tbb={aZa:0,ZYa:1,YYa:2};var YKa=new g.sr("compositeVideoOverlayRenderer");var cOa=new g.sr("miniplayerRenderer");var gza=new g.sr("playerMutedAutoplayOverlayRenderer"),hza=new g.sr("playerMutedAutoplayEndScreenRenderer");var kya=new g.sr("unserializedPlayerResponse"),iza=new g.sr("unserializedPlayerResponse");var Ubb=new g.sr("playlistEditEndpoint");var u3;g.pM=new g.sr("buttonRenderer");u3=new g.sr("toggleButtonRenderer");var FHa={R2a:0,ECa:4,DSa:1,mwa:2,pia:3,FCa:5,GSa:6,nwa:7,owa:8,pwa:9};var Vbb=new g.sr("resolveUrlCommandMetadata");var Wbb=new g.sr("modifyChannelNotificationPreferenceEndpoint");var YDa=new g.sr("pingingEndpoint");var Xbb=new g.sr("unsubscribeEndpoint");var SFa={U2a:0,vJa:1,rJa:2,qJa:3,RIa:71,QIa:4,tJa:5,wJa:6,uJa:16,sJa:69,SIa:70,NIa:56,OIa:64,PIa:65,eJa:7,UIa:8,ZIa:9,VIa:10,YIa:11,XIa:12,WIa:13,bJa:43,hJa:44,iJa:45,jJa:46,kJa:47,lJa:48,mJa:49,nJa:50,oJa:51,pJa:52,fJa:53,gJa:54,dJa:63,TIa:14,cJa:15,aJa:68,m5a:17,v5a:18,F4a:19,l5a:20,Z4a:21,n5a:22,x4a:23,h5a:24,c5a:25,J4a:26,v4a:27,Q4a:28,k5a:29,s4a:30,r4a:31,t4a:32,y4a:33,i5a:34,g5a:35,a5a:36,e5a:37,o5a:38,M4a:39,u5a:40,S4a:41,H4a:42,p5a:55,d5a:66,L5a:67,W4a:57,j5a:58,z4a:59,u4a:60,N4a:61,b5a:62};var Ybb={MTa:0,OTa:1,FTa:2,xTa:3,JTa:4,KTa:5,PTa:6,oTa:7,pTa:8,vTa:9,GTa:10,yTa:11,CTa:12,ATa:13,BTa:14,DTa:15,ETa:19,rTa:16,ITa:17,HTa:18,tTa:20,zTa:21,qTa:22,NTa:23,wTa:24,sTa:25,LTa:26,uTa:27};g.IM=new g.sr("subscribeButtonRenderer");var Zbb=new g.sr("subscribeEndpoint");var BHa={AWa:0,yWa:1,zWa:2};g.UKa=new g.sr("buttonViewModel");var mJa={hUa:0,iUa:1,gUa:2,cUa:3,fUa:4,dUa:5,bUa:6,eUa:7};var O2a=new g.sr("qrCodeRenderer");var Dxa={MFa:"LIVING_ROOM_APP_MODE_UNSPECIFIED",JFa:"LIVING_ROOM_APP_MODE_MAIN",IFa:"LIVING_ROOM_APP_MODE_KIDS",KFa:"LIVING_ROOM_APP_MODE_MUSIC",LFa:"LIVING_ROOM_APP_MODE_UNPLUGGED",HFa:"LIVING_ROOM_APP_MODE_GAMING"};var qza=new g.sr("autoplaySwitchButtonRenderer");var KL,tza,Cya,zPa;KL=new g.sr("decoratedPlayerBarRenderer");tza=new g.sr("chapteredPlayerBarRenderer");Cya=new g.sr("multiMarkersPlayerBarRenderer");zPa=new g.sr("chapterRenderer");g.rPa=new g.sr("markerRenderer");var qM=new g.sr("desktopOverlayConfigRenderer");var wza=new g.sr("gatedActionsOverlayViewModel");var vPa=new g.sr("heatMarkerRenderer");var uPa=new g.sr("heatmapRenderer");var Aza=new g.sr("watchToWatchTransitionRenderer");var Uza=new g.sr("playlistPanelRenderer");var gLa=new g.sr("speedmasterEduViewModel");var oM=new g.sr("suggestedActionTimeRangeTrigger"),rza=new g.sr("suggestedActionsRenderer"),sza=new g.sr("suggestedActionRenderer");var wPa=new g.sr("timedMarkerDecorationRenderer");var $bb={K5a:0,G5a:1,H5a:2,J5a:3,I5a:4,F5a:5,E5a:6,A5a:7,C5a:8,D5a:9,B5a:10,y5a:11,x5a:12,w5a:13,z5a:14};var MR={u1:0,USER:74,Jha:459,TRACK:344,Kha:493,Xha:419,qza:494,fja:337,KIa:237,exa:236,Mna:3,M5a:78,P5a:248,zJa:79,xRa:246,V5a:247,KKa:382,JKa:383,IKa:384,zZa:235,VIDEO:4,S5a:186,fma:126,LYa:127,oma:117,tRa:125,ySa:151,Goa:515,Yla:6,Zva:132,fwa:154,dwa:222,ewa:155,bwa:221,cwa:156,KYa:209,JYa:210,f4a:7,MRa:124,xWa:96,vKa:97,m4a:93,n4a:275,yia:110,xia:120,tQa:121,Gxa:72,Y3a:351,QTa:495,W3a:377,Z3a:378,Vta:496,Wta:497,RTa:498,zia:381,X3a:386,o4a:387,Dha:410,uya:437,cqa:338,wia:380,V$:352,cPa:113,dPa:114,
PZa:82,QZa:112,Eoa:354,LZa:21,Yoa:523,apa:375,Zoa:514,Sda:302,pma:136,Hxa:85,fea:22,W5a:23,TZa:252,SZa:253,via:254,Pda:165,IYa:304,Xoa:408,hza:421,KZa:422,g4a:423,rSa:463,PLAYLIST:63,d4a:27,c4a:28,e4a:29,AYa:30,DYa:31,CYa:324,EYa:32,Jia:398,GYa:399,HYa:400,xKa:411,wKa:413,yKa:414,AKa:415,FRa:39,GRa:143,KRa:144,BRa:40,CRa:145,ERa:146,Q3a:504,JRa:325,MPa:262,OPa:263,NPa:264,QPa:355,RPa:249,TPa:250,SPa:251,Kla:46,aTa:49,cTa:50,Jda:62,sIa:105,kza:242,MXa:397,CQa:83,bPa:135,Aha:87,Cha:153,Bha:187,vha:89,
uha:88,wha:139,yha:91,xha:104,zha:137,vla:99,f3a:100,tKa:326,Aoa:148,zoa:149,yYa:150,zYa:395,bia:166,hia:199,cia:534,gia:167,dia:168,lia:169,mia:170,eia:171,fia:172,iia:179,jia:180,oia:512,kia:513,u3a:200,g3a:476,v3a:213,Yha:191,PPa:192,JPa:305,KPa:306,VPa:329,JWa:327,KWa:328,FPa:195,GPa:197,ePa:301,APa:223,BPa:224,fza:227,xya:396,rza:356,mza:490,sza:394,pja:230,qia:297,z3a:298,eza:342,Hoa:346,Eta:245,RZa:261,Kxa:265,Pxa:266,Lxa:267,Ixa:268,Jxa:269,Oxa:270,Mxa:271,Nxa:272,xFa:303,oEa:391,pEa:503,
rEa:277,FFa:499,GFa:500,vFa:501,yFa:278,qEa:489,Jpa:332,Lpa:333,Hpa:334,Kpa:335,Ipa:336,ula:340,Zya:341,P3a:349,O3a:420,IRa:281,DRa:282,bTa:286,BYa:288,HRa:291,LRa:292,nEa:295,FYa:296,mEa:299,Uda:417,vza:308,X5a:309,Y5a:310,Z5a:311,Fea:350,x3a:418,fxa:424,h3a:425,LKa:429,uKa:430,pza:426,IXa:460,sKa:427,aSa:428,bSa:542,ZRa:461,LWa:464,xIa:431,vIa:432,CIa:433,uIa:434,zIa:435,AIa:436,wIa:438,BIa:439,DIa:453,yIa:454,tIa:472,GQa:545,EQa:546,OQa:547,RQa:548,QQa:549,PQa:550,HQa:551,NQa:552,JQa:516,IQa:517,
KQa:544,MQa:519,LQa:553,DZa:520,DQa:521,FQa:522,nza:543,lQa:440,nQa:441,rQa:442,jQa:448,kQa:449,oQa:450,sQa:451,qQa:491,POST:445,iQa:446,pQa:447,UQa:456,MKa:483,VQa:529,TQa:458,fTa:480,gTa:502,hTa:482,aza:452,TTa:465,UTa:466,Ona:467,SQa:468,Mpa:469,Ila:470,Hla:471,lza:474,Yya:475,Fma:477,bza:478,jwa:479,WPa:484,UPa:485,IPa:486,HPa:487,Zda:488,kpa:492,Opa:505,Woa:506,h4a:507,EAa:508,iwa:509,kwa:510,lwa:511,y3a:524,a4a:530,HSa:531,Npa:532,ZTa:533,cza:535,uza:536,iza:537,oza:538,dza:539,jza:540,gza:541};var Mta=new g.sr("cipher");var lya=new g.sr("playerVars");var jza=new g.sr("playerVars");var v3=g.Ja.window,acb,bcb,Zx=(null==v3?void 0:null==(acb=v3.yt)?void 0:acb.config_)||(null==v3?void 0:null==(bcb=v3.ytcfg)?void 0:bcb.data_)||{};g.Ka("yt.config_",Zx);var gy=[];var Qna=/^[\w.]*$/,Ona={q:!0,search_query:!0},Nna=String(ky);var Rna=new function(){var a=window.document;this.j=window;this.u=a};
g.Ka("yt.ads_.signals_.getAdSignalsString",function(a){return ly(uy(a))});g.Va();var Una="XMLHttpRequest"in g.Ja?function(){return new XMLHttpRequest}:null;var Wna={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"},Yna="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.la(Z$a)),coa=!1,oDa=By;g.x(Fy,nb);Iy.prototype.then=function(a,b,c){return this.j?this.j.then(a,b,c):1===this.B&&a?(a=a.call(c,this.u))&&"function"===typeof a.then?a:Ky(a):2===this.B&&b?(a=b.call(c,this.u))&&"function"===typeof a.then?a:Jy(a):this};
Iy.prototype.getValue=function(){return this.u};
Iy.prototype.$goog_Thenable=!0;var Ly=!1;var kB=Zy||$y;var poa=/^([0-9\.]+):([0-9\.]+)$/;g.x(oz,nb);oz.prototype.name="BiscottiError";g.x(nz,nb);nz.prototype.name="BiscottiMissingError";var qz={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},pz=null;var zoa=eaa(["data-"]),Doa={};var ccb=0,rz=g.Nc?"webkit":Km?"moz":g.Ve?"ms":g.gK?"o":"",dcb=g.La("ytDomDomGetNextId")||function(){return++ccb};
g.Ka("ytDomDomGetNextId",dcb);var Goa={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};yz.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
yz.prototype.TU=function(){return this.event?!1===this.event.returnValue:!1};
yz.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
yz.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var zz=g.Ja.ytEventsEventsListeners||{};g.Ka("ytEventsEventsListeners",zz);var Joa=g.Ja.ytEventsEventsCounter||{count:0};g.Ka("ytEventsEventsCounter",Joa);var Qoa=Id(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),Koa=Id(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var w3;w3=window;g.GA=w3.ytcsi&&w3.ytcsi.now?w3.ytcsi.now:w3.performance&&w3.performance.timing&&w3.performance.now&&w3.performance.timing.navigationStart?function(){return w3.performance.timing.navigationStart+w3.performance.now()}:function(){return(new Date).getTime()};g.Ya(Ez,g.E);Ez.prototype.ea=function(a){void 0===a.j&&Hoa(a);var b=a.j;void 0===a.u&&Hoa(a);this.j=new g.ve(b,a.u)};
Ez.prototype.zs=function(){return this.j||new g.ve};
Ez.prototype.Z=function(){if(this.j){var a=(0,g.GA)();if(0!=this.C){var b=this.I,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.C);this.u[this.B]=.5<Math.abs((d-this.D)/this.D)?1:0;for(c=b=0;4>c;c++)b+=this.u[c]||0;3<=b&&this.J();this.D=d}this.C=a;this.I=this.j;this.B=(this.B+1)%4}};
Ez.prototype.qa=function(){window.clearInterval(this.V);g.Bz(this.oa)};g.x(Fz,g.E);Fz.prototype.S=function(a,b,c,d,e){c=g.iy((0,g.Ta)(c,d||this.Nb));c={target:a,name:b,callback:c};var f;e&&Qoa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.V.push(c);return c};
Fz.prototype.Fc=function(a){for(var b=0;b<this.V.length;b++)if(this.V[b]==a){this.V.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
Fz.prototype.qa=function(){g.Hz(this);g.E.prototype.qa.call(this)};Iz.prototype.clone=function(){var a=new Iz,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==oaa(c)?g.jd(c):c}return a};var aKa=["att/get"],FLa=["embedded_player"],ecb=["share/get_web_player_share_panel"],fcb=["feedback"],gcb=["notification/modify_channel_preference"],S_a=["player"],hcb=["browse/edit_playlist"],icb=["subscription/subscribe"],jcb=["subscription/unsubscribe"],W_a=["next","unplugged/watch_next"];var Kz;g.Jz=Id(function(){var a=new kq;return a.isAvailable()?new g.hq(a):null});
Kz=Id(function(){var a=new Jla;return a.isAvailable()?new g.hq(a):null});Pz.prototype.CB=function(a,b){a={};var c=mfa([]);c&&(a.Authorization=c,c=b=null==b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.ay("SESSION_INDEX",0)),c=isNaN(c)?0:c),g.cy("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in Zx||(a["X-Origin"]=window.location.origin),void 0===b&&"DELEGATED_SESSION_ID"in Zx&&(a["X-Goog-PageId"]=g.ay("DELEGATED_SESSION_ID")));return a};var DB={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Uz=g.La("ytglobal.prefsUserPrefsPrefs_")||{};g.Ka("ytglobal.prefsUserPrefsPrefs_",Uz);var Rz;g.k=Voa.prototype;g.k.get=function(a,b){Xz(a);Wz(a);a=void 0!==Uz[a]?Uz[a].toString():null;return null!=a?a:b?b:""};
g.k.set=function(a,b){Xz(a);Wz(a);if(null==b)throw Error("ExpectedNotNull");Uz[a]=b.toString()};
g.k.remove=function(a){Xz(a);Wz(a);delete Uz[a]};
g.k.save=function(){var a=!0;g.cy("web_secure_pref_cookie_killswitch")&&(a=!1);g.Ny(this.j,this.dump(),63072E3,this.u,a)};
g.k.clear=function(){g.gba(Uz)};
g.k.dump=function(){var a=[],b;for(b in Uz)Uz.hasOwnProperty(b)&&a.push(b+"="+encodeURIComponent(String(Uz[b])));return a.join("&")};
g.k.parse=function(a){a=decodeURIComponent(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(Uz[d]=c.toString())}};var Yoa={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"},mqa={CONN_DEFAULT:0,CONN_UNKNOWN:1,CONN_NONE:2,CONN_WIFI:3,CONN_CELLULAR_2G:4,CONN_CELLULAR_3G:5,CONN_CELLULAR_4G:6,CONN_CELLULAR_UNKNOWN:7,CONN_DISCO:8,CONN_CELLULAR_5G:9,CONN_WIFI_METERED:10,CONN_CELLULAR_5G_SA:11,
CONN_CELLULAR_5G_NSA:12,CONN_INVALID:31},nqa={EFFECTIVE_CONNECTION_TYPE_UNKNOWN:0,EFFECTIVE_CONNECTION_TYPE_OFFLINE:1,EFFECTIVE_CONNECTION_TYPE_SLOW_2G:2,EFFECTIVE_CONNECTION_TYPE_2G:3,EFFECTIVE_CONNECTION_TYPE_3G:4,EFFECTIVE_CONNECTION_TYPE_4G:5},$oa={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.x(g.Yz,Error);aA.prototype.wi=function(a,b){return bA(a,1,b)};
aA.prototype.d2=function(a){(a=this.j.get(a))&&a()};g.La("yt.scheduler.instance.timerIdMap_");g.x(dA,aA);dA.prototype.Em=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.La("yt.scheduler.instance.cancelJob");b?b(a):g.Ay(a)}};
dA.prototype.start=function(){var a=g.La("yt.scheduler.instance.start");a&&a()};
dA.prototype.pause=function(){var a=g.La("yt.scheduler.instance.pause");a&&a()};
g.sp=g.eA();hA.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.j)try{this.j.set(a,b,Date.now()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.Hi(b))}catch(f){return}else e=escape(b);g.Ny(a,e,c,this.u)};
hA.prototype.get=function(a,b){var c=void 0,d=!this.j;if(!d)try{c=this.j.get(a)}catch(e){d=!0}if(d&&(c=g.Oy(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
hA.prototype.remove=function(a){this.j&&this.j.remove(a);g.Py(a,"/",this.u)};var iA=function(){var a;return function(){a||(a=new hA("ytidb"));return a}}();var oA=[],kA,pA=!1;var x3={},cpa=(x3.AUTH_INVALID="No user identifier specified.",x3.EXPLICIT_ABORT="Transaction was explicitly aborted.",x3.IDB_NOT_SUPPORTED="IndexedDB is not supported.",x3.MISSING_INDEX="Index not created.",x3.MISSING_OBJECT_STORES="Object stores not created.",x3.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",x3.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",x3.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",x3.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",x3.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",x3.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",x3.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",x3),y3={},dpa=(y3.AUTH_INVALID="ERROR",y3.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",y3.EXPLICIT_ABORT="IGNORED",
y3.IDB_NOT_SUPPORTED="ERROR",y3.MISSING_INDEX="WARNING",y3.MISSING_OBJECT_STORES="ERROR",y3.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",y3.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",y3.QUOTA_EXCEEDED="WARNING",y3.QUOTA_MAYBE_EXCEEDED="WARNING",y3.UNKNOWN_ABORT="WARNING",y3.INCOMPATIBLE_DB_VERSION="WARNING",y3),z3={},epa=(z3.AUTH_INVALID=!1,z3.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,z3.EXPLICIT_ABORT=!1,z3.IDB_NOT_SUPPORTED=!1,z3.MISSING_INDEX=!1,z3.MISSING_OBJECT_STORES=!1,z3.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,z3.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,z3.QUOTA_EXCEEDED=!1,z3.QUOTA_MAYBE_EXCEEDED=!0,z3.UNKNOWN_ABORT=!0,z3.INCOMPATIBLE_DB_VERSION=!1,z3);g.x(g.uA,g.Yz);g.x(vA,g.uA);g.x(wA,Error);var fpa=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];g.BA.all=function(a){return new g.BA(new AA(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Bw:0};f.Bw<a.length;f={Bw:f.Bw},++f.Bw)g.BA.resolve(a[f.Bw]).then(function(h){return function(l){d[h.Bw]=l;e--;0===e&&b(d)}}(f)).catch(function(h){c(h)})}))};
g.BA.resolve=function(a){return new g.BA(new AA(function(b,c){a instanceof g.BA?a.then(b,c):b(a)}))};
g.BA.reject=function(a){return new g.BA(new AA(function(b,c){c(a)}))};
g.BA.prototype.then=function(a,b){var c=this,d=null!=a?a:hpa,e=null!=b?b:gpa;return new g.BA(new AA(function(f,h){"PENDING"===c.state.status?(c.j.push(function(){ipa(c,c,d,f,h)}),c.u.push(function(){jpa(c,c,e,f,h)})):"FULFILLED"===c.state.status?ipa(c,c,d,f,h):"REJECTED"===c.state.status&&jpa(c,c,e,f,h)}))};
g.BA.prototype.catch=function(a){return this.then(void 0,a)};g.k=mpa.prototype;g.k.advance=function(a){this.cursor.advance(a);return FA(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return FA(this.request)};
g.k.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return FA(this.request)};
g.k.getKey=function(){return this.cursor.key};
g.k.XF=function(){return this.cursor.primaryKey};g.k=npa.prototype;g.k.add=function(a,b,c){return g.KA(this,[a],{mode:"readwrite",Wb:!0},function(d){return d.objectStore(a).add(b,c)})};
g.k.clear=function(a){return g.KA(this,[a],{mode:"readwrite",Wb:!0},function(b){return b.objectStore(a).clear()})};
g.k.close=function(){this.j.close();var a;(null==(a=this.options)?0:a.closed)&&this.options.closed()};
g.k.count=function(a,b){return g.KA(this,[a],{mode:"readonly",Wb:!0},function(c){return c.objectStore(a).count(b)})};
g.k.delete=function(a,b){return g.KA(this,[a],{mode:"readwrite",Wb:!0},function(c){return c.objectStore(a).delete(b)})};
g.k.get=function(a,b){return g.KA(this,[a],{mode:"readonly",Wb:!0},function(c){return c.objectStore(a).get(b)})};
g.k.getAll=function(a,b,c){return g.KA(this,[a],{mode:"readonly",Wb:!0},function(d){return d.objectStore(a).getAll(b,c)})};
g.k.objectStoreNames=function(){return Array.from(this.j.objectStoreNames)};
g.k.getName=function(){return this.j.name};
g.k=HA.prototype;g.k.add=function(a,b){return DA(this.j.add(a,b))};
g.k.autoIncrement=function(){return this.j.autoIncrement};
g.k.clear=function(){return DA(this.j.clear()).then(function(){})};
g.k.count=function(a){return DA(this.j.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?rpa(this,a):DA(this.j.delete(a))};
g.k.get=function(a){return DA(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype?DA(this.j.getAll(a,b)):spa(this,a,b)};
g.k.index=function(a){try{return new wpa(this.j.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new wA(a,this.j.name);throw b;}};
g.k.getName=function(){return this.j.name};
g.k.keyPath=function(){return this.j.keyPath};
NA.prototype.abort=function(){this.j.abort();this.u=!0;throw new g.uA("EXPLICIT_ABORT");};
NA.prototype.objectStore=function(a){a=this.j.objectStore(a);var b=this.B.get(a);b||(b=new HA(a),this.B.set(a,b));return b};
g.k=wpa.prototype;g.k.count=function(a){return DA(this.j.count(a))};
g.k.delete=function(a){return g.RA(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
g.k.get=function(a){return DA(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBIndex.prototype?DA(this.j.getAll(a,b)):xpa(this,a,b)};
g.k.getKey=function(a){return DA(this.j.getKey(a))};
g.k.keyPath=function(){return this.j.keyPath};
g.k.unique=function(){return this.j.unique};
g.k=ypa.prototype;g.k.advance=function(a){this.cursor.advance(a);return QA(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return QA(this.request)};
g.k.delete=function(){return DA(this.cursor.delete()).then(function(){})};
g.k.getKey=function(){return this.cursor.key};
g.k.XF=function(){return this.cursor.primaryKey};
g.k.getValue=function(){return this.cursor.value};
g.k.update=function(a){return DA(this.cursor.update(a))};TA.prototype.u=function(a,b,c){c=void 0===c?{}:c;return Apa(a,b,c)};
TA.prototype.delete=function(a){a=void 0===a?{}:a;return SA(this.name,a)};
TA.prototype.open=function(){function a(){var f,h,l,m,n,p,q,t,w,z;return g.A(function(C){switch(C.j){case 1:return h=null!=(f=Error().stack)?f:"",g.ua(C,2),g.y(C,c.u(c.name,c.options.version,e),4);case 4:l=C.u;for(var G=c.options,O=[],N=g.v(Object.keys(G.Fq)),K=N.next();!K.done;K=N.next()){K=K.value;var W=G.Fq[K],Z=void 0===W.H8?Number.MAX_VALUE:W.H8;!(l.j.version>=W.Cm)||l.j.version>=Z||l.j.objectStoreNames.contains(K)||O.push(K)}m=O;if(0===m.length){C.Ka(5);break}n=Object.keys(c.options.Fq);p=l.objectStoreNames();
if(c.D<g.dy("ytidb_reopen_db_retries",0))return c.D++,l.close(),qA(new g.uA("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),C.return(a());if(!(c.C<g.dy("ytidb_remake_db_retries",1))){C.Ka(6);break}c.C++;return g.y(C,c.delete(),7);case 7:return qA(new g.uA("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),C.return(a());case 6:throw new vA(p,n);case 5:return C.return(l);case 2:q=g.xa(C);if(q instanceof
DOMException?"VersionError"!==q.name:"DOMError"in self&&q instanceof DOMError?"VersionError"!==q.name:!(q instanceof Object&&"message"in q)||"An attempt was made to open a database using a lower version than the existing version."!==q.message){C.Ka(8);break}return g.y(C,c.u(c.name,void 0,Object.assign({},e,{upgrade:void 0})),9);case 9:t=C.u;w=t.j.version;if(void 0!==c.options.version&&w>c.options.version+1)throw t.close(),c.B=!1,Bpa(c,w);return C.return(t);case 8:throw b(),q instanceof Error&&!g.cy("ytidb_async_stack_killswitch")&&
(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),yA(q,c.name,"",null!=(z=c.options.version)?z:-1);}})}
function b(){c.j===d&&(c.j=void 0)}
var c=this;if(!this.B)throw Bpa(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()},
closed:b,s9:b,upgrade:this.options.upgrade};return this.j=d=a()};var iB=new TA("YtIdbMeta",{Fq:{databases:{Cm:1}},upgrade:function(a,b){b(1)&&g.IA(a,"databases",{keyPath:"actualName"})}});var nB,mB=new function(){}(new function(){});new g.Kj;g.x(qB,TA);qB.prototype.u=function(a,b,c){c=void 0===c?{}:c;return(this.options.shared?Kpa:Jpa)(a,b,Object.assign({},c))};
qB.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.shared?Opa:Lpa)(this.name,a)};var kcb={},Qpa=g.rB("ytGcfConfig",{Fq:(kcb.coldConfigStore={Cm:1},kcb.hotConfigStore={Cm:1},kcb),shared:!1,upgrade:function(a,b){b(1)&&(g.OA(g.IA(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.OA(g.IA(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});EB.prototype.ip=function(){return{version:this.version,args:this.args}};FB.prototype.toString=function(){return this.topic};var lcb=g.La("ytPubsub2Pubsub2Instance")||new g.dq;g.dq.prototype.subscribe=g.dq.prototype.subscribe;g.dq.prototype.unsubscribeByKey=g.dq.prototype.Fh;g.dq.prototype.publish=g.dq.prototype.ma;g.dq.prototype.clear=g.dq.prototype.clear;g.Ka("ytPubsub2Pubsub2Instance",lcb);var IB=g.La("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ka("ytPubsub2Pubsub2SubscribedKeys",IB);var JB=g.La("ytPubsub2Pubsub2TopicToKeys")||{};g.Ka("ytPubsub2Pubsub2TopicToKeys",JB);var pqa=g.La("ytPubsub2Pubsub2IsAsync")||{};
g.Ka("ytPubsub2Pubsub2IsAsync",pqa);g.Ka("ytPubsub2Pubsub2SkipSubKey",null);var tqa=g.dy("max_body_size_to_compress",5E5),uqa=g.dy("min_body_size_to_compress",500),MB=!0,OB=0,NB=0,wqa=g.dy("compression_performance_threshold",250),xqa=g.dy("slow_compressions_before_abandon_count",10);g.k=RB.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(QB(this)&&this.ag){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.gh.set(d,this.yf).then(function(e){d.id=e;c.Xg.Qh()&&c.hC(d)}).catch(function(e){c.hC(d);
SB(c,e)})}else this.Qq(a,b)};
g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(QB(this)&&this.ag){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.kb&&this.kb("nwl_skip_retry")&&(e.skipRetry=c);if(this.Xg.Qh()||this.kb&&this.kb("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(h,l){return g.A(function(m){if(1==m.j)return g.y(m,d.gh.set(e,d.yf).catch(function(n){SB(d,n)}),2);
f(h,l);g.ta(m)})}}this.Qq(a,b,e.skipRetry)}else this.gh.set(e,this.yf).catch(function(h){d.Qq(a,b,e.skipRetry);
SB(d,h)})}else this.Qq(a,b,this.kb&&this.kb("nwl_skip_retry")&&c)};
g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(QB(this)&&this.ag){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){};
d.options.onSuccess=function(h,l){void 0!==d.id?c.gh.iy(d.id,c.yf):e=!0;c.Xg.Bv&&c.kb&&c.kb("vss_network_hint")&&c.Xg.Bv(!0);f(h,l)};
this.Qq(d.url,d.options);this.gh.set(d,this.yf).then(function(h){d.id=h;e&&c.gh.iy(d.id,c.yf)}).catch(function(h){SB(c,h)})}else this.Qq(a,b)};
g.k.Xz=function(){var a=this;if(!QB(this))throw g.zA("throttleSend");this.j||(this.j=this.Zm.wi(function(){var b;return g.A(function(c){if(1==c.j)return g.y(c,a.gh.VT("NEW",a.yf),2);if(3!=c.j)return b=c.u,b?g.y(c,a.hC(b),3):(a.FK(),c.return());a.j&&(a.j=0,a.Xz());g.ta(c)})},this.gY))};
g.k.FK=function(){this.Zm.Em(this.j);this.j=0};
g.k.hC=function(a){var b=this,c,d;return g.A(function(e){switch(e.j){case 1:if(!QB(b))throw c=g.zA("immediateSend"),c;if(void 0===a.id){e.Ka(2);break}return g.y(e,b.gh.E4(a.id,b.yf),3);case 3:(d=e.u)||b.Hy(Error("The request cannot be found in the database."));case 2:if(b.QH(a,b.nX)){e.Ka(4);break}b.Hy(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.Ka(5);break}return g.y(e,b.gh.iy(a.id,b.yf),5);case 5:return e.return();case 4:a.skipRetry||(a=Dqa(b,a));if(!a){e.Ka(0);
break}if(!a.skipRetry||void 0===a.id){e.Ka(8);break}return g.y(e,b.gh.iy(a.id,b.yf),8);case 8:b.Qq(a.url,a.options,!!a.skipRetry),g.ta(e)}})};
g.k.QH=function(a,b){a=a.timestamp;return this.now()-a>=b?!1:!0};
g.k.TH=function(){var a=this;if(!QB(this))throw g.zA("retryQueuedRequests");this.gh.VT("QUEUED",this.yf).then(function(b){b&&!a.QH(b,a.iX)?a.Zm.wi(function(){return g.A(function(c){if(1==c.j)return void 0===b.id?c.Ka(2):g.y(c,a.gh.TO(b.id,a.yf),2);a.TH();g.ta(c)})}):a.Xg.Qh()&&a.Xz()})};var TB;var mcb={},Nqa=g.rB("ServiceWorkerLogsDatabase",{Fq:(mcb.SWHealthLog={Cm:1},mcb),shared:!0,upgrade:function(a,b){b(1)&&g.OA(g.IA(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var WB={},Tqa=0;XB.prototype.requestComplete=function(a,b){b&&(this.u=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)};
XB.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.u?!0:null};
XB.prototype.removeParams=function(a){return a.split("?")[0]};
XB.prototype.removeParams=XB.prototype.removeParams;XB.prototype.isEndpointCFR=XB.prototype.isEndpointCFR;XB.prototype.requestComplete=XB.prototype.requestComplete;XB.getInstance=YB;var ZB;g.x(aC,g.Cd);g.k=aC.prototype;g.k.Qh=function(){return this.j.Qh()};
g.k.Bv=function(a){this.j.j=a};
g.k.z3=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.k.R2=function(){this.u=!0};
g.k.Ra=function(a,b){return this.j.Ra(a,b)};
g.k.YH=function(a){a=qp(this.j,a);a.then(function(b){g.cy("use_cfr_monitor")&&YB().requestComplete("generate_204",b)});
return a};
aC.prototype.sendNetworkCheckRequest=aC.prototype.YH;aC.prototype.listen=aC.prototype.Ra;aC.prototype.enableErrorFlushing=aC.prototype.R2;aC.prototype.getWindowStatus=aC.prototype.z3;aC.prototype.networkStatusHint=aC.prototype.Bv;aC.prototype.isNetworkAvailable=aC.prototype.Qh;aC.getInstance=Vqa;g.x(g.bC,g.Cd);g.bC.prototype.Qh=function(){var a=g.La("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.u)():!0};
g.bC.prototype.Bv=function(a){var b=g.La("yt.networkStatusManager.instance.networkStatusHint").bind(this.u);b&&b(a)};
g.bC.prototype.YH=function(a){var b=this,c;return g.A(function(d){c=g.La("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.u);return g.cy("skip_network_check_if_cfr")&&YB().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Bv((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.Qh())})):c?d.return(c(a)):d.return(!0)})};var cC;g.x(dC,RB);dC.prototype.writeThenSend=function(a,b){b||(b={});g.$z()||(this.ag=!1);RB.prototype.writeThenSend.call(this,a,b)};
dC.prototype.sendThenWrite=function(a,b,c){b||(b={});g.$z()||(this.ag=!1);RB.prototype.sendThenWrite.call(this,a,b,c)};
dC.prototype.sendAndWrite=function(a,b){b||(b={});g.$z()||(this.ag=!1);RB.prototype.sendAndWrite.call(this,a,b)};
dC.prototype.awaitInitialization=function(){return this.u.promise};var $qa=g.Ja.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Ka("ytNetworklessLoggingInitializationOptions",$qa);g.fC.prototype.isReady=function(){!this.config_&&cqa()&&(this.config_=g.BB());return!!this.config_};var ncb,iC,kC;ncb=g.Ja.ytPubsubPubsubInstance||new g.dq;iC=g.Ja.ytPubsubPubsubSubscribedKeys||{};kC=g.Ja.ytPubsubPubsubTopicToKeys||{};g.jC=g.Ja.ytPubsubPubsubIsSynchronous||{};g.dq.prototype.subscribe=g.dq.prototype.subscribe;g.dq.prototype.unsubscribeByKey=g.dq.prototype.Fh;g.dq.prototype.publish=g.dq.prototype.ma;g.dq.prototype.clear=g.dq.prototype.clear;g.Ka("ytPubsubPubsubInstance",ncb);g.Ka("ytPubsubPubsubTopicToKeys",kC);g.Ka("ytPubsubPubsubIsSynchronous",g.jC);
g.Ka("ytPubsubPubsubSubscribedKeys",iC);var dra=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,era=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,hra={};g.x(tC,g.E);var C2a=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
"trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);g.x(zC,nb);var jsa=[{kN:function(a){return"Cannot read property '"+a.key+"'"},
nH:{Error:[{lj:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{lj:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{lj:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{lj:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{lj:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{lj:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{lj:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{kN:function(a){return"Cannot call '"+a.key+"'"},
nH:{TypeError:[{lj:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{lj:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{lj:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{lj:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{lj:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]},
{lj:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{kN:function(a){return a.key+" is not defined"},
nH:{ReferenceError:[{lj:/(.*) is not defined/,groups:["key"]},{lj:/Can't find variable: (.*)/,groups:["key"]}]}}];var tra={Eq:[],Ir:[{callback:qra,weight:500}]};var BC;var BD=new g.dq;var wra=new Set([174,173,175]),JC={};var OC=Symbol("injectionDeps");LC.prototype.toString=function(){return"InjectionToken("+this.name+")"};
xra.prototype.resolve=function(a){return a instanceof MC?PC(this,a.key,[],!0):PC(this,a,[])};var QC;SC.prototype.storePayload=function(a,b){a=TC(a);this.store[a]?this.store[a].push(b):(this.u={},this.store[a]=[b]);this.j++;return a};
SC.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=VC(this,a.keys.splice(0,1)[0]),c=[],d=0;d<b.length;d++)this.store[b[d]]&&a.sizeLimit&&(this.store[b[d]].length<=a.sizeLimit?(c.push.apply(c,g.la(this.store[b[d]])),delete this.store[b[d]]):c.push.apply(c,g.la(this.store[b[d]].splice(0,a.sizeLimit))));this.j-=c.length;(null==a?0:a.sizeLimit)&&c.length<(null==a?void 0:a.sizeLimit)&&(a.sizeLimit-=c.length,c.push.apply(c,g.la(this.smartExtractMatchingEntries(a))));
return c};
SC.prototype.extractMatchingEntries=function(a){a=VC(this,a);for(var b=[],c=0;c<a.length;c++)this.store[a[c]]&&(b.push.apply(b,g.la(this.store[a[c]])),delete this.store[a[c]]);this.j-=b.length;return b};
SC.prototype.getSequenceCount=function(a){a=VC(this,a);for(var b=0,c=0;c<a.length;c++){var d=void 0;b+=(null==(d=this.store[a[c]])?void 0:d.length)||0}return b};
SC.prototype.getSequenceCount=SC.prototype.getSequenceCount;SC.prototype.extractMatchingEntries=SC.prototype.extractMatchingEntries;SC.prototype.smartExtractMatchingEntries=SC.prototype.smartExtractMatchingEntries;SC.prototype.storePayload=SC.prototype.storePayload;var Hra=g.dy("initial_gel_batch_timeout",2E3),Gra=g.dy("gel_queue_timeout_max_ms",6E4),Qra=Math.pow(2,16)-1,$C=void 0,bD=new zra,aD=new zra,cD,lD=!0,jD=g.Ja.ytLoggingTransportTokensToCttTargetIds_||{};g.Ka("ytLoggingTransportTokensToCttTargetIds_",jD);var iD=g.Ja.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.Ka("ytLoggingTransportTokensToJspbCttTargetIds_",iD);var ZC={};var oD=g.Ja.ytLoggingGelSequenceIdObj_||{};g.Ka("ytLoggingGelSequenceIdObj_",oD);var qD,rD,Wra,Yra=g.fC,Vra=!1,tD=[];var asa=g.Ja.ytLoggingGelSequenceIdObj_||{};g.Ka("ytLoggingGelSequenceIdObj_",asa);var ksa=new Set,hsa=0,nsa=0,msa=0,isa=[],psa=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var A3={},tsa=(A3["b.f_"]=wsa,A3["j.s_"]=ysa,A3["r.s_"]=zsa,A3["e.h_"]=Asa,A3["i.s_"]=Bsa,A3),xsa={adPlacements:!0,playerAds:!0,playerResponse:{adPlacements:!0,playerAds:!0}};var Csa=!1;g.x(ED,g.E);ED.prototype.nM=function(){var a=this.j().WL("SLOT_TYPE_PLAYER_BYTES",1),b=this.Ta.get().rg(1).clientPlaybackNonce,c=!1;a=g.v(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="SLOT_TYPE_PLAYER_BYTES"===d.slotType&&d.slotEntryTrigger instanceof AC?d.slotEntryTrigger.er:void 0;e&&e===b&&(c&&DD("More than 1 preroll playerBytes slot detected",d),c=!0)}return c};
ED.prototype.Mj=function(a,b,c,d,e,f,h){var l=this,m=this.Ta.get().rg(1);m.Au?ZP(this.Ha.get()):(U0(this.Ca.get(),"h5_enable_unified_csi_preroll")&&pCa(this.Lc.get(),d),vC(this.ac.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return nra(l.Xd.get(),d,e,f,a,b,h,m,"")}),Y8a(this.iK),U0(this.Ca.get(),"fetch_bid_for_dclk_status")&&vsa("video loaded"))};
ED.prototype.qn=function(){};var FD=Date.now().toString();var B3={},TD=(B3.AD_MARKER="ytp-ad-progress",B3.CHAPTER_MARKER="ytp-chapter-marker",B3.TIME_MARKER="ytp-time-marker",B3);var m1a=RegExp("^https?://([^.]*\\.moatads\\.com/|e[0-9]+\\.yt\\.srs\\.doubleverify\\.com|pagead2\\.googlesyndication\\.com/pagead/gen_204\\?id=yt3p&sr=1&|pm\\.adsafeprotected\\.com/youtube|pm\\.test-adsafeprotected\\.com/youtube|youtube[0-9]+\\.moatpixel\\.com/)"),Hsa=RegExp("^http://0\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.l2gfe\\.[a-z0-9_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?/|^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://((?:uytfe\\.corp|dev-uytfe\\.corp|uytfe\\.sandbox)\\.google\\.com/|([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids|education)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(music|music-green-qa|music-release-qa|yt-music-green\\.corp)\\.youtube\\.com/|(tv|tv-green-qa|tv-release-qa)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/|m?web-ppg\\.corp\\.google\\.com/)"),
n1a=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),Osa=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|docs\\.google\\.com|drive\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),
Msa=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|prod\\.google\\.com|youtube\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),Jsa=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us)\\.googleusercontent)|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|(photos\\-image\\-(dev|qa)(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|video\\.google\\.com|youtube\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|s2\\.googleusercontent\\.com/s2/favicons\\?|yt[3-4]\\.ggpht\\.com/)"),
o1a=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),Ksa=RegExp("^https?://(googleads\\.g\\.doubleclick\\.net/(aclk|pagead/conversion)|www\\.google\\.com/(aclk|pagead/conversion)|www\\.googleadservices\\.com/(aclk|pagead/(aclk|conversion))|www\\.youtube\\.com/pagead/conversion)"),Isa=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us)\\.googleusercontent)|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|(photos\\-image\\-(dev|qa)(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|googlevideo\\.com|prod\\.google\\.com|lh3\\.photos\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"),
xxa=RegExp("^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|2mdn\\.net|googlesyndication\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|googleads\\.g\\.doubleclick\\.net|prod\\.google\\.com|static\\.doubleclick\\.net|static\\.googleadsserving\\.cn|studioapi\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtube\\-nocookie\\.com|youtubekids\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com)[.]?(:[0-9]+)?/|lightbox-(demos|builder)\\.appspot\\.com/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/ytplayer)"),
wxa=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-d\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-f\\.appspot\\.com(/|$)|^https://one\\.google\\.com(/|$)|^https://www\\.google\\.com/culturalinstitute/manage/.*$|^https://www\\.gstatic\\.com/aog_howto|^https://www\\.gstatic\\.com/narrative_cast_receiver/news|^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleads\\.g\\.doubleclick\\.net|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|photos\\.google\\.com|get\\.google\\.com|currents\\.google\\.com|books\\.googleusercontent\\.com|play\\-books\\-autopush\\-sandbox\\.googleusercontent\\.com|play\\-books\\-canary\\-sandbox\\.googleusercontent\\.com|play\\-books\\-internal\\-sandbox\\.googleusercontent\\.com|play\\-books\\-staging\\-sandbox\\.googleusercontent\\.com|blogger\\.com|mail\\.google\\.com|survey\\.g\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|yt\\-web\\-embedded\\-player\\.appspot\\.com|youtubekids\\.com|vevo\\.com|chat\\.google\\.com|meet\\.google\\.com|stadia\\.google\\.com|artsandculture\\.google\\.com)[.]?(:[0-9]+)?(/|$)|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|(www\\.|encrypted\\.)?google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/(search|webhp)\\?|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|lightbox-(demos|builder)\\.appspot\\.com/|s0\\.2mdn\\.net/instream/html5/native/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris)"),
ocb=RegExp("^(https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://stadia\\.google\\.com|https://one\\.google\\.com|https://artsandculture\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids|youtubeeducation)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|play-books-(autopush|canary|internal|staging)-sandbox)\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");g.UD.prototype.getId=function(){return this.id};
g.UD.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+Ssa(this.start)+", "+Ssa(this.end)+"]"};
g.UD.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a===this.end&&this.start===this.end)&&(null==b||a<b&&b<=this.end)};
var Rsa=1;g.UD.prototype.getId=g.UD.prototype.getId;g.x(YD,g.UD);YD.prototype.Hl=function(){return this.end-this.start};g.Ya(g.aE,g.E);g.aE.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.oi.subscribe(a,b,c)};
g.aE.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.oi.unsubscribe(a,b,c)};
g.aE.prototype.Fh=function(a){return this.isDisposed()?!1:this.oi.Fh(a)};
g.aE.prototype.ma=function(a,b){return this.isDisposed()?!1:this.oi.ma.apply(this.oi,arguments)};var C3={},ata=(C3.auto_search="LATENCY_ACTION_AUTO_SEARCH",C3.ad_to_ad="LATENCY_ACTION_AD_TO_AD",C3.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",C3["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",C3.app_startup="LATENCY_ACTION_APP_STARTUP",C3["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",C3["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",C3["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",C3["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",
C3["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",C3["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",C3["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",C3["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",C3["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",C3["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",C3["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",C3["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",
C3["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",C3["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",C3.browse="LATENCY_ACTION_BROWSE",C3.cast_splash="LATENCY_ACTION_CAST_SPLASH",C3.channels="LATENCY_ACTION_CHANNELS",C3.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",C3["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",C3["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",C3["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",
C3["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",C3["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",C3["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",C3["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",C3["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",C3["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",C3["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",C3["channel.translations"]=
"LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",C3["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",C3["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",C3.chips="LATENCY_ACTION_CHIPS",C3["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",C3["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",C3["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",C3.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",C3.embed="LATENCY_ACTION_EMBED",
C3.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",C3.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",C3.explore="LATENCY_ACTION_EXPLORE",C3.home="LATENCY_ACTION_HOME",C3.library="LATENCY_ACTION_LIBRARY",C3.live="LATENCY_ACTION_LIVE",C3.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",C3.onboarding="LATENCY_ACTION_ONBOARDING",C3.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",C3["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",C3["owner.analytics"]=
"LATENCY_ACTION_CREATOR_CMS_ANALYTICS",C3["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",C3["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",C3["owner.asset_groups"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",C3["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",C3["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",C3["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",C3["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",C3["owner.claims.manual"]=
"LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",C3["owner.delivery"]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",C3["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",C3["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",C3["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",C3["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",C3["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",C3["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",C3["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",
C3.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",C3.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",C3.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",C3.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",C3["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",C3["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",C3.prebuffer="LATENCY_ACTION_PREBUFFER",C3.prefetch="LATENCY_ACTION_PREFETCH",C3.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",
C3.profile_switcher="LATENCY_ACTION_LOGIN",C3.reel_watch="LATENCY_ACTION_REEL_WATCH",C3.results="LATENCY_ACTION_RESULTS",C3["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",C3.search_ui="LATENCY_ACTION_SEARCH_UI",C3.search_suggest="LATENCY_ACTION_SUGGEST",C3.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",C3.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",C3.seek="LATENCY_ACTION_PLAYER_SEEK",C3.settings="LATENCY_ACTION_SETTINGS",C3.store="LATENCY_ACTION_STORE",C3.tenx="LATENCY_ACTION_TENX",
C3.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",C3.watch="LATENCY_ACTION_WATCH",C3.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",C3["watch,watch7"]="LATENCY_ACTION_WATCH",C3["watch,watch7_html5"]="LATENCY_ACTION_WATCH",C3["watch,watch7ad"]="LATENCY_ACTION_WATCH",C3["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",C3.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",C3.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",C3["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",C3["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",
C3["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",C3["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",C3["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",C3["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",C3["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",C3["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",C3["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",C3["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",
C3["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",C3["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",C3["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",C3.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",C3.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",C3.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",C3.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",C3.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",
C3),D3={},bta=(D3.ad_allowed="adTypesAllowed",D3.yt_abt="adBreakType",D3.ad_cpn="adClientPlaybackNonce",D3.ad_docid="adVideoId",D3.yt_ad_an="adNetworks",D3.ad_at="adType",D3.aida="appInstallDataAgeMs",D3.browse_id="browseId",D3.p="httpProtocol",D3.t="transportProtocol",D3.cs="commandSource",D3.cpn="clientPlaybackNonce",D3.ccs="creatorInfo.creatorCanaryState",D3.ctop="creatorInfo.topEntityType",D3.csn="clientScreenNonce",D3.docid="videoId",D3.GetHome_rid="requestIds",D3.GetSearch_rid="requestIds",
D3.GetPlayer_rid="requestIds",D3.GetWatchNext_rid="requestIds",D3.GetBrowse_rid="requestIds",D3.GetLibrary_rid="requestIds",D3.is_continuation="isContinuation",D3.is_nav="isNavigation",D3.b_p="kabukiInfo.browseParams",D3.is_prefetch="kabukiInfo.isPrefetch",D3.is_secondary_nav="kabukiInfo.isSecondaryNav",D3.nav_type="kabukiInfo.navigationType",D3.prev_browse_id="kabukiInfo.prevBrowseId",D3.query_source="kabukiInfo.querySource",D3.voz_type="kabukiInfo.vozType",D3.yt_lt="loadType",D3.mver="creatorInfo.measurementVersion",
D3.yt_ad="isMonetized",D3.nr="webInfo.navigationReason",D3.nrsu="navigationRequestedSameUrl",D3.pnt="performanceNavigationTiming",D3.prt="playbackRequiresTap",D3.plt="playerInfo.playbackType",D3.pis="playerInfo.playerInitializedState",D3.paused="playerInfo.isPausedOnLoad",D3.yt_pt="playerType",D3.fmt="playerInfo.itag",D3.yt_pl="watchInfo.isPlaylist",D3.yt_pre="playerInfo.preloadType",D3.yt_ad_pr="prerollAllowed",D3.pa="previousAction",D3.yt_red="isRedSubscriber",D3.rce="mwebInfo.responseContentEncoding",
D3.rc="resourceInfo.resourceCache",D3.scrh="screenHeight",D3.scrw="screenWidth",D3.st="serverTimeMs",D3.ssdm="shellStartupDurationMs",D3.br_trs="tvInfo.bedrockTriggerState",D3.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",D3.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",D3.label="tvInfo.label",D3.is_mdx="tvInfo.isMdx",D3.preloaded="tvInfo.isPreloaded",D3.aac_type="tvInfo.authAccessCredentialType",D3.upg_player_vis="playerInfo.visibilityState",D3.query="unpluggedInfo.query",D3.upg_chip_ids_string=
"unpluggedInfo.upgChipIdsString",D3.yt_vst="videoStreamType",D3.vph="viewportHeight",D3.vpw="viewportWidth",D3.yt_vis="isVisible",D3.rcl="mwebInfo.responseContentLength",D3.GetSettings_rid="requestIds",D3.GetTrending_rid="requestIds",D3.GetMusicSearchSuggestions_rid="requestIds",D3.REQUEST_ID="requestIds",D3),cta="isContinuation isNavigation kabukiInfo.earlyBrowseRequestInfo.adopted kabukiInfo.isPrefetch kabukiInfo.isSecondaryNav isMonetized navigationRequestedSameUrl performanceNavigationTiming playerInfo.isPausedOnLoad prerollAllowed isRedSubscriber tvInfo.isMdx tvInfo.isPreloaded isVisible watchInfo.isPlaylist playbackRequiresTap".split(" "),
E3={},dta=(E3.ccs="CANARY_STATE_",E3.mver="MEASUREMENT_VERSION_",E3.pis="PLAYER_INITIALIZED_STATE_",E3.yt_pt="LATENCY_PLAYER_",E3.pa="LATENCY_ACTION_",E3.ctop="TOP_ENTITY_TYPE_",E3.yt_vst="VIDEO_STREAM_TYPE_",E3),eta="all_vc ap aq c cbr cbrand cbrver cmodel cos cosver cplatform ctheme cver ei l_an l_mm plid srt yt_fss yt_li vpst vpni2 vpil2 icrc icrt pa GetAccountOverview_rid GetHistory_rid cmt d_vpct d_vpnfi d_vpni nsru pc pfa pfeh pftr pnc prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis ytu_pvis yt_ref yt_sts tds".split(" ");var U={LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING:179,LATENCY_ACTION_KIDS_PROFILE_SWITCHER:90,LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER:100,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC:46,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR:37,LATENCY_ACTION_SPINNER_DISPLAYED:14,LATENCY_ACTION_PLAYABILITY_CHECK:10,LATENCY_ACTION_PROCESS:9,LATENCY_ACTION_APP_STARTUP:5,LATENCY_ACTION_MINI_APP_PLAY:249,LATENCY_ACTION_DMA_CONSENT_FLOW:247,LATENCY_ACTION_GEL_FETCH:248,LATENCY_ACTION_GEL_JSPB_SERIALIZE:243,
LATENCY_ACTION_GEL_COMPRESSION:215,LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE:204,LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC:203,LATENCY_ACTION_COMMERCE_TRANSACTION:184,LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC:173,LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC:172,LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC:171,LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC:170,LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC:169,LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC:168,LATENCY_ACTION_GET_OFFERS_RPC:167,LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC:166,
LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC:165,LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC:164,LATENCY_ACTION_GET_OFFER_DETAILS_RPC:163,LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC:162,LATENCY_ACTION_GET_TIP_MODULE_RPC:161,LATENCY_ACTION_HANDLE_TRANSACTION_RPC:160,LATENCY_ACTION_COMPLETE_TRANSACTION_RPC:159,LATENCY_ACTION_GET_CART_RPC:158,LATENCY_ACTION_THUMBNAIL_FETCH:156,LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK:154,LATENCY_ACTION_SHARE_VIDEO:153,LATENCY_ACTION_AD_TO_VIDEO_INT:152,LATENCY_ACTION_ABANDONED_BROWSE:151,
LATENCY_ACTION_PLAYER_ROTATION:150,LATENCY_ACTION_GENERIC_WEB_VIEW:183,LATENCY_ACTION_SHOPPING_IN_APP:124,LATENCY_ACTION_PLAYER_ATTESTATION:121,LATENCY_ACTION_PLAYER_SEEK:119,LATENCY_ACTION_SUPER_STICKER_BUY_FLOW:114,LATENCY_ACTION_DOWNLOADS_DATA_ACCESS:180,LATENCY_ACTION_BLOCKS_PERFORMANCE:148,LATENCY_ACTION_ASSISTANT_QUERY:138,LATENCY_ACTION_ASSISTANT_SETTINGS:137,LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF:129,LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF:128,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN:244,
LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE:127,LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION:123,LATENCY_ACTION_NETWORKLESS_PERFORMANCE:122,LATENCY_ACTION_DOWNLOADS_EXPANSION:133,LATENCY_ACTION_ENTITY_TRANSFORM:131,LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER:96,LATENCY_ACTION_EMBEDS_SET_VIDEO:95,LATENCY_ACTION_SETTINGS:93,LATENCY_ACTION_ABANDONED_STARTUP:81,LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY:80,LATENCY_ACTION_MEDIA_BROWSER_SEARCH:79,LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE:78,LATENCY_ACTION_WHO_IS_WATCHING:77,
LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH:76,LATENCY_ACTION_LITE_SWITCH_ACCOUNT:73,LATENCY_ACTION_ELEMENTS_PERFORMANCE:70,LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION:69,LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION:65,LATENCY_ACTION_OFFLINE_STORE_START:61,LATENCY_ACTION_REEL_EDITOR:58,LATENCY_ACTION_CHANNEL_SUBSCRIBE:56,LATENCY_ACTION_CHANNEL_PREVIEW:55,LATENCY_ACTION_PREFETCH:52,LATENCY_ACTION_ABANDONED_WATCH:45,LATENCY_ACTION_LOAD_COMMENT_REPLIES:26,LATENCY_ACTION_LOAD_COMMENTS:25,LATENCY_ACTION_EDIT_COMMENT:24,
LATENCY_ACTION_NEW_COMMENT:23,LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING:19,LATENCY_ACTION_EMBED:18,LATENCY_ACTION_MDX_LAUNCH:15,LATENCY_ACTION_RESOLVE_URL:13,LATENCY_ACTION_CAST_SPLASH:149,LATENCY_ACTION_MDX_CONNECT_TO_SESSION:190,LATENCY_ACTION_MDX_STREAM_TRANSFER:178,LATENCY_ACTION_MDX_CAST:120,LATENCY_ACTION_MDX_COMMAND:12,LATENCY_ACTION_MOBILE_LIVE_NAV_MDE:231,LATENCY_ACTION_REEL_SELECT_SEGMENT:136,LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_SHORTS_LOAD_PROJECT:234,LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING:229,
LATENCY_ACTION_EDIT_AUDIO_GEN:182,LATENCY_ACTION_UPLOAD_AUDIO_MIXER:147,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING:157,LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING:146,LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK:130,LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD:125,LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD:240,LATENCY_ACTION_SHORTS_VIDEO_INGESTION:155,LATENCY_ACTION_SHORTS_GALLERY:107,LATENCY_ACTION_SHORTS_TRIM:105,LATENCY_ACTION_SHORTS_EDIT:104,LATENCY_ACTION_SHORTS_CAMERA:103,LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT:239,
LATENCY_ACTION_CREATION_MODES_MODE_SWITCH:236,LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT:235,LATENCY_ACTION_SWITCH_CAMERA:246,LATENCY_ACTION_OPEN_CAMERA:245,LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME:242,LATENCY_ACTION_MEDIA_ENGINE_EXPORT:241,LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA:233,LATENCY_ACTION_PRODUCER_EXPORT_PROJECT:193,LATENCY_ACTION_PRODUCER_EDITOR:192,LATENCY_ACTION_PARENT_TOOLS_DASHBOARD:102,LATENCY_ACTION_PARENT_TOOLS_COLLECTION:101,LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL:238,
LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL:237,LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS:116,LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS:115,LATENCY_ACTION_MUSIC_ALBUM_DETAIL:72,LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL:71,LATENCY_ACTION_STORE:175,LATENCY_ACTION_CHIPS:68,LATENCY_ACTION_SEARCH_ZERO_STATE:67,LATENCY_ACTION_LIVE_PAGINATION:117,LATENCY_ACTION_LIVE:20,LATENCY_ACTION_PREBUFFER:40,LATENCY_ACTION_TENX:39,LATENCY_ACTION_KIDS_PROFILE_SETTINGS:94,LATENCY_ACTION_KIDS_WATCH_IT_AGAIN:92,LATENCY_ACTION_KIDS_SECRET_CODE:91,
LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS:89,LATENCY_ACTION_KIDS_ONBOARDING:88,LATENCY_ACTION_KIDS_VOICE_SEARCH:82,LATENCY_ACTION_KIDS_CURATED_COLLECTION:62,LATENCY_ACTION_KIDS_LIBRARY:53,LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS:38,LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT:219,LATENCY_ACTION_CREATOR_VIDEO_POLICY:217,LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION:74,LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING:141,LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS:142,LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC:51,
LATENCY_ACTION_CREATOR_VIDEO_EDITOR:50,LATENCY_ACTION_CREATOR_VIDEO_EDIT:36,LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT:218,LATENCY_ACTION_CREATOR_VIDEO_COMMENTS:34,LATENCY_ACTION_CREATOR_VIDEO_CLAIMS:216,LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS:33,LATENCY_ACTION_CREATOR_SONG_ANALYTICS:176,LATENCY_ACTION_CREATOR_PROMOTION_LIST:186,LATENCY_ACTION_CREATOR_PROMOTION_EDIT:185,LATENCY_ACTION_CREATOR_POST_LIST:112,LATENCY_ACTION_CREATOR_POST_EDIT:110,LATENCY_ACTION_CREATOR_POST_COMMENTS:111,LATENCY_ACTION_CREATOR_LIVE_STREAMING:108,
LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT:174,LATENCY_ACTION_CREATOR_DIALOG_UPLOADS:86,LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES:87,LATENCY_ACTION_CREATOR_CMS_VIDEOS:202,LATENCY_ACTION_CREATOR_CMS_REPORTS:201,LATENCY_ACTION_CREATOR_CMS_RELEASES:226,LATENCY_ACTION_CREATOR_CMS_POLICIES:225,LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC:224,LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING:200,LATENCY_ACTION_CREATOR_CMS_LICENSES:223,LATENCY_ACTION_CREATOR_CMS_ISSUES:191,LATENCY_ACTION_CREATOR_CMS_DASHBOARD:199,
LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY:198,LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS:197,LATENCY_ACTION_CREATOR_CMS_CHANNELS:196,LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS:222,LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS:214,LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES:209,LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY:208,LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP:207,LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA:205,LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES:212,LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES:206,
LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS:221,LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS:210,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION:213,LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS:211,LATENCY_ACTION_CREATOR_CMS_ASSETS:195,LATENCY_ACTION_CREATOR_CMS_ART_TRACKS:220,LATENCY_ACTION_CREATOR_CMS_ANALYTICS:194,LATENCY_ACTION_CREATOR_CMS_ALLOWLIST:227,LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS:32,LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS:48,LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS:139,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT:177,
LATENCY_ACTION_CREATOR_CHANNEL_MUSIC:99,LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION:43,LATENCY_ACTION_CREATOR_CHANNEL_EDITING:113,LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD:49,LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT:44,LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS:66,LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS:31,LATENCY_ACTION_CREATOR_ARTIST_PROFILE:85,LATENCY_ACTION_CREATOR_ARTIST_CONCERTS:84,LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS:83,LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE:140,LATENCY_ACTION_EXPERIMENTAL_WATCH_UI:181,
LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS:228,LATENCY_ACTION_STORYBOARD_THUMBNAILS:118,LATENCY_ACTION_SEARCH_THUMBNAILS:59,LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD:54,LATENCY_ACTION_VOICE_ASSISTANT:47,LATENCY_ACTION_SEARCH_UI:35,LATENCY_ACTION_SUGGEST:30,LATENCY_ACTION_AUTO_SEARCH:126,LATENCY_ACTION_DOWNLOADS:98,LATENCY_ACTION_EXPLORE:75,LATENCY_ACTION_VIDEO_LIST:63,LATENCY_ACTION_HOME_RESUME:60,LATENCY_ACTION_SUBSCRIPTIONS_LIST:57,LATENCY_ACTION_THUMBNAIL_LOAD:42,LATENCY_ACTION_FIRST_THUMBNAIL_LOAD:29,
LATENCY_ACTION_SUBSCRIPTIONS_FEED:109,LATENCY_ACTION_SUBSCRIPTIONS:28,LATENCY_ACTION_TRENDING:27,LATENCY_ACTION_LIBRARY:21,LATENCY_ACTION_VIDEO_THUMBNAIL:8,LATENCY_ACTION_SHOW_MORE:7,LATENCY_ACTION_VIDEO_PREVIEW:6,LATENCY_ACTION_AD_TO_AD:22,LATENCY_ACTION_VIDEO_TO_AD:17,LATENCY_ACTION_AD_TO_VIDEO:16,LATENCY_ACTION_DIRECT_PLAYBACK:132,LATENCY_ACTION_PREBUFFER_VIDEO:144,LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_STARTUP:106,LATENCY_ACTION_INLINE_TO_WATCH:232,LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH:230,
LATENCY_ACTION_ONBOARDING:135,LATENCY_ACTION_LOGIN:97,LATENCY_ACTION_REEL_WATCH:41,LATENCY_ACTION_WATCH:3,LATENCY_ACTION_RESULTS:2,LATENCY_ACTION_CHANNELS:4,LATENCY_ACTION_HOME:1,LATENCY_ACTION_BROWSE:11,LATENCY_ACTION_USER_ACTION:189,LATENCY_ACTION_INFRASTRUCTURE:188,LATENCY_ACTION_PAGE_NAVIGATION:187,LATENCY_ACTION_UNKNOWN:0};U[U.LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING";U[U.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER";
U[U.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER";U[U.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";U[U.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR";U[U.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";U[U.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";U[U.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS";
U[U.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";U[U.LATENCY_ACTION_MINI_APP_PLAY]="LATENCY_ACTION_MINI_APP_PLAY";U[U.LATENCY_ACTION_DMA_CONSENT_FLOW]="LATENCY_ACTION_DMA_CONSENT_FLOW";U[U.LATENCY_ACTION_GEL_FETCH]="LATENCY_ACTION_GEL_FETCH";U[U.LATENCY_ACTION_GEL_JSPB_SERIALIZE]="LATENCY_ACTION_GEL_JSPB_SERIALIZE";U[U.LATENCY_ACTION_GEL_COMPRESSION]="LATENCY_ACTION_GEL_COMPRESSION";U[U.LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE]="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE";
U[U.LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC]="LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC";U[U.LATENCY_ACTION_COMMERCE_TRANSACTION]="LATENCY_ACTION_COMMERCE_TRANSACTION";U[U.LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC]="LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC";U[U.LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC]="LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC";U[U.LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC]="LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC";
U[U.LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC]="LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC";U[U.LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC]="LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC";U[U.LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC]="LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC";U[U.LATENCY_ACTION_GET_OFFERS_RPC]="LATENCY_ACTION_GET_OFFERS_RPC";U[U.LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC";U[U.LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC";
U[U.LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC]="LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC";U[U.LATENCY_ACTION_GET_OFFER_DETAILS_RPC]="LATENCY_ACTION_GET_OFFER_DETAILS_RPC";U[U.LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC]="LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC";U[U.LATENCY_ACTION_GET_TIP_MODULE_RPC]="LATENCY_ACTION_GET_TIP_MODULE_RPC";U[U.LATENCY_ACTION_HANDLE_TRANSACTION_RPC]="LATENCY_ACTION_HANDLE_TRANSACTION_RPC";
U[U.LATENCY_ACTION_COMPLETE_TRANSACTION_RPC]="LATENCY_ACTION_COMPLETE_TRANSACTION_RPC";U[U.LATENCY_ACTION_GET_CART_RPC]="LATENCY_ACTION_GET_CART_RPC";U[U.LATENCY_ACTION_THUMBNAIL_FETCH]="LATENCY_ACTION_THUMBNAIL_FETCH";U[U.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";U[U.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";U[U.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";U[U.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";
U[U.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";U[U.LATENCY_ACTION_GENERIC_WEB_VIEW]="LATENCY_ACTION_GENERIC_WEB_VIEW";U[U.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP";U[U.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";U[U.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";U[U.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";U[U.LATENCY_ACTION_DOWNLOADS_DATA_ACCESS]="LATENCY_ACTION_DOWNLOADS_DATA_ACCESS";
U[U.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";U[U.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY";U[U.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";U[U.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF";U[U.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";U[U.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN";
U[U.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";U[U.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION";U[U.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";U[U.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";U[U.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM";U[U.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";
U[U.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";U[U.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";U[U.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP";U[U.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";U[U.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH";U[U.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";U[U.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";
U[U.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";U[U.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT";U[U.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";U[U.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION";U[U.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";U[U.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";
U[U.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";U[U.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE";U[U.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";U[U.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH";U[U.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH";U[U.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";U[U.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";
U[U.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";U[U.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT";U[U.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";U[U.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED";U[U.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH";U[U.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";U[U.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";U[U.LATENCY_ACTION_MDX_CONNECT_TO_SESSION]="LATENCY_ACTION_MDX_CONNECT_TO_SESSION";
U[U.LATENCY_ACTION_MDX_STREAM_TRANSFER]="LATENCY_ACTION_MDX_STREAM_TRANSFER";U[U.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";U[U.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";U[U.LATENCY_ACTION_MOBILE_LIVE_NAV_MDE]="LATENCY_ACTION_MOBILE_LIVE_NAV_MDE";U[U.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";U[U.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS";U[U.LATENCY_ACTION_SHORTS_LOAD_PROJECT]="LATENCY_ACTION_SHORTS_LOAD_PROJECT";
U[U.LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING]="LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING";U[U.LATENCY_ACTION_EDIT_AUDIO_GEN]="LATENCY_ACTION_EDIT_AUDIO_GEN";U[U.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER";U[U.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING";U[U.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";U[U.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";
U[U.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD";U[U.LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD]="LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD";U[U.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";U[U.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";U[U.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM";U[U.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";U[U.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";
U[U.LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT";U[U.LATENCY_ACTION_CREATION_MODES_MODE_SWITCH]="LATENCY_ACTION_CREATION_MODES_MODE_SWITCH";U[U.LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT";U[U.LATENCY_ACTION_SWITCH_CAMERA]="LATENCY_ACTION_SWITCH_CAMERA";U[U.LATENCY_ACTION_OPEN_CAMERA]="LATENCY_ACTION_OPEN_CAMERA";U[U.LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME]="LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME";
U[U.LATENCY_ACTION_MEDIA_ENGINE_EXPORT]="LATENCY_ACTION_MEDIA_ENGINE_EXPORT";U[U.LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA]="LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA";U[U.LATENCY_ACTION_PRODUCER_EXPORT_PROJECT]="LATENCY_ACTION_PRODUCER_EXPORT_PROJECT";U[U.LATENCY_ACTION_PRODUCER_EDITOR]="LATENCY_ACTION_PRODUCER_EDITOR";U[U.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD";U[U.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";
U[U.LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL";U[U.LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL";U[U.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";U[U.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS";U[U.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";U[U.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";
U[U.LATENCY_ACTION_STORE]="LATENCY_ACTION_STORE";U[U.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";U[U.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE";U[U.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";U[U.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";U[U.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";U[U.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX";U[U.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";
U[U.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";U[U.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";U[U.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS";U[U.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";U[U.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH";U[U.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";
U[U.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";U[U.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";U[U.LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT";U[U.LATENCY_ACTION_CREATOR_VIDEO_POLICY]="LATENCY_ACTION_CREATOR_VIDEO_POLICY";U[U.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";U[U.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";
U[U.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS";U[U.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC";U[U.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";U[U.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";U[U.LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT";U[U.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";
U[U.LATENCY_ACTION_CREATOR_VIDEO_CLAIMS]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS";U[U.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_SONG_ANALYTICS]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_PROMOTION_LIST]="LATENCY_ACTION_CREATOR_PROMOTION_LIST";U[U.LATENCY_ACTION_CREATOR_PROMOTION_EDIT]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT";U[U.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST";
U[U.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";U[U.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";U[U.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";U[U.LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT";U[U.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";U[U.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES";
U[U.LATENCY_ACTION_CREATOR_CMS_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_VIDEOS";U[U.LATENCY_ACTION_CREATOR_CMS_REPORTS]="LATENCY_ACTION_CREATOR_CMS_REPORTS";U[U.LATENCY_ACTION_CREATOR_CMS_RELEASES]="LATENCY_ACTION_CREATOR_CMS_RELEASES";U[U.LATENCY_ACTION_CREATOR_CMS_POLICIES]="LATENCY_ACTION_CREATOR_CMS_POLICIES";U[U.LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC";U[U.LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING";
U[U.LATENCY_ACTION_CREATOR_CMS_LICENSES]="LATENCY_ACTION_CREATOR_CMS_LICENSES";U[U.LATENCY_ACTION_CREATOR_CMS_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ISSUES";U[U.LATENCY_ACTION_CREATOR_CMS_DASHBOARD]="LATENCY_ACTION_CREATOR_CMS_DASHBOARD";U[U.LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY";U[U.LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS";U[U.LATENCY_ACTION_CREATOR_CMS_CHANNELS]="LATENCY_ACTION_CREATOR_CMS_CHANNELS";
U[U.LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP";
U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION";
U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS";U[U.LATENCY_ACTION_CREATOR_CMS_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSETS";U[U.LATENCY_ACTION_CREATOR_CMS_ART_TRACKS]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS";U[U.LATENCY_ACTION_CREATOR_CMS_ANALYTICS]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_CMS_ALLOWLIST]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST";U[U.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS";
U[U.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION";
U[U.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";U[U.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD";U[U.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";U[U.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE";
U[U.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";U[U.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";U[U.LATENCY_ACTION_EXPERIMENTAL_WATCH_UI]="LATENCY_ACTION_EXPERIMENTAL_WATCH_UI";U[U.LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS]="LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS";U[U.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";
U[U.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";U[U.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD";U[U.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";U[U.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";U[U.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST";U[U.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";U[U.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";U[U.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";
U[U.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST";U[U.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME";U[U.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";U[U.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";U[U.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD";U[U.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";U[U.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";
U[U.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";U[U.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";U[U.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL";U[U.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";U[U.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";U[U.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";U[U.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";U[U.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";
U[U.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";U[U.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO";U[U.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";U[U.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";U[U.LATENCY_ACTION_INLINE_TO_WATCH]="LATENCY_ACTION_INLINE_TO_WATCH";U[U.LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH]="LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH";U[U.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";U[U.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN";
U[U.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";U[U.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";U[U.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";U[U.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";U[U.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME";U[U.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";U[U.LATENCY_ACTION_USER_ACTION]="LATENCY_ACTION_USER_ACTION";U[U.LATENCY_ACTION_INFRASTRUCTURE]="LATENCY_ACTION_INFRASTRUCTURE";U[U.LATENCY_ACTION_PAGE_NAVIGATION]="LATENCY_ACTION_PAGE_NAVIGATION";
U[U.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";var IE={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};IE[IE.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";IE[IE.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";IE[IE.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";
var JE={CONN_INVALID:31,CONN_CELLULAR_5G_NSA:12,CONN_CELLULAR_5G_SA:11,CONN_WIFI_METERED:10,CONN_CELLULAR_5G:9,CONN_DISCO:8,CONN_CELLULAR_UNKNOWN:7,CONN_CELLULAR_4G:6,CONN_CELLULAR_3G:5,CONN_CELLULAR_2G:4,CONN_WIFI:3,CONN_NONE:2,CONN_UNKNOWN:1,CONN_DEFAULT:0};JE[JE.CONN_INVALID]="CONN_INVALID";JE[JE.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";JE[JE.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";JE[JE.CONN_WIFI_METERED]="CONN_WIFI_METERED";JE[JE.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";
JE[JE.CONN_DISCO]="CONN_DISCO";JE[JE.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";JE[JE.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";JE[JE.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";JE[JE.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";JE[JE.CONN_WIFI]="CONN_WIFI";JE[JE.CONN_NONE]="CONN_NONE";JE[JE.CONN_UNKNOWN]="CONN_UNKNOWN";JE[JE.CONN_DEFAULT]="CONN_DEFAULT";
var KE={DETAILED_NETWORK_TYPE_NR_NSA:126,DETAILED_NETWORK_TYPE_NR_SA:125,DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED:124,DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT:123,DETAILED_NETWORK_TYPE_DISCONNECTED:122,DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN:121,DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN:120,DETAILED_NETWORK_TYPE_WIMAX:119,DETAILED_NETWORK_TYPE_ETHERNET:118,DETAILED_NETWORK_TYPE_BLUETOOTH:117,DETAILED_NETWORK_TYPE_WIFI:116,DETAILED_NETWORK_TYPE_LTE:115,DETAILED_NETWORK_TYPE_HSPAP:114,DETAILED_NETWORK_TYPE_EHRPD:113,
DETAILED_NETWORK_TYPE_EVDO_B:112,DETAILED_NETWORK_TYPE_UMTS:111,DETAILED_NETWORK_TYPE_IDEN:110,DETAILED_NETWORK_TYPE_HSUPA:109,DETAILED_NETWORK_TYPE_HSPA:108,DETAILED_NETWORK_TYPE_HSDPA:107,DETAILED_NETWORK_TYPE_EVDO_A:106,DETAILED_NETWORK_TYPE_EVDO_0:105,DETAILED_NETWORK_TYPE_CDMA:104,DETAILED_NETWORK_TYPE_1_X_RTT:103,DETAILED_NETWORK_TYPE_GPRS:102,DETAILED_NETWORK_TYPE_EDGE:101,DETAILED_NETWORK_TYPE_UNKNOWN:0};KE[KE.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA";
KE[KE.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";KE[KE.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";KE[KE.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";KE[KE.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";KE[KE.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";KE[KE.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN";
KE[KE.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";KE[KE.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";KE[KE.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";KE[KE.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";KE[KE.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";KE[KE.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";KE[KE.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";KE[KE.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B";
KE[KE.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";KE[KE.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";KE[KE.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";KE[KE.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";KE[KE.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";KE[KE.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";KE[KE.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";KE[KE.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA";
KE[KE.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";KE[KE.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";KE[KE.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";KE[KE.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var LE={LATENCY_PLAYER_RTSP:7,LATENCY_PLAYER_HTML5_INLINE:6,LATENCY_PLAYER_HTML5_FULLSCREEN:5,LATENCY_PLAYER_HTML5:4,LATENCY_PLAYER_FRAMEWORK:3,LATENCY_PLAYER_FLASH:2,LATENCY_PLAYER_EXO:1,LATENCY_PLAYER_UNKNOWN:0};
LE[LE.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";LE[LE.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";LE[LE.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";LE[LE.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";LE[LE.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";LE[LE.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";LE[LE.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";LE[LE.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN";
var ME={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};ME[ME.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";ME[ME.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";ME[ME.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";ME[ME.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var NE={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0};
NE[NE.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";NE[NE.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var OE={LIVE_STREAM_MODE_WINDOW:5,LIVE_STREAM_MODE_POST:4,LIVE_STREAM_MODE_LP:3,LIVE_STREAM_MODE_LIVE:2,LIVE_STREAM_MODE_DVR:1,LIVE_STREAM_MODE_UNKNOWN:0};OE[OE.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";OE[OE.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";OE[OE.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP";
OE[OE.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";OE[OE.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";OE[OE.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var PE={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};PE[PE.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";PE[PE.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";PE[PE.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";PE[PE.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED";
var QE={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};QE[QE.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";QE[QE.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";QE[QE.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var RE={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};RE[RE.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN";
RE[RE.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";RE[RE.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var rta="actionVisualElement spinnerInfo cacheAttempts resourceInfo playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo webViewInfo prefetchInfo accelerationSession commerceInfo inlineToWatchInfo mediaEngineMetadata miniAppInfo webInfo tvInfo kabukiInfo mwebInfo musicInfo transcodingContext creationModesContext cameraMetadata producerMediaAssetMetadata".split(" ");g.x(pE,EB);var Cta=new FB("aft-recorded",pE);var sE=g.Ja.ytLoggingLatencyUsageStats_||{};g.Ka("ytLoggingLatencyUsageStats_",sE);qE.prototype.tick=function(a,b,c,d){tE(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.cy("web_csi_via_jspb")?(d=new Bx,L(d,1,a),L(d,2,b),a=new Vx,Dh(a,Bx,5,xD,d),wD(a,c)):g.nA("latencyActionTicked",{tickName:a,clientActionNonce:b},c))};
qE.prototype.info=function(a,b,c){var d=Object.keys(a).join("");tE(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.nA("latencyActionInfo",a,{cttAuthInfo:c}))};
qE.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e<a.toJSON().length;e++)void 0!==a.toJSON()[e]&&(d=0===e?d.concat(""+e):d.concat("_"+e));tE(this,"info_"+d+"_"+b)||(L(a,2,b),b={cttAuthInfo:c},c=new Vx,Dh(c,zx,7,xD,a),wD(c,b))};
qE.prototype.span=function(a,b,c){var d=Object.keys(a).join("");tE(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.nA("latencyActionSpan",a,{cttAuthInfo:c}))};var F3=window,uE=F3.performance||F3.mozPerformance||F3.msPerformance||F3.webkitPerformance||new gta;var G3=g.Ja.ytLoggingDocDocumentNonce_;G3||(G3=g.HD(16),g.Ka("ytLoggingDocDocumentNonce_",G3));var pta=G3;var mta={sZ:0,tla:1,nma:2,JIa:3,Boa:4,j4a:5,NJa:6,XSa:7,wRa:8,vSa:9,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS",9:"RICH_GRID_WATCH"};var ita=1;xE.prototype.getAsJson=function(){var a={};void 0!==this.j.trackingParams?a.trackingParams=this.j.trackingParams:(a.veType=this.j.veType,void 0!==this.j.veCounter&&(a.veCounter=this.j.veCounter),void 0!==this.j.elementIndex&&(a.elementIndex=this.j.elementIndex));void 0!==this.j.dataElement&&(a.dataElement=this.j.dataElement.getAsJson());void 0!==this.j.youtubeData&&(a.youtubeData=this.j.youtubeData);this.j.isCounterfactual&&(a.isCounterfactual=!0);return a};
xE.prototype.getAsJspb=function(){var a=new Qv;void 0!==this.j.trackingParams?a.jg(this.j.trackingParams):(void 0!==this.j.veType&&L(a,2,this.j.veType),void 0!==this.j.veCounter&&L(a,6,this.j.veCounter),void 0!==this.j.elementIndex&&L(a,3,this.j.elementIndex),this.j.isCounterfactual&&L(a,5,!0));if(void 0!==this.j.dataElement){var b=this.j.dataElement.getAsJspb();Ch(a,Qv,7,b)}void 0!==this.j.youtubeData&&Ch(a,Hs,8,this.j.jspbYoutubeData);return a};
xE.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
xE.prototype.isClientVe=function(){return!this.j.trackingParams&&!!this.j.veType};g.Ka("yt_logging_screen.getRootVeType",kta);g.Ka("yt_logging_screen.getCurrentCsn",g.CE);g.Ka("yt_logging_screen.getCttAuthInfo",DE);g.Ka("yt_logging_screen.setCurrentScreen",EE);var Bta=!1,UE={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",
'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",'script[name="mobile_blazer_watch_mod"]':"mbwj"},
Eta=(0,g.Ta)(uE.clearResourceTimings||uE.webkitClearResourceTimings||uE.mozClearResourceTimings||uE.msClearResourceTimings||uE.oClearResourceTimings||g.Hd,uE);var pcb=window;pcb.ytcsi&&(pcb.ytcsi.info=g.aF,pcb.ytcsi.tick=bF);var qcb;var rcb=g.hc(),scb=rcb.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!scb||2>scb.length)qcb=void 0;else{var tcb=rcb.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);qcb=tcb&&6===tcb.length?Number(tcb[5].replace("_",".")):0}var gM=qcb,LT=0<=gM;var cza={Coa:1,Fpa:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var AM=Lta()?!0:"function"!==typeof window.fetch||!window.ReadableStream||!window.AbortController||g.lB||g.iJ?!1:!0;var H3={},KI=(H3.FAIRPLAY="fairplay",H3.PLAYREADY="playready",H3.WIDEVINE="widevine",H3.CLEARKEY=null,H3.FLASHACCESS=null,H3.UNKNOWN=null,H3.WIDEVINE_CLASSIC=null,H3);var ucb=["h","H"],vcb=["9","("],wcb=["9h","(h"],xcb=["8","*"],ycb=["a","A"],zcb=["o","O"],Acb=["m","M"],Bcb=["mac3","MAC3"],Ccb=["meac3","MEAC3"],I3={},xwa=(I3.h=ucb,I3.H=ucb,I3["9"]=vcb,I3["("]=vcb,I3["9h"]=wcb,I3["(h"]=wcb,I3["8"]=xcb,I3["*"]=xcb,I3.a=ycb,I3.A=ycb,I3.o=zcb,I3.O=zcb,I3.m=Acb,I3.M=Acb,I3.mac3=Bcb,I3.MAC3=Bcb,I3.meac3=Ccb,I3.MEAC3=Ccb,I3);g.eF.prototype.getLanguageInfo=function(){return this.Ic};
g.eF.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");1<a.length&&(this.xtags=a[1])}return this.xtags};
g.eF.prototype.toString=function(){return this.Ic.name};
g.eF.prototype.getLanguageInfo=g.eF.prototype.getLanguageInfo;var J3,jF;J3={};g.gF=(J3.auto=0,J3.tiny=144,J3.light=144,J3.small=240,J3.medium=360,J3.large=480,J3.hd720=720,J3.hd1080=1080,J3.hd1440=1440,J3.hd2160=2160,J3.hd2880=2880,J3.highres=4320,J3);jF={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};fF.prototype.equals=function(a){return this.u===a.u&&this.j===a.j&&this.B===a.B&&this.reason===a.reason};
fF.prototype.isLocked=function(){return this.B&&!!this.u&&this.u===this.j};
fF.prototype.compose=function(a){if(a.B&&iF(a))return bM;if(a.B||iF(this))return a;if(this.B||iF(a))return this;var b=this.u&&a.u?Math.max(this.u,a.u):this.u||a.u,c=this.j&&a.j?Math.min(this.j,a.j):this.j||a.j;b=Math.min(b,c);return b===this.u&&c===this.j?this:new fF(b,c,!1,c===this.j?this.reason:a.reason)};
fF.prototype.C=function(a){return a.video?Nta(this,a.video.quality):!1};
var Dcb=g.hF("auto","hd1080",!1,"l"),sYa=g.hF("auto","large",!1,"l"),bM=g.hF("auto","auto",!1,"p");lF.prototype.Xr=function(a){a=a||bM;for(var b=g.On(this.videoInfos,function(h){return a.C(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].video;
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
lF.prototype.EB=function(a){a=a||bM;return g.On(this.videoInfos,function(b){return a.C(b)})};
lF.prototype.getAvailableAudioTracks=function(){return this.audioTracks};g.x(mF,g.E);mF.prototype.qa=function(){g.E.prototype.qa.call(this)};var zF={uC:function(a,b){a.splice(0,b)},
w7:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
Qw:function(a){a.reverse()}};g.AF.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.url="")};
g.AF.prototype.get=function(a){BF(this);return this.j[a]||null};
g.AF.prototype.Ze=function(){this.url||(this.url=gua(this));return this.url};
g.AF.prototype.clone=function(){var a=new g.AF(this.u,this.D);a.B=this.B;a.path=this.path;a.C=this.C;a.j=g.jd(this.j);a.url=this.url;return a};
var fua=[sma];g.k=g.HF.prototype;g.k.wJ=function(a){this.segments.push(a)};
g.k.getDuration=function(a){return(a=this.Fo(a))?a.duration:0};
g.k.JT=function(a){return this.getDuration(a)};
g.k.Lm=function(){return this.segments.length?this.segments[0].Ma:-1};
g.k.Lf=function(a){return(a=this.Fo(a))?a.ingestionTime:NaN};
g.k.ud=function(){return this.segments.length?this.segments[this.segments.length-1].Ma:-1};
g.k.JM=function(a){return this.ud()===a&&!this.u&&0<=a};
g.k.ws=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.Kd=function(){return this.segments[0].startTime};
g.k.Dy=function(){return this.segments.length};
g.k.Xp=function(){return 0};
g.k.rh=function(a){return(a=this.sy(a))?a.Ma:-1};
g.k.ZF=function(a){return(a=this.Fo(a))?a.sourceURL:""};
g.k.getStartTime=function(a){return(a=this.Fo(a))?a.startTime:0};
g.k.bG=aa(2);g.k.isLoaded=function(){return 0<this.segments.length};
g.k.Fo=function(a){if(this.j&&this.j.Ma===a)return this.j;a=g.Ob(this.segments,new GF(a,0,0,0,""),function(b,c){return b.Ma-c.Ma});
return this.j=0<=a?this.segments[a]:null};
g.k.sy=function(a){if(this.j&&this.j.startTime<=a&&a<this.j.startTime+this.j.duration)return this.j;a=g.Ob(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return this.j=0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.k.append=function(a){if(a.length)if(a=g.Db(a),this.segments.length){var b=this.segments.length?g.qb(this.segments).endTime:0,c=a[0].Ma-this.ud();1<c&&waa(this.segments);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}else this.segments=a};
g.k.RT=function(){return 0};IF.prototype.append=function(a){if(jua(this,a)){var b=this.j[this.j.length-1];this.j[this.j.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);LF(this)}else this.j.push(a);this.totalLength+=a.length};
IF.prototype.split=function(a){for(var b=new IF,c=new IF,d=g.v(this.j),e=d.next();!e.done;e=d.next())e=e.value,a>=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{gC:b,Xk:c}};
IF.prototype.isFocused=function(a){return a>=this.B&&a<this.B+this.j[this.u].length};
IF.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.B&&LF(this);this.B+this.j[this.u].length<=a&&this.u<this.j.length;)this.B+=this.j[this.u].length,this.u+=1;this.C=void 0}};var SF,QF,UF;g.LX=function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
function b(d){return new Uint8Array(d)}
var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a}();
SF=Array(1024);QF=window.TextDecoder?new TextDecoder:void 0;UF=window.TextEncoder?new TextEncoder:void 0;WF.prototype.skip=function(a){this.j+=a};var K3={},Ecb=(K3.predictStart="predictStart",K3.start="start",K3["continue"]="continue",K3.stop="stop",K3),rua={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};eG.prototype.fC=function(){return!!(this.data["Stitched-Video-Id"]||this.data["Stitched-Video-Cpn"]||this.data["Stitched-Video-Duration-Us"]||this.data["Stitched-Video-Start-Frame-Index"]||this.data["Serialized-State"]||this.data["Is-Ad-Break-Finished"])};
eG.prototype.toString=function(){for(var a="",b=g.v(Object.keys(this.data)),c=b.next();!c.done;c=b.next())c=c.value,a+=c+":"+this.data[c]+";";return a};var L3={},Xva=(L3.STEREO_LAYOUT_UNKNOWN=0,L3.STEREO_LAYOUT_LEFT_RIGHT=1,L3.STEREO_LAYOUT_TOP_BOTTOM=2,L3);rG.prototype.Xm=function(){var a=this.pos;this.pos=0;var b=!1;try{vG(this,440786851)&&(this.pos=0,vG(this,408125543)&&(b=!0))}catch(c){if(c instanceof RangeError)this.pos=0,b=!1,g.AD(c);else throw c;}this.pos=a;return b};FG.prototype.set=function(a,b){this.wj.get(a);this.j[a]=b;this.url=""};
FG.prototype.get=function(a){return this.j[a]||this.wj.get(a)};
FG.prototype.Ze=function(){this.url||(this.url=Mua(this));return this.url};JG.prototype.HB=function(){return this.B.get("cpn")||""};
JG.prototype.Ck=function(a,b){a.wj===this.j&&(this.j=GG(a,b));a.wj===this.C&&(this.C=GG(a,b))};OG.prototype.Ig=function(){return!!this.j&&this.index.isLoaded()};
OG.prototype.Sy=function(){return!1};
OG.prototype.vR=function(a){return[a]};
OG.prototype.Cz=function(a){return[a]};QG.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};UG.prototype.isEncrypted=function(){return this.j.info.isEncrypted()};
UG.prototype.equals=function(a){return!(!a||a.j!==this.j||a.type!==this.type||(this.range&&a.range?a.range.start!==this.range.start||a.range.end!==this.range.end:a.range!==this.range)||a.Ma!==this.Ma||a.Qb!==this.Qb||a.u!==this.u)};
UG.prototype.Vg=function(){return!!this.j.info.video};cH.prototype.Jm=function(){return this.u?this.u.Ze():""};
cH.prototype.Bs=function(){return this.J};
cH.prototype.Fm=function(){return WG(this.gb[0])};
cH.prototype.Ck=function(a,b){this.j.Ck(a,b);if(this.u){this.u=GG(a,b);b=g.v(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.u.set(c.value,null)}this.requestId=a.get("req_id")};g.x(gH,OG);g.k=gH.prototype;g.k.Ym=function(){return!1};
g.k.Zu=function(){return!0};
g.k.sC=function(){return!1};
g.k.Sy=function(){return!this.I};
g.k.Qu=function(){return new cH([new UG(1,this,this.initRange,"getMetadataRequestInfo")],this.I)};
g.k.ex=function(){return null};
g.k.IA=function(a){this.Ar(a);return this.Zu()&&a.u&&!a.bf?new cH([new UG(a.type,a.j,a.range,"liveGetNextRequestInfoBySegment",a.Ma,a.startTime,a.duration,a.Qb+a.u,NaN,!0)],this.index.ZF(a.Ma)):this.Br(ZG(a),!1)};
g.k.Yp=function(a,b){b=void 0===b?!1:b;a=this.index.rh(a);b&&(a=Math.min(this.index.ud(),a+1));return this.Br(a,!0)};
g.k.iM=function(a){Fcb?vH(a):this.j=new Uint8Array(qH(a).buffer)};
g.k.Ar=function(a){return 0===a.u?!0:this.index.ud()>a.Ma&&this.index.Lm()<=a.Ma+1};
g.k.update=function(a,b,c){this.index.append(a);iua(this.index,c);this.index.u=b};
g.k.Ig=function(){return this.Sy()?!0:OG.prototype.Ig.call(this)};
g.k.Br=function(a,b){var c=this.index.ZF(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.dc?this.info.dc*e:1E3;return new cH([new UG(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)};
g.k.SL=function(){return this.Sy()?0:this.initRange.length};
g.k.sO=function(){return!1};
var Fcb=!1;jH.prototype.update=function(a){var b=void 0;this.u&&(b=this.u);var c=new jH,d=Array.from(a.getElementsByTagName("S"));if(d.length){var e=+hH(a,"timescale")||1,f=(+d[0].getAttribute("t")||0)/e,h=+hH(a,"startNumber")||0;c.C=f;var l=b?b.startSecs+b.Qg:0,m=Date.parse(gva(hH(a,"yt:segmentIngestTime")))/1E3;c.D="SegmentTemplate"===a.parentElement.tagName;c.D&&(c.J=hH(a,"media"));a=b?h-b.Ma:1;c.I=0<a?0:-a+1;a=g.v(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,t=0;t<=q;t++)if(b&&h<=b.Ma)h++;else{var w=new eva(h,l,n,m+p,f);c.j.push(w);var z=w.startSecs;w=d.getAttribute("yt:cuepointTimeOffset");var C=d.getAttribute("yt:cuepointDuration");if(w&&C){w=Number(w);z=-w/e+z;C=Number(C)/e;var G=d.getAttribute("yt:cuepointContext")||null,O=d.getAttribute("yt:cuepointIdentifier")||"",N=d.getAttribute("yt:cuepointEvent")||"";w=new MD(z,C,G,O,Ecb[N]||"unknown",w)}else w=null;w&&c.B.push(w);h++;l+=n;f+=n;m+=n+p}}c.j.length&&(c.u=g.qb(c.j))}this.I=
c.I;this.u=c.u||this.u;g.Fb(this.j,c.j);g.Fb(this.B,c.B);this.D=c.D;this.J=c.J;-1===this.C&&(this.C=c.getStreamTimeOffset())};
jH.prototype.getStreamTimeOffset=function(){return-1===this.C?0:this.C};g.x(kH,g.HF);g.k=kH.prototype;g.k.Lm=function(){return this.Dm?this.segments.length?this.sy(this.Kd()).Ma:-1:g.HF.prototype.Lm.call(this)};
g.k.Kd=function(){if(this.Se)return 0;if(!this.Dm)return g.HF.prototype.Kd.call(this);if(!this.segments.length)return 0;var a=Math.max(g.qb(this.segments).endTime-this.Eo,0);return 0<this.Ge&&this.sy(a).Ma<this.Ge?this.Fo(this.Ge).startTime:a};
g.k.ws=function(){if(!this.segments.length)return g.HF.prototype.ws.call(this);var a=this.ud();if(!this.Dm||a<=this.segments[this.segments.length-1].Ma)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new GF(a,Math.max(0,b.startTime-(b.Ma-a)*this.pj),this.pj,0,"sq/"+a,void 0,void 0,!0)}return null!==this.B&&a.pending&&3===this.B?this.Se?Math.min(this.Eo,a.startTime):a.startTime:this.Se?Math.min(this.Eo,a.endTime):a.endTime};
g.k.Dy=function(){return this.Dm?this.segments.length?this.ud()-this.Lm()+1:0:g.HF.prototype.Dy.call(this)};
g.k.ud=function(){var a=Math.min(this.Wg,Math.max(g.HF.prototype.ud.call(this),this.Qo)),b=1E3*this.Eo;b=0<this.iq&&this.iq<b;this.Se&&0<this.Eo&&0<this.Qo&&!b&&(b=this.sy(this.Eo))&&(a=Math.min(b.Ma-1,a));return a};
g.k.Nu=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.wJ=function(a){var b=lH(this,a.Ma);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.bz&&0===a.Ma%(300/this.pj)){var c=this.segments[0].Ma,d=Math.floor(this.bz/this.pj);a=a.Ma-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.PF=function(){return this.Qo};
g.k.sy=function(a){if(!this.Dm)return g.HF.prototype.sy.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a<this.segments[0].startTime)b=Math.max(0,this.segments[0].Ma-Math.ceil((this.segments[0].startTime-a)/this.pj));else if(a>=b.endTime)b=b.Ma+Math.floor((a-b.endTime)/this.pj+1);else{b=Qb(this.segments,function(d){return a<d.startTime?-1:a>=d.endTime?1:0});
if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Ma-b.Ma-1))+1)+b.Ma}return this.Fo(b)};
g.k.Fo=function(a){if(!this.Dm)return g.HF.prototype.Fo.call(this,a);if(!this.segments.length)return null;var b=lH(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.pj;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ma-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ma-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Ma-d.Ma-1),d=d.endTime+(a-d.Ma-1)*b);return new GF(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.x(nH,gH);g.k=nH.prototype;g.k.sC=function(){return!0};
g.k.Ig=function(){return!0};
g.k.Ar=function(a){return this.Zu()&&a.u&&!a.bf||!a.j.index.JM(a.Ma)};
g.k.Qu=function(){};
g.k.Yp=function(a,b){return"number"!==typeof a||isFinite(a)?gH.prototype.Yp.call(this,a,void 0===b?!1:b):new cH([new UG(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Xj,void 0,this.Xj*this.info.dc)],"")};
g.k.Br=function(a,b){var c=void 0===c?!1:c;if(mH(this.index,a))return gH.prototype.Br.call(this,a,b);var d=this.index.getStartTime(a);return new cH([new UG(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,b?0:this.Xj*this.info.dc,!b)],0<=a?"sq/"+a:"")};g.x(oH,OG);g.k=oH.prototype;g.k.Ym=function(){return!1};
g.k.Zu=function(){return!1};
g.k.sC=function(){return!1};
g.k.Qu=function(){return new cH([new UG(1,this,void 0,"otfInit")],this.I)};
g.k.ex=function(){return null};
g.k.IA=function(a){this.Ar(a);return ova(this,ZG(a),!1)};
g.k.Yp=function(a,b){b=void 0===b?!1:b;a=this.index.rh(a);b&&(a=Math.min(this.index.ud(),a+1));return ova(this,a,!0)};
g.k.iM=function(a){1===a.info.type&&(this.j||(this.j=mua(a.j)),a.u&&"http://youtube.com/streaming/otf/durations/112015"===a.u.uri&&pva(this,a.u))};
g.k.Ar=function(a){return 0===a.u?!0:this.index.ud()>a.Ma&&this.index.Lm()<=a.Ma+1};
g.k.SL=function(){return 0};
g.k.sO=function(){return!1};pH.prototype.verify=function(a){if(this.info.u!==this.j.totalLength)return a.slength=this.info.u.toString(),a.range=this.j.totalLength.toString(),!1;if(1===this.info.j.info.containerType){if(8>this.info.u||4===this.info.type)return!0;var b=qH(this),c=b.getUint32(0,!1);b=b.getUint32(4,!1);a.infotype=this.info.type.toString();a.slicesize=c.toString();a.boxtype=b.toString();if(2===this.info.type)return c===this.info.u&&1936286840===b;if(3===this.info.type&&0===this.info.Qb)return 1836019558===b||1936286840===
b||1937013104===b||1718909296===b||1701671783===b||1936419184===b}else if(2===this.info.j.info.containerType){if(4>this.info.u||4===this.info.type)return!0;c=qH(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.Qb)return 524531317===c||440786851===c}return!0};g.k=g.wH.prototype;g.k.Xp=function(a){return this.offsets[a]};
g.k.getStartTime=function(a){return this.Ki[a]/this.j};
g.k.bG=aa(1);g.k.Lf=function(){return NaN};
g.k.getDuration=function(a){a=this.JT(a);return 0<=a?a/this.j:-1};
g.k.JT=function(a){return a+1<this.count||this.u?this.Ki[a+1]-this.Ki[a]:-1};
g.k.Lm=function(){return 0};
g.k.ud=function(){return this.count-1};
g.k.JM=function(a){return this.ud()===a&&0<=a};
g.k.ws=function(){return this.u?this.Ki[this.count]/this.j:NaN};
g.k.Kd=function(){return 0};
g.k.Dy=function(){return this.count};
g.k.ZF=function(){return""};
g.k.rh=function(a){a=g.Ob(this.Ki.subarray(0,this.count),a*this.j);return 0<=a?a:Math.max(0,-a-2)};
g.k.isLoaded=function(){return 0<=this.ud()};
g.k.RT=function(a,b){if(a>=this.ud())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.ud()&&b>this.getStartTime(a);a++)c=Math.max(c,yva(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.Ki;this.Ki=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.Ki[a]=c[a]};
g.k.cap=function(a,b){xH(this);this.u=!0;this.Ki[this.count]=b;this.offsets[this.count]=a};g.x(yH,OG);g.k=yH.prototype;g.k.Qu=function(a,b){var c=new UG(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,b),d=[new UG(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,b),c];0<this.info.contentLength&&a&&(c=c.range.end+1,a=Math.min(a,this.info.contentLength-c),0<a&&d.push(new UG(4,this,SG(c,a),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,b)));return new cH(d)};
g.k.iM=function(a){if(1===a.info.type){if(this.j)return;this.j=mua(a.j)}else if(2===a.info.type){if(this.I||0<=this.index.ud())return;if(g.sH(this.info)){var b=this.index,c=qH(a);a=a.info.range.start;var d=g.hG(c,0,1936286840);c=Aua(d);b.j=c.Lt;var e=c.P2;b.offsets[0]=c.h3+a+d.size;b.Ki[0]=e;b.u=!0;a=c.BP.length;for(d=0;d<a;d++){e=b;var f=c.A8[d],h=c.BP[d];e.count++;xH(e);e.offsets[e.count]=e.offsets[e.count-1]+f;e.Ki[e.count]=e.Ki[e.count-1]+h}}else this.I=qH(a)}if(this.info.Ee()&&this.j&&this.I){c=
new DataView(this.j.buffer);b=this.index;d=this.I;a=this.indexRange.end;e=new rG(c);c=e;e=c.pos;f={iY:1E6,jY:1E9,duration:0,zX:0,YO:0};if(vG(c,408125543))if(f.zX=wG(c,!0),f.YO=c.start+c.pos,vG(c,357149030)){for(h=uG(c);!sG(h);){var l=wG(h,!1);2807729===l?f.iY=yG(h):2807730===l?f.jY=yG(h):17545===l?f.duration=AG(h):zG(h)}c.pos=e;c=f}else c.pos=e,c=null;else c.pos=e,c=null;if(null!==c){b.j=c.jY/c.iY;e=new rG(d);d=e;h=c.YO;e=d.pos;f=[];if(vG(d,475249515)){for(l=uG(d);vG(l,187);){var m=uG(l);if(vG(m,
179)){var n=yG(m);if(vG(m,183)){m=uG(m);for(var p=h;vG(m,241);)p=yG(m)+h;f.push({jF:p,E2:n})}}}if(0<f.length&&a===f[0].jF)for(a=0;a<f.length;a++)f[a].jF+=1;d.pos=e;a=f}else d.pos=e,a=null;if(null!==a){a=g.v(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.jF,f=f.E2,xH(d),d.offsets[d.count]=e,d.Ki[d.count]=f,d.count++;b.cap(c.zX+c.YO,c.duration)}}this.I=null}};
g.k.UB=function(a,b,c,d){for(var e=[],f=a;f<=this.index.ud();f++){var h=SG(this.index.Xp(f),yva(this.index,f)),l=this.index.getStartTime(f),m=this.index.getDuration(f),n=Math.max(0,b-h.start),p=Math.min(h.end+1,b+c)-(h.start+n);e.push(new UG(3,this,h,"getRequestInfoForRange",f,l,m,n,p,void 0,d));if(h.start+n+p>=b+c)break}e.length||g.zD(new g.Yz("b189619593",""+a,""+b,""+c));return new cH(e)};
g.k.vR=function(a){for(var b=this.Cz(a.info),c=a.info.range.start+a.info.Qb,d=a.B,e=[],f=0;f<b.length;f++){var h=KF(a.j,b[f].range.start+b[f].Qb-c,b[f].u);e.push(new pH(b[f],h,d));d=void 0}return e};
g.k.Cz=function(a){for(var b=a.range.start+a.Qb,c=0;c<this.index.ud()&&b>=this.index.Xp(c+1);)c++;return this.UB(c,b,a.u).gb};
g.k.Ar=function(a){VG(a);return this.Ig()?!0:a.range.end+1<this.info.contentLength};
g.k.ex=function(a,b){this.Ar(a);if(!this.Ig())return b=SG(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new QG(b.start,this.info.contentLength-1)),new cH([new UG(4,a.j,b,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,a.clipId)]);4===a.type&&(a=this.Cz(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Qb+a.u;3===a.type&&(VG(a),c=a.Ma,d===a.range.end+1&&(c+=1));return this.UB(c,d,b)};
g.k.IA=function(){return null};
g.k.Yp=function(a,b,c){b=void 0===b?!1:b;a=this.index.rh(a);b&&(a=Math.min(this.index.ud(),a+1));return this.UB(a,this.index.Xp(a),0,c)};
g.k.Ym=function(){return!0};
g.k.Zu=function(){return!0};
g.k.sC=function(){return!1};
g.k.SL=function(){return this.indexRange.length+this.initRange.length};
g.k.sO=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};zH.prototype.isMultiChannelAudio=function(){return 2<this.numChannels};var M3={},Yva=(M3.COLOR_PRIMARIES_BT709="bt709",M3.COLOR_PRIMARIES_BT2020="bt2020",M3.COLOR_PRIMARIES_UNKNOWN=null,M3.COLOR_PRIMARIES_UNSPECIFIED=null,M3),N3={},Ava=(N3.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",N3.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",N3.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",N3.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",N3.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,N3.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,N3);var O3={},vF=(O3.WIDTH={name:"width",video:!0,valid:640,Vm:99999},O3.HEIGHT={name:"height",video:!0,valid:360,Vm:99999},O3.FRAMERATE={name:"framerate",video:!0,valid:30,Vm:9999},O3.BITRATE={name:"bitrate",video:!0,valid:3E5,Vm:2E9},O3.EOTF={name:"eotf",video:!0,valid:"bt709",Vm:"catavision"},O3.CHANNELS={name:"channels",video:!1,valid:2,Vm:99},O3.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Vm:"invalidformat"},O3.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
Vm:"nope"},O3.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Vm:"av99.0.05M.08"},O3.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Vm:"invalid"},O3);var P3={},EH=(P3["0"]="f",P3["160"]="h",P3["133"]="h",P3["134"]="h",P3["135"]="h",P3["136"]="h",P3["137"]="h",P3["264"]="h",P3["266"]="h",P3["138"]="h",P3["298"]="h",P3["299"]="h",P3["304"]="h",P3["305"]="h",P3["214"]="h",P3["216"]="h",P3["374"]="h",P3["375"]="h",P3["140"]="a",P3["141"]="ah",P3["327"]="sa",P3["258"]="m",P3["380"]="mac3",P3["328"]="meac3",P3["161"]="H",P3["142"]="H",P3["143"]="H",P3["144"]="H",P3["222"]="H",P3["223"]="H",P3["145"]="H",P3["224"]="H",P3["225"]="H",P3["146"]="H",P3["226"]=
"H",P3["227"]="H",P3["147"]="H",P3["384"]="H",P3["376"]="H",P3["385"]="H",P3["377"]="H",P3["149"]="A",P3["261"]="M",P3["381"]="MAC3",P3["329"]="MEAC3",P3["598"]="9",P3["278"]="9",P3["242"]="9",P3["243"]="9",P3["244"]="9",P3["247"]="9",P3["248"]="9",P3["353"]="9",P3["355"]="9",P3["356"]="9",P3["271"]="9",P3["577"]="9",P3["313"]="9",P3["579"]="9",P3["272"]="9",P3["302"]="9",P3["303"]="9",P3["407"]="9",P3["408"]="9",P3["308"]="9",P3["315"]="9",P3["330"]="9h",P3["331"]="9h",P3["332"]="9h",P3["333"]="9h",
P3["334"]="9h",P3["335"]="9h",P3["336"]="9h",P3["337"]="9h",P3["338"]="so",P3["600"]="o",P3["250"]="o",P3["251"]="o",P3["194"]="*",P3["195"]="*",P3["220"]="*",P3["221"]="*",P3["196"]="*",P3["197"]="*",P3["279"]="(",P3["280"]="(",P3["317"]="(",P3["318"]="(",P3["273"]="(",P3["274"]="(",P3["357"]="(",P3["358"]="(",P3["275"]="(",P3["359"]="(",P3["360"]="(",P3["276"]="(",P3["583"]="(",P3["584"]="(",P3["314"]="(",P3["585"]="(",P3["561"]="(",P3["277"]="(",P3["361"]="(h",P3["362"]="(h",P3["363"]="(h",P3["364"]=
"(h",P3["365"]="(h",P3["366"]="(h",P3["591"]="(h",P3["592"]="(h",P3["367"]="(h",P3["586"]="(h",P3["587"]="(h",P3["368"]="(h",P3["588"]="(h",P3["562"]="(h",P3["409"]="(",P3["410"]="(",P3["411"]="(",P3["412"]="(",P3["557"]="(",P3["558"]="(",P3["394"]="1",P3["395"]="1",P3["396"]="1",P3["397"]="1",P3["398"]="1",P3["399"]="1",P3["400"]="1",P3["401"]="1",P3["571"]="1",P3["402"]="1",P3["694"]="1h",P3["695"]="1h",P3["696"]="1h",P3["697"]="1h",P3["698"]="1h",P3["699"]="1h",P3["700"]="1h",P3["701"]="1h",P3["702"]=
"1h",P3["703"]="1h",P3["386"]="3",P3["387"]="w",P3["406"]="6",P3["645"]="(",P3["646"]="(",P3["647"]="(",P3["648"]="(",P3["649"]="(",P3["650"]="(",P3["651"]="(",P3["652"]="(",P3["653"]="(",P3["654"]="(",P3["655"]="(",P3["656"]="(",P3["657"]="(",P3["658"]="(",P3["659"]="(",P3["660"]="(",P3["661"]="(",P3["662"]="(",P3["663"]="(",P3["664"]="(",P3["665"]="(",P3["666"]="(",P3["667"]="(",P3["668"]="(",P3["669"]="(",P3["670"]="(",P3["671"]="(",P3["672"]="(",P3["673"]="(",P3["674"]="(h",P3["675"]="(h",P3["676"]=
"(h",P3["677"]="(h",P3["678"]="(h",P3["679"]="(h",P3["680"]="(h",P3["681"]="(h",P3["682"]="(h",P3["683"]="(h",P3["684"]="(h",P3["685"]="(h",P3["686"]="(h",P3["687"]="(h",P3["688"]="A",P3["689"]="A",P3["690"]="A",P3["691"]="MEAC3",P3);var CH="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");BH.prototype.isHdr=function(){return"smpte2084"===this.u||"arib-std-b67"===this.u};FH.prototype.Ee=function(){return 2===this.containerType};
FH.prototype.isEncrypted=function(){return!!this.Nd};
FH.prototype.Fk=function(){return!!this.audio};
FH.prototype.Vg=function(){return!!this.video};g.OH.prototype.getName=function(){return this.name};
g.OH.prototype.getId=function(){return this.id};
g.OH.prototype.getIsDefault=function(){return this.isDefault};
g.OH.prototype.toString=function(){return this.name};
g.OH.prototype.getName=g.OH.prototype.getName;g.OH.prototype.getId=g.OH.prototype.getId;g.OH.prototype.getIsDefault=g.OH.prototype.getIsDefault;g.x(g.eI,Fz);g.eI.prototype.S=function(a,b,c,d,e){return Fz.prototype.S.call(this,a,b,c,d,e)};g.x(tI,g.aE);g.k=tI.prototype;g.k.appendBuffer=function(a,b,c){if(this.Gd.BB()!==this.appendWindowStart+this.start||this.Gd.LF()!==this.appendWindowEnd+this.start||this.Gd.Ed()!==this.timestampOffset+this.start)this.Gd.supports(1),this.Gd.cP(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Gd.Vq(this.timestampOffset+this.start);this.Gd.appendBuffer(a,b,c)};
g.k.abort=function(){this.Gd.abort()};
g.k.remove=function(a,b){this.Gd.remove(a+this.start,b+this.start)};
g.k.Df=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
g.k.clear=function(){this.Gd.clear()};
g.k.cP=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.ZL=function(){return this.timestampOffset+this.start};
g.k.BB=function(){return this.appendWindowStart};
g.k.LF=function(){return this.appendWindowEnd};
g.k.Vq=function(a){this.timestampOffset=a};
g.k.Ed=function(){return this.timestampOffset};
g.k.Hg=function(a){a=this.Gd.Hg(void 0===a?!1:a);return sI(a,this.start,this.end)};
g.k.dj=function(){return this.Gd.dj()};
g.k.Ml=function(){return this.Gd.Ml()};
g.k.EM=function(){return this.Gd.EM()};
g.k.Rx=function(){this.Gd.Rx()};
g.k.Ty=function(a){return this.Gd.Ty(a)};
g.k.hs=function(){return this.Gd.hs()};
g.k.QF=function(){return this.Gd.QF()};
g.k.VP=function(a,b){this.Gd.VP(a,b)};
g.k.supports=function(a){return this.Gd.supports(a)};
g.k.RF=function(){return this.Gd.RF()};
g.k.isView=function(){return!0};
g.k.tI=function(a,b,c){return this.isActive?this.Gd.tI(a,b,c):!1};
g.k.bF=function(){return this.Gd.bF()?this.isActive:!1};
g.k.isLocked=function(){return this.oE&&!this.isActive};
g.k.kc=function(a){a=this.Gd.kc(a);a.vw=this.start+"-"+this.end;return a};
g.k.NB=function(){return this.Gd.NB()};
g.k.VL=function(){return this.Gd.VL()};
g.k.qa=function(){cE(this.Gd,this.sU);g.aE.prototype.qa.call(this)};var yX=!1;g.x(vI,g.aE);g.k=vI.prototype;
g.k.appendBuffer=function(a,b,c){this.cB=!1;c&&(this.BC=c);if(!Gcb&&(b&&Gva(this,b),!a.length))return;if(Gcb){if(a.length){var d;(null==(d=this.Vb)?0:d.appendBuffer)?this.Vb.appendBuffer(a):this.Vb?this.Vb.append(a):this.Cg&&this.Cg.webkitSourceAppend(this.id,a)}b&&Gva(this,b)}else{var e;(null==(e=this.Vb)?0:e.appendBuffer)?this.Vb.appendBuffer(a):this.Vb?this.Vb.append(a):this.Cg&&this.Cg.webkitSourceAppend(this.id,a)}this.Dz&&(2<=this.Dz.length||1048576<a.length?delete this.Dz:this.Dz.push(a))};
g.k.abort=function(){try{this.Vb?this.Vb.abort():this.Cg&&this.Cg.webkitSourceAbort(this.id)}catch(a){Hcb&&g.zD(new g.Yz("Error while abort the source buffer: "+a.name+", "+a.message))}this.BC=this.Bf=null};
g.k.remove=function(a,b){this.cB=!1;var c;(null==(c=this.Vb)?0:c.remove)&&this.Vb.remove(a,b)};
g.k.Df=function(){this.remove(this.BB(),this.LF())};
g.k.clear=function(){this.Ml()||(this.abort(),this.Df(),this.TM=this.BC=this.Bf=null,this.appendWindowStart=this.timestampOffset=0,this.CK=lI([],[]),this.cB=!1,this.Dz=uI?[]:void 0,this.gF=!0)};
g.k.BB=function(){if(yX&&this.Vg)return this.appendWindowStart;var a;return(null==(a=this.Vb)?void 0:a.appendWindowStart)||0};
g.k.LF=function(){var a;return(null==(a=this.Vb)?void 0:a.appendWindowEnd)||0};
g.k.cP=function(a,b){this.Vb&&(yX&&this.Vg?(this.appendWindowStart=a,this.Vb.appendWindowEnd=b):a>this.BB()?(this.Vb.appendWindowEnd=b,this.Vb.appendWindowStart=a):(this.Vb.appendWindowStart=a,this.Vb.appendWindowEnd=b))};
g.k.ZL=function(){return this.timestampOffset};
g.k.Vq=function(a){yX?this.timestampOffset=a:this.supports(1)&&(this.Vb.timestampOffset=a)};
g.k.Ed=function(){return yX?this.timestampOffset:this.supports(1)?this.Vb.timestampOffset:0};
g.k.Hg=function(a){if(void 0===a?0:a)return this.cB||this.dj()||(this.CK=this.Hg(!1),this.cB=!0),this.CK;try{return this.Vb?this.Vb.buffered:this.Cg?this.Cg.webkitSourceBuffered(this.id):lI([0],[Infinity])}catch(b){return lI([],[])}};
g.k.dj=function(){var a;return(null==(a=this.Vb)?void 0:a.updating)||!1};
g.k.Ml=function(){return this.gF};
g.k.EM=function(){return!this.gF&&this.dj()};
g.k.Rx=function(){this.gF=!1};
g.k.Ty=function(a){var b=null==a?void 0:a.Mb;a=null==a?void 0:a.containerType;return!b&&!a||b===this.Mb&&a===this.containerType};
g.k.hs=function(){return this.BC};
g.k.QF=function(){return this.TM};
g.k.VP=function(a,b){this.containerType!==a&&(this.supports(4),wI()&&this.Vb.changeType(b));this.containerType=a};
g.k.RF=function(){return this.Bf};
g.k.isView=function(){return!1};
g.k.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.Vb)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.Vb)||!c.appendBuffer);case 2:var d;return!(null==(d=this.Vb)||!d.remove);case 3:var e,f;return!!((null==(e=this.Vb)?0:e.addEventListener)&&(null==(f=this.Vb)?0:f.removeEventListener));case 4:return!(!this.Vb||!this.Vb.changeType);default:return!1}};
g.k.bF=function(){return!this.dj()};
g.k.isLocked=function(){return!1};
g.k.kc=function(a){a.to=this.Ed();a.up=this.dj();var b,c=(null==(b=this.Vb)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.Vb)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=mI(this.Hg())}catch(e){}return a};
g.k.qa=function(){this.supports(3)&&(this.Vb.removeEventListener("updateend",this.wd),this.Vb.removeEventListener("error",this.wd));g.aE.prototype.qa.call(this)};
g.k.tI=function(a,b,c){if(!this.supports(2)||this.dj())return!1;var d=this.Hg(),e=nI(d,a);if(0>e)return!1;try{if(b&&e+1<d.length){var f=d.start(e+1),h=d.end(d.length-1);this.remove(f,h);return!0}if(this.isView())return!1;var l=Math.max(0,a-c);if(0<c&&d.start(e)<l)return this.remove(0,l),!0}catch(m){}return!1};
g.k.NB=function(){return this.containerType};
g.k.VL=function(){return this.Dz};
var uI=!1,Hcb=!1,Gcb=!1;xI.prototype.dispose=function(){if(!this.isDisposed){if(this.u)try{URL.revokeObjectURL(this.j)}catch(a){}this.B=!0}};
xI.prototype.isDisposed=function(){return this.B};
xI.prototype.equals=function(a){return null!==a&&a.j===this.j};
xI.prototype.toString=function(){return"MediaResource {"+this.j+"}"};g.x(yI,g.E);g.k=yI.prototype;g.k.getDuration=function(){var a;return(null==(a=this.Xa)?void 0:a.duration)||this.V};
g.k.Tk=function(a){try{this.Xa?this.Xa.duration=a:(this.V=a,this.Cg.webkitSourceSetDuration(a))}catch(b){}};
g.k.Tg=function(){try{return"closed"===EI(this)}catch(a){return!0}};
g.k.dj=function(){return!!(this.j&&this.j.dj()||this.u&&this.u.dj())};
g.k.z7=function(){!this.isDisposed()&&zI(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.y7=function(){this.dispose()};
g.k.O_=function(a){if(AI&&!this.C&&a.Ml()&&0===a.Hg().length){var b;BI(this.mediaElement,{l:"mswoue",sr:null==(b=this.mediaElement.va)?void 0:CI(b)},!1);a.Rx();this.Ml()||(this.mediaElement.tM=!0,this.mediaElement.setCurrentTime(0))}};
g.k.clear=function(){Iva(this,function(){});
var a;null==(a=this.j)||a.clear();var b;null==(b=this.u)||b.clear()};
g.k.Ml=function(){var a,b;return(null==(a=this.u)?void 0:a.Ml())||(null==(b=this.j)?void 0:b.Ml())};
g.k.Ty=function(a,b){return!!this.j&&!!this.u&&this.j.Ty(b)&&this.u.Ty(a)};
var AI=!1;var Ova=/action_display_post/;var Pva;g.x(II,g.aE);g.k=II.prototype;g.k.isLoading=function(){return 1===this.state};
g.k.Wm=function(){return 3===this.state};
g.k.e8=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.Zc=this.u=!0;this.timeline||(this.timeline=new iva);mva(this.timeline,a);this.ma("refresh");for(a=0;a<b.length;a++){var c=ewa(this,b[a]);if(!this.j[c.id]){var d=NI(iH(b[a],"BaseURL").textContent),e=iH(b[a],"Initialization"),f=hH(e,"sourceURL");e=RG(hH(e,"range"));this.j[c.id]=new gH(d,c,f,e)}c=this.j[c.id];d=hH(b[a],"id","AdaptationSet");
d=""!==d?d:hH(b[a],"mimetype","AdaptationSet");f=this.timeline;f=f.B[c.info.id]||f.u[d]||f.j||null;d=f.j;!this.J&&f.getStreamTimeOffset()&&(this.J=f.getStreamTimeOffset());if(f.D){e=[];d=g.v(d);for(var h=d.next();!h.done;h=d.next()){h=h.value;var l=c.info.id,m=8*c.info.dc,n=h.Ma;var p=h.startSecs;var q=f.J.split("$$");for(var t=0;t<q.length;t++)q[t]=q[t].replace("$RepresentationID$",l),q[t]=q[t].replace("$Number$",n.toString()),q[t]=q[t].replace("$Bandwidth$",m.toString()),q[t]=q[t].replace("$Time$",
p.toString());e.push(new GF(h.Ma,h.startSecs,h.Qg,h.j,q.join("$"),null,h.u))}d=e}else{f=Gb(iH(b[a],"SegmentList").getElementsByTagName("SegmentURL"),f.I);e=[];for(h=0;h<f.length;h++){l=e;m=l.push;n=d[h];p=void 0;t=f[h];q=t.getAttribute("media");if(t=t.getAttribute("mediaRange")){var w=t.split("-");w[1]&&0<=Number(w[1])?p=RG(t):q=q+"?range="+t}m.call(l,new GF(n.Ma,n.startSecs,n.Qg,n.j,q,p,n.u))}d=e}c.update(d,this.isLive,this.Ja)}nva(this.timeline);return!0}this.duration=fva(hH(a,"mediaPresentationDuration"));
a:{for(a=0;a<b.length;a++){f=b[a];c=ewa(this,f);d=NI(iH(f,"BaseURL").textContent);e=iH(f,"SegmentBase");f=RG(e.attributes.getNamedItem("indexRange").value);e=RG(e.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);c=new yH(d,c,e,f);if(!c){b=!1;break a}HI(this,c)}b=!0}return b};
g.k.refresh=function(){if(!this.isLoading()&&!this.isDisposed()){var a=g.Ui(this.sourceUrl,{start_seq:iwa(this).toString()});gwa(this,a).Zj(function(){})}};
g.k.resume=function(){fwa(this)};
g.k.qe=function(){if(this.isManifestless&&this.B&&PI(this))return PI(this);var a=this.j,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.isLoaded()&&(f.D&&(b=!0),h=h.ws(),f.info.Fk()&&(isNaN(c)||h<c)?c=h:f.info.Vg()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
g.k.Kd=function(){if(this.isManifestless){if(QI(this))return QI(this);if(this.td){var a=this.Lf(this.qe());if(a&&(a-=this.td,0<a))return this.qe()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.Kd()}return 0};
g.k.getStreamTimeOffset=function(){return this.J};
g.k.Lf=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.rh(a),e=c.Lf(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
var TI=null,Icb,UI=!(null==(Icb=navigator.mediaCapabilities)||!Icb.decodingInfo),dwa={commentary:1,alternate:2,dub:3,main:4};aJ.prototype.clone=function(a){return new aJ(this.flavor,a,this.u,this.experiments)};
aJ.prototype.kc=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
aJ.prototype.qh=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 Jcb={},lJ=(Jcb.playready=["com.youtube.playready","com.microsoft.playready"],Jcb.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],Jcb),Q3={},eYa=(Q3.widevine="DRM_SYSTEM_WIDEVINE",Q3.fairplay="DRM_SYSTEM_FAIRPLAY",Q3.playready="DRM_SYSTEM_PLAYREADY",Q3),R3={},Kcb=(R3.widevine=1,R3.fairplay=2,R3.playready=3,R3);nJ.prototype.Of=function(a,b){b=void 0===b?1:b;this.j+=b;this.B+=a;a/=b;for(var c=0;c<mJ.length&&!(a<mJ[c]);++c)this.u[c]+=b};
nJ.prototype.toString=function(){return""};
var mJ=[20,100,500,2E3];g.k=Cwa.prototype;g.k.isActive=function(){return!0};
g.k.pw=function(){return!1};
g.k.Xu=function(a,b){var c=this;if(b){var d={},e;for(e in b)b.hasOwnProperty(e)&&(d.FI=a.prototype[e],d.JI=b[e],a.prototype[e]=function(f){return function(){var h=g.Ca.apply(0,arguments),l=(0,g.GA)();h=f.FI.apply(this,h);oJ(c,f.JI,(0,g.GA)()-l);return h}}(d)),d={FI:d.FI,
JI:d.JI}}};
g.k.Aw=function(a,b){var c=this;return function(){var d=g.Ca.apply(0,arguments),e=(0,g.GA)();d=b.apply(null,d);oJ(c,a,(0,g.GA)()-e);return d}};
g.k.Xq=function(a){return new Bwa(a)};
g.k.Rp=function(a,b){b=void 0===b?1:b;a instanceof Bwa&&(oJ(this,a.name,(0,g.GA)()-a.startTimeMs,b),a.j=!0)};
g.k.GH=function(a,b){var c=void 0===c?1:c;var d=(0,g.GA)();b();oJ(this,a,(0,g.GA)()-d,c)};
g.k.xL=function(){var a={},b;for(b in this.j)if(this.j.hasOwnProperty(b)){var c=zwa(this.j[b]);c&&(a[b]=c)}this.j=new Awa;return a};
g.k.toString=function(){return""};g.k=Fwa.prototype;g.k.isActive=function(){return!0};
g.k.pw=function(){return!0};
g.k.Xu=function(a,b){var c=this;if(b){var d={},e;for(e in b)b.hasOwnProperty(e)&&(d.GI=a.prototype[e],d.KI=b[e],a.prototype[e]=function(f){return function(){var h=g.Ca.apply(0,arguments),l=(0,g.GA)();h=f.GI.apply(this,h);return Gwa(c,h,f.KI,l)}}(d)),d={GI:d.GI,
KI:d.KI}}};
g.k.Aw=function(a,b){var c=this;return function(){var d=g.Ca.apply(0,arguments),e=(0,g.GA)();d=b.apply(null,d);return Gwa(c,d,a,e)}};
g.k.Xq=function(a){return new Ewa(a)};
g.k.Rp=function(a,b){b=void 0===b?1:b;a instanceof Ewa&&(pJ(this,a.name,(0,g.GA)()-a.startTimeMs,b),a.j=!0)};
g.k.GH=function(a,b){var c=void 0===c?1:c;var d=(0,g.GA)();b();pJ(this,a,(0,g.GA)()-d,c)};
g.k.xL=function(){var a={},b;for(b in this.j)if(this.j.hasOwnProperty(b)){var c=zwa(this.j[b]);c&&(a[b]=c)}this.j=new Dwa;return a};
g.k.toString=function(){return""};g.k=Hwa.prototype;g.k.isActive=function(){return!1};
g.k.pw=function(){return!0};
g.k.Xu=function(){};
g.k.Aw=function(a,b){return b};
g.k.Xq=function(){};
g.k.Rp=function(){};
g.k.GH=function(a,b){b()};
g.k.xL=function(){return{}};
g.k.toString=function(){return""};var S3,Lcb,Mcb,Ncb,Ocb,Pcb,Qcb,mZ,T3,pX,W0a,tJ;S3=new Hwa;Lcb=!!+by("html5_enable_profiler");Mcb=!!+by("html5_onesie_enable_profiler");Ncb=!!+by("html5_offline_encryption_enable_profiler");Ocb=!!+by("html5_performance_impact_profiling_timer_ms");Pcb=!!+by("html5_drm_enable_profiler");Qcb=!!+by("html5_use_experimental_profiler");mZ=Lcb||Mcb||Ncb||Ocb||Pcb?Qcb?new Fwa:new Cwa:S3;g.kW=Lcb?mZ:S3;T3=Mcb?mZ:S3;pX=Ncb?mZ:S3;W0a=Ocb?mZ:S3;tJ=Pcb?g.kW:S3;var sJ;g.x(qJ,g.E);
qJ.prototype.initialize=function(a,b){for(var c=this,d=g.v(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.v(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.Nd)for(var h=g.v(Object.keys(f.Nd)),l=h.next();!l.done;l=h.next()){var m=l.value;l=m;m=lJ[m];!m&&this.K("html5_enable_vp9_fairplay")&&"fairplay"===l&&(m=["com.youtube.fairplay.sbdl"]);if(m){m=g.v(m);for(var n=m.next();!n.done;n=m.next())n=n.value,this.B[n]=this.B[n]||new aJ(l,n,f.Nd[l],this.D.experiments),this.j[l]=this.j[l]||
{},this.j[l][f.mimeType]=!0}}}Vy()&&(this.B["com.youtube.fairplay"]=new aJ("fairplay","com.youtube.fairplay","",this.D.experiments),this.K("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.u=ywa(b,this.useCobaltWidevine,this.K("html5_enable_safari_fairplay"),this.K("html5_enable_vp9_fairplay")).filter(function(p){return!!c.B[p]})};
qJ.prototype.K=function(a){return this.D.experiments.kb(a)};var z0a={"":"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"};var Rcb={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},U3;a:{var V3=g.hc();V3=V3.toLowerCase();if(g.cc(V3,"android")){var Scb=V3.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Scb){var Tcb=parseFloat(Scb[1]);if(100>Tcb){U3=Tcb;break a}}var Ucb=V3.match("("+Object.keys(Rcb).join("|")+")");U3=Ucb?Rcb[Ucb[0]]:0}else U3=void 0}var mK=U3,lK=0<=mK;var Axa={RED:"red",Q5a:"white"};var yxa={cea:"adunit",qoa:"detailpage",bpa:"editpage",jpa:"embedded",lpa:"embedded_unbranded",GCa:"leanback",AQa:"previewpage",qRa:"profilepage",iS:"unplugged",LPa:"playlistoverview",CWa:"sponsorshipsoffer",STa:"shortspage",gwa:"handlesclaiming",Fxa:"immersivelivepage",Gma:"creatormusic"};Pwa.prototype.kb=function(a){return"true"===this.flags[a]};var Qwa=Promise.resolve(),Twa=window.queueMicrotask?window.queueMicrotask.bind(window):Rwa;wJ.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;kB?a=a||Vcb[b]:2.2===mK?a=a||Wcb[b]:Ty()&&(a=a||Xcb[b]);return!!a};
wJ.prototype.isTypeSupported=function(a){return this.J?window.cast.receiver.platform.canDisplayType(a):iI(a)};
var Wcb={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Xcb={"application/x-mpegURL":"maybe"},Vcb={"application/x-mpegURL":"maybe"};zJ.prototype.gf=function(){this.j=!1;if(this.queue.length&&!(this.u&&5>=this.queue.length&&15E3>(0,g.GA)()-this.C)){var a=this.queue.shift(),b=a.url;a=a.options;a.timeout=1E4;g.Hy(b,a,3,1E3).then(this.B,this.B);this.u=!0;this.C=(0,g.GA)();5<this.queue.length&&Zwa(this)}};
zJ.prototype.flush=function(){for(;this.queue.length;){var a=this.queue.shift();g.Dy(a.url,a.options)}};g.x(AJ,g.aE);AJ.prototype.add=function(a,b){!this.items[a]&&(b.dB||b.JK||b.rI)&&(this.items[a]=iba(b),this.ma("vast_info_card_add",a))};
AJ.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
AJ.prototype.get=function(a){return this.items[a]||null};
AJ.prototype.isEmpty=function(){return g.fd(this.items)};var sK={NFa:1,OFa:2,PFa:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};var $wa=!1,CJ,DJ,EJ,FJ,GJ;HJ.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.u,d=0;d<b&&16>this.j;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;d<e;)axa(this),a[d++]^=c[0],a[d++]^=c[1],a[d++]^=c[2],a[d++]^=c[3],a[d++]^=c[4],a[d++]^=c[5],a[d++]^=c[6],a[d++]^=c[7],a[d++]^=c[8],a[d++]^=c[9],a[d++]^=c[10],a[d++]^=c[11],a[d++]^=c[12],a[d++]^=c[13],a[d++]^=c[14],a[d++]^=c[15];if(d<b)for(axa(this),this.j=0;d<b;)a[d++]^=c[this.j++];return a};
HJ.prototype.ZH=function(a){for(var b=0;4>b;b++)this.counter[b]=a[4*b]<<24|a[4*b+1]<<16|a[4*b+2]<<8|a[4*b+3];this.j=16};var IJ=!1;(function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
function b(d){return new Uint8Array(d)}
var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a})();
var JJ;g.x(LJ,g.E);LJ.prototype.encrypt=function(a){this.j.AES128CTRCipher_encrypt(this.cipher,a.byteOffset,a.byteLength);return a};
LJ.prototype.ZH=function(a){this.j.AES128CTRCipher_setCounter(this.cipher,a.byteOffset)};g.MJ.prototype.encrypt=function(a,b){var c=this,d,e;return g.A(function(f){if(1==f.j){d=KJ();if(!d)return f.return(c.j(a,b));g.ua(f,3);return g.y(f,c.u(a,b,d),5)}if(3!=f.j)return f.return(f.u);e=g.xa(f);g.AD(e);IJ=!0;return f.return(c.j(a,b))})};
g.MJ.prototype.u=function(a,b,c){var d=this,e,f,h;return g.A(function(l){switch(l.j){case 1:if(d.D){l.Ka(2);break}e=d;return g.y(l,c.importKey("raw",d.C,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:e.D=l.u;case 2:return f={name:"AES-CTR",counter:b,length:128},g.y(l,c.encrypt(f,d.D,a),4);case 4:return h=l.u,l.return(new Uint8Array(h))}})};
g.MJ.prototype.j=function(a,b){this.B||(this.B=new HJ(this.C));this.B.ZH(b);return this.B.encrypt(a)};
g.MJ.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
g.NJ.prototype.encrypt=function(a,b){this.j||(this.j=new HJ(this.u));this.j.ZH(b);return this.j.encrypt(a)};
g.NJ.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
OJ.prototype.encrypt=function(a,b){this.B||(this.B=new LJ(this.j,this.D));this.B.ZH(b);return this.B.encrypt(a)};
OJ.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
T3.Xu(OJ,{encrypt:"oaw",decrypt:"oaw"});PJ.prototype.reset=function(){cxa(this);this.update(this.B)};
PJ.prototype.update=function(a){var b=0,c=a.length;this.C+=c;this.u&&64<=this.u+c&&(this.I.set(a.subarray(0,64-this.u),this.u),b=64-this.u,this.u=0,bxa(this,this.I,0));for(;b+64<=c;b+=64)bxa(this,a,b);b<c&&(a=a.subarray(b),this.I.set(a,this.u),this.u+=a.length)};
var QJ=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,
4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];var Ycb;Ycb={};g.Zcb=g.rB("yt-idb-pref-storage",{Fq:(Ycb.prefs={Cm:1},Ycb),shared:!1,upgrade:function(a,b){b(1)&&g.OA(g.IA(a,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});g.x(RJ,g.MJ);RJ.prototype.j=function(a,b){var c=T3.Xq("oap");b=g.MJ.prototype.j.call(this,a,b);T3.Rp(c,Math.ceil(a.length/16));return b};
RJ.prototype.u=function(a,b,c){var d=this,e,f;return g.A(function(h){if(1==h.j)return e=T3.Xq("oan2"),g.y(h,g.MJ.prototype.u.call(d,a,b,c),2);f=h.u;T3.Rp(e,Math.ceil(a.byteLength/16));return h.return(f)})};
g.x(SJ,g.NJ);SJ.prototype.encrypt=function(a,b){var c=T3.Xq("oap");b=g.NJ.prototype.encrypt.call(this,a,b);T3.Rp(c,Math.ceil(a.byteLength/16));return b};
g.x(TJ,OJ);TJ.prototype.encrypt=function(a,b){if(a.buffer!==this.j.memory.buffer){var c=new Uint8Array(this.j.memory.buffer,this.j.malloc(a.byteLength),a.byteLength);this.u.add(c.byteOffset);c.set(a)}if(b.buffer!==this.j.memory.buffer){var d=new Uint8Array(this.j.memory.buffer,this.j.malloc(b.byteLength),b.byteLength);this.u.add(d.byteOffset);d.set(b)}return OJ.prototype.encrypt.call(this,c||a,d||b)};
TJ.prototype.isDisposed=function(){return this.C};
TJ.prototype.dispose=function(){this.C=!0;for(var a=g.v(this.u),b=a.next();!b.done;b=a.next())this.j.free(b.value);this.u.clear()};
T3.Xu(TJ,{encrypt:"oawc",decrypt:"oawc"});VJ.prototype.xi=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.u+=a};
VJ.prototype.aj=function(){return this.j/(1-Math.pow(this.alpha,this.u))};WJ.prototype.xi=function(a,b){a=Math.min(this.j,Math.max(1,Math.round(a*this.resolution)));a+this.u>=this.j&&(this.B=!0);for(;a--;)this.values[this.u]=b,this.u=(this.u+1)%this.j;this.D=!0};
WJ.prototype.aj=function(){return this.J?(XJ(this,this.C-this.J)+XJ(this,this.C)+XJ(this,this.C+this.J))/3:XJ(this,this.C)};g.x(txa,g.E);dK.prototype.then=function(a,b){return this.promise.then(a,b)};
dK.prototype.resolve=function(a){this.u(a)};
dK.prototype.reject=function(a){this.j(a)};var zxa="blogger gac books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),Fxa={Uia:"cbrand",dja:"cbr",eja:"cbrver",pya:"c",sya:"cver",rya:"ctheme",qya:"cplayer",xJa:"cmodel",nKa:"cnetwork",mOa:"cos",nOa:"cosver",aPa:"cplatform"};g.x(yK,g.E);g.k=yK.prototype;g.k.K=function(a){return this.experiments.kb(a)};
g.k.getVideoUrl=function(a,b,c,d,e,f,h){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.CK(this);e="www.youtube.com"===c;h&&this.K("fill_live_watch_url_in_watch_endpoint")&&e?f="https://"+c+"/live/"+a:!f&&d&&e?f="https://web.archive.org/web/20230505074338/https://youtu.be/"+a:g.pK(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),kB&&(a=Ina())&&(b.ebc=a));return g.Ui(f,b)};
g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.CK(this)+"/embed/"+b;d&&(b=g.Ui(b,{list:d}));d=c.width;c=c.height;b=g.Ge(b);a=g.Ge(null!=a?a:"YouTube video player");return'<iframe width="'+d+'" height="'+c+'" src="'+b+'" title="'+(a+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>')};
g.k.supportsGaplessAudio=function(){return g.hI&&!kB&&74<=joa()||g.iJ&&g.Lc(68)?!0:!1};
g.k.supportsGaplessShorts=function(){return this.K("html5_enable_short_gapless")?!0:!1};
g.k.getPlayerType=function(){return this.j.cplayer};
g.k.Qd=function(){return this.Rf};
var Hxa=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],Exa=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"];g.k=VK.prototype;g.k.qh=function(){return this.j};
g.k.JA=function(){return null};
g.k.wR=function(){var a=this.JA();return a?(a=g.oy(a.j),Number(a.expire)):NaN};
g.k.ZO=function(){};
g.k.getHeight=function(){return this.j.video.height};Ixa.prototype.wf=function(){Lxa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.v(this.B),e=d.next();!e.done;e=d.next())if(e=e.value,e.Ic){if(e.Ic.getIsDefault()){c=e.Ic.getId();break a}c||(c=e.Ic.getId())}}d=g.v(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.I||!e.Ic||e.Ic.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.v(this.u);for(e=c.next();!e.done;e=c.next())if(d=e.value,e=b[d.j])for(e=g.v(e),f=e.next();!f.done;f=
e.next()){var h=a,l=h.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.Ic){p=f.Ic;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";null!==d&&(q=d.itag.toString());q=XK(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(Kxa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}c=g.v(this.D);for(d=c.next();!d.done;d=c.next())d=d.value,e=$cb,d=(h=d.Ic)?'#EXT-X-MEDIA:URI="'+XK(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=0<this.D.length?$cb:void 0;d=g.v(this.u);for(e=d.next();!e.done;e=d.next())e=e.value,h=b[e.j],l=void 0,0<(null==(l=h)?void 0:l.length)&&(h=h[0],h="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+h.bitrate)+',CODECS="'+(e.codecs+","+h.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(Kxa(h,e)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<e.fps&&(h+=",FRAME-RATE="+
e.fps),e.iA&&(h+=",VIDEO-RANGE="+e.iA),a.push(h),a.push(XK(this,e.url,"")));return a.join("\n")};
var $cb="text";g.x(YK,VK);YK.prototype.wR=function(){return this.expiration};
YK.prototype.JA=function(){if(!this.u||this.u.isDisposed()){var a=this.B.wf();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.u=new xI(a)}return this.u};g.x(ZK,VK);ZK.prototype.JA=function(){return new xI(this.u.Ze())};
ZK.prototype.ZO=function(){this.u=FF(this.u)};g.x($K,VK);$K.prototype.JA=function(){return new xI(this.u)};var adb={},Xxa=(adb.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",adb.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",adb);g.k=g.aL.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.j};
g.k.Ze=function(){return this.url};
g.k.toString=function(){return this.languageCode+": "+g.bL(this)+" - "+this.vssId+" - "+(this.captionId||"")};
g.k.equals=function(a){return a?this.toString()===a.toString():!1};
g.k.De=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var aya={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},bya={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},cya=/^(\d*)_((\d*)_?(\d*))$/;var eya={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},fya={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var W3={},fza=(W3.ALWAYS=1,W3.BY_REQUEST=3,W3.UNKNOWN=void 0,W3),X3={},kza=(X3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",X3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",X3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",X3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",X3);iL.prototype.getState=function(){return this.store.getState()};
iL.prototype.dispatch=function(a){return this.store.dispatch(a)};
iL.prototype.subscribe=function(a){return this.store.subscribe(a)};
iL.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
iL.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};var tya=!1;for(var yya={buttonEntity:358,captionTrack:225,channelHandle:275,commerceCartListEntity:236,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,emojiFountainDataEntity:393,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,liveChatPollStateEntity:217,logoEntity:245,macroMarkerEntity:329,
mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,
musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,settingEntity:297,transfer:120,videoPlaybackPositionEntity:76,ytMainChannelEntity:152,
ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},xya={},bdb=g.v(Object.entries(yya)),cdb=bdb.next();!cdb.done;cdb=bdb.next()){var ddb=g.v(cdb.value),edb=ddb.next().value,fdb=ddb.next().value,gdb=edb,hdb=fdb;hdb&&(xya[hdb]=gdb)};var Y3;Y3={};g.idb=(Y3.INVALID_ENCODER_VERSION="Invalid encoder version",Y3.KEY_CREATION_FAILED="Failed to create encoder key",Y3.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Y3.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Y3.WRONG_DATA_TYPE="Encoder cannot process the data type",Y3);var qya;
qya=function(a){for(var b=Object.keys(a),c={},d=0;d<b.length;d++){var e=b[d];"function"===typeof a[e]&&(c[e]=a[e])}var f=Object.keys(c);try{mma(c)}catch(l){var h=l}return function(l,m){l=void 0===l?{}:l;if(h)throw h;for(var n=!1,p={},q=0;q<f.length;q++){var t=f[q],w=l[t],z=(0,c[t])(w,m);if("undefined"===typeof z)throw l=m&&m.type,Error("When called with an action of type "+(l?'"'+String(l)+'"':"(unknown type)")+', the slice reducer for key "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');p[t]=
z;n=n||z!==w}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=void 0===a?{}:a;
return Aya(a,b)}});
g.vM=new iL;GL.prototype.toString=function(){return this.type+this.id};g.IL.prototype.vg=function(a){a=a||"hqdefault.jpg";var b=this.ea[a];if(b)return b;if("sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.j)return DK(this.u,this.j,a)};
g.IL.prototype.Bk=function(){return this.u.getVideoUrl(this.videoId,this.playlistId)};g.JL.prototype.vg=function(a){a||(a="hqdefault.jpg");var b=this.ea[a];return b?b:"pop1.jpg"===a||"pop2.jpg"===a||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a?b:DK(this.j,this.videoId,a)};
g.JL.prototype.Bk=function(a){return this.watchUrl||this.j.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,a)};var Eya=["APP_STATE","PI"];var Z3={},Iya=g.rB("yt-player-local-media",{Fq:(Z3.index={Cm:2},Z3.media={Cm:2},Z3.captions={Cm:5},Z3),shared:!1,upgrade:function(a,b){b(2)&&(g.IA(a,"index"),g.IA(a,"media"));b(5)&&g.IA(a,"captions");b(6)&&(JA(a,"metadata"),JA(a,"playerdata"))},
version:5});ML.prototype.set=function(a,b,c){c=void 0!==c?Date.now()+c:void 0;this.j.set(a,b,c)};
ML.prototype.get=function(a){return this.j.get(a)};
ML.prototype.remove=function(a){this.j.remove(a)};var NL=void 0;Fya("LMS",function(){return g.A(function(a){return a.return(g.OL())})});var SL,Oya;SL=0;Oya=!1;g.Rya=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;Fya("LMDB",function(){var a,b;return g.A(function(c){if(1==c.j)return g.y(c,g.pB(),2);if(3!=c.j){a=c.u;if(!a)throw g.zA("edd");return g.y(c,g.RL(a),3)}b=c.u;return c.return(g.KA(b,["index","media","captions"],{mode:"readonly",Wb:!0},function(d){var e={};d=[g.PA(d.objectStore("index"),{},function(f){e[f.getKey()]=f.getValue();return f.continue()}),
upa(d.objectStore("media")),upa(d.objectStore("captions"))];return g.BA.all(d).then(function(f){var h=g.v(f);h.next();f=h.next().value;h=h.next().value;return{index:e,media:Sya(f||[]),captions:h}})}))})});g.x(UL,g.aE);UL.prototype.qa=function(){this.j&&(this.j=this.j.onload=null);g.aE.prototype.qa.call(this)};g.k=g.YL.prototype;g.k.getHeight=function(){return this.height};
g.k.PT=aa(3);g.k.KE=function(){return this.frameCount};
g.k.isDefault=function(){return-1!==this.B.indexOf("default")};
g.k.isLoaded=function(a){return this.loaded.has(a)};
g.k.Ze=function(a){var b=this.D;b=b.replace("$N",this.B);b=b.replace("$L",this.level.toString());b=b.replace("$M",a.toString());this.C&&(b=g.Ui(b,{sigh:this.C}));return SD(b)};
g.k.LE=function(a){var b=this.KE()-1;return g.pe(0===this.j?Math.round(a*this.frameCount/this.videoLength):Math.round(1E3*a/this.j),0,b)};
g.k.gx=function(){return this.frameCount-1};
g.k.xJ=function(){return this.frameCount?0:-1};
g.k.xR=function(){};g.x(ZL,UL);ZL.prototype.u=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;e<a.length;e++){var f=this.D(e-1,d,a[e],b);(this.J||180>f.getHeight())&&c.push(f)}return c};
ZL.prototype.D=function(a,b,c,d){return new g.YL(a,b,c,d)};g.x($L,g.YL);g.k=$L.prototype;g.k.KE=function(){return this.u.Dy()};
g.k.LE=function(a){var b=this.rows*this.columns*this.I,c=this.u,d=c.ud();a=c.rh(a);return a>d-b?-1:a};
g.k.gx=function(){return this.u.ud()};
g.k.xJ=function(){return this.u.Lm()};
g.k.xR=function(a){this.u=a};g.x(aM,ZL);aM.prototype.u=function(a,b){return ZL.prototype.u.call(this,"$N|"+a,b)};
aM.prototype.D=function(a,b,c){return new $L(a,b,c,this.isLive)};g.x(g.cM,g.aE);g.k=g.cM.prototype;g.k.T=function(){return this.B};
g.k.K=function(a){return this.B.K(a)};
g.k.wh=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.Yk)||!a.Gb)};
g.k.fW=function(){this.isDisposed()||(this.j.u||this.j.unsubscribe("refresh",this.fW,this),this.SS(-1))};
g.k.SS=function(a){if(!this.isLivePlayback||!this.I||"fairplay"!=this.I.flavor){var b=awa(this.j,this.TJ);if(0<b.length){for(var c=g.v(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.Kd());this.ma("cuepointupdated",b,a);this.TJ+=b.length;if(mM(this)&&this.B.Qd())for(b=g.v(b),d=b.next();!d.done;d=b.next())c=d.value,this.xa("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,id:c.identifier.slice(-16)}),"start"===c.event&&(c=c.startSecs,this.bE.start=this.zC,this.bE.end=
c+3)}}};
g.k.Nl=function(){return this.Nd?!0:!!this.j&&qF(this.j)};
g.k.Ej=function(){if(this.cotn)return null;var a=g.IK(this.B)||this.K("web_l3_storyboard");if(!this.Kj)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Kj=new ZL(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=eba(this.j.j).index)&&(this.Kj=new aM(b.spec,this.j.isLive,c,a))}else this.xx?this.Kj=new ZL(this.xx,this.lengthSeconds,void 0,!1,a):this.mx&&this.j&&
(b=eba(this.j.j).index)&&(this.Kj=new aM(this.mx,this.j.isLive,b,a));return this.Kj};
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.xx||this.mx};
g.k.qe=function(){return this.j&&!isNaN(this.j.qe())?this.j.qe():mM(this)?this.K("html5_live_seek_timeline_timestamps")||this.K("html5_sabr_live")?46800:0:this.lengthSeconds};
g.k.Kd=function(){return this.j&&!isNaN(this.j.Kd())?this.j.Kd():0};
g.k.getPlaylistSequenceForTime=function(a){if(this.j&&this.u){var b=this.j.j[this.u.id];if(!b)return null;var c=b.index.rh(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.De=function(){return!this.isDisposed()&&!(!this.videoId&&!this.lm)};
g.k.Uu=function(){var a,b,c;return!!this.adaptiveFormats||!!(null==(a=this.playerResponse)?0:null==(b=a.streamingData)?0:null==(c=b.adaptiveFormats)?0:c.length)};
g.k.isLoaded=function(){return dM(this)&&!this.Tf&&!this.zm};
g.k.vg=function(a){if(30==this.Aa)return(a=this.ea["default.jpg"])?a:this.videoId?g.Ui("//web.archive.org/web/20230505074338/https://docs.google.com/vt",{id:this.videoId,authuser:this.authUser,authkey:this.QR}):"//web.archive.org/web/20230505074338/https://docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.ea[a];return b||this.B.oa||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:DK(this.B,this.videoId,a)};
g.k.Zc=function(){return this.isLivePlayback||this.Se||this.Kc||!(!this.liveUtcStartSeconds||!this.fm)};
g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.Se&&!this.isLivePlayback&&this.j.u)};
g.k.getAvailableAudioTracks=function(){return this.C?0<this.C.getAvailableAudioTracks().length?this.C.getAvailableAudioTracks():this.kx||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.D&&!IH(this.D))return g.sb(this.getAvailableAudioTracks(),function(d){return d.id==a.D.id})||this.qm;
if(this.kx){if(!this.Tn)for(var b=g.v(this.kx),c=b.next();!c.done;c=b.next())if(c=c.value,c.Ic.getIsDefault()){this.Tn=c;break}return this.Tn||this.qm}return this.qm};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.getHeartbeatResponse=function(){return this.bJ};
g.k.Bk=function(){return this.watchUrl?this.watchUrl:this.B.getVideoUrl(this.videoId)};
g.k.GM=function(){return!!this.j&&(Rva(this.j)||Sva(this.j)||Tva(this.j))};
g.k.isAd=function(){return!!this.adFormat};
g.k.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.k.lP=function(){return this.jo||this.Rf};
g.k.SD=function(){return this.Zi||this.Rf};
g.k.pK=function(){return iM(this,"html5_samsung_vp9_live")};
g.k.useInnertubeDrmService=function(){return!0};
g.k.xa=function(a,b,c){this.ma("ctmp",a,b,c)};
g.k.JO=function(a,b,c){this.ma("ctmpstr",a,b,c)};
g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.k.qa=function(){g.aE.prototype.qa.call(this);this.fA=null;delete this.e1;delete this.accountLinkingConfig;delete this.j;this.C=this.bJ=this.playerResponse=this.fd=null;this.uf=this.adaptiveFormats="";delete this.botguardData;this.Vd=this.suggestions=this.mA=null};eN.prototype.D=function(){return!1};
eN.prototype.Ja=function(){return function(){return null}};var mN=null;g.x(lN,g.aE);lN.prototype.KB=function(a){return this.j.hasOwnProperty(a)?this.j[a].KB():{}};
g.Ka("ytads.bulleit.getVideoMetadata",function(a){return nN().KB(a)});
g.Ka("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=nN();c=iAa(c);null!==c&&d.ma(c,{queryId:a,viewabilityString:b})});g.x(sN,eN);sN.prototype.isSkippable=function(){return null!=this.Aa};
sN.prototype.Pd=function(){return this.V};
sN.prototype.getVideoUrl=function(){return null};
sN.prototype.D=function(){return!0};g.x(BN,eN);BN.prototype.D=function(){return!0};
BN.prototype.Ja=function(){return function(){return g.Te("video-ads")}};pAa.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.j.j};var D5a={d$:"FINAL",eZ:"AD_BREAK_LENGTH",Mda:"AD_CPN",Tda:"AH",Xda:"AD_MT",aea:"ASR",eea:"AW",xla:"NM",yla:"NX",zla:"NY",oZ:"CONN",qma:"CPN",Voa:"DV_VIEWABILITY",Rpa:"ERRORCODE",aqa:"ERROR_MSG",dqa:"EI",FZ:"GOOGLE_VIEWABILITY",wxa:"IAS_VIEWABILITY",DAa:"LACT",P0:"LIVE_TARGETING_CONTEXT",dGa:"I_X",eGa:"I_Y",rIa:"MT",FIa:"MIDROLL_POS",GIa:"MIDROLL_POS_MS",LIa:"MOAT_INIT",MIa:"MOAT_VIEWABILITY",b1:"P_H",DPa:"PV_H",EPa:"PV_W",d1:"P_W",XPa:"TRIGGER_TYPE",ESa:"SDKV",l1:"SLOT_POS",kZa:"SURVEY_LOCAL_TIME_EPOCH_S",
jZa:"SURVEY_ELAPSED_MS",A1:"VIS",b4a:"VIEWABILITY",i4a:"VED",B1:"VOL",l4a:"WT",F1:"YT_ERROR_CODE"};var fBa=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];HN.prototype.send=function(a,b,c){try{gBa(this,a,b,c)}catch(d){}};g.x(IN,HN);IN.prototype.j=function(){return this.Al?g.QK(this.Al.T(),g.YM(this.Al)):Ky("")};
IN.prototype.B=function(){return this.Al?this.Al.T().pageId:""};
IN.prototype.u=function(){return this.Al?this.Al.T().authUser:""};
IN.prototype.K=function(a){return this.Al?this.Al.K(a):!1};var jdb=eaa(["attributionsrc"]);
MN.prototype.send=function(a,b,c){var d=!1;try{var e=new g.zk(a);if("2"===e.u.get("ase"))g.AD(Error("Queries for attributionsrc label registration when sending pings.")),d=!0,a=KN(a);else if("1"===e.u.get("ase")&&"video_10s_engaged_view"===e.u.get("label")){var f=document.createElement("img");Cga([new Mj(jdb[0].toLowerCase(),Aoa)],f,"attributionsrc",a+"&asr=1")}var h=a.match(Ni);if("https"===h[1])var l=a;else h[1]="https",l=Li("https",h[2],h[3],h[4],h[5],h[6],h[7]);var m=dla(l);h=[];ty(l)&&(h.push({headerType:"USER_AUTH"}),
h.push({headerType:"PLUS_PAGE_ID"}),h.push({headerType:"VISITOR_ID"}),h.push({headerType:"EOM_VISITOR_ID"}),h.push({headerType:"AUTH_USER"}));d&&h.push({headerType:"ATTRIBUTION_REPORTING_ELIGIBLE"});this.mu.send({baseUrl:l,scrubReferrer:m,headers:h},b,c)}catch(n){}};g.x(KBa,g.E);g.x(cO,g.aE);g.k=cO.prototype;g.k.KB=function(){return{}};
g.k.qX=function(){};
g.k.ih=function(a){this.Bu();this.ma(a)};
g.k.Bu=function(){QBa(this,this.oa,3);this.oa=[]};
g.k.getDuration=function(){return this.F.getDuration(2,!1)};
g.k.aC=function(){var a=this.bb;NN(a)||!WN(a,"impression")&&!WN(a,"start")||WN(a,"abandon")||WN(a,"complete")||WN(a,"skip")||ZN(a,"pause");this.B||(a=this.bb,NN(a)||!WN(a,"unmuted_impression")&&!WN(a,"unmuted_start")||WN(a,"unmuted_abandon")||WN(a,"unmuted_complete")||ZN(a,"unmuted_pause"))};
g.k.bC=function(){this.ya||this.J||this.Rm()};
g.k.Di=function(){QN(this.bb,this.getDuration());if(!this.B){var a=this.bb;this.getDuration();NN(a)||(NBa(a,0,!0),OBa(a,0,0,!0),PN(a,"unmuted_complete"))}};
g.k.Ko=function(){var a=this.bb;!WN(a,"impression")||WN(a,"skip")||WN(a,"complete")||VN(a,"abandon");this.B||(a=this.bb,WN(a,"unmuted_impression")&&!WN(a,"unmuted_complete")&&VN(a,"unmuted_abandon"))};
g.k.fM=function(){var a=this.bb;a.daiEnabled?PN(a,"skip"):!WN(a,"impression")||WN(a,"abandon")||WN(a,"complete")||PN(a,"skip")};
g.k.Rm=function(){if(!this.J){var a=this.zB();this.bb.macros.AD_CPN=a;a=this.bb;if(a.daiEnabled){var b=a.u.getCurrentTime(2,!1);TN(a,"impression",b,0)}else PN(a,"impression");PN(a,"start");NN(a)||a.u.isFullscreen()&&VN(a,"fullscreen");this.J=!0;this.B=this.F.isMuted()||0==this.F.getVolume();this.B||(a=this.bb,PN(a,"unmuted_impression"),PN(a,"unmuted_start"),NN(a)||a.u.isFullscreen()&&VN(a,"unmuted_fullscreen"))}};
g.k.Lo=function(a){a=a||"";var b="",c="",d="";fN(this.F)&&(b=this.F.Cb(2).state,this.F.ue()&&(c=this.F.ue().uj(),null!=this.F.ue().Ye()&&(d=this.F.ue().Ye())));var e=this.bb;e.macros=GN(e.macros,wAa("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));PN(e,"error");this.B||(e=this.bb,e.macros=GN(e.macros,wAa("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d))),PN(e,"unmuted_error"))};
g.k.eh=function(){};
g.k.aX=function(){this.ma("adactiveviewmeasurable")};
g.k.bX=function(){this.ma("adfullyviewableaudiblehalfdurationimpression")};
g.k.cX=function(){this.ma("adoverlaymeasurableimpression")};
g.k.dX=function(){this.ma("adoverlayunviewableimpression")};
g.k.eX=function(){this.ma("adoverlayviewableendofsessionimpression")};
g.k.fX=function(){this.ma("adoverlayviewableimmediateimpression")};
g.k.gX=function(){this.ma("adviewableimpression")};
g.k.dispose=function(){this.isDisposed()||(this.Bu(),this.j.unsubscribe("adactiveviewmeasurable",this.aX,this),this.j.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.bX,this),this.j.unsubscribe("adoverlaymeasurableimpression",this.cX,this),this.j.unsubscribe("adoverlayunviewableimpression",this.dX,this),this.j.unsubscribe("adoverlayviewableendofsessionimpression",this.eX,this),this.j.unsubscribe("adoverlayviewableimmediateimpression",this.fX,this),this.j.unsubscribe("adviewableimpression",
this.gX,this),delete this.j.j[this.ad.J],g.aE.prototype.dispose.call(this))};
g.k.zB=function(){var a=this.F.getVideoData(2);return a&&a.clientPlaybackNonce||""};
g.k.qT=function(){return""};g.x(dO,eN);g.x(eO,jN);g.x(fO,cO);g.k=fO.prototype;g.k.ME=function(){0<this.u&&this.Rm()};
g.k.Rm=function(){var a=this;this.Ec=new g.Ap(function(){a.Di();for(var b=g.v(a.C.j.completionCommands||[]),c=b.next();!c.done;c=b.next())a.D.executeCommand(c.value,a.macros);a.ih("adended")},this.u,this);
g.I(this,this.Ec);this.Ec.start();RBa(this,[new eO(this.C.j,this.macros)]);cO.prototype.Rm.call(this)};
g.k.Ko=function(){cO.prototype.Ko.call(this);this.ih("adabandoned")};
g.k.Di=function(){cO.prototype.Di.call(this)};
g.k.ih=function(a){this.Ec&&this.Ec.stop();cO.prototype.ih.call(this,a)};g.x(gO,eN);g.x(hO,eN);TBa.prototype.create=function(a,b){return a instanceof sN?this.C.create(a,b):a instanceof dO?this.j.create(a,b):a instanceof hO?this.B.create(a,b):a instanceof gO?this.u.create(a,b):null};g.x(iO,cO);g.k=iO.prototype;g.k.Ko=function(){cO.prototype.Ko.call(this);this.ih("adabandoned")};
g.k.aC=function(){cO.prototype.aC.call(this);this.ma("adpause",2)};
g.k.bC=function(){cO.prototype.bC.call(this);this.ma("adplay",1)};
g.k.Rm=function(){cO.prototype.Rm.call(this);this.u.stop();this.C.S(this.F,g.WD("bltplayback"),this.P_);var a=new g.UD(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.F.Ae([a],2);this.ma("adplay",1)};
g.k.Di=function(){cO.prototype.Di.call(this);this.ih("adended")};
g.k.Lo=function(a){cO.prototype.Lo.call(this,a);this.ih("aderror")};
g.k.ME=function(){hN(this.F,!1);var a=this.D.u||{};a.autoplay="1";this.F.cueVideoByPlayerVars(a,2);this.u.start();this.F.playVideo(2);this.F.Na("onAdIntroStateChange",1)};
g.k.ih=function(a){this.u.stop();hN(this.F,!0);"adabandoned"!=a&&this.F.Na("onAdComplete");this.F.Na("onAdEnd");this.ma(a);this.F.Na("onAdIntroStateChange",0)};
g.k.P_=function(a){"bltcompletion"==a.getId()&&(this.F.hf("bltplayback",2),QN(this.bb,this.getDuration()))};var r2a=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);g.x(lO,jN);g.x(mO,cO);g.k=mO.prototype;g.k.ME=function(){if(this.I){var a=this.u.j;if(!kO(a)){g.AD(Error("adMessageRenderer is not augmented on playAd"));return}a=a.slot;for(var b=g.v(this.I.listeners),c=b.next();!c.done;c=b.next()){var d=c.value;c=a;cCa(d.j(),c);dCa(d.j(),c);d=d.j();d=g.v(d.Hd);for(var e=d.next();!e.done;e=d.next())e.value.Pj(c)}}0>=this.V&&(g.zD(Error("durationMs was specified incorrectly with a value of: "+this.V)),this.Di());this.Rm();this.F.addEventListener("progresssync",this.Z)};
g.k.Ko=function(){cO.prototype.Ko.call(this);this.ih("adabandonedreset",!0)};
g.k.Rm=function(){var a=this.F.T();cF("apbs",void 0,"video_to_ad");cO.prototype.Rm.call(this);this.C=a.K("disable_rounding_ad_notify")?this.F.getCurrentTime():Math.floor(this.F.getCurrentTime());this.D=this.C+this.V/1E3;g.wK(a)?this.F.Na("onAdMessageChange",{renderer:this.u.j,startTimeSecs:this.C}):RBa(this,[new lO(this.u.j)]);a=(a=this.F.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.CE(),c=this.u.j.videoAdBreakOffsetMsInt64;b&&g.nA("adNotify",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*
this.D),timeToAdBreakSec:Math.ceil(this.D-this.C),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.I){this.ea=!0;b=this.u.j;if(!kO(b)){g.AD(Error("adMessageRenderer is not augmented on ad started"));return}a=b.slot;b=b.layout;c=g.v(this.I.listeners);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=a,f=b;eCa(d.j(),e);f0(d.j(),e,f)}}g.UN(this.F.Cb(1),512)&&(g.AD(Error("player stuck during adNotify")),a=(a=this.F.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.CE(),c=this.u.j.videoAdBreakOffsetMsInt64,
b&&g.nA("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.D),timeToAdBreakSec:Math.ceil(this.D-this.C),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.Di())};
g.k.Di=function(){cO.prototype.Di.call(this);this.ih("adended",!0)};
g.k.Lo=function(a){g.AD(new g.Yz("Player error during adNotify.",{errorCode:a}));cO.prototype.Lo.call(this,a);this.ih("aderror",!0)};
g.k.ih=function(a,b){(void 0===b?0:b)||g.AD(Error("TerminateAd directly called from other class during adNotify."));this.F.removeEventListener("progresssync",this.Z);this.Bu();XBa(this,a);"adended"===a||"aderror"===a?this.ma("adnotifyexitednormalorerror"):this.ma(a)};
g.k.dispose=function(){this.F.removeEventListener("progresssync",this.Z);XBa(this);cO.prototype.dispose.call(this)};
g.k.Bu=function(){g.wK(this.F.T())?this.F.Na("onAdMessageChange",{renderer:null,startTimeSecs:this.C}):cO.prototype.Bu.call(this)};qO.prototype.sendAdsPing=function(a){this.B.send(a,YBa(this),{})};
qO.prototype.Gg=function(a){var b=this;if(a){var c=YBa(this);Array.isArray(a)?a.forEach(function(d){return b.j.executeCommand(d,c)}):this.j.executeCommand(a,c)}};g.x(rO,cO);g.k=rO.prototype;g.k.KB=function(){return{currentTime:this.F.getCurrentTime(2,!1),duration:this.u.u,isPlaying:gAa(this.F),isVpaid:!1,isYouTube:!0,volume:this.F.isMuted()?0:this.F.getVolume()/100}};
g.k.ME=function(){var a=this.u.j.legacyInfoCardVastExtension,b=this.u.Pd();a&&b&&this.F.T().Aa.add(b,{dB:a});try{var c=this.u.j.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{$ka(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.Sd("//web.archive.org/web/20230505074338/https://tpc.googlesyndication.com/sodar/%{path}");g.AD(new g.Yz("Load Sodar Error.",d instanceof Qd,d.constructor===Qd,{Message:e.message,"Escaped injector basename":g.Ge(c.siub),"BG vm basename":c.bgub}));if(d.constructor===Qd)throw e;}}catch(e){g.zD(e)}hN(this.F,!1);
a=nAa(this.u);b=this.F.T();a.iv_load_policy=b.u||g.wK(b)||g.IK(b)?3:1;b=this.F.getVideoData(1);b.Ji&&(a.ctrl=b.Ji);b.mj&&(a.ytr=b.mj);b.Jp&&(a.ytrcc=b.Jp);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.ek&&(a.vss_credentials_token_type=b.ek),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.ma("adunstarted",-1);this.V?this.D.start():(this.F.cueVideoByPlayerVars(a,2),this.D.start(),this.F.playVideo(2))};
g.k.aC=function(){cO.prototype.aC.call(this);this.ma("adpause",2)};
g.k.bC=function(){cO.prototype.bC.call(this);this.ma("adplay",1)};
g.k.Rm=function(){cO.prototype.Rm.call(this);this.D.stop();this.ea.S(this.F,g.WD("bltplayback"),this.Q_);var a=new g.UD(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.F.Ae([a],2);a=vO(this);this.C.Ga=a;if(this.F.isMuted()){a=this.bb;var b=this.F.isMuted();a.daiEnabled||PN(a,b?"mute":"unmute")}this.ma("adplay",1);if(null!==this.I){a=null!==this.C.j.getVideoData(1)?this.C.j.getVideoData(1).clientPlaybackNonce:"";b=aCa(this);for(var c=this.u,d=$Ba(this),
e=g.v(this.I.listeners),f=e.next();!f.done;f=e.next()){f=f.value;var h=b,l=c,m=d,n=[],p=l.Pd(),q=l.getVideoUrl();p&&n.push(new t_(p));q&&n.push(new V1a(q));(q=(p=l.j)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new v_(q)),(q=q.elementId)&&n.push(new z_(q))):DD("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new w_(p));l.j.adNextParams&&n.push(new k_(l.j.adNextParams||""));(p=l.Ga)&&n.push(new l_(p));(p=f.Ta.get().rg(2))?
(n.push(new m_({channelId:p.bk,channelThumbnailUrl:p.profilePicture,channelTitle:p.author,videoTitle:p.title})),n.push(new n_(p.isListed))):DD("Expected meaningful PlaybackData on ad started.");n.push(new p_(l.B));n.push(new E_(l.u));n.push(new u_(a));n.push(new B_({current:this}));p=l.Pa;null!=p.kind&&n.push(new o_(p));(p=l.La)&&n.push(new Q_(p));void 0!==m&&n.push(new R_(m));f.j?DD(f.j.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):
bCa(f,h,n,!0,l.j.adLayoutLoggingData)}}this.F.Na("onAdStart",vO(this));a=g.v(this.u.j.impressionCommands||[]);for(b=a.next();!b.done;b=a.next())this.C.executeCommand(b.value,this.macros)};
g.k.Q_=function(a){"bltcompletion"==a.getId()&&(this.F.hf("bltplayback",2),QN(this.bb,this.getDuration()),uO(this,"adended"))};
g.k.Di=function(){cO.prototype.Di.call(this);this.ih("adended");for(var a=g.v(this.u.j.completeCommands||[]),b=a.next();!b.done;b=a.next())this.C.executeCommand(b.value,this.macros)};
g.k.Ko=function(){cO.prototype.Ko.call(this);this.ih("adabandoned")};
g.k.NH=function(){var a=this.bb;NN(a)||VN(a,"clickthrough");this.B||(a=this.bb,NN(a)||VN(a,"unmuted_clickthrough"))};
g.k.eD=function(){this.fM()};
g.k.fM=function(){cO.prototype.fM.call(this);this.ih("adended")};
g.k.Lo=function(a){cO.prototype.Lo.call(this,a);this.ih("aderror")};
g.k.ih=function(a){this.D.stop();hN(this.F,!0);"adabandoned"!=a&&this.F.Na("onAdComplete");uO(this,a);this.F.Na("onAdEnd",vO(this));this.ma(a)};
g.k.Bu=function(){var a=this.F.T();g.wK(a)&&(g.IK(a)||a.K("enable_topsoil_wta_for_halftime")||a.K("enable_topsoil_wta_for_halftime_live_infra")||g.wK(a))?this.F.Na("onAdInfoChange",null):cO.prototype.Bu.call(this)};
g.k.qX=function(){this.u4&&this.F.playVideo()};
g.k.u4=function(){return 2==this.F.getPlayerState(2)};
g.k.qT=function(a,b){if(!Number.isFinite(a))return g.zD(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.zD(Error("Start time is not earlier than end time")),"";var c=1E3*this.u.u,d=nAa(this.u);d=this.F.Ix(d,"",2,c,a,b);a+c>b&&this.F.cA(d,b-a);return d};
g.k.dispose=function(){gAa(this.F)&&!this.V&&this.F.stopVideo(2);uO(this,"adabandoned");cO.prototype.dispose.call(this)};wO.prototype.reduce=function(a){switch(a.event){case "start":case "continue":case "predictStart":case "stop":break;case "unknown":return;default:return}var b=a.identifier;var c=this.j[b];c?b=c:(c={hB:null,jV:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c<b.jV))if(b.jV=c,b.hB){if(c<b.hB.end){a:{c=b.hB;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.Qg;a=a<c.start||c.end<=a?null:a}null!==a&&(b.hB.end=a,this.u.eW(a))}}else if(a=gCa(a,this.B))c=
a.m4,b.hB=a.D2,this.u.UN(c)};
wO.prototype.updateTime=function(){};zO.prototype.Bh=function(a){var b=this.j;g.Af(function(){return b.Bh(a,1)})};g.k=BO.prototype;g.k.Nx=function(a,b,c,d,e){var f=this;oCa(this,a,b,d,e,function(){f.contentCpn=null;f.adCpn=null;f.videoId=null;f.adVideoId=null;f.adFormat=null;f.B="AD_PLACEMENT_KIND_UNKNOWN";f.actionType="unknown_type";f.ag=!1;f.u=!1;f.C=!b&&0===c})};
g.k.mI=function(){var a=this.F.getVideoData(1);if(!this.F.K("html5_no_video_to_ad_on_preroll")||null!=a&&a.Za)this.u=!1,a={},this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId}),$E("video_to_ad",a)};
g.k.tP=function(){this.u=!1;var a={};this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId});$E("ad_to_ad",a)};
g.k.Tz=function(){this.u=!1;var a={};this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId});$E("ad_to_video",a);nCa(this)};
g.k.bP=function(){this.ag&&!this.u&&(this.C=!1,this.u=!0,"ad_to_video"!==this.actionType&&(this.F.K("html5_no_video_to_ad_on_preroll")?(this.F.K("html5_remove_deprecated_ticks")||cF("apbs",void 0,this.actionType),cF("pbs",void 0,this.actionType)):(this.F.K("html5_remove_deprecated_ticks")||bF("apbs",void 0,this.actionType),bF("pbs",void 0,this.actionType)),g.cy("finalize_all_timelines")&&Ita(this.actionType)))};
g.k.reset=function(){return new BO(this.F)};var kdb,$3,sCa;
kdb={Gea:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",ria:"AUTHENTICATION_MALFORMED",sia:"AUTHENTICATION_MISSING",Aia:"BAD_REQUEST",sja:"CAST_SESSION_DEVICE_MISMATCHED",tja:"CAST_SESSION_VIDEO_MISMATCHED",uja:"CAST_TOKEN_EXPIRED",vja:"CAST_TOKEN_FAILED",wja:"CAST_TOKEN_MALFORMED",Uja:"CGI_PARAMS_MALFORMED",Vja:"CGI_PARAMS_MISSING",roa:"DEVICE_FALLBACK",Spa:"GENERIC_WITH_LINK_AND_CPN",Tpa:"ERROR_HDCP",Ypa:"LICENSE",bqa:"VIDEO_UNAVAILABLE",Nva:"FORMAT_UNAVAILABLE",Rva:"GEO_FAILURE",
gxa:"HTML5_AUDIO_RENDERER_ERROR",hxa:"GENERIC_WITHOUT_LINK",ixa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",jxa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",kxa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",wya:"INVALID_DRM_MESSAGE",uRa:"PURCHASE_NOT_FOUND",vRa:"PURCHASE_REFUNDED",PRa:"RENTAL_EXPIRED",WRa:"RETRYABLE_ERROR",RSa:"SERVER_ERROR",aUa:"SIGNATURE_EXPIRED",MWa:"STOPPED_BY_ANOTHER_PLAYBACK",JXa:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",KXa:"STREAMING_NOT_ALLOWED",LXa:"STREAM_LICENSE_NOT_FOUND",
FZa:"TOO_MANY_REQUESTS",GZa:"TOO_MANY_REQUESTS_WITH_LINK",IZa:"TOO_MANY_STREAMS_PER_ENTITLEMENT",JZa:"TOO_MANY_STREAMS_PER_USER",e3a:"UNSUPPORTED_DEVICE",w3a:"VIDEO_FORBIDDEN",A3a:"VIDEO_NOT_FOUND"};$3={};
g.TT=($3.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.",$3.DEVICE_FALLBACK="Sorry, this video is not available on this device.",$3.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",$3.LICENSE="Sorry, there was an error licensing this video.",$3.VIDEO_UNAVAILABLE=
"Video unavailable",$3.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",$3.GEO_FAILURE="This video isn't available in your country.",$3.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",$3.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",$3.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",$3.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",
$3.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",$3.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",$3.PURCHASE_NOT_FOUND="This video requires payment.",$3.PURCHASE_REFUNDED="This video's purchase has been refunded.",$3.RENTAL_EXPIRED="This video's rental has expired.",$3.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",$3.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",
$3.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",$3.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",$3.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",$3.SERVER_ERROR="There was an internal server error. Please try again later.",$3.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",$3.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",
$3.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",$3.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",$3.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",$3.TOO_MANY_REQUESTS="Please log in to watch this video.",$3.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",$3.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",
$3.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",$3.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",$3.VIDEO_FORBIDDEN="Access to this video is forbidden.",$3.VIDEO_NOT_FOUND="This video can not be found.",$3);
sCa={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"};g.CO=!1;g.x(JO,g.E);g.k=JO.prototype;g.k.NE=function(){return this.B};
g.k.Fx=function(a){var b="";a&&(yCa(this,a),b=a.j);if(!this.Mf()||b)b&&this.Mf()!==b&&(this.PE(b),delete this.u,this.C&&(this.C.reject(),delete this.C)),a&&a.u||this.load(),this.V||(this.addEventListener("volumechange",this.VS),this.V=!0)};
g.k.xs=function(a,b){if(this.u)if(ldb&&DI(this.u)&&!this.u.Ty(a,b)){var c;BI(this,{l:"megms",sr:null==(c=this.va)?void 0:CI(c)});wCa(this);this.stopVideo()}else return this.Xa=this.u,this.u=void 0,this.Xa;a=window.MediaSource?new yI(this,new window.MediaSource,!1):window.WebKitMediaSource?new yI(this,new window.WebKitMediaSource,!1):new yI(this,void 0,!1);this.Fx(a.B);return this.Xa=a};
g.k.playVideo=function(){var a=this;this.Ph()&&this.seekTo(0);!this.Mf()&&this.B&&(g.zD(Error("playVideo without src")),this.PE(this.B.j),this.B.u||this.load());var b=this.play();!b&&LT&&7<=(gM||0)&&uCa(this,function(){g.yy(function(){xCa(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){0<this.uj()&&(LT&&4>gM&&(a=Math.max(.1,a)),this.setCurrentTime(a))};
g.k.Cn=function(){if(!this.u&&this.Xa)if(this.Xa.D)try{var a;BI(this,{l:"mer",sr:null==(a=this.va)?void 0:CI(a),rs:EI(this.Xa)});this.Xa.clear();this.u=this.Xa;this.Xa=void 0}catch(b){a=new g.Yz("Error while clearing Media Source in MediaElement: "+b.name+", "+b.message),g.zD(a),this.stopVideo()}else this.stopVideo()};
g.k.stopVideo=function(){var a=this,b;null==(b=this.Xa)||Lva(b);if(!this.u)if(mdb){if(!this.C){var c=new dK;c.then(void 0,function(){});
this.C=c;ndb&&this.pause();g.yy(function(){a.C===c&&(MO(a),c.resolve())},200)}}else MO(this)};
g.k.By=function(){var a=this.Mh();return 0<qI(a)&&this.getDuration()?pI(a,this.getCurrentTime()):0};
g.k.Pu=function(){var a=this.getDuration();return Infinity===a?1:a?this.By()/a:0};
g.k.kc=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:mI(this.Ru(),",",3),vbu:mI(this.Mh()),vpa:""+ +this.Hp(),vsk:""+ +this.fh(),ven:""+ +this.Ph(),vpr:""+this.getPlaybackRate(),vrs:""+this.uj(),vns:""+this.UF(),vec:""+this.Ye(),vemsg:this.zf(),vvol:""+this.getVolume(),vdom:""+ +this.FM(),vsrc:""+ +!!this.Mf(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.addEventListener=function(a,b){this.D.Ra(a,b,!1,this);this.oL(a)};
g.k.removeEventListener=function(a,b){this.D.Fc(a,b,!1,this)};
g.k.dispatchEvent=function(a){if(this.C&&"pause"===a.type)return!1;if(ldb){var b,c=(null==(b=a.j)?void 0:b.timeStamp)||Infinity;b=c>performance.now()?c-Date.now()+performance.now():c;c=this.u||this.Xa;if((null==c?0:c.Ml())||b<=((null==c?void 0:c.I)||0)){var d;BI(this,{l:"mede",sr:null==(d=this.va)?void 0:CI(d)});return!1}if(this.tM)return c&&"seeking"===a.type&&(c.I=performance.now(),this.tM=!1),!1}return this.D.dispatchEvent(a)};
g.k.iL=function(){this.J=!1};
g.k.gL=function(){this.J=!0;this.Lz(!0)};
g.k.VS=function(){this.J&&!this.TF()&&this.Lz(!0)};
g.k.equals=function(a){return!!a&&a.ub()===this.ub()};
g.k.qa=function(){this.V&&this.removeEventListener("volumechange",this.VS);mdb&&MO(this);g.E.prototype.qa.call(this)};
var mdb=!1,ndb=!1,ldb=!1,ACa=!1;g.k=g.OO.prototype;g.k.getData=function(){return this.j};
g.k.Yc=function(){return g.UN(this,8)&&!g.UN(this,512)&&!g.UN(this,64)&&!g.UN(this,2)};
g.k.isCued=function(){return g.UN(this,64)&&!g.UN(this,8)&&!g.UN(this,4)};
g.k.isError=function(){return g.UN(this,128)};
g.k.isSuspended=function(){return g.UN(this,512)};
g.k.vC=function(){return g.UN(this,64)&&g.UN(this,4)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};
var a4={},b4=(a4.BUFFERING="buffering-mode",a4.CUED="cued-mode",a4.ENDED="ended-mode",a4.PAUSED="paused-mode",a4.PLAYING="playing-mode",a4.SEEKING="seeking-mode",a4.UNSTARTED="unstarted-mode",a4);g.x(ZO,g.aE);g.k=ZO.prototype;g.k.pC=function(){var a=this.u;return a.u instanceof sN||a.u instanceof BN||a.u instanceof tN};
g.k.qJ=function(){return!1};
g.k.mR=function(){return this.u.j};
g.k.rJ=function(){return"AD_PLACEMENT_KIND_START"==this.u.j.j};
g.k.nR=function(){return CN(this.u)};
g.k.hU=function(a){if(!ZD(a)){this.ea&&(this.Aa=this.F.isAtLiveHead(),this.ya=Math.ceil(g.Va()/1E3));var b=new zO(this.ri);a=iCa(a);b.Bh(a)}this.oR()};
g.k.WU=function(){return!0};
g.k.xC=function(){return this.J instanceof sN};
g.k.oR=function(){var a=this.ri;this.WU()&&(a.u&&bP(a,!1),a.u=this,this.pC()&&uEa(a));this.D.mI();this.OW()};
g.k.OW=function(){this.J?this.KA(this.J):cP(this)};
g.k.onAdEnd=function(a,b){b=void 0===b?!1:b;this.Vl(0);cP(this,b)};
g.k.QV=function(){this.onAdEnd()};
g.k.e5=function(){PN(this.j.bb,"active_view_measurable")};
g.k.h5=function(){var a=this.j.bb;NN(a)||YN(a)||PN(a,"active_view_fully_viewable_audible_half_duration")};
g.k.k5=function(){};
g.k.l5=function(){};
g.k.m5=function(){};
g.k.n5=function(){};
g.k.q5=function(){var a=this.j.bb;NN(a)||YN(a)||PN(a,"active_view_viewable")};
g.k.f5=function(){var a=this.j.bb;NN(a)||YN(a)||PN(a,"audio_audible")};
g.k.g5=function(){var a=this.j.bb;NN(a)||YN(a)||PN(a,"audio_measurable")};
g.k.GT=function(){return this.xC()?[this.WF()]:[]};
g.k.zd=function(a){if(null!==this.j){this.oa||(a=new g.$N(a.state,new g.OO),this.oa=!0);var b=a.state;if(g.bO(a,2))this.j.Di();else{var c=a;(this.F.T().experiments.kb("html5_bulleit_handle_gained_playing_state")?c.state.Yc()&&!c.Dv.Yc():c.state.Yc())?(this.D.bP(),this.j.bC()):b.isError()?this.j.Lo(b.getData().errorCode):g.bO(a,4)&&(this.Z||this.j.aC())}if(null!==this.j){if(g.bO(a,16)&&(b=this.j.bb,!(NN(b)||.5>b.u.getCurrentTime(2,!1)))){c=b.ad;if(c.D()){var d=b.C.F.T().K("html5_dai_enable_active_view_creating_completed_adblock");
Yka(c.J,d)}b.ad.I.seek=!0}0>aO(a,4)&&!(0>aO(a,2))&&(b=this.j,c=b.bb,NN(c)||ZN(c,"resume"),b.B||(b=b.bb,NN(b)||ZN(b,"unmuted_resume")));this.daiEnabled&&g.bO(a,512)&&!g.XO(a.state)&&this.D.Tz()}}};
g.k.onVideoDataChange=function(){return this.daiEnabled?CCa(this):!1};
g.k.resume=function(){this.j&&this.j.qX()};
g.k.lL=function(){this.j&&this.j.ih("adended")};
g.k.uF=function(){this.lL()};
g.k.Vl=function(a){this.ri.Vl(a)};
g.k.R_=function(a){this.ri.j.Na("onAdUxUpdate",a)};
g.k.onAdUxClicked=function(a){this.j.eh(a)};
g.k.ET=function(){return 0};
g.k.FT=function(){return 1};
g.k.PP=function(a){this.daiEnabled&&this.u.I&&this.u.j.start<=a&&a<aP(this)&&this.F.Cu(a,this.u.j.end)};
g.k.KA=function(a){g.gb(this.j);this.j=a=this.du.create(a,FN(uAa(this.u)),this.u.j.j);this.ZM(a);a.ya?a.Lo("ui_unstable"):a.ME();DCa(this,!1)};
g.k.ZM=function(a){a.subscribe("adabandoned",g.Ua(this.onAdEnd,!0),this);a.subscribe("adabandonedreset",g.Ua(this.onAdEnd,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.e5,this);a.subscribe("adended",this.onAdEnd,this);a.subscribe("aderror",this.QV,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.h5,this);a.subscribe("adoverlaymeasurableimpression",this.k5,this);a.subscribe("adoverlayunviewableimpression",this.l5,this);a.subscribe("adoverlayviewableendofsessionimpression",
this.m5,this);a.subscribe("adoverlayviewableimmediateimpression",this.n5,this);a.subscribe("adpause",this.kM,this);a.subscribe("adplay",this.kM,this);a.subscribe("adunstarted",this.kM,this);a.subscribe("onAdUxUpdate",this.R_,this);a.subscribe("adviewableimpression",this.q5,this);a.subscribe("adaudioaudible",this.f5,this);a.subscribe("adaudiomeasurable",this.g5,this)};
g.k.kM=function(a){this.Vl(a)};
g.k.WF=function(){return this.J};
g.k.isLiveStream=function(){return this.ea};
g.k.reset=function(){return new ZO(this.ri,this.F,this.D.reset(),this.u,this.Kp,this.gy,this.du,this.daiEnabled)};
g.k.qa=function(){g.gb(this.j);this.j=null;g.aE.prototype.qa.call(this)};ICa.prototype.create=function(a){return(a.u instanceof tN?this.B:""===a.D?this.j:this.u)(a)};g.x(dP,EB);var PCa=new FB("screen-created",dP),jP=[],NCa=UCa,kP=0;var odb=[3611,27686,85013,23462,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,105675,150723,37521,147285,47786,98349,168271,168954,168277,168273,168270,123695,6827,29434,171388,7282,124448,32276,76278,147868,147869,93911,106531,177843,27259,27262,27263,21759,160866,180626,177957,180628,171243,160789,171244,171241,171245,171242,180627,177958,180629,177565,175492,175493,175494,175495,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,
80637,68727,68728,80353,80356,180635,74610,45707,83962,83970,46713,166591,89711,74612,179607,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,93252,99357,94521,114252,113532,94522,94583,88E3,139580,93253,93254,94387,94388,93255,97424,72502,110111,76019,117092,117093,89431,110466,77240,60508,148123,148124,137401,137402,137046,73393,113534,92098,131381,84517,83759,162711,162712,80357,86113,72598,168413,72733,107349,124275,118203,133275,160157,152569,156651,133274,
160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,156653,144401,117431,133797,153964,128572,133405,117429,117430,177950,174734,177951,117432,173996,173995,174953,173994,173997,120080,117259,178546,156655,156654,121692,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,133624,146477,133623,133622,133621,84774,160801,95117,172721,150497,98930,98931,
98932,153320,153321,43347,129889,149123,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,93278,93274,93275,93276,22110,29433,133798,132295,120541,82047,113550,75836,75837,42352,84512,76065,75989,51879,16623,32594,27240,32633,74858,156999,3945,16989,45520,25488,25492,25494,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,46220,11721,147994,49954,96369,3854,151633,56251,159108,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,
73233,109512,22256,14115,22696,89278,89277,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,62397,150871,150874,125598,137935,36961,108035,
27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,50663,36387,14908,37533,105443,61635,62274,161670,133818,65702,65703,65701,76256,166382,37671,49953,179556,36216,28237,173718,39553,29222,26107,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,74723,44098,173689,44099,23528,61699,134104,134103,59149,181013,173191,173192,173193,101951,171502,97346,118051,95102,64882,119505,63595,63349,95101,75240,27039,68823,21537,83464,75707,170215,83113,101952,101953,79610,125755,24402,
24400,32925,57173,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,146143,63648,63649,111059,5754,20445,151308,151152,130975,130976,167637,110386,113746,66557,17310,28631,21589,164817,168011,154946,68012,162617,60480,138664,141121,164502,31571,141978,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,
4724,59369,43927,43928,12924,100355,56219,27669,10337,47896,122629,139723,139722,121258,107598,127991,96639,107536,130169,96661,145188,96658,116646,159428,168611,168612,121122,96660,127738,127083,155281,162959,163566,147842,104443,96659,147595,106442,162776,134840,63667,63668,63669,130686,147036,78314,147799,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,49956,31961,26388,23811,5E4,126250,96370,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,
100081,35309,68314,25602,100339,170873,143516,178921,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,53969,8213,93926,102852,110099,22678,69076,137575,139224,100856,154430,17736,3832,147111,55759,64031,93044,93045,170701,170702,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,161612,161614,82039];pP.prototype.zt=function(a){this.client=a};
pP.prototype.j=function(){this.clear();this.csn=g.CE()};
pP.prototype.clear=function(){this.B.clear();this.u.clear();this.C.clear();this.csn=null};rP.prototype.zt=function(a){g.iy(qP().zt).bind(qP())(a)};
rP.prototype.clear=function(){g.iy(qP().clear).bind(qP())()};g.k=sP.prototype;g.k.zt=function(a){this.client=a};
g.k.aL=function(a,b){var c=this;b=void 0===b?{}:b;g.iy(function(){var d,e=null==(d=g.S(null==a?void 0:a.commandMetadata,g.q3))?void 0:d.rootVe;if(e){d=g.S(null==a?void 0:a.commandMetadata,Vbb);if(null==d?0:d.parentTrackingParams){var f=g.yE(d.parentTrackingParams);if(d.parentCsn)var h=d.parentCsn}else b.clickedVisualElement?f=b.clickedVisualElement:a.clickTrackingParams&&(f=g.yE(a.clickTrackingParams));b=Object.assign({},{cttAuthInfo:LCa(a),parentCsn:h},b);if(g.cy("expectation_logging")){var l;b.loggingExpectations=
(null==(l=g.S(null==a?void 0:a.commandMetadata,Sab))?void 0:l.loggingExpectations)||void 0}c.xk(e,f,b)}else g.AD(new g.Yz("Error: Trying to create a new screen without a rootVeType",a))})()};
g.k.xk=function(a,b,c){var d=this;c=void 0===c?{}:c;g.iy(function(){odb.includes(a)||(g.AD(new g.Yz("createClientScreen() called with a non-page VE",a)),a=83769);c.isHistoryNavigation||(d.oa=[],d.j.push({rootVe:a,key:c.key||""}));d.J=[];d.V=[];c.jB?ZCa(d,a,b,c):YCa(d,a,b,c)})()};
g.k.eM=function(a,b){var c=this;b=void 0===b?0:b;g.iy(function(){a.then(function(d){c.u.has(b)&&c.C&&c.C();var e=g.CE(b),f=g.BE(b);if(e&&f){var h;(null==d?0:null==(h=d.response)?0:h.trackingParams)&&g.fP(c.client,e,f,g.yE(d.response.trackingParams));var l;(null==d?0:null==(l=d.playerResponse)?0:l.trackingParams)&&g.fP(c.client,e,f,g.yE(d.playerResponse.trackingParams))}})})()};
g.k.cq=function(a){var b=this;g.iy(function(){var c=g.yE(a);b.eq(c);return c})()};
g.k.eq=function(a,b,c){var d=this;c=void 0===c?0:c;g.iy(function(){if(d.u.has(c))return d.J.push([a,b]),!0;var e=g.CE(c),f=b||g.BE(c);if(e&&f){if(g.cy("combine_ve_grafts")){var h=d.B.get(f.toString());h?h.push(a):(d.I.set(f.toString(),f),d.B.set(f.toString(),[a]));d.Z||(d.Z=g.cA(0,function(){$Ca(d,e)},1200))}else g.fP(d.client,e,f,a);
return!0}return!1})()};
g.k.PK=function(a,b,c){if(!a)return!1;c=g.CE(void 0===c?0:c);if(!c)return!1;iP(this.client,c,g.yE(a),b);return!0};
g.k.clickCommand=function(a,b,c){return this.PK(a.clickTrackingParams,b,void 0===c?0:c)};
g.k.visualElementStateChanged=function(a,b,c){c=void 0===c?0:c;0===c&&this.u.has(c)?this.V.push([a,b]):XCa(this,a,b,c)};g.k=uP.prototype;g.k.zt=function(a){this.client=a};
g.k.aL=function(a,b){var c=this;b=void 0===b?{}:b;g.iy(function(){var d,e=null==(d=g.S(null==a?void 0:a.commandMetadata,g.q3))?void 0:d.rootVe;if(e){d=g.S(null==a?void 0:a.commandMetadata,Vbb);if(null==d?0:d.parentTrackingParams){var f=g.yE(d.parentTrackingParams);if(d.parentCsn)var h=d.parentCsn}else b.clickedVisualElement?f=b.clickedVisualElement:a.clickTrackingParams&&(f=g.yE(a.clickTrackingParams));b=Object.assign({},{cttAuthInfo:LCa(a),parentCsn:h},b);if(g.cy("expectation_logging")){var l;b.loggingExpectations=
(null==(l=g.S(null==a?void 0:a.commandMetadata,Sab))?void 0:l.loggingExpectations)||void 0}c.xk(e,f,b)}else g.AD(new g.Yz("Error: Trying to create a new screen without a rootVeType",a))})()};
g.k.xk=function(a,b,c){var d=this;c=void 0===c?{}:c;g.iy(function(){odb.includes(a)||(g.AD(new g.Yz("createClientScreen() called with a non-page VE",a)),a=83769);c.isHistoryNavigation||(d.oa=[],d.j.push({rootVe:a,key:c.key||""}));d.J=[];d.V=[];c.jB?dDa(d,a,b,c):cDa(d,a,b,c)})()};
g.k.eM=function(a,b){var c=this;b=void 0===b?0:b;g.iy(function(){a.then(function(d){c.u.has(b)&&c.C&&c.C();var e=g.CE(b),f=g.BE(b);if(e&&f){var h;(null==d?0:null==(h=d.response)?0:h.trackingParams)&&g.fP(c.client,e,f,g.yE(d.response.trackingParams));var l;(null==d?0:null==(l=d.playerResponse)?0:l.trackingParams)&&g.fP(c.client,e,f,g.yE(d.playerResponse.trackingParams))}})})()};
g.k.cq=function(a){var b=this;g.iy(function(){var c=g.yE(a);b.eq(c);return c})()};
g.k.eq=function(a,b,c){var d=this;c=void 0===c?0:c;g.iy(function(){if(d.u.has(c))return d.J.push([a,b]),!0;var e=g.CE(c),f=b||g.BE(c);if(e&&f){if(g.cy("combine_ve_grafts")){var h=d.B.get(f.toString());h?h.push(a):(d.I.set(f.toString(),f),d.B.set(f.toString(),[a]));d.Z||(d.Z=g.cA(0,function(){eDa(d,e)},1200))}else g.fP(d.client,e,f,a);
return!0}return!1})()};
g.k.PK=function(a,b,c){if(!a)return!1;c=g.CE(void 0===c?0:c);if(!c)return!1;iP(this.client,c,g.yE(a),b);return!0};
g.k.clickCommand=function(a,b,c){return this.PK(a.clickTrackingParams,b,void 0===c?0:c)};
g.k.visualElementStateChanged=function(a,b,c){c=void 0===c?0:c;0===c&&this.u.has(c)?this.V.push([a,b]):bDa(this,a,b,c)};var gDa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);vP.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=(null==(c=b.To.context)?void 0:null==(d=c.request)?void 0:d.consistencyTokenJars)||[];var e;(a=null==(e=a.responseContext)?void 0:e.consistencyTokenJar)&&this.replace(b,a)};
vP.prototype.replace=function(a,b){a=g.v(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];iDa(this,b)};var pdb=window.location.hostname.split(".").slice(-2).join("."),c4;xP.getInstance=function(){c4=g.La("yt.clientLocationService.instance");c4||(c4=new xP,g.Ka("yt.clientLocationService.instance",c4));return c4};
g.k=xP.prototype;
g.k.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});this.j?(a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(1E7*this.j.coords.latitude),a.client.locationInfo.longitudeE7=Math.floor(1E7*this.j.coords.longitude),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0):this.locationPlayabilityToken&&(a.client.locationPlayabilityToken=this.locationPlayabilityToken)};
g.k.handleResponse=function(a){var b;a=null==(b=a.responseContext)?void 0:b.locationPlayabilityToken;void 0!==a&&(this.locationPlayabilityToken=a,this.j=void 0,"TVHTML5"===g.ay("INNERTUBE_CLIENT_NAME")?(this.localStorage=wP(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.Ny("YT_CL",JSON.stringify({loctok:a}),15552E3,pdb,!0))};
g.k.clearLocationPlayabilityToken=function(a){"TVHTML5"===a?(this.localStorage=wP(this))&&this.localStorage.remove("yt-location-playability-token"):g.Py("YT_CL")};
g.k.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;"MWEB"===g.ay("INNERTUBE_CLIENT_NAME")&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.j=f;d(f)},function(f){e(f)},{enableHighAccuracy:b,
maximumAge:0,timeout:c})})};
g.k.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);if(null==a?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b};var AP;g.x(zP,Pz);zP.prototype.CB=function(a,b){a=Pz.prototype.CB.call(this,a,b);return Object.assign({},a,this.Yv)};var vDa=/[&\?]action_proxy=1/,uDa=/[&\?]token=([\w-]*)/,wDa=/[&\?]video_id=([\w-]*)/,xDa=/[&\?]index=([\d-]*)/,yDa=/[&\?]m_pos_ms=([\d-]*)/,BDa=/[&\?]vvt=([\w-]*)/,pDa="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(" "),zDa="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(" "),rDa={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"},sDa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},ADa={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};DP.prototype.Yy=function(a){this.player.Nh().tick(a)};
DP.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return FP(this,a,b);var d=1===this.j;d&&this.Yy("a_bid_s");var e=kDa();if(null!==e)return d&&this.Yy("a_bid_f"),FP(this,a,b,e);e=lDa();d&&Jf(e,function(){c.Yy("a_bid_f")});
return e.then(function(f){return FP(c,a,b,f)})};
DP.prototype.reset=function(){this.u=this.j=1};g.x(GP,g.aE);g.k=GP.prototype;g.k.mR=function(){return this.j.j};
g.k.rJ=function(){return"AD_PLACEMENT_KIND_START"==this.j.j.j};
g.k.nR=function(){return CN(this.j)};
g.k.pC=function(){return!1};
g.k.qJ=function(){return!1};
g.k.onAdUxClicked=function(){};
g.k.hU=function(a){var b=this;DD("Fetching logic is still in use while live midroll is on PACF");if(1!==this.j.B&&2!==this.j.B){var c=[];this.rJ()||(c=iCa(a));this.j.B=1;Jf(this.C.fetch(this.j.D,{gB:this.j.C||void 0,oe:this.j.j}).then(function(d){if(!b.isDisposed()){var e=c;b.D.isFullscreen();d=CDa(b,d);var f=b.B;f.j&&d.isEmpty&&mCa("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.u);d.ZU||(b.j.B=2,(new zO(b.u)).Bh(e),d.isEmpty||uC(b.I,d.po))}},function(){(new zO(b.u)).Bh(c);
var d=b.B;d.j&&mCa("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.u)}),function(){2!==b.j.B&&(b.j.B=0);
b.rJ()&&YP(b.u)})}};
g.k.oR=function(){};
g.k.PP=function(){};g.x(DDa,eN);var GDa=Object.freeze([dO,gO,BN,DDa,sN]);g.x(HP,ZO);g.k=HP.prototype;g.k.GT=function(){for(var a=this.B.j,b=g.v(a),c=b.next();!c.done;c=b.next());return a};
g.k.WU=function(){return(0>=this.C?this.B.j:this.B.j.slice(this.C)).some(function(){return!0})};
g.k.xC=function(){return this.I instanceof sN||this.I instanceof gO};
g.k.OW=function(){this.daiEnabled?fN(this.F)&&CCa(this):FDa(this)};
g.k.KA=function(a){var b=EDa(a);this.I&&b&&this.V!==b&&(b?uEa(this.ri):wEa(this.ri),this.V=b);this.I=a;this.daiEnabled&&(this.C=this.B.j.findIndex(function(c){return c===a}));
ZO.prototype.KA.call(this,a)};
g.k.ZM=function(a){var b=this;ZO.prototype.ZM.call(this,a);a.subscribe("adnotifyexitednormalorerror",function(){return void cP(b)})};
g.k.uF=function(){this.C=this.B.j.length;this.j&&this.j.ih("adended");cP(this)};
g.k.lL=function(){this.onAdEnd()};
g.k.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.Vl(0),a?cP(this,b):FDa(this))};
g.k.QV=function(){if(1==this.B.u)this.I instanceof hO&&g.AD(Error("AdNotify error with FailureMode.TERMINATING")),cP(this);else this.onAdEnd()};
g.k.WF=function(){var a=0>=this.C?this.B.j:this.B.j.slice(this.C);return 0<a.length?a[0]:null};
g.k.pC=function(){return this.V};
g.k.qJ=function(){return this.B.j.every(function(){return!1})};
g.k.reset=function(){return new HP(this.ri,this.F,this.D.reset(),this.u,this.Kp,this.gy,this.du,this.daiEnabled)};
g.k.ET=function(){return this.C};
g.k.FT=function(){return this.B.j.length};HDa.prototype.CT=function(){return this.j};g.x(IDa,tN);g.x(KDa,tN);LDa.prototype.create=function(a,b){function c(h){return new sN(h,d.B,b,d.j,d.u)}
var d=this,e=a.instreamVideoAdRenderer,f=a.sandwichedLinearAdRenderer;a=a.linearAdSequenceRenderer;return null!=e&&e.playerVars?c(e):null!=f?new KDa(f,c,this.j):null!=a?new IDa(a,c):null};MDa.prototype.create=function(a,b,c,d){d=void 0===d?null:d;var e=[];c=void 0===c?0:c;if(d){d=g.v(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var h=b,l=new Gsa(h.u,h.Ju,h.daiEnabled,h.B),m=h.kf;m&&(l.kf=new MD(m.startSecs,m.Qg,m.context,m.identifier,m.event,m.j));h.j&&(l.j=h.j);l.visible=h.visible;h=l;h.kf=f;e.push(NDa(this,a[0],c,h));c++}}else for(a=g.v(a),d=a.next();!d.done;d=a.next())e.push(NDa(this,d.value,c,b)),c++;return e};g.x(MP,g.E);MP.prototype.addEventListener=function(a,b){this.j=b};
MP.prototype.removeEventListener=function(){this.j=null};
g.x(NP,g.E);NP.prototype.addEventListener=function(a,b,c){this.j.addEventListener(a,b,c)};
NP.prototype.removeEventListener=function(a,b){this.j.removeEventListener(a,b)};g.x(QDa,g.E);var OP=null,PP=null,QP=null,RP=null;g.Ka("yt.www.ads.eventcache.getLastCompanionData",function(){return OP});
g.Ka("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.Ka("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return PP});
g.Ka("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return QP});
g.Ka("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return RP});var cEa={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.x(UP,g.E);UP.prototype.qa=function(){this.rf.clear();g.E.prototype.qa.call(this)};
UP.prototype.Gg=function(a,b,c){a=void 0===a?[]:a;b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a=g.v(a);for(var d=a.next();!d.done;d=a.next())this.executeCommand(d.value,b,c)};
UP.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a.loggingUrls&&dEa(this,"loggingUrls",a.loggingUrls,b,c);a=g.v(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.v(d.value);d=e.next().value;e=e.next().value;"openPopupAction"===d?$Da(this,e):"confirmDialogEndpoint"===d?aEa(this,e):cEa.hasOwnProperty(d)||dEa(this,d,e,b,c)}};g.x(WP,BO);g.k=WP.prototype;g.k.Nx=function(){};
g.k.mI=function(){};
g.k.tP=function(){};
g.k.Tz=function(){};
g.k.bP=function(){};
g.k.reset=function(){return new WP(this.F)};g.x(gEa,g.E);g.x(XP,g.aE);g.k=XP.prototype;g.k.nM=function(){return!pEa(this,sEa(this))};
g.k.zB=function(){return this.Ga};
g.k.qa=function(){this.oa=!0;g.Hz(this.C);if(gN(this.j)){var a=jEa(this.j);a.removeEventListener("updateKevlarOrC3Companion",RDa);a.removeEventListener("updateEngagementPanelAction",SDa);a.removeEventListener("changeEngagementPanelVisibility",TDa);window.removeEventListener("yt-navigate-start",UDa);RP=QP=PP=OP=null}a=g.v(this.B.values());for(var b=a.next();!b.done;b=a.next())vEa(this,b.value);bP(this,!1);this.fu.clear();this.ea=[];this.J.clear();g.gb(this.Z);this.Z=new Map;g.gb(this.I);this.I=new Map;
this.B.clear();g.aE.prototype.qa.call(this)};
g.k.EN=function(a){if(a instanceof YD&&!a.u&&(!Usa(a)||a.contains(1E3*this.j.getCurrentTime(1)||0)))if(g.UN(this.j.Cb(1),32))this.J.add(a);else{var b=this.B.get(a);b&&((this.j.T().experiments.kb("enable_eviction_protection_for_bulleit")?this.u?this.u.qJ():1:1)?b.hU(a):a.u=!0)}};
g.k.S5=function(a){a instanceof YD&&(a.u&&(a.u=!1),this.J.delete(a))};
g.k.UN=function(){};
g.k.eW=function(a){var b=1E3*a;this.u&&this.u.PP(b);for(var c=g.v(this.B.values()),d=c.next();!d.done;d=c.next())d.value.PP(b);g.Tb(this.La.j,1E3*a)};
g.k.Zo=function(a){switch(a){case "control_play":this.u&&(a=this.u,a.xC()&&a.F.Pc().playVideo());break;case "control_pause":this.u&&(a=this.u,a.xC()&&a.F.Pc().pauseVideo())}};
g.k.T_=function(a){this.u&&this.u.zd(a)};
g.k.A5=function(a){0>aO(a,16)&&(this.J.forEach(this.EN,this),this.J.clear())};
g.k.S7=function(){if(this.u)this.u.onVideoDataChange()};
g.k.V7=function(){if(fN(this.j)&&this.u){var a=this.j.getCurrentTime(2,!1),b=this.u;b.j&&SBa(b.j,a)}};
g.k.c5=function(){this.Wa=!0;if(this.u){var a=this.u;a.j&&a.j.Ko()}};
g.k.o5=function(a){if(this.u)this.u.onAdUxClicked(a)};
g.k.W7=function(){if(2==this.j.getPresentingPlayerType()&&this.u){var a=this.u.j,b=a.bb,c=a.F.isMuted();b.daiEnabled||PN(b,c?"mute":"unmute");a.B||(b=a.F.isMuted(),PN(a.bb,b?"unmuted_mute":"unmuted_unmute"))}};
g.k.b6=function(a){if(this.u){var b=this.u.j,c=b.bb;NN(c)||VN(c,a?"fullscreen":"end_fullscreen");b.B||(b=b.bb,NN(b)||VN(b,a?"unmuted_fullscreen":"unmuted_end_fullscreen"))}};
g.k.Bh=function(a,b){DD("removeCueRanges called in AdService");this.j.Bh(a,b);a=g.v(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.fu.delete(b),this.B.delete(b)};
g.k.O9=function(){for(var a=[],b=g.v(this.fu),c=b.next();!c.done;c=b.next())c=c.value,ZD(c)||a.push(c);this.j.WP(a,1)};
g.k.Vl=function(a){this.j.Vl(a);switch(a){case 1:this.oG=1;break;case 0:this.oG=0}};
g.k.pP=function(){var a=this.j.getVideoData(2);return a&&a.isListed&&!this.V?(DD("showInfoBarDuring Ad returns true"),!0):!1};
g.k.wc=function(a){if(this.u){var b=this.u;b.j&&SBa(b.j,a)}};
g.k.executeCommand=function(a,b,c){var d=this.tb,e=d.executeCommand;if(c=void 0===c?null:c){var f=!!this.u&&this.u||null;f?(f=f.j,c=f.ad.D()?RN(f.bb,c):{}):c={}}else c={};e.call(d,a,b,c)};
g.k.isDaiEnabled=function(){return!1};
g.k.CT=function(){return this.Aa};
g.k.DT=function(){return this.Ja};g.x($P,g.E);$P.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");a=a.ub();this.ub().appendChild(a)};
g.x(aQ,$P);aQ.prototype.ub=function(){return this.j};g.x(yEa,g.E);var AEa=new g.sr("parallelCommand");var NSa=16/9,qdb=[.25,.5,.75,1,1.25,1.5,1.75,2],rdb=qdb.concat([3,4,5,6,7,8,9,10,15]);var BEa=1;g.x(g.fQ,g.E);g.k=g.fQ.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.G;var c=a.N,d=a.Ia;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.G);g.KK&&(a.X||(a.X={}),a.X.focusable="false")}else e=g.Ze(a.G);if(c){if(c=gQ(this,e,"class",c))hQ(this,e,"class",c),this.Nb[c]=e}else if(d){c=g.v(d);for(var f=c.next();!f.done;f=c.next())this.Nb[f.value]=e;hQ(this,e,"class",d.join(" "))}d=a.ra;c=a.W;if(d)b=gQ(this,e,"child",d),void 0!==b&&e.appendChild(g.ef(b));else if(c)for(d=0,c=g.v(c),f=c.next();!f.done;f=c.next())if(f=
f.value)if("string"===typeof f)f=gQ(this,e,"child",f),null!=f&&e.appendChild(g.ef(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.vc&&(h=eQ(),f.id=h,f=document.createElementNS("http://www.w3.org/2000/svg","use"),f.setAttribute("class","ytp-svg-shadow"),f.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+h),g.hf(e,f,d++))}if(a=a.X)for(b=e,d=g.v(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],hQ(this,b,c,"string"===typeof f?
gQ(this,b,c,f):f);return e};
g.k.Da=function(a){return this.Nb[a]};
g.k.Ea=function(a,b){"number"===typeof b?g.hf(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.jf(this.element)};
g.k.update=function(a){for(var b=g.v(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.updateValue(c,a[c])};
g.k.updateValue=function(a,b){(a=this.Vd["{{"+a+"}}"])&&hQ(this,a[0],a[1],b)};
g.k.qa=function(){this.Nb={};this.Vd={};this.detach();g.E.prototype.qa.call(this)};g.x(g.V,g.fQ);g.k=g.V.prototype;g.k.je=function(a,b){this.updateValue(b||"content",a)};
g.k.show=function(){this.yb||(g.Jm(this.element,"display",""),this.yb=!0)};
g.k.hide=function(){this.yb&&(g.Jm(this.element,"display","none"),this.yb=!1)};
g.k.Zb=function(a){this.ea=a};
g.k.Ra=function(a,b,c){return this.S(this.element,a,b,c)};
g.k.S=function(a,b,c,d){c=(0,g.Ta)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.Fc=function(a){var b=this;this.listeners.forEach(function(c,d){c===a&&(c=b.listeners.splice(d,1)[0],c.target.removeEventListener(c.type,c.listener))})};
g.k.focus=function(){var a=this.element;rf(a);a.focus()};
g.k.qa=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.fQ.prototype.qa.call(this)};g.x(g.jQ,g.V);g.jQ.prototype.subscribe=function(a,b,c){return this.La.subscribe(a,b,c)};
g.jQ.prototype.unsubscribe=function(a,b,c){return this.La.unsubscribe(a,b,c)};
g.jQ.prototype.Fh=function(a){return this.La.Fh(a)};
g.jQ.prototype.ma=function(a){return this.La.ma.apply(this.La,[a].concat(g.la(g.Ca.apply(1,arguments))))};var sdb=new WeakSet;g.x(kQ,g.jQ);g.k=kQ.prototype;g.k.bind=function(a){this.Wa||a.renderer&&this.init(a.id,a.renderer,{},a);return Promise.resolve()};
g.k.init=function(a,b,c){this.Wa=a;this.element.setAttribute("id",this.Wa);this.tb&&g.Ip(this.element,this.tb);this.V=b&&b.adRendererCommands;this.Ya=null==b?void 0:b.T7a;this.macros=c;this.I=b.trackingParams||null;null!=this.I&&this.Yf(this.element,this.I)};
g.k.clear=function(){};
g.k.hide=function(){g.jQ.prototype.hide.call(this);null!=this.I&&this.Va(this.element,!1)};
g.k.show=function(){g.jQ.prototype.show.call(this);if(!this.Gb){this.Gb=!0;var a=this.V&&this.V.impressionCommand,b,c=null==(b=this.Ya)?void 0:b.onFirstVisible;a?this.ID(a):c&&(a=cQ(c))&&this.ID(a)}null!=this.I&&this.Va(this.element,!0)};
g.k.onClick=function(a){if(this.I&&!sdb.has(a)){var b=this.element;this.api.Ek(b)&&this.yb&&this.api.qb(b,this.interactionLoggingClientData);sdb.add(a)}a=this.V&&this.V.clickCommand;var c;b=null==(c=this.Ya)?void 0:c.onTap;a?(c=this.ZW(a),this.ID(c)):b&&(c=cQ(b))&&this.ID(c)};
g.k.ZW=function(a){return a};
g.k.W_=function(a){var b=this.oa;b.J=!0;b.u=a.touches.length;b.j.isActive()&&(b.j.stop(),b.D=!0);a=a.touches;b.I=zEa(b,a)||1!=a.length;var c=a.item(0);b.I||!c?(b.V=Infinity,b.ea=Infinity):(b.V=c.clientX,b.ea=c.clientY);for(c=b.B.length=0;c<a.length;c++){var d=a.item(c);b.B.push(d.identifier)}};
g.k.V_=function(a){var b=this.oa;a=a.changedTouches.item(0);if(Fc()&&!(0<=g.gc(Vaa(),8))||a&&Math.pow(a.clientX-b.V,2)+Math.pow(a.clientY-b.ea,2)>Math.pow(5,2))b.C=!0};
g.k.U_=function(a){if(this.oa){var b=this.oa,c=a.changedTouches;c&&b.J&&1==b.u&&!b.C&&!b.D&&!b.I&&zEa(b,c)&&(b.Z=a,b.j.start());b.u=a.touches.length;0===b.u&&(b.J=!1,b.C=!1,b.B.length=0);b.D=!1}};
g.k.ID=function(a){this.layoutId?this.rb.executeCommand(a,this.layoutId):g.zD(new g.Yz("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
g.k.Yf=function(a,b){this.api.Yf(a,this);this.api.jg(a,b)};
g.k.Va=function(a,b){this.api.Ek(a)&&this.api.Va(a,b,this.interactionLoggingClientData)};
g.k.qa=function(){this.clear(null);this.Fc(this.ob);for(var a=g.v(this.ya),b=a.next();!b.done;b=a.next())this.Fc(b.value);g.jQ.prototype.qa.call(this)};g.x(BQ,kQ);
BQ.prototype.init=function(a,b,c){kQ.prototype.init.call(this,a,b,c);this.j=b;if(null==b.text&&null==b.icon)g.AD(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}null!=a&&g.Ip(this.element,a);null!=b.text&&(a=g.dE(b.text),g.$b(a)||(this.element.setAttribute("aria-label",a),this.B=new g.jQ({G:"span",N:"ytp-ad-button-text",ra:a}),g.I(this,this.B),this.B.Ea(this.element)));this.api.T().K("use_accessibility_data_on_desktop_player_button")&&b.accessibilityData&&
b.accessibilityData.accessibilityData&&b.accessibilityData.accessibilityData.label&&!g.$b(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);null!=b.icon&&(b=AQ(b.icon),null!=b&&(this.u=new g.jQ({G:"span",N:"ytp-ad-button-icon",W:[b]}),g.I(this,this.u)),this.C?g.hf(this.element,this.u.element,0):this.u.Ea(this.element))}};
BQ.prototype.clear=function(){this.hide()};
BQ.prototype.onClick=function(a){kQ.prototype.onClick.call(this,a);a=g.v(UEa(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.rb.executeCommand(b,this.layoutId):g.zD(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.x(CQ,g.E);CQ.prototype.qa=function(){this.u&&g.Bz(this.u);this.j.clear();DQ=null;g.E.prototype.qa.call(this)};
CQ.prototype.register=function(a,b){b&&this.j.set(a,b)};
var DQ=null;g.x(FQ,kQ);
FQ.prototype.init=function(a,b,c){kQ.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.S(b.button,g.pM)||null;null==b?g.zD(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new BQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb),g.I(this,this.button),this.button.init(iN("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.dE(a)),this.button.Ea(this.element),this.D&&!g.Hp(this.button.element,"ytp-ad-clickable")&&g.Ip(this.button.element,
"ytp-ad-clickable"),a&&(this.u=new g.jQ({G:"div",N:"ytp-ad-hover-text-container"}),this.C&&(b=new g.jQ({G:"div",N:"ytp-ad-hover-text-callout"}),b.Ea(this.u.element),g.I(this,b)),g.I(this,this.u),this.u.Ea(this.element),b=EQ(a),g.hf(this.u.element,b,0)),this.show())};
FQ.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();kQ.prototype.hide.call(this)};
FQ.prototype.show=function(){this.button&&this.button.show();kQ.prototype.show.call(this)};g.x(HQ,kQ);
HQ.prototype.init=function(a,b,c){kQ.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&GQ(a)||"";g.$b(c)?.01>Math.random()&&g.AD(Error("Found AdImage without valid image URL")):(this.j?g.Jm(this.element,"backgroundImage","url("+c+")"):Ue(this.element,{src:c}),Ue(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())};
HQ.prototype.clear=function(){this.hide()};g.x(IQ,kQ);g.k=IQ.prototype;g.k.hide=function(){kQ.prototype.hide.call(this);this.B&&this.B.focus()};
g.k.show=function(){this.B=document.activeElement;kQ.prototype.show.call(this);this.C.focus()};
g.k.init=function(a,b,c){kQ.prototype.init.call(this,a,b,c);this.u=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.zD(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.zD(Error("ConfirmDialogRenderer.cancelLabel was not set.")):YEa(this,b):g.zD(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.Hz(this.j);this.hide()};
g.k.BN=function(){this.hide()};
g.k.yJ=function(){var a=this.u.cancelEndpoint;a&&(this.layoutId?this.rb.executeCommand(a,this.layoutId):g.zD(Error("Missing layoutId for confirm dialog.")));this.hide()};
g.k.CN=function(){var a=this.u.confirmNavigationEndpoint||this.u.confirmEndpoint;a&&(this.layoutId?this.rb.executeCommand(a,this.layoutId):g.zD(Error("Missing layoutId for confirm dialog.")));this.hide()};g.x(JQ,kQ);g.k=JQ.prototype;
g.k.init=function(a,b,c){kQ.prototype.init.call(this,a,b,c);this.u=b;if(null==b.defaultText&&null==b.defaultIcon)g.zD(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.zD(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}null!=a&&g.Ip(this.B,a)}a={};b.defaultText?
(c=g.dE(b.defaultText),g.$b(c)||(a.buttonText=c,this.j.setAttribute("aria-label",c),this.api.T().experiments.kb("fix_h5_toggle_button_a11y")&&this.C.setAttribute("aria-label",c))):g.Vm(this.Aa,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.C.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=AQ(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.Z=!0,c=AQ(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",
c)):(g.Vm(this.J,!0),g.Vm(this.D,!1)),g.Vm(this.j,!1)):g.Vm(this.C,!1);g.fd(a)||this.update(a);b.isToggled&&(g.Ip(this.B,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));KQ(this);this.S(this.element,"change",this.yR);this.show()}};
g.k.onClick=function(a){0<this.ya.length&&(this.toggleButton(!this.isToggled()),this.yR());kQ.prototype.onClick.call(this,a)};
g.k.yR=function(){g.Mp(this.B,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.v(ZEa(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.rb.executeCommand(b,this.layoutId):g.zD(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);KQ(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.Mp(this.B,"ytp-ad-toggle-button-toggled",a);this.j.checked=a;KQ(this)};
g.k.isToggled=function(){return this.j.checked};g.x(LQ,Fz);LQ.prototype.I=function(a){if(Array.isArray(a)){a=g.v(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof $D&&this.C(b)}};g.x(MQ,kQ);g.k=MQ.prototype;g.k.init=function(a,b,c){kQ.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.zD(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.AD(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.AD(Error("AdFeedbackRenderer.title was not set.")),cFa(this,b)):g.zD(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){Dz(this.D);Dz(this.J);this.C.length=0;this.hide()};
g.k.hide=function(){this.j&&this.j.hide();this.u&&this.u.hide();kQ.prototype.hide.call(this);this.B&&this.B.focus()};
g.k.show=function(){this.j&&this.j.show();this.u&&this.u.show();this.B=document.activeElement;kQ.prototype.show.call(this);this.D.focus()};
g.k.ZV=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.ma("a");this.hide()};
g.k.R7=function(){this.hide()};
NQ.prototype.ub=function(){return this.j.element};
NQ.prototype.isChecked=function(){return this.B.checked};g.x(OQ,IQ);OQ.prototype.BN=function(a){IQ.prototype.BN.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
OQ.prototype.yJ=function(a){IQ.prototype.yJ.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
OQ.prototype.CN=function(a){IQ.prototype.CN.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.ma("b")};g.x(PQ,kQ);g.k=PQ.prototype;
g.k.init=function(a,b,c){kQ.prototype.init.call(this,a,b,c);this.D=b;if(null==b.dialogMessage&&null==b.title)g.zD(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.AD(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&g.S(b.closeOverlayRenderer,g.pM)||null)this.j=new BQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
g.I(this,this.j),this.j.init(iN("button"),a,this.macros),this.j.Ea(this.element);b.title&&(a=g.dE(b.title),this.updateValue("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=EQ(a[c]);if(!g.$b(d.textContent)){var e=Ye("LI");e.appendChild(d);this.Ga.appendChild(e)}}else g.Vm(this.Ga,!1);b.dialogMessage&&(a=EQ(b.dialogMessage,!0),this.Pa.appendChild(a));b.confirmLabel&&(a=g.dE(b.confirmLabel),this.updateValue("confirmLabel",a));b.muteAdRenderer&&(b=g.S(b.muteAdRenderer,g.pM)||null)&&
(a=b.navigationEndpoint&&g.S(b.navigationEndpoint,Kbb)||null,c=b.navigationEndpoint&&g.S(b.navigationEndpoint,uab)||null,null==a&&null==c?g.AD(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?dFa(this,a):c&&eFa(this,c),this.B=new BQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,["ytp-ad-info-dialog-mute-button"],"button",!0),g.I(this,this.B),this.B.init(iN("button"),b,this.macros),this.B.Ra("click",
this.v6,this),this.B.Ea(this.Za)));fFa(this)}};
g.k.clear=function(){Dz(this.J);this.hide()};
g.k.hide=function(){this.u?this.u.hide():this.C&&this.C.hide();this.j&&this.j.hide();this.B&&this.B.hide();kQ.prototype.hide.call(this);this.Z&&this.Z.focus()};
g.k.show=function(){this.j&&this.j.show();this.B&&this.B.show();if(!this.Ja){for(var a=g.v(this.D&&this.D.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.rb.executeCommand(b,this.layoutId):g.zD(Error("Missing layoutId for ad info dialog."));this.Ja=!0}this.Z=document.activeElement;kQ.prototype.show.call(this);this.J.focus()};
g.k.zR=function(){if(this.D&&this.D.confirmServiceEndpoint){var a=this.D.confirmServiceEndpoint;this.layoutId?this.rb.executeCommand(a,this.layoutId):g.zD(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.ma("d");this.hide()};
g.k.v6=function(){var a=this.u?this.u:this.C;a&&!a.yb&&(this.hide(),a.show())};g.x(QQ,FQ);QQ.prototype.init=function(a,b,c){FQ.prototype.init.call(this,a,b,c);a=b.button&&g.S(b.button,g.pM)||null;null!=a&&(kFa(this,a,c),this.show())};
QQ.prototype.hide=function(){this.button&&this.button.hide();this.j&&this.j.hide();FQ.prototype.hide.call(this)};
QQ.prototype.show=function(){this.button&&this.button.show();FQ.prototype.show.call(this)};
QQ.prototype.clear=function(){this.hide()};g.x(RQ,kQ);
RQ.prototype.init=function(a,b,c){kQ.prototype.init.call(this,a,b,c);this.j=b;this.isTemplated()||g.mf(this.element,lQ(this.j));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?GQ(a):"",c=(c=this.api.getVideoData(1))&&c.Vn,a&&c&&(this.element.style.backgroundImage="url("+a+")",this.element.style.backgroundSize="100%"),b.style&&b.style.adTextStyle))switch(b.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(a=g.He(b.targetId))&&this.element.setAttribute("data-tooltip-target-id",a);
b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()};
RQ.prototype.isTemplated=function(){return this.j.isTemplated||!1};
RQ.prototype.clear=function(){this.hide()};var oFa={seekableStart:0,seekableEnd:1,current:0};g.x(TQ,kQ);TQ.prototype.clear=function(){this.dispose()};g.x(g.WQ,g.E);g.k=g.WQ.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.QE(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.j&&this.j()):this.element.yb||(XQ(this,!0),this.state=1,a?this.delay.start(a):this.QE()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.yb&&(XQ(this,!0),this.state=4,this.delay.start(this.C)))};
g.k.QE=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:XQ(this,!1);this.state=3;this.delay.start(this.B);break;case 3:this.state=null;this.j&&this.j();break;case 4:this.element.hide();XQ(this,!1);this.state=5;this.delay.start(0);break;case 5:this.state=null,this.u&&this.u()}};
g.k.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.QE()};
g.k.qa=function(){this.element.isDisposed()||this.element.element.removeAttribute("aria-hidden");g.E.prototype.qa.call(this)};g.x(YQ,TQ);g.k=YQ.prototype;
g.k.init=function(a,b,c){TQ.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.zD(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Za&&g.Ip(this.u.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.Aa=null==a||0===a?this.j.Hl():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.B.init(iN("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.Vn&&b.thumbnail?this.C.init(iN("ad-image"),b.thumbnail,c):this.J.hide()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.u.hide();this.B.hide();this.C.hide();VQ(this);TQ.prototype.hide.call(this)};
g.k.show=function(){UQ(this);this.u.show();this.B.show();this.C.show();TQ.prototype.show.call(this)};
g.k.Sv=function(){this.hide()};
g.k.ot=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ja&&a>=this.Aa?(this.Z.hide(),this.Ja=!0,this.ma("i")):this.B&&this.B.isTemplated()&&(a=Math.max(0,Math.ceil((this.Aa-a)/1E3)),a!=this.Pa&&(SQ(this.B,{TIME_REMAINING:String(a)}),this.Pa=a)))}};g.x($Q,TQ);g.k=$Q.prototype;
g.k.init=function(a,b,c){TQ.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if((a=b.actionButton&&g.S(b.actionButton,g.pM))&&a.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d)if(b.image&&b.image.thumbnail){var e=b.image.thumbnail.thumbnails;null!=e&&0<e.length&&g.$b(g.He(e[0].url))&&(e[0].url=d.profilePicture)}else g.AD(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(iN("ad-image"),b.image,c);this.B.init(iN("ad-text"),
b.headline,c);this.J.init(iN("ad-text"),b.description,c);this.u.init(iN("button"),a,c);this.api.T().K("web_enable_instream_ads_link_definition_a11y_bugfix")&&(c=Wa(),d=xp(this.u.element),wp(this.u.element,d+c));this.Z=a.navigationEndpoint;this.api.sG()||this.show();b.enableTwoLineHeadlines&&(this.B.element.classList.add("ytp-flyout-cta-headline-two-line"),this.Da("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-height"),this.Da("ytp-flyout-cta").classList.add("ytp-flyout-cta-body-height"),
this.Da("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-centered"),this.Da("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-centered"),this.Da("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-centered"));this.api.addEventListener("playerUnderlayVisibilityChange",this.AR.bind(this));this.Aa=b.startMs||0;UQ(this)}else g.zD(Error("FlyoutCtaRenderer has no valid action button."));else g.zD(Error("FlyoutCtaRenderer has no description AdText."));
else g.zD(Error("FlyoutCtaRenderer has no headline AdText."));else g.AD(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){TQ.prototype.onClick.call(this,a);this.api.pauseVideo();!g.lf(this.u.element,a.target)&&this.Z&&(this.layoutId?this.rb.executeCommand(this.Z,this.layoutId):g.zD(Error("Missing layoutId for flyout cta.")))};
g.k.ot=function(){if(this.j){var a=this.j.getProgressState();a&&a.current&&1E3*a.current>=this.Aa&&(VQ(this),g.Kp(this.element,"ytp-flyout-cta-inactive"),this.u.element.removeAttribute("tabIndex"))}};
g.k.Sv=function(){this.clear()};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.AR.bind(this))};
g.k.show=function(){this.u&&this.u.show();TQ.prototype.show.call(this)};
g.k.hide=function(){this.u&&this.u.hide();TQ.prototype.hide.call(this)};
g.k.AR=function(a){"hidden"==a?this.show():this.hide()};g.x(aR,kQ);g.k=aR.prototype;
g.k.init=function(a,b,c){kQ.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(a=this.j.likeButton&&g.S(this.j.likeButton,u3),b=this.j.dislikeButton&&g.S(this.j.dislikeButton,u3),this.B.init(iN("toggle-button"),a,c),this.u.init(iN("toggle-button"),b,c),this.S(this.element,"change",this.BR),this.C.show(100),this.show(),c=g.v(this.j&&this.j.impressionCommands||[]),a=c.next();!a.done;a=c.next())a=a.value,this.layoutId?this.rb.executeCommand(a,this.layoutId):g.zD(Error("Missing layoutId for instream user sentiment."))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.B.hide();this.u.hide();kQ.prototype.hide.call(this)};
g.k.show=function(){this.B.show();this.u.show();kQ.prototype.show.call(this)};
g.k.BR=function(){lla(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.Na("onYtShowToast",this.j.postMessageAction);this.C.hide()};
g.k.onClick=function(a){0<this.ya.length&&this.BR();kQ.prototype.onClick.call(this,a)};g.x(bR,g.E);g.k=bR.prototype;g.k.qa=function(){this.reset();g.E.prototype.qa.call(this)};
g.k.reset=function(){g.Hz(this.C);this.I=!1;this.j&&this.j.stop();this.D.stop();this.u&&(this.u=!1,this.J.play())};
g.k.start=function(){this.reset();this.C.S(this.B,"mouseover",this.Y_,this);this.C.S(this.B,"mouseout",this.X_,this);this.j?this.j.start():(this.I=this.u=!0,g.Jm(this.B,{opacity:this.ea}))};
g.k.Y_=function(){this.u&&(this.u=!1,this.J.play());this.D.stop();this.j&&this.j.stop()};
g.k.X_=function(){this.I?this.D.start():this.j&&this.j.start()};
g.k.AS=function(){this.u||(this.u=!0,this.V.play(),this.I=!0)};g.x(cR,TQ);g.k=cR.prototype;
g.k.init=function(a,b,c){TQ.prototype.init.call(this,a,b,c);this.J=b;this.Aa=mFa(this);if(!b||g.fd(b))g.zD(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.fd(b.message))g.zD(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=AQ(a);null==b?g.zD(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+a.iconType+".")):(this.u=new g.jQ({G:"button",Ia:["ytp-ad-skip-button","ytp-button"],W:[{G:"span",N:"ytp-ad-skip-button-icon",
W:[b]}]}),g.I(this,this.u),this.u.Ea(this.C.element),this.B=new RQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-ad-skip-button-text"),this.B.init(iN("ad-text"),this.J.message,c),g.I(this,this.B),g.hf(this.u.element,this.B.element,0));var d=void 0===d?null:d;c=this.api.T();!(0<this.ya.length)&&c.u&&(fK?0:"ontouchstart"in document.documentElement&&(Gha()||Hl()))&&(this.Fc(this.ob),d&&this.Fc(d),this.ya=[this.S(this.element,"touchstart",this.W_,this),this.S(this.element,"touchmove",
this.V_,this),this.S(this.element,"touchend",this.U_,this)])}};
g.k.clear=function(){this.Z.reset();this.hide()};
g.k.hide=function(){this.C.hide();this.B&&this.B.hide();VQ(this);TQ.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.u){a&&Noa(a);TQ.prototype.onClick.call(this,a);if(this.api.T().K("fetch_bid_for_dclk_status")){var b;a={contentCpn:(null==(b=this.api.getVideoData(1))?void 0:b.clientPlaybackNonce)||""};usa(Bsa(),"i.s_",{pY:"sk",metadata:a})}this.ma("j");if(this.Ja||!this.Aa)this.api.onAdUxClicked(this.componentType,this.layoutId)}};
g.k.ZW=function(a){if(!this.Ja)return this.Aa&&DD("SkipButton click commands not pruned while ALC exist"),a;var b,c=null==(b=g.S(a,g.dQ))?void 0:b.commands;if(!c)return a;a=[];for(b=0;b<c.length;b++){var d=c[b];d.adLifecycleCommand&&lFa(d.adLifecycleCommand)||d.pingingEndpoint||d.adPingingEndpoint||a.push(d)}return{commandExecutorCommand:{commands:a}}};
g.k.show=function(){this.Z.start();this.C.show();this.B&&this.B.show();UQ(this);TQ.prototype.show.call(this);this.Pa&&this.api.T().K("enable_skip_to_next_messaging")&&this.api.ma("showpromotooltip",this.element)};
g.k.Sv=function(){this.ma("k")};
g.k.ot=function(){};g.x(dR,TQ);g.k=dR.prototype;
g.k.init=function(a,b,c){TQ.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&g.S(b.preskipRenderer,R0)||{};(a=g.fd(a)?null:a)?(this.J=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3,this.u=new YQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.j,"countdown_next_to_thumbnail"==vJ(this.api.T().experiments,"preskip_button_style_ads_backend")&&vK(this.api.T())),this.u.init(iN("preskip-component"),a,c),ZQ(this.u),g.I(this,this.u),this.u.Ea(this.element)):
b.skipOffsetMilliseconds&&(this.J=b.skipOffsetMilliseconds);a=b&&b.skippableRenderer&&g.S(b.skippableRenderer,sab)||{};a=g.fd(a)?null:a;null==a?g.zD(Error("SkipButtonRenderer was not set in player response.")):(this.B=new cR(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.j,this.Z),this.B.init(iN("skip-button"),a,c),g.I(this,this.B),this.B.Ea(this.element),this.api.T().experiments.kb("enable_skip_to_next_messaging")&&(b=g.He(b.targetId))&&(c=this.B,null!=c.u&&(c.Pa=!0,c.u.element.setAttribute("data-tooltip-target-id",
b),c.u.element.setAttribute("data-tooltip-target-fixed",""))),this.show())};
g.k.show=function(){this.C&&this.B?this.B.show():this.u&&this.u.show();UQ(this);TQ.prototype.show.call(this)};
g.k.Sv=function(){};
g.k.clear=function(){this.u&&this.u.clear();this.B&&this.B.clear();VQ(this);TQ.prototype.hide.call(this)};
g.k.hide=function(){this.u&&this.u.hide();this.B&&this.B.hide();VQ(this);TQ.prototype.hide.call(this)};
g.k.ot=function(){1E3*this.j.getProgressState().current>=this.J&&nFa(this,!0)};g.x(eR,BQ);eR.prototype.init=function(a,b,c){BQ.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.dE(b.text),a=!g.$b(a));a?null==b.navigationEndpoint?g.AD(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.AD(Error("Button style was not a link-style type in renderer,")):this.show():g.AD(Error("No visit advertiser text was present in the renderer."))};g.x(fR,kQ);fR.prototype.init=function(a,b,c){kQ.prototype.init.call(this,a,b,c);a=b.text;g.$b(lQ(a))?g.AD(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.j&&(b=this.api.T(),b=a.text+" "+(b&&b.u?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a.targetId&&(b.targetId=a.targetId),a=new RQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb),a.init(iN("simple-ad-badge"),b,c),a.Ea(this.element),g.I(this,a)),this.show())};
fR.prototype.clear=function(){this.hide()};g.x(gR,jN);g.x(hR,g.aE);g.k=hR.prototype;g.k.Hl=function(){return this.durationMs};
g.k.stop=function(){this.j&&this.wd.Fc(this.j)};
g.k.wc=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.ma("h")};
g.k.getProgressState=function(){return this.u};
g.k.zd=function(a){g.bO(a,2)&&this.ma("g")};g.x(iR,g.aE);g.k=iR.prototype;g.k.Hl=function(){return this.durationMs};
g.k.start=function(){this.j||(this.j=!0,this.timer.start())};
g.k.stop=function(){this.j&&(this.j=!1,this.timer.stop())};
g.k.wc=function(){this.Li+=100;var a=!1;this.Li>this.durationMs&&(this.Li=this.durationMs,this.timer.stop(),a=!0);this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Li/1E3};this.Me&&this.Me.wc(this.u.current);this.ma("h");a&&this.ma("g")};
g.k.getProgressState=function(){return this.u};g.x(lR,TQ);g.k=lR.prototype;g.k.init=function(a,b,c){TQ.prototype.init.call(this,a,b,c);var d;if(null==b?0:null==(d=b.templatedCountdown)?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.AD(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.u=new RQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb);this.u.init(iN("ad-text"),a,{});this.u.Ea(this.element);g.I(this,this.u)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){VQ(this);TQ.prototype.hide.call(this)};
g.k.Sv=function(){this.hide()};
g.k.ot=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&this.u&&(a=(this.j instanceof hR?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.j instanceof iR?a.seekableEnd:this.api.getDuration(2,!1))-a.current,SQ(this.u,{FORMATTED_AD_DURATION_REMAINING:String(g.jR(a)),TIME_REMAINING:String(Math.ceil(a))}))}};
g.k.show=function(){UQ(this);TQ.prototype.show.call(this)};g.x(pFa,RQ);pFa.prototype.onClick=function(a){RQ.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.x(oR,g.jQ);oR.prototype.wc=function(){var a=this.u.getProgressState();this.Jc.style.width=100*nR(new mR(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
oR.prototype.onStateChange=function(){g.pK(this.api.T())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.u.subscribe("h",this.wc,this),this.wc()):-1!==this.j&&(this.hide(),this.u.Fh(this.j),this.j=-1))};g.x(pR,kQ);
pR.prototype.init=function(a,b,c,d){kQ.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(c=b.skipOrPreviewRenderer,a=g.S(c,P0),c=g.S(c,R0),a?(c=new dR(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.j,this.J),c.Ea(this.D),c.init(iN("skip-button"),a,this.macros),g.I(this,c)):c&&(a=new YQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.j,!1),a.Ea(this.D),a.init(iN("ad-preview"),c,this.macros),ZQ(a),g.I(this,a)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,
c=new aR(this.api,this.layoutId,this.interactionLoggingClientData,this.rb),c.Ea(this.Z),c.init(iN("instream-user-sentiment"),a,this.macros),g.I(this,c));if(a=g.S(b,lab))if(a=g.S(a,lab))c=new $Q(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.j),g.I(this,c),c.Ea(this.C),c.init(iN("flyout-cta"),a,this.macros);d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Ad",isTemplated:!1}}),c=new fR(this.api,this.layoutId,
this.interactionLoggingClientData,this.rb,!0),g.I(this,c),c.Ea(this.u),c.init(iN("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&(a=b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new lR(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.j,d),g.I(this,d),d.Ea(this.u),d.init(iN("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=g.S(b.adInfoRenderer,
Q0))&&(a=new QQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.element),g.I(this,a),a.Ea(this.u),a.init(iN("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(d=g.S(b.visitAdvertiserRenderer,g.pM))&&(a=rFa(this)&&this.B?this.B:this.u)&&(b=new eR(this.api,this.layoutId,this.interactionLoggingClientData,this.rb),g.I(this,b),b.Ea(a),b.init(iN("visit-advertiser"),d,this.macros),this.api.T().K("web_enable_instream_ads_link_definition_a11y_bugfix")&&(up(b.element),
d=Wa(),a=xp(b.element),wp(b.element,a+d)));(b=this.api.T())&&!g.nK(b)&&"3"==b.controlsType&&(b=new oR(this.api,this.j),b.Ea(this.Aa),g.I(this,b));this.api.T().K("enable_updated_html5_player_focus_style")&&g.Ip(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
pR.prototype.clear=function(){this.hide()};var d4={},xFa=(d4.WEB_UNPLUGGED="^unplugged/",d4.WEB_UNPLUGGED_ONBOARDING="^unplugged/",d4.WEB_UNPLUGGED_OPS="^unplugged/",d4.WEB_UNPLUGGED_PUBLIC="^unplugged/",d4.WEB_CREATOR="^creator/",d4.WEB_KIDS="^kids/",d4.WEB_EXPERIMENTS="^experiments/",d4.WEB_MUSIC="^music/",d4.WEB_REMIX="^music/",d4.WEB_MUSIC_EMBEDDED_PLAYER="^music/",d4.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",d4);tR.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?DB:c;var d={context:g.yP(a.clickTrackingParams,!1,this.C)};var e=this.j(a);if(e){this.u(d,e,b);var f;b=g.sR(this.B());(e=null==(f=g.S(a.commandMetadata,g.q3))?void 0:f.apiUrl)&&(b=e);f=ioa(Qy(b));a=Object.assign({},{command:a},void 0);d={input:f,vt:Ry(f),To:d,config:a};d.config.uu?d.config.uu.identity=c:d.config.uu={identity:c};return d}g.zD(new g.Yz("Error: Failed to create Request from Command.",a))};
g.da.Object.defineProperties(tR.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.x(uR,tR);uR.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",vt:Ry("/getDatasyncIdsEndpoint","GET"),To:{}}};
uR.prototype.B=function(){return[]};
uR.prototype.j=function(){};
uR.prototype.u=function(){};var tdb={},zFa=(tdb.GET_DATASYNC_IDS=rR(uR),tdb);var EFa="tokens consistency mss client_location entities response_received_commands store PLAYER_PRELOAD".split(" "),GFa=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse"];var KFa=new LC("INNERTUBE_TRANSPORT_TOKEN");g.x(xR,tR);xR.prototype.B=function(){return icb};
xR.prototype.j=function(a){return g.S(a,Zbb)||void 0};
xR.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};
g.da.Object.defineProperties(xR.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.x(yR,tR);yR.prototype.B=function(){return jcb};
yR.prototype.j=function(a){return g.S(a,Xbb)||void 0};
yR.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
g.da.Object.defineProperties(yR.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.x(zR,tR);zR.prototype.B=function(){return fcb};
zR.prototype.j=function(a){return g.S(a,Eab)||void 0};
zR.prototype.u=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))};
g.da.Object.defineProperties(zR.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.x(AR,tR);AR.prototype.B=function(){return gcb};
AR.prototype.j=function(a){return g.S(a,Wbb)||void 0};
AR.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.x(BR,tR);BR.prototype.B=function(){return hcb};
BR.prototype.j=function(a){return g.S(a,Ubb)||void 0};
BR.prototype.u=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.x(CR,tR);CR.prototype.B=function(){return ecb};
CR.prototype.j=function(a){return g.S(a,Lbb)};
CR.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var udb=new LC("NETWORK_SLI_TOKEN");DR.prototype.fetch=function(a,b){var c=this,d,e,f;return g.A(function(h){c.j&&(d=Mi(g.Oi(5,Xi(a,"key")))||"/UNKNOWN_PATH",c.j.start(d));e=b;g.cy("wug_networking_gzip_request")&&(e=zqa(b));f=new window.Request(a,e);return g.cy("web_fetch_promise_cleanup_killswitch")?h.return(Promise.resolve(fetch(f).then(function(l){return c.handleResponse(l)}).catch(function(l){g.AD(l)}))):h.return(fetch(f).then(function(l){return c.handleResponse(l)}).catch(function(l){g.AD(l)}))})};
DR.prototype.handleResponse=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))});
a.redirected||a.ok?this.j&&this.j.success():(this.j&&this.j.e7a(),b=b.then(function(c){g.AD(new g.Yz("Error: API fetch failed",a.status,a.url,c));return Object.assign({},c,{errorMetadata:{status:a.status}})}));
return b};
DR[OC]=[new MC(udb)];var JFa=new LC("NETWORK_MANAGER_TOKEN");var IFa;FR.prototype.fetch=function(a,b,c){var d=this;return new Promise(function(e){var f=new XMLHttpRequest;f.onerror=function(){e(d.handleResponse(a,f.status,f.response))};
f.onload=function(){e(d.handleResponse(a,f.status,f.response))};
if(null==c?0:c.nz)f.onreadystatechange=function(p){c.nz(f,p)};
var h;f.open(null!=(h=b.method)?h:"GET",a,!0);f.responseType="text";f.withCredentials=!0;if(b.headers){h=g.v(Object.entries(b.headers));for(var l=h.next();!l.done;l=h.next()){var m=g.v(l.value);l=m.next().value;m=m.next().value;f.setRequestHeader(l,m)}}var n;f.send(null!=(n=b.body)?n:null)})};
FR.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.AD(new g.Yz("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.AD(new g.Yz("XHR API fetch failed",a,b,c)),d=Object.assign({},d,{errorMetadata:{status:b}}));return d};var NFa=[],MFa=!1;var K0a={adNotify:function(a){var b=new ut,c=0;try{return void 0!==a.adMediaTimeSec&&(L(b,1,a.adMediaTimeSec),c++),void 0!==a.adMediaTimeMs&&(L(b,6,a.adMediaTimeMs),c++),void 0!==a.timeToAdBreakSec&&(L(b,2,a.timeToAdBreakSec),c++),void 0!==a.clientScreenNonce&&(L(b,3,a.clientScreenNonce),c++),void 0!==a.clientPlaybackNonce&&(L(b,4,a.clientPlaybackNonce),c++),void 0!==a.videoAdBreakOffsetSec&&(L(b,5,a.videoAdBreakOffsetSec),c++),void 0!==a.videoAdBreakOffsetMs&&(L(b,7,a.videoAdBreakOffsetMs),c++),
[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}},
biscottiBasedDetection:function(a){var b=new tv,c=0;try{return void 0!==a.detected&&(L(b,1,a.detected),c++),void 0!==a.source&&(L(b,2,a.source),c++),void 0!==a.contentCpn&&(L(b,3,a.contentCpn),c++),void 0!==a.contentCsn&&(L(b,4,a.contentCsn),c++),void 0!==a.method&&(L(b,5,a.method),c++),void 0!==a.result&&(L(b,6,a.result),c++),void 0!==a.adCpn&&(L(b,7,a.adCpn),c++),void 0!==a.playbackType&&(L(b,8,a.playbackType),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}},
adNotifyFilled:function(a){var b=new at,c=0;try{return void 0!==a.notifyCompositeType&&(L(b,1,Uab[a.notifyCompositeType]),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}},
idbTransactionEnded:function(a){var b=new fx,c=0;try{return void 0!==a.objectStoreNames&&(L(b,1,a.objectStoreNames),c++),void 0!==a.duration&&(b.Tk(a.duration),c++),void 0!==a.isSuccessful&&(L(b,3,a.isSuccessful),c++),void 0!==a.connectionHasUnknownAbortedTransaction&&(L(b,4,a.connectionHasUnknownAbortedTransaction),c++),void 0!==a.tryCount&&(L(b,5,a.tryCount),c++),void 0!==a.tag&&(L(b,6,wbb[a.tag]),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}},
idbUnexpectedlyClosed:function(a){var b=new gx,c=0;try{return void 0!==a.dbName&&(L(b,1,a.dbName),c++),void 0!==a.dbVersion&&(L(b,2,a.dbVersion),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}},
flowEvent:function(a){var b=new Zw,c=0;try{void 0!==a.flowNonce&&(L(b,1,a.flowNonce),c++);if(a.flowEventType){var d=a.flowEventType,e=new Yw,f=0;try{void 0!==d.flowEventNamespace&&(L(e,1,qbb[d.flowEventNamespace]),f++);void 0!==d.flowEventType&&(L(e,2,d.flowEventType),f++);var h=[f===Object.keys(d).length,e]}catch(Ha){Y(Ha),h=[!1,void 0]}var l=h;l[0]&&(Ch(b,Yw,2,l[1]),c++)}if(a.flowMetadata){var m=a.flowMetadata,n=new Xw,p=0;try{if(m.notaireContext){var q=m.notaireContext,t=new kw,w=0;try{if(q.serverInfo){var z=
q.serverInfo,C=new jw,G=0;try{void 0!==z.id&&(L(C,1,z.id),G++);void 0!==z.forceLog&&(L(C,2,z.forceLog),G++);var O=[G===Object.keys(z).length,C]}catch(Ha){Y(Ha),O=[!1,void 0]}var N=O;N[0]&&(Ch(t,jw,1,N[1]),w++)}if(q.clientInfo){var K=q.clientInfo,W=new iw,Z=0;try{void 0!==K.timeSinceReceivedMs&&(L(W,1,K.timeSinceReceivedMs),Z++);var Q=[Z===Object.keys(K).length,W]}catch(Ha){Y(Ha),Q=[!1,void 0]}var na=Q;na[0]&&(Ch(t,iw,2,na[1]),w++)}var r=[w===Object.keys(q).length,t]}catch(Ha){Y(Ha),r=[!1,void 0]}var J=
r;J[0]&&(Ch(n,kw,1,J[1]),p++)}if(m.offlineTransferStatusChangedContext){var ha=m.offlineTransferStatusChangedContext,X=new qw,Da=0;try{if(ha.offlineTransferStatusChanged){var za=MHa(ha.offlineTransferStatusChanged);za[0]&&(Ch(X,pw,1,za[1]),Da++)}var Za=[Da===Object.keys(ha).length,X]}catch(Ha){Y(Ha),Za=[!1,void 0]}var cb=Za;cb[0]&&(Ch(n,qw,2,cb[1]),p++)}if(m.offlineOrchestrationContext){var wa=m.offlineOrchestrationContext,$a=new mw,u=0;try{void 0!==wa.entityType&&(L($a,1,wa.entityType),u++);void 0!==
wa.entityId&&(L($a,7,wa.entityId),u++);void 0!==wa.offlineOrchestrationActionType&&(L($a,6,Nbb[wa.offlineOrchestrationActionType]),u++);void 0!==wa.offlineOrchestrationActionResult&&(L($a,2,Mbb[wa.offlineOrchestrationActionResult]),u++);void 0!==wa.offlineOrchestrationFailureReason&&(L($a,10,Obb[wa.offlineOrchestrationFailureReason]),u++);void 0!==wa.isRetryable&&(L($a,3,wa.isRetryable),u++);void 0!==wa.isRestored&&(L($a,11,wa.isRestored),u++);if(wa.orchestrationAction){var D=LIa(wa.orchestrationAction);
D[0]&&(Ch($a,lw,4,D[1]),u++)}wa.additionalOrchestrationActions&&(GR($a.j.bind($a),wa.additionalOrchestrationActions,LIa),u++);void 0!==wa.intervalSinceEnqueuedMs&&(L($a,8,wa.intervalSinceEnqueuedMs),u++);void 0!==wa.executionIntervalMs&&(L($a,9,wa.executionIntervalMs),u++);var F=[u===Object.keys(wa).length,$a]}catch(Ha){Y(Ha),F=[!1,void 0]}var B=F;B[0]&&(Ch(n,mw,3,B[1]),p++)}if(m.shortsCreationContext){var M=m.shortsCreationContext,H=new Kw,R=0;try{void 0!==M.shortsCreationSurfaces&&(HR(H.j.bind(H),
M.shortsCreationSurfaces,Ybb),R++);var T=[R===Object.keys(M).length,H]}catch(Ha){Y(Ha),T=[!1,void 0]}var ea=T;ea[0]&&(Ch(n,Kw,4,ea[1]),p++)}if(m.mdxConnectionContext){var ca=m.mdxConnectionContext,ia=new ew,ra=0;try{void 0!==ca.isReconnection&&(L(ia,1,ca.isReconnection),ra++);void 0!==ca.disconnectReason&&(L(ia,2,zbb[ca.disconnectReason]),ra++);void 0!==ca.isRetry&&(L(ia,3,ca.isRetry),ra++);var ya=[ra===Object.keys(ca).length,ia]}catch(Ha){Y(Ha),ya=[!1,void 0]}var tb=ya;tb[0]&&(Ch(n,ew,5,tb[1]),p++)}if(m.premiumMultiStepPurchaseContext){var jb=
m.premiumMultiStepPurchaseContext,yb=new yw,eb=0;try{if(jb.selectedOption){var Ra=jb.selectedOption,kb=new xw,Kb=0;try{void 0!==Ra.offerType&&(L(kb,1,Aab[Ra.offerType]),Kb++);void 0!==Ra.itemType&&(L(kb,2,TR[Ra.itemType]),Kb++);void 0!==Ra.itemExternalId&&(L(kb,3,Ra.itemExternalId),Kb++);var xc=[Kb===Object.keys(Ra).length,kb]}catch(Ha){Y(Ha),xc=[!1,void 0]}var vd=xc;vd[0]&&(Ch(yb,xw,1,vd[1]),eb++)}void 0!==jb.itemType&&(L(yb,2,TR[jb.itemType]),eb++);void 0!==jb.productType&&(L(yb,3,UR[jb.productType]),
eb++);void 0!==jb.landingPageVariantId&&(L(yb,4,jb.landingPageVariantId),eb++);void 0!==jb.experimentStatus&&(L(yb,5,Bbb[jb.experimentStatus]),eb++);void 0!==jb.themeKey&&(L(yb,6,jb.themeKey),eb++);void 0!==jb.signupType&&(L(yb,7,Cbb[jb.signupType]),eb++);var ub=[eb===Object.keys(jb).length,yb]}catch(Ha){Y(Ha),ub=[!1,void 0]}var ac=ub;ac[0]&&(Ch(n,yw,6,ac[1]),p++)}if(m.mdxReceiverConnectionContext){var Eb=m.mdxReceiverConnectionContext,kc=new fw,Dc=0;try{void 0!==Eb.isFromAppLaunch&&(L(kc,1,Eb.isFromAppLaunch),
Dc++);void 0!==Eb.dialServerType&&(L(kc,2,ybb[Eb.dialServerType]),Dc++);void 0!==Eb.supportsSmoothPairing&&(L(kc,3,Eb.supportsSmoothPairing),Dc++);void 0!==Eb.hasManuallyPairedRemotesOnAppStartup&&(L(kc,4,Eb.hasManuallyPairedRemotesOnAppStartup),Dc++);void 0!==Eb.mismatchedTheme&&(L(kc,5,vab[Eb.mismatchedTheme]),Dc++);void 0!==Eb.mdxSenderConnectedCounter&&(L(kc,6,Eb.mdxSenderConnectedCounter),Dc++);void 0!==Eb.externalRouteSource&&(L(kc,7,xbb[Eb.externalRouteSource]),Dc++);void 0!==Eb.appReloadCount&&
(L(kc,8,Eb.appReloadCount),Dc++);var ze=[Dc===Object.keys(Eb).length,kc]}catch(Ha){Y(Ha),ze=[!1,void 0]}var ge=ze;ge[0]&&(Ch(n,fw,7,ge[1]),p++)}if(m.parentToolsOnboardingContext){var pc=m.parentToolsOnboardingContext,Ec=new tw,wd=0;try{void 0!==pc.triggerPoint&&(L(Ec,1,Lab[pc.triggerPoint]),wd++);if(pc.kidsFlowInfo){var yc=pc.kidsFlowInfo,Oc=new rw,Fd=0;try{void 0!==yc.kidsFlowVersion&&(L(Oc,1,Iab[yc.kidsFlowVersion]),Fd++);void 0!==yc.flowLabel&&(L(Oc,2,yc.flowLabel),Fd++);void 0!==yc.hostClientName&&
(L(Oc,3,Jab[yc.hostClientName]),Fd++);void 0!==yc.hostClientVersion&&(L(Oc,4,yc.hostClientVersion),Fd++);void 0!==yc.kidsFlowType&&(L(Oc,5,Hab[yc.kidsFlowType]),Fd++);var Pc=[Fd===Object.keys(yc).length,Oc]}catch(Ha){Y(Ha),Pc=[!1,void 0]}var Kd=Pc;Kd[0]&&(Ch(Ec,rw,2,Kd[1]),wd++)}void 0!==pc.kidsCorpusPreferenceNew&&(L(Ec,3,Gab[pc.kidsCorpusPreferenceNew]),wd++);void 0!==pc.appChoice&&(L(Ec,4,Kab[pc.appChoice]),wd++);void 0!==pc.isKidSignedIn&&(L(Ec,5,pc.isKidSignedIn),wd++);void 0!==pc.alreadyOnboardedYtk&&
(L(Ec,6,pc.alreadyOnboardedYtk),wd++);void 0!==pc.alreadyOnboardedSupex&&(L(Ec,7,pc.alreadyOnboardedSupex),wd++);var Hb=[wd===Object.keys(pc).length,Ec]}catch(Ha){Y(Ha),Hb=[!1,void 0]}var qe=Hb;qe[0]&&(Ch(n,tw,8,qe[1]),p++)}if(m.hashtagAutoCompleteContext){var Lb=m.hashtagAutoCompleteContext,Ib=new Tv,ig=0;try{void 0!==Lb.suggestionSelected&&(L(Ib,1,Lb.suggestionSelected),ig++);var he=[ig===Object.keys(Lb).length,Ib]}catch(Ha){Y(Ha),he=[!1,void 0]}var Qc=he;Qc[0]&&(Ch(n,Tv,9,Qc[1]),p++)}if(m.liveStreamingContext){var Kc=
m.liveStreamingContext,xd=new dw,Ud=0;try{void 0!==Kc.broadcastSource&&(L(xd,1,Rab[Kc.broadcastSource]),Ud++);void 0!==Kc.isAutoDashboard&&(L(xd,2,Kc.isAutoDashboard),Ud++);void 0!==Kc.externalVideoId&&(L(xd,3,Kc.externalVideoId),Ud++);void 0!==Kc.broadcastConferenceType&&(L(xd,4,Pab[Kc.broadcastConferenceType]),Ud++);if(Kc.eventData){var pd=Kc.eventData,nf=new cw,sc=0;try{if(pd.webrtcHandshakeOffer){var qd=pd.webrtcHandshakeOffer,ie=new bw,Oe=0;try{void 0!==qd.localVideoSsrc&&(L(ie,1,qd.localVideoSsrc),
Oe++);void 0!==qd.localAudioSsrc&&(L(ie,2,qd.localAudioSsrc),Oe++);void 0!==qd.participantId&&(L(ie,3,qd.participantId),Oe++);var $e=[Oe===Object.keys(qd).length,ie]}catch(Ha){Y(Ha),$e=[!1,void 0]}var Kg=$e;Kg[0]&&(Ch(nf,bw,1,Kg[1]),sc++)}if(pd.webrtcHandshakeAnswer){var Pb=pd.webrtcHandshakeAnswer,bj=new $v,of=0;try{void 0!==Pb.remoteVideoSsrc&&(L(bj,1,Pb.remoteVideoSsrc),of++);void 0!==Pb.remoteAudioSsrc&&(L(bj,2,Pb.remoteAudioSsrc),of++);var mh=[of===Object.keys(Pb).length,bj]}catch(Ha){Y(Ha),
mh=[!1,void 0]}var Rh=mh;Rh[0]&&(Ch(nf,$v,2,Rh[1]),sc++)}if(pd.webrtcHandshakeError){var Ae=pd.webrtcHandshakeError,cj=new aw,Sh=0;try{void 0!==Ae.description&&(L(cj,1,Ae.description),Sh++);var dj=[Sh===Object.keys(Ae).length,cj]}catch(Ha){Y(Ha),dj=[!1,void 0]}var Pe=dj;Pe[0]&&(Ch(nf,aw,3,Pe[1]),sc++)}if(pd.costreamStartNotification){var nh=pd.costreamStartNotification,ui=new Wv,Pj=0;try{void 0!==nh.broadcastStartTimeMs&&(L(ui,1,nh.broadcastStartTimeMs),Pj++);var ej=[Pj===Object.keys(nh).length,ui]}catch(Ha){Y(Ha),
ej=[!1,void 0]}var Qf=ej;Qf[0]&&(Ch(nf,Wv,4,Qf[1]),sc++)}if(pd.remoteParticipant){var Lg=pd.remoteParticipant,vi=new Yv,wi=0;try{void 0!==Lg.videoSsrc&&(L(vi,1,Lg.videoSsrc),wi++);void 0!==Lg.audioSsrc&&(L(vi,2,Lg.audioSsrc),wi++);var fj=[wi===Object.keys(Lg).length,vi]}catch(Ha){Y(Ha),fj=[!1,void 0]}var Qj=fj;Qj[0]&&(Ch(nf,Yv,5,Qj[1]),sc++)}if(pd.webcamEventData){var Uc=pd.webcamEventData,je=new Zv,qc=0;try{void 0!==Uc.videoFrameRate&&(Eh(je,1,Uc.videoFrameRate),qc++);void 0!==Uc.videoAspectRatio&&
(Eh(je,2,Uc.videoAspectRatio),qc++);void 0!==Uc.videoHeight&&(L(je,3,Uc.videoHeight),qc++);void 0!==Uc.videoWidth&&(L(je,4,Uc.videoWidth),qc++);void 0!==Uc.videoCaptureCursor&&(L(je,5,Uc.videoCaptureCursor),qc++);void 0!==Uc.videoCaptureSurface&&(L(je,6,Uc.videoCaptureSurface),qc++);void 0!==Uc.videoCaptureAudioEnabled&&(L(je,7,Uc.videoCaptureAudioEnabled),qc++);var oh=[qc===Object.keys(Uc).length,je]}catch(Ha){Y(Ha),oh=[!1,void 0]}var Rj=oh;Rj[0]&&(Ch(nf,Zv,6,Rj[1]),sc++)}if(pd.errorEventData){var Mg=
pd.errorEventData,xi=new Xv,Ng=0;try{void 0!==Mg.liveClientErrorType&&(L(xi,1,Nab[Mg.liveClientErrorType]),Ng++);void 0!==Mg.liveServerErrorType&&(L(xi,2,Oab[Mg.liveServerErrorType]),Ng++);void 0!==Mg.kioskClientApiErrorType&&(L(xi,3,Mab[Mg.kioskClientApiErrorType]),Ng++);var gj=[Ng===Object.keys(Mg).length,xi]}catch(Ha){Y(Ha),gj=[!1,void 0]}var af=gj;af[0]&&(Ch(nf,Xv,7,af[1]),sc++)}var yi=[sc===Object.keys(pd).length,nf]}catch(Ha){Y(Ha),yi=[!1,void 0]}var zi=yi;zi[0]&&(Ch(xd,cw,5,zi[1]),Ud++)}void 0!==
Kc.isMonetizationOn&&(L(xd,6,Kc.isMonetizationOn),Ud++);void 0!==Kc.sharedmdeEnabled&&(L(xd,7,Kc.sharedmdeEnabled),Ud++);void 0!==Kc.isScreencast&&(L(xd,8,Kc.isScreencast),Ud++);void 0!==Kc.broadcastLifecycleStatus&&(L(xd,9,Qab[Kc.broadcastLifecycleStatus]),Ud++);var Sj=[Ud===Object.keys(Kc).length,xd]}catch(Ha){Y(Ha),Sj=[!1,void 0]}var Th=Sj;Th[0]&&(Ch(n,dw,10,Th[1]),p++)}if(m.touAppealContext){var re=m.touAppealContext,Rf=new Pw,ke=0;try{void 0!==re.scope&&(L(Rf,1,re.scope),ke++);if(re.videoId){var ph=
re.videoId,Sf=new Nw,Nk=0;try{void 0!==ph.externalVideoId&&(L(Sf,1,ph.externalVideoId),Nk++);var Tj=[Nk===Object.keys(ph).length,Sf]}catch(Ha){Y(Ha),Tj=[!1,void 0]}var Tf=Tj;Tf[0]&&(Rf.setVideoId(Tf[1]),ke++)}if(re.videoThumbnailId){var Be=re.videoThumbnailId,Zb=new Ow,Ld=0;try{void 0!==Be.externalVideoId&&(L(Zb,1,Be.externalVideoId),Ld++);void 0!==Be.thumbnailVersion&&(L(Zb,3,Be.thumbnailVersion),Ld++);void 0!==Be.checksum&&(L(Zb,4,Be.checksum),Ld++);var Md=[Ld===Object.keys(Be).length,Zb]}catch(Ha){Y(Ha),
Md=[!1,void 0]}var Og=Md;Og[0]&&(Dh(Rf,Ow,3,t3,Og[1]),ke++)}if(re.playlistId){var Ai=re.playlistId,Pg=new Mw,pf=0;try{void 0!==Ai.externalPlaylistId&&(L(Pg,1,Ai.externalPlaylistId),pf++);var qh=[pf===Object.keys(Ai).length,Pg]}catch(Ha){Y(Ha),qh=[!1,void 0]}var Uj=qh;Uj[0]&&(Dh(Rf,Mw,4,t3,Uj[1]),ke++)}void 0!==re.urlHostname&&(yh(Rf,5,t3,re.urlHostname),ke++);void 0!==re.encodedTouViolativeContentId&&(L(Rf,6,re.encodedTouViolativeContentId),ke++);void 0!==re.encodedChannelTouViolativeContentId&&(L(Rf,
7,re.encodedChannelTouViolativeContentId),ke++);var Uf=[ke===Object.keys(re).length,Rf]}catch(Ha){Y(Ha),Uf=[!1,void 0]}var hj=Uf;hj[0]&&(Ch(n,Pw,11,hj[1]),p++)}if(m.dragAndDropContext){var rh=m.dragAndDropContext,Ll=new Rv,ij=0;try{if(rh.rootVe){var Ml=IR(rh.rootVe);Ml[0]&&(Ch(Ll,Qv,1,Ml[1]),ij++)}if(rh.ve){var jj=IR(rh.ve);jj[0]&&(Ch(Ll,Qv,2,jj[1]),ij++)}var Ok=[ij===Object.keys(rh).length,Ll]}catch(Ha){Y(Ha),Ok=[!1,void 0]}var Nd=Ok;Nd[0]&&(Ch(n,Rv,12,Nd[1]),p++)}if(m.socialSuggestionsContext){var le=
m.socialSuggestionsContext,bf=new Lw,Ff=0;try{void 0!==le.socialSuggestionsType&&(L(bf,1,Ebb[le.socialSuggestionsType]),Ff++);void 0!==le.suggestionSelected&&(L(bf,2,le.suggestionSelected),Ff++);void 0!==le.source&&(L(bf,3,Fbb[le.source]),Ff++);var Uh=[Ff===Object.keys(le).length,bf]}catch(Ha){Y(Ha),Uh=[!1,void 0]}var Bi=Uh;Bi[0]&&(Ch(n,Lw,13,Bi[1]),p++)}if(m.featureEnablementContext){var Nl=m.featureEnablementContext,mn=new Sv,nn=0;try{void 0!==Nl.feature&&(L(mn,1,wGa[Nl.feature]),nn++);var jg=[nn===
Object.keys(Nl).length,mn]}catch(Ha){Y(Ha),jg=[!1,void 0]}var kg=jg;kg[0]&&(Ch(n,Sv,14,kg[1]),p++)}if(m.iapContext){var Ce=m.iapContext,Qg=new Vv,cf=0;try{if(Ce.playIapProduct){var Vh=Ce.playIapProduct,Vf=new Uv,sh=0;try{void 0!==Vh.packageId&&(L(Vf,1,Vh.packageId),sh++);void 0!==Vh.productId&&(L(Vf,2,Vh.productId),sh++);var Vj=[sh===Object.keys(Vh).length,Vf]}catch(Ha){Y(Ha),Vj=[!1,void 0]}var Ol=Vj;Ol[0]&&(Dh(Qg,Uv,1,obb,Ol[1]),cf++)}void 0!==Ce.source&&(L(Qg,2,sbb[Ce.source]),cf++);void 0!==Ce.attributionId&&
(L(Qg,3,Ce.attributionId),cf++);void 0!==Ce.externalVideoId&&(L(Qg,4,Ce.externalVideoId),cf++);void 0!==Ce.externalChannelId&&(L(Qg,5,Ce.externalChannelId),cf++);var on=[cf===Object.keys(Ce).length,Qg]}catch(Ha){Y(Ha),on=[!1,void 0]}var qf=on;qf[0]&&(Ch(n,Vv,15,qf[1]),p++)}if(m.shoppingCheckoutContext){var dd=m.shoppingCheckoutContext,Gf=new Jw,lg=0;try{if(dd.shoppingFlowParams){var kj=OIa(dd.shoppingFlowParams);kj[0]&&(Ch(Gf,Hw,1,kj[1]),lg++)}void 0!==dd.shoppingCheckoutErrorReason&&(L(Gf,2,Dbb[dd.shoppingCheckoutErrorReason]),
lg++);var Pl=[lg===Object.keys(dd).length,Gf]}catch(Ha){Y(Ha),Pl=[!1,void 0]}var Ql=Pl;Ql[0]&&(Ch(n,Jw,16,Ql[1]),p++)}if(m.ypcCancellationContext){var th=m.ypcCancellationContext,Pk=new Vw,lj=0;try{void 0!==th.itemType&&(L(Pk,1,TR[th.itemType]),lj++);void 0!==th.productType&&(L(Pk,2,UR[th.productType]),lj++);var Rl=[lj===Object.keys(th).length,Pk]}catch(Ha){Y(Ha),Rl=[!1,void 0]}var Wj=Rl;Wj[0]&&(Ch(n,Vw,17,Wj[1]),p++)}if(m.ypcBrowseOffersContext){var Xa=m.ypcBrowseOffersContext,pn=new Uw,qn=0;try{if(Xa.commerceFlowLoggingParams){var bt=
SIa(Xa.commerceFlowLoggingParams);bt[0]&&(Ch(pn,Tw,1,bt[1]),qn++)}void 0!==Xa.offerType&&(L(pn,2,Bab[Xa.offerType]),qn++);void 0!==Xa.entityType&&(L(pn,3,kbb[Xa.entityType]),qn++);var wq=[qn===Object.keys(Xa).length,pn]}catch(Ha){Y(Ha),wq=[!1,void 0]}var Qk=wq;Qk[0]&&(Ch(n,Uw,18,Qk[1]),p++)}if(m.mdxStreamTransferContext){var xq=m.mdxStreamTransferContext,ct=new gw,dt=0;try{void 0!==xq.completedReason&&(L(ct,1,Abb[xq.completedReason]),dt++);var Wf=[dt===Object.keys(xq).length,ct]}catch(Ha){Y(Ha),Wf=
[!1,void 0]}var Ci=Wf;Ci[0]&&(Ch(n,gw,19,Ci[1]),p++)}if(m.pdgBuyFlowContext){var mj=m.pdgBuyFlowContext,Jo=new ww,Ko=0;try{void 0!==mj.productType&&(L(Jo,1,UR[mj.productType]),Ko++);if(mj.entryPointClickedContext){var Di=mj.entryPointClickedContext,Sl=new uw,Rk=0;try{void 0!==Di.superVodBuyFlowEntryPoint&&(yh(Sl,1,s3,Sbb[Di.superVodBuyFlowEntryPoint]),Rk++);void 0!==Di.superChatBuyFlowEntryPoint&&(yh(Sl,2,s3,Qbb[Di.superChatBuyFlowEntryPoint]),Rk++);void 0!==Di.sharedPdgBuyFlowEntryPoint&&(yh(Sl,
3,s3,Pbb[Di.sharedPdgBuyFlowEntryPoint]),Rk++);void 0!==Di.superStickerBuyFlowEntryPoint&&(yh(Sl,4,s3,Rbb[Di.superStickerBuyFlowEntryPoint]),Rk++);var et=[Rk===Object.keys(Di).length,Sl]}catch(Ha){Y(Ha),et=[!1,void 0]}var ft=et;ft[0]&&(Ch(Jo,uw,2,ft[1]),Ko++)}if(mj.itemSelectionPageDisplayedContext){var Sk=mj.itemSelectionPageDisplayedContext,Lo=new vw,yq=0;try{void 0!==Sk.superStickerBuyFlowType&&(L(Lo,1,Tbb[Sk.superStickerBuyFlowType]),yq++);var zq=[yq===Object.keys(Sk).length,Lo]}catch(Ha){Y(Ha),
zq=[!1,void 0]}var gt=zq;gt[0]&&(Ch(Jo,vw,3,gt[1]),Ko++)}var nj=[Ko===Object.keys(mj).length,Jo]}catch(Ha){Y(Ha),nj=[!1,void 0]}var Tl=nj;Tl[0]&&(Ch(n,ww,20,Tl[1]),p++)}if(m.ypcPurchaseContext){var uh=m.ypcPurchaseContext,rn=new Ww,sn=0;try{if(uh.commerceFlowLoggingParams){var ht=SIa(uh.commerceFlowLoggingParams);ht[0]&&(Ch(rn,Tw,1,ht[1]),sn++)}void 0!==uh.offerType&&(L(rn,2,Bab[uh.offerType]),sn++);void 0!==uh.transactionType&&(L(rn,3,Ibb[uh.transactionType]),sn++);void 0!==uh.paymentProcessor&&
(L(rn,4,Cab[uh.paymentProcessor]),sn++);var jt=[sn===Object.keys(uh).length,rn]}catch(Ha){Y(Ha),jt=[!1,void 0]}var kt=jt;kt[0]&&(Ch(n,Ww,21,kt[1]),p++)}if(m.webViewContext){var Mb=m.webViewContext,df=new Rw,Wh=0;try{void 0!==Mb.hostname&&(L(df,1,Mb.hostname),Wh++);void 0!==Mb.webViewUseCase&&(L(df,2,$bb[Mb.webViewUseCase]),Wh++);void 0!==Mb.isFirstPartyHost&&(L(df,5,Mb.isFirstPartyHost),Wh++);void 0!==Mb.isLoaded&&(L(df,3,Mb.isLoaded),Wh++);void 0!==Mb.webViewEngagementSec&&(L(df,4,Mb.webViewEngagementSec),
Wh++);var Aw=[Wh===Object.keys(Mb).length,df]}catch(Ha){Y(Ha),Aw=[!1,void 0]}var lt=Aw;lt[0]&&(Ch(n,Rw,22,lt[1]),p++)}if(m.videoSuggestionsContext){var Xj=m.videoSuggestionsContext,Mo=new Qw,Ul=0;try{void 0!==Xj.type&&(L(Mo,1,wab[Xj.type]),Ul++);void 0!==Xj.serializedSuggestionData&&(Gh(Mo,2,Xj.serializedSuggestionData),Ul++);void 0!==Xj.videoId&&(Mo.setVideoId(Xj.videoId),Ul++);var mt=[Ul===Object.keys(Xj).length,Mo]}catch(Ha){Y(Ha),mt=[!1,void 0]}var Aq=mt;Aq[0]&&(Ch(n,Qw,23,Aq[1]),p++)}if(m.actionSheetContext){var Bq=
m.actionSheetContext,nt=new Nv,Cq=0;try{void 0!==Bq.parentScreenUiType&&(L(nt,1,Bq.parentScreenUiType),Cq++);var Dq=[Cq===Object.keys(Bq).length,nt]}catch(Ha){Y(Ha),Dq=[!1,void 0]}var ot=Dq;ot[0]&&(Ch(n,Nv,24,ot[1]),p++)}if(m.producerExportContext){var Eq=m.producerExportContext,Fq=new Gw,pt=0;try{if(Eq.exportDetails){var Vl=Eq.exportDetails,tn=new Fw,Gq=0;try{if(Vl.project){var un=Vl.project,vh=new zw,Tk=0;try{void 0!==un.projectId&&(lh(vh,1,un.projectId,""),Tk++);void 0!==un.durationMs&&(lh(vh,
2,un.durationMs,0),Tk++);var No=[Tk===Object.keys(un).length,vh]}catch(Ha){Y(Ha),No=[!1,void 0]}var qt=No;qt[0]&&(Ch(tn,zw,1,qt[1]),Gq++)}if(Vl.renderDetails){var Uk=Vl.renderDetails,Oo=new Bw,Yj=0;try{void 0!==Uk.sizeBytes&&(lh(Oo,1,Uk.sizeBytes,0),Yj++);void 0!==Uk.pixelWidth&&(lh(Oo,2,Uk.pixelWidth,0),Yj++);void 0!==Uk.pixelHeight&&(lh(Oo,3,Uk.pixelHeight,0),Yj++);var Po=[Yj===Object.keys(Uk).length,Oo]}catch(Ha){Y(Ha),Po=[!1,void 0]}var rt=Po;rt[0]&&(Ch(tn,Bw,2,rt[1]),Gq++)}var Hq=[Gq===Object.keys(Vl).length,
tn]}catch(Ha){Y(Ha),Hq=[!1,void 0]}var Iq=Hq;Iq[0]&&(Ch(Fq,Fw,1,Iq[1]),pt++)}var Na=[pt===Object.keys(Eq).length,Fq]}catch(Ha){Y(Ha),Na=[!1,void 0]}var PH=Na;PH[0]&&(Ch(n,Gw,25,PH[1]),p++)}if(m.downloadMyVideoContext){var Ei=m.downloadMyVideoContext,vn=new Pv,Qo=0;try{void 0!==Ei.videoId&&(vn.setVideoId(Ei.videoId),Qo++);void 0!==Ei.videoSid&&(L(vn,2,Ei.videoSid),Qo++);void 0!==Ei.downloadError&&(L(vn,3,pbb[Ei.downloadError]),Qo++);void 0!==Ei.totalAssetSize&&(L(vn,4,Ei.totalAssetSize),Qo++);void 0!==
Ei.totalDownloadedPercent&&(L(vn,5,Ei.totalDownloadedPercent),Qo++);void 0!==Ei.mddDownloadErrorCode&&(L(vn,6,Ei.mddDownloadErrorCode),Qo++);var Cw=[Qo===Object.keys(Ei).length,vn]}catch(Ha){Y(Ha),Cw=[!1,void 0]}var QH=Cw;QH[0]&&(Ch(n,Pv,26,QH[1]),p++)}if(m.miniAppContext){var Ro=m.miniAppContext,tt=new hw,UA=0;try{void 0!==Ro.externalPostId&&(L(tt,1,Ro.externalPostId),UA++);void 0!==Ro.localReleaseId&&(L(tt,2,Ro.localReleaseId),UA++);var RH=[UA===Object.keys(Ro).length,tt]}catch(Ha){Y(Ha),RH=[!1,
void 0]}var SH=RH;SH[0]&&(Ch(n,hw,27,SH[1]),p++)}if(m.shoppingCartContext){var VA=m.shoppingCartContext,WA=new Iw,TH=0;try{if(VA.shoppingFlowParams){var XA=OIa(VA.shoppingFlowParams);XA[0]&&(Ch(WA,Hw,1,XA[1]),TH++)}var Dw=[TH===Object.keys(VA).length,WA]}catch(Ha){Y(Ha),Dw=[!1,void 0]}var UH=Dw;UH[0]&&(Ch(n,Iw,28,UH[1]),p++)}if(m.channelMembershipPurchaseContext){var YA=m.channelMembershipPurchaseContext,VH=new Ov,WH=0;try{void 0!==YA.joinMethod&&(L(VH,1,zab[YA.joinMethod]),WH++);var XH=[WH===Object.keys(YA).length,
VH]}catch(Ha){Y(Ha),XH=[!1,void 0]}var ZA=XH;ZA[0]&&(Ch(n,Ov,29,ZA[1]),p++)}var YH=[p===Object.keys(m).length,n]}catch(Ha){Y(Ha),YH=[!1,void 0]}var ZH=YH;ZH[0]&&(Ch(b,Xw,3,ZH[1]),c++)}void 0!==a.flowType&&(L(b,4,rbb[a.flowType]),c++);void 0!==a.flowEventStatus&&(L(b,5,a.flowEventStatus),c++);void 0!==a.csn&&(L(b,6,a.csn),c++);void 0!==a.can&&(L(b,7,a.can),c++);if(a.cuiAssociations){var $A=a.cuiAssociations,aB=new $s,$H=0;try{$A.association&&(GR(aB.j.bind(aB),$A.association,IIa),$H++);var aI=[$H===
Object.keys($A).length,aB]}catch(Ha){Y(Ha),aI=[!1,void 0]}var bI=aI;bI[0]&&(Ch(b,$s,8,bI[1]),c++)}return[c===Object.keys(a).length,b]}catch(Ha){return Y(Ha),[!1,void 0]}},
idbQuotaExceeded:function(a){var b=new dx,c=0;try{return void 0!==a.deviceStorageUsageMbytes&&(L(b,1,a.deviceStorageUsageMbytes),c++),void 0!==a.deviceStorageQuotaMbytes&&(L(b,2,a.deviceStorageQuotaMbytes),c++),void 0!==a.isIframe&&(L(b,3,a.isIframe),c++),void 0!==a.isSw&&(L(b,4,a.isSw),c++),void 0!==a.dbName&&(L(b,5,a.dbName),c++),void 0!==a.objectStoreNames&&(L(b,6,a.objectStoreNames),c++),void 0!==a.transactionCount&&(L(b,7,a.transactionCount),c++),void 0!==a.transactionMode&&(L(b,8,a.transactionMode),
c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}},
idbTransactionAborted:function(a){var b=new ex,c=0;try{return void 0!==a.objectStoreNames&&(L(b,1,a.objectStoreNames),c++),void 0!==a.hasWindowUnloaded&&(L(b,2,a.hasWindowUnloaded),c++),void 0!==a.transactionCount&&(L(b,3,a.transactionCount),c++),void 0!==a.transactionDuration&&(L(b,4,a.transactionDuration),c++),void 0!==a.dbDuration&&(L(b,5,a.dbDuration),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}},
streamzIncremented:function(a){var b=new Rx,c=0;try{return void 0!==a.serializedIncrementBatch&&(Gh(b,1,a.serializedIncrementBatch),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}},
sliEventBatch:function(a){var b=new Gv,c=0;try{a.loggedEvents&&(GR(b.j.bind(b),a.loggedEvents,uJa),c++);a.unloggedEvents&&(GR(b.B.bind(b),a.unloggedEvents,uJa),c++);void 0!==a.playerClientVersion&&(L(b,3,a.playerClientVersion),c++);void 0!==a.playerCanaryState&&(L(b,4,jbb[a.playerCanaryState]),c++);if(a.dimensions){var d=a.dimensions,e=new Fv,f=0;try{void 0!==d.playerClientVersion&&(L(e,1,d.playerClientVersion),f++);void 0!==d.playerCanaryState&&(L(e,2,jbb[d.playerCanaryState]),f++);var h=[f===Object.keys(d).length,
e]}catch(l){Y(l),h=[!1,void 0]}h[0]&&(Ch(b,Fv,5,h[1]),c++)}return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}},
playbackAssociated:function(a){var b=new ix,c=0;try{void 0!==a.cpn&&(L(b,1,a.cpn),c++);if(a.playbackVe){var d=IR(a.playbackVe);d[0]&&(Ch(b,Qv,2,d[1]),c++)}void 0!==a.csn&&(L(b,3,a.csn),c++);if(a.queueInfo){var e=a.queueInfo,f=new hx;d=0;try{if(e.enqueueingVe){var h=IR(e.enqueueingVe);h[0]&&(Ch(f,Qv,1,h[1]),d++)}void 0!==e.enqueueingCsn&&(L(f,2,e.enqueueingCsn),d++);void 0!==e.clientEnqueueingTimeMs&&(L(f,3,e.clientEnqueueingTimeMs),d++);var l=[d===Object.keys(e).length,f]}catch(m){Y(m),l=[!1,void 0]}l[0]&&
(Ch(b,hx,4,l[1]),c++)}return[c===Object.keys(a).length,b]}catch(m){return Y(m),[!1,void 0]}},
autoplayTriggered:function(a){var b=new Iv,c=0;try{return void 0!==a.intentional&&(L(b,1,a.intentional),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}},
webPlayerApiCalled:function(a){var b=new Sx,c=0;try{return void 0!==a.callerUrl&&(L(b,1,a.callerUrl),c++),void 0!==a.methodName&&(L(b,2,a.methodName),c++),void 0!==a.origin&&(L(b,3,a.origin),c++),void 0!==a.playerStyle&&(L(b,4,a.playerStyle),c++),void 0!==a.embeddedPlayerMode&&(L(b,5,Dab[a.embeddedPlayerMode]),c++),void 0!==a.errorCode&&(L(b,6,a.errorCode),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}},
embedsAdEvent:function(a){var b=new Hv,c=0;try{return void 0!==a.eventType&&(L(b,1,mbb[a.eventType]),c++),void 0!==a.breakType&&(L(b,2,lbb[a.breakType]),c++),void 0!==a.packageName&&(L(b,3,a.packageName),c++),void 0!==a.embedUrl&&(L(b,4,a.embedUrl),c++),void 0!==a.adSource&&(L(b,5,nbb[a.adSource]),c++),void 0!==a.youtubeHost&&(L(b,6,a.youtubeHost),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}},
embedsShouldRequestStorageAccessResult:function(a){var b=new Lv,c=0;try{return void 0!==a.result&&(L(b,1,a.result),c++),void 0!==a.returnsUndefined&&(L(b,2,a.returnsUndefined),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}},
embedsRequestStorageAccessState:function(a){var b=new Kv,c=0;try{return void 0!==a.isCued&&(L(b,1,a.isCued),c++),void 0!==a.isAutoplayBlocked&&(L(b,2,a.isAutoplayBlocked),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}},
embedsRequestStorageAccessFailedState:function(a){var b=new Jv,c=0;try{return void 0!==a.state&&(b.pc(a.state),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}},
heartbeatActionPlayerHalted:function(a){var b=new ax,c=0;try{return void 0!==a.serializedServerContext&&(Gh(b,1,a.serializedServerContext),c++),void 0!==a.enforcedPolicyToHaltOnNetworkFailure&&(L(b,2,a.enforcedPolicyToHaltOnNetworkFailure),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}},
heartbeatActionPlayerTransitioned:function(a){var b=new bx,c=0;try{return void 0!==a.reason&&(L(b,1,tbb[a.reason]),c++),void 0!==a.trigger&&(L(b,2,ubb[a.trigger]),c++),void 0!==a.serializedServerContext&&(Gh(b,3,a.serializedServerContext),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}},
embedsItpWatchLaterResult:function(a){var b=new Mv,c=0;try{return void 0!==a.accepted&&(L(b,1,a.accepted),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}},
html5PlayerHealthEvent:function(a){var b=new cx,c=0;try{return void 0!==a.started&&(L(b,1,a.started),c++),void 0!==a.stateAtSend&&(L(b,2,Hbb[a.stateAtSend]),c++),void 0!==a.joinLatencySecs&&(Eh(b,4,a.joinLatencySecs),c++),void 0!==a.playTimeSecs&&(Eh(b,5,a.playTimeSecs),c++),void 0!==a.rebufferTimeSecs&&(Eh(b,6,a.rebufferTimeSecs),c++),void 0!==a.playerCanaryType&&(L(b,7,vbb[a.playerCanaryType]),c++),void 0!==a.isAd&&(L(b,8,a.isAd),c++),void 0!==a.liveMode&&(L(b,9,Gbb[a.liveMode]),c++),void 0!==a.isGapless&&
(L(b,10,a.isGapless),c++),void 0!==a.hasDrm&&(L(b,11,a.hasDrm),c++),void 0!==a.seekCount&&(L(b,12,a.seekCount),c++),void 0!==a.networkErrorCount&&(L(b,13,a.networkErrorCount),c++),void 0!==a.nonNetworkErrorCount&&(L(b,14,a.nonNetworkErrorCount),c++),void 0!==a.isServerStitchedDai&&(L(b,15,a.isServerStitchedDai),c++),[c===Object.keys(a).length,b]}catch(d){return Y(d),[!1,void 0]}},
adsClientStateChange:function(a){var b=new fu,c=0;try{if(a.cuepointTrigger){var d=a.cuepointTrigger,e=new Ut,f=0;try{void 0!==d.type&&(L(e,1,Zab[d.type]),f++);void 0!==d.event&&(L(e,2,Yab[d.event]),f++);void 0!==d.cuepointId&&(L(e,3,d.cuepointId),f++);void 0!==d.totalCueDurationMs&&(Eh(e,4,d.totalCueDurationMs),f++);void 0!==d.playheadTimeMs&&(Eh(e,5,d.playheadTimeMs),f++);void 0!==d.cueStartTimeMs&&(Eh(e,6,d.cueStartTimeMs),f++);void 0!==d.cuepointReceivedTimeMs&&(Eh(e,7,d.cuepointReceivedTimeMs),
f++);void 0!==d.contentCpn&&(L(e,8,d.contentCpn),f++);void 0!==d.externalChannelId&&(L(e,9,d.externalChannelId),f++);var h=[f===Object.keys(d).length,e]}catch(Pb){Y(Pb),h=[!1,void 0]}var l=h;l[0]&&(Dh(b,Ut,1,r3,l[1]),c++)}if(a.daiStateTrigger){var m=a.daiStateTrigger,n=new Zt,p=0;try{void 0!==m.contentCpn&&(L(n,1,m.contentCpn),p++);void 0!==m.totalCueDurationMs&&(Eh(n,2,m.totalCueDurationMs),p++);void 0!==m.filledAdsDurationMs&&(Eh(n,3,m.filledAdsDurationMs),p++);void 0!==m.cueStartChange&&(L(n,4,
ebb[m.cueStartChange]),p++);void 0!==m.cueDurationChange&&(L(n,5,cbb[m.cueDurationChange]),p++);void 0!==m.cueDurationChangeReason&&(L(n,6,dbb[m.cueDurationChangeReason]),p++);void 0!==m.errorType&&(L(n,7,fbb[m.errorType]),p++);void 0!==m.externalChannelId&&(L(n,8,m.externalChannelId),p++);if(m.adClientData){var q=CIa(m.adClientData);q[0]&&(Ch(n,Nt,9,q[1]),p++)}var t=[p===Object.keys(m).length,n]}catch(Pb){Y(Pb),t=[!1,void 0]}var w=t;w[0]&&(Dh(b,Zt,2,r3,w[1]),c++)}if(a.daiAdBreakCriticalError){var z=
a.daiAdBreakCriticalError,C=new Vt,G=0;try{void 0!==z.contentCpn&&(L(C,1,z.contentCpn),G++);void 0!==z.errorType&&(L(C,2,fbb[z.errorType]),G++);void 0!==z.externalChannelId&&(L(C,3,z.externalChannelId),G++);void 0!==z.msg&&(L(C,4,z.msg),G++);void 0!==z.cueIdentifier&&(L(C,5,z.cueIdentifier),G++);var O=[G===Object.keys(z).length,C]}catch(Pb){Y(Pb),O=[!1,void 0]}var N=O;N[0]&&(Dh(b,Vt,3,r3,N[1]),c++)}if(a.daiAdBreakWarning){var K=a.daiAdBreakWarning,W=new Xt,Z=0;try{void 0!==K.contentCpn&&(L(W,1,K.contentCpn),
Z++);void 0!==K.errorType&&(L(W,2,fbb[K.errorType]),Z++);void 0!==K.externalChannelId&&(L(W,3,K.externalChannelId),Z++);void 0!==K.msg&&(L(W,4,K.msg),Z++);void 0!==K.cueIdentifier&&(L(W,5,K.cueIdentifier),Z++);var Q=[Z===Object.keys(K).length,W]}catch(Pb){Y(Pb),Q=[!1,void 0]}var na=Q;na[0]&&(Dh(b,Xt,4,r3,na[1]),c++)}if(a.daiAdBreakInfo){var r=a.daiAdBreakInfo,J=new Wt,ha=0;try{void 0!==r.contentCpn&&(L(J,1,r.contentCpn),ha++);void 0!==r.totalCueDurationMs&&(L(J,2,r.totalCueDurationMs),ha++);void 0!==
r.filledAdsDurationMs&&(L(J,3,r.filledAdsDurationMs),ha++);void 0!==r.cueStartChange&&(L(J,4,ebb[r.cueStartChange]),ha++);void 0!==r.cueDurationChange&&(L(J,5,cbb[r.cueDurationChange]),ha++);void 0!==r.cueDurationChangeReason&&(L(J,6,dbb[r.cueDurationChangeReason]),ha++);void 0!==r.externalChannelId&&(L(J,7,r.externalChannelId),ha++);void 0!==r.cueIdentifier&&(L(J,8,r.cueIdentifier),ha++);void 0!==r.infoType&&(L(J,9,gbb[r.infoType]),ha++);void 0!==r.msg&&(L(J,10,r.msg),ha++);void 0!==r.filledAdCount&&
(L(J,11,r.filledAdCount),ha++);var X=[ha===Object.keys(r).length,J]}catch(Pb){Y(Pb),X=[!1,void 0]}var Da=X;Da[0]&&(Dh(b,Wt,5,r3,Da[1]),c++)}if(a.visibilityErrorDebugInfo){var za=a.visibilityErrorDebugInfo,Za=new eu,cb=0;try{void 0!==za.elementName&&(L(Za,1,za.elementName),cb++);void 0!==za.contentVideoPlaybackEventId&&(L(Za,2,za.contentVideoPlaybackEventId),cb++);void 0!==za.errorList&&(L(Za,3,za.errorList),cb++);void 0!==za.htmlDump&&(L(Za,4,za.htmlDump),cb++);var wa=[cb===Object.keys(za).length,
Za]}catch(Pb){Y(Pb),wa=[!1,void 0]}var $a=wa;$a[0]&&(Dh(b,eu,6,r3,$a[1]),c++)}if(a.playbackTimelineAdBreakStateTrigger){var u=a.playbackTimelineAdBreakStateTrigger,D=new cu,F=0;try{void 0!==u.cueIdentifier&&(L(D,1,u.cueIdentifier),F++);void 0!==u.timestampUnixEpochSec&&(L(D,2,u.timestampUnixEpochSec),F++);void 0!==u.adRequestState&&(L(D,3,$ab[u.adRequestState]),F++);void 0!==u.segmentState&&(L(D,4,abb[u.segmentState]),F++);void 0!==u.timestampUnixEpochMs&&(L(D,5,u.timestampUnixEpochMs),F++);var B=
[F===Object.keys(u).length,D]}catch(Pb){Y(Pb),B=[!1,void 0]}var M=B;M[0]&&(Dh(b,cu,7,r3,M[1]),c++)}if(a.extraLongAdBreakDebugInfo){var H=a.extraLongAdBreakDebugInfo,R=new bu,T=0;try{void 0!==H.contentVideoPlaybackEventId&&(L(R,1,H.contentVideoPlaybackEventId),T++);if(H.adPlacementKindCuepointInitiatedCueRange){var ea=JIa(H.adPlacementKindCuepointInitiatedCueRange);ea[0]&&(Ch(R,au,2,ea[1]),T++)}if(H.adPlacementConfigImpliedCueRange){var ca=JIa(H.adPlacementConfigImpliedCueRange);ca[0]&&(Ch(R,au,3,
ca[1]),T++)}if(H.adPlacementKindMillisecondsInitiatedCueRange){var ia=JIa(H.adPlacementKindMillisecondsInitiatedCueRange);ia[0]&&(Ch(R,au,4,ia[1]),T++)}void 0!==H.cueIdentifier&&(L(R,5,H.cueIdentifier),T++);var ra=[T===Object.keys(H).length,R]}catch(Pb){Y(Pb),ra=[!1,void 0]}var ya=ra;ya[0]&&(Dh(b,bu,8,r3,ya[1]),c++)}if(a.comparePyvAdTagInfo){var tb=a.comparePyvAdTagInfo,jb=new Tt,yb=0;try{void 0!==tb.pyvAdTagUrlFromPlayer&&(L(jb,1,tb.pyvAdTagUrlFromPlayer),yb++);void 0!==tb.pyvAdTagUrlFromWatchNext&&
(L(jb,2,tb.pyvAdTagUrlFromWatchNext),yb++);var eb=[yb===Object.keys(tb).length,jb]}catch(Pb){Y(Pb),eb=[!1,void 0]}var Ra=eb;Ra[0]&&(Dh(b,Tt,9,r3,Ra[1]),c++)}if(a.driftRecoveryInfo){var kb=a.driftRecoveryInfo,Kb=new $t,xc=0;try{void 0!==kb.contentCpn&&(L(Kb,1,kb.contentCpn),xc++);void 0!==kb.cueIdentifier&&(L(Kb,2,kb.cueIdentifier),xc++);void 0!==kb.driftRecoveryMs&&(L(Kb,3,kb.driftRecoveryMs),xc++);void 0!==kb.breakDurationMs&&(L(Kb,4,kb.breakDurationMs),xc++);void 0!==kb.driftFromHeadMs&&(L(Kb,5,
kb.driftFromHeadMs),xc++);void 0!==kb.appliedDriftRecoveryMs&&(L(Kb,6,kb.appliedDriftRecoveryMs),xc++);void 0!==kb.destinationMs&&(L(Kb,7,kb.destinationMs),xc++);if(kb.adClientData){var vd=CIa(kb.adClientData);vd[0]&&(Ch(Kb,Nt,8,vd[1]),xc++)}var ub=[xc===Object.keys(kb).length,Kb]}catch(Pb){Y(Pb),ub=[!1,void 0]}var ac=ub;ac[0]&&(Dh(b,$t,10,r3,ac[1]),c++)}if(a.adsClientEvent){var Eb=a.adsClientEvent,kc=new St,Dc=0;try{void 0!==Eb.eventType&&(L(kc,1,Xab[Eb.eventType]),Dc++);if(Eb.adClientData){var ze=
CIa(Eb.adClientData);ze[0]&&(Ch(kc,Nt,3,ze[1]),Dc++)}void 0!==Eb.serializedAdServingData&&(Gh(kc,4,Eb.serializedAdServingData),Dc++);void 0!==Eb.eventOrder&&(L(kc,5,Eb.eventOrder),Dc++);void 0!==Eb.serializedSlotAdServingData&&(Gh(kc,6,Eb.serializedSlotAdServingData),Dc++);if(Eb.errorInfo){var ge=Eb.errorInfo,pc=new Rt,Ec=0;try{void 0!==ge.errorType&&(L(pc,1,Wab[ge.errorType]),Ec++);void 0!==ge.errorMessage&&(L(pc,2,Vab[ge.errorMessage]),Ec++);var wd=[Ec===Object.keys(ge).length,pc]}catch(Pb){Y(Pb),
wd=[!1,void 0]}var yc=wd;yc[0]&&(Ch(kc,Rt,7,yc[1]),Dc++)}var Oc=[Dc===Object.keys(Eb).length,kc]}catch(Pb){Y(Pb),Oc=[!1,void 0]}var Fd=Oc;Fd[0]&&(Dh(b,St,11,r3,Fd[1]),c++)}if(a.daiAdStateTracking){var Pc=a.daiAdStateTracking,Kd=new Yt,Hb=0;try{void 0!==Pc.eventType&&(L(Kd,1,bbb[Pc.eventType]),Hb++);void 0!==Pc.contentCpn&&(L(Kd,2,Pc.contentCpn),Hb++);void 0!==Pc.externalChannelId&&(L(Kd,3,Pc.externalChannelId),Hb++);void 0!==Pc.adCpn&&(L(Kd,4,Pc.adCpn),Hb++);void 0!==Pc.adCount&&(L(Kd,5,Pc.adCount),
Hb++);void 0!==Pc.msg&&(L(Kd,6,Pc.msg),Hb++);var qe=[Hb===Object.keys(Pc).length,Kd]}catch(Pb){Y(Pb),qe=[!1,void 0]}var Lb=qe;Lb[0]&&(Dh(b,Yt,12,r3,Lb[1]),c++)}if(a.adTrimmingInfo){var Ib=a.adTrimmingInfo,ig=new Pt,he=0;try{void 0!==Ib.contentCpn&&(L(ig,1,Ib.contentCpn),he++);void 0!==Ib.cueIdentifier&&(L(ig,2,Ib.cueIdentifier),he++);Ib.adMediaInfo&&(GR(ig.j.bind(ig),Ib.adMediaInfo,KIa),he++);var Qc=[he===Object.keys(Ib).length,ig]}catch(Pb){Y(Pb),Qc=[!1,void 0]}var Kc=Qc;Kc[0]&&(Dh(b,Pt,13,r3,Kc[1]),
c++)}if(a.adsAttributionEvent){var xd=a.adsAttributionEvent,Ud=new Qt,pd=0;try{void 0!==xd.errorCode&&(L(Ud,1,hbb[xd.errorCode]),pd++);void 0!==xd.attributionStep&&(L(Ud,2,ibb[xd.attributionStep]),pd++);void 0!==xd.innerErrorDomain&&(L(Ud,3,xd.innerErrorDomain),pd++);void 0!==xd.innerErrorCode&&(L(Ud,4,xd.innerErrorCode),pd++);var nf=[pd===Object.keys(xd).length,Ud]}catch(Pb){Y(Pb),nf=[!1,void 0]}var sc=nf;sc[0]&&(Dh(b,Qt,14,r3,sc[1]),c++)}if(a.playerDebugData){var qd=a.playerDebugData,ie=new du,
Oe=0;try{void 0!==qd.pmlSignal&&(L(ie,1,qd.pmlSignal),Oe++);void 0!==qd.contentCpn&&(L(ie,2,qd.contentCpn),Oe++);var $e=[Oe===Object.keys(qd).length,ie]}catch(Pb){Y(Pb),$e=[!1,void 0]}var Kg=$e;Kg[0]&&(Dh(b,du,15,r3,Kg[1]),c++)}return[c===Object.keys(a).length,b]}catch(Pb){return Y(Pb),[!1,void 0]}},
offlineTransferStatusChanged:MHa,offlineStateSnapshot:function(a){var b=new Qx,c=0;try{a.offlineVideos&&(GR(b.B.bind(b),a.offlineVideos,nIa),c++);a.offlinePlaylists&&(GR(b.j.bind(b),a.offlinePlaylists,pIa),c++);void 0!==a.freeDiskSpaceBytes&&(L(b,3,a.freeDiskSpaceBytes),c++);void 0!==a.lastOfflineUsageTimeMs&&(L(b,4,a.lastOfflineUsageTimeMs),c++);void 0!==a.lastOfflinePlaybackTimeMs&&(L(b,5,a.lastOfflinePlaybackTimeMs),c++);void 0!==a.lastOfflineSaveTimeMs&&(L(b,6,a.lastOfflineSaveTimeMs),c++);void 0!==
a.lastOfflineDownloadSuccessTimeMs&&(L(b,7,a.lastOfflineDownloadSuccessTimeMs),c++);void 0!==a.isBatteryCharging&&(L(b,8,a.isBatteryCharging),c++);void 0!==a.detailedNetworkType&&(L(b,9,PR[a.detailedNetworkType]),c++);void 0!==a.batteryLevelPercentage&&(L(b,10,a.batteryLevelPercentage),c++);void 0!==a.isPostMigrationState&&(L(b,11,a.isPostMigrationState),c++);if(a.offlineCacheVerificationFailure){var d=a.offlineCacheVerificationFailure,e=new Ex,f=0;try{void 0!==d.numUncachedVideos&&(L(e,1,d.numUncachedVideos),
f++);void 0!==d.numTotalCompletedVideos&&(L(e,2,d.numTotalCompletedVideos),f++);d.uncachedVideos&&(GR(e.j.bind(e),d.uncachedVideos,sIa),f++);var h=[f===Object.keys(d).length,e]}catch(w){Y(w),h=[!1,void 0]}h[0]&&(Ch(b,Ex,12,h[1]),c++)}if(a.additionalOfflineClientState){var l=a.additionalOfflineClientState,m=new Ix;h=0;try{if(l.mainAppAdditionalOfflineClientState){var n=l.mainAppAdditionalOfflineClientState,p=new Hx;d=0;try{n.downloadRecsVideos&&(GR(p.j.bind(p),n.downloadRecsVideos,tIa),d++);n.smartDownloadVideos&&
(GR(p.B.bind(p),n.smartDownloadVideos,uIa),d++);var q=[d===Object.keys(n).length,p]}catch(w){Y(w),q=[!1,void 0]}q[0]&&(Ch(m,Hx,1,q[1]),h++)}var t=[h===Object.keys(l).length,m]}catch(w){Y(w),t=[!1,void 0]}t[0]&&(Ch(b,Ix,13,t[1]),c++)}return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}}},L0a={adNotify:function(a,b,c){var d=new Vx;
Dh(d,ut,184,xD,a);c?vD(d,c,b):wD(d,b)},
biscottiBasedDetection:function(a,b,c){var d=new Vx;Dh(d,tv,439,xD,a);c?vD(d,c,b):wD(d,b)},
adNotifyFilled:function(a,b,c){var d=new Vx;Dh(d,at,300,xD,a);c?vD(d,c,b):wD(d,b)},
idbTransactionEnded:function(a,b,c){var d=new Vx;Dh(d,fx,352,xD,a);c?vD(d,c,b):wD(d,b)},
idbUnexpectedlyClosed:function(a,b,c){var d=new Vx;Dh(d,gx,348,xD,a);c?vD(d,c,b):wD(d,b)},
flowEvent:function(a,b,c){var d=new Vx;Dh(d,Zw,304,xD,a);c?vD(d,c,b):wD(d,b)},
idbQuotaExceeded:function(a,b,c){var d=new Vx;Dh(d,dx,351,xD,a);c?vD(d,c,b):wD(d,b)},
idbTransactionAborted:function(a,b,c){var d=new Vx;Dh(d,ex,353,xD,a);c?vD(d,c,b):wD(d,b)},
streamzIncremented:function(a,b,c){var d=new Vx;Dh(d,Rx,126,xD,a);c?vD(d,c,b):wD(d,b)},
sliEventBatch:function(a,b,c){var d=new Vx;Dh(d,Gv,344,xD,a);c?vD(d,c,b):wD(d,b)},
playbackAssociated:fsa,autoplayTriggered:function(a,b,c){var d=new Vx;Dh(d,Iv,209,xD,a);c?vD(d,c,b):wD(d,b)},
webPlayerApiCalled:function(a,b,c){var d=new Vx;Dh(d,Sx,76,xD,a);c?vD(d,c,b):wD(d,b)},
embedsAdEvent:function(a,b,c){var d=new Vx;Dh(d,Hv,327,xD,a);c?vD(d,c,b):wD(d,b)},
embedsShouldRequestStorageAccessResult:function(a,b,c){var d=new Vx;Dh(d,Lv,251,xD,a);c?vD(d,c,b):wD(d,b)},
embedsRequestStorageAccessState:function(a,b,c){var d=new Vx;Dh(d,Kv,256,xD,a);c?vD(d,c,b):wD(d,b)},
embedsRequestStorageAccessFailedState:function(a,b,c){var d=new Vx;Dh(d,Jv,257,xD,a);c?vD(d,c,b):wD(d,b)},
heartbeatActionPlayerHalted:function(a,b,c){var d=new Vx;Dh(d,ax,332,xD,a);c?vD(d,c,b):wD(d,b)},
heartbeatActionPlayerTransitioned:function(a,b,c){var d=new Vx;Dh(d,bx,330,xD,a);c?vD(d,c,b):wD(d,b)},
embedsItpWatchLaterResult:function(a,b,c){var d=new Vx;Dh(d,Mv,266,xD,a);c?vD(d,c,b):wD(d,b)},
html5PlayerHealthEvent:function(a,b,c){var d=new Vx;Dh(d,cx,293,xD,a);c?vD(d,c,b):wD(d,b)},
adsClientStateChange:function(a,b,c){var d=new Vx;Dh(d,fu,197,xD,a);c?vD(d,c,b):wD(d,b)},
offlineTransferStatusChanged:function(a,b,c){var d=new Vx;Dh(d,pw,2,xD,a);c?vD(d,c,b):wD(d,b)},
offlineStateSnapshot:function(a,b,c){var d=new Vx;Dh(d,Qx,22,xD,a);c?vD(d,c,b):wD(d,b)}};VR.getInstance=function(){var a=g.La("ytglobal.storage_");a||(a=new VR,g.Ka("ytglobal.storage_",a));return a};
VR.prototype.estimate=function(){var a,b,c;return g.A(function(d){a=navigator;return(null==(b=a.storage)?0:b.estimate)?d.return(a.storage.estimate()):(null==(c=a.webkitTemporaryStorage)?0:c.queryUsageAndQuota)?d.return(yJa()):d.return()})};
g.Ka("ytglobal.storageClass_",VR);lA.prototype.GC=function(a){this.handleError(a)};
lA.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.cy("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.cy("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":AJa(this,b);break;case "TRANSACTION_ENDED":this.B&&Math.random()<=g.dy("ytidb_transaction_ended_event_rate_limit_transaction",.1)&&this.j("idbTransactionEnded",
b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({},b,{hasWindowUnloaded:this.u}),this.j("idbTransactionAborted",a)}};g.k=BJa.prototype;g.k.initialize=function(a,b,c){if(a.program){var d,e=null!=(d=a.interpreterUrl)?d:null;if(a.interpreterSafeScript)d=xba(a.interpreterSafeScript.privateDoNotAccessOrElseSafeScriptWrappedValue||"");else{var f;d=null!=(f=a.interpreterScript)?f:null}a.interpreterSafeUrl&&(e=a.interpreterSafeUrl,g.Sd("From proto message. b/166824318"),e=Wd(e.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());DJa(this,d,e,a.program,b,c)}else g.AD(Error("Cannot initialize botguard without program"))};
g.k.isInitialized=function(){return this.nE()};
g.k.getState=function(){return this.state};
g.k.isLoading=function(){return 2===this.state};
g.k.invoke=function(a){a=void 0===a?{}:a;return this.nE()?this.VY({Yx:a}):null};
g.k.dispose=function(){this.qa()};
g.k.qa=function(){this.jP(null);this.pc(8)};
g.k.nE=function(){return!!this.j};
g.k.UY=function(a){return this.j.snapshot(a)};
g.k.VY=function(a){return this.j.RX(a)};
g.k.jP=function(a){g.gb(this.j);this.j=a};
g.k.pc=function(a){this.state=a};g.x(FJa,BJa);g.k=FJa.prototype;g.k.qa=function(){this.pc(8)};
g.k.jP=function(a){var b;null==(b=YR())||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.RX.bind(a)},g.Ka("yt.abuse.playerAttLoader",b),g.Ka("yt.abuse.playerAttLoaderRun",function(c){return a.snapshot(c)})):(g.Ka("yt.abuse.playerAttLoader",null),g.Ka("yt.abuse.playerAttLoaderRun",null))};
g.k.nE=function(){return!!YR()};
g.k.UY=function(a){return YR().bgvmb(a)};
g.k.VY=function(a){return YR().bgvmc(a)};var GJa,JJa;g.WR=new FJa;GJa=0;JJa=[];var T_a=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var XJa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},YJa={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"},ZJa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},WJa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},UJa={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"},VJa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};g.x(eKa,g.E);eKa.prototype.qa=function(){this.V=this.u=this.B=this.I=this.j=this.J=this.D=this.C=void 0};var e4={},fKa=(e4["api.invalidparam"]=2,e4.auth=150,e4["drm.auth"]=150,e4["heartbeat.net"]=150,e4["heartbeat.servererror"]=150,e4["heartbeat.stop"]=150,e4["html5.unsupportedads"]=5,e4["fmt.noneavailable"]=5,e4["fmt.decode"]=5,e4["fmt.unplayable"]=5,e4["html5.missingapi"]=5,e4["html5.unsupportedlive"]=5,e4["drm.unavailable"]=5,e4["mrm.blocked"]=151,e4);g.x(cS,g.E);g.k=cS.prototype;g.k.handleExternalCall=function(a,b,c){var d=this.state.D[a],e=this.state.J[a],f=d;if(e)if(c&&OD(c,ocb))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');this.logApiCall(a,c);if(f){c=!1;d=g.v(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.AD(Error('Dangerous call to "'+a+'" with ['+b+"]."));return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');};
g.k.isExternalMethodAvailable=function(a,b){return this.state.D[a]?!0:!!(this.state.J[a]&&b&&OD(b,ocb))};
g.k.getBandwidthEstimate=function(){return $J(this.app.T().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.hS(this.app);b&&(a={gpu:(0,g.LY)(),d:a},b.handleError(new SK("feedback",a)))};
g.k.getInternalApiInterface=function(){return g.ad(this.state.j)};
g.k.logApiCall=function(a,b,c){var d=this.app.T();d.Pn&&!this.state.V.has(a)&&(this.state.V.add(a),g.nA("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:b||void 0,playerStyle:d.playerStyle||void 0,embeddedPlayerMode:d.Pa,errorCode:c}))};
g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d,e)};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b||this.playerType,c,void 0===d?"":d,void 0===e?"":e)};
g.k.queueNextVideo=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.queueNextVideo(a,b,c,void 0===d?"":d,void 0===e?"":e)};
g.k.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
g.k.startSeekCsiAction=function(){this.app.Nh().C.j=(0,g.GA)()};
g.k.seekToStreamTime=function(a,b,c){this.j&&PZ(this.app,!0,this.playerType);var d=this.app,e=this.playerType;b=void 0===b?!0:b;var f=void 0===f?!1:f;var h=g.hS(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.Ed()&&(l=h.getStreamTimeOffset());RZ(d,a-l,b,c,e,f)};
g.k.getStreamTimeOffset=function(){var a=g.hS(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.hS(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&RZ(this.app,Infinity,a,b,this.playerType)};
g.k.requestSeekToWallTimeSeconds=function(a){var b=g.hS(this.app,this.playerType);b&&b.QO(a)};
g.k.syncVolume=function(){var a=N0a(this.app);kS(this.app,{volume:a.volume,muted:a.muted},!1)};
g.k.getAvailableQualityLabels=function(){var a=g.hS(this.app,this.playerType);return a?g.$l(a.Xr(),function(b){return b.qualityLabel}):[]};
g.k.channelSubscribed=function(){this.Na("SUBSCRIBE",this.app.Jd().bk)};
g.k.channelUnsubscribed=function(){this.Na("UNSUBSCRIBE",this.app.Jd().bk)};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.hS(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.hS(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.confirmYpcRental=function(){var a=g.hS(this.app,this.playerType);a&&a.hg("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.T().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.T().Qn=a};
g.k.setLivingRoomAppMode=function(a){this.app.T().livingRoomAppMode=gz("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,Dxa)};
g.k.setEnablePrivacyFilter=function(a){this.app.T().enablePrivacyFilter=void 0===a?!1:a};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.addUtcCueRange=function(a,b,c,d,e){return u1a(this.app,a,b,c,d,e)};
g.k.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.k.y3=function(a){a=void 0===a?this.playerType:a;var b=this.dU(a);if(a=g.hS(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.ya;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)?0:c.utcTimeMillis)?Je(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?Je(a.progressBarEndPosition.utcTimeMillis):
null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.E1;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=Pza(a);b.paidContentOverlayDurationMs=EM(a);a.j&&nF(a.j)&&(b.usingLocalMedia="true");b.transitionEndpointAtEndOfStream=a.transitionEndpointAtEndOfStream}return b};
g.k.dU=function(a){a=void 0===a?this.playerType:a;var b=jKa(this,a);if(a=g.hS(this.app,a)){a=a.getVideoData();b.backgroundable=a.backgroundable;b.eventId=a.eventId;b.cpn=a.clientPlaybackNonce;b.isLive=a.isLivePlayback;b.isWindowedLive=a.Kc;b.isManifestless=mM(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.Nl()&&(b.isEncrypted=!0);if(a.C)for(var c=g.v(a.C.videoInfos),d=c.next();!d.done;d=c.next()){var e=void 0;if(null==
(e=d.value.video)?0:e.isHdr()){b.isHdr=!0;break}}var f,h;b.isMultiChannelAudio=!!(null==(f=a.D)?0:null==(h=f.audio)?0:h.isMultiChannelAudio())}return b};
g.k.getAdState=function(){return this.app.getAdState()};
g.k.isNotServable=function(a){if(a!==this.app.config.args.video_id)return!1;var b=(a=(a=g.hS(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.UN(a,128)&&5===gKa(b.errorCode))};
g.k.supportsGaplessAudio=function(){return this.app.T().supportsGaplessAudio()};
g.k.supportsGaplessShorts=function(){return this.app.T().supportsGaplessShorts()};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.sendAbandonmentPing=function(){var a=g.hS(this.app);a&&a.sendAbandonmentPing()};
g.k.updateDownloadState=function(a,b){return this.app.updateDownloadState(a,b)};
g.k.queueOfflineAction=function(a,b,c,d){var e=this,f,h;return g.A(function(l){return 1==l.j?(f=IT(e.app.wb()))?g.y(l,f.x8([a],b,c,d),3):l.Ka(2):2!=l.j&&(h=l.u,h.length)?l.return(h[0]):l.return(Promise.reject())})};
g.k.pauseVideoDownload=function(a){this.app.pauseVideoDownload(a)};
g.k.resumeVideoDownload=function(a){var b=this;return g.A(function(c){return c.return(b.app.resumeVideoDownload(a))})};
g.k.refreshAllStaleEntities=function(a){return this.app.refreshAllStaleEntities(a)};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.setAutonavState=function(a,b){b=void 0===b?!1:b;if(this.K("web_player_autonav_use_server_provided_state")&&!b&&(b=this.app.Jd(),null==b?0:nM(b))){if(this.K("web_player_autonav_server_provided_state_pause_killswitch"))return;if(3===a)3!==b.autonavState&&(b.iQ=b.autonavState);else if(void 0!==b.iQ)a=b.iQ,b.iQ=void 0;else return}B1a(this.app,a)};
g.k.setAutonav=function(a,b){this.setAutonavState(a?2:1,void 0===b?!1:b)};
g.k.setLoopRange=function(a){this.app.setLoopRange(a)};
g.k.getLoopRange=function(){return this.app.getLoopRange()};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=g.hS(this.app,this.playerType))||!a.hasSupportedAudio51Tracks())};
g.k.setUserAudio51Preference=function(a){var b=g.hS(this.app,this.playerType);b&&b.setUserAudio51Preference(a)};
g.k.getUserAudio51Preference=function(){var a,b;return null!=(b=null==(a=g.hS(this.app,this.playerType))?void 0:a.getUserAudio51Preference())?b:1};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.updateLastActiveTime=function(){GC()};
g.k.setBlackout=function(a){this.app.setBlackout(a)};
g.k.setUserEngagement=function(a){this.app.T().jl!==a&&(this.app.T().jl=a,(a=g.hS(this.app,this.playerType))&&sZ(a))};
g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.DT(this.app.wb()).IY(a,b)};
g.k.getCaptionWindowContainerId=function(){var a=g.DT(this.app.wb());return a?a.getCaptionWindowContainerId():""};
g.k.toggleSubtitlesOn=function(){var a=g.DT(this.app.wb());a&&a.mY()};
g.k.isSubtitlesOn=function(){var a=g.DT(this.app.wb());return a?a.isSubtitlesOn():!1};
g.k.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.mf()&&(a=1);return a};
g.k.getPlayerResponse=function(){var a=g.hS(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.k.getHeartbeatResponse=function(){var a=g.hS(this.app,this.playerType);return a?a.getVideoData().getHeartbeatResponse():null};
g.k.getStoryboardFrame=function(a,b){var c=this.app.Ej();if(!c)return null;b=c.levels[b];return b?(a=g.XL(b,a))?{column:a.column,columns:a.columns,height:a.zv,row:a.row,rows:a.rows,url:a.url,width:a.KC}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.Ej();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Ed();return b.LE(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.Ej();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.gx(),minFrameIndex:b.xJ()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.Ej();return a?a.levels.length:0};
g.k.Z2=function(){return this.getAudioTrack()};
g.k.getAudioTrack=function(){var a=g.hS(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().qm};
g.k.setAudioTrack=function(a,b){3===this.getPresentingPlayerType()&&uS(this.app.wb()).Zo("control_set_audio_track",a);var c=g.hS(this.app,this.playerType);if(c)if(c.isDisposed()||g.UN(c.playerState,128))a=!1;else{var d;if(null==(d=c.videoData.C)?0:d.j)b=b?c.getCurrentTime()-c.Ed():NaN,c.Fa.setAudioTrack(a,b);else if(n0a(c)){b:{b=c.mediaElement.audioTracks();for(d=0;d<b.length;++d){var e=b[d];if(e.label===a.Ic.getName()){if(e.enabled){b=!1;break b}b=e.enabled=!0;break b}}b=void 0}b&&c.xa("hlsaudio",
{id:a.id})}else{b:if(b=c.videoData,b.D&&!IH(b.D)||a==b.Tn||!b.rd||0>=b.rd.length)b=!1;else{d=g.v(b.rd);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof YK)){b=!1;break b}var f=a.Ic.getId();e.B&&(Jxa(e.B,f),e.u=null)}b.Tn=a;b=!0}b&&kZ(c)&&(c.ma("internalaudioformatchange",c.videoData,!0),c.xa("hlsaudio",{id:a.id}))}a=!0}else a=!1;return a};
g.k.b3=function(){return this.getAvailableAudioTracks()};
g.k.getAvailableAudioTracks=function(){return g.hS(this.app,this.playerType).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.hS(this.app,this.playerType);return a&&a.getVideoData().u?kF(a.Cf?OYa(a.Ii,a.Cf,a.Ou()):bM):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.hS(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.DT(this.app.wb());return a?a.x3():null};
g.k.resetSubtitlesUserSettings=function(){g.DT(this.app.wb()).L8()};
g.k.setMinimized=function(a){this.app.setMinimized(a)};
g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)};
g.k.setGlobalCrop=function(a){this.app.jb().setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.yg();return this.app.getVisibilityState(this.uh(),this.isFullscreen()||g.nK(this.app.T()),a,this.isInline(),this.app.Qy(),this.app.Oy())};
g.k.isMutedByMutedAutoplay=function(){return this.app.iz};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInternalSize=function(a,b){this.app.jb().setInternalSize(new g.xe(a,b))};
g.k.Ed=function(){var a=g.hS(this.app);return a?a.Ed():0};
g.k.yg=function(){return this.app.yg()};
g.k.uh=function(){var a=g.hS(this.app,this.playerType);return!!a&&a.uh()};
g.k.isFullscreen=function(){return this.app.isFullscreen()};
g.k.setSafetyMode=function(a){this.app.T().enableSafetyMode=a};
g.k.canPlayType=function(a){return this.app.canPlayType(a)};
g.k.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;b&&b!==a.list&&(c=!0);void 0!==a.external_list&&(this.app.Kh=fz(!1,a.external_list));var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.qT(b).videoId||(a.index=b.index)):FZ(this.app,{list:a.list,index:a.index,playlist_length:d.length});DLa(this.app.getPlaylist(),a);this.Na("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.hS(this.app,this.playerType||1);c&&g.fM(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){uK(this.app.T(),a,!1)};
g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.k.productsInVideoVisibilityUpdated=function(a){this.ma("changeProductsInVideoVisibility",a)};
g.k.setInline=function(a){this.app.setInline(a)};
g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)};
g.k.getVideoAspectRatio=function(){return this.app.jb().getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.hS(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.getPlaybackQualityLabel=function(a){if(a=g.hS(this.app,a)){var b,c;return(null==(c=null==(b=a.getVideoData().u)?void 0:b.video)?void 0:c.qualityLabel)||""}return""};
g.k.setPlaybackQualityRange=function(a,b,c){var d=g.hS(this.app,this.playerType);d&&g.k0a(d,g.hF(a,b||a,!0,"m"),!0,c)};
g.k.onAdUxClicked=function(a,b){this.ma("aduxclicked",a,b)};
g.k.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.k.dispatchReduxAction=function(a){g.vM.dispatch(a)};
g.k.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.Vd.includes(e)||(c.Vd.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.Ab(c.Vd,e)&&(d=!0)});
d&&this.ma("updatemarkervisibility")};
g.k.highlightSettingsMenuItem=function(a){this.ma("highlightSettingsMenu",a)};
g.k.openSettingsMenuItem=function(a){this.ma("openSettingsMenuItem",a)};
g.k.ma=function(a){var b=g.Ca.apply(1,arguments);this.app.T().I&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.Pp.ma.apply(this.app.Pp,[a].concat(g.la(b)));this.app.Mq.ma.apply(this.app.Mq,[a].concat(g.la(b)))};
g.k.Na=function(a){var b=g.Ca.apply(1,arguments);this.app.Pp.ma.apply(this.app.Pp,[a].concat(g.la(b)));this.app.Mq.ma.apply(this.app.Mq,[a].concat(g.la(b)))};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.K=function(a){return this.app.T().K(a)};
g.k.qa=function(){if(this.element){var a=this.element,b;for(b in this.state.j)this.state.j.hasOwnProperty(b)&&(a[b]=null);this.element=null}g.E.prototype.qa.call(this)};var nKa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.x(jS,cS);g.k=jS.prototype;g.k.getApiInterface=function(){return Array.from(this.state.C)};
g.k.O1=function(a,b){if("string"===typeof b){var c=function(){var d=g.Ca.apply(0,arguments);g.La(b).apply(window,d)};
this.state.I[b]=c}else c=b;this.app.Pp.subscribe(a,c)};
g.k.E8=function(a,b){if("string"===typeof b){var c=this.state.I[b];g.gd(this.state.I,b);b=c}this.app.Pp.unsubscribe(a,b)};
g.k.getPlayerState=function(){return j1a(this.app)};
g.k.seekTo=function(a,b,c){var d=g.zK(this.app.T()),e=this.app.getVideoData().Rk;if(!g.mz(d)||e)this.j&&PZ(this.app,!0,this.playerType),RZ(this.app,a,b,c,this.playerType)};
g.k.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.k.getMediaReferenceTime=function(){var a=this.app.Lf(this.playerType);return isNaN(a)?this.getCurrentTime():a};
g.k.getDuration=function(){return this.app.getDuration(this.playerType)};
g.k.getVolume=function(){return this.app.gi.volume};
g.k.setVolume=function(a){qKa(this,a)};
g.k.isMuted=function(){return this.app.gi.muted};
g.k.mute=function(){rKa(this)};
g.k.unMute=function(){sKa(this)};
g.k.getPlayerMode=function(){var a={};this.app.getVideoData().pd&&(a.pfp={enableIma:this.app.T().Z&&this.app.Jd().allowImaMonetization,autoplay:VM(this.app.Jd()),mutedAutoplay:this.app.Jd().mutedAutoplay});return a};
g.k.playVideo=function(){this.j&&PZ(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.mf()){var b=GT(this.app.wb());if(!Z8a(b)){b.Zo("control_play");return}if($8a(b))return}3===a?uS(this.app.wb()).Zo("control_play"):this.app.playVideo(a)};
g.k.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.mf()){var b=GT(this.app.wb());if(!Z8a(b)){b.Zo("control_pause");return}}3===a?uS(this.app.wb()).Zo("control_pause"):this.app.pauseVideo(a)};
g.k.stopVideo=function(){var a=this.app;a.Y.Gc&&a.Ua.ma("pageTransition");a.stopVideo()};
g.k.clearVideo=function(){};
g.k.getAvailablePlaybackRates=function(){var a=this.app.T();return a.tf?["https://web.archive.org/web/20230505074338/https://admin.youtube.com","https://web.archive.org/web/20230505074338/https://viacon.corp.google.com","https://web.archive.org/web/20230505074338/https://yurt.corp.google.com"].includes(a.C?a.ancestorOrigins[0]:window.location.origin)||a.Rn?rdb:qdb:[1]};
g.k.getPlaybackQuality=function(a){return(a=g.hS(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.setPlaybackQuality=function(){};
g.k.getAvailableQualityLevels=function(){var a=g.hS(this.app,this.playerType);return a?(a=g.$l(a.Xr(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()};
g.k.getVideoBytesTotal=function(){return 1};
g.k.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()};
g.k.getVideoStartBytes=function(){return 0};
g.k.getSize=function(){var a=this.app.jb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.setSize=function(){this.app.jb().resize()};
g.k.loadModule=function(a){"captions"===a&&(a=g.DT(this.app.wb()))&&!a.loaded&&a.load()};
g.k.unloadModule=function(a){"captions"===a&&(a=g.DT(this.app.wb()))&&a.loaded&&a.K9()};
g.k.loadVideoById=function(a,b,c){a&&(a=lKa(a,b,c),a=this.app.loadVideoByPlayerVars(a,this.playerType),this.j&&PZ(this.app,a,this.playerType))};
g.k.cueVideoById=function(a,b,c){a=lKa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.loadVideoByUrl=function(a,b,c){a=mKa(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.j&&PZ(this.app,a,this.playerType)};
g.k.cueVideoByUrl=function(a,b,c){a=mKa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.getVideoUrl=function(){var a=this.app.T();if(a.oa)return"";var b=this.app.Jd(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.k.getDebugText=function(){return this.app.getDebugText()};
g.k.getVideoEmbedCode=function(){var a=this.app.T();if(a.oa)return"";var b=this.app.Jd();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.Jd().videoId,this.app.jb().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.addCueRange=function(a,b,c){return t1a(this.app,a,b,c)};
g.k.removeCueRange=function(a){return v1a(this.app,a)};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.j&&PZ(this.app,!0,this.playerType)};
g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
g.k.nextVideo=function(){this.app.nextVideo();this.j&&PZ(this.app,!0,this.playerType)};
g.k.previousVideo=function(){this.app.previousVideo();this.j&&PZ(this.app,!0,this.playerType)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.j&&PZ(this.app,!0,this.playerType)};
g.k.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)};
g.k.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)};
g.k.v3=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=g.qT(a,c);d&&b.push(d.videoId)}return b};
g.k.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.index:-1};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.wb();return"captions"===a?(a=g.DT(d))&&a.ph(b,c):null};
g.k.getOption=function(a,b,c){var d=g.hS(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.T().C?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.wb();if("captions"===a){var c;return(null==(c=g.DT(b))?void 0:c.getOptions())||null}return a?null:(a=[],g.DT(b)&&a.push("captions"),a)};
g.k.getSphericalProperties=function(){var a=g.wS(this.app.wb());return a&&2!==this.playerType?a.getSphericalProperties():{}};
g.k.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.wS(this.app.wb());b&&b.setSphericalProperties(a,!0)}};
g.k.destroy=function(){this.app.dispose()};
g.k.logImaAdEvent=function(a,b){this.app.T().Z&&this.app.Jd().allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.ufa(this.app.T().loaderUrl),eventType:a,youtubeHost:g.Pi(this.app.T().La)||""},g.nA("embedsAdEvent",a))};
g.k.mutedAutoplay=function(){var a=this.app.T(),b;this.K("embeds_enable_muted_autoplay")&&(null==(b=a.webPlayerContextConfig)?0:b.embedsEnableMutedAutoplay)&&!a.B&&this.app.mutedAutoplay()};g.x(mS,jS);g.k=mS.prototype;g.k.addCueRange=function(a,b,c,d,e){return t1a(this.app,a,b,c,d,e)};
g.k.getPlayerState=function(a){return j1a(this.app,a)};
g.k.nextVideo=function(a,b){this.app.nextVideo(a,b)};
g.k.previousVideo=function(a){this.app.previousVideo(a)};
g.k.seekBy=function(a,b,c){xKa(this)&&RZ(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.k.seekTo=function(a,b,c,d){xKa(this)&&RZ(this.app,a,b,c,d||this.playerType)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.getCurrentTime=function(a,b){if(2===this.app.getAppState()&&5===this.getPlayerState()){var c;return(null==(c=this.app.getVideoData())?void 0:c.startSeconds)||0}return a?this.app.getCurrentTime(a,b):jS.prototype.getCurrentTime.call(this)};
g.k.getDuration=function(a,b){if(3===this.getPresentingPlayerType()){var c;return(null==(c=uS(this.app.wb()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):jS.prototype.getDuration.call(this)};
g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return uS(this.app.wb()).getProgressState();var b=this.app.getVideoData(),c=g.hS(this.app,a)||g.hS(this.app),d=c.getPlayerType();a:{var e=this.app.getVideoData();var f;if(null==(f=e.progressBarStartPosition)?0:f.utcTimeMillis)if(e=Number(e.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(e)){e=yKa(this,e,a);break a}e=0}var h;a:{f=this.app.getVideoData();if(null==(h=f.progressBarEndPosition)?0:h.utcTimeMillis)if(h=Number(f.progressBarEndPosition.utcTimeMillis)/
1E3,!isNaN(h)){h=yKa(this,h,a);break a}h=0}f=this.getCurrentTime(a);a=this.getDuration(a);var l=this.app.Lf(d),m=this.app.isAtLiveHead(d),n=this.app.By(),p=this.app.Kd(d);var q=this.app;(d=g.hS(q,d))?(d=BZ(q,d),d=MZ(q,mW(d),d)):d=0;c=c.Ed();return{airingStart:e,airingEnd:h,allowSeeking:this.app.wh(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:f,displayedStart:-1,duration:a,ingestionTime:l,isAtLiveHead:m,loaded:n,seekableStart:p,seekableEnd:d,offset:c,viewerLivestreamJoinTime:b.viewerLivestreamJoinTime}};
g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.k.getCurrentBroadcastId=function(){return null};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var m=g.iS(this);m&&m.handleGlobalKeyDown(a,b,c,d,e,f,h,l)};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.iS(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,h)};
g.k.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)};
g.k.showControls=function(){var a=g.iS(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.iS(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.jb().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.setFauxFullscreen=function(a){g.uz();this.app.Xl(a?2:0)};
g.k.toggleFullscreen=function(){function a(c){g.AD(c)}
var b=this.app.T();if(b.externalFullscreen){if(!g.JK(b))return this.isFullscreen()?wz(window.document.documentElement):tz(window.document.documentElement).catch(a)}else if(g.uz()||b.V)return this.isFullscreen()?wz(vz()):"3"!==b.controlsType&&g.uz()?tz(this.app.jb().element).catch(a):(b=this.app.ue().ub())?tz(b).catch(a):Promise.reject(Error("Media element missing"));this.Na("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.cancelPlayback=function(){var a=GT(this.app.wb());a&&a.created&&a.destroy();(a=g.hS(this.app))&&a.stopVideo();(a=this.app.wb().df.get("endscreen"))&&a.o4()&&g.tS(this.app.Ua,!0)};
g.k.stopVideo=function(){var a=this.app.T();!a.K("disable_new_pause_state3")&&EK(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():jS.prototype.stopVideo.call(this)};
g.k.getVideoStats=function(){return g.hS(this.app,this.playerType).kc(!0)};
g.k.toggleSubtitles=function(){var a=g.DT(this.app.wb());a&&a.y9()};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.setSphericalProperties=function(a){if(a){var b=g.wS(this.app.wb());b&&b.setSphericalProperties(a,!0)}};
g.k.getSphericalProperties=function(){var a=g.wS(this.app.wb());return a?a.getSphericalProperties():{}};
g.k.setVolume=function(a,b){qKa(this,a,b)};
g.k.mute=function(a){rKa(this,a)};
g.k.unMute=function(a){sKa(this,a)};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.JT(this.app.wb());b&&!b.loaded&&b.load()}jS.prototype.loadModule.call(this,a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.JT(this.app.wb());b&&b.loaded&&b.unload()}jS.prototype.unloadModule.call(this,a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.wb();switch(a){case "ad":return(a=GT(d))&&a.ph&&a.ph(b,c);case "kids":return(a=zMa(d))&&a.ph(b,c);case "remote":return(a=uS(d))&&a.ph(b,c);case "unplugged":return(a=g.HT(d))&&a.ph(b,c);case "annotations_module":return(a=g.JT(d))&&a.ph(b,c);case "creatorendscreen":return(a=AMa(d))&&a.ph(b,c)}return jS.prototype.setOption.call(this,a,b,c)};
g.k.getOptions=function(a){var b=this.app.wb();switch(a){case "ad":var c,d;return(null==(c=GT(b))?void 0:null==(d=c.getOptions)?void 0:d.call(c))||null;case "remote":var e,f;return(null==(e=uS(b))?void 0:null==(f=e.getOptions)?void 0:f.call(e))||null;case "annotations_module":var h,l;return(null==(h=g.JT(b))?void 0:null==(l=h.getOptions)?void 0:l.call(h))||null;case "creatorendscreen":var m,n;return(null==(m=AMa(b))?void 0:null==(n=m.getOptions)?void 0:n.call(m))||null;case "unplugged":var p,q;return(null==
(p=g.HT(b))?void 0:null==(q=p.getOptions)?void 0:q.call(p))||null;case "kids":var t,w;return(null==(t=zMa(b))?void 0:null==(w=t.getOptions)?void 0:w.call(t))||null}if(!a){a=jS.prototype.getOptions.call(this);if(!a)return a;GT(b)&&a.push("ad");uS(b)&&a.push("remote");g.JT(b)&&a.push("annotations_module");AMa(b)&&a.push("creatorendscreen");g.HT(b)&&a.push("unplugged");zMa(b)&&a.push("kids");return a}return jS.prototype.getOptions.call(this,a)};
g.k.getPlayerSize=function(){var a=this.app.jb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.iS(this);a&&a.rp()};
g.k.setCenterCrop=function(a){this.app.jb().setCenterCrop(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
var vKa="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pipable player_response playsinline plid post_live_playback postid ps public raw_player_response rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "),
wKa="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(" ");nS.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a};
nS.prototype.forEach=function(a){for(var b=this.j+1;b<this.data.length;b++)a(this.data[b]||0);for(b=0;b<=this.j;b++)a(this.data[b]||0)};
nS.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.u=this.j=this.data.length-1};g.x(oS,g.E);oS.prototype.start=function(){this.u.start()};
oS.prototype.stop=function(){this.u.stop()};
oS.prototype.clear=function(){for(var a=g.v(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
oS.prototype.sample=function(){for(var a=g.v(this.B),b=a.next();!b.done;b=a.next()){var c=g.v(b.value);b=c.next().value;c=c.next().value;this.j.has(b)||this.j.set(b,new AKa(vdb.has(b)));this.j.get(b).update(c())}this.u.start()};
var vdb=new Set(["networkactivity"]);AKa.prototype.update=function(a){this.u?(this.buffer.add(a-this.j||0),this.j=a):this.buffer.add(a)};
AKa.prototype.clear=function(){this.buffer.clear();this.j=0};g.x(g.rS,mS);g.k=g.rS.prototype;g.k.Jn=function(a,b,c,d,e,f,h){return this.app.Jn(a,b,c,d,e,f,h)};
g.k.DB=function(){return this.app.DB()};
g.k.Wr=aa(5);g.k.wb=function(){return this.app.wb()};
g.k.Af=function(){var a=this.wb().df.get("endscreen");return!!a&&a.Af()};
g.k.getRootNode=function(){return this.jb().element};
g.k.T=function(){return this.app.T()};
g.k.Cy=aa(7);g.k.Mm=function(a){return this.app.Mm(a)};
g.k.Nm=function(){return this.zJ};
g.k.Cb=function(a){return this.app.Cb(a)};
g.k.jb=function(){return this.app.jb()};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){var b=g.hS(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a){a=this.app;if(null==(b=a.Je))b=void 0;else{var d=a.getCurrentTime();b=b.Mp?void 0:null==(c=CW(b,1E3*d))?void 0:c.videoData}c=b||a.getVideoData()}else c=b;return c};
g.k.Ej=function(a){return this.app.Ej(a)};
g.k.ov=function(){return this.app.ov()};
g.k.isHdr=function(){var a=g.hS(this.app);return a?a.isHdr():!1};
g.k.KM=function(){return this.app.KM()};
g.k.Tb=function(){var a=this.T();if(!g.iK(a)||"EMBEDDED_PLAYER_MODE_DEFAULT"!==(a.Pa||"EMBEDDED_PLAYER_MODE_DEFAULT")||this.getPlaylist())return!1;var b=g.iS(this);a=this.getVideoData();b=b?b.PL():this.getPlayerSize();var c;return!!(a&&(null==(c=a.embeddedPlayerConfig)?0:c.isShortsExperienceEligible)&&b.width<=b.height)};
g.k.Oz=function(a){this.app.Oz(a)};
g.k.Mg=function(a,b,c,d,e){this.app.Dg(a,b,c,d,e)};
g.k.Uq=function(a,b){this.app.Uq(a,b)};
g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){uS(this.app.wb()).Zo("control_play");return}if(2===this.getPresentingPlayerType()){var b=GT(this.app.wb());if(b&&$8a(b))return}}catch(c){g.zD(c)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.hS(this.app,a).stopVideo()};
g.k.Cn=function(a){g.hS(this.app,a).Cn()};
g.k.addEventListener=function(a,b){this.app.Mq.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.app.Mq.unsubscribe(a,b)};
g.k.ma=function(a){mS.prototype.ma.call.apply(mS.prototype.ma,[this,a].concat(g.la(g.Ca.apply(1,arguments))))};
g.k.Vl=function(a){this.app.Vl(a)};
g.k.setPlaybackQuality=function(a,b){this.setPlaybackQualityRange(a,a,b)};
g.k.Xr=function(){var a={},b=g.hS(this.app).Xr();b=g.v(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.k.EB=function(){return g.hS(this.app).EB()};
g.k.QB=aa(11);g.k.PH=function(a){this.app.PH(a);a&&B1a(this.app,a)};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2===e;if(d&&f||3===e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var h;a||d.isLivePlayback||(h=Math.floor(this.getCurrentTime(e)));a=f?void 0:this.getPlaylistId()||void 0;b&&"WL"===a&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,h,b,c)};
g.k.RB=aa(13);g.k.un=aa(17);g.k.Yy=function(a,b){this.wb().Yy(a,b)};
g.k.pk=function(){var a=g.JT(this.wb());return!!a&&a.pk()};
g.k.uo=function(){var a=g.JT(this.wb());return!!a&&a.uo()};
g.k.Kz=function(a,b,c){var d=g.JT(this.wb());d&&d.Kz(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.ma("changeProductsInVideoVisibility",a)};
g.k.Jz=aa(18);g.k.jr=function(){var a=g.hS(this.app);a&&a.jr()};
g.k.PD=function(a){this.Na("onVideoAreaChange");this.Na(a?"onShowControls":"onHideControls")};
g.k.Ak=function(a,b){var c=g.iS(this);if(c)return c.Ak(a,b);a=this.app.jb().Fj();return new g.Gm(0,0,a.width,a.height)};
g.k.Cs=function(){return this.app.Cs()};
g.k.tC=function(){var a=this.wb().df.get("heartbeat");return!!a&&a.tC()};
g.k.wh=function(){var a=this.T();if(a.Wa||a.disableSeek)return!1;var b=g.hS(this.app);if(!b)return!1;var c=b.getVideoData();return!c.De()||g.JM(c)||2===this.getPresentingPlayerType()&&!this.app.mf()||b.Mo()&&3!==this.getPresentingPlayerType()||g.mz(g.zK(a))&&!c.Rk?!1:!0};
g.k.nC=function(){var a;return(null==(a=g.hS(this.app))?void 0:a.nC)||!1};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.Bt=function(){var a=g.hS(this.app);a&&a.Bt()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.Ae=function(a,b,c){this.app.SA(a,b,c)};
g.k.Bh=function(a,b){this.app.KH(a,b)};
g.k.hf=function(a,b){var c=this.app,d=g.hS(c,b);d&&(a=d.Wi.hf(a),b&&c.getPresentingPlayerType()!==b||zZ(c,"cuerangesremoved",a))};
g.k.WP=function(a,b){var c=this.app;b&&c.getPresentingPlayerType()!==b||zZ(c,"cuerangemarkersupdated",a)};
g.k.hg=function(a,b){(b=g.hS(this.app,b))&&b.hg(a)};
g.k.Mo=function(){var a=g.hS(this.app);return a?a.Mo():!0};
g.k.Uu=function(){var a=this.getVideoData();return!!a&&(a.Uu()||!!a.hlsFormats||!!a.ib)};
g.k.getPlaybackRate=function(){return g.hS(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.setVolume=function(a){a=g.pe(a,0,100);kS(this.app,{volume:a,muted:this.isMuted()},!0)};
g.k.mute=function(){kS(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.k.unMute=function(){kS(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.ue=function(){return this.app.ue()};
g.k.Nh=function(){return this.app.Nh()};
g.k.Dj=function(a){return this.app.Dj(a)};
g.k.getBandwidthEstimate=function(){return $J(this.T().schedule)};
g.k.sb=function(a,b,c,d){this.T().ob&&this.app.Ks.sb(a,b,c,void 0===d?!1:d)};
g.k.Yf=function(a,b,c){this.T().ob&&this.app.Ks.Yf(a,b,void 0===c?!1:c)};
g.k.jg=function(a,b){this.T().ob&&this.app.Ks.jg(a,b)};
g.k.qb=function(a,b){this.T().ob&&(this.app.Ks.click(a,b),this.ma("veClickLogged",a))};
g.k.Va=function(a,b,c){if(this.T().ob){var d=this.app.Ks;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.CE(),f=a.visualElement;d.u.has(a)?e&&f&&(b?g.mP(e,[f]):g.nP(e,[f])):b&&!d.B.has(a)&&(e&&f&&g.lP(e,f,void 0,c),d.B.add(a))}};
g.k.Ek=function(a){return this.T().ob?this.app.Ks.Ek(a):!1};
g.k.Pc=function(){return g.hS(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.Nq=function(){this.app.Nq()};
g.k.ey=function(a,b){return this.app.ey(a,b)};
g.k.kp=function(a){this.app.kp(a)};
g.k.EG=function(){this.app.EG()};
g.k.addPlayerResponsesForAssociation=function(a){this.app.addPlayerResponsesForAssociation(a)};
g.k.finishSegmentByCpn=function(a,b){return this.app.finishSegmentByCpn(a,b)};
g.k.getCpnByClipId=function(a){return this.app.getCpnByClipId(a)};
g.k.Ix=function(a,b,c,d,e,f,h){return this.app.Ix(a,b,c,d,e,f,h)};
g.k.jC=function(a,b,c,d,e,f,h){return this.app.jC(a,b,c,d,e,f,h)};
g.k.jt=function(a){this.app.jt(a)};
g.k.Cu=function(a,b){b=void 0===b?Infinity:b;this.app.Cu(void 0===a?-1:a,b)};
g.k.vI=function(a){var b;null==(b=g.DT(this.wb()))||b.vI(a)};
g.k.cA=function(a,b,c){this.app.cA(a,b,c)};
g.k.ls=function(){return this.app.ls()};
g.k.wF=function(a,b,c){this.app.wF(a,b,void 0===c?0:c)};
g.k.hv=function(){return this.app.hv()};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.mf=function(){return this.app.mf()};
g.k.Qs=function(a,b,c){return this.app.Qs(a,b,c)};
g.k.xa=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.hS(this.app,d))||e.xa(a,b,c)};
g.k.eI=function(){return this.app.eI()};
g.k.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};
g.k.yN=function(a,b){this.ma("aduxmouseover",a,b)};
g.k.xN=function(a,b){this.ma("aduxmouseout",a,b)};
g.k.TN=function(a,b){this.ma("muteadaccepted",a,b)};
g.k.sG=function(){return this.app.jb().sG()};
g.k.Pz=function(a){this.app.jb().Pz(a)};
g.k.mp=function(){var a=g.hS(this.app);return a?a.mp():!1};
g.k.gP=function(a){this.app.gP(a)};g.x(g.AS,g.jQ);g.k=g.AS.prototype;g.k.show=function(){var a=this.cj();g.jQ.prototype.show.call(this);this.Ga&&(this.J.S(window,"blur",this.Fb),this.J.S(document,"click",this.Z_));a||this.ma("show",!0)};
g.k.hide=function(){var a=this.cj();g.jQ.prototype.hide.call(this);EKa(this);a&&this.ma("show",!1)};
g.k.md=function(a,b){this.u=a;this.Z.show();b?(this.V||(this.V=this.J.S(this.F,"appresize",this.xS)),this.xS()):this.V&&(this.J.Fc(this.V),this.V=void 0)};
g.k.AT=function(){this.u&&this.element&&(this.u.getAttribute("aria-haspopup"),this.u.setAttribute("aria-expanded","true"),this.focus())};
g.k.xS=function(){var a=g.iS(this.F);this.u&&a.Rv(this.element,this.u)};
g.k.Fb=function(){var a=this.cj();EKa(this);this.Z.hide();a&&this.ma("show",!1)};
g.k.Z_=function(a){var b=GO(a);b&&(g.lf(this.element,b)||this.u&&g.lf(this.u,b)||!g.kR(a))||this.Fb()};
g.k.cj=function(){return this.yb&&4!==this.Z.state};g.x(FKa,g.AS);FKa.prototype.md=function(){g.AS.prototype.md.call(this);this.dialog.focus()};g.x(g.FS,g.jQ);g.FS.prototype.updateValue=function(a,b){g.jQ.prototype.updateValue.call(this,a,b);this.ma("size-change")};g.x(MS,g.FS);MS.prototype.Zb=function(a){this.u&&this.F.Va(this.element,this.j&&a)};
MS.prototype.C=function(){var a,b,c=null==(a=this.F.getVideoData())?void 0:null==(b=a.accountLinkingConfig)?void 0:b.linked;if(c&&!this.j){var d;a=null==(d=this.F.getVideoData())?void 0:d.accountLinkingConfig;LS(this,rQ());var e;g.CS(this,NS(null==a?void 0:null==(e=a.menuData)?void 0:e.connectedMenuLabel));var f,h,l;this.B=new FKa(this.F,NS(null==a?void 0:null==(f=a.menuData)?void 0:f.connectedDialogTitle),NS(null==a?void 0:null==(h=a.menuData)?void 0:h.connectedDialogMessage),NS(null==a?void 0:null==
(l=a.menuData)?void 0:l.confirmButtonText));g.I(this,this.B);var m;d=(null==a?void 0:null==(m=a.menuData)?void 0:m.trackingParams)||null;(this.u=!!d)&&this.F.jg(this.element,d);this.Eb.Xc(this);this.j=!0}else!c&&this.j&&(this.Eb.hh(this),this.j=!1)};
MS.prototype.onClick=function(){this.u&&this.F.qb(this.element);this.Eb.Fb();this.B&&this.B.md()};g.x(OS,g.E);OS.prototype.K=function(a){return this.api.K(a)};g.x(PS,OS);PS.prototype.onVideoDataChange=function(a){if(!a.accountLinkingConfig){var b,c=null==(b=a.getPlayerResponse())?void 0:b.accountLinkingConfig;a.accountLinkingConfig=c}var d;if(b=null==(d=a.accountLinkingConfig)?void 0:d.alsParam)a.sQ=b};
PS.prototype.setAccountLinkState=function(a){this.api.getVideoData().sQ=a;this.api.jr()};
PS.prototype.updateAccountLinkingConfig=function(a){var b=this.api.getVideoData(),c=b.accountLinkingConfig;c&&(c.linked=a);this.api.ma("videodatachange","dataupdated",b,this.api.getPresentingPlayerType())};g.x(GKa,OS);new hA("yt.autonav");g.x(IKa,g.V);g.k=IKa.prototype;
g.k.LA=function(){var a;if(a=3!==this.F.getPresentingPlayerType()&&g.zS(this.F)&&400<=this.F.jb().getPlayerSize().width){a=this.Jd();if(this.F.T().K("client_respect_autoplay_switch_button_renderer"))var b=!!a.autoplaySwitchButtonRenderer;else{if(this.F.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){var c=!1;var d,e,f;if(null==(b=a.fd)?0:null==(d=b.contents)?0:null==(e=d.twoColumnWatchNextResults)?0:null==(f=e.autoplay)?0:f.autoplay)c=!0}else c=a.Y0;b=!1!==c}a=b}if(a)this.j||
(this.j=!0,g.iQ(this,this.j),this.F.T().K("web_player_autonav_toggle_always_listen")||HKa(this),b=this.Jd(),this.CR(b.autonavState),this.F.Va(this.element,this.j));else if(this.j=!1,g.iQ(this,this.j),!this.F.T().K("web_player_autonav_toggle_always_listen"))for(this.F.T().K("web_player_autonav_toggle_always_listen"),b=g.v(this.u),d=b.next();!d.done;d=b.next())this.Fc(d.value)};
g.k.CR=function(a){KKa(this)?this.isChecked=1!==a:((a=1!==a)||(g.Sz(),a=g.cy("web_autonav_allow_off_by_default")&&!g.Tz(0,141)&&g.ay("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Tz(0,140)),this.isChecked=a);JKa(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.F.PH(this.isChecked?2:1);JKa(this);if(KKa(this)){var a=this.Jd().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.F.Na("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.F.Na("innertubeCommand",a.onDisabledCommand)}this.F.qb(this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.Jd=function(){return this.F.getVideoData(1)};g.x(LKa,OS);g.x(SS,g.FS);SS.prototype.onClick=function(){TS(this,!this.checked);this.ma("select",this.checked)};
SS.prototype.getValue=function(){return this.checked};g.x(US,SS);US.prototype.Qa=function(a){a?this.j||(this.Eb.Xc(this),this.j=!0):this.j&&(this.Eb.hh(this),this.j=!1);this.j&&TS(this,MKa())};
US.prototype.B=function(){g.Kp(this.element,"ytp-menuitem-highlight-transition-enabled")};
US.prototype.C=function(a){var b=MKa();a!==b&&(b=g.Sz(),Vz(190,a),Vz(192,!0),b.save(),this.F.Na("cinematicSettingsToggleChange",a))};
US.prototype.qa=function(){this.j&&this.Eb.hh(this);SS.prototype.qa.call(this)};g.x(PKa,OS);PKa.prototype.updateCinematicSettings=function(a){this.j=a;var b;null==(b=this.menuItem)||b.Qa(a);this.api.ma("onCinematicSettingsVisibilityChange",a)};g.x(VS,OS);VS.prototype.u=function(a){return void 0!==a.embargo};
VS.prototype.qa=function(){OS.prototype.qa.call(this);this.j={}};g.x(RKa,OS);
RKa.prototype.addEmbedsConversionTrackingParams=function(a){var b=this.api.T(),c=b.widgetReferrer,d=b.Kc,e=this.j,f="",h=b.webPlayerContextConfig;h&&(f=h.embedsIframeOriginParam||"");0<c.length&&(a.embeds_widget_referrer=c);0<d.length&&(b.K("embeds_ve_conversion_param_renaming")?a.embeds_referring_euri=d:a.embeds_euri=d);b.C&&0<f.length&&(b.K("embeds_ve_conversion_param_renaming")?a.embeds_referring_origin=f:a.embeds_origin=f);0<e.length&&(b.K("embeds_web_enable_lite_experiment_control_arm_logging")?e.unshift(28572):
g.mz(g.zK(b))&&e.unshift(159628),b=e.join(","),b=g.Uy()?b:g.$f(b,4),a.source_ve_path=b);this.j.length=0};g.x(SKa,OS);g.x(WS,g.V);WS.prototype.onClick=function(){this.Ua.qb(this.element);this.Ua.Na("onFullerscreenEduClicked")};
WS.prototype.Qa=function(){this.Ua.isFullscreen()?this.u?this.j.hide():this.j.show():this.hide();this.Ua.Va(this.element,this.Ua.isFullscreen()&&!this.u)};g.x(XS,OS);XS.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var b;null!=(b=this.j)&&(g.Mp(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),g.lb(b,g.QS(b.B.Hc(),b.element)),b.C=!0))};
XS.prototype.updateFullerscreenEduButtonVisibility=function(a){var b;null!=(b=this.j)&&(b.u=a,b.Qa())};g.x(TKa,g.V);g.x(WKa,OS);g.x(YS,OS);YS.prototype.seekToChapterWithAnimation=function(a){var b=this,c=g.iS(this.api);if(c&&!(0>a)){var d=this.api.getVideoData(),e=d.Hj;if(e&&a<e.length){e=g.v(e);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.index===a){XKa(this,c,f.startTime,f.title);return}}this.K("web_key_moments_markers")&&(d=d.yQ)&&a<d.length&&d.forEach(function(h,l){l===a&&XKa(b,c,h.timeRangeStartMillis,h.title)})}};
YS.prototype.seekToTimeWithAnimation=function(a,b){var c=g.iS(this.api);c&&XKa(this,c,a,b)};g.x(ZS,OS);ZS.prototype.B=function(a){return void 0!==a.compositeEmbargo};
ZS.prototype.qa=function(){OS.prototype.qa.call(this);this.u.clear()};g.x(aLa,OS);aLa.prototype.getAvailableQualityData=function(){var a=this.api.getVideoData();if(!a)return[];var b=[],c,d,e=null==(c=a.getPlayerResponse())?void 0:null==(d=c.playabilityStatus)?void 0:d.paygatedQualitiesMetadata;c=new Map(((null==e?void 0:e.qualityDetails)||[]).map(function(h){return[h.key,h.value]}));
if(d=null==e?void 0:e.restrictedAdaptiveFormats){e=[];d=g.v(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f=NH(f.mimeType,f.quality,f.itag.toString(),f.width.toString(),f.height.toString(),f.qualityLabel),e.push(f);a=yM(a);rF(e);d=[];e=g.v(e);for(f=e.next();!f.done;f=e.next())f=f.value,!0===pF(a,f,this.api.T().D)&&d.push(f);b=b.concat(bLa(d,!1,c))}a=this.api.EB();b=b.concat(bLa(a,!0,c));c=[];if(this.api.K("web_player_enable_premium_hbr_in_h5_api"))return b=dLa(b),cLa(b),b;a={};b=g.v(b);for(e=
b.next();!e.done;e=b.next())e=e.value,d=e.quality,a[d]||(e.formatId=void 0,c.push(e),a[d]=!0);return c};g.x(g.aT,g.aE);g.k=g.aT.prototype;g.k.S=function(a,b){this.C.S(this.V,a,b,void 0,!this.j)};
g.k.cancel=function(){this.B&&(this.B=!1,this.ma("dragend",0,0,null));this.u&&(this.u=!1,this.ma("hoverend",0,0,null),bT(this),$S(this))};
g.k.Av=function(a){bT(this);this.S(cT("move"),this.DR);this.S(cT("out"),this.gz);this.S("touchstart",this.BJ);this.j&&this.S(cT("down"),this.AJ);var b=g.FO(a);a=EO(a);this.u=!0;this.ma("hoverstart",a.x,a.y,b);this.ma("hovermove",a.x,a.y,b)};
g.k.DR=function(a){var b=g.FO(a);a=EO(a);if(this.D){var c=this.D;this.D=null;if((g.CO?c.relatedTarget:Cz(c))===b&&we(EO(c),a))return}this.ma("hovermove",a.x,a.y,b)};
g.k.gz=function(a){var b=EO(a),c=g.CO?a.relatedTarget:Cz(a);try{if(c&&g.lf(this.target,c)){this.D=a;this.ma("hovermove",b.x,b.y,c);return}}catch(d){}bT(this);$S(this);this.u=!1;this.ma("hoverend",b.x,b.y,c)};
g.k.V4=function(a){this.Av(a);this.AJ(a)};
g.k.AJ=function(a){if("number"!==typeof a.button||0===a.button){bT(this);this.C.S(document,cT("move"),this.U4);this.C.S(document,cT("up"),this.b0);var b=g.FO(a);if(g.Nc)this.S("dragstart",this.M2);else if(g.IO(a),(g.KK||Km)&&b)a:{for(var c=b;c;){if(rf(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.B=!0;a=EO(a);this.ma("dragstart",a.x,a.y,b);this.ma("dragmove",a.x,a.y,b)}};
g.k.M2=function(a){g.IO(a)};
g.k.U4=function(a){var b=g.FO(a);b===document&&(b=null);a=EO(a);this.ma("hovermove",a.x,a.y,b);this.ma("dragmove",a.x,a.y,b)};
g.k.b0=function(a){bT(this);this.B=!1;var b=GO(a),c=g.FO(a);a=EO(a);b&&g.lf(this.target,b)?(this.S(cT("move"),this.DR),this.S(cT("out"),this.gz),this.S(cT("down"),this.AJ),this.S("touchstart",this.BJ),this.ma("dragend",a.x,a.y,c)):($S(this),this.u=!1,this.ma("dragend",a.x,a.y,c),this.ma("hoverend",a.x,a.y,c))};
g.k.BJ=function(a){var b=a.changedTouches[0];b&&(bT(this),this.S("touchmove",this.z9),this.S("touchend",this.ER),this.S("touchcancel",this.ER),this.I=b.identifier,a=g.FO(a),this.u||(this.u=!0,this.ma("hoverstart",b.pageX,b.pageY,a)),this.ma("hovermove",b.pageX,b.pageY,a),this.j&&(this.B=!0,this.ma("dragstart",b.pageX,b.pageY,a),this.ma("dragmove",b.pageX,b.pageY,a)))};
g.k.z9=function(a){var b=eLa(this,a);b&&(this.j&&g.IO(a),a=g.FO(a),this.ma("hovermove",b.pageX,b.pageY,a),this.j&&this.ma("dragmove",b.pageX,b.pageY,a))};
g.k.ER=function(a){var b=eLa(this,a);if(b){bT(this);$S(this);this.u=!1;var c=g.FO(a);this.j&&(this.J||g.IO(a),this.B=!1,this.ma("dragend",b.pageX,b.pageY,c));this.ma("hoverend",b.pageX,b.pageY,c)}};
g.k.qa=function(){this.j&&(g.Nc&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");bT(this);g.aE.prototype.qa.call(this)};g.x(fLa,g.V);g.x(eT,OS);eT.prototype.Z=function(a,b){this.V=[a,b];this.j.subscribe("dragmove",this.J,this);this.j.subscribe("dragend",this.I,this);this.B||g.Bp(this.delay)};
eT.prototype.ya=function(){this.B=!0;g.Jm(this.speedmasterUserEdu.j,"display","");this.api.setPlaybackRate(this.Aa);this.api.hideControls();this.api.playVideo();this.ea&&(this.ea.ignoreClick=!0)};
eT.prototype.J=function(a,b){if(!this.B){a=[a,b];var c=this.V;c&&a&&2===c.length&&2===a.length?(b=Math.abs(c[0]-a[0]),c=Math.abs(c[1]-a[1]),b=Math.sqrt(b*b+c*c)):b=-1;b<this.oa?this.V=a:dT(this)}};
eT.prototype.I=function(){dT(this)};g.x(iLa,OS);g.x(fT,g.pb);fT.prototype.preventDefault=function(){g.pb.prototype.preventDefault.call(this);this.j&&this.j.preventDefault()};
fT.prototype.stopPropagation=function(){g.pb.prototype.stopPropagation.call(this);this.j&&this.j.stopPropagation()};g.x(g.gT,JO);g.k=g.gT.prototype;g.k.Zt=function(){return!0};
g.k.isView=function(){return!1};
g.k.RO=function(){return!1};
g.k.ub=function(){return this.j};
g.k.Mf=function(){return this.j.src};
g.k.PE=function(a){var b=this.getPlaybackRate();this.j.src=a;this.setPlaybackRate(b)};
g.k.MH=function(){this.j.removeAttribute("src")};
g.k.getPlaybackRate=function(){try{return 0<=this.j.playbackRate?this.j.playbackRate:1}catch(a){return 1}};
g.k.setPlaybackRate=function(a){this.getPlaybackRate()!==a&&(this.j.playbackRate=a);return a};
g.k.us=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.Hp=function(){return this.j.paused};
g.k.fh=function(){return this.j.seeking};
g.k.Ph=function(){return this.j.ended};
g.k.TF=function(){return this.j.muted};
g.k.Lz=function(a){kI();this.j.muted=a};
g.k.Ru=function(){return this.j.played||lI([],[])};
g.k.Mh=function(){try{var a=this.j.buffered}catch(b){}return a||lI([],[])};
g.k.VB=function(){return this.j.seekable||lI([],[])};
g.k.OE=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.uj=function(){return this.j.readyState};
g.k.UF=function(){return this.j.networkState};
g.k.Ye=function(){return this.j.error?this.j.error.code:null};
g.k.zf=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.uh=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless};
g.k.Bt=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():jI()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.zs=function(){var a=this.j;return new g.ve(a.offsetLeft,a.offsetTop)};
g.k.getSize=function(){return g.Um(this.j)};
g.k.setSize=function(a){g.Tm(this.j,a)};
g.k.getVolume=function(){return this.j.volume};
g.k.setVolume=function(a){kI();this.j.volume=a};
g.k.oL=function(a){this.I[a]||(this.j.addEventListener(a,this.listener),this.I[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.UA=aa(20);g.k.ZD=aa(22);g.k.aE=aa(24);g.k.Sx=aa(26);g.k.tB=function(){return wz(this.j)};
g.k.Dr=function(a){g.Ip(this.j,a)};
g.k.getStyle=function(a){return g.Lm(this.j,a)};
g.k.FM=function(){return g.lf(document.body,this.j)};
g.k.audioTracks=function(){var a=this.j;if("audioTracks"in a)return a.audioTracks};
g.k.qa=function(){for(var a=g.v(Object.keys(this.I)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.I[b]);JO.prototype.qa.call(this)};g.x(iT,g.V);g.x(kT,g.V);kT.prototype.show=function(){g.V.prototype.show.call(this);this.Qa()};
kT.prototype.hide=function(){g.V.prototype.hide.call(this);this.delay.stop()};
kT.prototype.Qa=function(){var a=(0,g.GA)(),b=kLa(this.Ua);jT(this.j,b.bandwidth_samples);jT(this.C,b.network_activity_samples);jT(this.B,b.live_latency_samples);jT(this.u,b.buffer_health_samples);var c={};b=g.v(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.v(d.value);d=e.next().value;e=e.next().value;this.D[d]!==e&&(c[d]=" "+String(e));this.D[d]=e}this.update(c);a=25<(0,g.GA)()-a?5E3:500;this.delay.start(a)};g.x(nLa,OS);g.x(oLa,OS);g.x(lT,OS);lT.prototype.qa=function(){this.u&&(window.clearInterval(this.u),this.u=void 0);OS.prototype.qa.call(this)};
lT.prototype.BL=function(a){var b=this;return g.A(function(c){return b.j?c.return(b.j.ready().then(function(){b.vb.ai("pot_if");return sLa(b,a)})):c.return(Promise.reject("web po not ready"))})};
lT.prototype.ZP=function(){this.j&&!this.j.isReady()&&mT(this)};g.x(tLa,OS);g.x(uLa,g.E);nT.prototype.AN=function(){this.u=(0,g.GA)()};
nT.prototype.reset=function(){this.j=this.u=NaN};
nT.prototype.FN=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.1>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};a.J&&(c.cttAuthInfo={token:a.J,videoId:a.videoId});$E("seek",c);g.aF("cpn",a.clientPlaybackNonce,"seek");isNaN(this.u)||bF("pl_ss",this.u,"seek");bF(b,(0,g.GA)(),"seek")}this.reset()}};g.k=vLa.prototype;g.k.reset=function(){XE(this.timerName)};
g.k.tick=function(a,b){bF(a,b,this.timerName)};
g.k.ai=function(a){return Kta(a,this.timerName)};
g.k.Kt=function(a){oT(a,void 0,this.timerName)};
g.k.info=function(a,b){g.aF(a,b,this.timerName)};g.x(yLa,g.aE);g.k=yLa.prototype;g.k.Dk=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.No=function(a){return this.loop||!!a||0<=this.index-1};
g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&null!=this.order[this.index]?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.B++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.B++}this.ma("shuffle")};
g.k.vg=function(a){a=a||"hqdefault.jpg";var b=this.ea[a];if(b||this.u.oa||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.C.length)return DK(this.u,this.C[0],a)};
g.k.findIndex=function(a){if(a&&(a=a.videoId,!this.items[this.index]||this.items[this.index].video_id!==a))for(var b=0;b<this.items.length;b++)if(this.items[b].video_id===a){this.index=b;break}};
g.k.onReady=function(a){this.j=a;this.loaded&&g.yy(this.j,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.Bk=function(){return this.u.getVideoUrl(g.qT(this).videoId,this.getPlaylistId())};
g.k.qa=function(){this.j=null;g.ib(this.items);g.aE.prototype.qa.call(this)};var rT=new Map;g.x(g.tT,g.aE);g.k=g.tT.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.ph=function(){};
g.k.Uk=function(){return!0};
g.k.qa=function(){this.loaded&&this.unload();g.aE.prototype.qa.call(this)};
g.k.kc=function(){return{}};
g.k.getOptions=function(){return[]};g.x(g.wT,g.E);g.k=g.wT.prototype;g.k.Ps=aa(29);g.k.Wy=function(){};
g.k.gr=function(){};
g.k.Su=function(){return""};
g.k.wO=aa(30);g.k.qa=function(){this.gr();g.E.prototype.qa.call(this)};g.x(g.xT,g.wT);g.xT.prototype.Ps=aa(28);g.xT.prototype.Wy=function(a){if(this.audioTrack)for(var b=g.v(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.vT(this.j,c.value);a()};
g.xT.prototype.Su=function(a,b){var c=a.Ze(),d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.Uy()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.dL(a));this.Y.K("web_player_topify_subtitles_for_shorts")&&this.B&&(d.xosf="1");this.Y.K("captions_url_add_ei")&&this.eventId&&(d.ei=this.eventId);Object.assign(d,this.Y.j);return py(c,d)};
g.xT.prototype.gr=function(){this.u&&this.u.abort()};g.LLa.prototype.override=function(a){a=g.v(Object.entries(a));for(var b=a.next();!b.done;b=a.next()){var c=g.v(b.value);b=c.next().value;c=c.next().value;Object.defineProperty(this,b,{value:c})}};g.wdb=new Map;g.x(g.zT,g.wT);g.zT.prototype.Ps=aa(27);
g.zT.prototype.Wy=function(a){var b=this,c=this.B,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.IU&&(d.asrs=1);c=py(c,d);this.gr();this.u=g.Dy(c,{format:"RAW",onSuccess:function(e){b.u=null;if((e=e.responseXML)&&e.firstChild){for(var f=e.getElementsByTagName("track"),h=0;h<f.length;h++){var l=f[h],m=l.getAttribute("lang_code"),n=l.getAttribute("lang_translated"),p=l.getAttribute("name"),q=l.getAttribute("kind"),t=l.getAttribute("id"),w="true"===l.getAttribute("lang_default"),z="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.vT(b.j,new g.aL({languageCode:m,languageName:n,name:p,kind:q,id:t,is_servable:!0,is_translateable:z,vss_id:l,is_default:w}))}e=e.getElementsByTagName("target");f=e.length;for(h=0;h<f;h++)m={languageCode:e[h].getAttribute("lang_code"),languageName:e[h].getAttribute("lang_translated"),languageOriginal:e[h].getAttribute("lang_original"),id:e[h].getAttribute("id"),isDefault:"true"===e[h].getAttribute("lang_default")},b.D[m.languageCode]=m.languageName,b.C.push(m)}a()},
withCredentials:!0})};
g.zT.prototype.Su=function(a,b){var c=this.B;b={v:this.videoId,type:"track",lang:a.languageCode,name:a.getName(),kind:a.kind,fmt:b};this.Y.K("captions_url_add_ei")&&(b.ei=this.eventId);a.translationLanguage&&(b.tlang=g.dL(a));Object.assign(b,this.Y.j);return c=py(c,b)};
g.zT.prototype.gr=function(){this.u&&this.u.abort()};for(var CT,AT=new Uint8Array(123),f4=25;0<=f4;--f4)AT[48+f4]=52+f4,AT[65+f4]=f4,AT[97+f4]=26+f4;AT[43]=62;AT[47]=63;jMa.prototype.reload=function(){var a=this,b;return g.A(function(c){if(1==c.j){if(!lMa||!a.module)return a.exports&&(a.exports=hMa(a.j)),c.Ka(0);b=a;return g.y(c,WebAssembly.instantiate(a.module,a.j),3)}b.instance=c.u;a.exports=a.instance.exports;g.ta(c)})};
var kMa=22<=koa(),lMa="WebAssembly"in window&&"instantiateStreaming"in window.WebAssembly;g.x(nMa,g.E);g.k=nMa.prototype;g.k.createSubtitlesModuleIfNeeded=function(){rMa(this)&&ET(this,"captions");return!!g.DT(this)};
g.k.SD=function(){return this.F.getVideoData().SD()};
g.k.lP=function(){return this.F.getVideoData().lP()};
g.k.cT=function(){var a=this.df.get("heartbeat");ET(this,"heartbeat",!1,!0,this.cT);!a&&this.df.has("heartbeat")&&this.F.ma("offlineslatestatechange")};
g.k.isShortsModeEnabled=function(){var a=this.F,b;return a.K("shorts_mode_to_player_api")?!!a.Tb():!(null==(b=g.iS(a))||!b.Tb())};
g.k.XK=function(){ET(this,"annotations_module",!0,void 0,this.XK);var a=this.df.get("annotations_module");if(a)for(var b in this.u)if(this.u.hasOwnProperty(b)){var c=b;a.subscribe(c,this.u[c])}};
g.k.WK=function(){if(!this.df.get("ad"))try{oMa(this)?ET(this,"ad",!1,!0,this.WK):this.F.hg("ad")}catch(a){this.F.hg("ad"),g.zD(a)}};
g.k.Nh=function(){return this.j};
g.k.aq=function(){var a={},b=g.DT(this);b&&Object.assign(a,b.aq());return a};
g.k.Yy=function(a,b){Object.assign(this.j,a||null);Object.assign(this.nF,b||null)};
g.k.qa=function(){g.E.prototype.qa.call(this);FT(this,1,!0);for(var a=g.v(Object.entries(CMa)),b=a.next();!b.done;b=a.next()){var c=g.v(b.value);b=c.next().value;c=c.next().value;this.B.has(c)&&rT.delete(b)}this.B.clear()};
var g4={},CMa=(g4.ad="ad.js",g4.annotations_module="annotations_module.js",g4.creatorendscreen="annotations_module.js",g4.embed="embed.js",g4.endscreen="endscreen.js",g4.heartbeat="heartbeat.js",g4.inline_preview="inline_preview.js",g4.kids="kids.js",g4.remote="remote.js",g4.miniplayer="miniplayer.js",g4.music="music.js",g4.offline="offline.js",g4.captions="captions.js",g4.unplugged="unplugged.js",g4.ux="ux.js",g4.webgl="webgl.js",g4.ypc="ypc.js",g4.ypc_clickwrap="ypc_clickwrap.js",g4.yto="yto.js",
g4);g.x(EMa,g.aE);g.k=EMa.prototype;g.k.d0=function(a){a=EO(a);if(!we(a,this.C)){var b=2;this.I&&(b|=8);this.C=a;KT(this,b,!0)}};
g.k.W4=function(){this.I&&KT(this,8,!0);KT(this,2,!1)};
g.k.Av=function(a){var b=EO(a);we(b,this.C)||(this.C=b,(a=g.FO(a))&&this.cF(a)&&(KT(this,4,!0),this.j.Fc(this.B),this.B=this.j.S(this.target,"mouseover",this.gz),this.J=this.j.S(this.target,"mouseout",this.gz)))};
g.k.gz=function(a){a=g.CO?a.relatedTarget:Cz(a);a&&this.cF(a)||(this.C=new g.ve(NaN,NaN),FMa(this))};
g.k.v4=function(){KT(this,1,!0)};
g.k.j3=function(a){a=g.FO(a);a instanceof Element&&!(0<a.tabIndex)||KT(this,1,!0)};
g.k.FR=function(){this.I=!0;this.j.Fc(this.D);this.D=this.j.S(document,"mouseup",this.e0)};
g.k.e0=function(){this.I=!1;KT(this,8,!1);this.j.Fc(this.D);this.D=this.j.S(this.target,"mousedown",this.FR)};
g.k.GR=function(a){if(a=(a=a.changedTouches)&&a[0])this.ya=a.identifier,this.j.Fc(this.V),this.V=this.j.S(this.target,"touchend",this.f0,void 0,!0),KT(this,1024,!0)};
g.k.f0=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.ya){var d=c;break}}d&&(this.j.Fc(this.V),this.V=this.j.S(this.target,"touchstart",this.GR,void 0,!0),KT(this,1024,!1))};
g.k.rp=function(){KT(this,2,!0)};
g.k.resize=function(){g.hI&&FMa(this)};
g.k.toString=function(){return g.aE.prototype.toString.call(this)};g.x(g.MT,g.V);
g.MT.prototype.Qa=function(){var a=this.api.getVideoData(),b=this.api.T(),c,d=b.K("shorts_mode_to_player_api")?!!this.api.Tb():!(null==(c=g.iS(this.api))||!c.Tb());g.Mp(this.element,"ytp-shorts-mode",d);d?c=[{G:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},W:[{G:"path",X:{"clip-rule":"evenodd",d:"M83.99 10.81C90.08 21.24 86.62 34.66 76.26 40.79L69.05 45.06L74.17 47.38C81.58 50.74 86.52 57.99 86.96 66.17C87.40 74.34 83.27 82.09 76.26 86.24L32.76 111.97C22.41 118.10 9.08 114.61 3.00 104.18C-3.08 93.75 .37 80.33 10.73 74.20L17.94 69.93L12.82 67.61C5.41 64.25 .47 57.00 .03 48.82C-0.40 40.65 3.72 32.90 10.73 28.75L54.23 3.02C64.58 -3.10 77.91 .38 83.99 10.81Z",fill:"#f00",
"fill-rule":"evenodd"}},{G:"path",X:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:a.pd&&(a.Dl||b.Z)?c=b.Z?[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},W:[{G:"path",N:"ytp-dni-large-play-button-bg",X:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{G:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},W:[{G:"path",N:"ytp-dni-large-play-button-bg",
X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{G:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:b.J?(g.Mp(this.element,"ytp-touch-device",b.u),c=[b.J?{G:"svg",X:{height:"100%",version:"1.1",
viewBox:"0 0 60 60",width:"100%"},W:[{G:"path",N:"ytp-large-play-button-bg",X:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{G:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},W:[{G:"path",N:"ytp-large-play-button-bg",X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#212121","fill-opacity":"0.8"}},{G:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):c=[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},W:[{G:"path",N:"ytp-large-play-button-bg",X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#f00"}},{G:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",c);a.pd&&(a.Dl||b.Z)&&(a=a.Dl?a.Dl:"#1f1f1f",this.Da("ytp-dni-large-play-button-bg").setAttribute("fill",a))};
g.MT.prototype.show=function(){g.V.prototype.show.call(this);this.api.T().K("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.Va(this.element,!0)};
g.MT.prototype.j=function(){this.api.EG();this.api.playVideo();this.api.getRootNode().focus()};
g.MT.prototype.u=function(a){g.IO(a)};g.x(g.NT,g.V);g.k=g.NT.prototype;g.k.show=function(){var a=this;this.yb||(this.C.S(this.api,"videodatachange",function(){g.Bp(a.j)}),this.C.S(this.api,"videoplayerreset",function(){g.Bp(a.j)}));
g.V.prototype.show.call(this)};
g.k.hide=function(){this.C&&g.Hz(this.C);g.V.prototype.hide.call(this)};
g.k.Db=function(){g.Bp(this.j)};
g.k.onStateChange=function(){g.Bp(this.j)};
g.k.b8=function(){g.Bp(this.j)};
g.k.Fv=function(){this.u.stop();this.hide();g.Bp(this.j)};
g.k.Qa=function(){var a=this.api.Cb();if(3===this.api.getPresentingPlayerType()&&(a.Yc()||g.UO(a)))var b=!0;else(b=this.api.wb().df.get("ypc"))&&b.lH?b=!0:(b=this.api.T(),b=g.UN(a,2)&&g.sS(this.api)&&b.Vf?!0:!1);b?(b=!0,this.B.hide()):this.api.K("web_player_show_frame_zero_when_cued")&&GMa(this)?(b=!0,this.B.hide()):(this.B.show(),b=a.isCued()&&2!==this.api.getPresentingPlayerType()||g.UN(a,2)&&!g.sS(this.api)&&!this.api.DB()||g.UN(a,1024)?!0:!1);b?(this.u.show(),a=this.api.getVideoData(),this.P9(this.api.getPlaylist(),
a)):(this.u.hide(),g.UN(a,1)||this.u.stop())};
g.k.P9=function(){var a=g.Ca.apply(0,arguments),b=this.api.T(),c,d=null==(c=this.api.getVideoData())?void 0:c.videoId;if(b.K("web_player_show_frame_zero_when_cued")&&d&&GMa(this))var e="https://web.archive.org/web/20230505074338/https://i.ytimg.com/vi/"+d+"/frame0.jpg";else for(a=g.v(a),b=a.next();!b.done;b=a.next())if(b=b.value,!(!b||b instanceof g.cM&&!b.videoId)){e=this.api.jb().getPlayerSize();d=g.FK();c=e.width*d;d*=e.height;if(1280<c||720<d)if(e=b.vg("maxresdefault.jpg"))break;if(640<c||480<d)if(e=b.vg("maxresdefault.jpg"))break;if(320<
c||180<d)if(e=b.vg("sddefault.jpg")||b.vg("hqdefault.jpg")||b.vg("mqdefault.jpg"))break;if(e=b.vg("default.jpg"))break}this.D.style.backgroundImage=e?"url("+e+")":""};g.x(g.RT,g.V);g.RT.prototype.resize=function(){};
g.RT.prototype.u=function(a){var b=this;OMa(this);var c=a.qL,d=this.api.T();"GENERIC_WITHOUT_LINK"!==c||d.J?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.je(MMa(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Bk(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.J?this.je(g.ST(a.errorMessage)):this.je(MMa(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//web.archive.org/web/20230505074338/https://www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//web.archive.org/web/20230505074338/https://support.google.com/youtube/?p=player_error1",a&&(c=
g.Ui(c,{hl:a})),this.je(MMa(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.Gc&&!d.C&&NMa(this,function(e){if(g.OT(e,b.api,!EK(b.api.T()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.Na("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var LMa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.x(UT,g.eI);UT.prototype.Gi=function(){SMa(this)};
UT.prototype.onVideoDataChange=function(){var a=this,b=this.F.getVideoData();if(b.De()){var c=this.F.T(),d=[],e="";if(!c.oa){var f=QMa(this);c.K("enable_web_media_session_metadata_fix")&&g.qK(c)&&f?(d=RMa(f.thumbnailDetails),f.album&&(e=g.dE(f.album))):d=[{src:b.vg("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}SMa(this);PMa(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.vS(this.F)&&(this.j.delete("nexttrack"),this.j.delete("previoustrack"),
b=function(){a.F.nextVideo()},c=function(){a.F.previousVideo()});
VT(this,"nexttrack",b);VT(this,"previoustrack",c)}};
UT.prototype.qa=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.v(this.j),b=a.next();!b.done;b=a.next())VT(this,b.value,null);g.eI.prototype.qa.call(this)};g.x(TMa,g.V);g.k=TMa.prototype;g.k.onClick=function(a){g.OT(a,this.F,!0);this.F.qb(this.element)};
g.k.onVideoDataChange=function(a,b){VMa(this,b);this.Te&&WMa(this,this.Te)};
g.k.zd=function(a){var b=this.F.getVideoData();this.videoId!==b.videoId&&VMa(this,b);this.j&&WMa(this,a.state);this.Te=a.state};
g.k.md=function(){this.C.show();this.F.ma("paidcontentoverlayvisibilitychange",!0);this.F.Va(this.element,!0)};
g.k.Fb=function(){this.C.hide();this.F.ma("paidcontentoverlayvisibilitychange",!1);this.F.Va(this.element,!1)};g.x(WT,g.V);WT.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.V.prototype.hide.call(this)};
WT.prototype.onStateChange=function(a){this.pc(a.state)};
WT.prototype.pc=function(a){if(g.UN(a,128))var b=!1;else{var c;b=(null==(c=this.api.Pc())?0:c.Ms)?!1:g.UN(a,16)||g.UN(a,1)?!0:!1}b?this.j.start():this.hide()};
WT.prototype.u=function(){this.message.style.display="block"};g.x(XT,g.AS);XT.prototype.onMutedAutoplayChange=function(a){this.B&&(a?(XMa(this),this.md()):(this.j&&this.qb(),this.Fb()))};
XT.prototype.Gi=function(a){this.api.isMutedByMutedAutoplay()&&g.bO(a,2)&&this.Fb()};
XT.prototype.onClick=function(){this.api.unMute();this.qb()};
XT.prototype.qb=function(){this.clicked||(this.clicked=!0,this.api.qb(this.element))};g.x(g.ZT,g.eI);g.k=g.ZT.prototype;g.k.init=function(){var a=this.api,b=a.Cb();this.iC=a.getPlayerSize();this.lc(b);this.vp();this.Db();this.api.ma("basechromeinitialized",this)};
g.k.onVideoDataChange=function(a,b){var c=this.CC!==b.videoId;if(c||"newdata"===a)a=this.api,a.isFullscreen()||(this.iC=a.getPlayerSize());c&&(this.CC=b.videoId,c=this.Ve,c.Aa=b&&0<b.Sf.length?5E3:3E3,KT(c,512,!0),this.vp())};
g.k.H6=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.k.At=function(){var a=this.api.pk()&&this.api.uo();return this.mF||a||this.rM};
g.k.fl=function(){var a=!this.At();g.Mp(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.k.cF=function(a){try{if(!g.lf(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!rf(a);)a=a===this.api.getRootNode()?null:g.kf(a);return!!a};
g.k.pn=function(a){var b=this.api.getRootNode();g.Mp(b,"ytp-autohide",a);g.Mp(b,"ytp-autohide-active",!0);this.BS.start(a?250:100);a&&(this.qI=!1,g.Kp(b,"ytp-touch-mode"));this.VK=!a;this.api.PD(!a)};
g.k.zN=function(){var a=this.api.getRootNode();g.Mp(a,"ytp-autohide-active",!1)};
g.k.k7=function(){this.LP=!0};
g.k.j7=function(a){if(this.api.T().K("player_doubletap_to_seek")||this.api.T().V)this.LP=!1,this.MP&&this.Fc(this.MP),0===this.MC&&$T(this,a)?(this.lG(),this.rF.start(),this.MP=this.S(this.api.jb(),"touchmove",this.k7,void 0,!0)):this.rF.stop();aNa(this)&&$T(this,a)&&!this.api.T().V&&ZMa(this);var b=this.TP.cj();if(eK&&bNa(this,a))b&&g.IO(a);else if(this.qI=!0,g.Ip(this.api.getRootNode(),"ytp-touch-mode"),this.Ve.rp(),this.api.T().K("player_doubletap_to_seek")||this.api.K("embeds_web_enable_mobile_dtts")&&
this.api.T().V)if(b=this.api.Cb(),!(!this.api.wh()||g.UN(b,2)&&g.sS(this.api)||g.UN(b,64))){b=Date.now()-this.gV;this.MC+=1;if(350>=b){this.oB=!0;b=this.api.getPlayerSize().width/3;var c=this.api.getRootNode().getBoundingClientRect(),d=a.targetTouches[0].clientX-c.left;c=a.targetTouches[0].clientY-c.top;var e=10*(this.MC-1);0<d&&d<b?(this.DD(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.DD(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.IO(a)}else LT&&this.api.K("embeds_web_enable_mobile_dtts")&&
this.api.T().V&&$T(this,a)&&g.IO(a);this.gV=Date.now();this.oX.start()}};
g.k.i7=function(){this.qN.GU=!1;this.api.ma("rootnodemousedown",this.qN)};
g.k.e7=function(a){this.qN.GU||bNa(this,a)||(aNa(this)||!$T(this,a)||this.rF.isActive()||(g.JK(this.api.T())&&this.api.Cb().isCued()&&pT(this.api.Nh()),ZMa(this),g.IO(a)),this.oB&&(this.oB=!1))};
g.k.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.nA("embedsRequestStorageAccessResult",{resolved:!0});uwa(!0);uD();window.location.reload()},function(){g.nA("embedsRequestStorageAccessResult",{resolved:!1});
a.Yz()})};
g.k.lG=function(){};
g.k.jw=function(){};
g.k.DD=function(){};
g.k.CD=function(){};
g.k.Yz=function(){var a=this.api.Cb();g.UN(a,2)&&g.sS(this.api)||(g.VO(a)?this.api.pauseVideo():(this.Gm&&(a=this.Gm.B,document.activeElement===a.element&&this.api.ma("largeplaybuttonclicked",a.element)),this.api.EG(),this.api.playVideo(),this.Gm&&document.activeElement===this.Gm.B.element&&this.api.getRootNode().focus()))};
g.k.f7=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!$Ma(this,GO(a)))if(a=this.api.T(),(this.api.T().K("player_doubletap_to_seek")||this.api.K("embeds_web_enable_mobile_dtts")&&this.api.T().V)&&this.oB)this.oB=!1;else if(a.Ub&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.dC(d)})}catch(d){this.dC(d)}};
g.k.dC=function(a){String(a).includes("fullscreen error")?g.AD(a):g.zD(a)};
g.k.g7=function(a){cNa(this,.3,a.scale);g.IO(a)};
g.k.h7=function(a){cNa(this,.1,a.scale)};
g.k.Db=function(){var a=this.api.jb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Ve.resize();g.Mp(b,"ytp-fullscreen",this.api.isFullscreen());g.Mp(b,"ytp-large-width-mode",c);g.Mp(b,"ytp-small-mode",this.Ug());g.Mp(b,"ytp-tiny-mode",this.vG());g.Mp(b,"ytp-big-mode",this.xg());this.qg&&this.qg.resize(a)};
g.k.Gi=function(a){this.lc(a.state);this.vp()};
g.k.QD=aa(31);g.k.OL=function(){var a=!!this.CC&&!this.api.Af()&&!this.mO,b=2===this.api.getPresentingPlayerType(),c=this.api.T();if(b){if(s9a&&c.K("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=GT(this.api.wb());return a&&b.pP()}return a&&(c.qm||this.api.isFullscreen()||c.Kj)};
g.k.vp=function(){var a=this.OL();this.Vo!==a&&(this.Vo=a,g.Mp(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.lc=function(a){var b=a.isCued()||this.api.Mo()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.NP&&this.Fc(this.NP),this.NP=this.S(this.api.jb(),"touchstart",this.j7,void 0,b));var c=a.Yc()&&!g.UN(a,32)||this.api.tC();KT(this.Ve,128,!c);c=3===this.api.getPresentingPlayerType();KT(this.Ve,256,c);c=this.api.getRootNode();if(g.UN(a,2))var d=[b4.ENDED];else d=[],g.UN(a,8)?d.push(b4.PLAYING):g.UN(a,4)&&d.push(b4.PAUSED),g.UN(a,1)&&!g.UN(a,32)&&d.push(b4.BUFFERING),g.UN(a,
32)&&d.push(b4.SEEKING),g.UN(a,64)&&d.push(b4.UNSTARTED);g.Sb(this.fK,d)||(g.Lp(c,this.fK),this.fK=d,g.Jp(c,d));d=this.api.T();var e=g.UN(a,2);a:{var f=this.api.T();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f="3"===h&&!g.UN(a,2)||this.isCued||(2!==this.api.getPresentingPlayerType()?0:$8a(GT(this.api.wb())))||g.iK(f)&&2===this.api.getPresentingPlayerType()?!1:!0}g.Mp(c,"ytp-hide-controls",!f);g.Mp(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.rM);g.UN(a,128)&&!g.iK(d)?
(this.qg||(this.qg=new g.RT(this.api),g.I(this,this.qg),g.yS(this.api,this.qg.element,4)),this.qg.u(a.getData()),this.qg.show()):this.qg&&(this.qg.dispose(),this.qg=null)};
g.k.Gl=function(){return this.api.pk()&&this.api.uo()?(this.api.Kz(!1,!1),!0):this.api.Af()?(g.tS(this.api,!0),!0):!1};
g.k.onMutedAutoplayChange=function(a){this.rM=a;this.fl()};
g.k.xg=function(){return!1};
g.k.Ug=function(){return!this.xg()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.k.vG=function(){return this.Ug()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.k.Tb=function(){var a=this.api.T();if(!g.iK(a)||"EMBEDDED_PLAYER_MODE_DEFAULT"!==(a.Pa||"EMBEDDED_PLAYER_MODE_DEFAULT")||this.api.getPlaylist())return!1;a=this.iC;var b,c;return a.width<=a.height&&!!(null==(b=this.api.getVideoData())?0:null==(c=b.embeddedPlayerConfig)?0:c.isShortsExperienceEligible)};
g.k.Ol=function(){return this.qI};
g.k.Nm=function(){return null};
g.k.NF=function(){return null};
g.k.Ak=function(){var a=this.api.jb().getPlayerSize();return new g.Gm(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.Rv=function(){};
g.k.showControls=function(a){void 0!==a&&this.api.jb().PD(a)};
g.k.rp=function(){};
g.k.PL=function(){return this.iC};g.x(aU,g.aE);g.k=aU.prototype;g.k.Hl=function(){return 1E3*this.api.getDuration(this.Hn,!1)};
g.k.stop=function(){this.j&&this.wd.Fc(this.j)};
g.k.wc=function(){var a=this.api.getProgressState(this.Hn);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.getCurrentTime(this.Hn,!1)};this.ma("h")};
g.k.getProgressState=function(){return this.u};
g.k.zd=function(a){g.bO(a,2)&&this.ma("g")};g.x(dNa,g.V);dNa.prototype.onClick=function(){this.F.Na("BACK_CLICKED")};g.x(g.bU,g.V);g.bU.prototype.show=function(){g.V.prototype.show.call(this);g.Bp(this.j)};
g.bU.prototype.hide=function(){this.u.stop();g.V.prototype.hide.call(this)};
g.bU.prototype.jw=function(a){a?g.UN(this.F.Cb(),64)||cU(this,vQ(),"Play"):(a=this.F.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?cU(this,TEa(),"Stop live playback"):cU(this,PEa(),"Pause"))};g.x(hNa,g.V);g.k=hNa.prototype;g.k.md=function(){this.F.T().K("player_new_info_card_format")&&g.Hp(this.F.getRootNode(),"ytp-cards-teaser-shown")&&!g.iK(this.F.T())||(this.u.show(),g.nC("iv-button-shown"))};
g.k.Fb=function(){g.nC("iv-button-hidden");this.u.hide()};
g.k.cj=function(){return this.yb&&4!==this.u.state};
g.k.qa=function(){this.j&&this.j();g.V.prototype.qa.call(this)};
g.k.g6=function(){g.nC("iv-button-mouseover")};
g.k.M5=function(a){this.F.pk();var b=g.Hp(this.F.getRootNode(),"ytp-cards-teaser-shown");g.nC("iv-teaser-clicked",b);var c;if(null==(c=this.F.getVideoData())?0:g.PM(c)){var d;a=null==(d=this.F.getVideoData())?void 0:g.QM(d);(null==a?0:a.onIconTapCommand)&&this.F.Na("innertubeCommand",a.onIconTapCommand)}else d=0===a.screenX&&0===a.screenY,this.F.Kz(!this.F.uo(),d,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.x(iNa,g.V);g.k=iNa.prototype;g.k.CY=function(){this.F.pk()&&this.F.uo()&&this.cj()&&this.Fb()};
g.k.CP=function(){this.Fb();!this.F.pk()&&this.F.T().K("enable_error_corrections_infocards_icon_web")&&this.Vi.Fb();g.nC("iv-teaser-clicked",null!=this.j);if(this.onClickCommand)this.F.Na("innertubeCommand",this.onClickCommand);else{var a;(null==(a=this.F.getVideoData())?0:g.PM(a))||this.F.Kz(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
g.k.g0=function(){g.nC("iv-teaser-mouseover");this.j&&this.j.stop()};
g.k.G7=function(a){this.F.T().K("player_new_info_card_format")&&!g.iK(this.F.T())?this.Vi.Fb():this.F.T().K("enable_error_corrections_infocards_icon_web")&&this.Vi.md();this.j||!a||this.F.uo()||this.u&&this.u.isActive()||(this.md(a),g.nC("iv-teaser-shown"))};
g.k.md=function(a){this.onClickCommand=a.onClickCommand;this.updateValue("text",a.teaserText);this.element.setAttribute("dir",g.Yp(a.teaserText));this.C.show();this.u=new g.Ap(function(){g.Ip(this.F.getRootNode(),"ytp-cards-teaser-shown");this.F.K("player_new_info_card_format")&&!g.iK(this.F.T())&&this.Vi.Fb();this.aQ()},0,this);
this.u.start();gNa(this.Vi,!1);this.j=new g.Ap(this.Fb,580+a.durationMs,this);this.j.start();this.D.push(this.Ra("mouseover",this.IR,this));this.D.push(this.Ra("mouseout",this.HR,this))};
g.k.aQ=function(){if(!this.F.T().K("player_new_info_card_format")&&g.iK(this.F.T())&&this.yb){var a=this.Vi.element.offsetLeft,b=g.Te("ytp-cards-button-icon"),c=this.F.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Vi.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.n2=function(){g.iK(this.F.T())&&this.Z.Ug()&&this.yb&&this.V.start()};
g.k.IR=function(){this.I.stop();this.j&&this.j.isActive()&&this.J.start()};
g.k.HR=function(){this.J.stop();this.j&&!this.j.isActive()&&this.I.start()};
g.k.t6=function(){this.j&&this.j.stop()};
g.k.s6=function(){this.Fb()};
g.k.Yo=function(){this.Fb()};
g.k.Fb=function(){!this.j||this.B&&this.B.isActive()||(g.nC("iv-teaser-hidden"),this.C.hide(),g.Kp(this.F.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.Ap(function(){for(var a=g.v(this.D),b=a.next();!b.done;b=a.next())this.Fc(b.value);this.D=[];this.j&&(this.j.dispose(),this.j=null);gNa(this.Vi,!0);!this.F.pk()&&this.F.T().K("enable_error_corrections_infocards_icon_web")&&this.Vi.Fb()},330,this),this.B.start())};
g.k.cj=function(){return this.yb&&4!==this.C.state};
g.k.qa=function(){var a=this.F.getRootNode();a&&g.Kp(a,"ytp-cards-teaser-shown");g.ib(this.u,this.B,this.j);g.V.prototype.qa.call(this)};var h4={},eU=(h4.BUTTON="ytp-button",h4.TITLE_NOTIFICATIONS="ytp-title-notifications",h4.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",h4.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",h4.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",h4);g.x(jNa,g.V);jNa.prototype.onClick=function(){this.api.qb(this.element);var a=!this.j;this.updateValue("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.updateValue("pressed",a);kNa(this,a)};g.Ka("yt.pubsub.publish",g.nC);g.x(g.hU,g.V);g.hU.prototype.C=function(){window.location.reload()};
g.hU.prototype.j=function(){g.Ip(this.element,"ytp-sb-subscribed")};
g.hU.prototype.u=function(){g.Kp(this.element,"ytp-sb-subscribed")};g.x(nNa,g.V);g.k=nNa.prototype;g.k.J5=function(a){this.api.qb(this.j);var b=this.api.T();b.u||b.Nb?pNa(this)&&(this.isExpanded()?this.kF():this.AF()):g.ek(iU(this));a.preventDefault()};
g.k.SO=function(){rNa(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.Tb=function(){return this.api.T().K("shorts_mode_to_player_api")?!!this.api.Tb():!!this.D.Tb()};
g.k.AF=function(){if(pNa(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.B&&this.B.stop();this.api.K("web_player_ve_conversion_fixes_for_channel_info")&&this.api.Va(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.Va(this.subscribeButton.element,!0));var a=this.api.getVideoData();
this.u&&a.jm&&a.subscribed&&(this.u.show(),this.api.Va(this.u.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.kF=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.B&&this.B.start()};
g.k.Qa=function(){var a=this.api.T();g.iQ(this,!this.Tb());var b=this.api.getVideoData(),c=this.api.T(),d=this.api.getVideoData();this.C=!1;var e=!!d.videoId&&!!d.Gc&&!!d.profilePicture;2===this.api.getPresentingPlayerType()?this.C=e&&!!d.isListed&&!!d.author:g.iK(c)&&(this.C=e&&!(d.pd&&c.Z)&&!c.B&&!(c.V&&200>this.api.getPlayerSize().width));c=b.profilePicture;a=g.iK(a)?b.Uf:b.author;c=void 0===c?"":c;a=void 0===a?"":a;this.C?(this.J!==c&&(this.j.style.backgroundImage="url("+c+")",this.J=c),this.api.K("web_player_ve_conversion_fixes_for_channel_info")||
this.updateValue("channelLink",iU(this)),this.updateValue("channelLogoLabel",g.pO("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.Ip(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Kp(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Va(this.j,this.C&&this.ea);this.subscribeButton&&(this.subscribeButton.channelId=b.bk);this.updateValue("expandedTitle",b.Uf);this.api.K("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelTitleLink",iU(this));this.updateValue("expandedSubtitle",
b.expandedSubtitle)};
g.k.Zb=function(a){g.V.prototype.Zb.call(this,a);this.api.Va(this.j,this.C&&a)};g.x(jU,g.jQ);jU.prototype.bW=function(){this.ma("size-change")};
jU.prototype.focus=function(){this.content.focus()};
jU.prototype.VV=function(){this.ma("back")};g.x(g.kU,jU);g.k=g.kU.prototype;g.k.Xc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.Ob(this.items,a,tNa);if(0<=b)return;b=~b;g.Jb(this.items,b,0,a);g.hf(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.SN,this);this.menuItems.ma("size-change")};
g.k.hh=function(a){a.unsubscribe("size-change",this.SN,this);this.isDisposed()||(g.Ab(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.ma("size-change"))};
g.k.SN=function(){this.menuItems.ma("size-change")};
g.k.focus=function(){for(var a=0,b=0;b<this.items.length;b++)if("true"===this.items[b].element.getAttribute("aria-checked")){a=b;break}this.items[a].focus()};
g.k.Ho=function(){return this.items.length};g.x(lU,g.FS);lU.prototype.j=function(a){g.HO(a)||39!==g.DO(a)||(this.element.click(),g.IO(a))};g.x(uNa,g.V);g.k=uNa.prototype;g.k.show=function(){g.V.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")};
g.k.hide=function(){g.V.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")};
g.k.h0=function(a){var b=GO(a),c=g.lf(this.closeButton.element,b),d=g.lf(this.element,b);a=this.j&&g.lf(this.j,b)&&g.kR(a);b&&(d||a)&&!c||this.hide()};
g.k.j0=function(){g.fU(g.BK(this.Ua.T()),"user_info_panel",function(){window.location.reload()})};
g.k.Qa=function(){var a=this.Ua.T(),b={USER_NAME:a.userDisplayName,USER_EMAIL:a.oi};this.updateValue("icon",QEa());this.updateValue("watchingAsUsername",g.pO("Watching as $USER_NAME",b));a.oi?this.updateValue("watchingAsEmail",g.pO("($USER_EMAIL)",b)):this.updateValue("watchingAsEmail","")};g.x(wNa,g.kU);g.k=wNa.prototype;g.k.s2=function(){this.Eb.Fb()};
g.k.R5=function(){KMa(this.Zx.element)};
g.k.c6=function(){oU(this,this.F.getDebugText(!0))&&cU(this.Oc,mQ())};
g.k.d6=function(){oU(this,this.F.getVideoEmbedCode())&&cU(this.Oc,KEa());this.F.qb(this.Km.element);sFa("EMBED",this.F.getVideoData().videoId,this.F.getPlaylistId()||"")};
g.k.e6=function(){oU(this,this.F.getVideoUrl(!0,!0))&&cU(this.Oc,rQ());this.F.qb(this.getVideoUrl.element);sFa("COPY_PASTE",this.F.getVideoData().videoId,this.F.getPlaylistId()||"")};
g.k.f6=function(){oU(this,this.F.getVideoUrl(!1,!0))&&cU(this.Oc,rQ());this.F.qb(this.Pm.element);sFa("COPY_PASTE",this.F.getVideoData().videoId,this.F.getPlaylistId()||"")};
g.k.onLoopChange=function(a){var b;null==(b=this.Hk)||TS(b,a)};
g.k.m6=function(){this.F.setLoopVideo(this.Hk.getValue());this.Eb.Fb();this.F.qb(this.Hk.element)};
g.k.a7=function(a){this.F.reportPlaybackIssue();if(g.OT(a,this.F,!EK(this.F.T()))){a=this.F;var b=a.app.getFeedbackProductData();a.Na("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Eb.Fb()};
g.k.t7=function(){g.gS(this.F,"isVideoInfoVisible",[])?g.gS(this.F,"hideVideoInfo",[]):g.gS(this.F,"showVideoInfo",[]);this.Eb.Fb()};
g.k.s7=function(){this.Vk&&(this.iE||(this.iE=new uNa(this.F,this.Vk.element),g.I(this,this.iE),g.yS(this.F,this.iE.element,4)),this.iE.show(),this.Eb.Fb(),this.F.qb(this.Vk.element))};
g.k.onVideoDataChange=function(a,b){this.iP(b)};
g.k.iP=function(a){var b=this.F.T(),c=2===this.F.getPresentingPlayerType(),d=!c||a.isListed;d=!b.oa&&!!a.videoId&&d;"play"!==b.playerStyle?b="https://web.archive.org/web/20230505074338/https://support.google.com/youtube/?p=report_playback":(b={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.u&&(b.fmt=a.u.itag),a.clientPlaybackNonce&&(b.cpn=a.clientPlaybackNonce),a.Aa&&(b.partnerid=a.Aa),b=g.Ui("//web.archive.org/web/20230505074338/https://support.google.com/googleplay/",b));g.iQ(this.Km,d&&a.allowEmbed);g.iQ(this.getVideoUrl,d);g.iQ(this.Pm,d&&
!a.isLivePlayback);this.ED.je(b,"href");var e;null==(e=this.Hk)||g.iQ(e,!a.isLivePlayback&&!c);var f;null==(f=this.Vk)||g.iQ(f,!c)};
g.k.Zb=function(a){g.kU.prototype.Zb.call(this,a);this.F.Va(this.Km.element,a);this.F.Va(this.getVideoUrl.element,a);this.F.Va(this.Pm.element,a);this.Hk&&this.F.Va(this.Hk.element,a);this.Vk&&this.F.Va(this.Vk.element,a)};g.x(g.pU,g.AS);g.k=g.pU.prototype;g.k.show=function(){g.AS.prototype.show.call(this);this.eA()};
g.k.hide=function(){g.AS.prototype.hide.call(this);1<this.j.length&&g.qU(this)};
g.k.eA=function(){ANa(this);this.yb&&(yNa(this),g.Tm(this.element,this.size))};
g.k.jj=function(){var a=this.j.pop();zNa(this,a,this.j[this.j.length-1],!0)};
g.k.k0=function(a){if(!g.HO(a))switch(g.DO(a)){case 27:this.Fb();g.IO(a);break;case 37:1<this.j.length&&this.jj();g.IO(a);break;case 39:g.IO(a)}};
g.k.focus=function(){this.j.length&&this.j[this.j.length-1].focus()};
g.k.qa=function(){g.AS.prototype.qa.call(this);this.D&&this.D.dispose();this.I&&this.I.dispose()};g.x(g.rU,g.pU);g.k=g.rU.prototype;g.k.m0=function(a){var b=GO(a);if(!(b&&(tf(b,"a")||tf(b,null,"ytp-no-contextmenu"))||this.yb)){var c;this.ya=(a=null==(c=a.touches)?void 0:c.item(0))?new g.ve(a.clientX,a.clientY):new g.ve(0,0);this.oa.start()}};
g.k.EW=function(){this.oa.stop()};
g.k.L7=function(){this.open(this.ya)};
g.k.AT=function(){if(this.B&&xNa(this.B)){var a=xNa(this.B).element;a.tabIndex=-1;a.focus()}else this.element.tabIndex=-1,this.element.focus()};
g.k.show=function(){this.B||(this.B=new wNa(this.F,this.Aa,this,this.Oc),g.I(this,this.B),g.nU(this,this.B));this.B.onLoopChange(this.F.getLoopVideo());g.pU.prototype.show.call(this);this.F.Va(this.element,!0);this.B.Zb(!0)};
g.k.hide=function(){CNa(this);g.pU.prototype.hide.call(this);this.F.Va(this.element,!1);this.B&&this.B.Zb(!1)};
g.k.P5=function(a){var b=GO(a);this.yb||b&&(tf(b,"a")||tf(b,null,"ytp-no-contextmenu"))||(g.IO(a),this.open(EO(a)))};
g.k.md=function(a){if(a){var b=a.getBoundingClientRect();this.open(new g.ve(b.x,b.y))}g.pU.prototype.md.call(this,a)};
g.k.open=function(a){DNa(this);var b=this.F.getVideoData();g.Mp(this.element,"ytp-dni",b.pd);this.element.style.left="";this.element.style.top="";a.x++;a.y++;g.pU.prototype.md.call(this);var c=document.body;b=new zm(0,Infinity,Infinity,0);var d=Me(c);for(var e=d.j.body,f=d.j.documentElement,h=jca(d.j);c=Bia(c);)if(!(g.Ve&&0==c.clientWidth||g.Nc&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=Nm(c,"overflow")){var l=g.Rm(c),m=new g.ve(c.clientLeft,c.clientTop);l.x+=m.x;l.y+=m.y;b.top=Math.max(b.top,
l.y);b.right=Math.min(b.right,l.x+c.clientWidth);b.bottom=Math.min(b.bottom,l.y+c.clientHeight);b.left=Math.max(b.left,l.x)}e=h.scrollLeft;h=h.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,h);d=d.j;d=ica(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,h+d.height);d=0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=b,e=5,65==(e&65)&&(a.x<d.left||a.x>=d.right)&&(e&=-2),132==(e&132)&&(a.y<
d.top||a.y>=d.bottom)&&(e&=-5),a.x<d.left&&e&1&&(a.x=d.left),e&16&&(f=a.x,a.x<d.left&&(a.x=d.left),a.x+h.width>d.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.y<d.top&&e&4&&(a.y=d.top),e&32&&(f=a.y,a.y<d.top&&(a.y=d.top),a.y+h.height>d.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.Gm(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Pm(this.element,new g.ve(d.left,d.top));g.Hz(this.C);this.C.S(document,"contextmenu",this.X5);this.C.S(this.F,"fullscreentoggled",this.onFullscreenToggled);this.C.S(this.F,"pageTransition",this.l0)};
g.k.X5=function(a){if(!g.HO(a)){var b=GO(a);g.lf(this.element,b)||this.Fb();this.F.T().disableNativeContextMenu&&g.IO(a)}};
g.k.onFullscreenToggled=function(){this.Fb();DNa(this)};
g.k.l0=function(){this.Fb()};g.x(g.sU,g.V);g.sU.prototype.onClick=function(){var a=this,b,c,d,e;return g.A(function(f){if(1==f.j)return b=a.api.T(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.y(f,GNa(a,e),2);f.u&&FNa(a);a.api.qb(a.element);g.ta(f)})};
g.sU.prototype.Qa=function(){this.updateValue("icon",{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,N:"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=ENa(this);g.Mp(this.element,"ytp-copylink-button-visible",
this.visible);g.iQ(this,this.visible);RS(this.tooltip);this.api.Va(this.element,this.visible&&this.ea)};
g.sU.prototype.Zb=function(a){g.V.prototype.Zb.call(this,a);this.api.Va(this.element,this.visible&&a)};
g.sU.prototype.qa=function(){g.V.prototype.qa.call(this);g.Kp(this.element,"ytp-copylink-button-visible")};g.x(uU,g.V);uU.prototype.show=function(){g.V.prototype.show.call(this);g.Bp(this.u)};
uU.prototype.hide=function(){this.C.stop();this.B=0;g.Kp(this.element,"ytp-chapter-seek");g.Kp(this.element,"ytp-time-seeking");g.V.prototype.hide.call(this)};
uU.prototype.DD=function(a,b,c,d){this.B=a===this.I?this.B+d:d;this.I=a;var e=-1===a?this.V:this.J;e&&this.F.qb(e);this.D?this.u.stop():g.Dp(this.u);this.C.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.F.jb().getPlayerSize().height;e=this.F.jb().getPlayerSize();e=e.width/3-3*e.height;this.j.style.width=f+"px";this.j.style.height=f+"px";1===a?(this.j.style.left="",this.j.style.right=e+"px"):-1===a&&(this.j.style.right="",this.j.style.left=e+"px");var h=2.5*f;f=
h/2;var l=this.Da("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=h+"px";1===a?(a=this.F.jb().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):-1===a&&(a=Math.abs(e)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.Da("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");HNa(this,this.D?this.B:d)};g.x(yU,g.V);g.k=yU.prototype;g.k.WG=function(){};
g.k.UC=function(){};
g.k.Rz=function(){return!0};
g.k.i9=function(){if(this.expanded){this.Pa.show();var a=this.B.element.scrollWidth}else a=this.B.element.scrollWidth,this.Pa.hide();this.Gb=34+a;g.Mp(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Gb)+"px";this.La.start()};
g.k.U2=function(){this.badge.element.style.width=(this.expanded?this.Gb:34)+"px";this.Za.start()};
g.k.YG=function(a){this.I=a;xU(this);wU(this);this.cm()};
g.k.M9=function(){g.Mp(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.k.gI=function(){return this.Z||this.I||!this.C};
g.k.cm=function(){this.Rz()?this.D.show():this.D.hide();JNa(this)};
g.k.n0=function(){this.enabled=!1;this.cm()};
g.k.L9=function(){this.cm()};
g.k.G5=function(a){this.ob=1===a;this.cm();g.Mp(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.k.a6=function(){g.Mp(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.F.isFullscreen());this.cm()};g.x(LNa,yU);g.k=LNa.prototype;g.k.Rz=function(){return!!this.J};
g.k.gI=function(){return!!this.J};
g.k.WG=function(a){a.target===this.dismissButton.element?a.preventDefault():zU(this,!1)};
g.k.UC=function(){zU(this,!0);this.LH()};
g.k.Y8=function(a){var b;if(a.id!==(null==(b=this.J)?void 0:b.identifier)){this.LH();b=g.v(this.V);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=void 0,f=void 0;(c=null==(e=d)?void 0:null==(f=e.bannerData)?void 0:f.itemData)&&d.identifier===a.id&&(this.J=d,DEa(this.banner,c.accessibilityLabel||""),f=d=void 0,e=null==(f=g.S(g.S(c.onTapCommand,g.bQ),g.sM))?void 0:f.url,this.banner.update({url:e,thumbnail:null==(d=(c.thumbnailSources||[])[0])?void 0:d.url,title:c.productTitle,vendor:c.vendorName,
price:c.price}),c.trackingParams&&(this.j=!0,this.F.jg(this.badge.element,c.trackingParams)),this.D.show(),xU(this))}}};
g.k.LH=function(){this.J&&(this.J=void 0,this.cm())};
g.k.onVideoDataChange=function(a,b){var c=this;"dataloaded"===a&&MNa(this);var d,e;if(null==b?0:null==(d=b.getPlayerResponse())?0:null==(e=d.videoDetails)?0:e.isLiveContent){a=b.shoppingOverlayRenderer;var f=null==a?void 0:a.featuredProductsEntityKey,h;if(b=null==a?void 0:null==(h=a.dismissButton)?void 0:h.trackingParams)this.F.jg(this.dismissButton.element,b),this.u=!0;var l;(h=null==a?void 0:null==(l=a.dismissButton)?void 0:l.a11yLabel)&&DEa(this.dismissButton,g.dE(h));this.V.length||NNa(this,f);
var m;null==(m=this.ya)||m.call(this);this.ya=g.vM.subscribe(function(){NNa(c,f)})}else this.LH()};
g.k.qa=function(){MNa(this);yU.prototype.qa.call(this)};g.x(QNa,g.V);QNa.prototype.onClick=function(){this.F.qb(this.element,this.u)};g.x(RNa,g.AS);g.k=RNa.prototype;g.k.show=function(){g.AS.prototype.show.call(this);this.F.ma("infopaneldetailvisibilitychange",!0);this.F.Va(this.element,!0);SNa(this,!0)};
g.k.hide=function(){g.AS.prototype.hide.call(this);this.F.ma("infopaneldetailvisibilitychange",!1);this.F.Va(this.element,!1);SNa(this,!1)};
g.k.getId=function(){return this.C};
g.k.Ho=function(){return this.itemData.length};
g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:(null==(c=b.dl)?void 0:null==(d=c.title)?void 0:d.content)||"",body:(null==(e=b.dl)?void 0:null==(f=e.bodyText)?void 0:f.content)||""});var h;a=(null==(h=b.dl)?void 0:h.trackingParams)||null;this.F.jg(this.element,a);h=g.v(this.itemData);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.itemData=[];var l;if(null==(l=b.dl)?0:l.ctaButtons)for(b=g.v(b.dl.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.S(l.value,Fab))l=new QNa(this.F,
l,this.j),l.De&&(this.itemData.push(l),l.Ea(this.items))}};
g.k.qa=function(){this.hide();g.AS.prototype.qa.call(this)};g.x(VNa,g.V);g.k=VNa.prototype;g.k.onVideoDataChange=function(a,b){UNa(this,b);this.Te&&XNa(this,this.Te)};
g.k.zd=function(a){var b=this.F.getVideoData();this.videoId!==b.videoId&&UNa(this,b);XNa(this,a.state);this.Te=a.state};
g.k.cW=function(a){(this.C=a)?this.hide():this.j&&this.show()};
g.k.q0=function(){this.u||this.md();this.showControls=!0};
g.k.o0=function(){this.u||this.Fb();this.showControls=!1};
g.k.md=function(){this.j&&!this.C&&(this.B.show(),this.F.ma("infopanelpreviewvisibilitychange",!0),this.F.Va(this.element,!0))};
g.k.Fb=function(){this.j&&!this.C&&(this.B.hide(),this.F.ma("infopanelpreviewvisibilitychange",!1),this.F.Va(this.element,!1))};
g.k.b9=function(){this.u=!1;this.showControls||this.Fb()};var xdb={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(xdb).reduce(function(a,b){a[xdb[b]]=b;return a},{});
var ydb={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(ydb).reduce(function(a,b){a[ydb[b]]=b;return a},{});
var zdb={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(zdb).reduce(function(a,b){a[zdb[b]]=b;return a},{});var Adb,Bdb;Adb=[{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"}];Bdb=[{option:0,text:AU(0)},{option:.25,text:AU(.25)},{option:.5,text:AU(.5)},{option:.75,text:AU(.75)},{option:1,text:AU(1)}];
g.EU=[{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:Adb},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:AU(.5)},{option:-1,text:AU(.75)},{option:0,text:AU(1)},{option:1,text:AU(1.5)},{option:2,
text:AU(2)},{option:3,text:AU(3)},{option:4,text:AU(4)}]},{option:"background",text:"Background color",options:Adb},{option:"backgroundOpacity",text:"Background opacity",options:Bdb},{option:"windowColor",text:"Window color",options:Adb},{option:"windowOpacity",text:"Window opacity",options:Bdb},{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:AU(.25)},{option:.5,text:AU(.5)},{option:.75,text:AU(.75)},{option:1,text:AU(1)}]}];var Cdb=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.x(g.DU,g.eI);g.k=g.DU.prototype;
g.k.nU=function(a){var b=!1,c=g.DO(a),d=GO(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey&&(!g.lS(this.api.app)||Cdb.includes(c)),f=!1,h=!1,l=this.api.T();g.HO(a)?(e=!1,h=!0):l.Zi&&!g.lS(this.api.app)&&(e=!1);if(9===c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"===d.tagName||"A"===d.tagName||"INPUT"===d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!==m&&"button"!==m&&0!==m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b="slider"===d.getAttribute("role");
break;case 38:case 40:m=d.getAttribute("role"),d=38===c?d.previousSibling:d.nextSibling,"slider"===m?b=!0:e&&("option"===m?(d&&"option"===d.getAttribute("role")&&d.focus(),f=b=!0):m&&0===m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0===d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.api.getVolume()+5,100);dU(this.Oc,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);dU(this.Oc,f,!0);this.api.setVolume(f);
h=f=!0;break;case 36:this.api.wh()&&(this.api.startSeekCsiAction(),this.api.seekTo(0),h=f=!0);break;case 35:this.api.wh()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),h=f=!0)}}b&&CU(this,!0);(b||h)&&this.Ve.rp();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat))&&g.IO(a);l.I&&(a={keyCode:g.DO(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.HO(a),fullscreen:this.api.isFullscreen()},this.api.Na("onKeyPress",
a))};
g.k.oU=function(a){this.handleGlobalKeyUp(g.DO(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){var l=!1,m=g.wS(this.api.wb());m&&(m=m.Ct)&&m.yb&&(m.jU(a),l=!0);9===a&&(CU(this,!0),l=!0);this.api.ma("keyboardserviceglobalkeyup",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h});return l};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){var m=!1,n=this.api.T();if(n.Zi&&!g.lS(this.api.app))return m;var p=g.wS(this.api.wb());if(p&&(p=p.Ct)&&p.yb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:m=p.iU(a)}n.J||m||(m=f||String.fromCharCode(a).toLowerCase(),this.u+=m,0==="awesome".indexOf(this.u)?(m=!0,7===this.u.length&&lla(this.api.getRootNode(),"ytp-color-party")):(this.u=m,m=0==="awesome".indexOf(this.u)));if(!m&&(!g.lS(this.api.app)||Cdb.includes(a))){var q=
this.api.getVideoData(),t,w;p=null==(t=this.Jc)?void 0:null==(w=t.u)?void 0:w.isEnabled;t=q?q.Hj:[];w=VW?d:c;switch(a){case 80:b&&!n.Wa&&(cU(this.Oc,SEa(),"Previous"),this.api.previousVideo(),m=!0);break;case 78:b&&!n.Wa&&(cU(this.Oc,sQ(),"Next"),this.api.nextVideo(),m=!0);break;case 74:this.api.wh()&&(this.api.startSeekCsiAction(),this.j?vU(this.j,-1,10):cU(this.Oc,{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,N:"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()),m=!0);break;case 76:this.api.wh()&&(this.api.startSeekCsiAction(),this.j?vU(this.j,1,10):cU(this.Oc,{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,N:"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()),m=!0);break;case 37:this.api.wh()&&(this.api.startSeekCsiAction(),w?(w=$Na(t,1E3*this.api.getCurrentTime()),-1!==w&&null!=this.j&&(INa(this.j,-1,t[w].title),this.api.seekTo(t[w].startTime/1E3),m=!0)):(this.j?vU(this.j,-1,5):cU(this.Oc,{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,N:"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()),m=!0));break;case 39:this.api.wh()&&(this.api.startSeekCsiAction(),w?(w=ZNa(t,1E3*this.api.getCurrentTime()),-1!==w&&null!=this.j&&(INa(this.j,1,t[w].title),this.api.seekTo(t[w].startTime/1E3),m=!0)):(null!=this.j?vU(this.j,1,5):cU(this.Oc,{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,N:"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()),m=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),dU(this.Oc,this.api.getVolume(),!1)):(this.api.mute(),dU(this.Oc,0,!0));m=!0;break;case 32:case 75:n.Wa||this.api.K("web_speedmaster_spacebar_control")&&l||(dOa(this)&&this.api.Na("onExpandMiniplayer"),p?this.Jc.wL():(m=!g.VO(this.api.Cb()),this.Oc.jw(m),m?this.api.playVideo():this.api.pauseVideo()),m=!0);break;case 190:b?n.tf&&(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m+.25,!0),eNa(this.Oc,
!1),m=!0):this.api.wh()&&(this.step(1),m=!0);break;case 188:b?n.tf&&(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m-.25,!0),eNa(this.Oc,!0),m=!0):this.api.wh()&&(this.step(-1),m=!0);break;case 70:HMa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),m=!0);
break;case 27:p?(this.Jc.Tr(),m=!0):this.C()&&(m=!0)}if("3"!==n.controlsType)switch(a){case 67:g.DT(this.api.wb())&&(n=this.api.getOption("captions","track"),this.api.toggleSubtitles(),fNa(this.Oc,!n||n&&!n.displayName),m=!0);break;case 79:FU(this,"textOpacity");break;case 87:FU(this,"windowOpacity");break;case 187:case 61:FU(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:FU(this,"fontSizeIncrement",!0,!0)}var z;b||c||d||(48<=a&&57>=a?z=a-48:96<=a&&105>=a&&(z=a-96));null!=z&&this.api.wh()&&
(this.api.startSeekCsiAction(),n=this.api.getProgressState(),this.api.seekTo(z/10*(n.seekableEnd-n.seekableStart)+n.seekableStart),m=!0);m&&this.Ve.rp()}this.api.ma("keyboardserviceglobalkeydown",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h,repeat:l});return m};
g.k.step=function(a){this.api.wh();if(g.UO(this.api.Cb())){var b=this.api.getVideoData().u;b&&(b=b.video)&&this.api.seekBy(a/(b.fps||30))}};
g.k.qa=function(){g.Dp(this.B);g.eI.prototype.qa.call(this)};g.x(g.GU,g.V);g.GU.prototype.Sq=aa(33);
g.GU.prototype.Qa=function(){var a=this.F.T(),b=a.B||this.F.K("web_player_hide_overflow_button_if_empty_menu")&&this.Ah.isEmpty(),c=g.iK(a)&&g.vS(this.F)&&g.UN(this.F.Cb(),128),d=this.F.getPlayerSize(),e=a.K("shorts_mode_to_player_api")?this.F.Tb():this.j.Tb();this.visible=this.j.Ug()&&!c&&240<=d.width&&!(this.F.getVideoData().pd&&a.Z)&&!b&&!this.u&&!e;g.Mp(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&RS(this.tooltip);this.F.Va(this.element,this.visible&&this.ea)};
g.GU.prototype.Zb=function(a){g.V.prototype.Zb.call(this,a);this.F.Va(this.element,this.visible&&a)};
g.GU.prototype.qa=function(){g.V.prototype.qa.call(this);g.Kp(this.element,"ytp-overflow-button-visible")};g.x(eOa,g.AS);g.k=eOa.prototype;g.k.r0=function(a){a=GO(a);g.lf(this.element,a)&&(g.lf(this.j,a)||g.lf(this.closeButton,a)||BS(this))};
g.k.Fb=function(){g.AS.prototype.Fb.call(this);this.tooltip.vk(this.element)};
g.k.show=function(){this.yb&&this.F.ma("OVERFLOW_PANEL_OPENED");g.AS.prototype.show.call(this);this.element.setAttribute("aria-modal","true");gOa(this,!0)};
g.k.hide=function(){g.AS.prototype.hide.call(this);this.element.removeAttribute("aria-modal");gOa(this,!1)};
g.k.onFullscreenToggled=function(a){!a&&this.cj()&&BS(this)};
g.k.isEmpty=function(){return 0===this.actionButtons.length};
g.k.focus=function(){for(var a=g.v(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.yb){b.focus();break}};g.x(hOa,g.V);hOa.prototype.onClick=function(a){g.OT(a,this.api)&&this.api.playVideoAt(this.index)};g.x(iOa,g.AS);g.k=iOa.prototype;g.k.show=function(){g.AS.prototype.show.call(this);this.B.S(this.api,"videodatachange",this.CJ);this.B.S(this.api,"onPlaylistUpdate",this.CJ);this.CJ()};
g.k.hide=function(){g.AS.prototype.hide.call(this);g.Hz(this.B);this.updatePlaylist(null)};
g.k.CJ=function(){this.updatePlaylist(this.api.getPlaylist());this.api.T().B&&(this.Da("ytp-playlist-menu-title-name").removeAttribute("href"),this.C&&(this.Fc(this.C),this.C=null))};
g.k.RH=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.pO(c,d),playlisturl:this.api.getVideoUrl(!0)});b=a.B;if(b===this.D)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.j[a.index];else{c=g.v(this.j);for(d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;
this.j=[];for(d=0;d<c;d++){var e=new hOa(this.api,a,d);this.j.push(e);e.Ea(this.items)}this.selected=this.j[a.index];this.D=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.K7=function(a){var b=this.api.getVideoUrl(!0);g.PT(b,this.api,a)};
g.k.updatePlaylist=function(a){this.playlist!==a?(this.playlist&&this.playlist.unsubscribe("shuffle",this.RH,this),this.playlist=a,this.D=null,a?(a.subscribe("shuffle",this.RH,this),this.RH()):this.yb&&this.hide()):this.playlist&&this.RH()};
g.k.focus=function(){this.selected.focus()};
g.k.qa=function(){this.hide();g.AS.prototype.qa.call(this)};g.x(HU,g.V);HU.prototype.hide=function(){g.V.prototype.hide.call(this);this.Zb(!1);RS(this.tooltip)};
HU.prototype.Qa=function(){var a=g.iK(this.api.T());g.Mp(this.element,"ytp-playlist-menu-button-tiny",400>this.api.jb().getPlayerSize().width&&!a);(this.api.T().K("shorts_mode_to_player_api")?this.api.Tb():this.u.Tb())?this.hide():this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.pO("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.pO("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),
this.yb||(this.show(),RS(this.tooltip)),this.visible=!0,this.Zb(!0)):this.yb&&this.hide()};
HU.prototype.Zb=function(a){g.V.prototype.Zb.call(this,a);this.api.Va(this.element,this.visible&&a)};
HU.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Qa,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Qa,this);this.Qa()};g.x(jOa,g.V);g.k=jOa.prototype;g.k.t0=function(){this.C?nOa(this):mOa(this)};
g.k.s0=function(){this.C?(IU(this),this.I=!0):mOa(this)};
g.k.d5=function(){this.D=!0;this.OD(1);this.F.ma("promotooltipacceptbuttonclicked",this.acceptButton);IU(this);this.u&&this.F.qb(this.acceptButton)};
g.k.W5=function(){this.D=!0;this.OD(2);IU(this);this.u&&this.F.qb(this.dismissButton)};
g.k.u0=function(a){if(1===this.F.getPresentingPlayerType()||2===this.F.getPresentingPlayerType()&&this.V){var b=!0,c=g.Te("ytp-ad-overlay-ad-info-dialog-container"),d=GO(a);if(this.B&&d&&g.lf(this.B,d))this.B=null;else{1===this.F.getPresentingPlayerType()&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)});
var e=oOa(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.lf(this.element,d));else{var h;"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null==(h=this.tooltipRenderer.dismissStrategy)?void 0:h.type)&&(b=e?!1:b&&g.lf(this.element,d))}this.j&&this.yb&&!c&&(!d||b&&g.kR(a))&&(this.D=!0,IU(this))}}};
g.k.OD=function(a){var b=this.tooltipRenderer.promoConfig;if(b){switch(a){case 0:var c;if(null==(c=b.impressionEndpoints)?0:c.length)var d=b.impressionEndpoints[0];break;case 1:d=b.acceptCommand;break;case 2:d=b.dismissCommand}var e;a=null==(e=g.S(d,Eab))?void 0:e.feedbackToken;d&&a&&(e={feedbackTokens:[a]},a=this.F.Mm(),(null==a?0:vFa(d,a.nL))&&wR(a,d,e))}};
g.k.Db=function(){this.I||(this.j||(this.j=kOa(this)),nOa(this))};
var lOa={"ytp-settings-button":g.xQ()};g.x(JU,g.V);JU.prototype.onStateChange=function(a){this.pc(a.state)};
JU.prototype.pc=function(a){g.iQ(this,g.UN(a,2))};
JU.prototype.onClick=function(){this.F.Cb();this.F.playVideo()};g.x(g.KU,g.V);g.k=g.KU.prototype;g.k.Tq=aa(35);g.k.onClick=function(){var a=this,b=this.api.T(),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){qOa(a,f)})}catch(f){f instanceof Error&&qOa(this,f)}else this.j.Gl(),BS(this.B,this.element,!1);
this.api.qb(this.element)};
g.k.showShareButton=function(a){var b=!0;if(this.api.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){var c,d,e=null==(c=a.Kf)?void 0:null==(d=c.embedPreview)?void 0:d.thumbnailPreviewRenderer;e&&(b=!!e.shareButton);var f,h;(c=null==(f=a.fd)?void 0:null==(h=f.playerOverlays)?void 0:h.playerOverlayRenderer)&&(b=!!c.shareButton);var l,m,n,p;if(null==(p=g.S(null==(l=a.fd)?void 0:null==(m=l.contents)?void 0:null==(n=m.twoColumnWatchNextResults)?void 0:n.desktopOverlay,qM))?0:p.suppressShareButton)b=
!1}else b=a.showShareButton;return b};
g.k.Qa=function(){var a=this.api.T(),b=a.K("shorts_mode_to_player_api")?this.api.Tb():this.j.Tb();g.Mp(this.element,"ytp-show-share-title",g.iK(a)&&!g.rK(a)&&!b);this.j.xg()&&b?(a=(this.api.jb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Jm(this.element,"right",a+"px")):b&&g.Jm(this.element,"right","0px");this.updateValue("icon",{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,N:"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=pOa(this);g.Mp(this.element,"ytp-share-button-visible",this.visible);g.iQ(this,this.visible);RS(this.tooltip);this.api.Va(this.element,pOa(this)&&this.ea)};
g.k.Zb=function(a){g.V.prototype.Zb.call(this,a);this.api.Va(this.element,this.visible&&a)};
g.k.qa=function(){g.V.prototype.qa.call(this);g.Kp(this.element,"ytp-share-button-visible")};g.x(g.LU,g.AS);g.k=g.LU.prototype;g.k.v0=function(a){a=GO(a);g.lf(this.D,a)||g.lf(this.closeButton,a)||BS(this)};
g.k.Fb=function(){g.AS.prototype.Fb.call(this);this.tooltip.vk(this.element);this.api.Va(this.j,!1);for(var a=g.v(this.B),b=a.next();!b.done;b=a.next())b=b.value,this.api.Ek(b.element)&&this.api.Va(b.element,!1)};
g.k.show=function(){var a=this.yb;g.AS.prototype.show.call(this);this.Qa();a||this.api.Na("onSharePanelOpened")};
g.k.D4=function(){this.yb&&this.Qa()};
g.k.Qa=function(){var a=this;g.Ip(this.element,"ytp-share-panel-loading");g.Kp(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&wR(this.api.Mm(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.Kp(a.element,"ytp-share-panel-loading"),tOa(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);g.rK(this.api.T())&&(b=g.Ui(b,g.ZR({},"emb_share")));this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.pO("Share link $URL",{URL:b}));KMa(this.j);this.api.Va(this.j,!0)};
g.k.onFullscreenToggled=function(a){!a&&this.cj()&&BS(this)};
g.k.focus=function(){this.j.focus()};
g.k.qa=function(){g.AS.prototype.qa.call(this);sOa(this)};g.x(vOa,yU);g.k=vOa.prototype;g.k.qa=function(){AOa(this);yU.prototype.qa.call(this)};
g.k.WG=function(a){a.target!==this.dismissButton.element&&(zU(this,!1),this.F.Na("innertubeCommand",this.onClickCommand))};
g.k.UC=function(){this.Ja=!0;zU(this,!0);this.cm()};
g.k.J6=function(a){this.Ya=a;this.cm()};
g.k.C6=function(a){var b=this.F.getVideoData();b&&b.videoId===this.videoId&&this.Wa&&(this.ya=a,a||(a=3+this.F.getCurrentTime(),this.Ae(a)))};
g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.Ja=!1,this.I=!0,this.ya=this.Wa=this.C=this.Z=!1,AOa(this),zOa(this,!1),this.V=this.J=!1,MU(this),wOa(this);if(a||!b.videoId)this.u=this.j=!1;var c,d;if(this.F.K("web_player_enable_featured_product_banner_on_desktop")&&(null==b?0:null==(c=b.getPlayerResponse())?0:null==(d=c.videoDetails)?0:d.isLiveContent))this.Ag(!1);else{var e,f,h;c=b.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")?
g.S(null==(e=b.fd)?void 0:null==(f=e.playerOverlays)?void 0:null==(h=f.playerOverlayRenderer)?void 0:h.productsInVideoOverlayRenderer,vza):b.shoppingOverlayRenderer;this.Ya=this.enabled=!1;if(c){this.enabled=!0;if(!this.j){var l;e=null==(l=c.badgeInteractionLogging)?void 0:l.trackingParams;(this.j=!!e)&&this.F.jg(this.badge.element,e||null)}if(!this.u){var m;if(this.u=!(null==(m=c.dismissButton)||!m.trackingParams)){var n;this.F.jg(this.dismissButton.element,(null==(n=c.dismissButton)?void 0:n.trackingParams)||
null)}}c.isContentForward&&(l=c.productsData,zOa(this,!0),wOa(this),l=yOa(l),m=[],0<l.length&&m.push(l[0]),1<l.length&&(n=new g.V({G:"div",N:"ytp-suggested-action-more-products-icon"}),m.push(n),m.push.apply(m,g.la(l.slice(1)))),this.Aa=new g.V({G:"div",W:m,N:"ytp-suggested-action-content-forward-container"}),this.oa.element.append(this.Aa.element));this.text=g.dE(c.text);var p;if(l=null==(p=c.dismissButton)?void 0:p.a11yLabel)this.tb=g.dE(l);this.onClickCommand=c.onClickCommand;this.timing=c.timing;
EM(b)?this.ya=this.Wa=!0:this.Ae()}KNa(this);xU(this);this.cm()}};
g.k.Rz=function(){return!this.Ya&&this.enabled&&!this.Ja&&!this.Ub.Ug()&&!this.ob&&!this.ya&&(this.C||this.I)};
g.k.YG=function(a){yU.prototype.YG.call(this,a);MU(this)};
g.k.Ag=function(a){(this.C=a)?(wU(this),xU(this,!1)):(AOa(this),this.Ga.start());this.cm()};
g.k.Ae=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.preview,e=this.timing.expanded;c&&b.push(NU(c.startSec+a,c.endSec+a,"shopping_overlay_visible"));d&&(c=d.startSec+a+1,b.push(NU(d.startSec+a,c,"shopping_overlay_preview_collapsed")),b.push(NU(c,d.endSec+a,"shopping_overlay_preview_expanded")));e&&b.push(NU(e.startSec+a,e.endSec+a,"shopping_overlay_expanded"));this.F.Ae(b)};g.x(COa,g.V);
COa.prototype.Qa=function(){var a=this.api.T(),b=a.K("shorts_mode_to_player_api")?this.api.Tb():this.u.Tb();g.iQ(this,g.iK(a)&&b);this.subscribeButton&&this.api.Va(this.subscribeButton.element,this.yb);b=this.api.getVideoData();var c=!1;2===this.api.getPresentingPlayerType()?c=!!b.videoId&&!!b.isListed&&!!b.author&&!!b.Gc&&!!b.profilePicture:g.iK(a)&&(c=!!b.videoId&&!!b.Gc&&!!b.profilePicture&&!(b.pd&&a.Z)&&!a.B&&!(a.V&&200>this.api.getPlayerSize().width));var d=b.profilePicture;a=g.iK(a)?b.Uf:b.author;
d=void 0===d?"":d;a=void 0===a?"":a;c?(this.B!==d&&(this.j.style.backgroundImage="url("+d+")",this.B=d),this.api.K("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelLink",OU(this)),this.updateValue("channelLogoLabel",g.pO("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.Ip(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Kp(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Va(this.j,c&&this.ea);this.api.K("web_player_ve_conversion_fixes_for_channel_info")&&
this.api.Va(this.channelName,c&&this.ea);this.subscribeButton&&(this.subscribeButton.channelId=b.bk);this.updateValue("expandedTitle",b.Uf);this.api.K("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelTitleLink",OU(this))};g.x(PU,g.AS);PU.prototype.show=function(){g.AS.prototype.show.call(this);this.j.start()};
PU.prototype.hide=function(){g.AS.prototype.hide.call(this);this.j.stop()};
PU.prototype.Fs=function(a,b){"dataloaded"===a&&((this.Vf=b.Vf,this.ke=b.ke,isNaN(this.Vf)||isNaN(this.ke))?this.B&&(this.F.hf("intro"),this.F.removeEventListener(g.WD("intro"),this.I),this.F.removeEventListener(g.XD("intro"),this.D),this.F.removeEventListener("onShowControls",this.C),this.hide(),this.B=!1):(this.F.addEventListener(g.WD("intro"),this.I),this.F.addEventListener(g.XD("intro"),this.D),this.F.addEventListener("onShowControls",this.C),a=new g.UD(this.Vf,this.ke,{priority:9,namespace:"intro"}),
this.F.Ae([a]),this.B=!0))};g.x(QU,g.V);QU.prototype.onClick=function(){this.F.Bt()};
QU.prototype.Qa=function(){var a=!0;g.iK(this.F.T())&&(a=a&&480<=this.F.jb().getPlayerSize().width);g.iQ(this,a);this.updateValue("icon",this.F.uh()?{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,X:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:
{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,N:"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.x(g.SU,g.V);g.SU.prototype.qa=function(){this.j=null;g.V.prototype.qa.call(this)};g.x(TU,g.V);TU.prototype.onClick=function(){this.F.Na("innertubeCommand",this.j)};
TU.prototype.J=function(a){a!==this.D&&(this.update({title:a}),this.D=a);a?this.show():this.hide()};
TU.prototype.I=function(){this.B.disabled=null==this.j;g.Mp(this.B,"ytp-chapter-container-disabled",this.B.disabled);this.wc()};g.x(UU,TU);UU.prototype.onClickCommand=function(a){g.S(a,uM)&&this.wc()};
UU.prototype.updateVideoData=function(a,b){var c;if(b.K("embeds_web_enable_video_data_refactoring_offline_and_progress_bar")){var d,e;a=g.S(null==(c=b.fd)?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.decoratedPlayerBarRenderer,KL);c=g.S(null==a?void 0:a.playerBarActionButton,g.pM)}else c=b.s1;var f;this.j=null==(f=c)?void 0:f.command;TU.prototype.I.call(this)};
UU.prototype.wc=function(){var a="",b=this.C.j,c,d="clips"===(null==(c=this.F.getLoopRange())?void 0:c.type);if(1<b.length&&!d){a=1E3*this.F.getProgressState().current;c=BU(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.u)this.F.Na("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.u=!1}else this.u=!0;TU.prototype.J.call(this,a)};g.x(g.VU,g.V);g.VU.prototype.zd=function(a){g.UN(a.state,32)?EOa(this,this.api.Ej()):this.yb&&(g.UN(a.state,16)||g.UN(a.state,1))||this.j.hide()};
g.VU.prototype.Ie=function(){var a=this.api.Cb();(g.UN(a,32)||g.UN(a,16))&&FOa(this)};
g.VU.prototype.D=function(){this.B=NaN;FOa(this)};
g.VU.prototype.hide=function(){this.u&&EOa(this,null);g.V.prototype.hide.call(this)};g.x(g.WU,g.V);g.k=g.WU.prototype;g.k.onClick=function(){var a=this;if(this.F.T().Ub||this.F.T().V){this.F.qb(this.element);try{this.F.toggleFullscreen().catch(function(b){a.dC(b)})}catch(b){this.dC(b)}}else BS(this.message,this.element,!0)};
g.k.dC=function(a){String(a).includes("fullscreen error")?g.AD(a):g.zD(a);this.JN()};
g.k.JN=function(){this.disable();this.message.md(this.element,!0)};
g.k.Hq=function(){vz()===this.F.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.f2=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=.9*window.screen.width,b=.9*window.screen.height,c=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(c>d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.JN()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=sz(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.AS(this.F,{G:"div",Ia:["ytp-popup","ytp-generic-popup"],X:{role:"alert",tabindex:"0"},W:[b[0],{G:"a",X:{href:"https://web.archive.org/web/20230505074338/https://support.google.com/youtube/answer/6276924",
target:this.F.T().ea},ra:b[2]},b[4]]},100,!0);this.message.hide();g.I(this,this.message);this.message.subscribe("show",function(c){a.u.oy(a.message,c)});
g.yS(this.F,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}};
g.k.Qa=function(){var a=HMa(this.F),b=this.F.T().V&&250>this.F.getPlayerSize().width;g.iQ(this,a&&!b);this.F.Va(this.element,this.yb)};
g.k.Xl=function(a){if(a){var b={G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"g",N:"ytp-fullscreen-button-corner-2",W:[{G:"path",vc:!0,N:"ytp-svg-fill",X:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",N:"ytp-fullscreen-button-corner-3",W:[{G:"path",vc:!0,N:"ytp-svg-fill",X:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{G:"g",N:"ytp-fullscreen-button-corner-0",W:[{G:"path",vc:!0,N:"ytp-svg-fill",X:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{G:"g",
N:"ytp-fullscreen-button-corner-1",W:[{G:"path",vc:!0,N:"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.QT(this.F,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.F.getRootNode().focus();document.u&&document.j().catch(function(c){g.AD(c)})}else b={G:"svg",
X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"g",N:"ytp-fullscreen-button-corner-0",W:[{G:"path",vc:!0,N:"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"}}]},{G:"g",N:"ytp-fullscreen-button-corner-1",W:[{G:"path",vc:!0,N:"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"}}]},{G:"g",N:"ytp-fullscreen-button-corner-2",W:[{G:"path",vc:!0,N:"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"}}]},{G:"g",N:"ytp-fullscreen-button-corner-3",
W:[{G:"path",vc:!0,N:"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.QT(this.F,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});a=this.message?null:a;this.update({title:a,icon:b});RS(this.u.Hc())};
g.k.qa=function(){this.message||((0,this.j)(),this.j=null);g.V.prototype.qa.call(this)};g.x(XU,g.V);XU.prototype.onClick=function(){this.F.qb(this.element);this.F.seekBy(this.j,!0);null!=this.C.Lu&&vU(this.C.Lu,0<this.j?1:-1,this.j);if(this.u.isActive())this.B=!0;else{var a=["ytp-jump-spin"];0>this.j&&a.push("backwards");this.element.classList.add.apply(this.element.classList,g.la(a));g.Bp(this.u)}};g.x(YU,TU);YU.prototype.onClickCommand=function(a){g.S(a,Jbb)&&this.wc()};
YU.prototype.updateVideoData=function(){var a,b;this.j=null==(a=HOa(this))?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;TU.prototype.I.call(this)};
YU.prototype.wc=function(){var a="",b=this.C.I,c,d=null==(c=HOa(this))?void 0:c.headerTitle;c=d?g.dE(d):"";var e;d="clips"===(null==(e=this.F.getLoopRange())?void 0:e.type);1<b.length&&!d&&(a=1E3*this.F.getProgressState().current,e=YNa(b,a),a=null!=e?b[e].title:c,null!=e&&e!==this.currentIndex&&(this.F.Na("innertubeCommand",b[e].onActiveCommand),this.currentIndex=e));TU.prototype.J.call(this,a)};g.x(ZU,g.V);ZU.prototype.onClick=function(){this.F.Na("onCollapseMiniplayer");this.F.qb(this.element)};
ZU.prototype.Qa=function(){this.visible=!this.F.isFullscreen();g.iQ(this,this.visible);this.F.Va(this.element,this.visible&&this.ea)};
ZU.prototype.Zb=function(a){g.V.prototype.Zb.call(this,a);this.F.Va(this.element,this.visible&&a)};g.x($U,g.V);$U.prototype.onVideoDataChange=function(a){this.Qa("newdata"===a)};
$U.prototype.Qa=function(a){var b=this.F.getVideoData(),c=b.Sf,d=this.F.Cb();d=(g.VO(d)||g.UO(d))&&0<c.length;g.iQ(this,d);a&&(this.j=!0);if(d){this.j&&g.Bp(this.u);a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id===b.videoId){a=c[e].title;d=g.pO("Viewing $CAMERA_INDEX of $CAMERA_COUNT",{CAMERA_INDEX:String(e+1),CAMERA_COUNT:String(c.length)})+"\n";break}this.update({text:d+a,preview:b.vg("default.jpg")});RS(this.tooltip)}else this.u.stop()};
$U.prototype.B=function(){tU(this.tooltip,this.element,"More cameras available");this.j=!1};g.x(IOa,g.AS);g.k=IOa.prototype;g.k.show=function(){var a=this.yb;g.AS.prototype.show.call(this);a||(this.B.S(this.api,"presentingplayerstatechange",this.Qa),this.B.S(this.api,"videodatachange",this.Qa),this.Qa())};
g.k.hide=function(){this.B&&(g.Hz(this.B),g.AS.prototype.hide.call(this))};
g.k.Qa=function(){var a=this,b=this.api.getVideoData(),c=b.Sf,d,e={};for(d=0;d<c.length;e={BI:e.BI},d++){var f=this.j[d];f||(f=new g.V({G:"button",Ia:["ytp-multicam-menu-item","ytp-button"],X:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},W:[{G:"div",N:"ytp-multicam-menu-item-title",ra:"{{cameraName}}"}]}),e.BI=d,f.Ra("click",function(n){return function(){var p=n.BI,q=a.api.getVideoData(),t=a.api,w=q.Sf[p];p=g.hS(t.app,1).getVideoData();q=t.getCurrentTime();w.id===p.videoId?(w=g.hS(t.app,
1),g.hS(t.app)!==w&&(t.app.Nq(),p.isLivePlayback||t.seekTo(q))):t.app.loadVideoByPlayerVars({videoId:w.id,title:p.title,start:p.isLivePlayback?null:q,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:p.bV}}}},4)}}(e)),f.Ea(this.items),this.j[d]=f);
var h=c[d],l=h.id;if(l!==f.element.getAttribute("data-id")){var m=h.thumbnail_url;!m&&l&&(m=DK(this.api.T(),l,"default.jpg"));f.element.style.backgroundImage=m?"url("+m+")":""}f.update({cameraName:h.title,videoId:l,selected:l===b.videoId?!0:null})}for(;d<this.j.length;)this.j.pop().dispose();d=this.api.Cb();b=c.length||!b.isLoaded();g.VO(d)||g.UO(d)||b||!this.cj()||BS(this)};
g.k.focus=function(){for(var a=this.api.getVideoData(),b=a.Sf,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.j[c].focus();break}};
g.k.qa=function(){g.ib(this.j);g.AS.prototype.qa.call(this)};g.x(aV,g.E);aV.prototype.j=function(){var a=(0,g.GA)()-this.startTime;a=a<this.duration?a/this.duration:1;this.u($p(Ddb,a));1>a&&this.delay.start()};
var Ddb=new Zp(0,0,.4,0,.2,1,1,1),OOa=/[0-9.-]+|[^0-9.-]+/g;g.x(g.bV,g.V);g.k=g.bV.prototype;g.k.JR=function(a){this.visible=300<=a.width||this.Ga;g.iQ(this,this.visible);this.F.Va(this.element,this.visible&&this.ea)};
g.k.u6=function(){this.F.T().Ya?this.F.isMuted()?this.F.unMute():this.F.mute():BS(this.message,this.element,!0);this.F.qb(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.F.T();a=0===d?1:50<a?1:0;if(this.D!==a){var f=this.oa;isNaN(f)?ROa(this,a):LOa(this.Aa,function(l){ROa(c,f+(c.D-f)*l)},250);
this.D=a}d=0===d?1:0;if(this.C!==d){var h=this.V;isNaN(h)?SOa(this,d):LOa(this.Z,function(l){SOa(c,h+(c.C-h)*l)},250);
this.C=d}e.Ya&&(e=g.QT(this.F,"Mute","m"),d=g.QT(this.F,"Unmute","m"),this.updateValue("title",b?d:e),this.update({"data-title-no-tooltip":b?"Unmute":"Mute"}),RS(this.tooltip))};
g.k.Zb=function(a){g.V.prototype.Zb.call(this,a);this.F.Va(this.element,this.visible&&a)};
var POa=["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"],QOa=["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.x(TOa,g.V);TOa.prototype.onClick=function(){this.F.togglePictureInPicture()};g.x(g.cV,g.V);g.cV.prototype.onStateChange=function(a){this.pc(a.state)};
g.cV.prototype.pc=function(a){var b=g.JM(this.F.getVideoData()),c=!1;g.VO(a)?a=b?4:2:g.UN(a,2)?(a=3,c=b):a=1;this.element.disabled=c;if(this.j!==a){b=null;switch(a){case 2:b=g.QT(this.F,"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.QT(this.F,"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"})}3===
a?this.update({title:b,icon:UOa(a)}):(this.update({title:b}),(b=UOa(a))&&this.j&&3!==this.j?NOa(this.transition,this.element,b):this.updateValue("icon",b));RS(this.tooltip);this.j=a}};
g.cV.prototype.onVideoDataChange=function(){g.Mp(this.element,"ytp-play-button-playlist",g.vS(this.F))};
g.cV.prototype.Yz=function(a){this.F.qb(this.element);if(g.VO(this.F.Cb()))this.F.pauseVideo();else{if(this.F.yg()&&this.F.Cb().isCued()){var b={},c;if(null==(c=this.F.getVideoData())?0:c.J)b.cttAuthInfo={token:this.F.getVideoData().J,videoId:this.F.getVideoData().videoId};$E("direct_playback",b);this.F.Nh().timerName="direct_playback"}else 3===this.j&&pT(this.F.Nh());this.F.playVideo()}this.F.yg()&&"click"===(null==a?void 0:a.type)&&this.element.blur()};g.x(g.dV,g.V);g.k=g.dV.prototype;g.k.onVideoDataChange=function(){WOa(this);this.C&&(this.Fc(this.C),this.C=null);this.videoData=this.F.getVideoData(1);if(this.playlist=this.F.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.C=this.S(this.F,"progresssync",this.w0);this.B=XOa(this);VOa(this);this.DJ(this.F.jb().getPlayerSize())};
g.k.DJ=function(a){a=void 0===a?this.F.jb().getPlayerSize():a;var b,c="clips"===(null==(b=this.F.getLoopRange())?void 0:b.type);a=(g.vS(this.F)||this.j&&g.zS(this.F)&&!this.F.K("web_hide_next_button")||YOa(this))&&!c&&(this.j||400<=a.width);g.iQ(this,a);this.F.Va(this.element,a)};
g.k.onClick=function(a){this.F.qb(this.element);var b=!0;this.I?b=g.OT(a,this.F):g.IO(a);b&&(this.j&&5===this.F.getPresentingPlayerType()?this.F.ma("ytoprerollinternstitialnext"):this.j?(pT(this.F.Nh()),this.F.ma("playlistnextbuttonclicked",this.element),this.F.nextVideo(!0)):this.B?this.F.seekTo(0):(pT(this.F.Nh()),this.F.ma("playlistprevbuttonclicked",this.element),this.F.previousVideo(!0)))};
g.k.w0=function(){var a=XOa(this);a!==this.B&&(this.B=a,VOa(this))};
g.k.qa=function(){this.u&&(this.u(),this.u=null);WOa(this);g.V.prototype.qa.call(this)};g.x(ZOa,g.V);g.k=ZOa.prototype;g.k.y0=function(a){this.FJ(a.pageX);this.EJ(a.pageX+a.deltaX);$Oa(this)};
g.k.FJ=function(a){this.oa=a-this.Ja};
g.k.EJ=function(a){a-=this.Ja;if(!isNaN(this.oa)&&0<this.thumbnails.length&&(this.V=a-this.oa,0<this.thumbnails.length&&0!==this.V))if(this.u=this.D+this.V,a=ePa(this,this.u),this.u<=this.j/2&&this.u>=dPa(this)){this.api.seekTo(a,!1);this.api.K("web_fix_fine_scrubbing_drag")?g.Jm(this.ya,"transform","translateX("+(this.u-this.j/2)+"px)"):g.Jm(this.B,"transform","translateX("+this.u+"px)");var b=g.jR(a),c=g.pO("Seek to $PROGRESS",{PROGRESS:g.jR(a,!0)});this.update({ariamin:0,ariamax:Math.floor(this.api.getDuration()),
arianow:Math.floor(a),arianowtext:c,seekTime:b})}else this.u=this.D};
g.k.x0=function(){var a=300>(0,g.GA)()-this.La;if(5>Math.abs(this.V)&&!a){this.La=(0,g.GA)();a=this.oa+this.V;var b=this.j/2-a;this.FJ(a);this.EJ(a+b);$Oa(this);this.api.qb(this.B)}$Oa(this)};
g.k.oz=function(){eV(this,this.api.getCurrentTime())};
g.k.play=function(a){this.api.seekTo(ePa(this,this.u));this.api.playVideo();a&&this.api.qb(this.playButton)};
g.k.Db=function(a,b){this.Ja=a;this.j=b;eV(this,this.api.getCurrentTime())};
g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Pa=this.api.getCurrentTime(),g.Mp(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Ga=this.S(this.element,"wheel",this.y0),this.Va(this.isEnabled))};
g.k.disable=function(){this.isEnabled=!1;this.hide();g.Mp(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Ga&&this.Fc(this.Ga);this.Va(this.isEnabled)};
g.k.reset=function(){this.disable();this.I=[];this.Aa=!1};
g.k.Va=function(a){this.api.Va(this.element,a);this.api.Va(this.B,a);this.api.Va(this.dismissButton,a);this.api.Va(this.playButton,a)};
g.k.qa=function(){for(;this.C.length;){var a=void 0;null==(a=this.C.pop())||a.dispose()}g.V.prototype.qa.call(this)};
g.x(aPa,g.V);g.x(bPa,g.V);g.x(hPa,g.V);g.x(fV,g.V);fV.prototype.ub=function(a){return"PLAY_PROGRESS"===a?this.I:"LOAD_PROGRESS"===a?this.D:"LIVE_BUFFER"===a?this.C:this.u};jPa.prototype.update=function(a,b,c,d){c=void 0===c?0:c;this.width=b;this.B=c;this.j=b-c-(void 0===d?0:d);this.position=g.pe(a,c,c+this.j);this.u=this.position-c;this.fraction=this.u/this.j};g.x(kPa,g.V);g.x(g.iV,g.jQ);g.k=g.iV.prototype;
g.k.EY=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.hf("timedMarkerCueRange");nPa(this);for(var c=g.v(b.Vd),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=this.Bc[d])?void 0:e.markers;if(f){a=g.v(f);for(e=a.next();!e.done;e=a.next()){f=e.value;e=new kPa;var h=void 0;e.title=(null==(h=f.title)?void 0:h.simpleText)||"";e.timeRangeStartMillis=Number(f.startMillis);e.j=Number(f.durationMillis);var l=h=void 0;e.onActiveCommand=null!=(l=null==(h=f.onActive)?void 0:
h.innertubeCommand)?l:void 0;sPa(this,e)}tPa(this,this.I);a=this.I;e=this.Wd;f=[];h=null;for(l=0;l<a.length;l++){var m=a[l].timeRangeStartMillis;if(!isNaN(m)&&a[l].onActiveCommand){var n=void 0,p=null!=(n=a[l].j)?n:1E4;h&&h.end>m&&(h.end=m);m=aOa(m,m+p);f.push(m);h=m;e[m.id]=a[l].onActiveCommand}}this.api.Ae(f);this.uf=this.Bc[d];a=!0}}b.yQ=this.I;g.Mp(this.element,"ytp-timed-markers-enabled",a);return a};
g.k.Db=function(){g.jV(this);lV(this);tPa(this,this.I);if(this.u){var a=g.Rm(this.element).x||0;this.u.Db(a,this.J)}};
g.k.onClickCommand=function(a){if(a=g.S(a,uM)){var b=a.key;a.isVisible&&b&&xPa(this,b)}};
g.k.J7=function(a){this.api.Na("innertubeCommand",this.Wd[a.id])};
g.k.wc=function(){lV(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.JH()};
g.k.A0=function(a){if(!g.HO(a)){var b=!1;switch(g.DO(a)){case 36:this.api.seekTo(0);b=!0;break;case 35:this.api.seekTo(Infinity);b=!0;break;case 34:this.api.seekBy(-60);b=!0;break;case 33:this.api.seekBy(60);b=!0;break;case 38:this.api.seekBy(5);b=!0;break;case 40:this.api.seekBy(-5),b=!0}b&&g.IO(a)}};
g.k.Fs=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.K3=function(){this.Fs("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.De();c&&(dN(a)||EPa(this)?this.ke=!1:this.ke=a.allowLiveDvr,g.Mp(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!dN(a))));NPa(this,this.api.wh());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;pV(this);for(mV(this,this.Z,this.ib);0<this.D.length;)this.D.pop().dispose();this.heatMarkersDecorations=[];this.tb={};var d;null==(d=this.u)||d.reset();vV(this);g.Mp(this.api.getRootNode(),"ytp-fine-scrubbing-exp",
hV(this))}else this.JH();g.TV(this.tooltip)}if(a){b=a.fd;var e;d="clips"===(null==(e=this.Bb)?void 0:e.type);if(e=!a.isLivePlayback&&b)e=this.api.getVideoData(),b=lPa(e)?g.LL(e):e.multiMarkersPlayerBarRenderer,c=oPa(e),e=null!=b||null!=c&&0<c.length||0<e.lx.length;if(e&&!d){e=this.api.getVideoData();b=lPa(e)?g.LL(e):e.multiMarkersPlayerBarRenderer;d=!1;if(null==b?0:b.markersMap){d=this.api.getVideoData();var f;d.Lw=(null==(f=b.visibleOnLoad)?void 0:f.key)||d.Lw;f=g.v(b.markersMap);for(b=f.next();!b.done;b=
f.next())b=b.value,b.key&&b.value&&(this.tb[b.key]=b.value,b.value.onChapterRepeat&&(d.C1=b.value.onChapterRepeat));null!=d.Lw&&xPa(this,d.Lw);d=!0}if(this.api.T().K("web_key_moments_markers")&&0<e.lx.length){f=g.vM.getState().entities;b=g.v(e.lx);for(c=b.next();!c.done;c=b.next()){c=c.value;var h=void 0,l=null==(h=FL(f,"macroMarkersListEntity",c))?void 0:h.markersList;h=void 0;"MARKER_TYPE_TIMESTAMPS"===(null==(h=l)?void 0:h.markerType)&&(this.Bc[c]=l)}d=this.EY()||d}!d&&(f=oPa(e))&&(qPa(this,f),
e.Hj=this.j,pPa(this));FPa(this,null);a.CU&&0===this.D.length&&(a=a.CU,e=a.key,a.isVisible&&e&&xPa(this,e))}else mPa(this),nPa(this)}lV(this)};
g.k.z0=function(a){this.V&&!g.UN(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.V.cancel();var b;(null==(b=this.u)?0:b.isEnabled)&&g.UN(a.state,8)&&this.api.pauseVideo()};
g.k.KR=function(a){var b=!!this.Bb!==!!a,c=this.Bb;this.Bb=a;FPa(this,c);"clips"!==(null==a?void 0:a.type)&&a||(a?(this.updateValue("clipstarticon",OEa()),this.updateValue("clipendicon",OEa()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",JEa()),this.updateValue("clipendicon",IEa()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),b&&(this.updateVideoData(this.api.getVideoData(),
!0),g.jV(this)),pV(this));mV(this,this.Z,this.ib)};
g.k.M6=function(a,b,c){var d=g.Rm(this.element),e=kV(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=nR(this.B,Number(c.getAttribute("data-position")),0)*e+g.Rm(this.Jc).x);this.Za.x=a-d.x;this.Za.y=b-d.y;a=kV(this);c=oV(this,a);b=0;var m;if(null==(m=this.api.getVideoData())?0:dN(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,a.position=nR(this.B,m)*kV(this).j),b=this.B.u;EPa(this)&&
(b=this.B.u);m=f||g.jR(this.ke?c-this.B.j:c-b);b=a.position+this.Sf;c-=this.api.Ed();var n;if(null==(n=this.u)||!n.isEnabled)if(this.api.Ej()){if(1<this.j.length){n=nV(this,this.Za.x,!0);if(!this.Bb)for(d=0;d<this.j.length;)g.Mp(this.j[d].j,"ytp-exp-chapter-hover-effect",d===n),d++;if(1<this.D.length)for(d=0;d<this.j.length;d++)g.Mp(this.D[d].element,"ytp-heatmap-hover",d===n)}if(0<this.I.length)for(n=this.Za.x,d=g.v(this.I),e=d.next();!e.done;e=d.next())e=e.value,h=yPa(this,e.timeRangeStartMillis/
(1E3*this.B.j),kV(this)),g.Mp(e.element,"ytp-timed-marker-hover",h<=n&&h+6>=n);d=this.tooltip.scale;l=(isNaN(l)?0:l)-45*d;this.api.K("web_key_moments_markers")?this.uf?(n=YNa(this.I,1E3*c),n=null!=n?this.I[n].title:""):(n=BU(this.j,1E3*c),n=this.j[n].title):(n=BU(this.j,1E3*c),n=this.j[n].title);n||(l+=16*d);.6===this.tooltip.scale&&(l=n?110:126);d=BU(this.j,1E3*c);this.Wa=GPa(this,c,d)?d:GPa(this,c,d+1)?d+1:-1;g.Mp(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.Wa&&1<this.j.length);d=!1;
e=g.v(this.heatMarkersDecorations);for(h=e.next();!h.done;h=e.next()){h=h.value;var p=1E3*c;p>=h.visibleTimeRangeStartMillis&&p<=h.visibleTimeRangeEndMillis&&(n=h.label,m=g.jR(h.decorationTimeMillis/1E3),d=!0)}this.td!==d&&(this.td=d,this.api.Va(this.rd,this.td));g.Mp(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=320*this.tooltip.scale;e=n.length*(this.C?8.55:5.7);e=e<=d?e:d;h=e<160*this.tooltip.scale;d=3;!h&&e/2>a.position&&(d=1);!h&&e/2>this.J-a.position&&(d=2);this.api.T().V&&(l-=10);
this.D.length&&this.D[0].De&&(l-=14*(this.C?2:1),this.Ga||(this.Ga=!0,this.api.Va(this.oa,this.Ga)));var q;if(hV(this)&&((null==(q=this.u)?0:q.isEnabled)||0<this.Pa)){var t;l-=(null==(t=this.u)?0:t.isEnabled)?rV(this):this.Pa}q=void 0;hV(this)&&(q="Pull up for precise seeking",this.Aa||(this.Aa=!0,this.api.Va(this.Uc,this.Aa)));AQa(this.tooltip,b,c,m,!!f,l,n,d,q)}else AQa(this.tooltip,b,c,m,!!f,l);g.Ip(this.api.getRootNode(),"ytp-progress-bar-hover");DPa(this)};
g.k.L6=function(){g.TV(this.tooltip);g.Kp(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ga&&(this.Ga=!1,this.api.Va(this.oa,this.Ga));this.Aa&&(this.Aa=!1,this.api.Va(this.Uc,this.Aa))};
g.k.K6=function(a,b){this.api.K("web_big_boards")&&g.TV(this.tooltip);hV(this)&&this.u&&(this.u.Aa?eV(this.u,this.api.getCurrentTime()):cPa(this.u),this.u.show(),g.Mp(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.u.isEnabled));this.Ud&&(this.Ud.dispose(),this.Ud=null);this.Tf=b;1<this.j.length&&-1!==this.Wa?this.api.seekTo(this.j[this.Wa].startTime/1E3,!1):this.api.seekTo(oV(this,kV(this)),!1);g.Ip(this.element,"ytp-drag");(this.le=g.VO(this.api.Cb()))&&this.api.pauseVideo()};
g.k.N6=function(){if(hV(this)&&this.u){var a=rV(this);this.Pa>=.5*a?(this.u.enable(),eV(this.u,this.api.getCurrentTime()),MPa(this,a)):vV(this)}if(g.UN(this.api.Cb(),32)||3===this.api.getPresentingPlayerType()){var b;if(null==(b=this.u)?0:b.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(1<this.j.length&&-1!==this.Wa)this.api.seekTo(this.j[this.Wa].startTime/1E3);else{a=oV(this,kV(this));this.api.seekTo(a);b=g.v(this.heatMarkersDecorations);for(var c=b.next();!c.done;c=b.next())c=
c.value,1E3*a>=c.visibleTimeRangeStartMillis&&1E3*a<=c.visibleTimeRangeEndMillis&&this.api.qb(this.rd)}g.Kp(this.element,"ytp-drag");this.le&&!g.UN(this.api.Cb(),2)&&this.api.playVideo()}}};
g.k.O6=function(a,b){a=kV(this);a=oV(this,a);this.api.seekTo(a,!1);var c;hV(this)&&(null==(c=this.u)?0:c.Aa)&&(eV(this.u,a),this.u.isEnabled||(this.Pa=g.pe(this.Tf-b-10,0,rV(this)),MPa(this,this.Pa)))};
g.k.YV=function(){this.Bb||(this.updateValue("clipstarticon",HEa()),this.updateValue("clipendicon",HEa()),g.Ip(this.element,"ytp-clip-hover"))};
g.k.XV=function(){this.Bb||(this.updateValue("clipstarticon",JEa()),this.updateValue("clipendicon",IEa()),g.Kp(this.element,"ytp-clip-hover"))};
g.k.JH=function(){this.clipStart=0;this.clipEnd=Infinity;pV(this);mV(this,this.Z,this.ib)};
g.k.GY=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.Ja[c]){var d=g.Ze("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Ja[c]=b;this.jc[c]=d;g.Gp(d,b.style);HPa(this,c);this.api.T().K("disable_ad_markers_on_content_progress_bar")||this.j[0].B.appendChild(d)}}else LPa(this,b)};
g.k.F8=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())LPa(this,b.value)};
g.k.Tr=function(a){if(this.u){var b=this.u;a=null!=a;b.api.seekTo(b.Pa);b.api.playVideo();a&&b.api.qb(b.dismissButton);vV(this)}};
g.k.wL=function(a){this.u&&(this.u.play(null!=a),vV(this))};
g.k.qa=function(){NPa(this,!1);g.jQ.prototype.qa.call(this)};g.x(wV,g.V);wV.prototype.isActive=function(){return!!this.F.getOption("remote","casting")};
wV.prototype.Qa=function(){var a=!1;this.F.getOptions().includes("remote")&&(a=1<this.F.getOption("remote","receivers").length);g.iQ(this,a&&400<=this.F.jb().getPlayerSize().width);this.F.Va(this.element,this.yb);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.updateValue("icon",{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!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.GEa())}g.Mp(this.element,"ytp-remote-button-active",this.isActive())}};
wV.prototype.u=function(){if(this.F.getOption("remote","quickCast"))this.F.setOption("remote","quickCast",!0);else{var a=this.Eb,b=this.element;if(a.cj())a.Fb();else{a.initialize();a:{var c=g.v(a.Jf.items);for(var d=c.next();!d.done;d=c.next())if(d=d.value,1===d.priority){c=d;break a}c=null}c&&(c.open(),a.md(b));a.md(b)}}this.F.qb(this.element)};g.x(xV,g.V);xV.prototype.j=function(a){var b=this.F.T(),c=400;this.F.K("web_player_small_hbp_settings_menu")&&b.J?c=300:b.V&&(c=200);a=this.u&&a.width>=c;g.iQ(this,a);this.F.Va(this.element,a)};
xV.prototype.B=function(){if(this.Eb.yb)this.Eb.Fb();else{var a=g.DT(this.F.wb());a&&!a.loaded&&(a.ph("tracklist",{includeAsr:!0}).length||a.load());this.F.qb(this.element);this.Eb.md(this.element)}};
xV.prototype.updateBadge=function(){var a=this.F.isHdr(),b=this.F.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.xS(this.F),e=c&&!!g.wS(this.F.wb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.F.getPlaybackQuality();g.Mp(this.element,"ytp-hdr-quality-badge",a);g.Mp(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.Mp(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.Mp(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.Mp(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.Mp(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.Mp(this.element,"ytp-3d-badge",!a&&e&&d)};g.x(yV,SS);yV.prototype.isLoaded=function(){var a=g.JT(this.F.wb());return void 0!==a&&a.loaded};
yV.prototype.Qa=function(){void 0!==g.JT(this.F.wb())&&3!==this.F.getPresentingPlayerType()?this.j||(this.Eb.Xc(this),this.j=!0):this.j&&(this.Eb.hh(this),this.j=!1);TS(this,this.isLoaded())};
yV.prototype.onSelect=function(a){this.isLoaded();a?this.F.loadModule("annotations_module"):this.F.unloadModule("annotations_module");this.F.ma("annotationvisibility",a)};
yV.prototype.qa=function(){this.j&&this.Eb.hh(this);SS.prototype.qa.call(this)};g.x(g.zV,g.FS);g.k=g.zV.prototype;g.k.open=function(){g.nU(this.Eb,this.u)};
g.k.vj=function(a){QPa(this);this.options[a].element.setAttribute("aria-checked","true");this.je(this.gk(a));this.B=a};
g.k.zK=function(a,b,c){var d=this;b=new g.FS({G:"div",Ia:["ytp-menuitem"],X:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},W:[{G:"div",Ia:["ytp-menuitem-label"],ra:"{{label}}"}]},b,this.gk(a,!0));b.Ra("click",function(){d.ah(a)});
return b};
g.k.enable=function(a){this.I?a||(this.I=!1,this.hx(!1)):a&&(this.I=!0,this.hx(!0))};
g.k.hx=function(a){a?this.Eb.Xc(this):this.Eb.hh(this)};
g.k.ah=function(a){this.ma("select",a)};
g.k.gk=function(a){return a.toString()};
g.k.B0=function(a){g.HO(a)||39!==g.DO(a)||(this.open(),g.IO(a))};
g.k.qa=function(){this.I&&this.Eb.hh(this);g.FS.prototype.qa.call(this);for(var a=g.v(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.x(BV,g.zV);BV.prototype.Qa=function(){var a=this.F.getAvailableAudioTracks();1<a.length?(g.AV(this,g.$l(a,this.C)),this.tracks=g.Vb(a,this.C,this),this.j.je(a.length?" ("+a.length+")":""),this.ma("size-change"),this.vj(this.C(this.F.getAudioTrack())),this.enable(!0)):this.enable(!1)};
BV.prototype.ah=function(a){g.zV.prototype.ah.call(this,a);this.F.setAudioTrack(this.tracks[a]);this.Eb.jj()};
BV.prototype.C=function(a){return a.toString()};g.x(CV,SS);
CV.prototype.u=function(){var a=this.F.getPresentingPlayerType();if(2!==a&&3!==a&&g.zS(this.F))this.j||(this.Eb.Xc(this),this.j=!0,this.B.push(this.S(this.F,"videodatachange",this.u)),this.B.push(this.S(this.F,"videoplayerreset",this.u)),this.B.push(this.S(this.F,"onPlaylistUpdate",this.u)),this.B.push(this.S(this.F,"autonavchange",this.C)),a=this.F.getVideoData(),this.C(a.autonavState),this.F.Va(this.element,this.j));else if(this.j){this.Eb.hh(this);this.j=!1;a=g.v(this.B);for(var b=a.next();!b.done;b=a.next())this.Fc(b.value)}};
CV.prototype.C=function(a){TS(this,1!==a)};
CV.prototype.onSelect=function(a){this.F.PH(a?2:1);this.j&&(this.F.Va(this.element,this.j),this.F.qb(this.element))};
CV.prototype.qa=function(){this.j&&this.Eb.hh(this);SS.prototype.qa.call(this)};g.x(RPa,g.FS);RPa.prototype.onClick=function(a){a.preventDefault();var b,c;null==(b=g.iS(this.F))||null==(c=b.Nm())||c.Fb();var d,e;null==(d=g.iS(this.F))||null==(e=d.NF())||e.md(a.target)};g.x(SPa,g.zV);g.k=SPa.prototype;
g.k.MA=function(){var a=this.F.getPresentingPlayerType();if(2!==a&&3!==a){this.oa=this.F.Xr();a=this.F.getAvailableQualityLevels();if(this.j){this.C={};var b=g.gS(this.F,"getAvailableQualityData",[]);b=g.v(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.C[c.qualityLabel]=c;b=Object.keys(this.C);"auto"===a[a.length-1]&&b.push("auto");this.ya=new Set(a)}else if(this.D){c=g.gS(this.F,"getAvailableQualityData",[]);b=[];c=g.v(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.V[d.quality]=
d,d.quality&&b.push(d.quality);"auto"===a[a.length-1]&&b.push("auto")}else b=a;g.CKa(this.F)&&this.F.Uu()&&b.unshift("missing-qualities");DKa(this.F)&&b.unshift("inline-survey");g.AV(this,b);a=this.F.getVideoData().cotn?!0:!1;c=!g.GK(this.F.T())||!(void 0===a?0:a);a=this.u;c=void 0===c?!1:c;c=void 0===c?!1:c;a.wU&&(a=a.Da("ytp-panel-footer"),g.Mp(a,"ytp-panel-hide-footer",c));if(b.length){this.LR();this.enable(!0);return}}this.enable(!1)};
g.k.LR=function(){if(this.j){var a=this.F.getPreferredQuality();this.ya.has(a)&&(this.J=this.F.getPlaybackQuality(),this.Z=this.F.getPlaybackQualityLabel(),"auto"===a?(this.vj(a),this.je(this.gk(a))):this.vj(this.Z))}else a=this.F.getPreferredQuality(),this.options[a]&&(this.J=this.F.getPlaybackQuality(),this.vj(a),"auto"===a&&this.je(this.gk(a)))};
g.k.ah=function(a){if("missing-qualities"!==a){g.zV.prototype.ah.call(this,a);var b=this.j?this.C[a]:this.V[a];var c=null==b?void 0:b.quality,d=null==b?void 0:b.formatId,e=null==b?void 0:b.paygatedQualityDetails;b=null==e?void 0:e.endpoint;if(e){var f;e=null==(f=this.options[a])?void 0:f.element;this.F.qb(e)}if(this.j){var h,l;if(this.F.K("web_player_enable_early_warning_snackbar")&&(null==(h=g.S(b,g.yab))?0:null==(l=h.popup)?0:l.notificationActionRenderer))this.F.Na("innertubeCommand",b);else if(b){this.F.Na("innertubeCommand",
b);return}d?this.F.setPlaybackQuality(c,d):this.F.setPlaybackQuality(c)}else{if(this.D){var m,n;if(this.F.K("web_player_enable_early_warning_snackbar")&&(null==(m=g.S(b,g.yab))?0:null==(n=m.popup)?0:n.notificationActionRenderer))this.F.Na("innertubeCommand",b);else if(b){this.F.Na("innertubeCommand",b);return}}this.F.setPlaybackQuality(a)}this.Eb.Fb();this.MA()}};
g.k.open=function(){for(var a=g.v(Object.values(this.options)),b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.F.Ek(null==(c=b)?void 0:c.element)&&(c=void 0,this.F.Va(null==(c=b)?void 0:c.element,!0))}g.zV.prototype.open.call(this);this.F.qb(this.element)};
g.k.zK=function(a,b,c){var d=this;if("missing-qualities"===a)return new g.FS({G:"a",Ia:["ytp-menuitem"],X:{href:"https://web.archive.org/web/20230505074338/https://support.google.com/youtube/?p=missing_quality",target:this.F.T().ea,tabindex:"0",role:"menuitemradio"},W:[{G:"div",Ia:["ytp-menuitem-label"],ra:"{{label}}"}]},b,this.gk(a));if("inline-survey"!==a){var e,f=null==(e=this.j?this.C[a]:this.V[a])?void 0:e.paygatedQualityDetails;e=null==f?void 0:f.veType;f=null==f?void 0:f.trackingParams;b=g.zV.prototype.zK.call(this,a,b,c);f?(this.F.Yf(b.element,
this,!0),this.F.jg(b.element,f)):e&&this.F.sb(b.element,this,e,!0);return b}a=[{G:"span",ra:"Looks good?"}];c={};e=g.v([!0,!1]);for(f=e.next();!f.done;c={vE:c.vE},f=e.next())c.vE=f.value,f=new g.V({G:"span",N:"ytp-menuitem-inline-survey-response",W:[c.vE?g.qQ():LEa()],X:{tabindex:"0",role:"button"}}),f.Ra("click",function(h){return function(){var l=h.vE,m=g.hS(d.F.app);m&&(m.xa("iqsr",{tu:l}),m.getVideoData().nS=!0);d.Eb.Fb();d.MA()}}(c)),a.push(f);
return new g.FS({G:"div",N:"ytp-menuitem",X:{"aria-disabled":"true"},W:[{G:"div",Ia:["ytp-menuitem-label"],W:a}]},b)};
g.k.gk=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{G:"div",ra:"Missing options?"};if("inline-survey"===a)return"";var c=this.D||this.j?[VPa(this,a,b,!1)]:[UPa(this,a)];var d=this.F.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),this.j?c.push(VPa(this,this.Z,b,!0,["ytp-menu-label-secondary"])):this.D?c.push(VPa(this,this.J,b,!0,["ytp-menu-label-secondary"])):c.push(UPa(this,this.J,["ytp-menu-label-secondary"])));return{G:"div",W:c}};g.x(DV,g.V);g.k=DV.prototype;g.k.init=function(){this.dw(this.j);this.updateValue("minvalue",this.u);this.updateValue("maxvalue",this.C)};
g.k.E0=function(a){if(!g.HO(a)){switch(g.DO(a)){case 37:case 40:var b=-this.V;break;case 39:case 38:b=this.V;break;default:return}this.dw(this.j+b);g.IO(a)}};
g.k.C0=function(a){var b=this.j;b+=0>(a.deltaX||-a.deltaY)?-this.J:this.J;this.dw(b);g.IO(a)};
g.k.D0=function(a){a=(a-g.Rm(this.B).x)/this.Z*this.range+this.u;this.dw(a)};
g.k.dw=function(a,b){b=void 0===b?"":b;a=g.pe(a,this.u,this.C);""===b&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.oa.style.left=(a-this.u)/this.range*(this.Z-this.Aa)+"px";this.j=a};
g.k.focus=function(){this.Ga.focus()};g.x(EV,DV);EV.prototype.ya=function(){this.F.setPlaybackRate(this.j,!0)};
EV.prototype.dw=function(a){DV.prototype.dw.call(this,a,XPa(this,a).toString());this.D&&(WPa(this),this.Ja())};
EV.prototype.updateValues=function(){var a=this.F.getPlaybackRate();XPa(this,this.j)!==a&&(this.dw(a),WPa(this))};g.x(YPa,g.jQ);YPa.prototype.focus=function(){this.j.focus()};g.x(ZPa,jU);g.x($Pa,g.zV);g.k=$Pa.prototype;g.k.gk=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.k.Qa=function(){var a=this.F.getPresentingPlayerType();this.enable(2!==a&&3!==a);dQa(this)};
g.k.hx=function(a){g.zV.prototype.hx.call(this,a);a?(this.J=this.S(this.F,"onPlaybackRateChange",this.onPlaybackRateChange),dQa(this),bQa(this,this.F.getPlaybackRate())):(this.Fc(this.J),this.J=null)};
g.k.onPlaybackRateChange=function(a){var b=this.F.getPlaybackRate();this.D.includes(b)||cQa(this,b);bQa(this,a)};
g.k.ah=function(a){g.zV.prototype.ah.call(this,a);a===this.j?this.F.setPlaybackRate(this.C,!0):this.F.setPlaybackRate(Number(a),!0);this.Eb.jj()};g.x(fQa,g.zV);g.k=fQa.prototype;g.k.vj=function(a){g.zV.prototype.vj.call(this,a)};
g.k.getKey=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.gk=function(a){return this.getOption(a).text||""};
g.k.ah=function(a){g.zV.prototype.ah.call(this,a);this.ma("settingChange",this.J,this.settings[a].option)};g.x(FV,g.kU);FV.prototype.Yg=function(a){for(var b=g.v(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.Us[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.vj(e),c.C.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}};
FV.prototype.Oj=function(a,b){this.ma("settingChange",a,b)};g.x(GV,g.zV);GV.prototype.getKey=function(a){return a.languageCode};
GV.prototype.gk=function(a){return this.languages[a].languageName||""};
GV.prototype.ah=function(a){this.ma("select",a);this.F.qb(this.element);g.qU(this.Eb)};g.x(iQa,g.zV);g.k=iQa.prototype;g.k.getKey=function(a){return g.fd(a)?"__off__":a.displayName};
g.k.gk=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":"__correction__"===a?"Suggest caption corrections":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.ah=function(a){if("__translate__"===a)this.j.open();else if("__contribute__"===a){this.F.pauseVideo();this.F.isFullscreen()&&this.F.toggleFullscreen();var b=g.NJa(this.F.T(),this.F.getVideoData());g.LN(b)}else if("__correction__"===a){this.F.pauseVideo();this.F.isFullscreen()&&this.F.toggleFullscreen();var c=jQa(this);HV(this,c);g.zV.prototype.ah.call(this,this.getKey(c));var d,e;c=null==(b=this.F.getVideoData().getPlayerResponse())?void 0:null==(d=b.captions)?void 0:null==(e=d.playerCaptionsTracklistRenderer)?
void 0:e.openTranscriptCommand;this.F.Na("innertubeCommand",c);this.Eb.jj();this.C&&this.F.qb(this.C)}else{if("__correction__"===a){this.F.pauseVideo();this.F.isFullscreen()&&this.F.toggleFullscreen();b=jQa(this);HV(this,b);g.zV.prototype.ah.call(this,this.getKey(b));var f,h;b=null==(c=this.F.getVideoData().getPlayerResponse())?void 0:null==(f=c.captions)?void 0:null==(h=f.playerCaptionsTracklistRenderer)?void 0:h.openTranscriptCommand;this.F.Na("innertubeCommand",b)}else this.F.qb(this.element),
HV(this,"__off__"===a?{}:this.tracks[a]),g.zV.prototype.ah.call(this,a);this.Eb.jj()}};
g.k.Qa=function(){var a=this.F.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.F.getVideoData(),c=b&&b.dF,d,e=!(null==(d=this.F.getVideoData())||!g.bN(d));d={};if(a||c){var f;if(a){var h=this.F.getOption("captions","track");d=this.F.getOption("captions","tracklist",{includeAsr:!0});var l=e?[]:this.F.getOption("captions","translationLanguages");this.tracks=g.Vb(d,this.getKey,this);e=g.$l(d,this.getKey);var m=jQa(this),n,p;b.K("suggest_caption_correction_menu_item")&&m&&(null==(f=b.getPlayerResponse())?
0:null==(n=f.captions)?0:null==(p=n.playerCaptionsTracklistRenderer)?0:p.openTranscriptCommand)&&e.push("__correction__");if(l.length&&!g.fd(h)){if((f=h.translationLanguage)&&f.languageName){var q=f.languageName;f=l.findIndex(function(t){return t.languageName===q});
Daa(l,f)}gQa(this.j,l);e.push("__translate__")}f=this.getKey(h)}else this.tracks={},e=[],f="__off__";e.unshift("__off__");this.tracks.__off__={};c&&e.unshift("__contribute__");this.tracks[f]||(this.tracks[f]=h,e.push(f));g.AV(this,e);this.vj(f);h&&h.translationLanguage?this.j.vj(this.j.getKey(h.translationLanguage)):QPa(this.j);a&&this.D.Yg(this.F.getSubtitlesUserSettings());this.V.je(d&&d.length?" ("+d.length+")":"");this.ma("size-change");this.F.Va(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.F0=function(a){var b=this.F.getOption("captions","track");b=g.jd(b);b.translationLanguage=this.j.languages[a];HV(this,b)};
g.k.Oj=function(a,b){if("reset"===a)this.F.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.F.updateSubtitlesUserSettings(c)}hQa(this,!0);this.J.start();this.D.Yg(this.F.getSubtitlesUserSettings())};
g.k.r7=function(a){a||g.Dp(this.J)};
g.k.qa=function(){g.Dp(this.J);g.zV.prototype.qa.call(this)};
g.k.open=function(){g.zV.prototype.open.call(this);this.options.__correction__&&!this.C&&(this.C=this.options.__correction__.element,this.F.sb(this.C,this,167341),this.F.Va(this.C,!0))};g.x(kQa,g.pU);g.k=kQa.prototype;
g.k.initialize=function(){if(!this.isInitialized){var a=this.F.T();this.isInitialized=!0;var b=new SPa(this.F,this);g.I(this,b);b=new iQa(this.F,this);g.I(this,b);a.B||(b=new yV(this.F,this),g.I(this,b));a.tf&&(b=new $Pa(this.F,this),g.I(this,b));this.F.K("embeds_web_enable_new_context_menu_triggering")&&(g.iK(a)||a.J)&&(a.u||a.Nb)&&(b=new RPa(this.F,this),g.I(this,b));a.Wd&&!a.K("web_player_move_autonav_toggle")&&(a=new CV(this.F,this),g.I(this,a));a=new BV(this.F,this);g.I(this,a);this.F.ma("settingsMenuInitialized");
PPa(this.settingsButton,this.Jf.Ho())}};
g.k.Xc=function(a){this.initialize();this.Jf.Xc(a);PPa(this.settingsButton,this.Jf.Ho())};
g.k.hh=function(a){this.yb&&1>=this.Jf.Ho()&&this.hide();this.Jf.hh(a);PPa(this.settingsButton,this.Jf.Ho())};
g.k.md=function(a){this.initialize();0<this.Jf.Ho()&&g.pU.prototype.md.call(this,a)};
g.k.Fb=function(){this.kO?this.kO=!1:g.pU.prototype.Fb.call(this)};
g.k.show=function(){g.pU.prototype.show.call(this);g.Ip(this.F.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.pU.prototype.hide.call(this);g.Kp(this.F.getRootNode(),"ytp-settings-shown")};
g.k.Ag=function(a){this.F.Va(this.element,a);this.F.ma("settingsMenuVisibilityChanged",a)};g.x(IV,g.V);IV.prototype.onClick=function(){var a=this.F.app;a.Ua.Na("SIZE_CLICKED",!a.MM);this.F.qb(this.element)};
IV.prototype.Qa=function(){g.iQ(this,this.F.KM()&&!this.F.isFullscreen()&&3!==this.F.getPresentingPlayerType());if(this.yb){var a=this.F.ov();if(this.ov!==a){var b=a?{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,X:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",vc:!0,X:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",
fill:"#fff","fill-rule":"evenodd"}}]};null==this.ov?this.updateValue("icon",b):NOa(this.transition,this.element,b);this.ov=a;b=g.QT(this.F,"Default view","t");var c=g.QT(this.F,"Theater mode","t");this.updateValue("title",a?b:c);this.update({"data-title-no-tooltip":a?"Default view":"Theater mode"});RS(this.tooltip)}}this.F.Va(this.element,this.yb)};g.x(g.JV,g.V);g.JV.prototype.onClick=function(){if(null!=g.DT(this.F.wb())&&(this.F.toggleSubtitles(),this.F.qb(this.element),!this.isEnabled())){var a=!1,b=g.Tz(g.Sz(),65);g.GK(this.F.T())&&null!=b&&(a=!b);a&&this.F.T().K("web_player_nitrate_promo_tooltip")&&this.F.ma("showpromotooltip",this.element)}};
g.JV.prototype.j=function(a){var b,c;null==(b=g.iS(this.F))||null==(c=b.Nm())||c.md(a)};
g.JV.prototype.isEnabled=function(){return!!this.F.getOption("captions","track").displayName};
g.JV.prototype.Qa=function(){var a=null!=g.DT(this.F.wb()),b=300;this.F.T().V&&(b=480);if(this.F.T().J){this.updateValue("title",g.QT(this.F,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var c=a}else{if(a)null==(c=this.Da("ytp-subtitles-button-icon"))||c.setAttribute("fill-opacity","1"),this.updateValue("title",g.QT(this.F,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var d;null==(d=
this.Da("ytp-subtitles-button-icon"))||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}RS(this.tooltip);c=c&&this.F.jb().getPlayerSize().width>=b;g.iQ(this,c);this.F.Va(this.element,c);a&&this.updateValue("pressed",this.isEnabled())};g.x(g.LV,g.V);g.k=g.LV.prototype;
g.k.wc=function(){var a=this.api.jb().getPlayerSize().width,b=this.J;this.api.T().V&&(b=400);b=a>=b&&(!NV(this)||!g.UN(this.api.Cb(),64));g.iQ(this,b);g.Mp(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.getCurrentTime(b,!1);this.u&&(c-=a.airingStart);MV(this)&&(c-=this.Bb.startTimeMs/1E3);c=g.jR(c);this.B!==c&&(this.updateValue("currenttime",c),this.B=c);b=MV(this)?g.jR((this.Bb.endTimeMs-this.Bb.startTimeMs)/
1E3):g.jR(this.api.getDuration(b,!1));this.C!==b&&(this.updateValue("duration",b),this.C=b)}a=a.isAtLiveHead;!NV(this)||this.I===a&&this.D===this.isPremiere||(this.I=a,this.D=this.isPremiere,this.wc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.je(this.isPremiere?"Premiere":"Live"),a?this.j&&(this.j(),this.j=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.j=g.QS(this.tooltip,this.liveBadge.element)));a=this.api.getLoopRange();b=this.Bb!==a;this.Bb=a;b&&KV(this)};
g.k.onLoopRangeChange=function(a){var b=this.Bb!==a;this.Bb=a;b&&(this.wc(),KV(this))};
g.k.X7=function(){this.api.setLoopRange(null)};
g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.T().K("enable_topsoil_wta_for_halftime")||this.api.T().K("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.wc();KV(this)};
g.k.updateVideoData=function(a){this.rC=a.isLivePlayback&&!a.tb;this.u=dN(a);this.isPremiere=a.isPremiere;g.Mp(this.element,"ytp-live",NV(this))};
g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.k.qa=function(){this.j&&this.j();g.V.prototype.qa.call(this)};g.x(nQa,g.V);g.k=nQa.prototype;g.k.Hq=function(){var a=this.j.xg();this.C!==a&&(this.C=a,mQa(this,this.api.getVolume(),this.api.isMuted()))};
g.k.MR=function(a){g.iQ(this,350<=a.width)};
g.k.I0=function(a){if(!g.HO(a)){var b=g.DO(a),c=null;37===b?c=this.volume-5:39===b?c=this.volume+5:36===b?c=0:35===b&&(c=100);null!==c&&(c=g.pe(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.IO(a))}};
g.k.G0=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(0>b?-10:10)):this.api.setVolume(this.volume+g.pe(b/10,-10,10));g.IO(a)};
g.k.x7=function(){OV(this,this.u,!0,this.B,this.j.Ol());this.Z=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.H0=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Rm(this.V).x;this.api.setVolume(100*g.pe((a-c/2)/(b-c),0,1))};
g.k.v7=function(){OV(this,this.u,!1,this.B,this.j.Ol());0===this.volume&&(this.api.mute(),this.api.setVolume(this.Z))};
g.k.onVolumeChange=function(a){mQa(this,a.volume,a.muted)};
g.k.US=function(){OV(this,this.u,this.isDragging,this.B,this.j.Ol())};
g.k.qa=function(){g.V.prototype.qa.call(this);g.Kp(this.J,"ytp-volume-slider-active")};g.x(g.PV,g.V);
g.PV.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).pd,b=this.api.T();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.Z);g.iQ(this,this.visible);this.api.Va(this.element,this.visible&&this.ea);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",a));b.B&&(this.j&&(this.Fc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Ip(this.element,"no-link"));this.Db()};
g.PV.prototype.onClick=function(a){this.api.K("web_player_log_click_before_generating_ve_conversion_params")&&this.api.qb(this.element);var b=this.api.T(),c=this.api.getVideoUrl(!g.kR(a),!1,!0,!0);if(g.iK(b)||g.rK(b)){var d={};b.ya&&g.iK(b)&&g.$R(d,b.loaderUrl);g.iK(b)&&g.gS(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.Ui(c,g.ZR(d,"emb_logo"))}g.PT(c,this.api,a);this.api.K("web_player_log_click_before_generating_ve_conversion_params")||this.api.qb(this.element)};
g.PV.prototype.Db=function(){var a={G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},W:[{G:"path",vc:!0,N:"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=this.api.T(),c=b.K("shorts_mode_to_player_api")?this.api.Tb():this.u.Tb();g.rK(b)?(b=this.Da("ytp-youtube-music-button"),a=(c=300>this.api.getPlayerSize().width)?{G:"svg",X:{fill:"none",height:"24",width:"24"},W:[{G:"circle",X:{cx:"12",cy:"12",fill:"red",r:"12"}},{G:"ellipse",X:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"path",X:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{G:"svg",X:{viewBox:"0 0 80 24"},W:[{G:"ellipse",X:{cx:"12.18",
cy:"12",fill:"red",rx:"12.18",ry:"12"}},{G:"ellipse",X:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"path",X:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09zM37.43 9.64c-.57 2.85-1.01 6.33-1.25 7.77h-.16c-.18-1.48-.62-4.94-1.22-7.75L33.31 2.67h-4.52v18.85h2.80V5.98l.27 1.45 2.85 14.08h2.80l2.80-14.08.3-1.45v15.54h2.80V2.67h-4.56l-1.43 6.96zM51.01 18.69c-.25.51-.81.87-1.36.87-.64 0-.90-.49-.90-1.70V7.75H45.54v10.29c0 2.54.85 3.70 2.75 3.70 1.29 0 2.33-.56 3.05-1.90h.07l.27 1.68h2.50V7.75h-3.19v10.94h.00zM60.39 13.19c-1.04-.74-1.69-1.23-1.69-2.31 0-.76.37-1.19 1.25-1.19.90 0 1.20.60 1.22 2.67l2.68-.11c.20-3.34-.92-4.74-3.87-4.74-2.73 0-4.07 1.19-4.07 3.63 0 2.22 1.11 3.23 2.92 4.56 1.55 1.16 2.45 1.82 2.45 2.76 0 .72-.46 1.21-1.27 1.21-.95 0-1.50-.87-1.36-2.40l-2.71.04c-.41 2.85.76 4.51 3.91 4.51 2.75 0 4.19-1.23 4.19-3.70-.00-2.24-1.16-3.14-3.66-4.94zM68.87 7.75h-3.05v13.77h3.06V7.75zM67.36 2.31c-1.18 0-1.73.42-1.73 1.91 0 1.52.55 1.90 1.73 1.90 1.20 0 1.73-.38 1.73-1.90 0-1.41-.53-1.91-1.73-1.91zM79.15 16.56l-2.80-.13c0 2.42-.27 3.21-1.22 3.21-.95 0-1.11-.87-1.11-3.73v-2.67c0-2.76.18-3.63 1.13-3.63.88 0 1.11.83 1.11 3.39l2.77-.17c.18-2.13-.09-3.59-.94-4.42-.62-.60-1.57-.89-2.89-.89-3.10 0-4.37 1.61-4.37 6.15v1.93c0 4.67 1.08 6.17 4.26 6.17 1.34 0 2.27-.27 2.89-.85.90-.81 1.24-2.20 1.18-4.34z",
fill:"#fff"}}]},g.Mp(b,"ytp-youtube-music-logo-icon-only",c)):c&&(a={G:"svg",X:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},W:[{G:"path",X:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z",
fill:"#fff"}}]});a.X=Object.assign({},a.X,{"aria-hidden":"true"});this.updateValue("logoSvg",a)};
g.PV.prototype.Zb=function(a){g.V.prototype.Zb.call(this,a);this.api.Va(this.element,this.visible&&a)};g.x(pQa,g.eI);g.k=pQa.prototype;g.k.Ie=function(){g.UN(this.F.Cb(),2)||(this.Jc.wc(),this.qj.wc())};
g.k.pn=function(){this.GJ();if(this.Ve.u){this.Ie();var a;null==(a=this.tb)||a.show()}else{g.TV(this.Jc.tooltip);var b;null==(b=this.tb)||b.hide()}};
g.k.Ev=function(){this.Ie();this.lf.start()};
g.k.GJ=function(){var a=!this.F.T().u&&300>g.OPa(this.Jc)&&this.F.Cb().Yc()&&!!window.requestAnimationFrame,b=!a;this.Ve.u||(a=b=!1);b?this.ea||(this.ea=this.S(this.F,"progresssync",this.Ie)):this.ea&&(this.Fc(this.ea),this.ea=null);a?this.lf.isActive()||this.lf.start():this.lf.stop()};
g.k.Db=function(){var a=this.u.xg(),b=this.F.jb().getPlayerSize(),c=rQa(this),d=Math.max(b.width-2*c,100);if(this.ib!==b.width||this.Za!==a){this.ib=b.width;this.Za=a;var e=sQa(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";g.uV(this.Jc,c,e,a);this.u.Hc().HJ=e}c=this.B;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-tQa(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.RE=e;c.eA();this.GJ();this.F.T().K("html5_player_dynamic_bottom_gradient")&&g.RU(this.ob,b.height)};
g.k.onVideoDataChange=function(){var a=this.F.getVideoData();this.Ja.style.background=a.pd?a.Dl:"";g.iQ(this.ya,a.uN);this.oa&&GOa(this.oa,a.showSeekingControls);this.Z&&GOa(this.Z,a.showSeekingControls)};
g.k.ub=function(){return this.C.element};g.x(uQa,yU);g.k=uQa.prototype;g.k.WG=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.F.Na("innertubeCommand",this.onClickCommand),this.UC())};
g.k.UC=function(){this.enabled=!1;this.D.hide()};
g.k.onVideoDataChange=function(a,b){"dataloaded"===a&&vQa(this);if(this.F.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){a=[];var c,d,e,f;if(b=null==(f=g.S(null==(c=b.fd)?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.suggestedActionsRenderer,rza))?void 0:f.suggestedActions)for(c=g.v(b),d=c.next();!d.done;d=c.next())(d=g.S(d.value,sza))&&g.S(d.trigger,oM)&&a.push(d)}else a=b.suggestedActions;c=a;if(0!==c.length){a=[];c=g.v(c);for(d=c.next();!d.done;d=
c.next())if(d=d.value,e=g.S(d.trigger,oM))f=(f=d.title)?g.dE(f):"View Chapters",b=e.timeRangeStartMillis,e=e.timeRangeEndMillis,null!=b&&null!=e&&d.tapCommand&&(a.push(new g.UD(b,e,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.F.Ae(a)}};
g.k.Rz=function(){return this.enabled};
g.k.Ag=function(){this.enabled?this.Ga.start():wU(this);this.cm()};
g.k.qa=function(){vQa(this);yU.prototype.qa.call(this)};var i4={},QV=(i4.CHANNEL_NAME="ytp-title-channel-name",i4.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",i4.LINK="ytp-title-link",i4.SESSIONLINK="yt-uix-sessionlink",i4.SUBTEXT="ytp-title-subtext",i4.TEXT="ytp-title-text",i4.TITLE="ytp-title",i4);g.x(RV,g.V);
RV.prototype.onClick=function(a){this.api.qb(this.element);var b=this.api.T(),c=this.api.getVideoUrl(!g.kR(a),!1,!0);if(g.iK(b)){var d={};b.ya&&g.$R(d,b.loaderUrl);g.gS(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.Ui(c,g.ZR(d,"emb_title"))}g.PT(c,this.api,a)};
RV.prototype.Qa=function(){var a=this.api.getVideoData(),b=this.api.T();this.updateValue("title",a.title);var c={G:"a",N:QV.CHANNEL_NAME,X:{href:"{{channelLink}}",target:"_blank"},ra:"{{channelName}}"};this.api.T().B&&(c={G:"span",N:QV.CHANNEL_NAME,ra:"{{channelName}}",X:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);wQa(this);2===this.api.getPresentingPlayerType()&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.Gc&&c.profilePicture?(this.updateValue("channelLink",
c.Gc),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):wQa(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.Kj;g.Mp(this.link,QV.FULLERSCREEN_LINK,c);b.oa||!a.videoId||c||a.pd&&b.Z||b.B?this.j&&(this.updateValue("url",null),this.Fc(this.j),this.j=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.S(this.link,"click",this.onClick)));b.B&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.iK(b)?a.Uf:
a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.x(g.SV,g.V);g.k=g.SV.prototype;g.k.fP=function(a){if(null!=this.type)if(a)switch(this.type){case 3:case 2:BQa(this);this.I.show();break;default:this.I.show()}else this.I.hide();this.V=a};
g.k.hW=function(a,b){a<=this.C&&this.C<=b&&(a=this.C,this.C=NaN,yQa(this,a))};
g.k.z4=function(){Vya(this.u,this.C,this.J*this.scale)};
g.k.Mn=function(){switch(this.type){case 2:var a=this.j;a.removeEventListener("mouseout",this.oa);a.addEventListener("mouseover",this.D);a.removeEventListener("blur",this.oa);a.addEventListener("focus",this.D);CQa(this);break;case 3:CQa(this);break;case 1:this.u&&(this.u.unsubscribe("l",this.hW,this),this.u=null),this.api.removeEventListener("videoready",this.Aa),this.Ga.stop()}this.type=null;this.V&&this.I.hide()};
g.k.vk=function(){if(this.j)for(var a=0;a<arguments.length;a++)g.lf(arguments[a],this.j)&&this.Mn()};
g.k.qa=function(){null!=this.type&&this.Mn();this.u&&this.u.dispose();g.V.prototype.qa.call(this)};g.x(EQa,g.V);g.k=EQa.prototype;g.k.NA=function(){this.visible=FQa(this);g.iQ(this,this.visible);this.icon&&IQa(this,this.icon);this.F.Va(this.element,this.visible&&this.ea)};
g.k.Pd=function(){return this.F.getVideoData().videoId};
g.k.onClick=function(){var a=this;this.F.qb(this.element);var b=this.F.T(),c=this.Pd();b.authUser?DQa(this):this.F.eI()?this.F.requestStorageAccess(function(){g.nA("embedsItpWatchLaterResult",{accepted:!0});uD();GQa(a,c)},function(){g.nA("embedsItpWatchLaterResult",{accepted:!1});
HQa(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):GQa(this,c)};
g.k.Fv=function(){this.isRequestPending=this.j=!1;this.Qa(2);this.NA()};
g.k.Qa=function(a,b){var c=this.F.T();IQa(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.j?g.pO("Added as $USER_NAME",a):g.pO("Watch later as $USER_NAME",a),image:OK(c)})):this.update({title:"Watch later",image:null});RS(this.tooltip)};
g.k.Zb=function(a){g.V.prototype.Zb.call(this,a);this.F.Va(this.element,this.visible&&a)};g.x(g.UV,g.ZT);g.k=g.UV.prototype;g.k.Hc=function(){return this.tooltip};
g.k.Np=function(a,b){b?this.Bo=a:this.Bo=null;this.fl()};
g.k.oy=function(a,b){if(b)this.Ws.push(a);else for(b=this.Ws.length;0<=b;b--)if(this.Ws[b]===a){this.Ws.splice(b,1);break}KT(this.Ve,64,0<this.Ws.length)};
g.k.At=function(){this.api.pk()&&this.api.uo();return!!this.Bo||JQa(this)||g.ZT.prototype.At.call(this)};
g.k.Mz=aa(36);g.k.Tq=aa(34);g.k.Sq=aa(32);
g.k.fl=function(){var a=!this.At(),b=this.api.T().K("shorts_mode_to_player_api")?this.api.Tb():this.Tb();b=a&&this.api.pk()&&!g.UN(this.api.Cb(),2)&&!(this.api.getVideoData().pd&&this.api.T().Z)&&!this.api.T().B&&!b;var c=this.mq&&g.vS(this.api)&&g.UN(this.api.Cb(),128);a||c?(this.IP.show(),this.JP.show()):(this.IP.hide(),this.JP.hide(),this.tooltip.vk(this.Eh.element));b?this.Vi.md():this.Vi.Fb();this.Zg&&qQa(this.Zg,this.lO||!a);this.api.K("web_player_hide_overflow_button_if_empty_menu")&&KQa(this);
g.ZT.prototype.fl.call(this)};
g.k.Rv=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Um(a),h=d||this.Zg&&g.lf(this.Zg.ub(),b),l=d=null;null!=c&&h||(d=g.Um(b),l=g.Sm(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Zg,d=rQa(b),l=sQa(b),h=this.api.jb().getPlayerSize().height,c=g.pe(c,d,d+l-f.width),f=h-tQa(b)-f.height):g.lf(this.Eh.element,b)?(b=this.api.jb().getPlayerSize().width,c=g.pe(c,12,b-f.width-12),f=this.xg()?this.NK:this.MK,"gvn"===this.api.T().playerStyle&&(f+=
20),this.mq&&(f-=this.xg()?26:18)):(b=this.api.jb().getPlayerSize(),c=g.pe(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.pn=function(a){a&&(this.tooltip.vk(this.Eh.element),this.Zg&&this.tooltip.vk(this.Zg.ub()));this.pG&&(g.Mp(this.contextMenu.element,"ytp-autohide",a),g.Mp(this.contextMenu.element,"ytp-autohide-active",!0));g.ZT.prototype.pn.call(this,a)};
g.k.zN=function(){g.ZT.prototype.zN.call(this);this.pG&&(g.Mp(this.contextMenu.element,"ytp-autohide-active",!1),this.pG&&(this.contextMenu.hide(),this.Ah&&this.Ah.hide()))};
g.k.Ak=function(a,b){var c=this.api.jb().getPlayerSize();c=new g.Gm(0,0,c.width,c.height);if(a||this.Ve.u&&!this.At()){if(this.api.T().qm||b)a=this.xg()?this.NK:this.MK,c.top+=a,c.height-=a;this.Zg&&(c.height-=tQa(this.Zg))}return c};
g.k.Hq=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.T().externalFullscreen||(b.parentElement.insertBefore(this.GF.element,b),b.parentElement.insertBefore(this.FF.element,b.nextSibling))):g.zD(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.GF.detach(),this.FF.detach());this.Db();this.vp()};
g.k.xg=function(){var a=this.api.T();return this.api.isFullscreen()&&!a.V||!1};
g.k.showControls=function(a){this.mF=!a;this.fl()};
g.k.Db=function(){var a=this.xg();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.Mp(this.contextMenu.element,"ytp-big-mode",a);this.fl();this.api.K("web_player_hide_overflow_button_if_empty_menu")||KQa(this);this.vp();var b=this.api.T().K("shorts_mode_to_player_api")?this.api.Tb():this.Tb();b&&a?(a=(this.api.jb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Jm(this.Eh.element,"padding-left",a+"px"),g.Jm(this.Eh.element,"padding-right",a+"px")):b&&(g.Jm(this.Eh.element,"padding-left",
""),g.Jm(this.Eh.element,"padding-right",""));g.ZT.prototype.Db.call(this)};
g.k.OL=function(){if(JQa(this)&&!g.vS(this.api))return!1;var a=this.api.getVideoData();return!g.iK(this.api.T())||2===this.api.getPresentingPlayerType()||!this.Kf||((a=this.Kf||a.Kf)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.S(a.videoDetails,Sza)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.ZT.prototype.OL.call(this):!1};
g.k.vp=function(){g.ZT.prototype.vp.call(this);this.api.Va(this.title.element,!!this.Vo);this.wz&&this.wz.Zb(!!this.Vo);this.channelAvatar.Zb(!!this.Vo);this.overflowButton&&this.overflowButton.Zb(this.Ug()&&!!this.Vo);this.shareButton&&this.shareButton.Zb(!this.Ug()&&!!this.Vo);this.In&&this.In.Zb(!this.Ug()&&!!this.Vo);this.Ai&&this.Ai.Zb(!this.Ug()&&!!this.Vo);if(!this.Vo){this.tooltip.vk(this.Eh.element);for(var a=0;a<this.fE.length;a++){var b=this.fE[a];b.cj()&&b.Fb()}}};
g.k.lc=function(a){this.Zg&&qQa(this.Zg,this.At());this.fl();g.ZT.prototype.lc.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){return this.yq?this.yq.handleGlobalKeyDown(a,b,c,d,e,f,h,l):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.yq?this.yq.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.Gl=function(){if(this.contextMenu.yb)return this.contextMenu.Fb(),!0;if(this.Ws.length)return this.Ws[this.Ws.length-1].Fb(),!0;if(this.Bo)return this.Bo.Fb(),!0;this.Zg&&this.tooltip.vk(this.Zg.ub());this.di&&this.tooltip.vk(this.di.element);return g.ZT.prototype.Gl.call(this)};
g.k.aI=function(a,b){this.jN=b;this.oy(a,b);this.LY()};
g.k.LY=function(){var a=this.jN||this.contextMenu.cj();this.xK!==a&&(this.xK=a,this.api.Na("onAutonavPauseRequest",this.xK))};
g.k.l3=function(){LQa(this,this.api.getRootNode(),!0).focus()};
g.k.m3=function(){LQa(this,this.api.getRootNode(),!1).focus()};
g.k.Nm=function(){return this.Zg&&this.Zg.B};
g.k.rp=function(){this.Ve.rp()};
g.k.lG=function(){this.Oc.hide()};
g.k.jw=function(a){this.Oc.jw(!g.VO(a))};
g.k.DD=function(a,b,c,d){this.Lu.DD(a,b,c,d)};
g.k.CD=function(a,b){INa(this.Lu,a,b)};
g.k.Q5=function(){MQa(this,!0)};
g.k.Fv=function(){KQa(this)};
g.k.o6=function(a){MQa(this,!1,a)};
g.k.NF=function(){return this.contextMenu};
g.k.TA=function(a){var b;if(null!=(b=this.Zg)){for(var c=Number(a.element.getAttribute("data-priority"))||0,d=0,e=g.v(b.j.element.children),f=e.next();!(f.done||c<(Number(f.value.getAttribute("data-priority"))||0));f=e.next())d++;a.Ea(b.j.element,d)}};
g.k.Tr=function(){var a,b=null==(a=this.Zg)?void 0:a.Jc;if(b){var c;(null==(c=b.u)?0:c.isEnabled)&&b.Tr()}};g.x(g.VV,g.tT);g.VV.prototype.Uk=function(){return!1};
g.VV.prototype.create=function(){var a=this.player.T();g.qK(a)&&a.u?this.chrome=new g.ZT(this.player):this.chrome=new g.UV(this.player);g.I(this,this.chrome);this.chrome.init();this.player.hg("ux")};
g.VV.prototype.FB=function(){return this.chrome};g.x(XV,g.E);XV.prototype.B=function(a,b){if(b){b=b instanceof g.AF?b:YV(this,b);var c;(null==(c=this.j.get(a))?void 0:CF(c.location))!==CF(b)&&this.j.set(a,new VQa(b,a))}else this.j.delete(a)};
XV.prototype.load=function(){var a=this,b,c,d,e,f,h,l,m,n,p;return g.A(function(q){switch(q.j){case 1:b=a.j.get(0);g.ua(q,2);var t;if(t=b&&!a.u)t=CF(b.location),t=a.u===$V(t);if(t){q.Ka(4);break}return g.y(q,TQa(a,a.u?2:0),5);case 5:if(c=q.u)a.B(0,c),EF(c)&&a.B(1,FF(c));case 4:g.va(q,3);break;case 2:d=g.xa(q);g.AD(d);if(!a.u){q.Ka(3);break}a.u=!1;return g.y(q,a.load(),7);case 7:return q.return();case 3:if(!a.Y.experiments.kb("html5_onesie_probe_ec_hosts")){q.Ka(0);break}g.ua(q,9);e=a;f=e.B;h=3;return g.y(q,
TQa(a,1),11);case 11:return f.call(e,h,q.u),l=a,m=l.B,n=4,g.y(q,TQa(a,2),12);case 12:m.call(l,n,q.u);g.va(q,0);break;case 9:p=g.xa(q),g.AD(p),g.ta(q)}})};
XV.prototype.J=function(){var a=this,b,c;return g.A(function(d){g.Bp(a.V);b=g.jJ(a.Y.experiments,"html5_onesie_prewarm_max_lact_ms");if(KC()>=b)return d.return();(c=a.j.get(0))&&RQa(a,c);g.ta(d)})};
var OQa={BQa:0,ISa:1,ARa:2,JSa:3,Sma:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};g.aW.prototype.info=function(){};
var ZQa=new Map;bW.prototype.Vj=function(){if(!this.Ke.length)return[];var a=this.Ke;this.Ke=[];this.B=g.qb(a).info;return a};
bW.prototype.Ov=function(){return this.Ke};g.x(dW,g.E);g.k=dW.prototype;g.k.Tp=function(){return Array.from(this.Vc.keys())};
g.k.gw=function(a){a=this.Vc.get(a);var b=a.Ke;a.Ox+=b.totalLength;a.Ke=new IF;return b};
g.k.Tg=function(a){return this.Vc.get(a).Tg};
g.k.Ph=function(a){return this.Vc.get(a).Ph};
g.k.Gv=function(a,b,c,d){this.Vc.get(a)||this.Vc.set(a,{Ke:new IF,Dq:[],Ox:0,bytesReceived:0,JU:0,DO:!1,Tg:!1,Ph:!1,Fk:b,yX:[],gb:[],MG:[]});b=this.Vc.get(a);this.Sa?(c=iRa(this,a,c,d),hRa(this,a,b,c)):(c.Xm?b.JU=c.Pq:b.MG.push(c),b.yX.push(c))};
g.k.Om=function(a){var b;return(null==(b=this.Vc.get(a))?void 0:b.gb)||[]};
g.k.kz=function(){for(var a=g.v(this.Vc.values()),b=a.next();!b.done;b=a.next())b=b.value,b.DO&&(b.Ie&&b.Ie(),b.DO=!1)};
g.k.Iq=function(a){a=this.Vc.get(a);eW&&a.Dq.push({data:new IF([]),mL:!0});a&&!a.Ph&&(a.Ph=!0)};
g.k.Vj=function(a){var b,c=null==(b=this.Vc.get(a))?void 0:b.ge;if(!c)return[];this.Sm(a,c);return c.Vj()};
g.k.Pk=function(a){var b,c,d;return!!(null==(c=null==(b=this.Vc.get(a))?void 0:b.ge)?0:null==(d=c.Ov())?0:d.length)||fRa(this,a)};
g.k.Sm=function(a,b){for(;fRa(this,a);)if(eW){var c=this.Vc.get(a),d=c.Dq.shift();c.Ox+=(null==d?void 0:d.data.totalLength)||0;c=d;cW(b,c.data,c.mL)}else c=this.gw(a),d=a,d=this.Vc.get(d).Tg&&!eRa(this,d),cW(b,c,d&&gRa(this,a))};
g.k.qa=function(){g.E.prototype.qa.call(this);for(var a=g.v(this.Vc.keys()),b=a.next();!b.done;b=a.next())bRa(this,b.value);this.Vc.clear()};
var eW=!1;var hW=[],M0a=!1;g.LY=Id(function(){var a="";try{var b=g.Ze("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.x(iW,g.E);iW.prototype.B=function(){null!=this.j&&this.app.getVideoData()!==this.j&&dM(this.j)&&q1a(this.app,this.j,void 0,void 0,this.u)};
iW.prototype.qa=function(){this.j=null;g.E.prototype.qa.call(this)};g.x(g.jW,JO);g.k=g.jW.prototype;g.k.isView=function(){return!0};
g.k.RO=function(){var a=this.mediaElement.getCurrentTime();if(a<this.start)try{var b=this.mediaElement.Mh(),c=pI(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.Ru=function(){return sI(this.mediaElement.Ru(),this.start,this.end)};
g.k.Mh=function(){return sI(this.mediaElement.Mh(),this.start,this.end)};
g.k.VB=function(){return sI(this.mediaElement.VB(),this.start,this.end)};
g.k.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start};
g.k.setCurrentTime=function(a){this.mediaElement.setCurrentTime(a+this.start)};
g.k.getDuration=function(){return isFinite(this.end)&&!this.j?this.end-this.start:this.mediaElement.getDuration()-this.start};
g.k.play=function(){if(this.RO()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(a){}}return this.mediaElement.play()};
g.k.kc=function(){var a=JO.prototype.kc.call(this);a.view=this.start+"-"+this.end;return a};
g.k.addEventListener=function(a,b){this.mediaElement.addEventListener(a,b)};
g.k.removeEventListener=function(a,b){this.mediaElement.removeEventListener(a,b)};
g.k.NE=function(){return this.mediaElement.NE()};
g.k.Fx=function(a){this.mediaElement.Fx(a)};
g.k.xs=function(){return this.mediaElement.xs()};
g.k.playVideo=function(){return this.mediaElement.playVideo()};
g.k.iL=function(){this.mediaElement.iL()};
g.k.gL=function(){this.mediaElement.gL()};
g.k.Zt=function(){return this.mediaElement.Zt()};
g.k.ub=function(){return this.mediaElement.ub()};
g.k.Mf=function(){return this.mediaElement.Mf()};
g.k.PE=function(a){this.mediaElement.PE(a)};
g.k.MH=function(){this.mediaElement.MH()};
g.k.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.mediaElement.setPlaybackRate(a)};
g.k.us=function(){return this.mediaElement.us()};
g.k.setLoop=function(a){this.mediaElement.setLoop(a)};
g.k.canPlayType=function(a,b){return this.mediaElement.canPlayType(a,b)};
g.k.Hp=function(){return this.mediaElement.Hp()};
g.k.fh=function(){return this.mediaElement.fh()};
g.k.Ph=function(){return this.mediaElement.Ph()};
g.k.TF=function(){return this.mediaElement.TF()};
g.k.Lz=function(a){this.mediaElement.Lz(a)};
g.k.OE=function(){return this.mediaElement.OE()};
g.k.load=function(){this.mediaElement.load()};
g.k.pause=function(){this.mediaElement.pause()};
g.k.uj=function(){return this.mediaElement.uj()};
g.k.UF=function(){return this.mediaElement.UF()};
g.k.Ye=function(){return this.mediaElement.Ye()};
g.k.zf=function(){return this.mediaElement.zf()};
g.k.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
g.k.uh=function(){return this.mediaElement.uh()};
g.k.Bt=function(){return this.mediaElement.Bt()};
g.k.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.k.zs=function(){return this.mediaElement.zs()};
g.k.getSize=function(){return this.mediaElement.getSize()};
g.k.setSize=function(a){this.mediaElement.setSize(a)};
g.k.getVolume=function(){return this.mediaElement.getVolume()};
g.k.setVolume=function(a){this.mediaElement.setVolume(a)};
g.k.setAttribute=function(a,b){this.mediaElement.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.mediaElement.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.mediaElement.hasAttribute(a)};
g.k.UA=aa(19);g.k.ZD=aa(21);g.k.aE=aa(23);g.k.Sx=aa(25);g.k.tB=function(){return this.mediaElement.tB()};
g.k.Dr=function(a){this.mediaElement.Dr(a)};
g.k.getStyle=function(a){return this.mediaElement.getStyle(a)};
g.k.FM=function(){return this.mediaElement.FM()};
g.k.stopVideo=function(){this.mediaElement.stopVideo()};
g.k.oL=function(a){this.mediaElement.oL(a)};
g.k.audioTracks=function(){return this.mediaElement.audioTracks()};g.x(pRa,g.E);g.k=pRa.prototype;g.k.getStatus=function(){return this.status};
g.k.ou=function(){var a=this.j.getVideoData(),b=this.u.getVideoData(),c;if((c=a.C)&&!(c=!a.j)){c=a.j;for(var d=!1,e=!1,f=g.v(Object.values(c.j)),h=f.next();!h.done;h=f.next())h=h.value,h.info.audio&&h.index.isLoaded()&&(d=!0),h.info.video&&h.index.isLoaded()&&(e=!0);c.j["0"]&&(e=!0);c=d&&e}if(c)if(this.j.ue()){f=oRa(this.j,this.u,this.Yl);h=qRa(this);c=h.G2;e=h.LV;d=h.gT;h=h.KV;if(!this.I){var l=1E3*this.u.yk(),m=this.j.yk();m=1E3*(d-c-m);f&&"in-the-past"===f.msg&&(m=0);a=a.isAd();this.u.zD(l,m,a);
this.I=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.Dg(b,f)):2===this.status.status?yRa(this):(a=this.j.xs())&&DI(a)&&(!zI(a)&&g.Uy()?this.Dg("mse_closed"):b.j&&qF(b.j)&&a.u&&!a.u.QF()?this.Dg("encr_upgrade"):(b=this.j.ue(),b.Ph()?this.Dg("elem_ended"):0>e?this.Dg("next_player_future"):(this.D=d,this.currentVideoDuration=d-c,this.B=Kva(a,c,d,!0),this.C=Kva(a,e,h,!1),a=this.u.getVideoData().clientPlaybackNonce,this.j.xa("gaplessPrep",{cpn:a}),vRa(this.j,this.B),this.j.setMediaElement(rRa(b,c,d,!this.j.getVideoData().isAd())),
lW(this,2),yRa(this))))}else this.Dg("no-elem")};
g.k.ix=function(a){var b=a===xRa(this).JX,c=b?this.B.j:this.B.u;b=b?this.C.j:this.C.u;if(c.isActive&&!b.isActive){var d=this.D;oI(a.Hg(),d-.01)&&(lW(this,4),c.isActive=!1,c.oE=c.oE||c.isActive,this.u.xa("sbh",{}),b.isActive=!0,b.oE=b.oE||b.isActive);a=this.C.u;this.C.j.isActive&&a.isActive&&(lW(this,5),0!==this.V&&(this.j.getVideoData().EQ=!0,this.vf.setLoopRange({startTimeMs:0,endTimeMs:1E3*this.currentVideoDuration})))}};
g.k.mW=function(){4<=this.status.status&&6>this.status.status&&this.Dg("player-reload-after-handoff")};
g.k.Dg=function(a,b){b=void 0===b?{}:b;if(!this.isDisposed()&&6!==this.status.status){var c=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.j&&this.u){var d=this.u.getVideoData().clientPlaybackNonce;this.j.Ld(new SK("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.Yl,msg:a})));a=this.j;a.videoData.Wa=!1;c&&EY(a);a.Fa&&uXa(a.Fa)}this.qp.reject(void 0);this.dispose()}};
g.k.qa=function(){wRa(this);this.j.unsubscribe("newelementrequired",this.mW,this);if(this.B){var a=this.B.u;this.B.j.Gd.unsubscribe("updateend",this.ix,this);a.Gd.unsubscribe("updateend",this.ix,this)}g.E.prototype.qa.call(this)};
g.k.zd=function(a){g.bO(a,128)&&this.Dg("player-error-event")};g.x(nW,g.E);nW.prototype.clearQueue=function(){this.C&&this.C.reject("Queue cleared");oW(this)};
nW.prototype.hv=function(){return!this.j};
nW.prototype.qa=function(){oW(this);g.E.prototype.qa.call(this)};g.x(IRa,g.aE);g.k=IRa.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:ERa()?3:b?2:c?1:d?5:e?7:f?8:0};
g.k.Xl=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Ag())};
g.k.setMinimized=function(a){this.u!==a&&(this.u=a,this.Ag())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Ag())};
g.k.Nz=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Ag())};
g.k.uh=function(){return this.j};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.yy=function(){return this.fullscreen};
g.k.yg=function(){return this.u};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return ERa()};
g.k.Qy=function(){return this.pictureInPicture};
g.k.Oy=function(){return!1};
g.k.Ag=function(){this.ma("visibilitychange");var a=this.getVisibilityState(this.uh(),this.isFullscreen(),this.yg(),this.isInline(),this.Qy(),this.Oy());a!==this.C&&this.ma("visibilitystatechange");this.C=a};
g.k.qa=function(){HRa(this.B);g.aE.prototype.qa.call(this)};g.x(tW,g.E);g.k=tW.prototype;g.k.vy=function(){return this.Cc||0};
g.k.ML=function(){return this.C||0};
g.k.getCpnByClipId=function(a){if(this.B.has(a))return this.B.get(a);for(var b=g.v(this.segments),c=b.next();!c.done;c=b.next()){c=g.v(c.value.j.values());for(var d=c.next();!d.done;d=c.next())if(d=d.value.getCpnByClipId(a))return d}};
g.k.Df=function(){for(;this.segments.length;){var a=void 0;null==(a=this.segments.pop())||a.dispose()}this.B.clear();this.u.clear()};
g.k.qa=function(){this.Df()};
g.x(KRa,g.E);g.k=KRa.prototype;g.k.vy=function(){return this.Cc};
g.k.ML=function(){return this.u};
g.k.getType=function(){return this.type};
g.k.HB=function(){var a;return(null==(a=this.videoData)?void 0:a.clientPlaybackNonce)||""};
g.k.getVideoData=function(){return this.videoData};
g.k.Zr=function(){return this.clipId};g.x(g.vW,g.E);g.k=g.vW.prototype;
g.k.onCueRangeEnter=function(a){this.La.push(a);var b=a.getId(),c=""===b;this.Nb.add(a.B);c||this.va.xa("sdai",{enterAdCueRange:1});if(this.Za&&!this.j){this.Za=!1;if(!c){var d=this.D.get(b);d&&(c=this.va.getCurrentTime(),BW(this,{oe:a,isAd:!0,nq:!0,kh:c,adCpn:b},{isAd:!1,nq:!1,kh:c}),this.api.ma("serverstitchedvideochange",d.Mc,d.Cr),this.va.xa("sdai",yW("midab",d)),this.Bl=1)}this.I=!1}else if(this.j){if(this.j.nq)this.va.xa("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.j.adCpn,transitionTime:this.j.kh,
cpn:b,currentTime:this.va.getCurrentTime()}),d=this.va.getCurrentTime(),a={oe:a,isAd:!c,nq:!0,kh:d,adCpn:b},b={oe:this.j.oe,isAd:this.j.isAd,nq:!1,kh:d,adCpn:this.j.adCpn},this.j.oe&&this.Nb.delete(this.j.oe.B),BW(this,a,b);else{if(this.j.oe===a){this.va.xa("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.kh,cpn:b,currentTime:this.va.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.va.xa("sdai",{dchtsc:b});
this.j=void 0;return}a={oe:a,isAd:!c,nq:!0,kh:this.va.getCurrentTime(),adCpn:b};BW(this,a,this.j)}this.j=void 0;this.I=!1}else this.j={oe:a,isAd:!c,nq:!0,kh:this.va.getCurrentTime(),adCpn:b}};
g.k.onCueRangeExit=function(a){if(this.Nb.has(a.B)){this.Nb.delete(a.B);this.La=this.La.filter(function(d){return d!==a});
this.Za&&(this.I=this.Za=!1,this.va.xa("sdai",{cref:1}));var b=a.getId(),c=""===b;if(this.j){if(this.j.nq){if(this.j.oe===a){this.va.xa("sdai",{same_cue_range_pair_exit:1,acpn:this.j.adCpn,transitionTime:this.j.kh,cpn:b,currentTime:this.va.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.va.xa("sdai",{dchtsc:b});this.j=void 0;return}b={oe:a,isAd:!c,nq:!1,kh:this.va.getCurrentTime(),adCpn:b};BW(this,this.j,b)}else this.va.xa("sdai",
{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.kh,upcomingCpn:b,contentCpn:this.va.getVideoData().clientPlaybackNonce,currentTime:this.va.getCurrentTime()});this.j=void 0;this.I=!1}else this.j={oe:a,isAd:!c,nq:!1,kh:this.va.getCurrentTime(),adCpn:b}}else this.va.xa("sdai",{ignore_single_exit:1})};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;this.I=!0;if(void 0===b?0:b)NRa(this,a);else{b=this.api.Pc();var d=b===this.tb?this.Ub:null;DW(this,!1);this.Gc=a;null!=c&&this.Bc.start(c);b&&(this.Ub=d||b.getPlayerState(),u0a(b),this.tb=b)}};
g.k.qa=function(){DW(this,!1);$Ra(this);aSa(this);g.E.prototype.qa.call(this)};
g.k.kP=function(a){this.Uc=a;this.va.xa("sdai",{swebm:a})};
g.k.Ck=function(a,b,c){if(c&&b){var d=this.Ya.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.AF(c);this.Pa&&this.va.xa("sdai",{hdlredir:1,itag:b,seg:a,hostport:CF(c)});d.locations.set(e,c)}}};
g.k.Bs=function(a,b,c,d,e){var f=3===d;a=cSa(this,a,b,d,c);if(!a)return GW(this,b,f),this.va.xa("sdai",{gvprp:"ncp",seg:b}),null;f=a.Am;var h;d=(null==(h=FW(this,b-1,d,e))?void 0:h.Pr)||"";""===d&&this.va.xa("sdai",{eds:1});h=UJ(a.ssdaiAdsConfig||"")||void 0;e=this.va.getVideoData();var l;c=(null==(l=e.u)?void 0:l.containerType)||0;l=e.aS[c];b=a.mw&&b>=a.mw?a.mw:void 0;return{Iz:{hK:f?gSa(this,f):[],U1:h,Pr:d,QX:b,V9:Je(l.split(";")[0]),W9:l.split(";")[1]||""}}};
g.k.Jm=function(a,b,c,d,e){var f=Number(c.split(";")[0]),h=3===d;a=cSa(this,a,b,d,c);this.Pa&&this.va.xa("sdai",{gdu:1,seg:b,itag:f,pb:""+!!a});if(!a)return GW(this,b,h),null;a.locations||(a.locations=new Map);if(!a.locations.has(f)){var l,m,n=null==(l=a.videoData.getPlayerResponse())?void 0:null==(m=l.streamingData)?void 0:m.adaptiveFormats;if(!n)return this.va.xa("sdai",{gdu:"noadpfmts",seg:b,itag:f}),GW(this,b,h),null;l=n.find(function(C){return C.itag===f});
if(!l||!l.url){var p=a.videoData.videoId;a=[];d=g.v(n);for(var q=d.next();!q.done;q=d.next())a.push(q.value.itag);this.va.xa("sdai",{gdu:"nofmt",seg:b,vid:p,itag:f,fullitag:c,itags:a.join(",")});GW(this,b,h);return null}a.locations.set(f,new g.AF(l.url,!0))}n=a.locations.get(f);if(!n)return this.va.xa("sdai",{gdu:"nourl",seg:b,itag:f}),GW(this,b,h),null;n=new FG(n);this.Uc&&(n.get("dvc")?this.va.xa("sdai",{dvc:n.get("dvc")||""}):n.set("dvc","webm"));var t;(e=null==(t=FW(this,b-1,d,e))?void 0:t.Pr)&&
n.set("daistate",e);a.mw&&b>=a.mw&&n.set("skipsq",""+a.mw);(e=this.va.getVideoData().clientPlaybackNonce)&&n.set("cpn",e);t=[];a.Am&&(t=gSa(this,a.Am),0<t.length&&n.set("acpns",t.join(",")));h||this.Ya.set(b,a);h=null;h=n.get("aids");var w;if(((null==(q=h)?void 0:null==(w=q.split(","))?void 0:w.length)||0)!==t.length)if(a.Am){var z;this.va.xa("sdai",{acpns_aids_nm:1,ids:iSa(this,a.Am).join("_"),acpns:t.join("_"),aids:null==(z=h)?void 0:z.replace(/,/g,"_"),cpn:e,trackType:d})}else this.va.xa("sdai",
{acpns_aids_nm:"noAdBreakId",cpn:e});d=n.Ze();2048<(null==d?void 0:d.length)&&this.va.xa("sdai",{urltoolong:1,sq:b,itag:f,len:d.length});this.Pa&&(d&&(w=a.cpn,q=a.Am,kSa(this,w,q),q&&!this.Wd.has(q)&&(w=hSa(this,w,q),z=jSa(this,q),this.va.xa("sdai",{iofa:w}),this.va.xa("sdai",{noawnzd:z-w}),this.va.xa("sdai",{acpns:t.join("."),aids:null==(p=h)?void 0:p.replace(/,/g,".")}),this.Wd.add(q))),this.va.xa("sdai",{gdu:"v",seg:b,itag:c,ast:a.Cc.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId}));
return d};
g.k.KD=function(a,b,c){var d=EW(this,a,c);return(d=d?(d.Cc+d.durationMs)/1E3:0)&&b>d?(this.kI(a,c,!0),this.va.seekTo(d),!0):!1};
g.k.kI=function(a,b,c){c=void 0===c?!1:c;if(a=EW(this,a,b)){var d=a.Am;if(d){this.va.xa("sdai",{skipadonsq:b,sts:c,abid:d,acpn:a.cpn,avid:a.videoData.videoId});c=this.ea.get(d);if(!c)return;c=g.v(c);for(d=c.next();!d.done;d=c.next())d.value.mw=b}this.u=a.cpn;dSa(this)}};
g.k.UO=function(){for(var a=g.v(this.V),b=a.next();!b.done;b=a.next())b.value.mw=NaN;dSa(this);this.va.xa("sdai",{rsac:"resetSkipAd",sac:this.u});this.u=""};
g.k.hE=aa(38);
g.k.cO=function(a,b,c,d,e,f,h,l,m){m&&(h?this.Wa.set(a,{Pr:m,RA:l}):this.Aa.set(a,{Pr:m,RA:l}));if(h){if(d.length&&e.length)for(this.u&&this.u===d[0]&&this.va.xa("sdai",{skipfail:1,sq:a,acpn:this.u}),a=b+this.Zp(),h=0;h<d.length;h++)if(m=d[h],l=a,a=l+e[h],m=this.D.get(m))l-=f[h],m.Cr=null!=m.Cr?Math.min(m.Cr,l):l;if(!uW(this))if(d.length&&e.length)for(b=1E3*(b+this.Zp()),c=0;c<d.length;c++)if(f=d[c],a=1E3*e[c],f===this.va.getVideoData().clientPlaybackNonce)fSa(this,b,b+a,!1),b+=a;else if(this.Ud.has(f)||(this.va.xa("sdai",
{adCpnFromEmsg:1}),this.Ud.add(f)),(h=this.C.get(f))&&h.start<=b&&h.end>=b+a)b=h.end;else{if(l=!1,h?b<h.start?h.start=b:h.end<b+a&&(h.end=b+a):(h=URa(b,b+a,f),this.C.set(f,h),this.va.xa("sdai",{newAdCR:1,cpn:f,startTime:h.start,endTime:h.end}),l=!0),b=h.end,fSa(this,h.start,h.end,!0),l)for(this.va.addCueRange(h),f=this.va.vB("serverstitchedcuerange",36E5),f=g.v(f),a=f.next();!a.done;a=f.next())this.C.delete(a.value.getId())}else 5!==c&&4!==c||fSa(this,1E3*(b+this.Zp()),1E3*(b+this.Zp())+5E3,!1)}};
g.k.IB=aa(40);g.k.Zp=function(){return this.va.Zp()};
g.k.GC=function(a){this.va.xa("timelineerror",{e:a})};
g.k.cC=function(a){this.ya&&this.oa&&this.Ga.push(this.oa);a&&this.oa&&this.Kc.push(this.oa);this.oa=null;this.va.cC(a)};
g.k.dG=function(a){if(this.Mp||a.identifier&&this.le.has(a.identifier))this.Pa&&this.va.xa("sdai",{startnoad:a.identifier}),xW(this);else if(Ym(this.Ga,function(c){return c.identifier===a.identifier}))this.va.xa("sdai",{timedoutcp:1}),this.J.start(0);
else if(Ym(this.Kc,function(c){return c.identifier===a.identifier}))this.va.xa("sdai",{fetchedcp:1}),xW(this);
else if(this.J.isActive()){var b;this.va.xa("sdai",{racingcp:(null==(b=this.oa)?void 0:b.identifier)+"_"+a.identifier})}else this.rd=(new Date).getTime()/1E3,this.Pa&&this.va.xa("sdai",{adf:1}),(b=g.jJ(this.Y.experiments,"html5_ssdai_adfetch_dynamic_timeout_ms")||0)&&"predictStart"===a.event&&(b-=a.j),this.jc=Math.max(b,g.jJ(this.Y.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4),this.ya=!1,this.J.start(this.jc),this.oa=a,this.Aa.clear(),this.Wa.clear(),this.Ja.clear(),this.Gb=[]};
g.k.Es=function(a,b){a=EW(this,a,b);if(!this.Y.experiments.kb("disable_ssdai_on_errors")||!a||this.Mp)return!1;this.Mp=!0;0<this.Bl&&(this.Bl=0,this.Z=null,this.api.ma("serverstitchedvideochange"));this.va.qF({reason:"disablessdai",sq:b});return!0};
g.k.Tu=function(){this.va.xa("sdai",{rstdaist:1});this.ib="";this.Aa.clear();this.Wa.clear();this.Ja.clear()};
g.k.jt=function(a){this.le.add(a);var b;(null==(b=this.oa)?void 0:b.identifier)===a&&xW(this)};
g.k.bO=function(a,b,c,d){if(uW(this)){var e=this.va.getVideoData().clientPlaybackNonce;a=a||e;b=b||e;if(a!==b){var f=a===e?VRa(this):this.D.get(a),h=b===e?VRa(this):this.D.get(b);f&&h?(c=this.I?c:d,zW(this,this.u)&&this.va.xa("sdai",{rsac:"sscc",sac:this.u,from:f.cpn,to:h.cpn}),AW(this.va,f,h,c,d,this.I,!!this.u),this.u="",b===e?(this.ob=1E3*c,this.Bl=0,this.Z=null,this.va.xa("sdai",{adchg:this.Bl}),this.api.ma("serverstitchedvideochange")):(this.ob=0,this.Bl++,this.Z=h,this.va.xa("sdai",{adchg:this.Bl,
apid:this.Z.Mc,acpn:this.Z.cpn}),this.api.ma("serverstitchedvideochange",h.Mc,h.Cr))):this.va.xa("sdai",{unknowntrans:"1",old:a,"new":b});this.I=!1}}};
g.k.Zs=function(a){var b=GT(this.api.wb());return b?b.Zs(a):!1};
var SRa=0;g.x(HW,g.E);HW.prototype.addPlayerResponsesForAssociation=function(a){a=g.v(a.entries());for(var b=a.next();!b.done;b=a.next()){var c=g.v(b.value);b=c.next().value;c=c.next().value;var d=b;b=c;this.j.set(d,b);c=this.timeline.u.get(d);d=void 0;if(null==(d=c)?0:d.length)for(c=g.v(c),d=c.next();!d.done;d=c.next())g.fM(d.value.videoData,b,!0)}};
HW.prototype.finishSegmentByCpn=function(){return[]};
HW.prototype.getDuration=function(){var a=this.timeline.j;if(!a)return 0;var b=0;a=a.j.values();a=g.v(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b+=(c.ML()-c.vy())/1E3;return b};
HW.prototype.qa=function(){this.j.clear();g.E.prototype.qa.call(this)};g.x(oSa,g.E);g.k=oSa.prototype;g.k.onCueRangeEnter=function(a){if(this.j===this.api.Pc()){var b=this.I.get(a);b?uSa(this,b.target,b.Yl,a):this.Ld("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.u.find(function(e){return e.Rr.oe===a})){var c=b.Rr,d=c.target;
c=c.Yl;d?uSa(this,d,c,a):tSa(this,b.Fd,c,a)}};
g.k.onQueuedVideoLoaded=function(){var a=this.J;LW(this);if(a){if(!KW(this,a)){var b=this.api.Pc();this.Ld("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:null==b?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}this.api.Pc().addCueRange(a.Rr.oe)}};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)nSa(this,a);else{b=this.api.Pc();var d=b===this.C?this.D:null;MW(this,!1);this.ea=a;null!=c&&this.V.start(c);b&&(this.D=d||b.getPlayerState(),u0a(b),this.C=b)}};
g.k.Gi=function(a){g.bO(a,128)&&zSa(this)};
g.k.isManifestless=function(){return mM(this.j.getVideoData())};
g.k.qa=function(){MW(this,!1);BSa(this);g.E.prototype.qa.call(this)};
g.k.Ld=function(a,b){this.j.Ld(new SK(a,b))};
var pSa=0;var CSa="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_EMBEDDED_PLAYER WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.x(OW,g.E);g.k=OW.prototype;g.k.get=function(a){ESa(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
g.k.set=function(a,b,c){this.remove(a,!0);ESa(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.GA)()+c);for(this.data.push(a);this.data.length>this.B;)(c=this.data.shift())&&PW(this,c,!0);NW(this)};
g.k.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(PW(this,c,b),g.Bb(this.data,function(d){return d.key===a}),NW(this))};
g.k.Df=function(){var a;if(a=void 0===a?!1:a)for(var b=g.v(this.data),c=b.next();!c.done;c=b.next())PW(this,c.value,a);this.data=[];NW(this)};
g.k.qa=function(){var a=this;g.E.prototype.qa.call(this);this.data.forEach(function(b){PW(a,b,!0)});
this.data=[]};g.x(QW,g.E);QW.prototype.OF=function(a){if(a)return this.u.get(a)};
QW.prototype.qa=function(){this.j.Df();this.u.Df();g.E.prototype.qa.call(this)};g.x(RW,g.dq);RW.prototype.ma=function(a){var b=g.Ca.apply(1,arguments);if(this.D.has(a))return this.D.get(a).push(b),!0;var c=!1;try{for(b=[b],this.D.set(a,b);b.length;)c=g.dq.prototype.ma.call.apply(g.dq.prototype.ma,[this,a].concat(g.la(b.shift())))}finally{this.D.delete(a)}return c};g.x(GSa,g.E);GSa.prototype.qa=function(){g.E.prototype.qa.call(this);this.j=null;this.u&&this.u.disconnect()};g.Edb=Id(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var j4;j4={};g.SW=(j4.STOP_EVENT_PROPAGATION="html5-stop-propagation",j4.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",j4.IV_DRAWER_OPEN="ytp-iv-drawer-open",j4.MAIN_VIDEO="html5-main-video",j4.VIDEO_CONTAINER="html5-video-container",j4.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",j4.HOUSE_BRAND="house-brand",j4);g.x(JSa,g.V);g.k=JSa.prototype;g.k.Dr=function(){g.Jp(this.element,g.Ca.apply(0,arguments))};
g.k.nj=function(){this.hc&&(this.hc.removeEventListener("focus",this.IN),g.jf(this.hc),this.hc=null)};
g.k.eL=function(){this.isDisposed();var a=this.app.T();a.xm||this.Dr("tag-pool-enabled");a.J&&this.Dr(g.SW.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.Dr("ytp-gvn"),this.element.style.backgroundColor="transparent");a.Gc&&(this.TK=g.lC("yt-dom-content-change",this.resize,this));this.S(window,"orientationchange",this.resize,this);this.S(window,"resize",this.resize,this)};
g.k.PD=function(a){g.nK(this.app.T());this.kG=!a;TW(this)};
g.k.resize=function(){if(this.hc){var a=this.Fj();if(!a.isEmpty()){var b=!g.ye(a,this.xz.getSize()),c=OSa(this);b&&(this.xz.width=a.width,this.xz.height=a.height);a=this.app.T();(c||b||a.Gc)&&this.app.Ua.ma("resize",this.getPlayerSize())}}};
g.k.Fs=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.hc){var b=this.app.T();kB&&(this.hc.setAttribute("x-webkit-airplay","allow"),a.title?this.hc.setAttribute("title",a.title):this.hc.removeAttribute("title"));Hza(a)?this.hc.setAttribute("disableremoteplayback",""):this.hc.removeAttribute("disableremoteplayback");this.hc.setAttribute("controlslist","nodownload");b.xq&&a.videoId&&(this.hc.poster=a.vg("default.jpg"))}b=g.GM(a,"yt:bgcolor");this.eB.style.backgroundColor=b?b:"";this.mN=jz(g.GM(a,"yt:stretch"));this.nN=
jz(g.GM(a,"yt:crop"),!0);g.Mp(this.element,"ytp-dni",a.pd);this.resize()};
g.k.setGlobalCrop=function(a){this.cM=jz(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.QS=a;this.resize()};
g.k.Xl=function(){};
g.k.getPlayerSize=function(){var a=this.app.T(),b=this.app.Ua.isFullscreen();if(b&&Ty())return new g.xe(window.outerWidth,window.outerHeight);if(b||a.Un){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.HC&&this.HC.media===a||(this.HC=window.matchMedia(a));var c=this.HC&&this.HC.matches}if(c)return new g.xe(window.innerWidth,window.innerHeight)}else if(!isNaN(this.yB.width)&&!isNaN(this.yB.height))return this.yB.clone();return new g.xe(this.element.clientWidth,
this.element.clientHeight)};
g.k.Fj=function(){var a=this.app.T().K("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.jJ(this.app.T().experiments,"player_underlay_min_player_width");return a&&this.vO&&b.width>c?new g.xe(b.width*g.jJ(this.app.T().experiments,"player_underlay_video_width_fraction"),b.height):b};
g.k.getVideoAspectRatio=function(){return isNaN(this.mN)?LSa(this):this.mN};
g.k.getVideoContentRect=function(a){var b=this.Fj();a=MSa(this,b,this.getVideoAspectRatio(),a);return new g.Gm((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.Pz=function(a){this.vO=a;this.resize()};
g.k.sG=function(){return this.uH};
g.k.onMutedAutoplayChange=function(){TW(this)};
g.k.setInternalSize=function(a){g.ye(this.yB,a)||(this.yB=a,this.resize())};
g.k.qa=function(){this.TK&&g.mC(this.TK);this.nj();g.V.prototype.qa.call(this)};g.k=PSa.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.CE();c&&a.visualElement&&g.oP(c,a.visualElement,b)};
g.k.sb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=jta(c);a.visualElement=c;var f=g.CE(),h=g.BE();f&&h&&g.iy(g.fP)(void 0,f,h,c);g.lb(b,function(){QSa(e,a)});
d&&this.u.add(a)};
g.k.Yf=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.lb(b,function(){QSa(d,a)});
c&&this.u.add(a)};
g.k.aL=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,tP().xk(a),RSa(this))};
g.k.jg=function(a,b){this.elements.has(a);b&&(a.visualElement=g.yE(b))};
g.k.Ek=function(a){return this.elements.has(a)};SSa.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
SSa.prototype.getPlaybackRate=function(){return this.playbackRate};WSa.prototype.seek=function(a,b){a!==this.j&&(this.seekCount=0);this.j=a;var c=this.videoTrack.u,d=this.audioTrack.u,e=this.audioTrack.Vb,f=ZSa(this,this.videoTrack,a,this.videoTrack.Vb,b);b=ZSa(this,this.audioTrack,this.policy.tf?a:f,e,b);a=Math.max(a,f,b);this.C=!0;this.Sa.isManifestless&&(XSa(this.videoTrack,c),XSa(this.audioTrack,d));return a};
WSa.prototype.fh=function(){return this.C};
var YSa=2/24;dTa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.GA)()};g.x(fTa,g.aE);g.k=fTa.prototype;
g.k.RN=function(a,b,c,d){if(this.C&&d){d=[];var e=[],f=[],h=void 0,l=0;b&&(d=b.j,e=b.u,f=b.C,h=b.B,l=b.RA);this.C.cO(a.Ma,a.startTime,this.u,d,e,f,c,l,h)}if(c){if(b&&!this.ya.has(a.Ma)){c=a.startTime;d=[];for(e=0;e<b.j.length;e++)f=b.j[e],h=c,c=h+b.u[e],d.push({startTime:h,endTime:c,adCpn:f});this.ya.set(a.Ma,d)}this.policy.Wd&&(c=this.oa&&a.Ma===this.oa.Ma+1,this.oa=a,d=this.j&&a.Ma===this.j.Ma+1,d=this.j&&c&&d&&"stop"!==this.j.kf.event&&"predictStart"!==this.j.kf.event,e=a.kf||null,f=this.V.j.index.ud()<=
a.Ma,h=this.Sa.isManifestless&&this.policy.Zn,e?(this.j={kf:e,Ma:a.Ma,fC:!!b},f?dX(this,e,a.Ma):h&&(c?d?dX(this,e,a.Ma):"continue"===e.event||"stop"===e.event?iTa(this,a):dX(this,e,a.Ma):dX(this,e,a.Ma))):(d&&iTa(this,a),4===this.u&&eX(this,5,"qend")))}};
g.k.QN=function(a,b,c){var d=this.V.j.index.ud()<=b;this.j={kf:a,Ma:b,fC:c};d&&dX(this,a,b)};
g.k.Tu=function(){this.C&&this.C.Tu()};
g.k.xa=function(a,b){this.Fa.xa(a,b)};
g.k.mp=function(a,b){var c=this.V.j.index.rh(a),d;if(d=0<=c){var e;d=(null==(e=FW(b.jd,c,2))?void 0:e.Pr)||""}if(d)return b.kI(a,c),sXa(this.Fa,a,a,c),this.xa("sdai",{cmskpad:1,t:a.toFixed(3),sq:c}),!0;this.xa("sdai",{cmskpad:0,t:a.toFixed(3),sq:c});return!1};
g.k.Fy=function(a){var b="",c=this.V.j.index.rh(a);if(c=this.ya.get(c)){c=g.v(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.startTime<=a&&a<d.endTime){b=d.adCpn;break}}return b};jTa.prototype.bA=function(a){var b=this.policy.ya;this.policy.ya=ZI(a,{},this.D);if(b!==this.policy.ya){iX(this,this.B);jX(this);var c,d;b>this.policy.ya&&(null==(c=this.j)?0:HH(c.info))&&(null==(d=this.nextVideo)||!HH(d.info))&&(this.V=!0)}};wTa.prototype.Vq=function(a){this.timestampOffset=a};ITa.prototype.dispose=function(){this.oa=!0};
ITa.prototype.isDisposed=function(){return this.oa};
g.x(tX,Error);XTa.prototype.skip=function(a){this.offset+=a};
XTa.prototype.Xp=function(){return this.offset};g.k=aUa.prototype;g.k.aU=function(){return this.u};
g.k.wk=function(){this.u=[];xX(this);$Ta(this)};
g.k.gw=function(a){this.Pa=this.u.shift().info;a.info.equals(this.Pa)};
g.k.Om=function(){return g.$l(this.u,function(a){return a.info})};
g.k.Fk=function(){return!!this.I.info.audio};
g.k.getDuration=function(){return this.I.index.ws()};var sUa=0;g.k=AX.prototype;g.k.Yr=function(){this.oa||(this.oa=this.callbacks.Yr?this.callbacks.Yr():1);return this.oa};
g.k.uG=function(){return this.Ik?1!==this.Yr():!1};
g.k.Iv=function(){this.Pa=this.now();this.callbacks.Iv()};
g.k.kt=function(a,b){wUa(this,a,b);50>a-this.C&&DX(this)||xUa(this,a,b);this.callbacks.kt(a,b)};
g.k.Jq=function(){this.callbacks.Jq()};
g.k.bv=function(){return this.u>this.jH&&zUa(this,this.u)};
g.k.now=function(){return(0,g.GA)()};GX.prototype.feed=function(a){JF(this.j,a);this.gf()};
GX.prototype.gf=function(){if(this.C){if(!this.j.totalLength)return;var a=this.j.split(this.B-this.u),b=a.gC;a=a.Xk;this.callbacks.WN(this.C,b,this.u,this.B);this.u+=b.totalLength;this.j=a;this.u===this.B&&(this.C=this.B=this.u=void 0)}for(;;){var c=0;a=g.v(GUa(this.j,c));b=a.next().value;c=a.next().value;c=g.v(GUa(this.j,c));a=c.next().value;c=c.next().value;if(0>b||0>a)break;if(!(c+a<=this.j.totalLength)){if(!(this.callbacks.WN&&c+1<=this.j.totalLength))break;c=this.j.split(c).Xk;this.callbacks.WN(b,
c,0,a)&&(this.C=b,this.u=c.totalLength,this.B=a,this.j=new IF([]));break}a=this.j.split(c).Xk.split(a);c=a.Xk;this.callbacks.pz(b,a.gC);this.j=c}};
GX.prototype.dispose=function(){this.j=new IF};g.k=HX.prototype;g.k.FL=function(){return 0};
g.k.PF=function(){return null};
g.k.NT=function(){return null};
g.k.Ns=function(){return 1<=this.state};
g.k.isComplete=function(){return 3<=this.state};
g.k.Wm=function(){return 5===this.state};
g.k.onStateChange=function(){};
g.k.pc=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)};
g.k.kz=function(a){a&&this.state<a?this.pc(a):this.callback&&this.callback(this,this.state)};
g.k.isDisposed=function(){return-1===this.state};
g.k.dispose=function(){this.isDisposed()||(this.info.gb[0].j.C=!1,this.pc(-1))};
g.k.XL=function(){return 0};g.k=IUa.prototype;g.k.nz=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.callbacks.Iv()};
g.k.onError=function(){this.C=!0;this.onDone()};
g.k.onDone=function(){this.isDisposed||(this.u&&(this.j.append(this.u),delete this.u),this.callbacks.Jq())};
g.k.Vu=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}};
g.k.GB=function(){return+this.getResponseHeader("content-length")};
g.k.Il=function(){return this.B};
g.k.yD=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.lq=function(){return 0<this.j.totalLength};
g.k.ew=function(){var a=this.j;this.j=new IF;return a};
g.k.oH=function(){return this.j};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.Ht=function(){return!0};
g.k.EH=function(){return this.C};
g.k.zf=function(){return""};g.k=KUa.prototype;g.k.getResponseHeader=function(a){return"content-type"===a?this.j.get("type"):""};
g.k.abort=function(){};
g.k.Vu=function(){return!0};
g.k.GB=function(){return this.range.length};
g.k.Il=function(){return this.loaded};
g.k.yD=function(){return!!this.loaded};
g.k.lq=function(){return!!this.u.totalLength};
g.k.ew=function(){var a=this.u;this.u=new IF;return a};
g.k.oH=function(){return this.u};
g.k.Ht=function(){return!0};
g.k.EH=function(){return!!this.error};
g.k.zf=function(){return this.error};g.k=MUa.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.ea);this.B&&(b.signal=this.B.signal);a=new Request(a,b);fetch(a).then(this.oa,this.onError).then(void 0,mA)};
g.k.onDone=function(){this.isDisposed()||this.callbacks.Jq()};
g.k.getResponseHeader=function(a){return this.D?this.D.get(a):null};
g.k.Vu=function(){return!!this.D};
g.k.Il=function(){return this.u};
g.k.GB=function(){return+this.getResponseHeader("content-length")};
g.k.yD=function(){return 200<=this.status&&300>this.status&&!!this.u};
g.k.lq=function(){return!!this.j.totalLength};
g.k.ew=function(){var a=this.j;this.j=new IF;return a};
g.k.oH=function(){return this.j};
g.k.isDisposed=function(){return this.I};
g.k.abort=function(){this.gp&&this.gp.cancel().catch(function(){});
this.B&&this.B.abort();this.I=!0};
g.k.Ht=function(){return!0};
g.k.EH=function(){return this.J};
g.k.zf=function(){return this.errorMessage};g.k=NUa.prototype;g.k.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.j=!0;this.callbacks.Jq()}};
g.k.nz=function(){2===this.xhr.readyState&&this.callbacks.Iv()};
g.k.Ie=function(a){this.isDisposed||(this.status=this.xhr.status,this.j||(this.u=a.loaded),this.callbacks.kt((0,g.GA)(),a.loaded))};
g.k.Vu=function(){return 2<=this.xhr.readyState};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.AD(Error("Could not read XHR header "+a)),""}};
g.k.GB=function(){return+this.getResponseHeader("content-length")};
g.k.Il=function(){return this.u};
g.k.yD=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.u};
g.k.lq=function(){return this.j&&!!this.response&&!!this.response.byteLength};
g.k.ew=function(){var a=this.response;this.response=void 0;return new IF([new Uint8Array(a)])};
g.k.oH=function(){return new IF([new Uint8Array(this.response)])};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.Ht=function(){return!1};
g.k.EH=function(){return!1};
g.k.zf=function(){return""};g.x(IX,g.E);g.k=IX.prototype;g.k.I8=function(){if(!this.isDisposed()&&!this.D){var a=(0,g.GA)(),b=!1;DX(this.timing)?(a=this.timing.ea,uUa(this.timing),this.timing.ea-a>=.8*this.policy.Ud?(this.u++,b=this.u>=this.policy.ym):this.u=0):(b=this.timing,b.Ik&&FUa(b,b.now()),a-=b.V,this.policy.Ti&&0<a&&(this.u+=1),b=Oua(JX(this),this.policy,!1)*this.policy.tm,b=a>1E3*b);0<this.u&&this.callbacks.qU();b?this.gE(!1):this.j.start()}};
g.k.gE=function(a){a&&(a=JX(this),a.u+=1);this.callbacks.PA();this.lastError="net.timeout";KX(this)};
g.k.canRetry=function(a){var b=JX(this);a=a?3:this.policy.Uf;return b.timedOut<this.policy.wq&&b.j<a};
g.k.Ye=function(){return this.lastError};
g.k.ys=function(){return this.u};
g.k.dispose=function(){this.j.dispose();g.E.prototype.dispose.call(this)};g.x(ZW,HX);g.k=ZW.prototype;g.k.YF=function(){return this.timing.requestNumber};
g.k.Ze=function(){return this.Le.Ze()};
g.k.Up=function(){var a=SUa(this.Cd);if(this.rj){var b=this.rj,c=b.j.totalLength;a.ulen=c;0<c&&(b=OF(b.j,0),a.ubyte=b,1===c&&0===b&&(a.b248180278=!0))}this.Jg&&(a.rc=this.policy.Rk?this.Jg:this.Jg.toString());a.itag=this.info.gb[0].j.info.itag;a.ml=""+ +this.info.gb[0].j.Ig();a.sq=""+this.info.gb[0].Ma;this.Le&&(a.ifi=""+ +EF(this.info.j.B));410!==this.Jg&&500!==this.Jg&&503!==this.Jg||(a.fmt_unav="true");var d;(c=this.errorMessage||(null==(d=this.xhr)?void 0:d.zf()))&&(a.msg=c);this.XD&&(a.smb="1");
this.ge&&(d=this.ge.Ov(),d.length&&qva(d[0],a));this.info.Jm()&&(a.sdai="1");return a};
g.k.IT=function(){return CUa(this.timing)};
g.k.zf=function(){return this.xhr.zf()||""};
g.k.bv=function(){return this.isComplete()||this.timing.bv()};
g.k.kt=function(){!this.isDisposed()&&this.xhr&&(this.Jg=this.xhr.status,this.Pk()?this.kz(2):!this.zU&&this.bv()&&(this.kz(),this.zU=!0))};
g.k.Iv=function(){if(!this.isDisposed()&&this.xhr){if(!this.Ux&&this.xhr.Vu()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Ux=((0,g.GA)()-a)/1E3}this.xhr.Vu()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.yC&&!twa()&&g.Lz("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.Qo=a||this.Qo;this.iq=b||this.iq}};
g.k.Jq=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.policy.useUmp||this.Cd.j.stop(),this.Jg=a.status,a=this.mM(a),5===a?KX(this.Cd):this.pc(a),this.policy.useUmp&&this.Cd.j.stop())};
g.k.mM=function(a){if(RUa(this.Cd,this.xhr))return 5;var b="";if(WUa(this)){var c=a.oH();c.totalLength<=this.policy.xm&&(b=NF(c),b=RF(b),b=QD(b)?b:"")}if(b)return HG(JX(this.Cd)),this.info.Ck(this.Le,b),3;b=a.Il();if(this.rj){if(this.Sm(!0),!this.xY){if(this.yY)return HG(JX(this.Cd)),3;this.Cd.lastError="net.closed";return 5}}else{if((c=this.info.C)&&c!==b||a.EH())return this.Cd.lastError="net.closed",5;this.Sm(!0);if(!c&&this.ge&&(c=this.ge.Ov(),c.length&&!qva(c[0])))return this.Cd.lastError="net.closed",
5}c=HUa(this)?a.getResponseHeader("X-Bandwidth-Est"):0;if(a=HUa(this)?a.getResponseHeader("X-Bandwidth-Est3"):0)this.EX=!0,this.policy.zx&&(c=a);QUa(this.Cd,b,c?Number(c):0);return 4};
g.k.canRetry=function(){this.isDisposed();return this.Cd.canRetry(!!this.info.Jm())};
g.k.onStateChange=function(){this.isComplete()&&(this.policy.ql?this.PA():EX(this.timing))};
g.k.gE=function(a){this.Cd.gE(a)};
g.k.qU=function(){this.callback&&this.callback(this,this.state)};
g.k.ys=function(){return this.Cd.ys()};
g.k.dispose=function(){HX.prototype.dispose.call(this);this.Cd.dispose();this.policy.ql||this.PA()};
g.k.PA=function(){this.xhr&&this.xhr.abort();EX(this.timing)};
g.k.Vj=function(){if(!this.Ov().length)return[];this.pM=!0;return this.ge.Vj()};
g.k.Pk=function(){if(1>this.state)return!1;if(this.ge&&this.ge.Ke.length)return!0;var a;return(null==(a=this.xhr)?0:a.lq())?!0:!1};
g.k.Ov=function(){this.Sm(!1);return this.ge?this.ge.Ov():[]};
g.k.Sm=function(a){try{if(a||this.xhr.Vu()&&this.xhr.lq()&&!WUa(this)&&!this.sz){if(!this.ge){var b;this.xhr.Ht()||this.rj?b=this.info.C:b=this.xhr.Il();this.ge=new bW(this.policy,this.info.gb,b)}this.xhr.lq()&&(this.rj?this.rj.feed(this.xhr.ew()):cW(this.ge,this.xhr.ew(),a&&!this.xhr.lq()))}}catch(c){this.rj?VUa(this,c):g.AD(c)}};
g.k.pz=function(a,b){switch(a){case 21:a=b.split(1).Xk;cW(this.ge,a,!1);break;case 22:this.xY=!0;cW(this.ge,new IF([]),!0);break;case 43:if(a=qL(new kL(b),1))this.info.Ck(this.Le,a),this.yY=!0;break;case 45:this.policy.dl&&(b=YLa(new kL(b)),a=b.VH,b=b.WH,a&&b&&(this.BK=a/b))}};
g.k.WN=function(a,b,c){if(21!==a)return!1;if(!c){if(1===b.totalLength)return!0;b=b.split(1).Xk}cW(this.ge,b,!1);return!0};
g.k.Il=function(){return this.xhr.Il()};
g.k.FL=function(){return this.Ux};
g.k.Yr=function(){return this.uG()?2:1};
g.k.uG=function(){if(!this.policy.I.dk||!isNaN(this.info.Rg)&&0<this.info.Rg)return!1;if(!this.xhr.Vu())return!0;if(this.rj)var a=!this.info.C;else this.xhr.GB()?a=!1:(a=this.xhr.getResponseHeader("content-type"),a="audio/mp4"===a||"video/mp4"===a||"video/webm"===a);return!a||isNaN(this.info.Rg)&&(a=this.xhr.getResponseHeader("x-head-seqnum"))&&Number(a)>this.info.gb[0].Ma?!1:!0};
g.k.XL=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.k.PF=function(){this.xhr&&(this.Qo=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Qo};
g.k.NT=function(){this.xhr&&(this.iq=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.iq};
g.k.Ye=function(){return this.Cd.Ye()};g.x(YW,HX);g.k=YW.prototype;g.k.onStateChange=function(){this.isDisposed()&&(fW(this.dg,this.formatId),this.j.dispose())};
g.k.Up=function(){var a=dRa(this.dg,this.formatId),b;var c=(null==(b=this.dg.Vc.get(this.formatId))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.dg.Vc.get(this.formatId))?void 0:d.Ox)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:eRa(this.dg,this.formatId),isEnded:this.dg.Ph(this.formatId)}};
g.k.IT=function(){return 0};
g.k.bv=function(){return!0};
g.k.Vj=function(){return this.dg.Vj(this.formatId)};
g.k.Ov=function(){return[]};
g.k.Pk=function(){return this.dg.Pk(this.formatId)};
g.k.Ye=function(){return this.lastError};
g.k.ys=function(){return 0};g.k=XUa.prototype;g.k.gw=function(a){this.C.gw(a);var b;null!=(b=this.J)&&(b.j=CTa(b,b.Ne,b.rz,b.j,a));this.dc=Math.max(this.dc,a.info.j.info.dc||0)};
g.k.getDuration=function(){return this.j.index.ws()};
g.k.wk=function(){$W(this);this.C.wk()};
g.k.RL=function(){return this.C};
g.k.isRequestPending=function(a){return this.B.length?a===this.B[this.B.length-1].info.gb[0].Ma:!1};
g.k.Vq=function(a){var b;null==(b=this.J)||b.Vq(a)};g.x(WX,g.E);
WX.prototype.Es=function(a){var b=a.info.gb[0].j,c=a.Ye();if(DF(b.u.j)){var d=g.$f(a.zf(),3);this.Fa.xa("dldbrerr",{em:d||"none"})}d=a.info.gb[0].Ma;var e=hTa(this.j,a.info.gb[0].C,d);"net.badstatus"===c&&(this.I+=1);if(a.canRetry()){if(!(3<=a.info.j.u&&this.u&&a.info.Jm()&&"net.badstatus"===a.Ye()&&this.u.Es(e,d))){d=(b.info.video&&1<b.u.u||410===a.Jg||500===a.Jg||503===a.Jg)&&!mX(this.B)&&!DF(b.u.j);e=a.Up();var f=b.info.video?this.videoTrack:this.audioTrack;d&&(e.stun="1");this.Fa.handleError(c,e);
this.isDisposed()||(d&&lX(this.B,b),TX(f,a),this.Fa.gf())}}else b=1,this.u&&a.info.Jm()&&"net.badstatus"===a.Ye()&&this.u.Es(e,d)&&(b=0),this.Sa.isLive&&"net.badstatus"===a.Ye()&&this.I<=2*this.policy.Uf?(lwa(this.Sa),this.Sa.Se||this.Sa.isPremiere?this.Fa.va.seekTo(0,{xe:"badStatusWorkaround"}):this.Sa.B?this.Fa.va.seekTo(this.Sa.Gb,{xe:"badStatusWorkaround",Er:!0}):IXa(this.Fa)):this.Fa.handleError(c,a.Up(),b)};
WX.prototype.qa=function(){g.E.prototype.qa.call(this)};
var tVa=2/24;g.x(ZX,g.E);ZX.prototype.ZG=function(a,b,c){var d;var e="m"===(null==(d=this.D)?void 0:d.reason)?"m":"a";this.Fa.ZG(new gX(this.u,this.I,e),c);YX(b,a);b.u&&(b.u.j=a)};
ZX.prototype.AX=function(a){for(var b=g.v(this.B),c=b.next();!c.done;c=b.next())if(c=c.value,c.id===a)return this.j=[c],this.u=this.Sa.j[a],new gX(this.u,this.I,"m");this.j=[];return null};$X.prototype.pz=function(a,b){switch(a){case 20:a=new kL(b);a={BU:nL(a,1),videoId:qL(a,2),itag:nL(a,3),gj:nL(a,4),xtags:qL(a,5),Hz:nL(a,6),Xm:oL(a,8),xt:nL(a,9),Q6a:nL(a,10),startMs:nL(a,11),durationMs:nL(a,12),Pq:nL(a,14),wN:nL(a,17),clipId:qL(a,1E3)};this.PN(a);break;case 21:this.NN(b,!1);break;case 22:this.Iq(b);break;default:this.GN(a,b)}};
$X.prototype.PN=function(){};
$X.prototype.GN=function(){};var aY,Fdb=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),k4={},pWa=(k4.a=1,k4.o=3,k4.meac3=5,k4.mac3=7,k4),l4={},oWa=(l4["1h"]=8,l4["9h"]=4,l4["1"]=8,l4["9"]=4,l4.h=2,l4),MVa=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["571","401","400","399","398"],["313","271","248","247"],["137","136"]],OVa=[["140"],["251"],["380"],["328"]],m4={},KVa=(m4["303"]=["411"],m4["299"]=["385"],m4["302"]=["409","410"],m4["298"]=["384","376"],m4["248"]=["360"],m4["247"]=
"274 357 358 317 273 318 280 279".split(" "),m4["136"]="145 224 225 144 222 223 143 142".split(" "),m4["140"]=["149"],m4["380"]=["381"],m4["328"]=["329"],m4),n4={},JVa=(n4["398"]=["397","396","395","394"],n4["247"]=["244","243","242"],n4["136"]=["135","134","133","160"],n4["251"]=["250"],n4),o4={},TVa=(o4["140"]={numChannels:2},o4["251"]={audioSampleRate:48E3,numChannels:2},o4["380"]={numChannels:6},o4["328"]={numChannels:6},o4),p4={},SVa=(p4["337"]={width:3840,height:2160,bitrate:3E7,fps:30},p4["336"]=
{width:2560,height:1440,bitrate:15E6,fps:30},p4["335"]={width:1920,height:1080,bitrate:75E5,fps:30},p4["702"]={width:7680,height:4320,bitrate:4E7,fps:60},p4["701"]={width:3840,height:2160,bitrate:2E7,fps:60},p4["700"]={width:2560,height:1440,bitrate:1E7,fps:60},p4["315"]={width:3840,height:2160,bitrate:2E7,fps:60},p4["308"]={width:2560,height:1440,bitrate:1E7,fps:60},p4["303"]={width:1920,height:1080,bitrate:5E6,fps:60},p4["302"]={width:1280,height:720,bitrate:25E5,fps:60},p4["299"]={width:1920,height:1080,
bitrate:75E5,fps:60},p4["298"]={width:1280,height:720,bitrate:35E5,fps:60},p4["571"]={width:7680,height:4320,bitrate:3E7,fps:60},p4["401"]={width:3840,height:2160,bitrate:15E6,fps:60},p4["400"]={width:2560,height:1440,bitrate:75E5,fps:60},p4["399"]={width:1920,height:1080,bitrate:2E6,fps:60},p4["398"]={width:1280,height:720,bitrate:1E6,fps:60},p4["313"]={width:3840,height:2160,bitrate:8E6,fps:30},p4["271"]={width:2560,height:1440,bitrate:4E6,fps:30},p4["248"]={width:1920,height:1080,bitrate:2E6,fps:30},
p4["247"]={width:1280,height:720,bitrate:15E5,fps:30},p4["137"]={width:1920,height:1080,bitrate:4E6,fps:30},p4["136"]={width:1280,height:720,bitrate:3E6,fps:30},p4),q4={},HVa=(q4["133"]=240,q4["134"]=360,q4["135"]=480,q4["136"]=720,q4["137"]=1080,q4["242"]=240,q4["243"]=360,q4["244"]=480,q4["247"]=720,q4["248"]=1080,q4["298"]=720,q4["299"]=1080,q4["302"]=720,q4["303"]=1080,q4["395"]=240,q4["396"]=360,q4["397"]=480,q4["398"]=720,q4["399"]=1080,q4),r4={},RVa=(r4["1"]='video/mp4; codecs="av01.0.08M.08"',
r4["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',r4["9"]='video/webm; codecs="vp9"',r4["("]='video/webm; codecs="vp9"',r4["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',r4.h='video/mp4; codecs="avc1.64001e"',r4.H='video/mp4; codecs="avc1.64001e"',r4.o='audio/webm; codecs="opus"',r4.a='audio/mp4; codecs="mp4a.40.2"',r4.mac3='audio/mp4; codecs="ac-3"; channels=6',r4.meac3='audio/mp4; codecs="ec-3"; channels=6',r4);g.x(jWa,$X);g.k=jWa.prototype;g.k.GN=function(a,b){switch(a){case 35:this.aD(b);break;case 44:this.cD(b);break;case 43:this.aO(b);break;case 53:this.YN(b);break;case 55:(a={timeline:rL(new kL(b),1,VVa)},a.timeline)&&a.timeline.kY&&this.callbacks.fD(a.timeline.kY);break;case 42:this.XC(b);break;case 45:this.dD(b)}};
g.k.dD=function(a){a=YLa(new kL(a));this.callbacks.dD(a)};
g.k.XC=function(a){a=new kL(a);a={videoId:qL(a,1),formatId:rL(a,2,bWa),endTimeMs:nL(a,3),W6a:nL(a,4),mimeType:qL(a,5),KU:rL(a,6,YVa),indexRange:rL(a,7,YVa)};this.callbacks.XC(a)};
g.k.aD=function(a){a=new kL(a);a={targetAudioReadaheadMs:nL(a,1),targetVideoReadaheadMs:nL(a,2),backoffTimeMs:nL(a,4),playbackCookie:pL(a,7)};this.callbacks.aD(a)};
g.k.YN=function(a){a=new kL(a);a={SW:nL(a,1),items:rya(a,2,eWa)};this.callbacks.YN(a)};
g.k.cD=function(a){a=new kL(a);a={w8:qL(a,1),action:nL(a,2)};this.callbacks.cD(a)};
g.k.aO=function(a){a={redirectUrl:qL(new kL(a),1)};this.callbacks.aO(a)};
g.k.NN=function(a){var b=OF(a,0);if(1!==a.totalLength&&(a=a.split(1).Xk,b=this.u[b]||null)){var c=this.callbacks;kRa(c.dg,b,a);mY(c.callbacks,c)}};
g.k.Iq=function(a){a=OF(a,0);(a=this.u[a]||null)&&this.callbacks.Iq(a)};
g.k.PN=function(a){var b=a.BU,c=a.Xm,d=a.Hz,e=a.wN,f=a.xt,h=a.startMs,l=a.durationMs,m=a.Pq,n=a.clipId,p=GVa(a);a=Fdb.has(EH[""+a.itag]);this.u[b]=p;this.callbacks.Gv(p,a,{Xm:!!c,Hz:null!=d?d:-1,xt:null!=f?f:-1,startMs:null!=h?h:-1,durationMs:null!=l?l:-1,Pq:m,wN:e},n)};g.x(kWa,g.E);g.k=kWa.prototype;g.k.kt=function(){!this.isDisposed()&&this.xhr&&this.Sm()};
g.k.Iv=function(){};
g.k.Jq=function(){if(!this.isDisposed()&&this.xhr){var a=this.mM();5===a?KX(this.Cd):this.pc(a);this.Cd.j.stop();var b;null==(b=this.FD)||b.stop()}};
g.k.mM=function(){if(RUa(this.Cd,this.xhr,this.info.fv()))return 5;this.Sm();if(this.wX)return 3;QUa(this.Cd,this.xhr.Il(),0);return 4};
g.k.Sm=function(){var a=this.xhr;a.lq()&&(a=a.ew(),this.rj.feed(a))};
g.k.pz=function(a,b){this.P8.pz(a,b)};
g.k.aD=function(a){this.callbacks.aD(a)};
g.k.YN=function(a){var b;null==(b=this.FD)||b.dispose();this.NO=a;a.SW&&(this.FD=new g.Ap(this.zV,a.SW,this));this.zV()};
g.k.zV=function(){var a;if(null!=(a=this.NO)&&a.items){var b;null==(b=this.FD)||b.start();b=(0,g.GA)()-this.Ch.j;a=1E3*this.Ch.u/b;b=lWa(this,b);if(!(a>b.PG||0<b.pN&&this.info.IL()>b.pN)){this.Cd.gE(!1);this.OO=(0,g.GA)();var c;null==(c=this.FD)||c.stop()}}};
g.k.cD=function(a){this.callbacks.cD(a)};
g.k.aO=function(a){this.wX=!0;this.info.j.Ck(this.Le,a.redirectUrl)};
g.k.fD=function(a){this.callbacks.fD(a)};
g.k.XC=function(a){if(this.policy.C){var b=a.videoId,c=a.formatId,d=GVa({videoId:b,itag:c.itag,gj:c.gj,xtags:c.xtags}),e=a.mimeType||"",f,h,l=new QG((null==(f=a.KU)?void 0:f.first)||0,(null==(h=a.KU)?void 0:h.dV)||0),m,n;f=new QG((null==(m=a.indexRange)?void 0:m.first)||0,(null==(n=a.indexRange)?void 0:n.dV)||0);this.Sa.I.get(d)||(a=this.Sa,d=a.j[c.itag],c=MI({lmt:""+c.gj,itag:""+c.itag,xtags:c.xtags,type:e},null),HI(a,new yH(d.V,c,l,f),b));this.policy.C&&this.callbacks.XC(b)}};
g.k.dD=function(a){a.VH&&a.WH&&this.callbacks.dD(a)};
g.k.canRetry=function(){this.isDisposed();return this.Cd.canRetry(!1)};
g.k.dispose=function(){if(!this.isDisposed()){g.E.prototype.dispose.call(this);this.Cd.dispose();var a;null==(a=this.FD)||a.dispose();this.pc(-1)}};
g.k.pc=function(a){this.state=a;mY(this.callbacks,this)};
g.k.fv=function(){return this.info.fv()};
g.k.Gv=function(a,b,c,d){d&&(this.clipId=d);this.dg.Gv(a,b,c,d)};
g.k.Iq=function(a){this.dg.Iq(a);mY(this.callbacks,this)};
g.k.Vj=function(a){return this.dg.Vj(a)};
g.k.Om=function(a){return this.dg.Om(a)};
g.k.Pk=function(a){return this.dg.Pk(a)};
g.k.Tp=function(){return this.dg.Tp()};
g.k.Yr=function(){return 1};
g.k.YF=function(){return this.Ch.requestNumber};
g.k.Zr=function(){return this.clipId};
g.k.TV=function(){this.PA()};
g.k.PA=function(){var a;null==(a=this.xhr)||a.abort();EX(this.Ch)};
g.k.isComplete=function(){return 3<=this.state};
g.k.XU=function(){return 3===this.state};
g.k.Wm=function(){return 5===this.state};
g.k.YU=function(){return 4===this.state};
g.k.Ns=function(){return 1<=this.state};
g.k.ys=function(){return this.Cd.ys()};
g.k.HT=function(){return this.info.data.AK};
g.k.qU=function(){};
g.k.Ye=function(){return this.Cd.Ye()};
g.k.Up=function(){var a=SUa(this.Cd);Object.assign(a,mWa(this.info));a.req="sabr";a.rn=this.YF();var b;if(null==(b=this.xhr)?0:b.status)a.rc=this.policy.Rk?this.xhr.status:this.xhr.status.toString();var c;(b=null==(c=this.xhr)?void 0:c.zf())&&(a.msg=b);this.OO&&(c=lWa(this,this.OO-this.Ch.j),a.letm=c.w4,a.mrbps=c.PG,a.mram=c.pN);return a};cY.prototype.fv=function(){return 1===this.requestType};
cY.prototype.IL=function(){var a;return(null==(a=this.callbacks)?void 0:a.IL())||0};g.x(dY,g.E);dY.prototype.encrypt=function(a){(0,g.GA)();if(this.u)var b=this.u;else this.B?(b=new TJ(this.B,this.j.j),g.I(this,b),this.u=b):this.u=new SJ(this.j.j),b=this.u;return b.encrypt(a,this.iv)};
dY.prototype.decrypt=function(a,b){(0,g.GA)();return(new SJ(this.j.j)).decrypt(a,b)};zWa.prototype.decrypt=function(a){var b=this,c,d,e,f,h,l;return g.A(function(m){switch(m.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return m.return();b.u=!0;b.Ok.Tc("omd_s");c=new Uint8Array(16);KJ()?d=new RJ(a):e=new SJ(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.Ka(3);break}f=b.j.shift();if(!d){h=e.decrypt(NF(f.buffer),c);m.Ka(4);break}return g.y(m,d.decrypt(NF(f.buffer),c),5);case 5:h=m.u;case 4:l=h;for(var n=0;n<c.length;n++)if(255===c[n])c[n]=0;else{c[n]+=1;break}n=new IF([l]);AWa(b.Ok.Md,
f.zP,n);m.Ka(2);break;case 3:b.Ok.K("html5_remove_deprecated_ticks")||b.Ok.Tc("omdf"),b.Ok.Tc("omd_c"),BWa(b),b.u=!1,b.Ok.ON(),g.ta(m)}})};var LWa=!!Uint8Array.prototype.copyWithin,fY=[],CWa=[],FWa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],hY=[],gY=[],iY=[],DWa=[];g.x(NWa,$X);g.k=NWa.prototype;g.k.ON=function(){this.Md.ON()};
g.k.GN=function(a,b){switch(a){case 10:var c=sL(b,ULa);a=c.f8;var d=!1;switch(a){case 0:this.C=!c.RW.p4;this.iv=c.RW.iv;break;case 2:break;case 23:var e=this.Md;c=c.P4;e.Tc("omp_r");c.videoId&&(e.Uv=c.videoId);e.Uv!==e.videoData.videoId&&(e.videoData.w1=e.Uv,e.xa("ompp","vid."+e.Uv));e.iN=!0;break;case 24:c=this.Md;c.Tc("omp_c");c.iN=!1;c.GD=!1;var f;null!=(f=null==(e=c.zg)?void 0:e.get(c.Uv))&&(f.B=!0);kY(c);break;default:d=!0}this.Md.Ll&&this.Md.xa("ombup","id.10;pt."+a+";len."+b.totalLength+(d?
";ignored.1":""));this.B=a;break;case 11:PWa(this,b);break;case 12:this.NN(b,!0);break;case 37:b=sL(b,PLa);(b.wK||b.eQ)&&b.videoId&&this.Md.BT.set(b.videoId,b);break;case 31:b=sL(b,VLa);this.Md.y4=b;break;default:this.Md.Ll&&this.Md.xa("ombup","id."+a+";len."+b.totalLength+";ignored.1")}};
g.k.PN=function(a){var b=a.BU,c=a.Xm,d=a.Hz,e=a.xt,f=a.startMs,h=a.durationMs,l=a.Pq,m=GVa(a),n=Fdb.has(EH[""+a.itag]);c&&this.Tc(n?"oais_r":"ovis_r");var p=void 0!==this.j[m];this.Md.Ll&&this.Md.xa("ombup","id.20;hid."+b+";fid"+m);this.u[b]=m;p||(this.j[m]={vU:!1,Fk:n,headers:[]});this.j[m].headers.push(a);this.Md.Gv(m,n,{Xm:!!c,Hz:null!=d?d:-1,xt:null!=e?e:-1,startMs:null!=f?f:-1,durationMs:null!=h?h:-1,Pq:null!=l?l:0})};
g.k.NN=function(a,b){var c=OF(a,0);this.Md.Ll&&this.Md.xa("ombup","id."+(b?12:21)+";len."+a.totalLength+";hid."+c);if(1!==a.totalLength&&(a=a.split(1).Xk,c=this.u[c]||null)){this.ai(this.j[c].Fk?"oafs_r":"ovfs_r");var d=this.queue;d.j.push({zP:c,buffer:a,isEncrypted:b});d.u||BWa(d)}};
g.k.Iq=function(a){var b=OF(a,0);this.Md.Ll&&this.Md.xa("ombup","id.22;len."+a.totalLength+";hid."+b);(a=this.u[b]||null)&&this.Md.Iq(a)};
g.k.VN=function(a,b){var c=this,d,e,f,h,l,m,n,p,q,t,w,z,C,G,O;return g.A(function(N){switch(N.j){case 1:c.Md.VN();d=NF(a);if(!b){f=d;N.Ka(2);break}return g.y(N,VWa(c.Md,d,c.iv),3);case 3:f=N.u;case 2:e=f;if(!c.Md.enableCompression){N.Ka(4);break}h=c.Md.T();m=null==(l=performance)?void 0:l.now();return g.y(N,MWa(e,h.Vd),5);case 5:e=N.u,c.Md.xa("decompression",{ds:"DecompressionStream"in window,wasm:!!h.Vd,rt:(null==(n=performance)?NaN:n.now())-m});case 4:try{p=sL(e,aMa)}catch(K){return q=K instanceof
Error?{name:K.name,message:K.message}:{},q.webcrypto=""+ +!!KJ(),q.enc=""+ +c.C,t=new SK("onesie.response.parse",q),N.return(Promise.reject(t))}if(1!==p.KW)return w={st:p.KW,webcrypto:""+ +!!KJ(),textencoder:""+ +!!g.Ja.TextEncoder},z=new SK("onesie.response.badproxystatus",w),N.return(Promise.reject(z));if(200!==p.FU)return C={st:p.FU},G=new SK("onesie.response.badstatus",C),N.return(Promise.reject(G));O=g.TF(p.body);return N.return(O)}})};
g.k.Tc=function(a){this.Md.Tc(a)};
g.k.ai=function(a){return this.Md.ai(a)};
g.k.K=function(a){return this.Md.K(a)};g.x(lY,g.E);g.k=lY.prototype;g.k.Zr=function(){return""};
g.k.Tp=function(a){var b,c;return(null==(c=null==(b=this.zg)?void 0:b.get(a))?void 0:c.Tp())||[]};
g.k.Pk=function(a){var b;return!(null==(b=eY(this,a))||!b.Pk(a))};
g.k.Vj=function(a){var b;return(null==(b=eY(this,a))?void 0:b.Vj(a))||[]};
g.k.Om=function(a){var b;return(null==(b=eY(this,a))?void 0:b.Om(a))||[]};
g.k.pc=function(a){this.state=a;this.notifySubscribers()};
g.k.fv=function(){return!1};
g.k.Tc=function(a){this.va.Tc(a)};
g.k.ai=function(a){return this.va.ai(a)};
g.k.pz=function(a,b){this.Ok.pz(a,b)};
g.k.HN=function(){this.Tc("orfb");this.qG=!0;if(WWa(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.Il(),rt:(1E3*CUa(this.Ch)).toFixed(),shost:g.Pi(this.hO),trigger:"o1"};this.xa("pathprobe",RK(a))}};
g.k.VN=function(){this.K("html5_remove_deprecated_ticks")||this.Tc("orpr");this.Tc("opr_r");this.yU=!0};
g.k.Gv=function(a,b,c){if(this.zg){var d=a.split(";")[0];if(!this.zg.has(d)){var e=new dW(this);this.zg.set(d,e);g.I(this,e)}var f;null==(f=this.zg.get(d))||f.Gv(a,b,c)}else null==(d=this.dg)||d.Gv(a,b,c);kY(this)};
g.k.ON=function(){if(this.zg)for(var a=g.v(this.zg.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;null==(c=this.zg.get(b.value))||c.kz()}};
g.k.xa=function(a,b,c){this.va.xa(a,b,void 0===c?!1:c)};
g.k.Iq=function(a){var b;null==(b=eY(this,a))||b.Iq(a)};
g.k.fetch=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,t,w,z,C,G,O,N,K,W,Z;return g.A(function(Q){switch(Q.j){case 1:a.qz.start();a.K("html5_remove_deprecated_ticks")||a.Tc("ogpd");a.Tc("or_i");b=a.Y.experiments.kb("html5_onesie_verbose_timing");c={};d=(0,g.GA)();e=function(na){b&&(c[na]=(0,g.GA)()-d)};
e("loc_s");if(f=RWa(a.videoData,a.Ky)){Q.Ka(2);break}e("loc_async");h=g.jJ(a.Y.experiments,"html5_onesie_redirector_timeout_ms");return g.y(Q,SWa(a.videoData,a.Ky,h),3);case 3:f=Q.u;case 2:if(!f)return a.logger.info("Onesie URL creation failed."),l={url:"0"},m=new SK("onesie.unavailable.hotconfig",l),a.fail(m),Q.return(a.qp);a.BX=CF(f);e("loc_e");n=g.QK(a.Y,g.YM(a.videoData));if(!n.j){p=n.getValue();Q.Ka(4);break}return g.y(Q,n.j,5);case 5:p=Q.u;case 4:q=p;e("oauth");t=rWa(a.playerRequest,a.Y,a.videoData,
q,$V(a.BX));g.ua(Q,6);if(a.K("html5_onesie_sync_request_encryption")||t.VD||g.JK(a.Y)&&a.K("html5_embed_onesie_use_sync_encryption")||!KJ()){e("or_s_sync");a.gO=tWa(t,a.hD,a.Y,a.videoData,a.va.getPlayerSize(),a.va.getVisibilityState(),a.cL.onesieUstreamerConfig,null==(w=a.videoData.JW)?void 0:w.pE);Q.Ka(8);break}e("or_s_async");C=a;return g.y(Q,xWa(t,a.hD,a.Y,a.videoData,a.va.getPlayerSize(),a.va.getVisibilityState(),a.cL.onesieUstreamerConfig,null==(z=a.videoData.JW)?void 0:z.pE),9);case 9:C.gO=
Q.u;case 8:g.va(Q,7);break;case 6:return G=g.xa(Q),a.logger.info("Failed to create OnesieRequestProto."),a.fail(G),Q.return(a.qp);case 7:return e("or_e"),b&&a.xa("oreqvt",c),a.enableCompression=a.gO.CM.jL,a.Tc("osor"),O=KLa(),N=g.BL(a.gO,XLa),K={method:"POST",body:N,headers:{"Content-Type":"text/plain",Referer:location.origin}},W=a.K("html5_onesie_media_capabilities"),TWa(f,a.videoData,YWa(a),W),a.Ll&&a.xa("ombrs","1"),Z=a.va.T().schedule,a.Ch=new AX(a,{Ih:Z,kL:a.Ll,Bz:function(na,r){a.va.AD(na,r)},
Fm:a.K("html5_disable_bandwidth_cofactors_for_sabr")}),f.set("rn",""+a.Ch.requestNumber),a.hO=f.Ze(),vUa(a.Ch,a.hO),a.K("html5_remove_deprecated_ticks")||a.Tc("ocs"),a.Tc("or_p"),a.xhr=OUa(new FG(f),O,a.Ch,AM,K),a.IW.start(),Q.return(a.qp)}})};
g.k.Iv=function(){this.Tc("orh_r")};
g.k.kt=function(){!this.qG&&this.xhr.Il()&&this.HN();if(this.qC){var a;null==(a=this.hH)||a.start()}this.Sm()};
g.k.Jq=function(){this.Sm();if(!this.isDisposed()){var a=UWa(this),b=this.xhr;a.rc=b.status;if(b.zf()){var c="onesie.net";a.msg=b.zf()}else 400<=b.status?c="onesie.net.badstatus":b.yD()?this.yU||(c="onesie.response.noplayerresponse"):c=204===b.status?"onesie.net.nocontent":"onesie.net.connect";c?this.fail(new SK(c,a)):(this.K("html5_remove_deprecated_ticks")||this.Tc("orf"),this.Tc("or_fs"),yUa(this.Ch,(0,g.GA)(),b.Il(),0),this.pc(4),this.Ll&&this.xa("rqs",a));this.Ll&&this.xa("ombre","ok."+ +!c);
this.GD=!1;kY(this);OWa(this.Ok);this.qz.stop();var d;null==(d=this.hH)||d.stop();var e;if(c=null==(e=this.Ky)?void 0:UQa(e))for(e=0;e<c.length;e++)this.xa("pathprobe",c[e])}};
g.k.HT=function(){};
g.k.TV=function(){if(this.playerResponse){var a;null==(a=this.xhr)||a.abort()}};
g.k.T=function(){return this.Y};
g.k.K=function(a){return this.Y.K(a)};
g.k.M4=function(){if(WWa(this)&&this.Ky&&(!this.qG||this.K("html5_onesie_probe_ec_hosts"))){var a=this.Ky;if(a.Y.experiments.kb("html5_onesie_probe_ec_hosts")){var b,c=null==(b=a.j.get(3))?void 0:CF(b.location);c&&ZV(a,c,"osc",this);var d;(c=null==(d=a.j.get(4))?void 0:CF(d.location))&&ZV(a,c,"ocy",this)}else{var e;(d=null==(e=a.j.get(1))?void 0:CF(e.location))&&ZV(a,d,"o2",this);(d=null==(c=a.j.get(2))?void 0:CF(c.location))&&ZV(a,d,"o3",this)}}};
g.k.rU=function(){this.logger.info("Onesie request timed out");this.GD=!1;if(!kY(this)){var a=UWa(this);a.timeout="1";this.fail(new SK("onesie.request",a))}};
g.k.fail=function(a){var b=this;a=UK(a);this.qC?this.va.Ld(a):(this.qp.reject(a),this.qC=!0);OWa(this.Ok);this.qz.stop();this.K("html5_remove_deprecated_ticks")||this.Tc("ore");this.Tc("or_fe");var c,d;null==(c=this.Ky)||null==(d=UQa(c))||d.forEach(function(e){b.xa("pathprobe",e)});
this.pc(5);this.dispose()};
g.k.isComplete=function(){return 3<=this.state};
g.k.YU=function(){return 4===this.state};
g.k.XU=function(){return!1};
g.k.Wm=function(){return 5===this.state};
g.k.notifySubscribers=function(a){a=a?a.split(";")[0]:"";for(var b=0;b<this.YD.length;b++)a&&this.YD[b].Pd()!==a||mY(this.YD[b],this)};
g.k.qa=function(){this.playerResponse="";var a;null==(a=this.xhr)||a.abort();OWa(this.Ok);this.rj.dispose();var b;null==(b=this.hH)||b.dispose();this.YD=[];this.pc(-1);g.E.prototype.qa.call(this)};
g.k.Sm=function(){try{var a=this.xhr;102400<a.Il()&&!this.RU&&(this.Tc("or100k"),this.RU=!0);if(a.lq()){var b=a.ew(),c=b.totalLength;this.Ll&&this.xa("ombrss","len."+c);this.rj.feed(b)}if(this.zg)for(var d=g.v(this.zg.keys()),e=d.next();!e.done;e=d.next())a=void 0,null==(a=this.zg.get(e.value))||a.kz()}catch(f){this.fail(f)}};g.x($Wa,g.E);g.k=$Wa.prototype;g.k.Es=function(a){if(a instanceof lY)cXa(this,a);else{var b=1;a.canRetry()&&(cXa(this,a),b=0);this.Fa.handleError(a.Ye(),a.Up(),b);!this.policy.Pw||"net.badstatus"!==a.Ye()&&"net.connect"!==a.Ye()||this.Fa.mB(a.Up())}};
g.k.aD=function(a){this.C=a;this.D=(0,g.GA)()+(a.backoffTimeMs||0)};
g.k.cD=function(a){if(void 0!==a.action){var b={};b.reason=a.w8;b.action=a.action;switch(a.action){case 1:this.Fa.qF(b);break;case 0:this.Fa.mB(b);break;case 2:this.Fa.handleError("sabr.config",b,1)}}};
g.k.fD=function(a){this.ea.K("html5_enable_ssap")&&this.Fa.fD(a)};
g.k.XC=function(a){this.V=a};
g.k.dD=function(a){a.VH&&a.WH&&(a=a.VH/a.WH,this.audioTrack.V=!1,this.videoTrack.V=!1,this.Fa.va.seekTo(a,{xe:"sabr_seek",AC:!0,PX:!0}))};
g.k.Pd=function(){return this.va.Pd()||""};
g.k.IL=function(){var a=1E3*RX(this.audioTrack,!0),b=1E3*RX(this.videoTrack,!0);return Math.min(a,b)};
g.k.gG=function(a){xXa(this.Fa,rTa(this.I,a))};
g.k.qa=function(){g.E.prototype.qa.call(this);this.C=void 0;fXa(this,!0);this.j=[]};hXa.prototype.gf=function(a,b){if(this.C)return mXa(this,b);if(b=cX(a)){var c=b.u;c&&c.D&&c.u&&(a=a.B.length?a.B[0]:null)&&2<=a.state&&!a.Wm()&&0===a.info.Rg&&(this.C=a,this.J=c,this.u=b.info,this.I=this.startTimeSecs=Date.now()/1E3,this.D=this.u.startTime)}return NaN};
hXa.prototype.clear=function(){this.u=this.J=this.C=null;this.j=this.D=this.I=this.startTimeSecs=NaN;this.B=!1};g.x(g.oY,g.E);g.k=g.oY.prototype;
g.k.initialize=function(a,b,c){a=a||0;yT(this.policy)||this.va.ZC(nX(this.ye));if(this.Sa.isManifestless){if(this.policy.Sk){b=aua(this.policy);for(var d in this.Sa.j)this.Sa.j.hasOwnProperty(d)&&(this.Sa.j[d].index.B=b)}BVa(this.u)}this.C&&jXa(this.C,this.videoTrack.j);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.Sa.isManifestless?d:a;if(this.policy.B){var e;(null==(e=this.Wa)?0:ZWa(e,this.Pd()||""))&&qXa(this)&&pXa(this,this.videoTrack)&&pXa(this,this.audioTrack)&&gXa(this.Z,
this.Wa)}else this.V&&(rXa(this,this.videoTrack),rXa(this,this.audioTrack),cRa(this.V),delete this.V);c?(this.policy.le?(this.Ya=c,qY(this,c)):qY(this,!1),g.Bp(this.DG)):(a=0===this.currentTime,XX(this.u,this.videoTrack,this.videoTrack.j,a),XX(this.u,this.audioTrack,this.audioTrack.j,a),this.seek(this.currentTime,{}).Zj(function(){}),this.timing.tick("gv"));
(this.Sa.Ge||this.Sa.Wg||this.Sa.Gb||this.Sa.Uc||this.Sa.td)&&this.xa("minMaxSq",{minSq:this.Sa.Ge,maxSq:this.Sa.Wg,minDvrTime:this.Sa.Gb,maxDvrTime:this.Sa.Uc,startWalltime:this.Sa.td})};
g.k.resume=function(){if(this.isSuspended||this.Ry){this.pF=this.Ry=this.isSuspended=!1;try{this.gf()}catch(a){g.zD(a)}}};
g.k.jy=function(a){a=void 0===a?!1:a;vXa(this);CI(this.va)&&(this.D=NaN);a?(this.policy.Aa&&this.xa("loader",{setsmb:1}),this.policy.oa=!0):this.policy.le?qY(this,this.Ya):qY(this,!1);this.wk()};
g.k.setAudioTrack=function(a,b){if(!this.isDisposed()){if(yT(this.policy))var c=this.ya.AX(a.id);else{c=this.ye;var d=this.policy.kx&&!isNaN(b);c.u=c.Sa.j[a.id];c.I=c.u;c=new gX(c.I,c.j,d?"t":"m")}rY(this.va,c.reason,c.audio.info);if(!isNaN(b)&&(c=this.audioTrack.j.index.rh(b),this.xa("setAudio",{id:a.id,cmt:b,sq:c}),0<=c)){hVa(this.audioTrack,c,NaN,NaN);SI(this.Sa,c,!1);return}sY(this.va)}};
g.k.setPlaybackRate=function(a){a!==this.J.getPlaybackRate()&&this.J.setPlaybackRate(a)};
g.k.ZG=function(a,b){b?this.policy.nh&&rY(this.va,a.reason,a.audio.info):this.va.ZC(a)};
g.k.gG=function(a){XG(a.gb[a.gb.length-1])&&xXa(this,rTa(this.ye,a.gb[0].j))};
g.k.YL=function(){return this.va.YL()};
g.k.Ey=function(){return this.va.Ey()};
g.k.Im=function(){return this.va.Im()};
g.k.eO=function(a){this.va.eO(a)};
g.k.gf=function(){wXa(this);if(this.Xa&&zI(this.Xa)&&!this.Xa.dj()){var a=NX(this.videoTrack);a=this.policy.jx&&a&&VG(a);this.Sa.isManifestless&&this.Sa.B&&PI(this.Sa)?(this.D=PI(this.Sa),this.Xa.Tk(this.D)):nwa(this.Sa)&&!a?isNaN(this.D)?(this.D=this.currentTime+3600,this.Xa.Tk(this.D)):this.D<=this.currentTime+1800&&(this.D=Math.max(this.D+1800,this.currentTime+3600),this.Xa.Tk(this.D)):this.Xa.isView||(a=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()),(!isFinite(this.D)||
this.D!==a)&&0<a&&(this.Xa.Tk(a),this.D=a))}if(!this.isDisposed())if(OI(this.Sa)&&this.Sa.Wm()){var b=this.Sa;this.handleError("manifest.net.retryexhausted",b.Pa?{rc:b.Jg}:{rc:b.Jg.toString()},1)}else if(this.policy.B){try{this.Sa.isManifestless&&this.policy.Vd&&bTa(this.j);dXa(this.Z);yT(this.policy)||pY(this);b=this.Z;if(aXa(b)){var c=cVa(b.audioTrack),d=cVa(b.videoTrack),e=[].concat(g.la(c.Ne),g.la(d.Ne));a=[];b.policy.Tf&&(a=[].concat(g.la(c.xn),g.la(d.xn)));var f,h=null==(f=b.Fa)?void 0:f.tG(),
l=b.policy.Vd&&h,m=b.va.getCurrentTime()||0,n=l?Number.MAX_SAFE_INTEGER:1E3*m,p={videoData:b.videoData,Sa:b.Sa,sH:b.va.getPlayerSize(),visibilityState:b.va.getVisibilityState(),Ne:e,xn:a,Ju:n,nextRequestPolicy:b.C,L2:b.policy.Gf};b.policy.Sf?(p.MD=DVa(b.B.j),p.ND=DVa(b.B.videoInfos)):(b.gG(b.videoTrack.j),b.gG(b.audioTrack.j),p.AK=nX(b.I));var q=new cY(0,p,b,b.Fa.Ng);b.j.push(bXa(b,q))}this.Xa&&tXa(this)}catch(t){g.AD(t),b=t,this.mB({reason:"exp",ename:b.name,emsg:b.message})}g.Bp(this.La)}else if(!this.Sa.u||
!lVa(this.videoTrack)&&!lVa(this.audioTrack)||(this.videoTrack.D||this.audioTrack.D)&&this.policy.jc?b=!1:(this.wk(),this.va.seekTo(Infinity,{xe:"checkLoaderTracksSync",Er:!0}),b=!0),!b){wXa(this);if(!this.policy.useUmp)try{$Ua(this.videoTrack);if(this.isDisposed())return;$Ua(this.audioTrack);if(this.isDisposed())return}catch(t){AVa(this,t,{origin:"pollSlice"})}this.Sa.isManifestless&&(mVa(this.videoTrack),mVa(this.audioTrack),bTa(this.j),(b=cX(this.videoTrack))&&b.u&&(b=b.u.D&&!this.policy.Lp,this.xa(b===
this.policy.I.dk?"strm":"strmbug",{strm:b,sfmp4:this.policy.I.dk,dfs:this.policy.Lp},!0)));this.Xa?tXa(this):this.policy.u&&((b=cX(this.videoTrack))&&this.videoTrack.gw(b),(c=cX(this.audioTrack))&&this.audioTrack.gw(c),PX(this.videoTrack)&&PX(this.audioTrack)||(b||c)&&tY(this));pY(this);XX(this.u,this.videoTrack,this.videoTrack.j,!1);XX(this.u,this.audioTrack,this.audioTrack.j,!1);b=this.videoTrack;e=this.audioTrack;if((!this.Xa||zI(this.Xa)&&!this.policy.Gc)&&!this.j.fh()&&(yT(this.policy)||VX(b)&&
b.j.Ig()&&this.ye.V))a:{if(c=this.currentTime,d=this.J,e=VSa(d,b.j.info.dc,e.j.info.dc,0),d=YJ(d.schedule)+e/$J(d.schedule),c+=Math.max(d,d+10-e/b.j.info.dc),b.B.length){if(b.B[0].info.gb[0].startTime<=c)break a;$W(b)}d=b.C;for(e=d.u.length-1;0<=e;e--)d.u[e].info.startTime>c&&d.u.pop();bVa(b);b.u&&c<b.u.startTime&&(b.oa=0,b.j.Ig()?b.u=b.j.Yp(c,!0).gb[0]:b.u=null)}vVa(this.u,this.videoTrack,this.audioTrack);vVa(this.u,this.audioTrack,this.videoTrack);this.policy.Rn&&this.Ja&&!this.isSuspended&&qxa(this.schedule)&&
(EXa(this,this.Ja),this.Ja="");this.C&&(b=this.C,b.C?(c=b.I+b.policy.Po,b.B||(c=Math.min(c,b.startTimeSecs+b.policy.Kj)),b=Math.max(0,1E3*c-Date.now())):b=NaN,isNaN(b)||g.Bp(this.ib,b));g.Bp(this.La)}};
g.k.mB=function(a){this.va.mB(a)};
g.k.qF=function(a){this.va.qF(a)};
g.k.J0=function(a){var b=this;a.Ml()&&0===a.Hg().length&&(a.Rx(),this.Xa&&!this.Xa.Ml()&&(this.Xa.I=performance.now(),this.va.yL()));if(this.policy.Pa&&this.Xa){var c=a===this.Xa.j,d=a.RF();d&&(d.Qb&&!d.bf||this.xa("sbu",a.kc({a:c})),d.bf&&!a.dj()&&setTimeout(function(){var e=a.Hg(),f=nI(e,d.startTime+tVa),h=nI(e,b.currentTime);(0>f||f!==h)&&b.xa("sbu_mismatch",{b:mI(e),c:b.currentTime,s:aH(d)})},0))}this.gf()};
g.k.w5=function(a){if(this.Xa){var b=NX(a===this.Xa.j?this.audioTrack:this.videoTrack);if(a=a.VL())for(var c=0;c<a.length;c++)this.xa("appendedbuffer",{i:c,b:g.Zf(a[c].subarray(0,4096),3)});a=void 0;b&&(a=$G(b));this.handleError("fmt.unplayable",a,1)}};
g.k.mz=function(a){this.va.mz(a)};
g.k.RN=function(a,b,c){this.Sa.isManifestless&&pUa(this,b,c,!!a.info.video,!0)};
g.k.QN=function(a,b,c,d){a.info.video&&this.B.QN(b,c,d)};
g.k.XB=aa(9);g.k.cI=function(a){this.Ng=a;var b;null!=(b=this.audioTrack.J)&&(b.jd=a);null!=(b=this.videoTrack.J)&&(b.jd=a)};
g.k.tG=function(){return this.videoTrack.V||this.audioTrack.V};
g.k.seek=function(a,b){if(this.isDisposed())return Hf();if(this.tG())return Hf("seeking to head");wXa(this);this.u.J=(0,g.GA)();yT(this.policy)||pY(this,a);this.Xa&&this.Xa.j&&this.Xa.u&&!this.va.getVideoData().EQ&&(this.Xa.j.isLocked()||this.Xa.u.isLocked())&&sY(this.va,{reattachOnLockedBuffer:1,vsb:""+this.Xa.u.isLocked(),asb:""+this.Xa.j.isLocked()});var c=this.currentTime;if(this.policy.B&&!b.AC){var d=this.Z;d.D=void 0;fXa(d,!0)}this.currentTime=this.j.seek(a,b);fX(this.B,a,c);tY(this);return Ef(this.currentTime)};
g.k.getCurrentTime=function(){return this.currentTime};
g.k.HL=function(){return this.audioTrack.j.info};
g.k.KL=function(){return this.videoTrack.j.info};
g.k.GL=function(){return this.audioTrack.j.info.Mb};
g.k.JL=function(){return this.videoTrack.j.info.Mb};
g.k.qa=function(){try{this.jy();$W(this.audioTrack);$W(this.videoTrack);var a;null==(a=this.audioTrack.J)||FTa(a);var b;null==(b=this.videoTrack.J)||FTa(b);g.E.prototype.qa.call(this)}catch(c){g.zD(c)}};
g.k.handleError=function(a,b,c){c=void 0===c?0:c;var d=TK(c);if("fmt.unplayable"===a&&this.Sa.isLive){this.policy.Wa=!1;var e=this.Sa;if(e.isManifestless)for(var f in e.j)e.j[f].index.segments=[]}b=new SK(a,b,c);g.Sa(this);RK(b.details);this.va.handleError(b);"html5.invalidstate"!==a&&"fmt.unplayable"!==b.errorCode&&"fmt.unparseable"!==a&&d&&this.dispose()};
g.k.kc=function(){var a=NX(this.audioTrack),b=NX(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.j.fh(),lmf:oX(this.ye),lbw:ZJ(this.schedule).toFixed(3),lhd:YJ(this.schedule).toFixed(3),lst:(1E9*(this.schedule.j.aj()||0)).toFixed(3),laa:a?aH(a):"",lva:b?aH(b):"",lar:this.audioTrack.u?aH(this.audioTrack.u):"",lvr:this.videoTrack.u?aH(this.videoTrack.u):"",laq:""+QX(this.audioTrack),lvq:""+QX(this.videoTrack)};this.Xa&&!this.Xa.Tg()&&this.Xa.j&&this.Xa.u&&(a.lab=mI(this.Xa.j.Hg()),a.lvb=
mI(this.Xa.u.Hg()));this.ea&&(a.lapt=((0,g.GA)()-this.ea).toFixed(0),a.lapr=yXa(this));return a};
g.k.wk=function(){try{if(this.policy.B){var a=this.Z;a.D=void 0;fXa(a,!1)}this.audioTrack.wk();this.videoTrack.wk()}catch(b){g.zD(b)}this.policy.u=""};
g.k.DL=function(){return WW(this.J)};
g.k.xa=function(a,b,c){this.va.xa(a,b,void 0===c?!1:c)};
g.k.Pd=function(){return this.va.Pd()};
g.k.Er=function(a,b){a/=b;isNaN(this.timestampOffset)&&JXa(this,a-Math.min(a,this.policy.mx));return(a-this.timestampOffset)*b};
g.k.Ed=function(){return this.timestampOffset};
g.k.fh=function(){return this.j.fh()};
g.k.Tu=function(){this.B.Tu()};
g.k.bA=function(a){yT(this.policy)||this.ye.bA(a)};
g.k.KD=function(a,b){if(!this.I)return!1;var c=this.videoTrack.j.index.rh(a);return this.I.KD(a,b,c)};
g.k.mp=function(a,b){if(this.I&&this.B.mp(a,this.I))return JXa(this,this.timestampOffset-b),tY(this),!0;b=this.videoTrack.j.index.rh(a);this.handleError("ad.skipfailed",{dec:!!this.I,t:a.toFixed(3),sq:b});return!1};
g.k.Fy=function(a){return this.B.Fy(a)};
g.k.TT=function(){return this.Sa};
g.k.isOffline=function(){return!!this.va.getVideoData().cotn};
g.k.AD=function(a,b){this.va.AD(a,b)};
g.k.QO=function(a){var b=this.va.getVideoData().sj;if(b){var c=this.u;c.Yj=a;c.sj=b;IXa(this)}};
g.k.fD=function(a){if(this.Ng){var b=this.Ng,c=b.timeline.j;if(c){var d=[],e=c.Zr(),f=[],h=0,l=0;a=g.v(a);for(var m=a.next();!m.done;m=a.next())if(m=m.value,!m.a5&&m.kE){var n=m.kE.Lt||1,p=(m.kE.m8||0)/n*1E3,q=(m.kE.sF||0)/n*1E3;n=p+q;var t=void 0;m.kE.c$===(null==(t=c.getVideoData())?void 0:t.videoId)?(f.length&&JRa(b.timeline,h||0,l,f),l=h=n,f=[],q=LRa(b.timeline,1,p,q,m.clipId),e=m.clipId,d.push(q),JRa(b.timeline,p,n,[q])):(t=m.clipId?b.j.get(m.clipId):void 0,h=Math.min(p,h),l=Math.max(n,l),b.api.xa("ssap",
{e:p,d:q,c:m.clipId,p:t?1:0}),m=LRa(b.timeline,2,p,q,m.clipId,t),f.push(m))}f.length&&JRa(b.timeline,h,l,f);e&&d.length&&b.timeline.u.set(e,d)}}};g.k=g.uY.prototype;g.k.Jm=function(a,b,c,d,e){return this.jd.Jm(a,b,c,d,e)};
g.k.Bs=function(a,b,c,d,e){return this.jd.Bs(a,b,c,d,e)};
g.k.dG=function(a){this.jd.dG(a)};
g.k.Es=function(a,b){return this.jd.Es(a,b)};
g.k.Tu=function(){this.jd.Tu()};
g.k.KD=function(a,b,c){return this.jd.KD(a,b,c)};
g.k.kI=function(a,b){this.jd.kI(a,b)};
g.k.UO=function(){this.jd.UO()};
g.k.IB=aa(39);g.k.Ck=function(a,b,c){this.jd.Ck(a,b,c)};
g.k.hE=aa(37);g.k.cO=function(a,b,c,d,e,f,h,l,m){this.jd.cO(a,b,c,d,e,f,h,l,m)};
g.k.kP=function(a){this.jd.kP(a)};
g.k.bO=function(a,b,c,d){this.jd.bO(a,b,c,d)};
g.k.Zs=function(a){return this.jd.Zs(a)};g.x(vY,g.aE);g.x(wY,vY);wY.prototype.I=function(a,b){if(a&&b){var c=1*Number(Wi(a,"cpi"))+1;isNaN(c)||0>=c||c<this.B?(this.C.stop(),this.u.stop(),this.B=-1,this.j={}):(c>this.B&&(this.B=c,g.fd(this.j)||(this.j={},this.C.stop(),this.u.stop())),this.j[b]=a,g.Bp(this.u))}};
wY.prototype.D=function(){for(var a=g.v(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.ma;for(var d=this.B,e=this.j[c].match(Ni),f=[],h=g.v(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+g.Ee(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=2*c.length;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e<c.length;++e)d[2*e+4]=c.charCodeAt(e);b.call(this,
"rotated_need_key_info_ready",new STa(d,"fairplay",!0))}this.j={}};
wY.prototype.qa=function(){this.j={};vY.prototype.qa.call(this)};g.x(xY,vY);
xY.prototype.C=function(a){var b;a:{if((b=a.cryptoPeriodIndex)&&0<this.j.length)for(var c=g.v(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.GA)();a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.v(this.B.values());for(var e=d.next();!e.done;e=d.next())if(1>=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}}c=!1}c?(c=a.j,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30))):c=0;this.ma("log_qoe",{wvagt:"delay."+c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length});
0>=c?LXa(this,a):(this.j.push({time:b+c,info:a}),g.Bp(this.u,c))}};
xY.prototype.qa=function(){this.j=[];vY.prototype.qa.call(this)};var s4={},TXa=(s4.DRM_TRACK_TYPE_AUDIO="AUDIO",s4.DRM_TRACK_TYPE_SD="SD",s4.DRM_TRACK_TYPE_HD="HD",s4.DRM_TRACK_TYPE_UHD1="UHD1",s4);g.x(PXa,g.E);g.x(VXa,g.aE);g.k=VXa.prototype;g.k.bp=function(a){var b=this;this.isDisposed()||0>=a.size||(a.forEach(function(c,d){var e=dJ(b.u)?d:c;d=new Uint8Array(dJ(b.u)?c:d);dJ(b.u)&&lYa(d);c=g.Zf(d,4);lYa(d);d=g.Zf(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),gYa(this,","),yY(this,{onkeystatuschange:1}),this.status="kc",this.ma("keystatuseschange",this))};
g.k.error=function(a,b,c,d){this.isDisposed()||(this.ma("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.I)/1E3,this.I=NaN,this.ma("ctmp","provf",{et:a.toFixed(3)})));TK(b)&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.Ga&&this.J?!1:!a&&this.requestNumber===b.requestNumber};
g.k.qa=function(){this.j={};g.aE.prototype.qa.call(this)};
g.k.kc=function(){var a={ctype:this.ea.contentType||"",length:this.ea.initData.length,requestedKeyIds:this.Aa,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.j);return a};
g.k.qh=function(){var a=this.C.join();if(zY(this)){var b=new Set,c;for(c in this.j)"usable"!==this.j[c].status&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex};
g.k.Ze=function(){return this.url};g.x(AY,g.E);g.k=AY.prototype;g.k.K0=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}};
g.k.bp=function(){this.J&&this.J(this.j.keyStatuses)};
g.k.tW=function(a){this.D&&this.D(a.message,"license-request")};
g.k.sW=function(a){if(this.B){if(this.u){var b=this.u.error.code;a=this.u.error.systemCode}else b=a.errorCode,a=a.systemCode;this.B("t.prefixedKeyError;c."+b+";sc."+a,b,a)}};
g.k.rW=function(){this.I&&this.I()};
g.k.update=function(a){var b=this;if(this.j)return(tJ.isActive()&&tJ.pw()?tJ.Aw("emeupd",this.j.update).call(this.j,a):this.j.update(a)).then(null,$I(function(c){nYa(b,"t.update",c)}));
this.u?this.u.update(a):this.element.addKey?this.element.addKey(this.V.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.V.keySystem,a,this.initData,this.sessionId);return Ky()};
g.k.qa=function(){this.j&&this.j.close();this.element=null;g.E.prototype.qa.call(this)};g.x(BY,g.E);g.k=BY.prototype;g.k.attach=function(){var a=this;if(this.j.keySystemAccess)return(tJ.isActive()&&tJ.pw()?tJ.Aw("emenew",this.j.keySystemAccess.createMediaKeys).call(this.j.keySystemAccess):this.j.keySystemAccess.createMediaKeys()).then(function(b){a.isDisposed()||(a.u=b,tJ.isActive()&&tJ.pw()?tJ.Aw("emeset",a.element.setMediaKeys).call(a.element,b):a.element.setMediaKeys(b))});
cJ(this.j)?this.B=new (bJ())(this.j.keySystem):eJ(this.j)?(this.B=new (bJ())(this.j.keySystem),this.element.webkitSetMediaKeys(this.B)):(Gz(this.D,this.element,["keymessage","webkitkeymessage"],this.N0),Gz(this.D,this.element,["keyerror","webkitkeyerror"],this.M0),Gz(this.D,this.element,["keyadded","webkitkeyadded"],this.L0));return null};
g.k.setServerCertificate=function(){return this.u.setServerCertificate?"widevine"===this.j.flavor&&this.j.ll?this.u.setServerCertificate(this.j.ll):gJ(this.j)&&this.j.Pa?this.u.setServerCertificate(this.j.Pa):null:null};
g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.u.createSession();fJ(this.j)?c=oYa(c,this.j.Pa):gJ(this.j)&&(c=KXa(c)||new Uint8Array(0));b&&b("genreq");a=tJ.isActive()&&tJ.pw()?tJ.Aw("emegen",d.generateRequest).call(d,a.contentType,c):d.generateRequest(a.contentType,c);var e=new AY(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},$I(function(f){nYa(e,"t.generateRequest",f)}));
return e}if(cJ(this.j))return qYa(this,c);if(eJ(this.j))return pYa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.j.keySystem,c):this.element.webkitGenerateKeyRequest(this.j.keySystem,c);return this.C=new AY(this.element,this.j,c,null,null)};
g.k.N0=function(a){var b=rYa(this,a);b&&b.tW(a)};
g.k.M0=function(a){var b=rYa(this,a);b&&b.sW(a)};
g.k.L0=function(a){var b=rYa(this,a);b&&b.rW(a)};
g.k.getMetrics=function(){if(this.u&&this.u.getMetrics)try{var a=this.u.getMetrics()}catch(b){}return a};
g.k.qa=function(){this.B=this.u=null;var a;null==(a=this.C)||a.dispose();a=g.v(Object.values(this.I));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.I={};g.E.prototype.qa.call(this);delete this.element};g.k=CY.prototype;g.k.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null};
g.k.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
g.k.Df=function(){this.keys=[];this.values=[]};
g.k.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
g.k.findIndex=function(a){return g.vb(this.keys,function(b){return g.Sb(a,b)})};g.x(uYa,g.aE);g.k=uYa.prototype;g.k.Z5=function(a){this.Qi({onecpt:1});a.initData&&xYa(this,new Uint8Array(a.initData),a.initDataType)};
g.k.w6=function(a){this.Qi({onndky:1});xYa(this,a.initData,a.contentType)};
g.k.mz=function(a){this.Qi({onneedkeyinfo:1});this.Y.K("html5_eme_loader_sync")&&(this.J.get(a.initData)||this.J.set(a.initData,a));wYa(this,a)};
g.k.wS=function(a){this.B.push(a);DY(this)};
g.k.createSession=function(a){var b=zYa(this)?VTa(a):g.Zf(a.initData);this.u.get(b);this.ya=!0;a=new VXa(this.videoData,this.Y,a,this.drmSessionId);this.u.set(b,a);a.subscribe("ctmp",this.WV,this);a.subscribe("keystatuseschange",this.bp,this);a.subscribe("licenseerror",this.aH,this);a.subscribe("newlicense",this.oW,this);a.subscribe("newsession",this.pW,this);a.subscribe("sessionready",this.BW,this);a.subscribe("fairplay_next_need_key_info",this.gW,this);this.Y.K("html5_enable_vp9_fairplay")&&a.subscribe("qualitychange",
this.bQ,this);ZXa(a,this.C)};
g.k.oW=function(a){this.isDisposed()||(this.Qi({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.ma("heartbeatparams",a)))};
g.k.pW=function(){this.isDisposed()||(this.Qi({newlcssn:1}),this.B.shift(),this.ya=!1,DY(this))};
g.k.BW=function(){if(cJ(this.j)&&(this.Qi({onsnrdy:1}),this.Ja--,0===this.Ja)){var a=this.Z;a.element.msSetMediaKeys(a.B)}};
g.k.bp=function(a){if(!this.isDisposed()){!this.Ga&&this.videoData.K("html5_log_drm_metrics_on_key_statuses")&&(AYa(this),this.Ga=!0);this.Qi({onksch:1});var b=this.bQ;if(!zY(a)&&g.lB&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var d=!0;if(zY(a))for(var e=g.v(Object.keys(a.j)),f=e.next();!f.done;f=e.next())f=f.value,"usable"===a.j[f].status&&c.push(a.j[f].type),"unknown"!==a.j[f].status&&(d=!1);if(!zY(a)||d)c=a.C;c=fYa(c)}b.call(this,c);
this.ma("keystatuseschange",a)}};
g.k.WV=function(a,b){this.isDisposed()||this.ma("ctmp",a,b)};
g.k.gW=function(a,b){this.isDisposed()||this.ma("fairplay_next_need_key_info",a,b)};
g.k.aH=function(a,b,c,d){this.isDisposed()||(this.videoData.K("html5_log_drm_metrics_on_error")&&AYa(this),this.ma("licenseerror",a,b,c,d))};
g.k.Ou=function(){return this.V};
g.k.bQ=function(a){var b=g.hF("auto",a,!1,"l");if(this.videoData.Sk){if(this.V.equals(b))return}else if(Nta(this.V,a))return;this.V=b;this.ma("qualitychange");this.Qi({updtlq:a})};
g.k.qa=function(){this.j.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.v(this.u.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.WV,this),b.unsubscribe("keystatuseschange",this.bp,this),b.unsubscribe("licenseerror",this.aH,this),b.unsubscribe("newlicense",this.oW,this),b.unsubscribe("newsession",this.pW,this),b.unsubscribe("sessionready",this.BW,this),b.unsubscribe("fairplay_next_need_key_info",this.gW,this),this.Y.K("html5_enable_vp9_fairplay")&&
b.unsubscribe("qualitychange",this.bQ,this),b.dispose();this.u.clear();this.I.Df();this.J.Df();this.heartbeatParams=null;g.aE.prototype.qa.call(this)};
g.k.kc=function(){for(var a={systemInfo:this.j.kc(),sessions:[]},b=g.v(this.u.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.kc());return a};
g.k.qh=function(){return 0>=this.u.size?"no session":""+this.u.values().next().value.qh()+(this.D?"/KR":"")};
g.k.Qi=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(RK(a),(this.Y.Qd()||b)&&this.ma("ctmp","drmlog",a))};g.x(FY,g.E);FY.prototype.wG=function(){return this.B};
FY.prototype.handleError=function(a){var b=this;FYa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!EYa(this,a.errorCode,a.details))&&!JYa(this,a)){if(this.J&&"yt"!==this.j.Ja&&HYa(this,a)&&this.videoData.Xn&&(0,g.GA)()/1E3>this.videoData.Xn&&"hm"===this.j.Ja){var c=Object.assign({e:a.errorCode},a.details);c.stalesigexp="1";c.expire=this.videoData.Xn;c.init=this.videoData.hX/1E3;c.now=(0,g.GA)()/1E3;c.systelapsed=((0,g.GA)()-this.videoData.hX)/
1E3;a=new SK(a.errorCode,c,2);this.va.Mg(a.errorCode,2,"SIGNATURE_EXPIRED",RK(a.details))}if(TK(a.severity)){var d;c=null==(d=this.va.Fa)?void 0:d.ye.B;if(this.j.K("html5_use_network_error_code_enums"))if(GYa(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else{if(!this.j.J&&"auth"===a.errorCode&&429===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}}else GYa(a)&&c&&c.isLocked()?e="FORMAT_UNAVAILABLE":this.j.J||"auth"!==a.errorCode||"429"!==a.details.rc||(e="TOO_MANY_REQUESTS",f="6");this.va.Mg(a.errorCode,
a.severity,e,RK(a.details),f)}else this.va.ma("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.Ld(a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(a="https://web.archive.org/web/20230505074338/https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.GA)(),WV(a,"manifest",function(h){b.I=!0;b.xa("pathprobe",h)},function(h){b.Ld(h.errorCode,h.details)}))}};
FY.prototype.xa=function(a,b){this.va.yc.xa(a,b)};
FY.prototype.Ld=function(a,b){b=RK(b);this.va.yc.Ld(a,b)};MYa.prototype.K=function(a){return this.Y.K(a)};g.x(HY,g.E);HY.prototype.zd=function(a){dZa(this);this.playerState=a.state;0<=this.u&&g.bO(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
HY.prototype.onError=function(a){if("player.fatalexception"!==a||this.provider.K("html5_exception_to_health"))a.match(Gdb)?this.networkErrorCount++:this.nonNetworkErrorCount++};
HY.prototype.send=function(){if(!(this.B||0>this.j)){dZa(this);var a=g.qW(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.getData();this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.UN(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.UN(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.UN(this.playerState,16)||g.UN(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.UN(this.playerState,
1)&&g.UN(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.UN(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.UN(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.UN(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=z0a[FM(this.provider.videoData)];a:switch(this.provider.Y.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var e=
0>this.u?a:this.u-this.j;a=this.provider.Y.Sf+36E5<(0,g.GA)();b={started:0<=this.u,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.DM(this.provider.videoData),isGapless:this.provider.videoData.Wa,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai};
a||g.nA("html5PlayerHealthEvent",b);this.B=!0;this.dispose()}};
HY.prototype.qa=function(){this.B||this.send();g.E.prototype.qa.call(this)};
var Gdb=/\bnet\b/;var gZa=window;var eZa=/[?&]cpn=/;g.x(g.JY,g.E);g.k=g.JY.prototype;g.k.M3=function(){var a=g.qW(this.provider);kZa(this,a)};
g.k.OB=function(){return this.ya};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.qW(this.provider),-1<["PL","B","S"].indexOf(this.Te)&&(!g.fd(this.j)||a>=this.C+30)&&(g.IY(this,a,"vps",[this.Te]),this.C=a),!g.fd(this.j))){7E3===this.sequenceNumber&&g.AD(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){nZa(this,a);var b=a,c=this.provider.va.ZB(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.Nb,h=e&&!this.jc;d>c.totalVideoFrames||5E3<f?sZa(this,"html5.badframedropcount",
"df."+d+";tf."+c.totalVideoFrames):(0<f||h)&&g.IY(this,b,"df",[f]);this.Nb=d;this.jc=e;0<this.J&&(g.IY(this,a,"glf",[this.J]),this.J=0);a={};this.provider.videoData.u&&(a.fmt=this.provider.videoData.u.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.V&&(a.addocid=this.V);this.provider.videoData.cotn&&(a.cotn=this.provider.videoData.cotn);a.el=SM(this.provider.videoData);a.content_v=UM(this.provider.videoData);
a.ns=this.provider.Y.Ja;a.fexp=this.provider.Y.experiments.experimentIds.toString();a.cl=(528338113).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=FM(this.provider.videoData))&&(a.live=b);this.provider.videoData.Nl()&&(a.drm=1,this.provider.videoData.I&&(a.drm_system=Kcb[this.provider.videoData.I.flavor]||0),this.provider.videoData.SI&&(a.drm_product=this.provider.videoData.SI));sy()&&this.provider.videoData.J&&(a.ctt=this.provider.videoData.J,a.cttype=this.provider.videoData.ek,
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.ES&&(a.dai_fallback="1")):this.provider.videoData.Mc?a.dai="cs":this.provider.videoData.LJ&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.provider.videoData.UR){if(b=this.provider.videoData.UR,a&&b)for(this.provider.Y.K("html5_use_server_provided_namespace")&&(c=b.ns,
d=a.ns,c&&c!==d&&(g.AD(new g.Yz("b273365784_qoe_diff",c,d)),this.La.delete("ns"))),c=g.v(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.La.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.provider.videoData.videoId,a.ei=this.provider.videoData.eventId;this.provider.Y.K("html5_add_qclc_to_qoe_ping")&&(b=g.BL({cpn:a.cpn,sequenceNumber:a.seq,serializedWatchEndpointLoggingContext:this.provider.videoData.D1},jZa),a.qclc=g.Zf(b,4));g.ld(a,this.provider.Y.j);a=g.Ui("//"+this.provider.Y.zm+
"/api/stats/qoe",a);c=b="";d=g.v(Object.keys(this.j));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.j[e]?g.AD(new g.Yz("Stats report key has invalid value",e)):(e="&"+e+"="+this.j[e].join(","),100<e.length?c+=e:b+=e);oZa(this,a+b,c.replace(/ /g,"%20"))}this.j={}}};
g.k.GX=function(){if(this.provider.videoData.I){var a=this.provider.videoData.I;KY(this,"eme-"+(a.keySystemAccess?"final":cJ(a)?"ms":fJ(a)?"ytfp":eJ(a)?"safarifp":"nonfinal"))}};
g.k.zd=function(a){var b=a.state,c=g.qW(this.provider);a=this.getPlayerState(a.state);a!==this.Te&&(c<this.C||("PL"===this.Te?this.playTimeSecs+=c-this.C:"B"===this.Te&&this.Z&&(this.Z=!1,this.rebufferTimeSecs+=c-this.ib,!this.Ya&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.provider.va.WC(),this.j.qoealert=["1"],this.Ya=!0)),"B"!==a||"PL"!==this.Te&&"PB"!==this.Te||(this.Z=!0),this.C=c),"PL"===this.Te&&("B"===a||"S"===a)||this.provider.Y.Qd()?nZa(this,c):(this.Za||"PL"!==a||(this.Za=
!0,mZa(this,c,this.provider.va.WB())),kZa(this,c)),"PL"===a&&g.Bp(this.hd),g.IY(this,c,"vps",[a]),this.Te=a,this.C=this.ib=c,this.D=!0);a=b.getData();g.UN(b,128)&&a&&(a.CH=a.CH||"",rZa(this,c,a.errorCode,a.yF,a.CH));(g.UN(b,2)||g.UN(b,128))&&this.reportStats(c);b.Yc()&&!this.I&&(0<=this.u&&(this.j.user_intent=[this.u.toString()]),this.I=!0);pZa(this)};
g.k.gD=function(a){var b=g.qW(this.provider);g.IY(this,b,"vfs",[a.j.id,a.u,this.Bc,a.reason]);this.Bc=a.j.id;var c=this.provider.va.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.FK();1<d&&c.push(d);g.IY(this,b,"view",c)}this.Pa||(this.provider.Y.Qd()&&KY(this,"rqs"),this.provider.videoData.j&&nF(this.provider.videoData.j)&&(this.j.preload=["1"]));this.D=this.Pa=!0;"m"===a.reason&&100===++this.Uc&&tZa(this,2);g.IY(this,b,"vps",[this.Te]);this.reportStats(b)};
g.k.TC=function(a){var b=g.qW(this.provider);a.j.id!==this.Aa&&(g.IY(this,b,"afs",[a.j.id,this.Aa,a.reason]),this.Aa=a.j.id)};
g.k.gt=aa(43);g.k.onPlaybackRateChange=function(a){var b=g.qW(this.provider);a&&a!==this.Ub&&(g.IY(this,b,"rate",[a]),this.Ub=a);this.reportStats(b)};
g.k.un=aa(16);g.k.getPlayerState=function(a){if(g.UN(a,128))return"ER";if(g.UN(a,2048))return"B";if(g.UN(a,512))return"SU";if(g.UN(a,16)||g.UN(a,32))return"S";if(g.VO(a)&&g.UN(a,64))return"B";var b=Hdb[YO(a)];g.wK(this.provider.Y)&&"B"===b&&3===this.provider.va.getVisibilityState()&&(b="SU");"B"===b&&g.UN(a,4)&&(b="PB");return b};
g.k.qa=function(){g.E.prototype.qa.call(this);window.clearInterval(this.ob)};
g.k.HH=function(a){this.isOffline=a;g.IY(this,g.qW(this.provider),"is_offline",[this.isOffline?"1":"0"])};
g.k.xa=function(a,b,c){var d=this.j.ctmp||[],e=-1!==this.Kc.indexOf(a);e||this.Kc.push(a);if(!c||!e){b="string"!==typeof b?RK(b):b;b=uZa(b);if(!c&&!/^t[.]/.test(b)){var f=1E3*g.qW(this.provider);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.j.ctmp=d;pZa(this);return f}};
g.k.zD=function(a,b,c){this.B={O8:Number(this.xa("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),MV:a,D8:b,isAd:c}};
g.k.Az=function(a,b,c){g.IY(this,g.qW(this.provider),"ad_playback",[a,b,c])};
var t4={},Hdb=(t4[5]="N",t4[-1]="N",t4[3]="B",t4[0]="EN",t4[2]="PA",t4[1]="PL",t4);xZa.prototype.update=function(){if(this.J){var a=this.provider.va.yk()||0,b=g.qW(this.provider);if(a!==this.j||AZa(this,a,b)){var c;if(!(c=a<this.j||a-this.j>b-this.Wo+2||AZa(this,a,b))){c=this.provider.va.getVolume();var d=c!==this.ea,e=this.provider.va.isMuted()?1:0;e!==this.V?(this.V=e,c=!0):(!d||0<=this.C||(this.ea=c,this.C=b),c=b-this.C,0<=this.C&&2<c?(this.C=-1,c=!0):c=!1)}c&&(NY(this),this.u=a);this.Wo=b;this.j=a}}};BZa.prototype.send=function(a){var b=this;if(!this.Ya){var c=DZa(this),d=g.Ui(this.uri,c);this.ea&&!this.Y.K("html5_simplify_pings")?IZa(this,d):CZa(this,a).then(function(e){b.ea&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});iZa(d,e,{token:b.J,GP:b.Nb,mdxEnvironment:b.mdxEnvironment},b.Y,a,b.oa,b.isFinal&&b.Sf||b.ya||b.B&&b.Tf)});
this.Ya=!0}};
BZa.prototype.u=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var u4={},GZa=(u4.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,u4.LIVING_ROOM_APP_MODE_MAIN=1,u4.LIVING_ROOM_APP_MODE_KIDS=2,u4.LIVING_ROOM_APP_MODE_MUSIC=3,u4.LIVING_ROOM_APP_MODE_UNPLUGGED=4,u4.LIVING_ROOM_APP_MODE_GAMING=5,u4),v4={},FZa=(v4.EMBEDDED_PLAYER_MODE_UNKNOWN=0,v4.EMBEDDED_PLAYER_MODE_DEFAULT=1,v4.EMBEDDED_PLAYER_MODE_PFP=2,v4.EMBEDDED_PLAYER_MODE_PFL=3,v4);g.x(PY,g.E);g.k=PY.prototype;g.k.Ie=function(){this.j.update();var a;if(a=this.provider.videoData.isLoaded()&&this.provider.videoData.ob&&this.u&&!this.oa)a=this.j,a=a.D+a.provider.va.yk()-a.u>=this.provider.videoData.ob;a&&(this.u&&this.provider.videoData.ob&&(a=QY(this,"delayplay"),a.uf=!0,a.send(),this.oa=!0),JZa(this))};
g.k.zd=function(a){if(!this.isDisposed())if(g.UN(a.state,2)||g.UN(a.state,512))this.I="paused",(g.bO(a,2)||g.bO(a,512))&&this.u&&(TY(this),UY(this).send(),this.D=NaN);else if(g.UN(a.state,8)){this.I="playing";var b=this.u&&isNaN(this.C)?RY(this):NaN;!isNaN(b)&&(0>aO(a,64)||0>aO(a,512))&&(a=OZa(this,!1),a.D=b,a.send())}else this.I="paused"};
g.k.qa=function(){g.E.prototype.qa.call(this);TY(this);yZa(this.j)};
g.k.kc=function(){return DZa(QY(this,"playback"))};
g.k.dA=function(){this.provider.videoData.V.eventLabel=SM(this.provider.videoData);this.provider.videoData.V.playerStyle=this.provider.Y.playerStyle;this.provider.videoData.oh&&(this.provider.videoData.V.feature="pyv");this.provider.videoData.V.vid=this.provider.videoData.videoId;var a=this.provider.videoData.V;var b=this.provider.videoData;b=b.isAd()||!!b.oh;a.isAd=b};
g.k.Dj=function(a){var b=QY(this,"engage");b.V=a;return EZa(b,TZa(this.provider))};RZa.prototype.isEmpty=function(){return this.endTime===this.startTime};SZa.prototype.K=function(a){return this.Y.K(a)};
var UZa={other:1,none:2,wifi:3,cellular:7};g.x(g.VY,g.E);g.k=g.VY.prototype;g.k.zd=function(a){if(g.bO(a,1024)||g.bO(a,512)||g.bO(a,4)){var b=this.B;0<=b.u||(b.j=-1,b.delay.stop());this.qoe&&(b=this.qoe,b.I||(b.u=-1))}if(this.provider.videoData.enableServerStitchedDai&&this.Bi){var c;null==(c=this.u.get(this.Bi))||c.zd(a)}else this.j&&this.j.zd(a);this.qoe&&this.qoe.zd(a);this.B.zd(a)};
g.k.Ie=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Bi){var a;null==(a=this.u.get(this.Bi))||a.Ie()}else this.j&&this.j.Ie()};
g.k.Ld=function(a,b){this.qoe&&sZa(this.qoe,a,b);this.B.onError(a)};
g.k.gD=function(a){this.qoe&&this.qoe.gD(a)};
g.k.TC=function(a){this.qoe&&this.qoe.TC(a)};
g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)};
g.k.gt=aa(42);g.k.xa=function(a,b,c){this.qoe&&this.qoe.xa(a,b,c)};
g.k.zD=function(a,b,c){this.qoe&&this.qoe.zD(a,b,c)};
g.k.Az=function(a,b,c){this.qoe&&this.qoe.Az(a,b,c)};
g.k.un=aa(15);g.k.OB=function(){if(this.qoe)return this.qoe.OB()};
g.k.kc=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Bi){var a;null==(a=this.u.get(this.Bi))||a.kc()}else if(this.j)return this.j.kc();return{}};
g.k.Dj=function(a){return this.j?this.j.Dj(a):function(){}};
g.k.dA=function(){this.j&&this.j.dA()};g.x(WY,g.E);g.k=WY.prototype;g.k.Ae=function(a,b){this.Nn();b&&2E3<=this.j.array.length&&this.vB("captions",1E4);b=this.j;if(1<a.length&&a.length>b.array.length)b.array=b.array.concat(a),b.array.sort(b.j);else{a=g.v(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.array.length||0<b.j(c,b.array[b.array.length-1])?b.array.push(c):g.Tb(b.array,c,b.j)}this.u=NaN;this.Nn()};
g.k.Bh=function(a){1E4<a.length&&g.AD(new g.Yz("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.isDisposed()){var b=new Set(a);this.B=this.B.filter(function(c){return!b.has(c)});
h_a(this.j,b);this.Nn()}};
g.k.vB=function(a,b){var c=(isNaN(this.u)?g.UN(this.D(),2)?0x8000000000000:1E3*this.V():this.u)-b;b=this.Im().filter(function(d){return d.namespace===a&&d.end<c});
this.Bh(b);return b};
g.k.Im=function(){return this.isDisposed()?[]:this.j.array};
g.k.reset=function(){this.started=!1;this.C.stop();this.j.array=[];this.B=[];this.Nn()};
g.k.hf=function(a){var b=this.Im().filter(function(c){return c.namespace===a});
this.Bh(b);return b};
g.k.zd=function(a){this.started&&(this.Nn(),g.UN(a.Dv,16)&&(a=g_a(this.j,Math.max(this.u-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.C.start()))};
g.k.pL=function(a){var b=[];if(!a.length)return b;for(var c=0;c<a.length;c++){var d=a[c];d.active&&-1===this.B.indexOf(d)&&(this.B.push(d),b.push([1,d]))}return b};
g.k.sL=function(a){var b=[];if(!a.length)return b;a.sort(g.VD);a=g.v(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.B.splice(this.B.indexOf(c),1),b.push([2,c]);return b};
g.k.Nn=function(){this.I=!0;if(!this.J){for(var a=3;this.I&&a;)this.I=!1,this.J=!0,this.QU(),this.J=!1,a--;this.D().Yc()&&(a=g_a(this.j,this.u),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.u)/this.oa(),this.C.start(a)))}};
g.k.QU=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.D();g.UN(a,32)&&this.Z.start();for(var b=g.UN(this.D(),2)?0x8000000000000:1E3*this.V(),c=g.UN(a,2),d=[],e=[],f=g.v(this.B),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(this.sL(e));f=e=null;c?(a=e_a(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=f_a(this.j)):a=this.u<=b&&WO(a)?d_a(this.j,this.u,b):e_a(this.j,b);
d=d.concat(this.pL(a));e&&(d=d.concat(this.sL(e)));f&&(d=d.concat(this.pL(f)));this.u=b;i_a(this,d)}};
g.k.qa=function(){this.B=[];this.j.array=[];g.E.prototype.qa.call(this)};
g.kW.Xu(WY,{Ae:"crmacr",pL:"crmncr",sL:"crmxcr",QU:"crmis",Bh:"crmrcr"});g.x(ZY,g.aE);ZY.prototype.rq=function(){return this.J};
ZY.prototype.Vp=function(){return Math.max(this.V()-p_a(this,!0),this.videoData.Kd())};g.x(dZ,g.E);dZ.prototype.zd=function(){g.Bp(this.B)};
dZ.prototype.gf=function(){var a=this,b=this.va.ue(),c=this.va.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.UN(c,8)&&g.UN(c,16),h=this.va.Cs().isBackground()||c.isSuspended();eZ(this,this.Ja,f&&!h,e,"qoe.slowseek",function(){},"timeout");
var l=isFinite(this.j);l=f&&l&&zCa(b,this.j);var m=!d||10<Math.abs(d-this.j);eZ(this,this.La,l&&m&&!h,e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt");
var n=l&&oI(b.Mh(),this.j);l=this.va.Fa;m=!l||!l.policy.Ya;var p=function(){b.seekTo(a.j+.001)};
eZ(this,this.Z,n&&m&&!h,e,"qoe.slowseek",p,"jiggle_cmt");m=function(){return EY(a.va)};
eZ(this,this.Ga,n&&!h,e,"qoe.slowseek",m,"new_elem");var q=WO(c);n=g.XO(c);var t=b.Mh(),w=nI(t,d),z=0<=w&&t.end(w)>d+5,C=q&&n&&z;z=this.va.getVideoData();var G=.002>d&&.002>this.j,O=0<=w,N=1===b.uj();eZ(this,this.ya,G&&f&&g.TM(z)&&!h,e,"qoe.slowseek",m,"slow_seek_shorts");eZ(this,this.Aa,G&&f&&g.TM(z)&&!h&&N,e,"qoe.slowseek",m,"slow_seek_shorts_vrs");eZ(this,this.oa,G&&f&&g.TM(z)&&!h&&O,e,"qoe.slowseek",m,"slow_seek_shorts_buffer_range");eZ(this,this.I,C&&!h,q&&!n,"qoe.longrebuffer",p,"jiggle_cmt");
eZ(this,this.J,C&&!h,q&&!n,"qoe.longrebuffer",m,"new_elem_nnr");if(l){var K=l.getCurrentTime();f=b.Ru();f=Fva(f,K);f=!l.fh()&&d===f;eZ(this,this.Za,q&&n&&f&&!h,q&&!n&&!f,"qoe.longrebuffer",function(){b.seekTo(K)},"seek_to_loader")}f={};
p=nI(t,Math.max(d-3.5,0));C=0<=p&&d>t.end(p)-1.1;G=0<=p&&p+1<t.length?t.start(p+1)-t.end(p):9999;f.mindex=w;f.disIndex=p;f.isdisc=0<=p&&C&&11>G;f.close2edge=C;f.gapsize=G;f.buflen=t.length;eZ(this,this.V,q&&n&&!h,q&&!n,"qoe.longrebuffer",function(){},"timeout",f);
t=c.isSuspended();t=g.wb(this.va.yn,"ad")&&!t;eZ(this,this.D,t,!t,"qoe.start15s",function(){a.va.hg("ad")},"ads_preroll_timeout");
t=.5>d-this.C;w=z.isAd()&&q&&!n&&t;q=function(){var W=a.va,Z=W.vf.Pc();(!Z||!W.videoData.isAd()||Z.getVideoData().Mc!==W.getVideoData().Mc)&&W.videoData.mf||W.Mg("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+W.videoData.videoId)};
eZ(this,this.Pa,w,!w,"ad.rebuftimeout",q,"skip_slow_ad");n=z.isAd()&&n&&oI(b.Mh(),d+5)&&t;eZ(this,this.Wa,n,!n,"ad.rebuftimeout",q,"skip_slow_ad_buf");eZ(this,this.Ya,g.VO(c)&&g.UN(c,64)&&!h,e,"qoe.start15s",function(){},"timeout");
eZ(this,this.ea,!!l&&!l.Xa&&g.VO(c),e,"qoe.start15s",m,"newElemMse");this.C=d;this.B.start()}};
dZ.prototype.Ld=function(a,b,c){b=this.kc(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.va.Ld(new SK(a,b));this.u[a]=!0};
dZ.prototype.kc=function(a){a=Object.assign(this.va.kc(!0),a.kc());this.j&&(a.stt=this.j.toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
bZ.prototype.reset=function(){this.j=this.u=this.B=this.startTimestamp=0;this.C=!1};
bZ.prototype.kc=function(){var a={},b=(0,g.GA)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.u&&(a.wtd=(b-this.u).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.x(w_a,g.E);g.k=w_a.prototype;g.k.setMediaElement=function(a){g.Hz(this.Pa);(this.mediaElement=a)?(I_a(this),fZ(this)):gZ(this)};
g.k.zd=function(a){this.Z.zd(a);this.K("html5_exponential_memory_for_sticky")&&(a.state.Yc()?g.Bp(this.oa):this.oa.stop());if(this.mediaElement)if(8===a.Dv.state&&WO(a.state)&&g.XO(a.state)){a=this.mediaElement.getCurrentTime();var b=this.mediaElement.Mh();var c=this.K("manifestless_post_live_ufph")||this.K("manifestless_post_live")?nI(b,Math.max(a-3.5,0)):nI(b,a-3.5);0<=c&&a>b.end(c)-1.1&&c+1<b.length&&11>b.start(c+1)-b.end(c)&&(c=b.start(c+1)+.2,.2>Math.abs(this.Za-c)||(this.va.xa("seekover",{b:mI(b,
"_"),cmt:a}),this.Za=c,this.seekTo(c,{Wu:!0,xe:"seektimeline_postLiveDisc"})))}else(null==(b=a.state)?0:8===b.state)&&this.Y.K("embeds_enable_muted_autoplay")&&!this.Ya&&0<this.videoData.limitedPlaybackDurationInSeconds&&($_a(this.va,this.getCurrentTime()+this.videoData.limitedPlaybackDurationInSeconds),this.Ya=!0)};
g.k.getCurrentTime=function(){return!isNaN(this.j)&&isFinite(this.j)?this.j:this.mediaElement&&H_a(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.C||0};
g.k.yk=function(){return this.getCurrentTime()-this.Ed()};
g.k.Vp=function(){return this.u?this.u.Vp():Infinity};
g.k.isAtLiveHead=function(a){if(!this.u)return!1;void 0===a&&(a=this.getCurrentTime());return aZ(this.u,a)};
g.k.rq=function(){return!!this.u&&this.u.rq()};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.vY?!1:c.vY;var d=void 0===c.wY?0:c.wY,e=void 0===c.Wu?!1:c.Wu,f=void 0===c.HP?0:c.HP,h=void 0===c.xe?"":c.xe,l=void 0===c.AC?!1:c.AC,m=void 0===c.PX?!1:c.PX;if(void 0===c.Er?0:c.Er)a+=this.Ed();if(c=a<this.Aa&&!!this.Fa){this.va.xa("sdai",{sk2bk:a.toFixed(3),mt:(a-this.timestampOffset).toFixed(3),lstadj:this.Aa.toFixed(3)});this.Aa=NaN;this.timestampOffset-=1E3;var n;if(null!=(n=this.Fa)){JXa(n,n.timestampOffset-1E3);var p=n.Sa,q=new Set;
for(z in p.j){var t=p.j[z].index,w=t.Nu();w&&!q.has(w)&&(w.startTime+=1E3,w.endTime=w.startTime+w.duration,q.add(w));t.segments.length&&(w=t.segments[t.segments.length-1],t.segments=[],t.segments.push(w))}n.I&&n.I.UO();fX(n.B,0,0,!0)}}var z=a;(n=!isFinite(z)||(this.u?aZ(this.u,z):z>=this.qe())||!g.JM(this.videoData))||this.va.xa("seeknotallowed",{st:z,mst:this.qe()});if(!n)return this.B&&(this.B=null,E_a(this)),Ef(this.getCurrentTime());if(.005>Math.abs(a-this.j)&&this.V)return this.D;h&&(z=a,(this.Y.Qd()||
this.K("html5_log_seek_reasons"))&&this.va.xa("seekreason",{reason:h,tgt:z}));this.V&&gZ(this);this.D||(this.D=new dK);a&&!isFinite(a)&&z_a(this,!1);(h=m||c)||(h=a,h=!(this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&0<this.mediaElement.uj()&&0<KO(this.mediaElement))||mM(this.videoData)&&this.Kd()===this.qe(!1)?0:isFinite(h)||!mM(this.videoData)));h||(a=G_a(this,a,e));a&&!isFinite(a)&&z_a(this,!1);this.C=a;this.Ja=f;this.j=a;this.u&&(e=this.u,f=a,q_a(e,f,
!1),r_a(e,f));e=this.va;f=a;e.yd.C=f;h=e.ZA;h.mediaTime=f;h.j=!0;b&&u0a(e);e.Op&&f>e.videoData.endSeconds&&isFinite(f)&&i0a(e);f<e.qe()-.01&&(h=RO(e.playerState,2),g.UN(h,8)&&(h=RO(h,4)),e.lc(h));e.ma("SEEK_TO",e,f);this.D&&(b?d&&this.La.start(d):(b={AC:l},this.V=!0,v_a(this,b)));(b=this.va.Op)&&a>b.start&&i0a(this.va);return this.D};
g.k.qe=function(a){if(!this.videoData.isLivePlayback)return J0a(this.va);var b;if(dN(this.videoData)&&(null==(b=this.mediaElement)?0:b.Hp())&&this.videoData.j)return a=this.getCurrentTime(),cAa(1E3*this.Lf(a))+a;if(mM(this.videoData)&&this.videoData.Kc&&this.videoData.j)return this.videoData.j.qe()+this.timestampOffset;if(this.videoData.C&&this.videoData.C.j){if(!a&&this.u)return this.u.Vp();a=J0a(this.va);this.policy.j&&this.mediaElement&&(a=Math.max(a,BCa(this.mediaElement)));return a+this.timestampOffset}return this.mediaElement?
Vy()?cAa(this.mediaElement.OE().getTime()):KO(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.k.Kd=function(){var a=this.videoData?this.videoData.Kd()+this.timestampOffset:this.timestampOffset;if(dN(this.videoData)&&this.videoData.j){var b,c=Number(null==(b=this.videoData.progressBarStartPosition)?void 0:b.utcTimeMillis)/1E3;b=this.getCurrentTime();b=this.Lf(b)-b;if(!isNaN(c)&&!isNaN(b))return Math.max(a,c-b)}return a};
g.k.yL=function(){this.D||this.seekTo(this.C,{xe:"seektimeline_forceResumeTime_singleMediaSourceTransition"})};
g.k.tG=function(){return this.V&&!isFinite(this.j)};
g.k.qa=function(){A_a(this,null);this.Z.dispose();g.E.prototype.qa.call(this)};
g.k.kc=function(){var a={};this.Fa&&Object.assign(a,this.Fa.kc());this.mediaElement&&Object.assign(a,this.mediaElement.kc());return a};
g.k.dO=function(a){this.timestampOffset=a};
g.k.getStreamTimeOffset=function(){return mM(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0};
g.k.Ed=function(){return this.timestampOffset};
g.k.Lf=function(a){return this.videoData.j.Lf(a-this.timestampOffset)};
g.k.Pu=function(){if(!this.mediaElement)return 0;if(KM(this.videoData)){var a=BCa(this.mediaElement)+this.timestampOffset-this.Kd(),b=this.qe()-this.Kd();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.Pu()};
g.k.ZC=function(a){this.I&&(this.I.j=a.audio.index)};
g.k.K=function(a){return this.Y&&this.Y.K(a)};hZ.prototype.Ns=function(){return this.started};
hZ.prototype.start=function(){this.started=!0};
hZ.prototype.reset=function(){this.finished=this.started=!1};var O_a=!1;g.x(g.lZ,g.aE);g.k=g.lZ.prototype;g.k.qa=function(){this.mX();this.zH.stop();window.clearInterval(this.qH);HRa(this.Ag);this.visibility.unsubscribe("visibilitystatechange",this.Ag);XZa(this.yc);g.gb(this.yc);qZ(this);g.sp.Em(this.Tv);this.nj();this.Cf=null;g.gb(this.videoData);g.gb(this.El);g.ib(this.b5);this.Op=null;g.aE.prototype.qa.call(this)};
g.k.Az=function(a,b,c,d){this.yc.Az(a,b,c);this.K("html5_log_media_perf_info")&&this.xa("adloudness",{ld:d.toFixed(3),cpn:a})};
g.k.GL=function(){var a;return null==(a=this.Fa)?void 0:a.GL()};
g.k.JL=function(){var a;return null==(a=this.Fa)?void 0:a.JL()};
g.k.KL=function(){var a;return null==(a=this.Fa)?void 0:a.KL()};
g.k.HL=function(){var a;return null==(a=this.Fa)?void 0:a.HL()};
g.k.Nl=function(){return this.videoData.Nl()};
g.k.getVideoData=function(){return this.videoData};
g.k.T=function(){return this.Y};
g.k.Cs=function(){return this.visibility};
g.k.ue=function(){return this.mediaElement};
g.k.LK=function(){if(this.videoData.isLoaded()){var a=this.El;0<g.jJ(a.j.experiments,"html5_player_min_build_cl")&&528338113<g.jJ(a.j.experiments,"html5_player_min_build_cl")&&IYa(a,"oldplayer");e0a(this)}else this.videoData.Tf||this.videoData.zm?this.Ms&&g.wK(this.Y)&&this.videoData.isLivePlayback||(this.videoData.Tf?Gza(this.videoData):(a=this.yc,a.qoe&&(a=a.qoe,KY(a,"protected"),a.provider.videoData.I?a.GX():a.provider.videoData.subscribe("dataloaded",a.GX,a)),Dza(this.videoData))):!this.videoData.loading&&
this.b2&&c0a(this)};
g.k.cI=function(a){this.Ng=a;this.Fa&&this.Fa.cI(a)};
g.k.Cy=aa(6);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.UN(this.getPlayerState(),128)||(this.ma("internalAbandon"),this.aP(!0),XZa(this.yc),g.gb(this.yc),g.sp.Em(this.Tv));var a;null==(a=this.Y.Sk)||a.flush()};
g.k.jr=function(){WZa(this.yc)};
g.k.Mg=function(a,b,c,d,e,f){var h,l;g.cd(kdb,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+PFa());b={errorCode:a,errorDetail:e,errorMessage:l||g.TT[h]||"",qL:h,Hm:f||"",CH:d,yF:b,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=a;pZ(this,"dataloaderror");this.lc(PO(this.playerState,128,b));g.sp.Em(this.Tv);qZ(this);this.Cn()};
g.k.hg=function(a){this.yn=this.yn.filter(function(b){return a!==b});
this.Lq.Ns()&&d0a(this)};
g.k.Mo=function(){var a;(a=!!this.yn.length)||(a=this.Wi.j.array[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.k.rq=function(){return this.yd.rq()};
g.k.Yc=function(){return this.playerState.Yc()};
g.k.vC=function(){return this.playerState.vC()&&this.videoData.Pn};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.Cf){var a=this.Cf;a=a.videoData.Ax.compose(a.videoData.YR);a=kF(a)}else a="auto";return a};
g.k.QB=aa(10);g.k.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
g.k.setMediaElement=function(a){if(this.mediaElement&&a.ub()===this.mediaElement.ub()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.Hz(this.hA),this.mediaElement=a,this.mediaElement.va=this,v0a(this),this.yd.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.nj();if(!this.playerState.isError()){var b=RO(this.playerState,512);g.UN(b,8)&&!g.UN(b,2)&&(b=QO(b,1));a.isView()&&(b=RO(b,64));this.lc(b)}this.mediaElement=a;this.mediaElement.va=this;MK(this.Y)&&
this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);v0a(this);this.yd.setMediaElement(this.mediaElement);this.K("html5_prewarm_media_source")&&!this.El.DC&&vCa(this.mediaElement)}};
g.k.nj=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(this.mediaElement){var c=this.getCurrentTime();0<c&&(this.yd.C=c);this.yd.setMediaElement(null);!a&&CI(this)?r0a(this):uZ(this);this.Fa&&(tY(this.Fa),vZ(this,b));this.xv.stop();if(this.mediaElement&&(!this.Lq.Ns()||this.playerState.isError()||g.UN(this.playerState,2)||this.lc(QO(this.playerState,512)),this.mediaElement)){g.Hz(this.hA);if(a||!this.mediaElement.isView())this.K("html5_rebase_video_to_ad_timeline")&&this.vb.Kt("mesv_s"),this.mediaElement.stopVideo(),
wZ(this);this.mediaElement=this.mediaElement.va=null}}};
g.k.playVideo=function(a){a=void 0===a?!1:a;var b=this,c,d,e,f,h;return g.A(function(l){if(1==l.j){var m=window.google_image_requests;m&&10<m.length&&(window.google_image_requests=m.slice(-10));if(g.UN(b.playerState,128))return l.return();if(b.El.wG())return b.ma("signatureexpired"),l.return();b.mediaElement&&VZa(b.yc);h0a(b);(g.UN(b.playerState,64)||a)&&b.lc(QO(b.playerState,8));return b.Lq.finished&&b.mediaElement?b.Cf||!b.jD?l.Ka(2):g.y(l,b.jD,3):l.return()}if(2!=l.j&&g.UN(b.playerState,128))return l.return();
if(!b.videoData.C)return b.videoData.isLivePlayback&&!g.yJ(b.Y.D,!0)?(c="html5.unsupportedlive",d=2):(c=b.videoData.Nl()?"fmt.unplayable":"fmt.noneavailable",d=1),g.AD(Error("selectableFormats")),b.Mg(c,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),l.return();if(b.uh()&&b.videoData.C.j)return l.return(oZ(b));if(kM(b.videoData)&&(e=b.getCurrentTime()<b.Kd()-15,f=g.JM(b.videoData)&&g.UO(b.playerState),(h=g.UN(b.playerState,1024))||!e&&!f||(f?b.seekTo(Infinity,{xe:"videoplayer_unpauseLiveOnly"}):
b.seekTo(b.Kd(),{xe:"videoplayer_outOfWindow"})),!b.isAtLiveHead(void 0,!0)&&b.rq()&&b.seekTo(Infinity,{xe:"videoplayer_peggedToLive"}),g.UN(b.playerState,256)&&b.videoData.Za&&b.yd.tG()))return b.lc(SO(b.playerState,8,4)),l.return();g.UN(b.playerState,4)&&g.UN(b.playerState,16)&&b.lc(SO(b.playerState,9,4));if(kZ(b))return C0a(b),l.return();B0a(b);g.ta(l)})};
g.k.Xr=function(){if(!this.Cf)return[];var a=OYa(this.Ii,this.Cf,this.Ou());return this.Cf.j.Xr(a)};
g.k.EB=function(){if(!this.Cf)return[];var a=OYa(this.Ii,this.Cf,this.Ou());return this.Cf.j.EB(a)};
g.k.Ou=function(){var a=this.pe?this.pe.Ou():wM(this.videoData)&&this.videoData.j&&qF(this.videoData.j)?this.videoData.Sk?bM:sYa:bM;this.VO&&(a=a.compose(Dcb));return a};
g.k.OF=function(){var a=this.Pd(),b=this.vf.Jd().videoId;return this.vf.Ts.OF(a)||this.vf.Ts.OF(b)};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.j?kF(this.videoData.Ax):jF[VI()]};
g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.k.setUserAudio51Preference=function(a){this.videoData.Xi!==a&&(this.xa("toggle51",{pref:a}),this.videoData.Xi=a,g.Lz("yt-player-audio51",a,2592E3),GY(this))};
g.k.getUserAudio51Preference=function(){var a=1;HK(this.Y)&&this.K("html5_ytv_surround_toggle_default_off")&&(a=0);var b;return null!=(b=g.Mz("yt-player-audio51"))?b:a};
g.k.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){if(n0a(this)){var a=p0a(this);if(a)return a}return this.videoData.getAudioTrack()};
g.k.jy=function(){if(this.Fa){var a=this.Fa,b=a.jy;var c=this.videoData;c=c.K("html5_ssdai_use_post_for_media")&&c.enableServerStitchedDai?!1:mM(c)&&c.mf&&!c.isAd();b.call(a,c)}};
g.k.xs=function(){return this.Xa};
g.k.mz=function(a){this.vz.set(a.initData,a);this.pe&&(this.pe.mz(a),this.K("html5_eme_loader_sync")||this.vz.remove(a.initData))};
g.k.eO=function(a){this.videoData.jl=g.hF("auto",a,!1,"u");jZ(this)};
g.k.ZC=function(a){j0a(this,a.reason,a.video.info,a.audio.info);this.yd.ZC(a)};
g.k.bH=function(a){this.ma("localmediachange",a)};
g.k.bA=function(){var a;null==(a=this.Fa)||a.bA(this.Y)};
g.k.wG=function(){return this.El.wG()};
g.k.handleError=function(a){this.El.handleError(a)};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.UN(this.playerState,64)||g.UN(this.playerState,2))&&!a)if(g.UN(this.playerState,8))this.lc(SO(this.playerState,4,8));else if(this.vC())kZ(this);else return;g.UN(this.playerState,128)||(a?this.lc(QO(this.playerState,256)):this.lc(SO(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.JM(this.videoData)&&this.Fa&&vZ(this,!1)};
g.k.stopVideo=function(){this.pauseVideo();this.Fa&&(vZ(this,!1),this.Fa.wk())};
g.k.Cn=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(CI(this)&&b){var c;null==(c=this.mediaElement)||c.Cn()}else{var d;null==(d=this.mediaElement)||d.stopVideo()}wZ(this);qZ(this);g.UN(this.playerState,128)||(a?this.lc(RO(RO(QO(this.playerState,4),8),16)):this.lc(PO(this.playerState)));this.videoData.videoId&&this.Y.Aa.remove(this.videoData.videoId)};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;g.UN(this.playerState,2)&&kZ(this);this.yd.seekTo(a,b);this.Wi.Nn()};
g.k.getCurrentTime=function(){return this.yd.getCurrentTime()};
g.k.yk=function(){return this.yd.yk()};
g.k.Vp=function(){return this.yd.Vp()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Ed())};
g.k.By=function(){var a=NaN;this.mediaElement&&(a=this.mediaElement.By());return 0<=a?a:this.getCurrentTime()};
g.k.Lf=function(){var a;return(null==(a=this.videoData.j)?0:a.Lf)?this.videoData.j.Lf(this.getCurrentTime()-this.Ed()):this.mediaElement&&(a=this.mediaElement.OE())&&(a=a.getTime(),!isNaN(a))?a/1E3+this.getCurrentTime():NaN};
g.k.getDuration=function(){return aN(this.videoData)&&this.Ng?this.Ng.getDuration():this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Ed():this.qe()?this.qe():0};
g.k.WB=function(){var a=new a_a;if(this.Fa){var b=this.Y.schedule;a.Zq=b.ea;a.Mt=b.oa;a.bandwidthEstimate=$J(b);a.j={d:YJ(b).toFixed(2),st:(1E9*(b.j.aj()||0)).toFixed(2),bw:b.B.aj().toFixed(0),abw:b.I.aj().toFixed(0),v50:XJ(b.u,.5).toFixed(2),v92:XJ(b.u,.92).toFixed(2),v96:XJ(b.u,.96).toFixed(2),v98:XJ(b.u,.98).toFixed(2)};b=this.Fa;if(b.Xa&&!b.Xa.Tg()&&(a.xu=RX(b.videoTrack),a.u=RX(b.audioTrack),b.policy.ib)){var c=QX(b.videoTrack),d=QX(b.audioTrack),e=mI(b.Xa.u.Hg(),"_",5),f=mI(b.Xa.j.Hg(),"_",
5);Object.assign(a.j,{lvq:c,laq:d,lvb:e,lab:f})}a.bandwidthEstimate=WW(b.J)}else this.mediaElement&&(a.xu=LO(this.mediaElement));a.Zq=this.Zq;a.Mt=this.Mt;a.B=this.isAtLiveHead()&&this.Yc()?Y_a(this):NaN;return a};
g.k.AD=function(a,b){this.Mt+=a;this.Zq+=b};
g.k.Pu=function(){return this.mediaElement?g.JM(this.videoData)?1:KM(this.videoData)?this.isAtLiveHead()||this.rq()?1:this.yd.Pu():this.mediaElement.Pu():0};
g.k.kc=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.yc.kc());this.mediaElement&&(Object.assign(b,this.mediaElement.kc()),Object.assign(b,this.ZB()));this.Fa&&Object.assign(b,this.Fa.kc());this.pe&&(b.drm=JSON.stringify(this.pe.kc()));b.state=this.playerState.state.toString(16);g.UN(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.getData()));this.Mo()&&(b.prerolls=this.yn.join(","));this.videoData.hd&&(b.ismb=this.videoData.hd);"UNKNOWN"!==this.videoData.latencyClass&&
(b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.vf.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&&RI(this.videoData.j)&&(b.segduration=RI(this.videoData.j)),a=this.yd,b.lat=a.I?zKa(a.I.C):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Ri.toFixed(3);if(a=g.hT(this))b.optimal_format=a.video.qualityLabel;
b.user_qual=VI();b.release_version="youtube.player.web_20230430_00_RC00"}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.SA([a])};
g.k.removeCueRange=function(a){this.Wi.Bh([a])};
g.k.vB=function(a,b){return this.Wi.vB(a,b)};
g.k.SA=function(a,b){this.Wi.Ae(a,b)};
g.k.KH=function(a){this.Wi.Bh(a)};
g.k.Im=function(){return this.Wi.Im()||[]};
g.k.uh=function(){return this.visibility.uh()};
g.k.Bt=function(){this.mediaElement&&this.mediaElement.Bt()};
g.k.U7=function(){pZ(this)};
g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.k.fO=function(a){var b=a.target.Mf();if(this.mediaElement&&this.mediaElement.Mf()&&this.mediaElement.Mf()===b){G0a(this,a.type);switch(a.type){case "error":var c=NO(this.mediaElement)||"";if("capability.changed"===c){this.K("html5_restart_on_capability_change")?(this.xa("capchg",{msg:this.mediaElement.zf()}),EY(this,!0)):oZ(this);return}if(0<this.mediaElement.Ye()&&EYa(this.El,c,{msg:this.mediaElement.zf()}))return;if(this.isBackground()&&4===this.mediaElement.Ye()){this.Cn();rZ(this,"unplayable");
return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.Xa||0<c)&&1!==c&&this.Tk(c);break;case "ratechange":this.Fa&&this.Fa.setPlaybackRate(this.mediaElement.getPlaybackRate());c=this.Wi;c.started=!0;c.Nn();this.yc.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":I0a(this);this.ma("onLoadedMetadata");x0a(this);break;case "loadstart":x0a(this);break;case "progress":case "suspend":this.wc();this.ma("onLoadProgress",this,this.Pu());break;case "playing":this.vb.Kt("plev");
this.XO&&(this.XO=!1,this.isAtLiveHead()||this.seekTo(Infinity,{xe:"videoplayer_onPlaying"}));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();var d=this.mediaElement&&0===this.mediaElement.uj();if(c&&(!this.UG||d))return;this.UG=this.UG||!!this.mediaElement.getCurrentTime();w0a(this);this.wc();if(!this.mediaElement||this.mediaElement.Mf()!==b)return;this.ma("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.mediaElement.Ru().length&&0===this.mediaElement.Mh().length&&
0<this.mediaElement.getCurrentTime()&&5>this.mediaElement.getCurrentTime()&&this.Fa)return;break;case "resize":I0a(this);this.videoData.u&&"auto"===this.videoData.u.video.quality&&this.ma("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.DS&&g.UN(this.playerState,8)&&!g.UN(this.playerState,1024)&&0===this.getCurrentTime()&&g.xA){rZ(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Mf()===b){this.ma("videoelementevent",a);b=this.playerState;c=
this.videoData.clientPlaybackNonce;if(!g.UN(b,128)){d=this.ZA;var e=this.mediaElement,f=this.Y.experiments,h=b.state;e=e?e:a.target;var l=e.getCurrentTime();if(!g.UN(b,64)||"ended"!==a.type&&"pause"!==a.type){var m=e.Ph()||1<l&&1.1>Math.abs(l-e.getDuration()),n="pause"===a.type&&e.Ph();l="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.UN(b,4)&&!XY(d,l);if(n||m&&l)0<e.UF()&&e.Mf()&&(h=14);else switch(a.type){case "error":NO(e)&&(h|=128);break;case "pause":g.UN(b,256)?(h^=256)||(h=64):
g.UN(b,32)||g.UN(b,2)||g.UN(b,4)||(h=4,g.UN(b,1)&&g.UN(b,8)&&(h|=1));break;case "playing":m=h;h=(h|8)&-1093;f&&f.kb("html5_distrust_playing")&&8!==m?h|=1:XY(d,e.getCurrentTime())&&(h&=-2);g.UN(b,1)&&YY(d,e.getCurrentTime(),(0,g.GA)(),LO(e))&&(h|=1);break;case "seeking":h|=16;g.UN(b,8)&&(h|=1);h&=-3;break;case "seeked":h&=-17;break;case "waiting":g.UN(b,2)||(h|=1);YY(d,e.getCurrentTime(),(0,g.GA)(),LO(e));break;case "timeupdate":f=g.UN(b,16),m=g.UN(b,4),(g.UN(b,8)||f)&&!m&&XY(d,e.getCurrentTime())&&
(h=8),YY(d,e.getCurrentTime(),(0,g.GA)(),LO(e))&&(h|=1)}}d=h;h=null;d&128&&(h=a.target,e=NO(h),f=1,e?("capability.changed"===e&&(f=2),m="GENERIC_WITHOUT_LINK",n=h.kc(),n.mediaElem="1",/AUDIO_RENDERER/.test(h.zf())&&(m="HTML5_AUDIO_RENDERER_ERROR"),h={errorCode:e,errorMessage:g.TT[m]||"",qL:m,CH:RK(n),yF:f,cpn:b.j?b.j.cpn:""}):h=null,h&&(h.cpn=c));b=PO(b,d,h)}!g.UN(this.playerState,1)&&g.UN(b,1)&&F0a(this,"evt"+a.type);this.lc(b)}}};
g.k.r5=function(a){a="available"===a.j.availability;a!==this.nC&&(this.nC=a,this.ma("airplayavailabilitychange"))};
g.k.s5=function(){var a=(0,g.GA)(),b=this.mediaElement.uh();this.xa("airplay",{ia:b});!b&&!isNaN(this.yG)&&2E3>a-this.yG||(this.yG=a,b!==this.uh()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Ag()),this.xa("airplay",{rbld:b}),GY(this)),this.ma("airplayactivechange"))};
g.k.cC=function(a){if(this.Fa){var b=this.Fa,c=b.B,d=b.currentTime,e=Date.now()-c.ea;c.ea=NaN;c.xa("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.D)&&3!==c.u&&sXa(c.Fa,d,c.D,c.B);c.J=NaN;eX(c,4,3===c.u?"adfps":"adf");tY(b)}};
g.k.wc=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){B_a(this.yd,this.Yc());var c=this.getCurrentTime();this.Fa&&(g.UN(this.playerState,4)&&g.JM(this.videoData)||GXa(this.Fa,c));5<c&&(this.yd.C=c);var d=g.fA();d?g.sp.Em(this.Tv):g.Ay(this.Tv);var e=this.mediaElement.Hp();if((g.XO(this.playerState)||!e||dN(this.videoData))&&!g.UN(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.UN(b.playerState,128)){b.Y.Qd()&&g.jJ(b.Y.experiments,"html5_log_rebuffer_events")&&
G0a(b,"pfx");var h=b.getCurrentTime(),l=LO(b.mediaElement),m=g.UN(b.playerState,8),n=XY(b.ZA,h),p=YY(b.ZA,h,(0,g.GA)(),l);m&&n?b.lc(RO(b.playerState,1)):m&&p?(m=b.getDuration(),n=kM(b.videoData),m&&1.1>Math.abs(m-h)?(b.xa("setended",{ct:h,bh:l,dur:m,live:n}),b.mediaElement.us()?b.seekTo(0,{xe:"videoplayer_loop"}):rW(b)):(g.XO(b.playerState)||F0a(b,"progress_fix"),b.lc(QO(b.playerState,1)))):(m&&!n&&!p&&0<h&&(m=(Date.now()-b.DC)/1E3,n=b.getDuration(),h>n-1&&b.xa("misspg",{t:h.toFixed(2),d:n.toFixed(2),
r:m.toFixed(2),bh:l.toFixed(2)})),g.UO(b.playerState)&&g.XO(b.playerState)&&5<LO(b.mediaElement)&&b.lc(RO(b.playerState,1)));b.wc()}};
0===this.mediaElement.Ru().length?this.Tv=d?g.sp.wi(f,100):g.yy(f,100):this.Tv=d?g.sp.wi(f,500):g.yy(f,500)}this.videoData.zC=c;!a&&this.Yc()&&A0a(this);WYa(this.Ii,this.Cf,this.ue(),this.isBackground())&&jZ(this);XYa(this.Ii,this.videoData.u)&&(this.yc.Ld("qoe.restart","droprate."+this.Ii.J),Wwa(this.Y.D),GY(this));this.ma("progresssync",this,a);e&&dN(this.videoData)&&this.ma("onVideoProgress",this,this.getCurrentTime())}};
g.k.C3=function(){this.Mg("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.OB=function(){return this.yc.OB()};
g.k.DL=function(){return this.Fa?this.Fa.DL():$J(this.Y.schedule,!0)};
g.k.g2=function(){g.XO(this.playerState)&&UYa(this.Ii,this.Cf)&&jZ(this)};
g.k.lc=function(a){if(!g.TO(this.playerState,a)){var b=new g.$N(a,this.playerState);this.playerState=a;H0a(this);var c=!this.tH.length;this.tH.push(b);var d=this.mediaElement&&this.mediaElement.fh();g.bO(b,1)&&!g.UN(b.Dv,16)&&!d&&g.UN(this.playerState,8)&&!g.UN(this.playerState,64)&&this.Fa&&(this.Fa.Ry=!0,this.mediaElement&&5<=LO(this.mediaElement)&&((d=g.jJ(this.Y.experiments,"html5_non_network_rebuffer_duration_ms"))?this.PV.start(d):UYa(this.Ii,this.Cf)&&jZ(this)));(d=g.jJ(this.Y.experiments,
"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.UN(a,1)&&(g.UN(a,8)||g.UN(a,16))?this.gK.start(d):this.gK.stop();(0>aO(b,8)||g.bO(b,1024))&&this.xv.stop();!g.bO(b,8)||this.videoData.Za||g.UN(b.state,1024)||this.xv.start();g.UN(b.state,8)&&0>aO(b,16)&&!g.UN(b.state,32)&&!g.UN(b.state,2)&&this.playVideo();g.UN(b.state,2)&&KM(this.videoData)&&(this.Tk(this.getCurrentTime()),this.wc(!0));g.bO(b,2)&&this.aP(!0);g.bO(b,128)&&this.Cn();this.videoData.j&&this.videoData.isLivePlayback&&!this.FY&&(0>aO(b,
8)?(a=this.videoData.j,a.C&&a.C.stop()):g.bO(b,8)&&this.videoData.j.resume());this.yd.zd(b);this.yc.zd(b);if(c&&!this.isDisposed())try{for(var e=g.v(this.tH),f=e.next();!f.done;f=e.next()){var h=f.value;this.Wi.zd(h);this.ma("statechange",h)}}finally{this.tH.length=0}}};
g.k.WC=function(){this.videoData.isLivePlayback||this.K("html5_disable_connection_issue_event")||this.ma("connectionissue")};
g.k.ZN=function(){this.vb.tick("qoes")};
g.k.yL=function(){this.yd.yL()};
g.k.aH=function(a,b,c,d){a:{var e=this.El;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=TK(b);"drm.keyerror"===a&&this.pe&&1<this.pe.u.keys.length&&96>e.D&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.u&&e.videoData.u.video.isHdr())KYa(e,a);else{if(e.va.Mg(a,b,d,c),BYa(e,{detail:c}))break a}else e.Ld(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.xa("retrydrm",{sessionLimitExhausted:1}),e.D++,E0a(e.va))}};
g.k.i6=function(){var a=this,b=g.jJ(this.Y.experiments,"html5_license_constraint_delay"),c=dz();b&&c?(b=new g.Ap(function(){sZ(a);pZ(a)},b),g.I(this,b),b.start()):(sZ(this),pZ(this))};
g.k.YC=function(a){this.ma("heartbeatparams",a)};
g.k.bp=function(a){this.xa("keystatuses",hYa(a));var b="auto",c=!1;this.videoData.u&&(b=this.videoData.u.video.quality,c=this.videoData.u.video.isHdr());if(this.K("html5_drm_check_all_key_error_states")){var d=iYa(b,c);d=zY(a)?jYa(a,d):a.C.includes(d)}else{a:{b=iYa(b,c);for(d in a.j)if("output-restricted"===a.j[d].status){var e=a.j[d].type;if(""===b||"AUDIO"===e||b===e){d=!0;break a}}d=!1}d=!d}if(this.K("html5_enable_vp9_fairplay")){if(c)if(a.V){var f;if(null==(f=this.pe)?0:gJ(f.j))if(null==(c=this.pe))c=
0;else{b=f=void 0;e=g.v(c.u.values());for(var h=e.next();!h.done;h=e.next())h=h.value,f||(f=kYa(h,"SD")),b||(b=kYa(h,"AUDIO"));c.Qi({sd:f,audio:b});c="output-restricted"===f||"output-restricted"===b}else c=!d;if(c){this.xa("drm",{dshdr:1});KYa(this.El);return}}else{this.videoData.NI||(this.videoData.NI=!0,this.xa("drm",{dphdr:1}),EY(this,!0));return}var l;if(null==(l=this.pe)?0:gJ(l.j))return}else if(l=a.V&&d,c&&!l){KYa(this.El);return}d||jYa(a,"AUDIO")&&jYa(a,"SD")||(a=hYa(a),this.VO?(this.ma("drmoutputrestricted"),
this.K("html5_report_fatal_drm_restricted_error_killswitch")||this.Mg("drm.keyerror",2,void 0,"info."+a)):(this.VO=!0,this.Ld(new SK("qoe.restart",Object.assign({},{retrydrm:1},a))),jZ(this),E0a(this)))};
g.k.k6=function(){if(!this.videoData.Za&&this.mediaElement&&!this.isBackground()){var a="0";0<this.mediaElement.uj()&&5<=LO(this.mediaElement)&&this.videoData.C&&this.videoData.C.j&&(this.lc(QO(this.playerState,1)),F0a(this,"load_soft_timeout"),this.ma("playbackstalledatstart"),a="1");H0a(this);var b=this.videoData.C;a={restartmsg:a,mfmt:!wM(this.videoData),mdrm:!(!(b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].Nd)||this.pe),mfmtinfo:!this.videoData.u,prerolls:this.Mo()?this.yn.join(","):
"0"};if(this.pe){b=this.pe;if(0>=b.u.size){var c="ns;";b.ea||(c+="nr;");b=c+="ql."+b.B.length}else b=hYa(b.u.values().next().value),b=RK(b);a.drmp=b}var d;Object.assign(a,(null==(d=this.Fa)?void 0:d.kc())||{});var e;Object.assign(a,(null==(e=this.mediaElement)?void 0:e.kc())||{});this.yc.Ld("qoe.start15s",RK(a));this.ma("loadsofttimeout")}};
g.k.Tk=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,pZ(this))};
g.k.aP=function(a){var b=this;a=void 0===a?!1:a;if(!this.WE){YE("att_s","player_att")||cF("att_s",void 0,"player_att");var c=new g.OJa(this.videoData);if("c1a"in c.j&&!g.WR.isInitialized()&&(cF("att_wb",void 0,"player_att"),2===this.tK&&.01>Math.random()&&g.AD(Error("Botguard not available after 2 attempts")),!a&&5>this.tK)){g.Bp(this.uK);this.tK++;return}if("c1b"in c.j){var d=ZZa(this.yc);d&&RJa(c).then(function(e){e&&!b.WE&&d?(cF("att_f",void 0,"player_att"),d(e),b.WE=!0):cF("att_e",void 0,"player_att")},
function(){cF("att_e",void 0,"player_att")})}else(a=g.PJa(c))?(cF("att_f",void 0,"player_att"),YZa(this.yc,a),this.WE=!0):cF("att_e",void 0,"player_att")}};
g.k.qe=function(a){return this.yd.qe(void 0===a?!1:a)};
g.k.Kd=function(){return this.yd.Kd()};
g.k.Ed=function(){return this.yd?this.yd.Ed():0};
g.k.getStreamTimeOffset=function(){return this.yd?this.yd.getStreamTimeOffset():0};
g.k.Zp=function(){var a=0;this.Y.K("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.Ed():this.getStreamTimeOffset());return a};
g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&PYa(this.Ii,null==(b=this.videoData.C)?void 0:b.videoInfos)&&jZ(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.u&&(a=this.videoData.u.video.quality,"auto"===a&&this.mediaElement)){var b=XN(this);b&&0<b.videoHeight&&(a=AH(b.videoWidth,b.videoHeight))}return a};
g.k.isHdr=function(){return!!(this.videoData.u&&this.videoData.u.video&&this.videoData.u.video.isHdr())};
g.k.dA=function(){this.yc.dA()};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.yc;c.j?(c=QY(c.j,"engage"),c.V=a,c.send(b)):b&&b()};
g.k.Dj=function(a){return this.yc.Dj(a)};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;return kM(this.videoData)&&(this.tU||b)?this.yd.isAtLiveHead(a):!1};
g.k.ls=function(){var a=this.qe(),b=this.getCurrentTime(),c;(c=!kM(this.videoData))||(c=this.yd,c=!(c.u&&c.u.B));return c||this.rq()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.un=aa(14);g.k.gt=aa(41);g.k.ZB=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
g.k.setLoop=function(a){this.loop=a;this.mediaElement&&MK(this.Y)&&this.mediaElement.setLoop(a);this.Fa&&this.K("html5_loop_skip_set_end_of_stream")&&(a?this.Fa.policy.Ya=!0:uXa(this.Fa))};
g.k.us=function(){return this.mediaElement&&MK(this.Y)?this.mediaElement.us():this.loop};
g.k.dO=function(a){this.xa("timestamp",{o:a.toString()});this.yd.dO(a)};
g.k.Tc=function(a){this.vb.tick(a)};
g.k.ai=function(a){return this.vb.ai(a)};
g.k.Kt=function(a){this.vb.Kt(a)};
g.k.xa=function(a,b,c){this.yc.xa(a,b,void 0===c?!1:c)};
g.k.JO=function(a,b,c){this.yc.xa(a,b,void 0===c?!1:c)};
g.k.Ld=function(a){this.yc.Ld(a.errorCode,RK(a.details))};
g.k.zD=function(a,b,c){this.yc.zD(a,b,c)};
g.k.mB=function(a){this.videoData.hS=!0;this.Ld(new SK("sabr.fallback",a));EY(this,!0)};
g.k.qF=function(a){this.videoData.ES=!0;this.Ld(new SK("qoe.restart",a));EY(this,!0)};
g.k.getPlayerSize=function(){return this.UD.getPlayerSize()};
g.k.Fj=function(){return this.UD.Fj()};
g.k.Nh=function(){return this.vb};
g.k.aq=function(){return this.vf.aq()};
g.k.getVolume=function(){return this.vf.getVolume()};
g.k.oC=function(){return this.vf.oC()};
g.k.isMuted=function(){return this.vf.isMuted()};
g.k.uy=function(){return this.vf.uy()};
g.k.MB=function(){return this.vf.MB()};
g.k.AB=function(){return this.vf.AB()};
g.k.K=function(a){return this.Y.K(a)};
g.k.sK=function(){if(iM(this.videoData,"html5_set_debugging_opt_in")){var a=g.Sz();g.Tz(0,183)||(Vz(183,!0),a.save())}};
g.k.mX=function(){if(g.VO(this.playerState)){var a=mZ.xL();0!==Object.keys(a).length&&this.yc.xa("profile",a)}this.zH.start()};
g.k.mp=function(){var a=this.getCurrentTime(),b=a-this.Ed();var c=this.mediaElement?qI(this.mediaElement.Mh()):0;c=Math.floor(Math.max(c-b,0))+100;if(this.K("html5_skippable_seek_if_behind_live_head")){var d;if(null==(d=this.Fa)?0:d.KD(b,this.qe()))return this.xa("sdai",{skipad:1,ct:b.toFixed(3),adj:0}),!0;var e;if(null==(e=this.Fa)?0:e.mp(b,c))return this.xa("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),J_a(this.yd,a),!0}else{var f;if(null==(f=this.Fa)?0:f.mp(b,c))return this.xa("sdai",{skipad:1,
ct:b.toFixed(3),adj:c.toFixed(3)}),J_a(this.yd,a),!0}return!1};
g.k.Qd=function(){return this.Y.Qd()};
g.k.YL=function(){this.vf.ZP();return this.Y.Tf||""};
g.k.Pd=function(){return this.videoData.videoId};
g.k.Fy=function(a){return this.Fa?this.Fa.Fy(a):""};
g.k.Ey=function(){return this.vf.Jv};
g.k.QO=function(a){if(this.K("html5_cabr_utc_seek")){var b;null==(b=this.Fa)||b.QO(a)}};g.x(g.xZ,g.E);g.xZ.create=function(a,b,c,d){try{var e="string"===typeof a?a:"player"+g.Sa(a),f=w4[e];if(f){try{f.dispose()}catch(l){g.zD(l)}w4[e]=null}var h=new g.xZ(a,b,c,d);g.lb(h,function(){w4[e]=null;h.zY&&h.zY()});
return w4[e]=h}catch(l){throw g.zD(l),l.stack;}};
g.k=g.xZ.prototype;g.k.Cs=function(){return this.visibility};
g.k.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.k.Mm=function(){this.DM||(this.DM=g.ER(BP(),LFa()));return this.DM};
g.k.nj=function(){if(this.mediaElement){this.jA&&(this.events.Fc(this.jA),this.jA=null);g.Hz(this.Ss);this.Lb&&this.Lb.nj(!0);this.template.nj();try{this.K("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.MH()}catch(a){g.AD(a)}this.mediaElement=null}};
g.k.Pc=function(){return this.Lb};
g.k.Nq=function(){this.Lb!==this.zb&&sW(this,this.zb)};
g.k.ey=function(a,b,c){var d=this,e=this.vb;2===a&&(e=new vLa(this.Y));return new g.lZ(this.Y,a,e,this.template,function(f){return d.Mq.ma.apply(d.Mq,[f].concat(g.la(g.Ca.apply(1,arguments))))},function(){return d.Ua.getVisibilityState()},this.visibility,this,b,c)};
g.k.x5=function(){DZ(this)||this.kp(5)};
g.k.G6=function(a){if(!DZ(this)){x1a(this);var b=a.getPlayerState();a.vC()?this.pauseVideo():g.VO(b)&&this.playVideo()}};
g.k.canPlayType=function(a){return gI(a)};
g.k.T=function(){return this.Y};
g.k.getVideoData=function(){return this.Lb.getVideoData()};
g.k.XB=aa(8);g.k.Jd=function(){return this.zb.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.hS(this,a);return a?g.bN(a.getVideoData())?1:(a=a.ue())?a.Pu():0:0};
g.k.jb=function(){return this.template};
g.k.wb=function(){return this.bd};
g.k.Nh=function(){return this.vb};
g.k.Oz=function(a){var b=g.hS(this,1);b&&rW(b,a)};
g.k.aq=function(){return this.bd.aq()};
g.k.getVolume=function(){return Math.round(this.Ua.getVolume())};
g.k.oC=function(){return this.Ua.isFullscreen()};
g.k.isMuted=function(){return this.Ua.isMuted()};
g.k.MB=function(){if(this.Y.K("html5_enable_embedded_player_visibility_signals")&&g.iK(this.Y)&&this.fQ){var a=this.fQ;a=null==a.j?null:Math.round(100*a.j)/100;if(null!=a)return a}};
g.k.AB=function(){if(this.Y.K("html5_enable_embedded_player_visibility_signals")&&g.iK(this.Y)){var a=this.template.getPlayerSize();if(0<a.height&&0<a.width){a=[Math.round(a.width),Math.round(a.height)];var b=g.FK();1<b&&a.push(b);return a.join(":")}}};
g.k.uy=function(){if(this.Lb===this.zb&&this.Bb)return this.Bb.postId};
g.k.B8=function(){var a=this;g.wK(this.Y)?g.QK(this.Y,g.YM(this.getVideoData())).then(function(b){CP(BP(),b);cKa(a.getVideoData(),a.Y,a.Mm())}):cKa(this.getVideoData(),this.Y,this.Mm())};
g.k.addBgVersionChangeCallback=function(a){JJa.push(a)};
g.k.BL=function(a){var b=this;return g.A(function(c){return b.vH?c.return(b.vH.BL(a)):c.return(Promise.reject("web po not available"))})};
g.k.ZP=function(){this.vH&&this.vH.ZP()};
g.k.gP=function(a){this.vH=a};
g.k.Vl=function(a){1===a&&(this.vb.tick("vr"),y0a(this.Lb),wLa(this.vb,this.Lb.getVideoData(),w1a(this)),xMa(this.bd));var b=this.Y;(NK(b)&&b.I||g.pK(b))&&(this.mf()||this.Ua.Na("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.Lb===this.zb&&this.Lb.us()!==a&&(this.Lb.setLoop(a),this.Ua.Na("onLoopChange",a))};
g.k.getLoopVideo=function(){return this.Lb.us()};
g.k.setLoopRange=function(a){var b=!1;!!this.Bb!==!!a?b=!0:this.Bb&&a&&(b=this.Bb.startTimeMs!==a.startTimeMs||this.Bb.endTimeMs!==a.endTimeMs||this.Bb.postId!==a.postId||this.Bb.type!==a.type);if(b){this.zb.Wi.hf("applooprange");if(a)b=new g.UD(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.zb.addCueRange(b);else{this.Jd().clipConfig=void 0;var c,d;"repeatChapter"!==(null==(c=this.Bb)?void 0:c.type)||isNaN(Number(null==(d=this.Bb)?void 0:d.loopCount))||(b={loopCount:String(this.Bb.loopCount),
cpn:this.getVideoData().clientPlaybackNonce},g.nA("repeatChapterLoopEvent",b))}this.Bb=a;this.Ua.Na("onLoopRangeChange",a||void 0);this.Lb===this.zb&&(this.XH(),this.Lb.jr())}};
g.k.getLoopRange=function(){return this.Bb};
g.k.XH=function(){this.Bb&&this.Lb===this.zb&&(h1a(this,this.zb.getCurrentTime())?this.Bb.loopCount=0:i1a(this))};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=Q0a(this,a),this.zb.getPlaybackRate()!==a&&(this.zb.setPlaybackRate(a),b&&!this.Y.C&&g.Lz("yt-player-playback-rate",a),this.Ua.Na("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return uS(this.bd).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.hS(this):g.hS(this,a);if(!a)return 0;if(b){if(c&&this.Je&&(b=this.Je.ob/1E3,0!==b))return b;a=CZ(this,a);return MZ(this,a.getCurrentTime(),a)}c&&this.Je?(b=this.Je,a=a.getCurrentTime(),uW(b)?(b=CW(b,1E3*a))&&b.Cr&&(a-=b.Cr):(b=YRa(b,1E3*a))&&(a-=b.start/1E3)):a=a.getCurrentTime();return a};
g.k.By=function(){var a=g.hS(this);if(!a)return 0;a=CZ(this,a);return MZ(this,a.By(),a)};
g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c=this.getVideoData(),d=2===a&&c.enableServerStitchedDai;a=d?g.hS(this):g.hS(this,a);if(!a)return 0;if(c.hasProgressBarBoundaries()&&!d){var e,f=Number(null==(e=c.progressBarStartPosition)?void 0:e.utcTimeMillis),h;c=Number(null==(h=c.progressBarEndPosition)?void 0:h.utcTimeMillis);if(!isNaN(f)&&!isNaN(c))return(c-f)/1E3}if(b)return b=BZ(this,a),MZ(this,b.getDuration(),b);d&&this.Je?(b=this.Je,d=a.getCurrentTime(),b=uW(b)?b.Z?b.Z.durationMs/1E3:
0:(b=CW(b,1E3*d))?b.durationMs/1E3:0):b=a.getDuration();return b};
g.k.Kd=function(a){a=g.hS(this,a);if(!a)return 0;a=BZ(this,a);return MZ(this,a.Kd(),a)};
g.k.Lf=function(a){var b=g.hS(this,a);return b?this.mf(b)?(b=BZ(this,b),b.Lf()-b.getCurrentTime()+this.getCurrentTime(a)):b.Lf():0};
g.k.addPlayerResponsesForAssociation=function(a){this.Ng&&this.Ng.addPlayerResponsesForAssociation(a)};
g.k.finishSegmentByCpn=function(a,b){return this.Ng?this.Ng.finishSegmentByCpn(a,b):[]};
g.k.getCpnByClipId=function(a){return this.Pv.getCpnByClipId(a)};
g.k.eL=function(){this.template.eL();var a=this.F;a.element=this.template.element;var b=a.element,c;for(c in a.state.j)a.state.j.hasOwnProperty(c)&&(b[c]=a.state.j[c]);(a=xz(this.template.element))&&this.events.S(this.template,a,this.onFullscreenChange);this.events.S(window,"resize",this.c7)};
g.k.getDebugText=function(a){var b=this.zb.kc(a);if(this.Lb&&this.Lb!==this.zb){for(var c=this.Lb.kc(a),d=g.v(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=Ne(document,"movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.Te("video-ads");f?(D1a(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.Te("videoAdUiSkipContainer"),l=g.Te("ytp-ad-skip-button-container"),m=h||l;m?(D1a(m,f),f.ima=h?1:0,f.bulleit=l?1:0):f.missing=1;
d=JSON.stringify({player:d,videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.mediaElement&&(b["0sz"]=""+(0===+De(this.mediaElement.getSize())),b.op=this.mediaElement.getStyle("opacity"),c=this.mediaElement.zs().y+this.mediaElement.getSize().height,b.yof=""+(0>=+c),b.dis=this.mediaElement.getStyle("display"));(a=a?(0,g.LY)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Ua.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;return JSON.stringify(b,null,2)};
g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.T().experiments.experimentIds.join(", ")},b=this.Cb().getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
g.k.getPresentingPlayerType=function(a){if(1===this.appState)return 1;if(DZ(this))return 3;var b;return a&&(null==(b=this.Je)?0:WRa(b,this.getCurrentTime()))?2:g.hS(this).getPlayerType()};
g.k.Cb=function(a){return 3===this.getPresentingPlayerType()?uS(this.bd).Te:g.hS(this,a).getPlayerState()};
g.k.getAppState=function(){return this.appState};
g.k.fO=function(a){switch(a.type){case "loadedmetadata":this.SH.start();a=g.v(this.Fz);for(var b=a.next();!b.done;b=a.next())b=b.value,u1a(this,b.id,b.T9,b.S9,void 0,!1);this.Fz=[];break;case "loadstart":this.vb.Kt("gv");break;case "progress":case "timeupdate":2<=qI(a.target.Mh())&&this.vb.Kt("l2s");break;case "playing":g.KK&&this.SH.start();if(g.wK(this.Y))a=!1;else{b=g.wS(this.wb());a="none"===this.mediaElement.getStyle("display")||0===De(this.mediaElement.getSize());var c=UW(this.template),d=this.Lb.getVideoData(),
e=g.qK(this.Y)||g.rK(this.Y);d=xM(d);b=!c||b||e||d||this.Y.Ud;a=a&&!b}a&&(this.Lb.xa("hidden",{},!0),this.getVideoData().jc||(this.getVideoData().jc=1,this.nW(),this.Lb.playVideo()))}};
g.k.onLoadProgress=function(a,b){this.Ua.Na("onLoadProgress",b)};
g.k.A7=function(){this.Ua.ma("playbackstalledatstart")};
g.k.onVideoProgress=function(a,b){a=CZ(this,a);b=MZ(this,a.getCurrentTime(),a);this.Ua.Na("onVideoProgress",b)};
g.k.onAutoplayBlocked=function(){this.Ua.Na("onAutoplayBlocked")};
g.k.Q6=function(){this.Ua.ma("progresssync")};
g.k.z5=function(a){if(1===this.getPresentingPlayerType()){g.bO(a,1)&&!g.UN(a.state,64)&&this.Jd().isLivePlayback&&this.zb.isAtLiveHead()&&1<this.Ua.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.bO(a,2)){if(this.Bb&&this.Bb.endTimeMs>=1E3*(this.getDuration()-1)){i1a(this);return}$0a(this)}if(g.UN(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ua.Na("onError",gKa(b.errorCode));this.Ua.Na("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.qL,cpn:b.cpn});6048E5<(0,g.GA)()-this.Y.Sf&&this.Ua.Na("onReloadRequired")}b={};if(a.state.Yc()&&!g.XO(a.state)&&!YE("pbresume","ad_to_video")&&YE("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);ZE(b,"ad_to_video");bF("pbresume",void 0,"ad_to_video");xMa(this.bd)}this.Ua.ma("applicationplayerstatechange",a)}};
g.k.HW=function(a){3!==this.getPresentingPlayerType()&&this.Ua.ma("presentingplayerstatechange",a)};
g.k.Gi=function(a){AZ(this,YO(a.state));g.UN(a.state,1024)&&this.Ua.isMutedByMutedAutoplay()&&(kS(this,{muted:!1,volume:this.gi.volume},!1),KZ(this,!1))};
g.k.v5=function(a,b,c){"newdata"===a&&T0a(this);b=c.clipConfig;"dataloaded"===a&&b&&null!=b.startTimeMs&&null!=b.endTimeMs&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId,type:"clips"})};
g.k.TC=function(){this.Ua.Na("onPlaybackAudioChange",this.Ua.getAudioTrack().Ic.name)};
g.k.gD=function(a){var b=this.Lb.getVideoData();a===b&&this.Ua.Na("onPlaybackQualityChange",a.u.video.quality)};
g.k.onVideoDataChange=function(a,b,c){b===this.zb&&(this.Y.Yi=c.oauthToken);if(b===this.zb&&(this.getVideoData().enableServerStitchedDai&&!this.Je?this.Je=new g.vW(this.Ua,this.Y,this.zb):!this.getVideoData().enableServerStitchedDai&&this.Je&&(this.Je.dispose(),this.Je=null),aN(this.getVideoData())&&"newdata"===a)){this.Pv.Df();var d=LRa(this.Pv,1,0,this.getDuration(1),void 0,{video_id:this.getVideoData().videoId});var e=this.Pv;d.B===e&&(0===e.segments.length&&(e.j=d),e.segments.push(d));this.Ng=
new HW(this.Ua,this.Pv,this.zb)}if("newdata"===a)FT(this.bd,2),this.Ua.ma("videoplayerreset",b);else{if(!this.mediaElement)return;"dataloaded"===a&&(this.Lb===this.zb?(uK(c.B,c.vX),this.zb.getPlayerState().isError()||(d=DZ(this),this.Jd().isLoaded(),d&&this.kp(6),d1a(this),vMa(this.bd)||c1a(this))):d1a(this));if(1===b.getPlayerType()&&(this.Y.Ya&&C1a(this),this.getVideoData().isLivePlayback&&!this.Y.Do&&this.Dg("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded())){if(Qza(c)||this.getVideoData().fA){d=
this.Jx;var f=this.getVideoData();e=this.zb;bS(d,"part2viewed",1,0x8000000000000,e);bS(d,"engagedview",Math.max(1,1E3*f.ob),0x8000000000000,e);f.isLivePlayback||(f=1E3*f.lengthSeconds,bS(d,"videoplaytime25",.25*f,f,e),bS(d,"videoplaytime50",.5*f,f,e),bS(d,"videoplaytime75",.75*f,f,e),bS(d,"videoplaytime100",f,0x8000000000000,e),bS(d,"conversionview",f,0x8000000000000,e),bS(d,"videoplaybackstart",1,f,e),bS(d,"videoplayback2s",2E3,f,e),bS(d,"videoplayback10s",1E4,f,e))}if(c.hasProgressBarBoundaries()){var h;
d=Number(null==(h=this.getVideoData().progressBarEndPosition)?void 0:h.utcTimeMillis)/1E3;!isNaN(d)&&(h=this.Lf())&&(h-=this.getCurrentTime(),h=1E3*(d-h),d=this.BH.progressEndBoundary,(null==d?void 0:d.start)!==h&&(d&&this.KH([d]),h=new g.UD(h,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.zb.addCueRange(h),this.BH.progressEndBoundary=h))}}this.Ua.ma("videodatachange",a,c,b.getPlayerType())}this.Ua.Na("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.XH();
(a=c.Gz)?this.Ks.aL(a,c.clientPlaybackNonce):RSa(this.Ks)};
g.k.fF=function(){FZ(this,null);this.Ua.Na("onPlaylistUpdate")};
g.k.SV=function(a){var b=a.getId(),c=this.Jd(),d=!this.isInline();if(!c.inlineMetricEnabled&&!this.Y.experiments.kb("enable_player_logging_lr_home_infeed_ads")||d){if("part2viewed"===b){if(c.aZ&&g.VB(c.aZ),c.dK&&SZ(this,c.dK),c.sx)for(var e={CPN:this.getVideoData().clientPlaybackNonce},f=g.v(c.sx),h=f.next();!h.done;h=f.next())SZ(this,g.pp(h.value,e))}else"conversionview"===b?this.zb.dA():"engagedview"===b&&c.oh&&(e={CPN:this.getVideoData().clientPlaybackNonce},g.VB(g.pp(c.oh,e)));c.bZ&&(e=a.getId(),
e=py(c.bZ,{label:e}),g.VB(e));switch(b){case "videoplaytime25":c.uY&&SZ(this,c.uY);c.OM&&TZ(this,c.OM);c.oQ&&g.VB(c.oQ);break;case "videoplaytime50":c.RY&&SZ(this,c.RY);c.PM&&TZ(this,c.PM);c.pQ&&g.VB(c.pQ);break;case "videoplaytime75":c.XY&&SZ(this,c.XY);c.YM&&TZ(this,c.YM);c.qQ&&g.VB(c.qQ);break;case "videoplaytime100":c.fY&&SZ(this,c.fY),c.AL&&TZ(this,c.AL),c.cZ&&g.VB(c.cZ)}(e=this.getVideoData().fA)&&p1a(this,e,a.getId())&&p1a(this,e,a.getId()+"gaia")}if(c.inlineMetricEnabled&&!d)switch(b){case "videoplaybackstart":var l,
m=null==(l=c.tx)?void 0:l.j;m&&SZ(this,m);break;case "videoplayback2s":(l=null==(m=c.tx)?void 0:m.B)&&SZ(this,l);break;case "videoplayback10s":var n;(l=null==(n=c.tx)?void 0:n.u)&&SZ(this,l)}this.zb.removeCueRange(a)};
g.k.P6=function(a){delete this.BH[a.getId()];this.zb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=(null==(b=a.fd)?void 0:null==(c=b.contents)?void 0:null==(d=c.singleColumnWatchNextResults)?void 0:null==(e=d.autoplay)?void 0:null==(f=e.autoplay)?void 0:f.sets)||(null==(h=a.fd)?void 0:null==(l=h.contents)?void 0:null==(m=l.twoColumnWatchNextResults)?void 0:null==(n=m.autoplay)?void 0:null==(p=n.autoplay)?void 0:p.sets);if(q)for(b=g.v(q),c=b.next();!c.done;c=b.next())if(c=c.value,
e=d=void 0,c=c.autoplayVideo||(null==(d=c.autoplayVideoRenderer)?void 0:null==(e=d.autoplayEndpointRenderer)?void 0:e.endpoint),d=g.S(c,g.rM),f=e=void 0,null!=c&&(null==(e=d)?void 0:e.videoId)===a.videoId&&(null==(f=d)?0:f.continuePlayback)){a=c;break a}a=null}(b=g.S(a,g.rM))&&this.Ua.Na("onPlayVideo",{sessionData:{autonav:"1",itct:null==a?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})};
g.k.kp=function(a){a!==this.appState&&(2===a&&1===this.getPresentingPlayerType()&&(AZ(this,-1),AZ(this,5)),this.appState=a,this.Ua.ma("appstatechange",a))};
g.k.Dg=function(a,b,c,d,e){this.zb.Mg(a,b,c,d,e)};
g.k.Uq=function(a,b){this.zb.handleError(new SK(a,b))};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.hS(this,a);if(!c)return!1;a=BZ(this,c);c=CZ(this,c);return a!==c?a.isAtLiveHead(MZ(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.k.ls=function(){var a=g.hS(this);return a?BZ(this,a).ls():0};
g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.hS(this,d))2===this.appState&&IZ(this),this.mf(d)?LZ(this)?this.Je.seekTo(a,b,c):this.jd.seekTo(a,b,c):d.seekTo(a,{vY:!b,wY:c,xe:"application"})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.oz=function(){this.Ua.Na("SEEK_COMPLETE")};
g.k.o7=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.UN(a.getPlayerState(),512)||IZ(this):this.Ua.Na("SEEK_TO",b)};
g.k.onAirPlayActiveChange=function(){this.Ua.ma("airplayactivechange");this.Y.K("html5_external_airplay_events")&&this.Ua.Na("onAirPlayActiveChange",this.Ua.uh())};
g.k.onAirPlayAvailabilityChange=function(){this.Ua.ma("airplayavailabilitychange");this.Y.K("html5_external_airplay_events")&&this.Ua.Na("onAirPlayAvailabilityChange",this.Ua.nC())};
g.k.showAirplayPicker=function(){var a;null==(a=this.Lb)||a.Bt()};
g.k.AN=function(){this.Ua.ma("beginseeking")};
g.k.FN=function(){this.Ua.ma("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.hS(this,a))?BZ(this,a).getVideoData().getStoryboardFormat():null};
g.k.Ej=function(a){return(a=g.hS(this,a))?BZ(this,a).getVideoData().Ej():null};
g.k.mf=function(a){a=a||this.Lb;var b=!1;if(a){a=a.getVideoData();if(LZ(this))a=a===this.Je.va.getVideoData();else a:if(b=this.jd,a===b.j.getVideoData()&&b.u.length)a=!0;else{b=g.v(b.u);for(var c=b.next();!c.done;c=b.next())if(a.Mc===c.value.Mc){a=!0;break a}a=!1}b=a}return b};
g.k.Ix=function(a,b,c,d,e,f,h){var l=LZ(this),m;null==(m=g.hS(this))||m.xa("appattl",{sstm:this.Je?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:l});return l?TRa(this.Je,a,b,c,d,e,f,h):sSa(this.jd,a,c,d,e,f)};
g.k.jC=function(a,b,c,d,e,f,h){LZ(this)&&TRa(this.Je,a,b,c,d,e,f,h);return""};
g.k.jt=function(a){var b;null==(b=this.Je)||b.jt(a)};
g.k.Cu=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;LZ(this)||BSa(this.jd,a,b)};
g.k.cA=function(a,b,c){if(LZ(this)){var d=this.Je,e=d.hd.get(a);e?(void 0===c&&(c=e.Fd),e.durationMs=b,e.Fd=c):d.GC("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.jd;e=null;for(var f=g.v(d.u),h=f.next();!h.done;h=f.next())if(h=h.value,h.Mc===a){e=h;break}e?(void 0===c&&(c=e.Fd),ASa(d,e,b,c)):IW(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.mf();a=new g.cM(this.Y,a);d&&(a.Mc=d);q1a(this,a,b,c)};
g.k.queueNextVideo=function(a,b,c,d,e){c=void 0===c?NaN:c;a.prefer_gapless=!0;a=this.preloadVideoByPlayerVars(a,void 0===b?1:b,c,void 0===d?"":d,void 0===e?"":e);if(this.T().supportsGaplessShorts()&&a&&g.TM(a)&&!a.Ul){var f;null==(f=g.hS(this))||f.xa("sgap",{pcpn:a.clientPlaybackNonce});f=this.SY;f.j!==a&&(f.j=a,f.u=1,a.isLoaded()?f.B():f.j.subscribe("dataloaded",f.B,f))}};
g.k.wF=function(a,b,c,d){var e=this;c=void 0===c?0:c;d=void 0===d?0:d;var f=g.hS(this);f&&(BZ(this,f).FY=!0);ARa(this.ir,a,b,c,d).then(function(){e.Ua.Na("onQueuedVideoLoaded")},function(){})};
g.k.hv=function(){return this.ir.hv()};
g.k.clearQueue=function(){this.ir.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;var f=!1,h=new g.cM(this.Y,a);g.JK(this.Y)&&!h.Ul&&pT(this.vb);var l,m=null!=(l=h.Ja)?l:"";this.vb.timerName=m;this.vb.ai("pl_i");this.K("web_player_early_cpn")&&h.clientPlaybackNonce&&this.vb.info("cpn",h.clientPlaybackNonce);if(this.T().supportsGaplessShorts()){l=DRa(this.ir,h,b);if(null==l){AZ(this,-1);h=this.ir;h.app.setLoopRange(null);h.app.getVideoData().QI=!0;var n;null==(n=h.j)||VZa(n.yc);h.app.seekTo(CRa(h));if(!h.app.Cb(b).Yc()){var p;
null==(p=g.hS(h.app))||p.playVideo(!0)}h.I();return!0}this.ir.clearQueue();var q;null==(q=g.hS(this))||q.xa("sgap",{f:l})}if(e){for(;h.Ql.length&&h.Ql[0].isExpired();)h.Ql.shift();n=h.Ql.length-1;f=0<n&&e.u(h.Ql[n])&&e.u(h.Ql[n-1]);h.Ql.push(e)}c||(a&&zLa(a)?(EK(this.Y)&&!this.Kh&&(a.fetch=0),FZ(this,a)):this.playlist&&FZ(this,null),a&&(this.Kh=fz(!1,a.external_list)),EK(this.Y)&&!this.Kh&&GZ(this));this.Ua.ma("loadvideo");b=this.Qs(h,b,d);f&&this.Dg("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",
("loadvideo.1;emsg."+h.Ql.join()).replace(/[;:,]/g,"_"));return b};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;c=void 0===c?NaN:c;e=void 0===e?"":e;if(this.Y.K("html5_autonav_autoplay_in_preload_key")){d=b;var f=e,h=kz(a);d=OZ(this,d,h,f,"1"===a.autonav||!0===a.autonav,"1"===a.autoplay||!0===a.autoplay||1===a.autoplay)}else d=kz(a),d=OZ(this,b,d,e);if(this.oD.get(d))return null;a=new g.cM(this.Y,a);e&&(a.Mc=e);a:{e=this.Y.K("html5_autonav_autoplay_in_preload_key")?r1a(this,b,a):OZ(this,b,a.videoId,a.Mc);if(this.Lb&&(d=this.Y.K("html5_autonav_autoplay_in_preload_key")?
r1a(this,this.Lb.getPlayerType(),this.Lb.getVideoData()):OZ(this,this.Lb.getPlayerType(),this.Lb.getVideoData().videoId,this.Lb.getVideoData().Mc),e===d)){g.pW(this.Lb,!0);a.dispose();break a}a.nh=!0;d=b1a(this,b,a);1===b&&HK(this.Y)||g.pW(d,!0);this.oD.set(e,d,c||3600)}return a};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.bd;a=a.F.T().showMiniplayerUiWhenMinimized?a.df.get("miniplayer"):void 0;a&&(this.yg()?a.load():a.unload());this.Ua.ma("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.bd;a=a.F.T().showInlinePreviewUi?a.df.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Ua.Na("onInlinePreviewModeChange"))};
g.k.Nz=function(a){var b=this.Y.K("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.Y.hm&&this.Y.K("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.zL&&b?this.zL.start():this.KS():this.visibility.Nz(a)};
g.k.KS=function(){var a,b=null==(a=this.mediaElement)?void 0:a.ub();b&&wz(b).catch(function(c){return g.AD(c)})};
g.k.l7=function(){this.mediaElement.ub();"picture-in-picture"===this.mediaElement.ub().webkitPresentationMode?this.Nz(!0):this.Nz(!1)};
g.k.togglePictureInPicture=function(){var a=g.hS(this);a&&a.togglePictureInPicture()};
g.k.Qs=function(a,b,c){b=void 0===b?1:b;YE("_start",this.vb.timerName)||(g.iy(GE)(void 0,this.vb.timerName),this.vb.info("srt",0));var d=!1,e=g1a(this,b,a,!1);e?(d=!0,a.dispose()):(e=b1a(this,b,a,c),(this.K("html5_onesie")||this.K("html5_load_before_stop"))&&nZ(e)&&g.pW(e),this.SH.stop(),1===b&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),sW(this,e));e===this.zb&&(this.Y.Yi=a.oauthToken);if(!nZ(e))return!1;if(e===this.zb){this.kp(1);a=IZ(this);if(d&&this.F.K("html5_player_preload_ad_fix")&&
1===e.getPlayerType()&&e.ep.finished)this.onVideoDataChange("dataloaded",e,e.getVideoData());return a}h0a(e);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(a&&zLa(a))if(this.ev=!0,FZ(this,a),(a=g.qT(this.playlist))&&a.De())QZ(this,a,b);else this.playlist.onReady(function(){HZ(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.fF();var d=new g.cM(this.Y,a),e=g.iK(this.Y)&&!this.Y.oa&&1===b&&!d.isAd()&&!d.le;this.Ua.ma("cuevideo");e?(this.Pc().getVideoData().loading=!0,GLa(d,a?a:{}).then(function(f){QZ(c,f,b)}),d.dispose()):QZ(this,d,b)}};
g.k.Jn=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if(kK(this.Y)||g.IK(this.Y))return b=b||{},b.lact=KC(),b.vis=this.Ua.getVisibilityState(),this.Ua.Na("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;xLa(this.vb);this.vb.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.ev=!0;s1a(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.ev=!1;s1a(this,a,b,c,d)};
g.k.DB=function(){if(this.Ua.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;EK(this.Y)&&!this.Kh&&GZ(this);return!(!this.playlist||!this.playlist.Dk())};
g.k.Wr=aa(4);
g.k.nextVideo=function(a,b){var c=g.tM(this.zb.getVideoData());g.zS(this.Ua)&&c?this.Jn(c.videoId,b?c.rB:c.sessionData,c.playlistId,b,void 0,c.CS||void 0):this.Kh?this.Ua.Na("onPlaylistNext"):3===this.getPresentingPlayerType()?uS(this.bd).nextVideo():this.playlist&&(EK(this.Y)&&!this.Ua.isFullscreen()?l1a(this,"yt.www.watch.lists.next"):(this.playlist.Dk(a)&&CLa(this.playlist,ALa(this.playlist)),this.playlist.loaded?(a=b&&this.Y.K("html5_player_autonav_logging"),b&&this.Ua.ma("playlistautonextvideo"),this.Qs(g.qT(this.playlist,
void 0,b,a),1)):this.ev=!1))};
g.k.previousVideo=function(a){this.Kh?this.Ua.Na("onPlaylistPrevious"):3===this.getPresentingPlayerType()?uS(this.bd).xH():this.playlist&&(EK(this.Y)&&!this.Ua.isFullscreen()?l1a(this,"yt.www.watch.lists.prev"):(this.playlist.No(a)&&CLa(this.playlist,BLa(this.playlist)),this.playlist.loaded?this.Qs(g.qT(this.playlist),1):this.ev=!1))};
g.k.playVideoAt=function(a){this.Kh?this.Ua.Na("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Qs(g.qT(this.playlist,a),1):this.ev=!1,CLa(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.RB=aa(12);g.k.t5=function(a){this.Ua.Na("onCueRangeEnter",a.getId())};
g.k.u5=function(a){this.Ua.Na("onCueRangeExit",a.getId())};
g.k.SA=function(a,b,c){var d=g.hS(this,b);d&&(d.SA(a,c),b&&this.getPresentingPlayerType()!==b||zZ(this,"cuerangesadded",a))};
g.k.KH=function(a,b){var c=g.hS(this,b);c&&(c.KH(a),b&&this.getPresentingPlayerType()!==b||zZ(this,"cuerangesremoved",a))};
g.k.y5=function(){function a(){var d=g.CE(b.screenLayer||(b.yg()?3:0));if(d&&"UNDEFINED_CSN"!==d){var e=b.Y.K("web_player_attach_player_response_ve"),f=b.Y.K("web_playback_associated_ve");if(b.Y.K("il_via_jspb")){var h=new ix;var l=b.getVideoData().clientPlaybackNonce;l=L(h,1,l);L(l,3,d);b.getVideoData().ya&&(e||f)&&(e=g.yE(b.getVideoData().ya),g.lP(d,e),f&&(d=e.getAsJspb(),Ch(h,Qv,2,d)));if(b.getVideoData().queueInfo){d=b.getVideoData().queueInfo;f=new hx;if(null==d?0:d.enqueueingVe)(null==d?0:d.enqueueingVe.trackingParams)?
(e=g.yE(d.enqueueingVe.trackingParams),e=e.getAsJspb(),Ch(f,Qv,1,e)):g.AD(new g.Yz("Cannot map enqueueingVe from a client VE "));(null==d?0:d.enqueueingCsn)&&L(f,2,d.enqueueingCsn);(null==d?0:d.clientEnqueueingTimeMs)&&L(f,3,Number(d.clientEnqueueingTimeMs));Ch(h,hx,4,f)}d={};b.K("web_playback_associated_log_ctt")&&b.getVideoData().J&&(d.cttAuthInfo={token:b.getVideoData().J,videoId:b.getVideoData().videoId});fsa(h,d)}else h={cpn:b.getVideoData().clientPlaybackNonce,csn:d},b.getVideoData().ya&&(e||
f)&&(e=g.yE(b.getVideoData().ya),g.lP(d,e),f&&(h.playbackVe=e.getAsJson())),b.getVideoData().queueInfo&&(h.queueInfo=b.getVideoData().queueInfo),d={},b.K("web_playback_associated_log_ctt")&&b.getVideoData().J&&(d.cttAuthInfo={token:b.getVideoData().J,videoId:b.getVideoData().videoId}),g.nA("playbackAssociated",h,d)}else g.AD(new g.Yz("CSN Missing or undefined during playback association"))}
var b=this;this.getPresentingPlayerType();wLa(this.vb,this.Lb.getVideoData(),w1a(this));EZ(this)&&this.Y.C&&"embedded"===SM(this.Jd())&&this.oV&&.01>Math.random()&&g.nA("autoplayTriggered",{intentional:this.PU});this.oV=!1;xMa(this.bd);this.K("web_player_defer_ad")&&c1a(this);this.Ua.Na("onPlaybackStartExternal");(this.Y.K("mweb_client_log_screen_associated"),this.Y.K("kids_web_client_log_screen_associated")&&xK(this.Y))||a();var c={};this.getVideoData().J&&(c.cttAuthInfo={token:this.getVideoData().J,
videoId:this.getVideoData().videoId});$E("player_att",c);if(this.getVideoData().botguardData||this.K("fetch_att_independently"))g.GK(this.Y)||"MWEB"===g.uJ(this.Y)?g.cA(g.eA(),function(){JZ(b)}):JZ(this);
this.XH()};
g.k.LN=function(){this.Ua.ma("internalAbandon");NZ(this)};
g.k.onApiChange=function(){this.Y.I&&this.Lb?this.Ua.Na("onApiChange",this.Lb.getPlayerType()):this.Ua.Na("onApiChange")};
g.k.r6=function(){var a=this.mediaElement;a={volume:g.pe(Math.floor(100*a.getVolume()),0,100),muted:a.TF()};a.muted||KZ(this,!1);this.gi=g.jd(a);this.Ua.Na("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;isNaN(this.tN)&&(this.tN=this.getVideoData().startSeconds);a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0,start:this.tN}),this.Ua.Na("onMutedAutoplayStarts"))};
g.k.onFullscreenChange=function(){var a=y1a(this);this.Xl(a?1:0);A1a(this,!!a)};
g.k.Xl=function(a){var b=!!a,c=!!this.yy()!==b;this.visibility.Xl(a);this.template.Xl(b);this.K("html5_media_fullscreen")&&!b&&this.mediaElement&&y1a(this)===this.mediaElement.ub()&&this.mediaElement.tB();this.template.resize();c&&this.vb.tick("fsc");c&&(this.Ua.ma("fullscreentoggled",b),a=this.Jd(),b={fullscreen:b,videoId:a.VI||a.videoId,time:this.getCurrentTime()},this.Ua.getPlaylistId()&&(b.listId=this.Ua.getPlaylistId()),this.Ua.Na("onFullscreenChange",b))};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.yy=function(){return this.visibility.yy()};
g.k.c7=function(){this.Lb&&(0!==this.yy()&&1!==this.yy()||this.Xl(y1a(this)?1:0),this.Y.hm&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.tB())};
g.k.j6=function(a){3!==this.getPresentingPlayerType()&&this.Ua.ma("liveviewshift",a)};
g.k.playVideo=function(a){if(a=g.hS(this,a))2===this.appState?(g.JK(this.Y)&&pT(this.vb),IZ(this)):g.UN(a.getPlayerState(),2)?this.seekTo(0):a.playVideo()};
g.k.pauseVideo=function(a){(a=g.hS(this,a))&&a.pauseVideo()};
g.k.stopVideo=function(){var a=this.zb.getVideoData(),b=new g.cM(this.Y,{video_id:a.VI||a.videoId,oauth_token:a.oauthToken});b.ea=g.jd(a.ea);this.cancelPlayback(6);QZ(this,b,1)};
g.k.cancelPlayback=function(a,b){var c=g.hS(this,b);c&&(2===b&&1===c.getPlayerType()&&dAa(this.Jd())?c.xa("canclpb",{r:"no_adpb_ssdai"}):(this.Y.Qd()&&c.xa("canclpb",{r:a}),1!==this.appState&&2!==this.appState&&(c===this.Lb&&FT(this.bd,a),1===b&&(c.stopVideo(),NZ(this)),c.Cn(void 0,6!==a),zZ(this,"cuerangesremoved",c.Im()),c.Wi.reset(),this.ir&&c.isGapless()&&(c.nj(!0),c.setMediaElement(this.mediaElement)))))};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.hS(this,b))&&this.Y.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.Dj=function(a){var b=g.hS(this);return b&&this.Y.enabledEngageTypes.has(a.toString())?b.Dj(a):null};
g.k.updatePlaylist=function(){EK(this.Y)?GZ(this):g.iK(this.Y)&&e1a(this);this.Ua.Na("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.OX=a;this.MM=b;this.Ua.ma("sizestylechange",a,b);this.template.resize()};
g.k.ov=function(){return this.MM};
g.k.yg=function(){return this.visibility.yg()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.Qy=function(){return this.visibility.Qy()};
g.k.Oy=function(){return this.visibility.Oy()};
g.k.KM=function(){return this.OX};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return uS(this.bd).getAdState();if(!this.mf()){var a=GT(this.wb());if(a)return a.getAdState()}return-1};
g.k.b7=function(a){var b=this.template.getVideoContentRect();Hm(this.hV,b)||(this.hV=b,this.Lb&&sZ(this.Lb),this.zb&&this.zb!==this.Lb&&sZ(this.zb),1===this.yy()&&this.iD&&A1a(this,!0));this.UM&&g.ye(this.UM,a)||(this.Ua.ma("appresize",a),this.UM=a)};
g.k.wh=function(){return this.Ua.wh()};
g.k.u7=function(){2===this.getPresentingPlayerType()&&this.jd.isManifestless()?zSa(this.jd):(this.Je&&($Ra(this.Je),NZ(this)),Z0a(this,"signature"))};
g.k.nW=function(){this.nj();yZ(this)};
g.k.x6=function(a){"manifest.net.badstatus"===a.errorCode&&a.details.rc===(this.Y.experiments.kb("html5_use_network_error_code_enums")?401:"401")&&this.Ua.Na("onPlayerRequestAuthFailed")};
g.k.WC=function(){this.Ua.Na("CONNECTION_ISSUE")};
g.k.YC=function(a){this.Ua.ma("heartbeatparams",a)};
g.k.PH=function(a){this.Ua.Na("onAutonavChangeRequest",1!==a)};
g.k.ue=function(){return this.mediaElement};
g.k.setBlackout=function(a){this.Y.Ud=a;this.Lb&&(this.Lb.jr(),this.Y.Ya&&C1a(this))};
g.k.z6=function(){var a=g.hS(this);if(a){var b=!this.Ua.tC();(a.tU=b)||a.xv.stop();if(a.videoData.j)if(b)a.videoData.j.resume();else{var c=a.videoData.j;c.C&&c.C.stop()}a.Fa&&(b?a.Fa.resume():vZ(a,!0));g.UN(a.playerState,2)||b?g.UN(a.playerState,512)&&b&&a.lc(RO(a.playerState,512)):a.lc(QO(a.playerState,512));a=a.yc;a.qoe&&(a=a.qoe,g.IY(a,g.qW(a.provider),"stream",[b?"A":"I"]))}};
g.k.onLoadedMetadata=function(){this.Ua.Na("onLoadedMetadata")};
g.k.onDrmOutputRestricted=function(){this.Ua.Na("onDrmOutputRestricted")};
g.k.sK=function(){mdb=this.K("html5_use_async_stopVideo");ndb=this.K("html5_pause_for_async_stopVideo");ldb=this.K("html5_not_reset_media_source");ACa=this.K("html5_rebase_video_to_ad_timeline");AI=this.K("html5_not_reset_media_source");Hcb=this.K("html5_not_reset_media_source");uI=this.K("html5_retain_source_buffer_appends_for_debugging");Gcb=this.K("html5_source_buffer_wrapper_reorder");this.K("html5_mediastream_applies_timestamp_offset")&&(yX=!0);var a=g.jJ(this.Y.experiments,"html5_cobalt_override_quic");
a&&gW("QUIC",+(0<a));this.K("html5_cobalt_enable_min_processor_cnt_to_offload_algo")&&gW("MediaSource.MinimumProcessorCountToOffloadAlgorithm",g.jJ(this.Y.experiments,"html5_cobalt_min_processor_cnt_to_offload_algo"));(a=this.K("html5_cobalt_async_redn"))&&gW("MediaSource.EnableAsynchronousReduction",+a);if(a=g.jJ(this.Y.experiments,"html5_cobalt_max_size_for_immed_job"))gW("MediaSource.MaxSizeForImmediateJob",a),gW("MediaSource.MinSizeForImmediateJob",a);(a=this.K("html5_cobalt_enable_fetch_buffer_pool"))&&
gW("XHR.EnableFetchBufferPool",+a);(a=g.jJ(this.Y.experiments,"html5_cobalt_default_buffer_size_in_bytes"))&&gW("XHR.DefaultFetchBufferSize",a);(a=this.K("html5_cobalt_enable_try_lock_for_progress_check"))&&gW("XHR.EnableTryLockForProgressCheck",+a);(a=g.jJ(this.Y.experiments,"html5_max_source_buffer_append_size_in_bytes"))&&gW("MediaSource.MaxSourceBufferAppendSizeInBytes",a);(a=this.K("html5_cobalt_enable_avoid_copying_array_buffer"))&&gW("MediaSource.EnableAvoidCopyingArrayBuffer",+a);Error.stackTraceLimit=
25;var b=g.jJ(this.Y.experiments,"html5_idle_rate_limit_ms");b&&Object.defineProperty(window,"requestIdleCallback",{value:function(c){return window.setTimeout(c,b)}});
Uwa(this.Y.D);Fcb=this.K("html5_live_metadata_fix");eW=this.K("html5_use_media_end_for_end_of_segment");g.CO=this.K("web_player_use_native_events")};
g.k.EG=function(){this.PU=!0};
g.k.qa=function(){this.bd.dispose();this.jd.dispose();this.Je&&this.Je.dispose();this.Pv.Df();this.Pv.dispose();this.Ng&&this.Ng.dispose();this.zb.dispose();this.nj();g.ib($c(this.zw),this.playlist);g.E.prototype.qa.call(this)};
g.k.K=function(a){return this.Y.K(a)};
g.k.eI=function(){return this.TD};
g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.k.setScreenLayer=function(a){this.screenLayer=a};
g.k.createSubtitlesModuleIfNeeded=function(){return this.bd.createSubtitlesModuleIfNeeded()};
g.k.updateDownloadState=function(a,b){var c=this,d;return g.A(function(e){return(d=IT(c.bd))?e.return(d.updateDownloadState(a,b)):e.return(Promise.reject())})};
g.k.pauseVideoDownload=function(a){var b=IT(this.bd);b&&b.oO(a)};
g.k.resumeVideoDownload=function(a){var b=this,c;return g.A(function(d){return(c=IT(b.bd))?d.return(c.HD(a)):d.return(Promise.reject())})};
g.k.refreshAllStaleEntities=function(a){void 0===a&&(a=14400);var b=IT(this.bd);return b?b.refreshAllStaleEntities(a):Promise.reject()};
g.k.isOrchestrationLeader=function(){var a=IT(this.bd);return a?a.isOrchestrationLeader():!1};
g.k.getVideoUrl=function(a,b,c,d,e){if(this.Bb&&this.Bb.postId)return a=this.Y.getVideoUrl(a),a=Xi(a,"v"),a.replace("/watch","/clip/"+this.Bb.postId);var f,h=null==(f=kKa(this.wb()))?void 0:f.FB();f=this.K("shorts_mode_to_player_api")?this.Ua.Tb():null==h?void 0:h.Tb();h=this.getVideoData().isLivePlayback;return this.Y.getVideoUrl(a,b,c,d,e,f,h)};
var w4={};g.Ka("yt.player.Application.create",g.xZ.create);g.Ka("yt.player.Application.createAlternate",g.xZ.create);sra(CC(),{Eq:[{JC:/Unable to load player module/,weight:20},{JC:/Failed to fetch/,weight:500},{JC:/XHR API fetch failed/,weight:10},{JC:/JSON parsing failed after XHR fetch/,weight:10},{JC:/Retrying OnePlatform request/,weight:10}]});var Idb=g.La("ytcsi.tick");Idb&&Idb("pe");var H1a=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),F1a=new Map([["normal",{Xv:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",ow:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Xv:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",ow:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{Xv:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",ow:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Xv:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",ow:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Xv:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",ow:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{Xv:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",ow:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{Xv:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",ow:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);var Jdb={QRa:"replaceUrlMacros",uNa:"onAboutThisAdPopupClosed",Fta:"executeCommand"};a_.prototype.Go=function(){return"clearCueRangesCommand"};
a_.prototype.handle=function(){var a=this.w2();g.Af(function(){a.Bh(Array.from(a.fu))})};
a_.prototype.Ds=function(a){this.handle(a)};b_.prototype.Go=function(){return"muteAdEndpoint"};
b_.prototype.handle=function(a){switch(a.type){case "SKIP":O1a(this.ej,this.Jk)}};
b_.prototype.Ds=function(a,b){switch(a.type){case "SKIP":O1a(this.ej,this.Jk,b)}};c_.prototype.Go=function(){return"openPopupAction"};
c_.prototype.handle=function(){};
c_.prototype.Ds=function(a){this.handle(a)};d_.prototype.Go=function(){return"pingingEndpoint"};
d_.prototype.handle=function(){};
d_.prototype.Ds=function(a){this.handle(a)};e_.prototype.Go=function(){return"urlEndpoint"};
e_.prototype.handle=function(){g.zD(Error("The deprecated handle method is called for url_endpoint_handler."))};
e_.prototype.Ds=function(a,b,c){var d=this.Oa.get(),e=T4a(d.u.get(),b);e?b=w1(d,w5a(e),e,void 0,c):(DD("Trying to ping from an unknown layout",void 0,void 0,{layoutId:b}),b={});b=Object.assign({},b);U0(this.k8,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(c=this.zn.rg(2))&&(b.AD_CPN=c.clientPlaybackNonce);a=g.pp(a.url,b);"1"===(new g.zk(a)).u.get("ase")?g.LN(a,void 0,void 0,a+"&asr=1"):g.LN(a)};f_.prototype.Go=function(){return"adPingingEndpoint"};
f_.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.mu.send(a,b,c)};
f_.prototype.Ds=function(a,b,c){x5a(this.Oa.get(),a,b,c)};g_.prototype.Go=function(){return"changeEngagementPanelVisibilityAction"};
g_.prototype.handle=function(a){this.F.Na("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
g_.prototype.Ds=function(a){this.handle(a)};h_.prototype.Go=function(){return"loggingUrls"};
h_.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;a=g.v(a);for(var d=a.next();!d.done;d=a.next())this.Tl.send(d.value.baseUrl,b,c)};
h_.prototype.Ds=function(a,b,c){a=g.v(a);for(var d=a.next();!d.done;d=a.next())d=d.value,x5a(this.Oa.get(),d.baseUrl,b,c)};g.x(Q1a,g.E);i_.prototype.get=function(){return this.value};
g.x(j_,i_);j_.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.x(R1a,i_);R1a.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.x(k_,i_);k_.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.x(l_,i_);l_.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.x(S1a,i_);S1a.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.x(T1a,i_);T1a.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.x(U1a,i_);U1a.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.x(m_,i_);m_.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.x(n_,i_);n_.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.x(o_,i_);o_.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.x(p_,i_);p_.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.x(q_,i_);q_.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"};
g.x(r_,i_);r_.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
g.x(s_,i_);s_.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.x(t_,i_);t_.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.x(V1a,i_);V1a.prototype.getType=function(){return"metadata_type_ad_video_url"};
g.x(u_,i_);u_.prototype.getType=function(){return"metadata_type_content_cpn"};
g.x(v_,i_);v_.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.x(w_,i_);w_.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.x(W1a,i_);W1a.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
g.x(X1a,i_);X1a.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.x(x_,i_);x_.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.x(Y1a,i_);Y1a.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.x(Z1a,i_);Z1a.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.x($1a,i_);$1a.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.x(a2a,i_);a2a.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.x(y_,i_);y_.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.x(z_,i_);z_.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.x(A_,i_);A_.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.x(b2a,i_);b2a.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.x(B_,i_);B_.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.x(C_,i_);C_.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.x(D_,i_);D_.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.x(c2a,i_);c2a.prototype.getType=function(){return"metadata_type_cue_point"};
g.x(E_,i_);E_.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.x(F_,i_);F_.prototype.getType=function(){return"metadata_type_player_vars"};
g.x(G_,i_);G_.prototype.getType=function(){return"metadata_type_preload_player_vars"};
g.x(H_,i_);H_.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.x(I_,i_);I_.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.x(J_,i_);J_.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.x(K_,i_);K_.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.x(L_,i_);L_.prototype.getType=function(){return"metadata_type_dai"};
g.x(M_,i_);M_.prototype.getType=function(){return"metadata_type_ad_intro"};
g.x(d2a,i_);d2a.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.x(N_,i_);N_.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.x(O_,i_);O_.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.x(P_,i_);P_.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.x(e2a,i_);e2a.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.x(Q_,i_);Q_.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.x(R_,i_);R_.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.x(S_,i_);S_.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.x(T_,i_);T_.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.x(f2a,i_);f2a.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
g.x(U_,i_);U_.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.x(V_,i_);V_.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.x(g2a,i_);g2a.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.x(W_,i_);W_.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};
g.x(h2a,i_);h2a.prototype.getType=function(){return"metadata_type_ssdai_ads_config"};
g.x(X_,i_);X_.prototype.getType=function(){return"metadata_type_eligible_for_ssap"};g.x(Y_,nb);g.x(i2a,g.E);g.k=i2a.prototype;g.k.WL=function(a,b){return this.j.WL(a,b)};
g.k.hj=function(a,b){this.Sb.j("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b);for(var c=g.v(this.Hd),d=c.next();!d.done;d=c.next())d.value.hj(a,b)};
g.k.Kg=function(a){if(a0(this.j,a)){sO(this.Sb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.Kg(a);for(var b=g.v(this.Hd),c=b.next();!c.done;c=b.next())c.value.Kg(a);l2a(this,a)}};
g.k.Lg=function(a){if(a0(this.j,a)){sO(this.Sb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.Lg(a);for(var b=g.v(this.Hd),c=b.next();!c.done;c=b.next())c.value.Lg(a);a0(this.j,a)&&b0(this.j,a).D&&$_(this,a,!1)}};
g.k.eH=function(a){sO(this.Sb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);a0(this.j,a)&&(this.j.eH(a),$_(this,a,!1))};
g.k.Rc=function(a,b){if(a0(this.j,a)){c0(this.Sb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.v(this.Hd),d=c.next();!d.done;d=c.next())d.value.Rc(a,b)}};
g.k.xd=function(a,b,c){if(a0(this.j,a)){c0(this.Sb,G1a(c),a,b);this.j.xd(a,b);for(var d=g.v(this.Hd),e=d.next();!e.done;e=d.next())e.value.xd(a,b,c);(c=j0(this.j,a))&&b.layoutId===c.layoutId&&y2a(this,a,!1)}};
g.k.eg=function(a,b,c,d){c.nk&&d?(DD(c,a,b,void 0,c.nu),Z_(this.Sb,d,c.nk,a,b)):DD("adsClientErrorMessage is missing.",a,b);$_(this,a,!0)};
g.k.qa=function(){var a=B2a(this.j);a=g.v(a);for(var b=a.next();!b.done;b=a.next())$_(this,b.value,!1);g.E.prototype.qa.call(this)};
g.k.Sh=function(a,b){c0(this.Sb,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",a,b);c0(this.Sb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",a,b);for(var c=g.v(this.Hd),d=c.next();!d.done;d=c.next())d=d.value,b&&d.Sh(a,b)};z2a.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.x(A2a,g.E);g.k=A2a.prototype;g.k.WL=function(a,b){b=i0(this,a+"_"+b);a=[];b=g.v(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
g.k.Hi=function(a){a=b0(this,a);"not_scheduled"!==a.j&&k0(a.slot,a.j,"onSlotScheduled");a.j="scheduled"};
g.k.xB=function(a){a=b0(this,a);a.C="fill_requested";a.J.xB()};
g.k.Kg=function(a){a=b0(this,a);"enter_requested"!==a.j&&k0(a.slot,a.j,"onSlotEntered");a.j="entered"};
g.k.eH=function(a){b0(this,a).C="fill_canceled"};
g.k.Lg=function(a){a=b0(this,a);"exit_requested"!==a.j&&k0(a.slot,a.j,"onSlotExited");a.j="scheduled"};
g.k.xd=function(a,b){a=b0(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.j&&k0(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.x(H2a,g.E);H2a.prototype.B=function(){return this.u};g.x(I2a,g.E);I2a.prototype.get=function(){this.isDisposed()&&DD("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.j());return this.instance};o0.prototype.executeCommand=function(a,b){VP(this.j(),a,b)};
o0.prototype.Gg=function(a,b){VDa(this.j(),a,b)};A0.prototype.clone=function(a){var b=this;return new A0(function(){return b.triggerId},a)};B0.prototype.clone=function(a){var b=this;return new B0(function(){return b.triggerId},a)};w0.prototype.clone=function(a){var b=this;return new w0(function(){return b.triggerId},a)};var D3a={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],Qc:[],layoutExitUserInputSubmittedTriggers:[]};g.x(X0,g.E);g.x(Z0,g.E);Z0.prototype.onCueRangeEnter=function(){};
Z0.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.uc.get().removeCueRange(a),vC(this.ac.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.Jb.get();d=JD(d.fb.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,slotEntryTrigger:c.slotEntryTrigger?g5a(c.slotId,d,c.slotEntryTrigger):void 0,slotFulfillmentTriggers:h5a(c.slotId,d,c.slotFulfillmentTriggers),slotExpirationTriggers:h5a(c.slotId,d,c.slotExpirationTriggers)})]},
c.slotId))};
Z0.prototype.Mj=function(){for(var a=g.v(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.uc.get().removeCueRange(b);this.j.clear()};
Z0.prototype.qn=function(){};g.x($0,g.E);g.k=$0.prototype;g.k.Hi=function(){};
g.k.Qj=function(a){var b=this;g.cA(g.eA(),function(){var c=b.j.get(a);c&&DD("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.la(c)).map(function(d){return d.layoutType})})},0)};
g.k.Kg=function(){};
g.k.Pj=function(){};
g.k.Lg=function(){};
g.k.Mk=function(){};
g.k.Nk=function(){};
g.k.Nj=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)};
g.k.Sh=function(a,b){this.Wk.has(a)&&this.Wk.get(a)===b&&DD("Unscheduled a Layout that is currently entered.",a,b);if(this.j.has(a)){var c=this.j.get(a);c.has(b)?(c.delete(b),0===c.size&&this.j.delete(a)):DD("Trying to unscheduled a Layout that was not scheduled.",a,b)}else DD("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.Rc=function(a,b){this.Wk.set(a,b)};
g.k.xd=function(a){this.Wk.delete(a)};
g.k.hj=function(){};e1.prototype.clone=function(a){var b=this;return new e1(function(){return b.triggerId},a)};f1.prototype.clone=function(a){var b=this;return new f1(function(){return b.triggerId},a)};g1.prototype.clone=function(a){var b=this;return new g1(function(){return b.triggerId},a)};g.x(j1,g.E);j1.prototype.logEvent=function(a){this.j(a)};
j1.prototype.j=function(a,b,c,d,e,f,h,l,m,n,p){var q=this;p=void 0===p?0:p;try{p&&0<p?g.cA(g.eA(),function(){return void m5a(q,a,b,c,d,e,f,h,l,m,n)},p):m5a(this,a,b,c,d,e,f,h,l,m,n)}catch(t){U0(this.Ca.get(),"html5_log_pacf_logging_errors")&&g.cA(g.eA(),function(){DD(t instanceof Error?t:String(t),e,f,{pacf_message:"exception during pacf logging"})})}};
j1.prototype.B=function(){return!this.Ca.get().F.T().K("html5_disable_client_tmp_logs")};
j1.prototype.mP=function(){return this.Ca.get().mP()};g.x(k1,j1);k1.prototype.B=function(){var a=j1.prototype.B.call(this);if(U0(this.Ca.get(),"H5_enable_full_pacf_logging"))return a;var b=this.u.get().u();var c=this.Ca.get();c=g.wK(c.F.T())?c.j:!0;return a&&b&&c};
k1.prototype.j=function(a,b,c,d,e,f,h,l,m,n){var p=this.Ca.get();g.wK(p.F.T())&&U0(p,"H5_use_async_logging")?(p=this.Ca.get(),p=g.jJ(p.F.T().experiments,"H5_async_logging_delay_ms")):p=void 0;j1.prototype.j.call(this,a,b,c,d,e,f,h,l,m,n,p)};l1.prototype.clear=function(){this.j.clear()};g.x(m1,g.E);g.k=m1.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.Mj=function(a,b,c,d,e,f,h,l){if(""===a)DD("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.F.T().K("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.Ha.get().Mj(a,b,c,d,e,f,h,l);this.Ta.get().Mj(a,b,c,d,e,f,h,l);var m;null==(m=this.xf)||m.get().Mj(a,b,c,d,e,f,h,l);this.u.Mj(a,b,c,d,e,f,h,l);m=g.v(this.listeners);for(var n=m.next();!n.done;n=m.next())n.value.Mj(a,b,c,d,e,f,h,l)}};
g.k.LN=function(){this.j&&this.qn(this.j)};
g.k.qn=function(a){this.j=void 0;for(var b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.qn(a)};g.x(n1,g.E);n1.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?3:f;h=void 0===h?1:h;this.j.has(a)?DD("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new p5a(a,b,c,d,f),this.j.set(a.id,{oe:a,listener:e,Hn:h}),this.F.Ae([a],h))};
n1.prototype.removeCueRange=function(a){var b=this.j.get(a);b?n5a(this,b):DD("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
n1.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)};
n1.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)};
g.x(p5a,g.UD);o1.prototype.Vl=function(a){this.F.Vl(a)};
o1.prototype.Na=function(a){this.F.Na.apply(this.F,[a].concat(g.la(g.Ca.apply(1,arguments))))};p1.prototype.dI=function(a){return a&&q1(this)};
p1.prototype.mP=function(){return this.F.T().experiments.kb("h5_enable_generic_error_logging_event")};g.k=s1.prototype;g.k.jh=function(a,b){if(!this.j.has(a))return{};if("seek"===b)return b=this.F.T().K("html5_dai_enable_active_view_creating_completed_adblock"),Yka(a,b),{};b=PBa(b);if(null===b||this.F.T().K("enable_server_stitched_dai")&&2!==this.F.getPresentingPlayerType(!0))return{};var c=this.F.Pc();c=c&&(this.F.T().K("enable_server_stitched_dai")||2===c.getPlayerType())&&XN(c);if(!c)return{};c={opt_adElement:c,opt_fullscreen:this.Ha.get().isFullscreen()};return op(b,a,c)};
g.k.RC=function(a){var b;null==(b=this.j.get(a.queryId))||b.RC()};
g.k.QC=function(a){var b;null==(b=this.j.get(a.queryId))||b.QC()};
g.k.SC=function(a){var b;null==(b=this.j.get(a.queryId))||b.SC()};
g.k.OC=function(a){var b;null==(b=this.j.get(a.queryId))||b.OC()};
g.k.PC=function(a){var b;null==(b=this.j.get(a.queryId))||b.PC()};g.x(u1,HN);u1.prototype.j=function(){return this.I()};
u1.prototype.B=function(){return this.J()};
u1.prototype.u=function(){return this.C()};
u1.prototype.K=function(a){return this.D(a)};v1.prototype.Dj=function(){var a=this.F.Pc();return a&&(a=a.Dj(1))?a:null};
v1.prototype.Rh=function(a,b){"string"===typeof b?this.F.getVideoData(1).JO(a,b):this.F.getVideoData(1).xa(a,b)};g.x(y1,g.E);g.k=y1.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.Mj=function(){this.nK.clear();this.XM=null;this.Sd.get().clear()};
g.k.qn=function(){};
g.k.rg=function(a){var b=this.F.getVideoData(a);return b?E5a(this,b,a||this.F.getPresentingPlayerType(!0)):null};
g.k.T7=function(a,b,c){"nPpU29QrbiU"===b.videoId&&this.Rh("ads_ssm_vdc_s",{pt:c,dvt:a});r1(this.Ca.get())&&"dataloaded"!==a||F5a(this,b,c)};
g.k.p7=function(a,b){void 0!==a&&(this.XM=a,void 0===b?DD("Expected ad video start time on SS video changed"):this.nK.set(a,b));var c=this.F.getPresentingPlayerType(!0),d=this.F.getVideoData(c);this.F.getVideoData(1).xa("ads_ssvc",{pt:c,cpn:null==d?void 0:d.clientPlaybackNonce,crtt:this.F.getCurrentTime(1,!1),atlh:this.F.isAtLiveHead(),adstt:b});d?F5a(this,d,c):DD("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.F.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.qa=function(){this.listeners.length=0;this.Ku=null;g.E.prototype.qa.call(this)};
g.k.Rh=function(a,b){this.F.getVideoData(1).xa(a,b)};g.x(z1,g.E);g.k=z1.prototype;g.k.Mj=function(){var a=this;q1(this.Ca.get())||(this.j=Jd(function(){a.F.isDisposed()||a.F.hg("ad",1)}))};
g.k.qn=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.aW=function(){};
g.k.playVideo=function(){this.F.playVideo()};
g.k.pauseVideo=function(){this.F.pauseVideo()};
g.k.resumeVideo=function(a){this.tq(a)&&this.F.playVideo()};
g.k.tq=function(a){return 2===this.F.getPlayerState(a)};
g.k.getCurrentTimeSec=function(a,b){var c=this.Ta.get().XM;return 2!==a||b||null===c?this.F.getCurrentTime(a,b):H5a(this,c)};
g.k.getVolume=function(){return this.F.getVolume()};
g.k.isMuted=function(){return this.F.isMuted()};
g.k.getPresentingPlayerType=function(){return this.F.getPresentingPlayerType(!0)};
g.k.getPlayerState=function(a){return this.F.getPlayerState(a)};
g.k.isFullscreen=function(){return this.F.isFullscreen()};
g.k.isAtLiveHead=function(){return this.F.isAtLiveHead()};
g.k.Pz=function(a){this.F.Pz(a)};
g.k.R6=function(){var a=this.F.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(2===a){var c=g.v(this.listeners);for(a=c.next();!a.done;a=c.next())a.value.Lj(b)}else if(1===a&&s5a(this.Ca.get()))for(c=g.v(this.lF),a=c.next();!a.done;a=c.next())a.value.aW(b)};
g.k.I6=function(a){for(var b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.Lk(a,this.getPresentingPlayerType())};
g.k.onFullscreenToggled=function(a){for(var b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
g.k.onVolumeChange=function(){for(var a=g.v(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
g.k.Th=function(){for(var a=this.F.yg(),b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.Th(a)};
g.k.Db=function(){for(var a=this.F.jb().Fj(),b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.Kk(a)};
g.k.Rl=function(a){for(var b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.Rl(a)};g.x(L5a,g.E);C1.prototype.addListener=function(a){this.listeners.add(a)};
C1.prototype.removeListener=function(a){this.listeners.delete(a)};Q5a.prototype.xB=function(){var a=this,b=0;O5a(this.j,function(){var c=VZ(a.slot.Ba,"metadata_type_ad_break_request_data");b=Date.now();a.Oa.get().Rh("abrs","ct."+b+";cmt."+a.Ha.get().getCurrentTimeSec(1,!1)+";sid."+a.slot.slotId+";");return a.Hf.get().fetch({MY:c.getAdBreakUrl,fT:new g.UD(c.IO,c.HO),gB:VZ(a.slot.Ba,"metadata_type_cue_point")})},function(){R5a(a)},function(c){var d=Date.now()-b;
a.Oa.get().Rh("abrr","ct."+(new Date).getTime()+";cmt."+a.Ha.get().getCurrentTimeSec(1,!1)+";l."+d.toString()+";sid."+a.slot.slotId+";");d=c.po;2<=d.length&&c.ssdaiAdsConfig&&DD("Unexpected ad placement renderers length",a.slot,null,{length:d.length});d.some(function(e){var f,h,l,m;return!!(null==(f=e.renderer)?0:null==(h=f.linearAdSequenceRenderer)?0:null==(l=h.linearAds)?0:l.length)||!(null==(m=e.renderer)||!m.instreamVideoAdRenderer)})||R5a(a)})};
Q5a.prototype.EK=function(){P5a(this.j)};S5a.prototype.xB=function(){var a=this;O5a(this.j,function(){var b=VZ(a.slot.Ba,"metadata_type_ad_break_request_data");return a.Hf.get().fetch({MY:b.getAdBreakUrl,fT:new g.UD(b.IO,b.HO)})})};
S5a.prototype.EK=function(){P5a(this.j)};T5a.prototype.xB=function(){var a=this.slot.Ba,b,c=null!=(b=this.slot.fulfilledLayout)?b:VZ(a,"metadata_type_fulfilled_layout");n2a(this.callback,this.slot,c)};
T5a.prototype.EK=function(){j2a(this.callback,this.slot,new zC("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")};V5a.prototype.wf=function(a,b){return b.fulfilledLayout||U5a(b,{Be:["metadata_type_fulfilled_layout"]})?new T5a(a,b):this.j(a,b)};g.x(E1,V5a);
E1.prototype.j=function(a,b){if(U5a(b,{Be:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Q5a(a,b,this.Hf,this.Ab,this.Kb,this.Ca,this.Oa,this.Ha,this.qf);if(U5a(b,{Be:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new S5a(a,b,this.Hf,this.Ab,this.Kb,this.Ca);throw new zC("Unsupported slot with type: "+b.slotType+" and client metadata: "+WZ(b.Ba)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.x(F1,V5a);F1.prototype.j=function(a,b){throw new zC("Unsupported slot with type: "+b.slotType+" and client metadata: "+WZ(b.Ba)+" in DefaultFulfillmentAdapterFactory.");};g.k=W5a.prototype;g.k.od=function(){return this.slot};
g.k.Ib=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.eg(this.slot,a,new Y_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{var b=VZ(a.Ba,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.slotType?(this.callback.Rc(this.slot,a),mra(this.j,this.slot,
b)):DD("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,a)}};
g.k.Og=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.eg(this.slot,a,new Y_("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.xd(this.slot,a,b)};H1.prototype.wf=function(a,b,c,d){if(G1(d,{Be:["metadata_type_ad_break_response_data"],Nf:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new W5a(a,c,d,this.j);throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+WZ(d.Ba)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};I1.prototype.jh=function(a,b){b=void 0===b?!1:b;var c=(this.B.get(a)||[]).concat();if(b=b&&lAa(a)){var d=this.B.get(b);d&&c.push.apply(c,g.la(d))}X5a(this,a,c);this.j.add(a);b&&this.j.add(b)};
I1.prototype.kd=function(a,b){b=void 0===b?!1:b;if(!this.j.has(a)){var c=b&&lAa(a);c&&(b=!this.j.has(c));this.jh(a,b)}};
I1.prototype.ww=function(a,b){b=void 0===b?!1:b;this.j.has(a)?X5a(this,a,[]):this.kd(a,b)};g.k=Z5a.prototype;g.k.od=function(){return this.slot};
g.k.Ib=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.eg(this.slot,a,new Y_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.Rc(this.slot,a),this.bb.kd("impression"),X1(this.j,a))};
g.k.Og=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.eg(this.slot,a,new Y_("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.xd(this.slot,a,b)};g.k=a6a.prototype;g.k.od=function(){return this.slot};
g.k.Ib=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.eg(this.slot,a,new Y_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.Rc(this.slot,a),this.bb.kd("impression"),X1(this.j,a))};
g.k.Og=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.eg(this.slot,a,new Y_("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.xd(this.slot,a,b)};N1.prototype.wf=function(a,b,c,d){if(!this.Ca.get().F.T().K("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(G1(d,$5a()))return new Z5a(a,c,d,this.Oa,this.j)}else if(G1(d,{Be:[],Nf:["LAYOUT_TYPE_FORECASTING"]}))return new a6a(a,c,d,this.Oa,this.j);throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+WZ(d.Ba)+" in ForecastingLayoutRenderingAdapterFactory.");};g.x(O1,g.aE);g.k=O1.prototype;g.k.od=function(){return this.u.slot};
g.k.Ib=function(){return this.u.layout};
g.k.init=function(){this.B.get().addListener(this)};
g.k.release=function(){this.B.get().removeListener(this);this.dispose()};
g.k.jM=function(){};
g.k.hM=function(){};
g.k.gM=function(){};
g.k.fG=function(){};
g.k.startRendering=function(a){var b=this;c6a(this.u,a,function(){return void b.iI()})};
g.k.iI=function(){this.B.get().iI(this.j)};
g.k.Og=function(a,b){var c=this;c6a(this.u,a,function(){var d=c.B.get();S6a(d,c.j,3);c.j=[];c.callback.xd(c.slot,a,b)})};
g.k.qa=function(){this.B.isDisposed()||this.B.get().removeListener(this);g.aE.prototype.qa.call(this)};
g.da.Object.defineProperties(O1.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.u.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.u.layout}}});g.x(d6a,jN);g.x(e6a,O1);g.k=e6a.prototype;g.k.eh=function(a,b){Q1("action-companion",a,this.I.get().Wk,this.Oa.get(),this.C,this.D,this.od(),this.Ib(),b)};
g.k.startRendering=function(a){P1(this.bb,this.od(),this.Ib(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new d6a(b,c,d,e,f)},this.j);
O1.prototype.startRendering.call(this,a)};
g.k.Rc=function(a,b){b.layoutId===this.layout.layoutId?this.bb.kd("impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Oa.get().Dj():DD("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.xd=function(){};
g.k.Hi=function(){};
g.k.Qj=function(){};
g.k.Pj=function(){};
g.k.Kg=function(){};
g.k.Lg=function(){};
g.k.Mk=function(){};
g.k.Nk=function(){};
g.k.Nj=function(){};
g.k.Sh=function(){};
g.k.hj=function(){};
g.k.qa=function(){this.Ue().Hd.delete(this);O1.prototype.qa.call(this)};g.x(R1,O1);R1.prototype.init=function(){O1.prototype.init.call(this);var a=VZ(this.layout.Ba,"metadata_type_ad_action_interstitial_renderer"),b=K1(this.bb);this.j.push(new eO(a,b,this.layout.layoutId,{adsClientData:this.layout.xc},!0,!0))};
R1.prototype.startRendering=function(a){O1.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a)};
R1.prototype.eh=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=null==(c=VZ(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:c.current)&&m6a(a,this.od(),this.layout)}};
R1.prototype.qa=function(){O1.prototype.qa.call(this)};g.x(S1,O1);g.k=S1.prototype;g.k.init=function(){O1.prototype.init.call(this);var a=VZ(this.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.xc},c=!VZ(this.layout.Ba,"metadata_type_player_bytes_callback").rG;this.j.push(new gR(a,this.layout.layoutId,VZ(this.layout.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.Xs=function(){this.C||this.Ha.get().resumeVideo(2)};
g.k.startRendering=function(a){O1.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a);this.D.Ex=this};
g.k.Og=function(a,b){O1.prototype.Og.call(this,a,b);X8a(this.D,this)};
g.k.eh=function(a){if(S4a(this.I.get(),this.J))switch(a){case "visit-advertiser":this.Oa.get().F.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.C||this.Ha.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.C=this.Ha.get().tq(2))||this.Ha.get().pauseVideo();break;case "visit-advertiser":this.Ha.get().pauseVideo();VZ(this.layout.Ba,"metadata_type_player_bytes_callback").NH();
break;case "skip-button":if(a=VZ(this.layout.Ba,"metadata_type_player_bytes_callback"),a.rG)a.eD(this.od(),this.layout);else{var b;(a=null==(b=VZ(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:b.current)&&m6a(a,this.od(),this.layout)}}};
g.k.qa=function(){O1.prototype.qa.call(this)};g.x(T1,O1);g.k=T1.prototype;g.k.startRendering=function(a){var b=this;c6a(this.u,a,function(){b.j.push(new lO(VZ(b.layout.Ba,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.xc));b.iI();b.callback.Rc(b.slot,a);g.UN(t1(b.Ha.get(),1),512)&&b.callback.eg(b.od(),b.Ib(),new Y_("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
g.k.Lj=function(){};
g.k.Lk=function(a){if(a.state.isError()){var b;this.callback.eg(this.od(),this.Ib(),new Y_("A player error happened during adNotify",{playerErrorCode:null==(b=a.state.getData())?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.Th=function(){};
g.k.Kk=function(){};
g.k.onVolumeChange=function(){};
g.k.Rl=function(){};
g.k.eh=function(){};j6a.prototype.wf=function(a,b,c,d){if(a=U1(a,c,d,this.qc,this.Ha,this.Oa,this.u,this.j,this.Ca))return a;throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+WZ(d.Ba)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.x(V1,g.E);g.k=V1.prototype;g.k.init=function(){var a=VZ(this.Ib().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Js()};
g.k.release=function(){var a=VZ(this.Ib().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.ut()};
g.k.startRendering=function(a){a.layoutId!==this.Ib().layoutId?this.callback.eg(this.od(),a,new Y_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Ib().layoutId+("and LayoutType: "+this.Ib().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Ha.get().addListener(this),this.Ue().Hd.add(this),t5a(this.Ca.get())&&this.Lc.get().mI(),this.Ca.get().F.T().experiments.kb("html5_load_empty_player_in_media_break_sub_lra")||
J5a(this.Ha.get()),t5a(this.Ca.get())||this.Lc.get().mI(),this.Dt(a))};
g.k.Og=function(a,b){this.uM=!0;this.Gt(a,b);this.Ha.get().F.Nq();this.Pe.get().F.cueVideoByPlayerVars({},2);a=t1(this.Ha.get(),1);g.UO(a)&&!g.UN(a,2)&&this.Ha.get().playVideo();this.Ha.get().removeListener(this);this.uM&&this.xV()};
g.k.xd=function(a,b){b.layoutId===this.Ib().layoutId&&(this.uM=!1,this.Ue().Hd.delete(this))};
g.k.Lk=function(a,b){if(a.state.isError()){var c,d;this.eg(null==(c=a.state.getData())?void 0:c.errorCode,new Y_("There was a player error during this media layout.",{playerErrorCode:null==(d=a.state.getData())?void 0:d.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED",b)}else this.uW(a)};
g.k.Hi=function(){};
g.k.Qj=function(){};
g.k.Pj=function(){};
g.k.Kg=function(){};
g.k.Lg=function(){};
g.k.Mk=function(){};
g.k.Nk=function(){};
g.k.Nj=function(){};
g.k.Sh=function(){};
g.k.hj=function(){};
g.k.Rl=function(){};g.x(k6a,V1);g.k=k6a.prototype;g.k.od=function(){return this.slot};
g.k.Ib=function(){return this.layout};
g.k.Js=function(){if(1>this.u.length)throw new zC("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.u.length)});var a=VZ(this.Ib().Ba,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=this);a=g.v(this.u);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),o2a(this.B,this.slot,b.Ib()),p2a(this.B,this.slot,b.Ib());this.dI()&&this.Ta.get().addListener(this)};
g.k.ut=function(){var a=VZ(this.Ib().Ba,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=null);a=g.v(this.u);for(var b=a.next();!b.done;b=a.next())b=b.value,tO(this.B,this.slot,b.Ib()),b.release()};
g.k.XN=function(){};
g.k.Mv=function(a,b){var c=this.u[this.j];b.layoutId!==W1(c,a,b)?DD("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.Mv()};
g.k.Zv=function(a,b){var c=this.u[this.j];b.layoutId!==W1(c,a,b)?DD("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Zv()};
g.k.eD=function(a,b){var c=this.u[this.j];b.layoutId!==W1(c,a,b)?DD("onSkipRequested for a PlayerBytes layout that is not currently active",c.od(),c.Ib(),{requestingSlot:a,requestingLayout:b}):p6a(this,c.od(),c.Ib(),"skipped")};
g.k.Dt=function(){-1===this.j&&o6a(this,this.j+1)};
g.k.C7=function(a,b){f0(this.B,a,b)};
g.k.Gt=function(a,b){var c=this;this.j!==this.u.length?(a=this.u[this.j],a.Og(a.Ib(),b),this.D=function(){c.callback.xd(c.slot,c.layout,b)}):this.callback.xd(this.slot,this.layout,b)};
g.k.Rc=function(a,b){var c=this.u[this.j];c&&c.Rc(a,b)};
g.k.xd=function(a,b,c){V1.prototype.xd.call(this,a,b,c);var d=this.u[this.j];d&&d.xd(a,b,c)};
g.k.xV=function(){var a=this.u[this.j];a&&a.eG()};
g.k.Lj=function(a){var b=this.u[this.j];b&&b.Lj(a)};
g.k.uW=function(a){var b=this.u[this.j];b&&b.Lk(a)};
g.k.eg=function(a,b,c){-1===this.j&&(this.callback.Rc(this.slot,this.layout),this.j++);var d=this.u[this.j];d?d.LC(a,b,c):DD("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.j),layoutId:this.Ib().layoutId})};
g.k.onFullscreenToggled=function(a){var b=this.u[this.j];if(b)b.onFullscreenToggled(a)};
g.k.Th=function(a){var b=this.u[this.j];b&&b.Th(a)};
g.k.Kk=function(a){var b=this.u[this.j];b&&b.Kk(a)};
g.k.onVolumeChange=function(){var a=this.u[this.j];if(a)a.onVolumeChange()};
g.k.E7=function(a,b,c){p6a(this,a,b,c)};
g.k.D7=function(a,b){p6a(this,a,b,"error")};
g.k.dI=function(){var a=VZ(this.slot.Ba,"metadata_type_eligible_for_ssap");return void 0===a?(DD("Expected SSAP eligibility in PlayerBytes slots",this.slot,this.layout),!1):this.Ca.get().dI(a)};g.x($1,g.E);g.k=$1.prototype;g.k.od=function(){return this.slot};
g.k.Ib=function(){return this.layout};
g.k.init=function(){var a=VZ(this.layout.Ba,"metadata_type_video_length_seconds"),b=VZ(this.layout.Ba,"metadata_type_active_view_traffic_type");pN(this.layout.Rb)&&u5a(this.Ob.get(),this.layout.layoutId,b,a,this);y5a(this.Oa.get(),this);this.Js()};
g.k.release=function(){pN(this.layout.Rb)&&v5a(this.Ob.get(),this.layout.layoutId);z5a(this.Oa.get(),this);this.ut()};
g.k.Mv=function(){};
g.k.Zv=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.eg(this.slot,a,new Y_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Dc="rendering_start_requested",hAa(this.Wf.get(),1)?(this.sD(-1),this.Dt(a),this.Nx(!1)):this.LC("ui_unstable",new Y_("Failed to render media layout because ad ui unstable.",
void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_UI_UNSTABLE"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"))};
g.k.Rc=function(a,b){if(b.layoutId===this.layout.layoutId){this.Dc="rendering";this.wC=this.Ha.get().isMuted()||0===this.Ha.get().getVolume();this.kd("impression");this.kd("start");if(this.Ha.get().isMuted()){this.ww("mute");var c;a=(null==(c=Z1(this))?void 0:c.muteCommands)||[];this.Pb.get().Gg(a,this.layout.layoutId)}if(this.Ha.get().isFullscreen()){this.jh("fullscreen");var d;c=(null==(d=Z1(this))?void 0:d.fullscreenCommands)||[];this.Pb.get().Gg(c,this.layout.layoutId)}this.Lc.get().bP();this.sD(1);
this.jW();var e;d=(null==(e=Z1(this))?void 0:e.impressionCommands)||[];this.Pb.get().Gg(d,this.layout.layoutId)}};
g.k.LC=function(a,b,c){this.ju={AI:3,jE:"load_timeout"===a?402:400,errorMessage:b.message};this.kd("error");var d;a=(null==(d=Z1(this))?void 0:d.errorCommands)||[];this.Pb.get().Gg(a,this.layout.layoutId);this.callback.eg(this.slot,this.layout,b,c)};
g.k.eG=function(){this.SK()};
g.k.kU=function(){if("rendering"===this.Dc){this.ww("pause");var a,b=(null==(a=Z1(this))?void 0:a.pauseCommands)||[];this.Pb.get().Gg(b,this.layout.layoutId);this.sD(2)}};
g.k.lU=function(){if("rendering"===this.Dc){this.ww("resume");var a,b=(null==(a=Z1(this))?void 0:a.resumeCommands)||[];this.Pb.get().Gg(b,this.layout.layoutId)}};
g.k.Og=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.eg(this.slot,a,new Y_("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED");else if("rendering_stop_requested"!==this.Dc){this.Dc="rendering_stop_requested";this.layoutExitReason=b;switch(b){case "normal":this.kd("complete");break;case "skipped":this.kd("skip");
break;case "abandoned":M1(this.bb,"impression")&&this.kd("abandon")}this.Gt(a,b)}};
g.k.xd=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.Dc="not_rendering",this.layoutExitReason=void 0,(a="normal"!==c||this.position+1===this.nY)&&this.Nx(a),this.kW(c),this.sD(0),c){case "abandoned":if(M1(this.bb,"impression")){var d,e=(null==(d=Z1(this))?void 0:d.abandonCommands)||[];this.Pb.get().Gg(e,this.layout.layoutId)}break;case "normal":d=(null==(e=Z1(this))?void 0:e.completeCommands)||[];this.Pb.get().Gg(d,this.layout.layoutId);break;case "skipped":var f;d=(null==(f=Z1(this))?
void 0:f.skipCommands)||[];this.Pb.get().Gg(d,this.layout.layoutId)}};
g.k.Ay=function(){return this.layout.layoutId};
g.k.CL=function(){return this.ju};
g.k.Lk=function(a){if("not_rendering"!==this.Dc){this.xX||(a=new g.$N(a.state,new g.OO),this.xX=!0);var b=2===this.Ha.get().getPresentingPlayerType();"rendering_start_requested"===this.Dc?b&&q6a(a)&&this.YS():b?g.bO(a,2)?this.Di():(q6a(a)?this.sD(1):g.bO(a,4)&&!g.bO(a,2)&&this.kU(),0>aO(a,4)&&!(0>aO(a,2))&&this.lU()):this.eG()}};
g.k.RC=function(){if("rendering"===this.Dc){this.bb.kd("active_view_measurable");var a,b=(null==(a=Z1(this))?void 0:a.activeViewMeasurableCommands)||[];this.Pb.get().Gg(b,this.layout.layoutId)}};
g.k.QC=function(){if("rendering"===this.Dc){this.bb.kd("active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=Z1(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.Pb.get().Gg(b,this.layout.layoutId)}};
g.k.SC=function(){if("rendering"===this.Dc){this.bb.kd("active_view_viewable");var a,b=(null==(a=Z1(this))?void 0:a.activeViewViewableCommands)||[];this.Pb.get().Gg(b,this.layout.layoutId)}};
g.k.OC=function(){if("rendering"===this.Dc){this.bb.kd("audio_audible");var a,b=(null==(a=Z1(this))?void 0:a.activeViewAudioAudibleCommands)||[];this.Pb.get().Gg(b,this.layout.layoutId)}};
g.k.PC=function(){if("rendering"===this.Dc){this.bb.kd("audio_measurable");var a,b=(null==(a=Z1(this))?void 0:a.activeViewAudioMeasurableCommands)||[];this.Pb.get().Gg(b,this.layout.layoutId)}};
g.k.Nx=function(a){this.Lc.get().Nx(VZ(this.layout.Ba,"metadata_type_ad_placement_config").kind,a,this.position,this.nY,!1)};
g.k.onFullscreenToggled=function(a){if("rendering"===this.Dc)if(a){this.jh("fullscreen");var b,c=(null==(b=Z1(this))?void 0:b.fullscreenCommands)||[];this.Pb.get().Gg(c,this.layout.layoutId)}else this.jh("end_fullscreen"),b=(null==(c=Z1(this))?void 0:c.endFullscreenCommands)||[],this.Pb.get().Gg(b,this.layout.layoutId)};
g.k.onVolumeChange=function(){if("rendering"===this.Dc)if(this.Ha.get().isMuted()){this.ww("mute");var a,b=(null==(a=Z1(this))?void 0:a.muteCommands)||[];this.Pb.get().Gg(b,this.layout.layoutId)}else this.ww("unmute"),a=(null==(b=Z1(this))?void 0:b.unmuteCommands)||[],this.Pb.get().Gg(a,this.layout.layoutId)};
g.k.Th=function(){};
g.k.Kk=function(){};
g.k.Rl=function(){};
g.k.jh=function(a){this.bb.jh(a,!this.wC)};
g.k.kd=function(a){this.bb.kd(a,!this.wC)};
g.k.ww=function(a){this.bb.ww(a,!this.wC)};g.x(v6a,$1);g.k=v6a.prototype;g.k.Js=function(){};
g.k.ut=function(){var a=this.Oa.get();a.nI===this&&(a.nI=null);this.timer.stop()};
g.k.Dt=function(){u6a(this);J5a(this.Ha.get());this.Oa.get().nI=this;YE("pbp")||YE("pbs")||cF("pbp");YE("pbp","watch")||YE("pbs","watch")||cF("pbp",void 0,"watch");this.YS()};
g.k.jW=function(){y6a(this)};
g.k.Di=function(){};
g.k.Mv=function(){this.timer.stop();$1.prototype.kU.call(this)};
g.k.Zv=function(){y6a(this);$1.prototype.lU.call(this)};
g.k.zy=function(){return VZ(this.Ib().Ba,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.Gt=function(){this.timer.stop()};
g.k.wc=function(){var a=Date.now(),b=a-this.WM;this.WM=a;this.Li+=b;this.Li>=this.zy()?(this.Li=this.zy(),a2(this,this.Li/1E3,!0),x6a(this,this.Li),this.SK()):(a2(this,this.Li/1E3),x6a(this,this.Li))};
g.k.kW=function(){};
g.k.Lj=function(){};g.x(b2,$1);g.k=b2.prototype;g.k.Js=function(){VZ(this.Ib().Ba,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=VZ(this.Ib().Ba,"metadata_type_shrunken_player_bytes_config")};
g.k.ut=function(){VZ(this.Ib().Ba,"metadata_type_player_bytes_callback_ref").current=null;this.Fu&&this.uc.get().removeCueRange(this.Fu);this.Fu=void 0;this.LG.dispose();this.ez&&this.ez.dispose()};
g.k.Dt=function(a){var b=N0(this.Ca.get()),c=O0(this.Ca.get());if(b&&c){c=VZ(a.Ba,"metadata_type_preload_player_vars");var d=g.jJ(this.Ca.get().F.T().experiments,"html5_preload_wait_time_secs");c&&this.ez&&this.ez.start(1E3*d)}c=VZ(a.Ba,"metadata_type_ad_video_id");d=VZ(a.Ba,"metadata_type_legacy_info_card_vast_extension");c&&d&&this.cg.get().F.T().Aa.add(c,{dB:d});(c=VZ(a.Ba,"metadata_type_sodar_extension_data"))&&M5a(this.jf.get(),c);K5a(this.Ha.get(),!1);u6a(this);b?(c=this.Pe.get(),a=VZ(a.Ba,
"metadata_type_player_vars"),c.F.loadVideoByPlayerVars(a,!1,2)):(c=this.Pe.get(),a=VZ(a.Ba,"metadata_type_player_vars"),c.F.cueVideoByPlayerVars(a,2));this.LG.start();b||this.Pe.get().F.playVideo(2)};
g.k.jW=function(){this.LG.stop();this.Fu="adcompletioncuerange:"+this.Ib().layoutId;this.uc.get().addCueRange(this.Fu,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var a;(this.adCpn=(null==(a=this.Ta.get().rg(2))?void 0:a.clientPlaybackNonce)||"")||DD("Media layout confirmed started, but ad CPN not set.");this.Ad.get().Na("onAdStart",this.adCpn)};
g.k.Di=function(){this.SK()};
g.k.zy=function(){var a;return null==(a=this.Ta.get().rg(2))?void 0:a.j8};
g.k.NH=function(){this.bb.jh("clickthrough")};
g.k.Gt=function(){this.LG.stop();this.ez&&this.ez.stop();K5a(this.Ha.get(),!0);var a;(null==(a=this.shrunkenPlayerBytesConfig)?0:a.shouldRequestShrunkenPlayerBytes)&&this.Ha.get().Pz(!1)};
g.k.onCueRangeEnter=function(a){a!==this.Fu?DD("Received CueRangeEnter signal for unknown layout.",this.od(),this.Ib(),{cueRangeId:a}):(this.uc.get().removeCueRange(this.Fu),this.Fu=void 0,a=VZ(this.Ib().Ba,"metadata_type_video_length_seconds"),a2(this,a,!0),this.kd("complete"))};
g.k.kW=function(a){"abandoned"!==a&&this.Ad.get().Na("onAdComplete");this.Ad.get().Na("onAdEnd",this.adCpn)};
g.k.onCueRangeExit=function(){};
g.k.Lj=function(a){"rendering"===this.Dc&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ha.get().Pz(!0),a2(this,a))};g.x(A6a,V1);g.k=A6a.prototype;g.k.od=function(){return this.j.od()};
g.k.Ib=function(){return this.j.Ib()};
g.k.Js=function(){this.j.init()};
g.k.ut=function(){this.j.release()};
g.k.Mv=function(){this.j.Mv()};
g.k.Zv=function(){this.j.Zv()};
g.k.eD=function(a,b){DD("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.od(),this.Ib(),{requestingSlot:a,requestingLayout:b})};
g.k.Dt=function(a){this.j.startRendering(a)};
g.k.Gt=function(a,b){this.j.Og(a,b)};
g.k.Rc=function(a,b){this.j.Rc(a,b)};
g.k.xd=function(a,b,c){V1.prototype.xd.call(this,a,b,c);this.j.xd(a,b,c);b.layoutId===this.Ib().layoutId&&this.Lc.get().Tz()};
g.k.xV=function(){this.j.eG()};
g.k.Lj=function(a){this.j.Lj(a)};
g.k.uW=function(a){this.j.Lk(a)};
g.k.eg=function(a,b,c){this.j.LC(a,b,c)};
g.k.onFullscreenToggled=function(a){this.j.onFullscreenToggled(a)};
g.k.Th=function(a){this.j.Th(a)};
g.k.Kk=function(a){this.j.Kk(a)};
g.k.onVolumeChange=function(){this.j.onVolumeChange()};c2.prototype.wf=function(a,b,c,d){if(a=C6a(a,b,c,d,this.Ue,this.j,this.Oa,this.Ob,this.jf,this.Pe,this.Ta,this.Ha,this.uc,this.Lc,this.Ad,this.Wf,this.Pb,this.cg,this.Ca))return a;throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+WZ(d.Ba)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.x(d2,g.E);g.k=d2.prototype;g.k.lW=function(a){if(!this.j){var b;null==(b=this.qf)||b.get().jt(a.identifier);return!1}D6a(this,this.j,a);return!0};
g.k.dW=function(){};
g.k.Mj=function(a){this.j&&this.j.contentCpn!==a&&(DD("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)};
g.k.qn=function(a){this.j&&this.j.contentCpn!==a&&DD("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn},!0);this.j=null};
g.k.qa=function(){g.E.prototype.qa.call(this);this.j=null};g.x(e2,g.E);g.k=e2.prototype;g.k.Rc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&jO(b,this.B)){var d=this.Ta.get().rg(2),e=this.j(b,d||void 0,this.Ca.get().F.T().experiments.kb("enable_post_ad_perception_survey_in_tvhtml5"));e?vC(this.ac.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[s3a(c.Jb.get(),e.contentCpn,e.tp,function(h){return c.u(h.slotId,"core",e,ZZ(c.Kb.get(),h))},e.inPlayerSlotId)];
e.instreamAdPlayerUnderlayRenderer&&t3a(c.Ca.get())&&f.push(E6a(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):DD("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.Hi=function(){};
g.k.Qj=function(){};
g.k.Kg=function(){};
g.k.Pj=function(){};
g.k.Lg=function(){};
g.k.Mk=function(){};
g.k.Nk=function(){};
g.k.Nj=function(){};
g.k.Sh=function(){};
g.k.hj=function(){};
g.k.xd=function(){};var L2=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=I6a.prototype;g.k.init=function(){};
g.k.od=function(){return this.slot};
g.k.xF=function(){this.callback.Kg(this.slot)};
g.k.zF=function(){this.callback.Lg(this.slot)};
g.k.release=function(){};g2.prototype.wf=function(a,b){return new I6a(a,b)};g.k=J6a.prototype;g.k.init=function(){};
g.k.od=function(){return this.slot};
g.k.xF=function(){A1(this.Ha.get(),"ad-showing");this.callback.Kg(this.slot)};
g.k.zF=function(){this.callback.Lg(this.slot);B1(this.Ha.get(),"ad-showing")};
g.k.release=function(){};g.k=K6a.prototype;g.k.init=function(){};
g.k.od=function(){return this.slot};
g.k.xF=function(){A1(this.Ha.get(),"ad-showing");A1(this.Ha.get(),"ad-interrupting");this.u=this.Ha.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.Kg(this.slot)};
g.k.zF=function(){B1(this.Ha.get(),"ad-showing");B1(this.Ha.get(),"ad-interrupting");var a=this.u?Infinity:this.Ha.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ha.get().F.seekTo(a,void 0,void 0,1);this.callback.Lg(this.slot)};
g.k.release=function(){};g.k=L6a.prototype;g.k.init=function(){};
g.k.od=function(){return this.slot};
g.k.xF=function(){A1(this.Ha.get(),"ad-showing");A1(this.Ha.get(),"ad-interrupting");this.callback.Kg(this.slot)};
g.k.zF=function(){ZP(this.Ha.get());B1(this.Ha.get(),"ad-showing");B1(this.Ha.get(),"ad-interrupting");this.callback.Lg(this.slot)};
g.k.release=function(){ZP(this.Ha.get())};h2.prototype.wf=function(a,b){if(xC(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new J6a(a,b,this.Ha);if(b.slotEntryTrigger instanceof Y0&&xC(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new K6a(a,b,this.Ha);if(xC(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new L6a(a,b,this.Ha);throw new zC("Unsupported slot with type "+b.slotType+" and client metadata: "+(WZ(b.Ba)+" in PlayerBytesSlotAdapterFactory."));};g.x(j2,g.E);j2.prototype.j=function(a){for(var b=[],c=g.v(this.Xb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof F0&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.triggeringLayoutId===a&&b.push(d)}b.length?g0(this.cJ(),b):DD("Mute requested but no registered triggers can be activated.")};g.x(k2,j2);g.k=k2.prototype;g.k.eh=function(a,b){if(b)if("skip-button"===a){a=[];for(var c=g.v(this.Xb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof F0&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.triggeringLayoutId===b&&a.push(d)}a.length&&g0(this.cJ(),a)}else U0(this.Ca.get(),"supports_multi_step_on_desktop")?"ad-action-submit-survey"===a&&M6a(this,b):"survey-submit"===a?M6a(this,b):"survey-single-select-answer-button"===a&&M6a(this,b)};
g.k.jM=function(a){j2.prototype.j.call(this,a)};
g.k.Wl=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new zC("Tried to register duplicate trigger for slot.");if(!(b instanceof G0||b instanceof F0))throw new zC("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Xb.set(b.triggerId,new i2(a,b,c,d))};
g.k.Zl=function(a){this.Xb.delete(a.triggerId)};
g.k.hM=function(){};
g.k.gM=function(){};
g.k.fG=function(){};g.x(l2,g.E);g.k=l2.prototype;
g.k.Wl=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new zC("Tried to register duplicate trigger for slot.");if(!(b instanceof A0||b instanceof B0||b instanceof e1||b instanceof f1||b instanceof w0||b instanceof g1||b instanceof V4a||b instanceof y0||b instanceof z0||b instanceof D0||b instanceof U4a||b instanceof c1))throw new zC("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new i2(a,b,c,d);this.Xb.set(b.triggerId,a);b instanceof
w0&&this.D.has(b.triggeringSlotId)&&g0(this.j(),[a]);b instanceof A0&&this.B.has(b.triggeringSlotId)&&g0(this.j(),[a]);b instanceof y0&&this.u.has(b.triggeringLayoutId)&&g0(this.j(),[a])};
g.k.Zl=function(a){this.Xb.delete(a.triggerId)};
g.k.Hi=function(a){this.D.add(a.slotId);for(var b=[],c=g.v(this.Xb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof w0&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&g0(this.j(),b)};
g.k.Qj=function(a){this.D.delete(a.slotId);for(var b=[],c=g.v(this.Xb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof g1&&e.triggeringSlotId===a.slotId&&b.push(d)}0<b.length&&g0(this.j(),b)};
g.k.Pj=function(a){for(var b=[],c=g.v(this.Xb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof V4a&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}0<b.length&&g0(this.j(),b)};
g.k.Kg=function(a){this.B.add(a.slotId);for(var b=[],c=g.v(this.Xb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof A0&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&g0(this.j(),b)};
g.k.Lg=function(a){this.B.delete(a.slotId);this.C.add(a.slotId);for(var b=[],c=g.v(this.Xb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof B0)a.slotId===d.trigger.triggeringSlotId&&b.push(d);else if(d.trigger instanceof c1){var e=d.trigger;a.slotId===e.slotId&&this.u.has(e.triggeringLayoutId)&&b.push(d)}0<b.length&&g0(this.j(),b)};
g.k.Mk=function(a){for(var b=[],c=g.v(this.Xb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof e1&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&g0(this.j(),b)};
g.k.Nk=function(a){for(var b=[],c=g.v(this.Xb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof f1&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&g0(this.j(),b)};
g.k.Nj=function(a,b){this.I.add(b.layoutId)};
g.k.Sh=function(a,b){this.I.delete(b.layoutId)};
g.k.Rc=function(a,b){this.u.add(b.layoutId);for(var c=[],d=g.v(this.Xb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof y0)b.layoutId===e.trigger.triggeringLayoutId&&c.push(e);else if(e.trigger instanceof U4a){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof c1&&(f=e.trigger,b.layoutId===f.triggeringLayoutId&&this.C.has(f.slotId)&&c.push(e));0<c.length&&g0(this.j(),c)};
g.k.xd=function(a,b,c){this.u.delete(b.layoutId);a=[];for(var d=g.v(this.Xb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof z0&&b.layoutId===e.trigger.triggeringLayoutId&&a.push(e),e.trigger instanceof D0){var f=e.trigger;b.layoutId===f.triggeringLayoutId&&f.j.includes(c)&&a.push(e)}0<a.length&&g0(this.j(),a)};
g.k.hj=function(){};
g.k.Mj=function(){this.C.clear()};
g.k.qn=function(){};g.x(m2,g.E);m2.prototype.Wl=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new zC("Tried to register duplicate trigger for slot.");if(!(b instanceof AC||b instanceof x0))throw new zC("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Xb.set(b.triggerId,new i2(a,b,c,d))};
m2.prototype.Zl=function(a){this.Xb.delete(a.triggerId)};
m2.prototype.Mj=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.v(this.Xb.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof AC&&l.trigger.er===a&&f.push(l);e.call(d,b,g.la(f));b.push.apply(b,g.la(N6a(this.Xb,a,!1,c)));b.length&&g0(this.j(),b)};
m2.prototype.qn=function(a){var b=[];b.push.apply(b,g.la(N6a(this.Xb,a,!0,!1)));b.length&&g0(this.j(),b)};g.x(n2,g.E);g.k=n2.prototype;
g.k.Wl=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new zC("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(O6a(b))this.Xb.set(b.triggerId,{yu:new i2(a,b,c,d),Iu:e});else if(b instanceof Y0||b instanceof d1)P6a(this,a,b,c,d,e,b.j.start,b.j.end,b.er,b.visible);else if(b instanceof f5a)P6a(this,a,b,c,d,e,b.j.start,b.j.end,b.er,!1);else if(b instanceof d5a)P6a(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.er,b.visible);else throw new zC("Incorrect TriggerType: Tried to register trigger of type "+
b.triggerType+" in CueRangeTriggerAdapter");};
g.k.Zl=function(a){var b=this.Xb.get(a.triggerId);b&&this.uc.get().removeCueRange(b.Iu);this.Xb.delete(a.triggerId)};
g.k.onCueRangeEnter=function(a,b){b=void 0===b?!1:b;if(a=Q6a(this,a))if(a=this.Xb.get(a))if(g.UN(t1(this.Ha.get()),32))this.j.add(a.Iu);else{var c=null==a?void 0:a.yu.trigger;b=b?c instanceof Y4a:c instanceof X4a;(c instanceof Y0||c instanceof d1||c instanceof d5a||c instanceof a1||b)&&g0(this.u(),[a.yu])}};
g.k.onCueRangeExit=function(a){if(a=Q6a(this,a))if(a=this.Xb.get(a))this.j.delete(a.Iu),a.yu.trigger instanceof f5a&&g0(this.u(),[a.yu])};
g.k.Lk=function(a){if(0>aO(a,16)){a=g.v(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}};
g.k.Hi=function(){};
g.k.Qj=function(){};
g.k.Pj=function(){};
g.k.Kg=function(){};
g.k.Lg=function(){};
g.k.Mk=function(){};
g.k.Nk=function(){};
g.k.Nj=function(){};
g.k.Sh=function(){};
g.k.Rc=function(a,b){a=g.v(this.Xb.values());for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.yu.trigger;c=c.Iu;if(O6a(d)&&d.layoutId===b.layoutId){var e=1E3*this.Ha.get().getCurrentTimeSec(1,!1);d instanceof a1?d=0:(d=e+d.offsetMs,e=0x7ffffffffffff);this.uc.get().addCueRange(c,d,e,!1,this)}}};
g.k.xd=function(a,b,c){var d=this;a={};for(var e=g.v(this.Xb.values()),f=e.next();!f.done;a={qA:a.qA,Ap:a.Ap},f=e.next())f=f.value,a.Ap=f.yu.trigger,a.qA=f.Iu,O6a(a.Ap)&&a.Ap.layoutId===b.layoutId?o5a(this.uc.get(),a.qA):a.Ap instanceof d1&&a.Ap.layoutId===b.layoutId&&"user_cancelled"===c&&(this.uc.get().removeCueRange(a.qA),g.cA(g.eA(),function(h){return function(){d.uc.get().addCueRange(h.qA,h.Ap.j.start,h.Ap.j.end,h.Ap.visible,d)}}(a)))};
g.k.hj=function(){};
g.k.Lj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Th=function(){};
g.k.Kk=function(){};
g.k.onVolumeChange=function(){};
g.k.Rl=function(){};g.x(o2,g.E);g.k=o2.prototype;g.k.Wl=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new zC("Tried to register duplicate trigger for slot.");if(!(b instanceof E0))throw new zC("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Xb.set(b.triggerId,new i2(a,b,c,d))};
g.k.Zl=function(a){this.Xb.delete(a.triggerId)};
g.k.lL=function(){};
g.k.uF=function(){};
g.k.Rc=function(){};
g.k.xd=function(){};
g.k.Hi=function(){};
g.k.Qj=function(){};
g.k.Pj=function(){};
g.k.Kg=function(){};
g.k.Lg=function(){};
g.k.Mk=function(){};
g.k.Nk=function(){};
g.k.Nj=function(){};
g.k.Sh=function(){};
g.k.hj=function(){};g.x(p2,g.E);g.k=p2.prototype;g.k.hj=function(a,b){for(var c=[],d=g.v(this.Xb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f.opportunityType===a&&(f.associatedSlotId&&f.associatedSlotId!==b||c.push(e))}c.length&&g0(this.j(),c)};
g.k.Wl=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new zC("Tried to register duplicate trigger for slot.");if(!(b instanceof W4a))throw new zC("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Xb.set(b.triggerId,new i2(a,b,c,d))};
g.k.Zl=function(a){this.Xb.delete(a.triggerId)};
g.k.Hi=function(){};
g.k.Qj=function(){};
g.k.Pj=function(){};
g.k.Kg=function(){};
g.k.Lg=function(){};
g.k.Mk=function(){};
g.k.Nk=function(){};
g.k.Nj=function(){};
g.k.Sh=function(){};
g.k.Rc=function(){};
g.k.xd=function(){};g.x(q2,g.E);q2.prototype.qa=function(){this.dn.isDisposed()||this.dn.get().removeListener(this);g.E.prototype.qa.call(this)};g.x(r2,g.E);r2.prototype.qa=function(){this.cf.isDisposed()||this.cf.get().removeListener(this);g.E.prototype.qa.call(this)};s2.prototype.fetch=function(a){var b=a.fT;return this.au.fetch(a.MY,{gB:void 0===a.gB?void 0:a.gB,oe:b}).then(function(c){return R6a(c,b)})};g.x(t2,g.E);g.k=t2.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.iI=function(a){S6a(this,a,1)};
g.k.onAdUxClicked=function(a,b){u2(this,function(c){c.eh(a,b)})};
g.k.yN=function(a){u2(this,function(b){b.hM(a)})};
g.k.xN=function(a){u2(this,function(b){b.gM(a)})};
g.k.p5=function(a){u2(this,function(b){b.fG(a)})};g.x(v2,g.E);g.k=v2.prototype;
g.k.Mj=function(){this.D=new wO(this,r5a(this.Ca.get()));this.B=new xO;var a=this.F.getVideoData(1);if(!a.enableServerStitchedDai){var b=this.F.getVideoData(1),c;(null==(c=this.j)?void 0:c.clientPlaybackNonce)!==b.clientPlaybackNonce&&(null!=this.j&&this.j.unsubscribe("cuepointupdated",this.DN,this),b.subscribe("cuepointupdated",this.DN,this),this.j=b)}this.sI.length=0;var d;b=(null==(d=a.j)?void 0:awa(d,0))||[];d=g.v(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.Zs(b)&&DD("Unexpected a GetAdBreak to go out without player waiting",
void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce})};
g.k.qn=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.UN=function(a){this.sI.push(a);for(var b=!1,c=g.v(this.listeners),d=c.next();!d.done;d=c.next())b=d.value.lW(a)||b;this.C=b};
g.k.eW=function(a){g.Tb(this.B.j,1E3*a);for(var b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.dW(a)};
g.k.Zs=function(a){U6a(this,a);this.D.reduce(a);a=this.C;this.C=!1;return a};
g.k.DN=function(a){var b=this.F.getVideoData(1).isDaiEnabled();if(b||!g.IK(this.F.T())){a=g.v(a);for(var c=a.next();!c.done;c=a.next())c=c.value,U6a(this,c),b?this.D.reduce(c):0!==this.F.getCurrentTime(1)&&"start"===c.event&&(this.Ca.get().F.T().experiments.kb("ignore_overlapping_cue_points_on_endemic_live_html5")&&(null==this.u?0:c.startSecs+c.Qg>=this.u.startSecs&&c.startSecs<=this.u.startSecs+this.u.Qg)?DD("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.u=c,this.UN(c)))}};
g.k.qa=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.DN,this),this.j=null);this.listeners.length=0;this.sI.length=0;g.E.prototype.qa.call(this)};y2.prototype.addListener=function(a){this.listeners.push(a)};
y2.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=W6a.prototype;g.k.od=function(){return this.slot};
g.k.Ib=function(){return this.layout};
g.k.init=function(){this.Ha.get().addListener(this);this.Ha.get().lF.push(this)};
g.k.release=function(){this.Ha.get().removeListener(this);G5a(this.Ha.get(),this)};
g.k.startRendering=function(a){this.callback.Rc(this.slot,a)};
g.k.Og=function(a,b){this.callback.xd(this.slot,a,b)};
g.k.Rl=function(a){switch(a.id){case "part2viewed":this.bb.kd("start");break;case "videoplaytime25":this.bb.kd("first_quartile");break;case "videoplaytime50":this.bb.kd("midpoint");break;case "videoplaytime75":this.bb.kd("third_quartile");break;case "videoplaytime100":this.bb.kd("complete");break;case "engagedview":if(!s5a(this.Ca.get())){this.bb.kd("progress");break}Y5a(this.bb)||this.bb.kd("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
default:DD("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.Kk=function(){};
g.k.Th=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Lk=function(){};
g.k.Lj=function(){};
g.k.aW=function(a){s5a(this.Ca.get())&&Y5a(this.bb)&&L1(this.bb,1E3*a,!1)};X6a.prototype.wf=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.v(J1()),f=e.next();!f.done;f=e.next())b.push(f.value);if(G1(d,{Be:b,Nf:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return new W6a(a,c,d,this.Ha,this.Oa,this.Ca);throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+WZ(d.Ba)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};g.k=z2.prototype;g.k.od=function(){return this.slot};
g.k.Ib=function(){return this.layout};
g.k.init=function(){this.xf.get().addListener(this);this.Ha.get().addListener(this);this.Js();var a=VZ(this.layout.Ba,"metadata_type_layout_enter_ms"),b=VZ(this.layout.Ba,"metadata_type_layout_exit_ms"),c,d=null==(c=this.Ta.get().Ku)?void 0:c.clientPlaybackNonce;c=this.layout.xc.adClientDataEntry;x1(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.xf.get();e=yO(e.B,a,b);null!==e&&(x1(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,
cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.qf.get().Cu(e,b))};
g.k.release=function(){this.ut();this.xf.get().removeListener(this);this.Ha.get().removeListener(this)};
g.k.startRendering=function(){this.Dt();this.callback.Rc(this.slot,this.layout)};
g.k.Og=function(a,b){this.Gt(b);null!==this.driftRecoveryMs&&(Z6a(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(Y6a(this)-VZ(this.layout.Ba,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ha.get().F.ls()).toString()}),this.driftRecoveryMs=null);this.callback.xd(this.slot,this.layout,b)};
g.k.lW=function(){return!1};
g.k.dW=function(a){var b=VZ(this.layout.Ba,"metadata_type_layout_enter_ms"),c=VZ(this.layout.Ba,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;x1(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:null==(d=this.Ta.get().Ku)?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.xc.adClientDataEntry}});this.qf.get().Cu(a,c)}};
g.k.Lj=function(a){this.RV(a);a=this.Ha.get().getCurrentTimeSec(2,!0);if(S4a(this.C.get(),this.layout.layoutId)){var b=VZ(this.layout.Ba,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=Y6a(this),e=this.Ha.get().F.ls(),f=Math.min(a+e,d/1E3);f<=a?Z6a(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(Z6a(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-
b).toString(),driftFromHeadMs:Math.round(1E3*e).toString(),appliedDriftRecoveryMs:Math.round(1E3*a-b).toString(),destinationMs:Math.round(1E3*f-b).toString()}),this.Ha.get().F.seekTo(f,void 0,void 0,1))}}};
g.k.Th=function(){};
g.k.Kk=function(){};
g.k.onVolumeChange=function(){};
g.k.Rl=function(){};g.x($6a,z2);g.k=$6a.prototype;g.k.Js=function(){this.Ta.get().addListener(this);this.B.forEach(function(a){a.init()});
null!=this.u&&this.Oa.get().Rh("ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.u)};
g.k.ut=function(){this.Ta.get().removeListener(this);this.j=null;this.B.forEach(function(a){a.release()})};
g.k.Dt=function(){if(this.j)DD("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.u)});else{var a,b=null==(a=this.Ta.get().Ku)?void 0:a.layoutId;b7a(this,b)}};
g.k.Gt=function(a){var b,c,d,e;null==(d=this.j)||null==(e=d.wl)||e.Og(null==(b=this.j)?void 0:null==(c=b.wl)?void 0:c.Ib(),a);this.j=null};
g.k.XN=function(a){var b=a.videoId;a=a.layoutId;if("nPpU29QrbiU"===b){var c,d;this.Oa.get().Rh("ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.u+";slrs."+!!this.j+";slrslid."+(null==(c=this.j)?void 0:null==(d=c.wl)?void 0:d.Ib().layoutId))}var e;if(this.j&&(null==(e=this.j.wl)?void 0:e.Ib().layoutId)!==a){var f,h;null==(h=this.j.wl)||h.Og(null==(f=this.j.wl)?void 0:f.Ib(),"normal");b7a(this,a)}};
g.k.RV=function(){};
g.k.Lk=function(){};
g.k.onFullscreenToggled=function(){};g.k=p7a.prototype;g.k.od=function(){return this.slot};
g.k.Ib=function(){return this.layout};
g.k.init=function(){var a=this;VZ(this.layout.Ba,"metadata_type_player_bytes_callback_ref").current=this;this.Mc=c7a(this.slot,this.layout,VZ(this.layout.Ba,"metadata_type_player_vars"),VZ(this.layout.Ba,"metadata_type_layout_enter_ms"),VZ(this.layout.Ba,"metadata_type_layout_exit_ms"),1E3*VZ(this.layout.Ba,"metadata_type_video_length_seconds"),this.qf.get(),this.Sd.get(),function(){var d=Object,e=d.assign,f=s7a(a.layout);var h=VZ(a.slot.Ba,"metadata_type_fulfilled_layout");h=Object.assign({},s7a(h),
{adPlacementConfig:VZ(h.Ba,"metadata_type_ad_placement_config"),subLayouts:VZ(h.Ba,"metadata_type_sub_layouts").map(s7a)});return e.call(d,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},f,{compositeLayout:h,hasSurveyOverlay:wC(a.layout.Ba,"metadata_type_survey_overlay"),surveyOverlay:VZ(a.layout.Ba,"metadata_type_survey_overlay")})},this.Oa.get());
this.Ha.get().addListener(this);var b=VZ(this.layout.Ba,"metadata_type_video_length_seconds"),c=VZ(this.layout.Ba,"metadata_type_active_view_traffic_type");pN(this.layout.Rb)&&u5a(this.Ob.get(),this.layout.layoutId,c,b,this);o2a(this.callback,this.slot,this.layout);p2a(this.callback,this.slot,this.layout)};
g.k.release=function(){this.Ha.get().removeListener(this);pN(this.layout.Rb)&&v5a(this.Ob.get(),this.layout.layoutId);this.Ca.get();tO(this.callback,this.slot,this.layout)};
g.k.startRendering=function(){var a=this;wC(this.layout.Ba,"metadata_type_survey_overlay")&&this.Oa.get().Rh("ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.Dc)DD("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:wC(this.layout.Ba,"metadata_type_survey_overlay"),surveyOverlay:VZ(this.layout.Ba,"metadata_type_survey_overlay")});else{this.Dc={cn:null,LD:!1};this.Ca.get().F.T().experiments.kb("html5_disable_sodar_for_tvhtml5")||d7a(this.slot,
this.layout,this.jf.get());this.bb.kd("start");if(r1(this.Ca.get())){var b=t1(this.Ha.get()),c=VZ(this.layout.Ba,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);f7a(this.bb,this.Dc.cn,b,c,d,function(){return void r7a(a,"teois")})}f0(this.callback,this.slot,this.layout);
wC(this.layout.Ba,"metadata_type_survey_overlay")&&this.Oa.get().Rh("ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.k.Og=function(a,b){var c=this;if(this.Dc){if(r1(this.Ca.get()))if(null===this.Mc)DD("Unexpected media sub layout exited without a timeline playback ID");else{a=VZ(this.layout.Ba,"metadata_type_video_length_seconds");var d=H5a(this.Ha.get(),this.Mc);this.bb.D=d;g7a(this.bb,null,this.Dc.cn,a,d,function(e){return void q7a(c,e,"fue")})}this.Dc=null;
nO(this.callback,this.slot,this.layout,b)}else DD("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.LC=function(){};
g.k.eG=function(){};
g.k.Lj=function(a){var b=this;if(this.Dc){if(M1(this.bb,"impression")){var c=t1(this.Ha.get()),d=VZ(this.layout.Ba,"metadata_type_video_length_seconds");h7a(this.bb,c,a,this.Dc.cn,d,function(e){return void q7a(b,e,"tpaqe")})}this.Dc.cn=a}};
g.k.Lk=function(a){var b=this;if(this.Dc){r1(this.Ca.get())||this.Dc.LD||(this.Dc.LD=!0,a=new g.$N(a.state,new g.OO));var c=VZ(this.layout.Ba,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);e7a(this.bb,this.Dc.cn,a,c,d,!r1(this.Ca.get()),function(){return void r7a(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){i7a(this.bb,a)};
g.k.Th=function(){};
g.k.Kk=function(){};
g.k.eD=function(a,b){var c;a=this.Oa.get();var d=a.Rh,e="ti."+M1(this.bb,"impression")+";ts."+M1(this.bb,"skip")+";hp.",f;var h=!(null==(f=this.bb.B.get("skip"))||!f.length);d.call(a,"ads_dsr",e+h+";cpn."+VZ(this.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(c=this.Ta.get().rg(2))?void 0:c.clientPlaybackNonce)+";sl."+(VZ(b.Ba,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));M1(this.bb,"impression")&&this.bb.kd("skip");this.qf.get().mp()||DD("Unexpected failure to skip a server stitched ad",
this.slot,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Rc=function(){};
g.k.xd=function(){};
g.k.Mv=function(){};
g.k.Zv=function(){};
g.k.NH=function(){j7a(this.bb)};
g.k.RC=function(){k7a(this.bb)};
g.k.QC=function(){l7a(this.bb)};
g.k.SC=function(){m7a(this.bb)};
g.k.OC=function(){n7a(this.bb)};
g.k.PC=function(){o7a(this.bb)};
g.k.Rl=function(){};g.x(t7a,z2);g.k=t7a.prototype;
g.k.Js=function(){var a=this;VZ(this.layout.Ba,"metadata_type_player_bytes_callback_ref").current=this;var b=VZ(this.layout.Ba,"metadata_type_layout_enter_ms"),c=VZ(this.layout.Ba,"metadata_type_layout_exit_ms");this.Mc=c7a(this.slot,this.layout,VZ(this.layout.Ba,"metadata_type_player_vars"),b,c,1E3*VZ(this.layout.Ba,"metadata_type_video_length_seconds"),this.qf.get(),this.Sd.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:VZ(a.layout.Ba,"metadata_type_ad_placement_config")}},
this.Oa.get());
var d=VZ(this.layout.Ba,"metadata_type_video_length_seconds"),e=VZ(this.layout.Ba,"metadata_type_active_view_traffic_type");pN(this.layout.Rb)&&u5a(this.Ob.get(),this.layout.layoutId,e,d,this)};
g.k.ut=function(){pN(this.layout.Rb)&&v5a(this.Ob.get(),this.layout.layoutId)};
g.k.Dt=function(){var a=this;if(this.Dc)DD("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.Dc={cn:null,LD:!1},d7a(this.slot,this.layout,this.jf.get()),this.bb.kd("start"),r1(this.Ca.get())){var b=t1(this.Ha.get()),c=VZ(this.layout.Ba,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);f7a(this.bb,this.Dc.cn,b,c,d,function(){return void u7a(a,"teois")})}};
g.k.Gt=function(){var a=this;if(this.Dc){if(r1(this.Ca.get()))if(null===this.Mc)DD("Unexpected single media layout exited without a timeline playback ID");else{var b=VZ(this.layout.Ba,"metadata_type_video_length_seconds"),c=H5a(this.Ha.get(),this.Mc);this.bb.D=c;g7a(this.bb,null,this.Dc.cn,b,c,function(d){return void v7a(a,d,"fue")})}this.Dc=null}else DD("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.RV=function(a){var b=this;if(this.Dc){if(M1(this.bb,"impression")){var c=t1(this.Ha.get()),d=VZ(this.layout.Ba,"metadata_type_video_length_seconds");h7a(this.bb,c,a,this.Dc.cn,d,function(e){return void v7a(b,e,"tpaqe")})}this.Dc.cn=a}};
g.k.Lk=function(a){var b=this;if(this.Dc){r1(this.Ca.get())||this.Dc.LD||(this.Dc.LD=!0,a=new g.$N(a.state,new g.OO));var c=VZ(this.layout.Ba,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);e7a(this.bb,this.Dc.cn,a,c,d,!r1(this.Ca.get()),function(){return void u7a(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){i7a(this.bb,a)};
g.k.NH=function(){j7a(this.bb)};
g.k.RC=function(){k7a(this.bb)};
g.k.QC=function(){l7a(this.bb)};
g.k.SC=function(){m7a(this.bb)};
g.k.OC=function(){n7a(this.bb)};
g.k.PC=function(){o7a(this.bb)};w7a.prototype.wf=function(a,b,c,d){if(wC(c.Ba,"metadata_type_dai")){var e=VZ(d.Ba,"metadata_type_ad_placement_config");G1(d,{Be:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),Nf:["LAYOUT_TYPE_MEDIA"]})&&void 0!==e?(e=new I1(d.Rb,this.Oa,e,d.layoutId,null),e=new t7a(a,c,d,this.Ta,this.qf,this.Sd,this.xf,this.Ha,e,this.Oa,this.jf,this.j,this.Ob,this.Ca)):
e=null;if(e)return e;a:{var f=VZ(d.Ba,"metadata_type_sub_layouts"),h=VZ(d.Ba,"metadata_type_ad_placement_config");if(G1(d,{Be:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Nf:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==f&&void 0!==h){e=[];f=g.v(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=VZ(l.Ba,"metadata_type_media_sub_layout_index");if(!G1(l,{Be:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),
Nf:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new I1(l.Rb,this.Oa,h,l.layoutId,m);e.push(new p7a(b,c,l,this.qf,m,this.Ha,this.Sd,this.Ob,this.jf,this.Ca,this.Oa,this.Ta))}b=new I1(d.Rb,this.Oa,h,d.layoutId);a=new $6a(a,c,d,this.Ta,this.qf,this.xf,this.Ha,b,this.Oa,this.j,e)}else a=null}if(a)return a}else if(a=C6a(a,b,c,d,this.Ue,this.u,this.Oa,this.Ob,this.jf,this.Pe,this.Ta,this.Ha,this.uc,this.Lc,this.Ad,this.Wf,this.Pb,this.cg,this.Ca))return a;throw new Y_("Unsupported layout with type: "+
d.layoutType+" and client metadata: "+WZ(d.Ba)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.x(A2,g.E);A2.prototype.Wl=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new zC("Tried to register duplicate trigger for slot.");if(!(b instanceof C0))throw new zC("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Xb.set(b.triggerId,new i2(a,b,c,d))};
A2.prototype.Zl=function(a){this.Xb.delete(a.triggerId)};g.x(C2,g.E);
C2.prototype.Wl=function(a,b,c,d){if(this.u.has(b.triggerId)||this.B.has(b.triggerId))throw new zC("Tried to re-register the trigger.");a=new i2(a,b,c,d);if(a.trigger instanceof e5a)this.u.set(a.trigger.triggerId,a);else if(a.trigger instanceof $3a)this.B.set(a.trigger.triggerId,a);else throw new zC("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.u.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&g0(this.C(),[a])};
C2.prototype.Zl=function(a){this.u.delete(a.triggerId);this.B.delete(a.triggerId)};
C2.prototype.XN=function(a){a=a.slotId;if(this.j!==a){var b=[];null!=this.j&&b.push.apply(b,g.la(x7a(this.B,this.j)));null!=a&&b.push.apply(b,g.la(x7a(this.u,a)));this.j=a;b.length&&g0(this.C(),b)}};g.k=y7a.prototype;g.k.Ix=function(a,b,c,d,e,f,h){return this.F.Ix(a,b,c,d,e,f,h)};
g.k.Cu=function(a,b){this.F.Cu(a,b)};
g.k.cA=function(a,b,c){this.F.cA(a,b,c)};
g.k.jt=function(a){this.F.jt(a)};
g.k.jC=function(a,b,c,d,e,f,h){this.F.jC(a,b,c,d,e,f,h)};
g.k.mp=function(){return this.F.mp()};g.x(z7a,jN);g.x(A7a,O1);g.k=A7a.prototype;g.k.eh=function(a,b){Q1("image-companion",a,this.I.get().Wk,this.Oa.get(),this.C,this.D,this.od(),this.Ib(),b)};
g.k.startRendering=function(a){P1(this.bb,this.od(),this.Ib(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new z7a(b,c,d,e,f)},this.j);
O1.prototype.startRendering.call(this,a)};
g.k.Rc=function(a,b){b.layoutId===this.layout.layoutId?this.bb.kd("impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Oa.get().Dj():DD("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.xd=function(){};
g.k.Hi=function(){};
g.k.Qj=function(){};
g.k.Pj=function(){};
g.k.Kg=function(){};
g.k.Lg=function(){};
g.k.Mk=function(){};
g.k.Nk=function(){};
g.k.Nj=function(){};
g.k.Sh=function(){};
g.k.hj=function(){};
g.k.qa=function(){this.Ue().Hd.delete(this);O1.prototype.qa.call(this)};g.x(C7a,jN);g.x(D7a,O1);g.k=D7a.prototype;g.k.eh=function(a,b){Q1("shopping-companion",a,this.I.get().Wk,this.Oa.get(),this.C,this.D,this.od(),this.Ib(),b)};
g.k.startRendering=function(a){P1(this.bb,this.od(),this.Ib(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new C7a(b,c,d,e,f)},this.j);
O1.prototype.startRendering.call(this,a)};
g.k.Rc=function(a,b){b.layoutId===this.layout.layoutId?this.bb.kd("impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Oa.get().Dj():DD("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.xd=function(){};
g.k.Hi=function(){};
g.k.Qj=function(){};
g.k.Pj=function(){};
g.k.Kg=function(){};
g.k.Lg=function(){};
g.k.Mk=function(){};
g.k.Nk=function(){};
g.k.Nj=function(){};
g.k.Sh=function(){};
g.k.hj=function(){};
g.k.qa=function(){this.Ue().Hd.delete(this);O1.prototype.qa.call(this)};g.x(F7a,O1);g.k=F7a.prototype;g.k.startRendering=function(a){P1(this.bb,this.od(),this.Ib(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new d6a(b,c,d,e,f)},this.j);
O1.prototype.startRendering.call(this,a)};
g.k.Rc=function(){};
g.k.xd=function(){};
g.k.Hi=function(){};
g.k.Qj=function(){};
g.k.Pj=function(){};
g.k.Kg=function(){};
g.k.Lg=function(){};
g.k.Mk=function(){};
g.k.Nk=function(){};
g.k.Nj=function(){};
g.k.Sh=function(){};
g.k.hj=function(){};
g.k.qa=function(){this.Ue().Hd.delete(this);O1.prototype.qa.call(this)};
g.k.eh=function(){};g.x(H7a,jN);g.x(I7a,O1);g.k=I7a.prototype;g.k.eh=function(a,b){Q1("ads-engagement-panel",a,this.I.get().Wk,this.Oa.get(),this.C,this.D,this.od(),this.Ib(),b)};
g.k.startRendering=function(a){P1(this.bb,this.od(),this.Ib(),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new H7a(b,c,d,e,f)},this.j);
O1.prototype.startRendering.call(this,a)};
g.k.Rc=function(a,b){b.layoutId===this.layout.layoutId?this.bb.kd("impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Oa.get().Dj():DD("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.xd=function(){};
g.k.Hi=function(){};
g.k.Qj=function(){};
g.k.Pj=function(){};
g.k.Kg=function(){};
g.k.Lg=function(){};
g.k.Mk=function(){};
g.k.Nk=function(){};
g.k.Nj=function(){};
g.k.Sh=function(){};
g.k.hj=function(){};
g.k.qa=function(){this.Ue().Hd.delete(this);O1.prototype.qa.call(this)};K7a.prototype.wf=function(a,b,c,d){if(G1(d,J7a()))return new I7a(a,c,d,this.qc,this.Oa,this.Ue,this.Ob,this.j);if(G1(d,f6a()))return new e6a(a,c,d,this.qc,this.Oa,this.Ue,this.Ob,this.j);if(G1(d,B7a()))return new A7a(a,c,d,this.qc,this.Oa,this.Ue,this.Ob,this.j);if(G1(d,E7a()))return new D7a(a,c,d,this.qc,this.Oa,this.Ue,this.Ob,this.j);if(G1(d,G7a()))return new F7a(a,c,d,this.qc,this.Oa,this.Ue,this.Ob,this.j);throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+WZ(d.Ba)+
" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.x(L7a,jN);g.x(D2,O1);D2.prototype.init=function(){O1.prototype.init.call(this);var a=VZ(this.layout.Ba,"metadata_type_player_underlay_renderer");this.j.push(new L7a(g.S(a,mab),this.layout.layoutId,{adsClientData:this.layout.xc}))};
D2.prototype.eh=function(){};
D2.prototype.startRendering=function(a){O1.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a)};
D2.prototype.qa=function(){O1.prototype.qa.call(this)};M7a.prototype.wf=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.v(J1()),f=e.next();!f.done;f=e.next())b.push(f.value);if(G1(d,{Be:b,Nf:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new D2(a,c,d,this.qc);throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+WZ(d.Ba)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.x(N7a,jN);g.x(E2,O1);E2.prototype.startRendering=function(a){var b=K1(this.bb),c={adsClientData:this.layout.xc};this.j.push(new N7a(VZ(this.layout.Ba,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Ib().layoutId,c));O1.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a)};
E2.prototype.eh=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=VZ(this.layout.Ba,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.eD(this.slot,this.layout):DD("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
E2.prototype.qa=function(){O1.prototype.qa.call(this)};var O7a=new g.xe(320,63);g.x(R7a,jN);g.x(H2,O1);g.k=H2.prototype;g.k.Lj=function(){};
g.k.Lk=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Th=function(a){a&&B2(this.C,this.layout)};
g.k.Kk=function(a){var b=G2(this.layout);if(this.ju=P7a(a,I5a(this.Ha.get())))b.onErrorCommand&&this.Pb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),B2(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Ay=function(){return this.Ib().layoutId};
g.k.CL=function(){return this.ju};
g.k.eh=function(a){this.D.eh(a);"in_video_overlay_close_button"===a&&B2(this.C,this.layout)};
g.k.fG=function(a){"invideo-overlay"===a&&B2(this.C,this.layout)};
g.k.Xs=function(){this.D.Xs()};
g.k.startRendering=function(a){O1.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a);this.I.Ex=this};
g.k.Og=function(a,b){O1.prototype.Og.call(this,a,b);X8a(this.I,this)};
g.k.init=function(){O1.prototype.init.call(this);y5a(this.Oa.get(),this);this.Ha.get().addListener(this);this.j.push(new R7a(G2(this.layout),K1(this.bb),this.layout.layoutId,{adsClientData:this.layout.xc}))};
g.k.release=function(){O1.prototype.release.call(this);this.Ha.get().removeListener(this);z5a(this.Oa.get(),this)};
g.k.Rl=function(){};g.x(I2,O1);g.k=I2.prototype;g.k.init=function(){O1.prototype.init.call(this);y5a(this.Oa.get(),this);this.Ha.get().addListener(this);this.j.push(new R7a(G2(this.layout),K1(this.bb),this.layout.layoutId,{adsClientData:this.layout.xc}))};
g.k.Xs=function(){this.D.Xs()};
g.k.startRendering=function(a){O1.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a);this.I.Ex=this};
g.k.Og=function(a,b){O1.prototype.Og.call(this,a,b);X8a(this.I,this)};
g.k.eh=function(a){this.D.eh(a);"in_video_overlay_close_button"===a&&B2(this.C,this.layout)};
g.k.hM=function(a){if("invideo-overlay"===a){a=X7a(this.J,this.layout);a=g.v(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.fG=function(a){"invideo-overlay"===a&&B2(this.C,this.layout)};
g.k.gM=function(a){if("invideo-overlay"===a){a=X7a(this.J,this.layout);a=g.v(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.Lj=function(){};
g.k.Lk=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Th=function(a){a&&B2(this.C,this.layout)};
g.k.Kk=function(a){var b=G2(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=I5a(this.Ha.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&!g.xb(c.thumbnails)&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.xe(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.xe(0,0)}if(this.ju=P7a(a,d,c))b.onErrorCommand&&this.Pb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),B2(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Ay=function(){return this.Ib().layoutId};
g.k.CL=function(){return this.ju};
g.k.release=function(){O1.prototype.release.call(this);this.Ha.get().removeListener(this);z5a(this.Oa.get(),this)};
g.k.Rl=function(){};J2.prototype.eh=function(a){"ad-info-hover-text-button"===a&&((this.j=this.Ha.get().tq(1))||this.Ha.get().pauseVideo())};
J2.prototype.Xs=function(){this.j||this.Ha.get().resumeVideo(1)};g.x(U7a,jN);g.x(V7a,O1);g.k=V7a.prototype;g.k.init=function(){O1.prototype.init.call(this);this.Ha.get().addListener(this)};
g.k.startRendering=function(a){var b=VZ(this.layout.Ba,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.j.push(new U7a(b,this.layout.layoutId,{adsClientData:this.layout.xc}));O1.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a)};
g.k.Rc=function(){};
g.k.eh=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=VZ(this.layout.Ba,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.Mv(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.Zv(this.slot,this.layout):DD("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.k.Kk=function(a){450>a.width&&B2(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Lj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Th=function(){};
g.k.Lk=function(){};
g.k.Rl=function(){};
g.k.qa=function(){O1.prototype.qa.call(this)};
g.k.release=function(){O1.prototype.release.call(this);this.Ha.get().removeListener(this)};W7a.prototype.wf=function(a,b,c,d){if(b=U1(a,c,d,this.qc,this.Ha,this.Oa,this.C,this.j,this.Ca))return b;if(G1(d,T7a()))return new I2(c,d,this.Oa,this.Ob,this.qc,a,this.u,this.B,this.Ha,this.Pb,this.Ca,this.j,new J2(this.Ha));if(G1(d,S7a()))return new H2(c,d,this.Oa,this.Ob,this.qc,a,this.u,this.Ha,this.Pb,this.Ca,this.j,new J2(this.Ha));if(G1(d,{Be:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Nf:["LAYOUT_TYPE_SURVEY"]}))return new V7a(c,d,a,this.qc,this.u,this.Ha,this.Ca);if(G1(d,
{Be:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Nf:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new E2(c,d,a,this.qc,this.Oa);if(G1(d,i6a()))return new T1(c,d,a,this.qc,this.Ha,this.Ca);throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+WZ(d.Ba)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.x(K2,g.E);g.k=K2.prototype;g.k.Wl=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new zC("Tried to register duplicate trigger for slot.");if(!(b instanceof n4a))throw new zC("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Xb.set(b.triggerId,new i2(a,b,c,d));a=this.j.has(b.triggeringLayoutId)?this.j.get(b.triggeringLayoutId):new Set;a.add(b);this.j.set(b.triggeringLayoutId,a)};
g.k.Zl=function(a){this.Xb.delete(a.triggerId);if(!(a instanceof n4a))throw new zC("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.u.get(a.triggerId);b&&(b.dispose(),this.u.delete(a.triggerId));if(b=this.j.get(a.triggeringLayoutId))b.delete(a),0===b.size&&this.j.delete(a.triggeringLayoutId)};
g.k.Hi=function(){};
g.k.Qj=function(){};
g.k.Pj=function(){};
g.k.Kg=function(){};
g.k.Lg=function(){};
g.k.Mk=function(){};
g.k.Nk=function(){};
g.k.Nj=function(){};
g.k.Sh=function(){};
g.k.hj=function(){};
g.k.Rc=function(a,b){var c=this;if(this.j.has(b.layoutId)){b=this.j.get(b.layoutId);a={};b=g.v(b);for(var d=b.next();!d.done;a={tA:a.tA},d=b.next())a.tA=d.value,d=new g.Ap(function(e){return function(){var f=c.Xb.get(e.tA.triggerId);g0(c.B(),[f])}}(a),a.tA.durationMs),d.start(),this.u.set(a.tA.triggerId,d)}};
g.k.xd=function(){};g.x(Y7a,g.E);Z7a.prototype.wf=function(a,b,c,d){if(b=U1(a,c,d,this.qc,this.Ha,this.Oa,this.C,this.j,this.Ca))return b;if(G1(d,T7a()))return new I2(c,d,this.Oa,this.Ob,this.qc,a,this.u,this.B,this.Ha,this.Pb,this.Ca,this.j,new J2(this.Ha));if(G1(d,S7a()))return new H2(c,d,this.Oa,this.Ob,this.qc,a,this.u,this.Ha,this.Pb,this.Ca,this.j,new J2(this.Ha));throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+WZ(d.Ba)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.x($7a,g.E);g.x(a8a,g.E);g.x(b8a,g.E);g.x(M2,S1);M2.prototype.startRendering=function(a){S1.prototype.startRendering.call(this,a);VZ(this.layout.Ba,"metadata_ad_video_is_listed")&&(a=VZ(this.layout.Ba,"metadata_type_ad_info_ad_metadata"),this.Bm.get().F.Na("onAdMetadataAvailable",a))};d8a.prototype.wf=function(a,b,c,d){if(G1(d,c8a()))return new M2(a,c,d,this.qc,this.Ha,this.Oa,this.u,this.Bm,this.j);throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+WZ(d.Ba)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.x(e8a,g.E);f8a.prototype.wf=function(a,b,c,d){if(G1(d,c8a()))return new M2(a,c,d,this.qc,this.Ha,this.Oa,this.u,this.Bm,this.j);if(a=U1(a,c,d,this.qc,this.Ha,this.Oa,this.u,this.j,this.Ca))return a;throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+WZ(d.Ba)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.x(g8a,g.E);g.x(i8a,g.E);i8a.prototype.B=function(){return this.u};g.x(j8a,LQ);
j8a.prototype.C=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Na("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.Na("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);
this.j.Na("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.Na("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.Na("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Na("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.Na("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.Na("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.Na("updateEngagementPanelAction",b.addAction);this.j.Na("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.j.Na("changeEngagementPanelVisibility",b.hideAction),this.j.Na("updateEngagementPanelAction",b.removeAction)}};g.x(k8a,TQ);g.k=k8a.prototype;g.k.init=function(a,b,c){TQ.prototype.init.call(this,a,b,c);g.Jm(this.B,"stroke-dasharray","0 "+this.u);this.api.T().K("enable_dark_mode_style_endcap_timed_pie_countdown")&&(this.B.classList.add("ytp-ad-timed-pie-countdown-inner-light"),this.C.classList.add("ytp-ad-timed-pie-countdown-outer-light"));this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){VQ(this);TQ.prototype.hide.call(this)};
g.k.show=function(){UQ(this);TQ.prototype.show.call(this)};
g.k.Sv=function(){this.hide()};
g.k.ot=function(){if(this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&g.Jm(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.u+" "+this.u)}};g.x(l8a,kQ);g.k=l8a.prototype;
g.k.init=function(a,b,c){kQ.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.S(b.actionButton,g.pM))if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.zD(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!=e&&
0<e.length&&g.$b(g.He(e[0].url))&&(e[0].url=d.profilePicture,g.$b(g.He(d.profilePicture))&&XQa("VideoPlayer",239976093,"Expected non-empty profile picture."));e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.$b(g.He(e[0].url))&&(e[0].url=d.vg());e=b.headline;null!=e&&g.$b(g.He(e.text))&&(e.text=d.author)}this.J.init(iN("ad-image"),b.image,c);this.D.init(iN("ad-text"),b.headline,c);this.C.init(iN("ad-text"),b.description,c);this.Z.init(iN("ad-image"),b.backgroundImage,c);d=["ytp-ad-action-interstitial-action-button",
"ytp-ad-action-interstitial-action-button-rounded"];this.api.T().K("enable_dark_mode_style_endcap")&&(this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background"),this.D.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.T().K("enable_endcap_no_op_UI_change")&&this.slot.classList.add("ytp-ad-action-interstitial-slot-no-op");this.api.T().K("enable_small_endcap_action_button_for_mweb")&&
this.api.T().u&&d.push("ytp-ad-action-interstitial-action-button-mobile-companion-size");this.api.T().K("enable_mweb_endcap_dark_mode_action_button")&&this.api.T().u&&d.push("ytp-ad-action-interstitial-action-button-dark");this.actionButton=new BQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,d);g.I(this,this.actionButton);this.actionButton.Ea(this.Pa);this.actionButton.init(iN("button"),g.S(b.actionButton,g.pM),c);this.api.T().K("web_enable_instream_ads_link_definition_a11y_bugfix")&&
(up(this.actionButton.element),d=Wa(),e=xp(this.actionButton.element),wp(this.actionButton.element,e+d));this.navigationEndpoint=b.navigationEndpoint;this.api.T().u||(this.B.S(this.Ja,"click",this.rL,this),this.B.S(this.Ga,"click",this.rL,this),this.B.S(this.Aa,"click",this.rL,this));this.j=this.oP?new hR(this.api,a):new iR(a);g.I(this,this.j);b.skipButton?(a=g.S(b.skipButton,sab))&&this.j&&(this.skipButton=new cR(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.j,this.fI),g.I(this,
this.skipButton),this.skipButton.Ea(this.element),this.skipButton.init(iN("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=g.S(b.nonskippableOverlayRenderer,R0))&&this.j&&(this.u=new YQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.j,!1),g.I(this,this.u),this.u.Ea(this.element),this.u.init(iN("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,g.S(b,tab)&&this.j&&(c=new k8a(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.j),g.I(this,
c),c.Ea(this.element),c.init(iN("timed-pie-countdown"),g.S(b,tab),this.macros)));this.show();this.element.focus()}else g.zD(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.zD(Error("AdActionInterstitialRenderer has no button."));else g.zD(Error("AdActionInterstitialRenderer has no background AdImage."));else g.zD(Error("AdActionInterstitialRenderer has no description AdText."));else g.zD(Error("AdActionInterstitialRenderer has no headline AdText."));else g.zD(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.Hz(this.B);this.hide()};
g.k.show=function(){m8a(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.u&&this.u.show();kQ.prototype.show.call(this)};
g.k.hide=function(){m8a(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.u&&this.u.hide();kQ.prototype.hide.call(this)};
g.k.rL=function(){this.navigationEndpoint&&(this.layoutId?this.rb.executeCommand(this.navigationEndpoint,this.layoutId):g.zD(Error("Missing layoutId for ad action interstitial.")))};var r8a={iconType:"CLOSE"},P2=new g.xe(320,63);g.x(q8a,kQ);g.k=q8a.prototype;
g.k.init=function(a,b,c){kQ.prototype.init.call(this,a,b,c);this.C=b;this.J=g.Db(this.C.onClickCommands||[]);this.Ja=this.C.onErrorCommand||null;if(a=this.C.contentSupportedRenderer)a=this.C.contentSupportedRenderer,b=this.C.adInfoRenderer||null,g.S(a,oab)?(this.D=g.Te("ytp-ad-overlay-ad-info-button-container",this.B.element),s8a(this,b),a=u8a(this,g.S(a,oab))):g.S(a,pab)?(this.D=g.Te("ytp-ad-overlay-ad-info-button-container",this.u.element),s8a(this,b),a=v8a(this,g.S(a,pab))):g.S(a,qab)?(this.D=
g.Te("ytp-ad-overlay-ad-info-button-container",this.j.element),s8a(this,b),a=w8a(this,g.S(a,qab))):(g.zD(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),x8a(this,!0))};
g.k.clear=function(){x8a(this,!1);this.Ga.reset();this.Z=0;this.B.hide();this.Va(this.B.element,!1);this.u.hide();this.Va(this.u.element,!1);this.j.hide();this.Va(this.j.element,!1);this.hide();this.dispose()};
g.k.H7=function(){this.Za&&(this.layoutId?this.rb.executeCommand(this.Za,this.layoutId):g.zD(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
g.k.Yo=function(){a:{if(this.C&&this.C.closeButton&&this.C.closeButton.buttonRenderer){var a=this.C.closeButton.buttonRenderer;if(a.serviceEndpoint){a=[a.serviceEndpoint];break a}}a=[]}a=g.v(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.rb.executeCommand(b,this.layoutId):g.zD(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.i5=function(){this.Pa||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.k.TN=function(){this.Pa||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.TN("invideo-overlay")};
g.k.j5=function(a){a.target===this.D&&g.Te("ytp-ad-button",this.ib.element).click()};g.x(y8a,TQ);g.k=y8a.prototype;g.k.init=function(a,b,c){TQ.prototype.init.call(this,a,b,c);a=b.durationMs;this.B=null==a||0===a?0:a+1E3*this.j.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(iN("ad-text"),d,c);this.messageText.Ea(this.u.element);this.C.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){z8a(this,!1);TQ.prototype.hide.call(this);this.u.hide();this.messageText.hide();VQ(this)};
g.k.show=function(){z8a(this,!0);TQ.prototype.show.call(this);UQ(this);this.u.show();this.messageText.show()};
g.k.Sv=function(){this.hide()};
g.k.ot=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.J&&a>=this.B?(this.C.hide(),this.J=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.B-a)/1E3)),a!==this.Z&&(SQ(this.messageText,{TIME_REMAINING:String(a)}),this.Z=a)))}};g.x(A8a,kQ);g.k=A8a.prototype;
g.k.init=function(a,b,c){kQ.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.S(b.actionButton,g.pM)?(this.B.init(iN("ad-image"),b.image,c),this.u.init(iN("ad-text"),b.headline,c),this.C.init(iN("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.T().K("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new BQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,
a),b.backgroundColor&&g.Jm(this.element,"background-color",g.qR(b.backgroundColor)),g.I(this,this.actionButton),this.actionButton.Ea(this.D),this.actionButton.init(iN("button"),g.S(b.actionButton,g.pM),c),b=g.jJ(this.api.T().experiments,"player_underlay_video_width_fraction"),this.api.T().K("place_shrunken_video_on_left_of_player")?(c=this.j,g.Kp(c,"ytp-ad-underlay-left-container"),g.Ip(c,"ytp-ad-underlay-right-container"),g.Jm(this.j,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.j,g.Kp(c,"ytp-ad-underlay-right-container"),
g.Ip(c,"ytp-ad-underlay-left-container")),g.Jm(this.j,"width",Math.round(100*(1-b-.04))+"%"),this.api.sG()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.GQ.bind(this)),this.api.addEventListener("resize",this.pU.bind(this))):g.zD(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.zD(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.zD(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.zD(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.k.show=function(){B8a(!0);this.actionButton&&this.actionButton.show();kQ.prototype.show.call(this)};
g.k.hide=function(){B8a(!1);this.actionButton&&this.actionButton.hide();kQ.prototype.hide.call(this)};
g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.GQ.bind(this));this.api.removeEventListener("resize",this.pU.bind(this));this.hide()};
g.k.onClick=function(a){kQ.prototype.onClick.call(this,a);this.actionButton&&g.lf(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.k.GQ=function(a){"transitioning"===a?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):"visible"===a?this.j.classList.add("ytp-ad-underlay-clickable"):"hidden"===a&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))};
g.k.pU=function(a){1200<a.width?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):875<a.width?(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.Jm(this.u.element,"font-size",a.width/40+"px")};g.x(Q2,kQ);
Q2.prototype.init=function(a,b,c){kQ.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&g.S(b.answer,g.pM)?(a=new BQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ea(this.answer),a.init(iN("ytp-ad-survey-answer-button"),g.S(b.answer,g.pM),c),a.show()):b.answer&&g.S(b.answer,u3)&&(this.j=new JQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,
["ytp-ad-survey-answer-toggle-button"]),this.j.Ea(this.answer),g.I(this,this.j),this.j.init(iN("survey-answer-button"),g.S(b.answer,u3),c));this.show()};
Q2.prototype.ID=function(a){this.layoutId?p0(this.rb,a,this.layoutId,this.macros):g.zD(new g.Yz("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
Q2.prototype.onClick=function(a){kQ.prototype.onClick.call(this,a);this.api.T().K("supports_multi_step_on_desktop")&&null!==this.index&&this.u(this.index)};
Q2.prototype.clear=function(){this.hide()};g.x(C8a,kQ);C8a.prototype.init=function(a,b,c){kQ.prototype.init.call(this,a,b,c);b.answer&&g.S(b.answer,u3)&&(this.button=new JQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ea(this.j),this.button.init(iN("survey-none-of-the-above-button"),g.S(b.answer,u3),c));this.show()};g.x(R2,BQ);R2.prototype.init=function(a,b,c){BQ.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.dE(b.text),a=!g.$b(b));a||g.AD(Error("No submit text was present in the renderer."))};
R2.prototype.onClick=function(a){this.ma("l");BQ.prototype.onClick.call(this,a)};g.x(S2,kQ);
S2.prototype.init=function(a,b,c){kQ.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)g.S(a,P0)?(a=g.S(a,P0),c=new dR(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.B,!0),c.Ea(this.D),c.init(iN("skip-button"),a,this.macros),g.I(this,c),this.j=c):g.S(a,R0)&&(a=g.S(a,R0),c=new YQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.B,!1),c.Ea(this.D),c.init(iN("ad-preview"),a,this.macros),ZQ(c),g.I(this,c),this.j=c);null==this.j&&g.zD(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,g.S(a,g.pM)&&(a=g.S(a,g.pM),c=new R2(this.api,this.layoutId,this.interactionLoggingClientData,this.rb),c.Ea(this.submitButton),c.init(iN("survey-submit"),a,this.macros),g.I(this,c),this.u=c));if(a=b.adBadgeRenderer)a=g.S(a,rab),c=new fR(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,!0),c.Ea(this.C),c.init(iN("simple-ad-badge"),a,this.macros),g.I(this,c);if(a=b.adDurationRemaining)a=g.S(a,kab),c=new lR(this.api,this.layoutId,this.interactionLoggingClientData,
this.rb,this.B,void 0),c.Ea(this.C),c.init(iN("ad-duration-remaining"),a,this.macros),g.I(this,c);(b=b.adInfoRenderer)&&g.S(b,Q0)&&(a=new QQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.element),g.I(this,a),a.Ea(this.C),a.init(iN("ad-info-hover-text-button"),g.S(b,Q0),this.macros));this.show()};
S2.prototype.clear=function(){this.hide()};g.x(T2,kQ);T2.prototype.init=function(a,b,c){kQ.prototype.init.call(this,a,b,c);H8a(this)};
T2.prototype.show=function(){this.B=g.Va();kQ.prototype.show.call(this)};
T2.prototype.kX=function(){};g.x(I8a,T2);g.k=I8a.prototype;g.k.init=function(a,b,c){var d=this;T2.prototype.init.call(this,a,b,c);b.questionText&&D8a(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.S(e,o3)&&E8a(d,g.S(e,o3),c,f)});
this.D=new Set(this.u.map(function(e){return e.j.j}));
(a=b.noneOfTheAbove)&&(a=g.S(a,nab))&&J8a(this,a,c);b.surveyAdQuestionCommon&&G8a(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.S(this.element,"change",this.onChange);this.show()};
g.k.kX=function(){K8a(this,!1);this.C.u.subscribe("l",this.F7,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.j?L8a(this):this.D.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),K8a(this,!0))};
g.k.F7=function(){var a=[],b=this.u.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.kd(e);e.loggingUrls=e.loggingUrls.map(function(f){f.baseUrl&&(f.baseUrl=Vi(f.baseUrl,b));return f});
return e});
if(c){c=g.v(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.layoutId?p0(this.rb,d,this.layoutId,this.macros):g.zD(Error("Missing layoutId for multi_select_question."))}this.api.T().K("supports_multi_step_on_desktop")&&this.J(a)};
g.k.clear=function(){this.api.T().K("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.x(U2,T2);U2.prototype.init=function(a,b,c){var d=this;T2.prototype.init.call(this,a,b,c);b.questionText&&D8a(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.S(e,o3)&&E8a(d,g.S(e,o3),c,f)});
b.surveyAdQuestionCommon?G8a(this,b.surveyAdQuestionCommon):g.zD(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
U2.prototype.clear=function(){this.api.T().K("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.x(V2,kQ);V2.prototype.init=function(a,b,c){var d=this;kQ.prototype.init.call(this,a,b,c);if(this.api.T().K("supports_multi_step_on_desktop")){var e;this.conditioningRules=null!=(e=b.conditioningRules)?e:[];var f;this.u=null!=(f=b.questions)?f:[];var h;(null==(h=b.questions)?0:h.length)&&P8a(this,0)}else(b.questions||[]).forEach(function(l){g.S(l,zN)?N8a(d,g.S(l,zN),c):g.S(l,AN)&&O8a(d,g.S(l,AN),c)});
this.show()};
V2.prototype.clear=function(){this.api.T().K("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
V2.prototype.C=function(a){var b=this;if(this.api.T().K("supports_multi_step_on_desktop")){var c;if(null==(c=this.conditioningRules)?0:c.length){var d;if(0===a.length)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(null==this.conditioningRules.find(function(e){return e.questionIndex===b.j}))g.zD(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(null==(f=e.answerIndices)?0:f.every(function(l){return a.includes(l)}))d=e.nextQuestionIndex;
break;case "CONDITION_ANY_OF":var h;if(null==(h=e.answerIndices)?0:h.some(function(l){return a.includes(l)}))d=e.nextQuestionIndex;
break;default:g.zD(Error("Expected specified condition in survey conditioning rules."))}}),null!=d)P8a(this,d);
else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else 1<this.questions.length&&g.zD(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.x(W2,kQ);
W2.prototype.init=function(a,b,c){var d=this;kQ.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.zD(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&g.S(b.ctaButton,g.pM))if(b.brandImage)if(b.backgroundImage&&g.S(b.backgroundImage,S0)&&g.S(b.backgroundImage,S0).landscape){this.layoutId||g.zD(Error("Missing layoutId for survey interstitial."));Q8a(this.interstitial,g.S(b.backgroundImage,
S0).landscape);Q8a(this.logoImage,b.brandImage);g.mf(this.text,g.dE(b.text));var e=["ytp-ad-survey-interstitial-action-button"];this.api.T().K("web_modern_buttons_bl_survey")&&e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new BQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,e);g.I(this,this.actionButton);this.actionButton.Ea(this.u);this.actionButton.init(iN("button"),g.S(b.ctaButton,g.pM),c);this.actionButton.show();this.j=new hR(this.api,1E3*a);
this.j.subscribe("g",function(){d.transition.hide()});
g.I(this,this.j);this.S(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.zD(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.zD(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.zD(Error("SurveyTextInterstitialRenderer has no button."));else g.zD(Error("SurveyTextInterstitialRenderer has no text."));else g.zD(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
W2.prototype.clear=function(){this.hide()};
W2.prototype.show=function(){R8a(!0);kQ.prototype.show.call(this)};
W2.prototype.hide=function(){R8a(!1);kQ.prototype.hide.call(this)};var Kdb="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat(["shopping-companion","action-companion","image-companion","ads-engagement-panel"]);g.x(X2,LQ);
X2.prototype.C=function(a){var b=a.id,c=a.content,d=c.componentType;if(!Kdb.includes(d))switch(a.actionType){case 1:a=this.api;var e=this.rb,f=c.layoutId,h=c.interactionLoggingClientData,l=c instanceof eO?c.oP:!1,m=c instanceof eO||c instanceof gR?c.fI:!1;h=void 0===h?{}:h;l=void 0===l?!1:l;m=void 0===m?!1:m;switch(d){case "invideo-overlay":a=new q8a(a,f,h,e);break;case "player-overlay":a=new pR(a,f,h,e,new aU(a),m);break;case "survey":a=new V2(a,f,h,e);break;case "ad-action-interstitial":a=new l8a(a,
f,h,e,l,m);break;case "survey-interstitial":a=new W2(a,f,h,e);break;case "ad-message":a=new y8a(a,f,h,e,new aU(a,1));break;case "player-underlay":a=new A8a(a,f,h,e);break;default:a=null}if(!a){g.AD(Error("No UI component returned from ComponentFactory for type: "+d));break}g.bd(this.u,b)?g.AD(Error("Ad UI component already registered: "+b)):this.u[b]=a;a.bind(c);c instanceof L7a?this.B?this.B.append(a.WO):g.zD(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(a.WO);
break;case 2:b=S8a(this,a);if(null==b)break;b.bind(c);break;case 3:c=S8a(this,a),null!=c&&(g.gb(c),g.bd(this.u,b)?g.gd(this.u,b):g.AD(Error("Ad UI component does not exist: "+b)))}};
X2.prototype.qa=function(){g.ib(Object.values(this.u));this.u={};LQ.prototype.qa.call(this)};g.x(T8a,g.tT);g.k=T8a.prototype;g.k.create=function(){try{U8a(this),this.load(),this.created=!0,U8a(this)}catch(a){DD(a instanceof Error?a:String(a))}};
g.k.load=function(){try{W8a(this)}finally{q1(N2(this.j).Ci)&&this.player.hg("ad",1)}};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.Ys.qn(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.tT.prototype.unload.call(this);Dsa(!1);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){DD(b instanceof Error?b:String(b))}if(null!==this.Me){var a=this.Me;this.Me=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.au.reset()};
g.k.Uk=function(){return!1};
g.k.pP=function(){return null===this.Me?!1:this.Me.pP()};
g.k.Zo=function(a){null!==this.Me&&this.Me.Zo(a)};
g.k.getAdState=function(){return this.Me?this.Me.oG:-1};
g.k.getOptions=function(){return Object.values(Jdb)};
g.k.ph=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=EN(this.player),Object.assign(b,a.F6a),this.Me&&!b.AD_CPN&&(b.AD_CPN=this.Me.zB()),a=g.pp(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.Xs(b);break;case "executeCommand":a=b;a.command&&a.layoutId&&this.executeCommand(a);break;default:return null}};
g.k.Zs=function(a){var b;return!(null==(b=this.j.j.xf)||!b.get().Zs(a))};
g.k.Xs=function(a){a.isMuted&&O1a(N2(this.j).ej,N2(this.j).Jk,a.layoutId);this.Ex&&this.Ex.Xs()};
g.k.executeCommand=function(a){N2(this.j).rb.executeCommand(a.command,a.layoutId)};g.sT("ad",T8a);var b9a=g.Ve&&a9a();g.x(g.Y2,g.E);g.Y2.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,g.GA)()};this.next()};
g.Y2.prototype.stop=function(){this.delay.stop();this.config=void 0};
g.Y2.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.GA)()-a;a=this.j;d=Cla(a,e/d);if(0==d)a=a.J;else if(1==d)a=a.V;else{e=te(a.J,a.D,d);var f=te(a.D,a.I,d);a=te(a.I,a.V,d);e=te(e,f,d);f=te(f,a,d);a=te(e,f,d)}a=g.pe(a,0,1);this.callback(b+(c-b)*a);1>a&&this.delay.start()}};g.x(g.Z2,g.V);g.k=g.Z2.prototype;g.k.JZ=function(){this.B&&this.scrollTo(this.j-this.containerWidth)};
g.k.show=function(){g.V.prototype.show.call(this);f9a(this)};
g.k.KZ=function(){this.B&&this.scrollTo(this.j+this.containerWidth)};
g.k.Hq=function(){this.Db(this.api.jb().getPlayerSize())};
g.k.isShortsModeEnabled=function(){return this.api.T().K("shorts_mode_to_player_api")?this.api.Tb():this.I.Tb()};
g.k.Db=function(a){var b=this.isShortsModeEnabled()?.5625:16/9,c=this.I.xg();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));var d=(a-8*c)/c;b=Math.floor(d/b);for(var e=g.v(this.u),f=e.next();!f.done;f=e.next())f=f.value.Da("ytp-suggestion-image"),f.style.width=d+"px",f.style.height=b+"px";this.suggestions.element.style.height=b+"px";this.D=d;this.Z=b;this.containerWidth=a;this.columns=c;this.j=0;this.suggestions.element.scrollLeft=-0;g.$2(this)};
g.k.onVideoDataChange=function(){var a=this.api.T(),b=this.api.getVideoData();this.J=b.pd?!1:a.C;this.suggestionData=b.suggestions?g.On(b.suggestions,function(c){return c&&!c.playlistId}):[];
h9a(this);b.pd?this.title.update({title:g.pO("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:this.isShortsModeEnabled()?"More shorts":"More videos"})};
g.k.scrollTo=function(a){a=g.pe(a,this.containerWidth-this.suggestionData.length*(this.D+8),0);this.V.start(this.j,a,1E3);this.j=a;g.$2(this);f9a(this)};})(_yt_player);

}

/*
     FILE ARCHIVED ON 07:43:38 May 05, 2023 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 22:09:58 Jul 22, 2026.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  capture_cache.get: 0.613
  load_resource: 203.1
  PetaboxLoader3.resolve: 139.189
  PetaboxLoader3.datanode: 22.112
*/