var _yt_player={};(function(g){var window=this;/*

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

 SPDX-License-Identifier: Apache-2.0
*/
/*

 Copyright Google LLC All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.io/license
*/
/*

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
'use strict';var ea,baa,caa,oa,daa,pa,eaa,ra,va,wa,ya,gaa,haa,Ga,Ha,iaa,jaa,Ja,kaa,La,Na,Oa,laa,Ra,Ya,bb,naa,oaa,qb,paa,sb,tb,ub,xb,yb,qaa,raa,Cb,taa,uaa,Nb,vaa,Tb,waa,xaa,Qb,yaa,zaa,Aaa,Baa,Daa,Caa,Eaa,ec,Faa,gc,kc,mc,wc,xc,yc,zc,Naa,Oaa,Ac,Cc,Bc,Paa,Qaa,Raa,Saa,Dc,Taa,Hc,Ic,Kc,Uaa,Mc,Nc,Waa,Yaa,Qc,Sc,aba,Tc,Wc,bba,cba,fd,dba,md,od,gba,hba,td,mba,Ad,jba,lba,wd,vd,Fd,Gd,nba,Id,oba,Kd,Pd,pba,Rd,Sd,Td,Xd,be,ee,he,ne,pe,Bba,zba,Aba,Dba,Eba,se,ve,we,Hba,xe,Iba,Jba,Kba,Mba,Lba,Be,Je,Nba,Ne,Re,Ve,Oba,Ye,
Ze,cf,df,Pba,Qba,Rba,Sba,lf,mf,uf,Vba,Xba,Wba,vf,xf,Yba,wf,Df,kf,$ba,Zba,Mf,Lf,ef,Of,aca,Pf,Rf,Sf,bca,dca,fca,gg,hg,ig,jca,lca,lg,mca,kg,qca,eg,hca,sca,pca,nca,oca,tca,rca,mg,kca,Bg,vca,wca,xca,yca,zca,Aca,Bca,Cca,Dca,Eca,Dg,Eg,Fca,Gca,Hca,Ica,Fg,Jca,Nca,Oca,Pca,Uca,Jg,Tca,Qca,Wca,Yca,$ca,Lg,Mg,cda,Og,Xg,eda,Zg,Yg,fda,$g,gda,ah,bh,fh,hda,gh,ida,jda,hh,ch,jh,lh,kh,Ah,Bh,Ch,Dh,Eh,kda,mda,Gh,nda,oda,Hh,Ih,Lh,qda,rda,tda,uda,wda,Mh,xda,Nh,yda,Oh,zda,Ph,Qh,Ada,Rh,Sh,Th,Uh,Vh,Xh,Bda,pi,Cda,Eda,qi,ri,ti,
ui,Fda,Gda,vi,Hda,Ida,Jda,xi,yi,Kda,Lda,Mda,Nda,zi,Ai,Bi,Ci,Di,Ei,Fi,Qda,Ii,Ji,Rda,Sda,Hi,$i,Pda,Gi,aj,Tda,Uda,bj,cj,dj,ej,gj,ij,kj,P,lj,Xda,nj,oj,aea,$da,Yda,Zda,bea,dea,cea,eea,Gj,Fj,gea,fea,Hj,Jj,pj,iea,Lj,jea,Kj,Oj,Nj,Pj,Sj,Wj,mea,nea,Uj,oea,pea,Xj,Yj,Zj,bk,ak,rea,sea,dk,ek,fk,ck,gk,lea,tea,uea,Ik,Jk,Kk,Tj,Vj,vea,Lk,Mk,wea,Nk,Ok,Pk,Qk,xea,Rk,yea,Sk,Tk,zea,Aea,Bea,Uk,Vk,Wk,Xk,Yk,Zk,Q,$k,al,S,bl,T,Cea,cl,Fea,dl,hl,Iea,il,Kea,Lea,Hea,Mea,kl,Qea,Rea,Sea,Ul,Uea,Vea,el,Tea,Wea,Pea,Xl,Yl,Zl,$l,am,bm,
Yea,Zea,cm,$ea,dm,em,fm,gm,hm,im,jm,bfa,cfa,efa,dfa,ffa,mm,nm,om,hfa,ifa,jfa,pm,Km,Lm,Mm,Pm,Qm,Rm,kfa,Sm,mfa,Vm,Wm,Xm,Ym,Zm,$m,nfa,cn,pfa,bn,an,ofa,qfa,rfa,en,sfa,dn,fn,gn,hn,jn,kn,ln,mn,tfa,nn,ufa,pn,vfa,yfa,qn,rn,sn,tn,xn,Afa,yn,zn,An,Bfa,Cfa,uo,Dfa,vo,wo,Gfa,Ifa,Kfa,Jfa,Lfa,yo,Mfa,Bo,Fo,Go,Ho,Pfa,Qfa,Tfa,Rfa,Io,Ko,Ufa,Lo,Jo,Mo,No,Oo,Qo,Ro,Vfa,So,To,Xfa,Wfa,Yfa,Zfa,$fa,cga,Uo,Vo,Wo,Xo,dga,Yo,fga,gga,hga,iga,jga,$o,kga,lga,mga,nga,ap,bp,cp,dp,ep,fp,gp,pga,hp,oga,ip,qga,rga,sga,tga,jp,kp,lp,mp,np,
uga,op,pp,qp,rp,sp,yga,vga,fq,xga,gq,wga,eq,dq,iq,Aga,kq,jq,pq,qq,sq,Dga,rq,vq,Ega,wq,Bga,Hga,Iga,Jga,zq,Aq,Bq,Kga,Cq,Dq,Eq,Fq,Lga,Gq,Hq,Iq,Mga,Nga,Jq,Oga,Kq,Rga,Sga,Tga,Uga,Pga,Lq,Mq,Nq,Oq,Xga,Yga,Wga,Pq,Zga,$ga,aha,Tq,bha,Uq,Vq,cha,Wq,dha,fha,Xq,eha,gha,hha,Yq,Zq,$q,ar,Er,Fr,Gr,iha,Hr,Ir,Jr,jha,lha,mha,Lr,Nr,Mr,Pr,Qr,Rr,oha,pha,Sr,Tr,Ur,rha,sha,vha,tha,wha,Aha,Vr,zha,xha,Wr,Xr,Bha,Yr,Cha,Zr,Eha,Dha,Fha,Gha,cs,ds,Hha,Iha,Jha,es,fs,Kha,gs,Lha,Mha,Oha,Sha,hs,Tha,Uha,Vha,Wha,Xha,ks,Yha,Zha,$ha,rs,qs,
ps,aia,bia,cia,ts,us,vs,eia,As,Bs,Cs,fia,Ds,hia,iia,jia,Es,Gs,Hs,Ms,Ns,Qs,lia,nia,mia,oia,pia,Ws,qia,ria,Xs,sia,tia,uia,via,at,Zs,bt,ct,dt,wia,xia,yia,et,ft,gt,zia,Aia,Bia,ht,Cia,rt,tt,Dia,Eia,Fia,Gia,Hia,Iia,ut,vt,wt,zt,Lia,At,Bt,Mia,Kia,xt,Nia,Ct,Dt,Et,Gt,Ft,Oia,Pia,Qia,Ht,Sia,It,Uia,Via,Wia,Xia,Yia,Zia,$ia,aja,Lt,Mt,Nt,cja,bja,dja,eja,Pt,fja,Qt,gja,hja,Rt,St,Tt,ija,Ut,Vt,jja,Wt,Xt,Yt,Zt,$t,au,bu,cu,kja,lja,mja,nja,du,oja,qja,pja,fu,gu,sja,rja,vja,yja,xja,hu,zja,Aja,Bja,Dja,Cja,Eja,iu,Fja,Gja,ku,
Hja,Ija,Jja,Kja,lu,Lja,mu,Mja,nu,ou,Oja,pu,Pja,qu,ru,Qja,Rja,tu,vu,Tja,wu,Sja,Uja,Vja,Wja,Yja,xu,Zja,Au,Bu,aka,bka,eka,fka,Cu,Du,Eu,Fu,Gu,Hu,Iu,Ju,Ku,Lu,Mu,Nu,Ou,jka,ika,kka,mka,lka,oka,hka,nka,gka,Pu,Qu,qka,rka,ska,Uu,Vu,Wu,Ru,uka,Xu,pka,wka,xka,vka,Yu,Zu,$u,av,yka,tka,zka,bv,Aka,Bka,Cka,Dka,Eka,Hka,Ika,Jka,Kka,Lka,Oka,Qka,Ska,Tka,Xka,Wka,jv,Zka,ala,bla,Av,dla,zv,Cv,ela,Dv,Fv,Gv,fla,gla,hla,Nv,ila,jla,Wv,kla,mla,Xv,nla,ola,ula,qla,$v,aw,bw,dw,ew,zla,fw,gw,hw,Bla,kw,Cla,Dla,lw,Fla,nw,ow,pw,qw,Gla,
rw,uw,vw,ww,xw,Hla,zw,Aw,Bw,Cw,Dw,Ew,Ila,Jla,Kla,Lla,Mla,Nla,Fw,Pla,Qla,Rla,Sla,Tla,Lw,Nw,Ow,Pw,Sw,Tw,Uw,Vla,Ww,Xla,Xw,Yla,Zla,Yw,$la,ama,$w,ima,jma,kma,lma,nma,oma,rma,ax,tma,sma,bx,vma,wma,xma,yma,zma,dx,ex,Ama,Bma,fx,Cma,Dma,gx,hx,ix,Ema,Fma,Gma,Hma,Ima,jx,Jma,Kma,Lma,Mma,kx,lx,Nma,Oma,Pma,Qma,Rma,Sma,mx,Tma,nx,Uma,Vma,Wma,Xma,Yma,Zma,$ma,ana,bna,cna,ox,dna,ena,px,qx,rx,sx,tx,fna,ux,vx,gna,wx,xx,hna,yx,zx,Ax,ina,jna,Bx,kna,lna,mna,nna,ona,Cx,pna,qna,rna,Dx,sna,tna,una,Ex,vna,Fx,wna,Gx,Hx,Ix,Jx,
Kx,Lx,xna,yna,Mx,zna,Nx,Ox,Px,Qx,Rx,Zx,$x,ay,Ana,Bna,Cna,Dna,Ena,by,Fna,Gna,Hna,Ina,cy,Jna,Kna,Lna,dy,ey,fy,gy,hy,iy,Mna,jy,ky,ly,my,Nna,ny,oy,py,Ona,Pna,qy,ry,sy,ty,uy,vy,wy,yy,Qna,Rna,zy,Sna,Tna,Una,Ay,Vna,Wna,Xna,By,Yna,Cy,Dy,Ey,Zna,Fy,$na,Gy,Hy,aoa,Iy,boa,Jy,coa,doa,eoa,Ky,foa,Ly,My,Ny,goa,Oy,hoa,Py,Qy,Ry,Sy,Vy,Wy,Xy,ioa,Yy,Zy,$y,joa,az,bz,cz,dz,koa,ez,fz,gz,hz,iz,loa,jz,moa,kz,noa,ooa,lz,mz,poa,nz,oz,pz,qoa,roa,soa,toa,qz,rz,uoa,sz,voa,woa,xoa,yoa,zoa,tz,Aoa,Boa,Coa,uz,vz,Doa,wz,Eoa,Foa,xz,Goa,
Hoa,Ioa,Joa,yz,zz,Az,Bz,Koa,Loa,Cz,Moa,Noa,Ooa,Poa,Dz,Qoa,Roa,Soa,Toa,Uoa,Voa,Woa,Xoa,Yoa,Ez,Zoa,Fz,Gz,$oa,apa,Hz,bpa,cpa,dpa,epa,fpa,gpa,hpa,ipa,Iz,jpa,kpa,lpa,Jz,mpa,npa,Kz,Lz,opa,ppa,Mz,Nz,qpa,Oz,rpa,Pz,spa,Qz,Rz,tpa,upa,Sz,vpa,wpa,Tz,xpa,ypa,zpa,Apa,Bpa,Cpa,Dpa,Epa,Fpa,Gpa,Uz,Hpa,Ipa,Vz,Jpa,Wz,Xz,Kpa,Lpa,Yz,Mpa,Npa,Zz,Opa,$z,Ppa,aA,bA,cA,dA,Qpa,eA,fA,gA,hA,Rpa,iA,jA,Spa,Tpa,kA,lA,mA,Upa,nA,Vpa,Wpa,Xpa,oA,Ypa,Zpa,$pa,pA,aqa,bqa,qA,rA,cqa,sA,dqa,eqa,tA,fqa,uA,gqa,hqa,iqa,wA,yA,jqa,CA,DA,EA,FA,nqa,
HA,IA,oqa,JA,KA,LA,pqa,kqa,MA,sqa,vqa,NA,xqa,wqa,yqa,Bqa,Aqa,Eqa,Fqa,Gqa,Hqa,Jqa,Oqa,Kqa,Mqa,Nqa,XA,WA,Pqa,ZA,$A,aB,Rqa,Sqa,Tqa,Uqa,Vqa,Wqa,gB,Xqa,iB,Yqa,Zqa,jB,ara,bra,cra,nB,dra,era,oB,pB,qB,rB,gra,sB,ira,hra,kra,uB,lra,pra,nra,ora,qra,rra,tra,ura,sra,xra,wB,yra,zB,zra,Ara,yB,AB,Kra,Lra,Pra,Ora,Qra,EB,JB,KB,LB,NB,Sra,Ura,Vra,Wra,TB,Xra,Yra,Zra,bsa,csa,dsa,asa,esa,gsa,isa,$B,jsa,cC,aC,fC,gC,lsa,osa,lC,mC,nC,oC,ssa,qC,usa,vsa,wsa,tC,ysa,zsa,xsa,Asa,Bsa,vC,Csa,Dsa,Esa,Gsa,yC,Jsa,Ksa,Hsa,Lsa,Msa,Osa,
Nsa,CC,Isa,Rsa,Ssa,HC,Qsa,Tsa,Usa,IC,JC,Vsa,Xsa,LC,Ysa,Zsa,ata,cta,OC,dta,eta,fta,gta,hta,ita,jta,kta,QC,lta,SC,nta,ota,pta,qta,rta,sta,XC,vta,yta,YC,zta,Bta,uta,Cta,Dta,Eta,wta,xta,TC,tta,WC,Ata,VC,UC,Fta,Gta,Hta,Ita,Jta,Kta,Qta,Lta,aD,bD,cD,Tta,Vta,Uta,Rta,Wta,Yta,fD,$ta,cua,iD,bua,mua,dua,lua,mD,nua,qua,nD,lD,oua,pua,rua,pD,tua,uua,vua,wua,xua,yua,zua,sua,Bua,Cua,Dua,Eua,Fua,Iua,rD,Kua,sD,tD,uD,Lua,Mua,wD,xD,Pua,Oua,Rua,Qua,Tua,Vua,Uua,Wua,$ua,Yua,ID,ava,cva,HD,bva,JD,KD,dva,eva,fva,MD,hva,PD,
OD,QD,RD,SD,jva,kva,UD,lva,VD,nva,ova,pva,rva,sva,qva,YD,uva,tva,vva,ZD,xva,$D,zva,aE,Bva,bE,Ava,cE,dE,Eva,Kva,Mva,Jva,Iva,Lva,gE,Nva,Vva,Rva,Sva,Tva,Dva,dwa,fwa,cwa,iwa,bwa,fE,hwa,Qva,Uva,ewa,Ova,Gva,Fva,Hva,iE,awa,pE,swa,rwa,wwa,zwa,ywa,Bwa,rE,sE,Dwa,Ewa,Fwa,Gwa,Hwa,Iwa,Jwa,uE,Lwa,Mwa,Nwa,Owa,Pwa,Qwa,Rwa,Twa,Uwa,yE,Wwa,Ywa,Xwa,Zwa,axa,bxa,fxa,dxa,hxa,gxa,jxa,ixa,zE,nsa,rxa,oxa,txa,GE,vxa,yxa,zxa,Axa,Gxa,Kxa,Lxa,Nxa,Mxa,Oxa,ME,Qxa,LE,Jxa,Ixa,IE,TE,SE,WE,XE,ZE,Sxa,$E,cF,dF,Txa,Uxa,Wxa,Xxa,Yxa,Zxa,
$xa,aya,bya,cya,dya,eya,fya,jF,gya,hya,kF,jya,kya,lya,mya,nya,qya,rya,mF,nF,sya,oF,tya,qF,vya,uya,sF,tF,uF,vF,wya,wF,xya,yya,zya,xF,Aya,Eya,Bya,Dya,Cya,yF,zF,Fya,Gya,Hya,Iya,AF,Kya,Nya,Mya,BF,Oya,CF,DF,EF,GF,HF,Pya,Qya,Rya,IF,Sya,Tya,Vya,Wya,Uya,Xya,JF,KF,NF,PF,Zya,Yya,RF,$ya,aza,SF,TF,UF,VF,YF,cza,ZF,dza,$F,aG,bG,eza,fza,eG,gza,fG,jza,lza,nza,pza,rza,tza,hG,uza,iG,vza,yza,zza,Aza,kG,lG,Cza,Dza,nG,oG,pG,Fza,qG,rG,sG,Gza,tG,Eza,Hza,uG,Jza,Iza,vG,Lza,wG,xG,zG,Mza,Nza,BG,CG,EG,UG,TG,Pza,DG,Sza,Tza,Wza,
Xza,Yza,$za,Vza,aAa,bAa,cAa,VG,Rza,Uza,WG,gAa,hAa,$G,iAa,XG,YG,jAa,aH,lAa,oAa,mAa,bH,pAa,cH,rAa,dH,xAa,vAa,sAa,uAa,tAa,fH,gH,hH,iH,jH,kH,mH,zAa,FAa,oH,qH,pH,GAa,KAa,HAa,JAa,IAa,LAa,PAa,RAa,QAa,SAa,TAa,UAa,WAa,VAa,XAa,rH,YAa,ZAa,$Aa,aBa,bBa,dBa,eBa,sH,cBa,tH,hBa,jBa,uH,vH,wH,kBa,lBa,xH,yH,mBa,nBa,oBa,pBa,qBa,rBa,zH,AH,BH,CH,DH,EH,FH,GH,HH,IH,JH,sBa,tBa,KH,uBa,vBa,wBa,xBa,LH,MH,NH,OH,yBa,PH,QH,RH,zBa,SH,TH,UH,VH,WH,XH,YH,ZH,$H,ABa,aI,bI,cI,BBa,dI,eI,fI,gI,CBa,hI,iI,DBa,jI,EBa,FBa,kI,GBa,lI,HBa,nI,oI,
IBa,pI,qI,rI,mI,sI,tI,uI,KBa,MBa,NBa,vI,OBa,wI,PBa,yI,QBa,RBa,zI,AI,SBa,VBa,WBa,XBa,YBa,ZBa,$Ba,TBa,JI,bCa,cCa,dCa,eCa,UBa,gCa,BI,hCa,iCa,KI,jCa,LI,DI,kCa,CI,fCa,MI,nCa,mCa,EI,FI,OI,NI,oCa,PI,pCa,QI,rCa,qCa,RI,SI,TI,UI,VI,tCa,uCa,wCa,xCa,XI,YI,ACa,ZI,ECa,GCa,ICa,JCa,aJ,LCa,MCa,OCa,PCa,QCa,RCa,SCa,TCa,fJ,gJ,UCa,WCa,VCa,XCa,YCa,ZCa,kJ,mJ,nJ,oJ,pJ,qJ,$Ca,rJ,sJ,lJ,bDa,uJ,vJ,wJ,cDa,aDa,eDa,fDa,gDa,hDa,iDa,jDa,kDa,lDa,mDa,nDa,oDa,pDa,qDa,rDa,sDa,tDa,uDa,vDa,wDa,xDa,yDa,zDa,ADa,BDa,CDa,DDa,xJ,yJ,EDa,zJ,
AJ,FDa,GDa,HDa,IDa,JDa,KDa,LDa,BJ,MDa,NDa,ODa,PDa,CJ,QDa,RDa,SDa,TDa,UDa,DJ,VDa,WDa,XDa,EJ,YDa,HJ,$Da,IJ,JJ,aEa,bEa,cEa,dEa,eEa,fEa,gEa,MJ,NJ,iEa,jEa,kEa,lEa,OJ,hEa,PJ,mEa,QJ,RJ,SJ,TJ,pEa,UJ,VJ,XJ,qEa,rEa,sEa,ZJ,aK,tEa,eK,fK,uEa,vEa,gK,wEa,hK,xEa,jK,kK,lK,yEa,zEa,AEa,mK,cK,nK,oK,pK,BEa,qK,rK,sK,CEa,tK,uK,vK,wK,xK,yK,zK,AK,BK,EEa,FEa,GEa,HEa,GK,CK,HK,IEa,JEa,KEa,LEa,IK,JK,MEa,NEa,OEa,EK,PEa,QEa,KK,REa,TEa,UEa,MK,NK,OK,PK,QK,XEa,RK,TK,UK,YEa,ZEa,SK,$Ea,aFa,VK,WK,XK,bFa,ZK,dFa,$K,eFa,aL,bL,gFa,hFa,fFa,
iFa,cL,dL,jFa,hL,lFa,mFa,nFa,jL,iL,oFa,pFa,qFa,rFa,tFa,YK,sFa,vFa,kL,uFa,wFa,lL,xFa,mL,yFa,zFa,AFa,BFa,CFa,nL,EFa,oL,DFa,GFa,HFa,qL,IFa,JFa,KFa,LFa,MFa,NFa,OFa,PFa,QFa,rL,SFa,TFa,UFa,WFa,VFa,XFa,YFa,$Fa,ZFa,aGa,bGa,cGa,dGa,eGa,fGa,gGa,hGa,iGa,jGa,kGa,lGa,mGa,nGa,oGa,pGa,qGa,vL,rGa,wL,xL,tGa,uGa,yL,vGa,zL,wGa,AL,xGa,BL,yGa,zGa,AGa,BGa,CL,CGa,DGa,EGa,DL,EL,FL,GL,HL,FGa,IL,JL,KL,GGa,LL,HGa,IGa,JGa,KGa,ML,LGa,NL,MGa,OL,PL,vCa,NGa,OGa,PGa,QGa,RGa,QL,RL,SL,TL,UL,VL,WL,XL,YL,ZL,$L,VGa,WGa,XGa,YGa,ZGa,dM,
iM,aHa,fHa,kHa,gHa,mHa,nHa,lHa,pHa,qHa,rHa,rM,uHa,wHa,zHa,AHa,BHa,tM,DHa,EHa,IHa,uM,JHa,FHa,KHa,vM,LHa,OHa,NHa,SHa,PHa,wM,xM,YHa,ZHa,cIa,bIa,aIa,gIa,fIa,iIa,jIa,mIa,kIa,lIa,$Ha,nIa,oIa,zM,eIa,pIa,AM,dIa,qIa,rIa,uIa,xIa,vIa,AIa,IIa,HIa,BIa,JIa,DIa,EIa,CIa,NIa,PIa,RIa,VIa,YIa,ZIa,aJa,cJa,eJa,dJa,mJa,gJa,fJa,nJa,qJa,rJa,sJa,tJa,GM,vHa,wJa,uJa,IM,yJa,AJa,CJa,EJa,FJa,DJa,LM,GJa,MM,NM,hJ,OM,tHa,QM,HJa,IJa,JJa,RM,KJa,LJa,MJa,SM,TM,NJa,UM,VM,WM,XM,YM,ZM,OJa,PJa,$M,QJa,aN,pL,bN,cN,RJa,dN,eN,SJa,xHa,BJa,TJa,
fN,iJ,WI,BM,VJa,WJa,gN,XHa,yM,XJa,HM,xJa,UIa,TIa,tIa,CM,WIa,$Ia,bJa,THa,oJa,YJa,KIa,FIa,hN,zJa,yHa,$Ja,ZJa,sIa,XIa,aKa,pJa,DM,UHa,WHa,MHa,SIa,QIa,zIa,wIa,HHa,GHa,CHa,MIa,GIa,hJa,QHa,RHa,kJa,lJa,iJa,jJa,OIa,dKa,bKa,iN,cKa,jN,eKa,kN,lN,rN,gKa,tN,iKa,jKa,kKa,lKa,mKa,nKa,oKa,pKa,vN,yN,qKa,rKa,tKa,sKa,uKa,vKa,wKa,xKa,yKa,zKa,AN,BN,CKa,CN,DN,DKa,EKa,FKa,GKa,EN,FN,GN,HKa,IKa,HN,JN,NN,JKa,ON,PN,QN,RN,SN,TN,UN,VN,WN,XN,YN,KKa,LKa,ZN,$N,aO,bO,cO,dO,MKa,NKa,eO,pO,QKa,RKa,qO,TKa,SKa,UKa,VKa,sO,tO,uO,Y,XKa,vO,
bLa,fLa,gLa,hLa,qLa,tLa,yLa,zLa,XLa,YLa,ZLa,ALa,BLa,HLa,dMa,LLa,MLa,iMa,gMa,kMa,lMa,hMa,mMa,oNa,tMa,pNa,uMa,vMa,EO,rNa,tNa,vNa,uNa,sNa,AMa,RMa,SMa,zNa,BNa,UMa,VMa,XMa,YMa,ZMa,INa,aNa,dNa,kNa,RNa,MNa,NNa,TNa,WNa,VNa,XNa,YNa,fOa,ZNa,HO,cOa,lOa,mOa,nOa,oOa,pOa,sOa,xOa,aPa,$Oa,LO,MO,NO,OO,PO,QO,hPa,SO,RO,jPa,fPa,gPa,kPa,iPa,TO,lPa,mPa,UO,nPa,msa,pPa,oPa,rPa,tPa,vPa,wPa,uPa,xPa,CPa,YO,DPa,EPa,FPa,GPa,HPa,ZO,IPa,JPa,KPa,LPa,MPa,SPa,VPa,WPa,TPa,$O,XPa,UPa,YPa,OPa,ZPa,$Pa,aQa,QPa,eQa,dQa,cQa,bQa,fQa,gQa,
PPa,hQa,iQa,RPa,jQa,nQa,kQa,lQa,mQa,rQa,pQa,qQa,sQa,tQa,vQa,uQa,yQa,wQa,zQa,xQa,AQa,BQa,CQa,DQa,EQa,FQa,GQa,HQa,IQa,JQa,LQa,MQa,NQa,KQa,OQa,PQa,SQa,bP,TQa,eP,gP,UQa,hP,iP,VQa,ZQa,aRa,$Qa,cRa,kRa,lRa,kP,bRa,YQa,XQa,WQa,pP,lP,oP,uP,vP,oRa,pRa,wP,tP,tRa,qRa,rRa,uRa,xP,yP,wRa,xRa,AP,BP,CP,DP,EP,yRa,zRa,ARa,FP,GP,IP,CRa,DRa,HP,ERa,HRa,IRa,JP,JRa,MP,KRa,NP,PP,MRa,OP,QP,NRa,PRa,QRa,RRa,SP,TP,YP,URa,VP,ZP,aQ,VRa,bQ,XP,$P,WRa,cQ,XRa,dQ,YRa,UP,WP,SRa,TRa,eQ,ZRa,$Ra,aSa,bSa,cSa,dSa,fQ,gQ,fSa,eSa,gSa,hSa,iSa,
jSa,hQ,iQ,jQ,kQ,kSa,lQ,mQ,lSa,nQ,mSa,oQ,pQ,qQ,nSa,oSa,pSa,qSa,rSa,rQ,sSa,tSa,uSa,vSa,wSa,xSa,sQ,ySa,tQ,ASa,BSa,uQ,CSa,vQ,wQ,DSa,ESa,xQ,FSa,GSa,KSa,LSa,HSa,ISa,JSa,NSa,yQ,zQ,AQ,OSa,PSa,BQ,CQ,QSa,DQ,RSa,TSa,SSa,EQ,USa,VSa,WSa,XSa,YSa,ZSa,aTa,bTa,FQ,cTa,eTa,gTa,fTa,IQ,mTa,iRa,mP,nTa,oTa,pTa,qTa,rTa,sTa,jP,HQ,tTa,JQ,yTa,zTa,ATa,BTa,KQ,FTa,CTa,DTa,HTa,ITa,JTa,KTa,GTa,LTa,LQ,MQ,NQ,MTa,NTa,OQ,OTa,PTa,QTa,PQ,wTa,TTa,UTa,STa,TQ,WTa,jRa,dRa,YTa,UQ,WQ,XQ,YQ,ZQ,$Q,VQ,ZTa,aUa,cR,dUa,bUa,fUa,gUa,eUa,cUa,hUa,iUa,
jUa,hR,kUa,lUa,nUa,oUa,nRa,iR,pUa,sUa,qP,tUa,uUa,vUa,nP,eRa,gRa,hRa,jR,lR,mR,nR,wUa,xUa,oR,yUa,pR,qR,zUa,rR,AUa,sR,BUa,CUa,tR,uR,vR,EUa,FUa,wR,GUa,DUa,xR,HUa,IUa,KUa,MUa,LUa,JUa,ZUa,WUa,bVa,OR,PR,NUa,XUa,HI,MR,SR,cVa,WR,eVa,DR,YR,CR,fVa,LR,aS,bS,hVa,iVa,jVa,kVa,lVa,mVa,nVa,cS,oVa,tVa,sVa,pVa,rVa,qVa,dS,uVa,eS,vVa,wVa,yVa,zVa,AVa,FVa,jS,kS,IVa,lS,mS,JVa,MVa,NVa,OVa,PVa,nS,RVa,VVa,WVa,cWa,fWa,$Va,aWa,hWa,wS,iWa,kWa,jWa,lWa,yS,BS,mWa,xS,nWa,CS,oWa,sWa,pWa,vWa,rWa,NWa,WWa,VS,XWa,ZWa,IWa,JS,YWa,OS,WS,
GWa,aXa,$Wa,XS,GS,JWa,cXa,dXa,eXa,gXa,bXa,ZS,fXa,jXa,kXa,iXa,aT,mXa,FS,LS,hXa,OWa,qWa,SWa,gT,MS,mT,TS,oT,pT,zXa,AXa,US,BXa,rT,CXa,DXa,NS,EXa,HWa,FXa,rXa,KS,zWa,GXa,xWa,wWa,tWa,uT,IXa,RXa,TXa,UXa,yT,AT,BT,zT,DT,VXa,WXa,ET,YXa,FT,$Xa,aYa,ZXa,bYa,gYa,eYa,iYa,kYa,lYa,nYa,mYa,LT,oYa,rYa,sYa,WT,XT,uYa,$T,vYa,cU,dU,eU,fU,wYa,gU,xYa,BYa,hU,iU,CYa,DYa,FYa,EYa,GYa,HYa,IYa,jU,kU,JYa,LYa,MYa,NYa,oU,QYa,PYa,pU,qU,rU,RYa,SYa,TYa,UYa,sU,VYa,tU,WYa,XYa,uU,ZYa,YYa,$Ya,aZa,vU,wU,bZa,dZa,eZa,fZa,gZa,xU,hZa,yU,iZa,lZa,
zU,jZa,oZa,mZa,nZa,kZa,AU,sZa,qZa,rZa,tZa,BU,uZa,vZa,wZa,yZa,xZa,CU,zZa,AZa,BZa,FU,DU,EU,CZa,GU,DZa,EZa,FZa,HZa,GZa,MU,JZa,KZa,IZa,LZa,NU,MZa,OU,NZa,OZa,RU,PZa,QZa,UU,SU,RZa,VU,SZa,XU,YU,TZa,WU,VZa,ZU,aV,WZa,bV,cV,dV,XZa,$Za,ZZa,fV,gV,hV,c_a,a_a,b_a,iV,d_a,h_a,f_a,e_a,g_a,jV,j_a,k_a,kV,lV,o_a,m_a,n_a,mV,q_a,l_a,r_a,nV,oV,s_a,t_a,u_a,pV,v_a,w_a,x_a,y_a,z_a,A_a,B_a,E_a,C_a,F_a,G_a,H_a,I_a,K_a,zV,AV,L_a,yV,O_a,P_a,CV,T_a,U_a,V_a,W_a,X_a,S_a,Q_a,DV,Z_a,Y_a,$_a,f0a,GV,i0a,l0a,k0a,j0a,d0a,e0a,a0a,b0a,g0a,
HV,IV,n0a,QT,hYa,KV,o0a,q0a,p0a,h0a,s0a,t0a,u0a,MV,v0a,TV,x0a,y0a,z0a,B0a,A0a,C0a,UV,VV,D0a,G0a,H0a,XV,F0a,I0a,J0a,E0a,YV,aW,K0a,L0a,$V,M0a,N0a,O0a,P0a,R0a,Q0a,U0a,V0a,S0a,X0a,Y0a,T0a,dW,eW,Z0a,a1a,fW,$0a,b1a,d1a,c1a,e1a,gW,f1a,g1a,h1a,hW,iW,j1a,i1a,k1a,l1a,n1a,m1a,o1a,p1a,q1a,r1a,s1a,u1a,kW,jW,lW,v1a,w1a,t1a,B1a,C1a,D1a,G1a,F1a,E1a,H1a,I1a,mW,nW,J1a,K1a,L1a,M1a,O1a,oW,qW,N1a,P1a,Q1a,R1a,S1a,T1a,sW,U1a,V1a,Y1a,tW,Z1a,X1a,uW,vW,$1a,a2a,c2a,e2a,b2a,d2a,xW,f2a,h2a,i2a,k2a,l2a,yW,zW,m2a,g2a,p2a,o2a,n2a,
AW,BW,r2a,q2a,CW,DW,s2a,t2a,EW,u2a,v2a,w2a,FW,x2a,GW,y2a,HW,z2a,C2a,D2a,E2a,G2a,X2a,Y2a,F2a,$2a,Z2a,a3a,d3a,KW,f3a,e3a,b3a,c3a,g3a,h3a,LW,MW,i3a,j3a,k3a,l3a,m3a,n3a,p3a,q3a,y3a,t3a,u3a,r3a,A3a,SW,B3a,F3a,VW,G3a,C3a,RW,YW,XW,TW,ZW,J3a,L3a,K3a,$W,UW,QW,I3a,WW,D3a,H3a,N3a,NW,aX,O3a,P3a,E3a,bX,cX,Q3a,dX,eX,fX,R3a,S3a,U3a,V3a,T3a,gX,X3a,W3a,hX,Y3a,iX,jX,Z3a,$3a,a4a,b4a,c4a,e4a,g4a,f4a,d4a,kX,i4a,h4a,lX,mX,j4a,l4a,m4a,nX,k4a,n4a,o4a,oX,p4a,pX,sX,rX,r4a,q4a,s4a,tX,uX,t4a,u4a,w4a,v4a,x4a,y4a,z4a,wX,A4a,B4a,
C4a,D4a,E4a,F4a,H4a,I4a,J4a,G4a,K4a,L4a,M4a,N4a,O4a,AX,P4a,BX,S4a,CX,U4a,DX,T4a,W4a,X4a,V4a,EX,Y4a,Z4a,$4a,a5a,GX,b5a,c5a,d5a,j5a,o5a,m5a,f5a,JX,l5a,e5a,n5a,q5a,r5a,p5a,LX,t5a,u5a,v5a,x5a,y5a,w5a,z5a,UZa,QX,RX,SX,A5a,UX,C5a,D5a,E5a,VX,F5a,G5a,H5a,I5a,J5a,K5a,B5a,L5a,WX,M5a,R5a,YX,S5a,$X,aY,T5a,bY,U5a,ZX,V5a,W5a,c6a,fY,hY,e6a,iY,f6a,X5a,jY,h6a,i6a,k6a,kY,lY,l6a,d6a,mY,n6a,m6a,nY,a6a,dY,o6a,p6a,q6a,r6a,s6a,Y5a,$5a,eY,v6a,w6a,y6a,x6a,pY,qY,rY,B6a,C6a,A6a,D6a,z6a,oY,t6a,E6a,F6a,G6a,M6a,N6a,H6a,O6a,uY,
u6a,Q6a,U6a,wY,V6a,W6a,S6a,yY,X6a,Y6a,P6a,Z6a,T6a,$6a,zY,xY,a7a,c7a,b7a,vY,e7a,CY,f7a,AY,DY,BY,EY,g7a,h7a,k7a,j7a,m7a,n7a,l7a,HY,GY,p7a,q7a,r7a,s7a,t7a,v7a,u7a,w7a,JY,KY,x7a,y7a,C7a,z7a,D7a,E7a,A7a,B7a,F7a,G7a,H7a,LY,I7a,K7a,N7a,L7a,M7a,RY,VY,P7a,WY,Q7a,R7a,S7a,XY,U7a,V7a,W7a,T7a,Z7a,$7a,YY,ZY,a8a,b8a,c8a,ZVa,eWa,d8a,f8a,e8a,g8a,aZ,bZ,h8a,i8a,dZ,eZ,cZ,j8a,m8a,o8a,p8a,q8a,r8a,t8a,x8a,D8a,H8a,iZ,I8a,NY,K8a,L8a,M8a,N8a,O8a,P8a,Q8a,kZ,R8a,lZ,S8a,mZ,U8a,V8a,nZ,W8a,X8a,Y8a,Z8a,$8a,a9a,b9a,c9a,d9a,e9a,f9a,
oZ,h9a,g9a,j9a,k9a,pZ,qZ,rZ,sZ,tZ,uZ,vZ,l9a,wZ,m9a,n9a,s9a,v9a,w9a,x9a,y9a,AZ,BZ,u9a,r9a,z9a,yZ,o9a,B9a,xZ,zZ,p9a,q9a,CZ,C9a,D9a,t9a,A9a,E9a,G9a,F9a,DZ,L9a,J9a,K9a,H9a,M9a,EZ,I9a,FZ,GZ,N9a,O9a,P9a,HZ,R9a,S9a,IZ,T9a,JZ,U9a,V9a,W9a,X9a,Z9a,$9a,g$a,c$a,Y9a,i$a,j$a,d$a,e$a,b$a,f$a,LZ,a$a,h$a,p$a,n$a,m$a,l$a,k$a,MZ,q$a,MY,NZ,OZ,PZ,r$a,s$a,t$a,QZ,u$a,TY,v$a,RZ,w$a,x$a,PY,QY,B$a,TZ,VZ,C$a,D$a,XZ,UZ,SZ,YZ,z$a,y$a,A$a,ZZ,F$a,G$a,E$a,H$a,OY,I$a,WZ,J$a,K$a,L$a,M$a,$Z,N$a,O$a,P$a,Q$a,X7a,Y7a,a_,R$a,S$a,T$a,U$a,
b_,Y$a,V$a,Z$a,aab,X$a,cab,eab,dab,gab,d_,g_,jab,iab,nab,lab,oab,pab,kab,mab,hab,qab,rab,sab,h_,tab,T8a,uab,vab,i_,wab,xab,yab,zab,Aab,k_,Hab,Gab,p_,Iab,Fab,Lab,Mab,Nab,Pab,Qab,Rab,Sab,Uab,Vab,Xab,Yab,Zab,Wab,s_,j_,$ab,abb,q_,cbb,Oab,r_,dbb,ebb,hbb,kbb,ibb,jbb,lbb,fbb,gbb,u_,nbb,pbb,obb,qbb,rbb,mbb,sbb,tbb,t_,ubb,vbb,wbb,xbb,Abb,zbb,ybb,v_,Bbb,Dbb,Ebb,Fbb,z_,A_,i9a,Gbb,Hbb,Kbb,Jbb,Ibb,Lbb,Nbb,Obb,Mbb,bab,B_,Qbb,Rbb,Sbb,Wbb,Vbb,Xbb,Zbb,o$a,w_,Ubb,Tbb,Ybb,SY,KZ,c_,bcb,acb,ccb,dcb,ecb,fcb,Cbb,f_,e_,
gcb,hcb,$$a,icb,$bb,fab,D_,E_,kcb,F_,lcb,mcb,ncb,ocb,pcb,qcb,scb,rcb,ucb,vcb,zcb,wcb,ycb,Acb,H_,Ecb,Ccb,Dcb,Hcb,Icb,Jcb,Kcb,Lcb,G_,Mcb,Gcb,Bcb,I_,Ncb,xcb,Ocb,J_,Qcb,Rcb,Scb,Pcb,K_,Vcb,Ucb,Ycb,Xcb,Wcb,Zcb,$cb,L_,adb,bdb,fdb,cdb,ddb,edb,gdb,hdb,idb,kdb,jdb,ldb,mdb,ndb,pdb,rdb,qdb,sdb,odb,tdb,vdb,xdb,udb,ydb,zdb,Bdb,Adb,Cdb,wdb,P_,Ddb,Edb,Fdb,Hdb,Jdb,Kdb,Mdb,Odb,T_,Qdb,Rdb,Sdb,Tdb,Vdb,Udb,Ydb,I6a,U_,sY,Wdb,Xdb,Zdb,X_,aeb,$db,beb,ceb,deb,geb,eeb,jeb,Y_,feb,keb,Z_,oeb,a0,b0,peb,$_,qeb,c0,teb,seb,meb,neb,
ueb,veb,web,leb,xeb,d0,yeb,reb,Pdb,W_,Aeb,tY,Beb,K6a,J6a,Ceb,Deb,Eeb,Feb,Geb,Heb,f0,L6a,Ieb,Keb,Leb,Meb,Jeb,Neb,Oeb,g0,Peb,Qeb,Reb,Seb,h0,VEa,Teb,Ueb,Veb,j0,Yeb,Zeb,k0,afb,bfb,$eb,Xeb,l0,i0,Web,o0,n0,cfb,p0,m0,gfb,ifb,kfb,lfb,nfb,efb,jfb,ofb,ffb,pfb,qfb,sfb,q0,tfb,rfb,r0,vfb,wfb,hfb,ufb,xfb,mfb,dfb,t0,Dfb,Afb,Efb,Bfb,zfb,Ffb,yfb,Ifb,u0,Jfb,Lfb,FK,Nfb,Pfb,Qfb,Rfb,y0,Sfb,Z5a,Vfb,z0,N_,Wfb,Yfb,Tfb,NX,s0,$fb,agb,E0,bbb,Ofb,D0,v0,dgb,egb,ggb,fgb,Xfb,B0,hgb,PX,igb,k5a,kgb,jgb,Pbb,M_,G0,s5a,lgb,g6a,mgb,
YZa,A0,ngb,h5a,ogb,i5a,pgb,rgb,cgb,Mfb,tgb,sgb,C0,w0,ugb,H0,KX,wgb,xgb,gY,ygb,zgb,Agb,g5a,F0,y_,Ufb,Bgb,jcb,Zfb,Ngb,Igb,Pgb,Ggb,Qgb,Fgb,J0,OX,Vgb,Rgb,Tgb,Sgb,Xgb,M0,N0,$gb,Zgb,Ygb,P0,Mgb,U0,bhb,T0,O0,dhb,ghb,hhb,Jgb,ehb,X0,ihb,Lgb,R0,ahb,Q0,lhb,L0,mhb,nhb,ohb,$0,a1,chb,b1,c1,phb,S0,Wgb,khb,jhb,qhb,rhb,shb,fhb,thb,V0,uhb,W0,vhb,xhb,K0,d1,Ugb,yhb,zhb,Kgb,Z0,Y0,Ahb,i7a,Bhb,Chb,Dhb,e1,f1,Ghb,Jhb,Lhb,Fhb,Thb,Uhb,Vhb,Whb,Xhb,Yhb,Zhb,aib,$hb,g1,h1,i1,bib,cib,j1,FFa,dib,eib,k1,fib,l1,m1,eL,gib,PM,o1,n1,EM,
hib,JM,vJa,iib,VHa,jib,fL,gL,p1,UJa,kib,lib,mib,q1,oib,pib,r1,t1,u1,sib,tib,v1,uib,qib,rib,vib,wib,xib,yib,w1,Aib,dDa,sL,Bib,Cib,tL,zib,tJ,Dib,Eib,Fib,x1,Hib,KJ,Iib,y1,z1,Jib,A1,Kib,s1,Lib,Mib,kFa,B1,C1,Nib,D1,E1,Oib,F1,Pib,G1,H1,Qib,Rib,RFa,I1,Sib,Uib,Tib,J1,Vib,K1,L1,Wib,Xib,Yib,Zib,$ib,ajb,cjb,N1,bjb,djb,ejb,fjb,gjb,kjb,hjb,ijb,jjb,mjb,ojb,pjb,qjb,njb,O1,rjb,sjb,tjb,ujb,vjb,Q1,wjb,R1,S1,T1,xjb,yjb,Ajb,Bjb,Cjb,Djb,Fjb,Ejb,Gjb,U1,V1,Jjb,Hjb,Ijb,W1,Ljb,Mjb,X1,Y1,Z1,$1,a2,b2,Ojb,c2,Pjb,Qjb,Rjb,d2,
e2,f2,Sjb,Tjb,Ujb,Xjb,Wjb,g2,Yjb,Zjb,$jb,sHa,Vjb,bkb,ckb,ekb,aaa,ka;ea=function(a){return function(){return aaa[a].apply(this,arguments)}};
g.fa=function(a,b){return aaa[a]=b};
baa=function(a){var b=0;return function(){return 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");};
oa=function(a,b){if(b)a:{var c=g.ha;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&&ka(c,a,{configurable:!0,writable:!0,value:b})}};
daa=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
pa=function(a){return a.raw=a};
g.u=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");};
eaa=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.qa=function(a){return a instanceof Array?a:eaa(g.u(a))};
ra=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.y=function(a,b){a.prototype=faa(b.prototype);a.prototype.constructor=a;if(ua)ua(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.Of=b.prototype};
va=function(){this.N=!1;this.D=null;this.B=void 0;this.j=1;this.G=this.K=0;this.Y=this.C=null};
wa=function(a){if(a.N)throw new TypeError("Generator is already running");a.N=!0};
ya=function(a,b){a.C={KX:b,pZ:!0};a.j=a.K||a.G};
g.z=function(a,b,c){a.j=c;return{value:b}};
g.Aa=function(a){a.j=0};
g.Ba=function(a,b,c){a.K=b;void 0!=c&&(a.G=c)};
g.Ca=function(a,b,c){a.j=b;a.K=c||0};
g.Da=function(a,b){a.K=b||0;b=a.C.KX;a.C=null;return b};
g.Ea=function(a){a.Y=[a.C];a.K=0;a.G=0};
g.Fa=function(a,b){var c=a.Y.splice(0)[0];(c=a.C=a.C||c)?c.pZ?a.j=a.K||a.G:void 0!=c.Ia&&a.G<c.Ia?(a.j=c.Ia,a.C=null):a.j=a.G:a.j=b};
gaa=function(a){this.j=new va;this.B=a};
haa=function(a,b){wa(a.j);var c=a.j.D;if(c)return Ga(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.j.return);
a.j.return(b);return Ha(a)};
Ga=function(a,b,c,d){try{var e=b.call(a.j.D,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.j.N=!1,e;var f=e.value}catch(h){return a.j.D=null,ya(a.j,h),Ha(a)}a.j.D=null;d.call(a.j,f);return Ha(a)};
Ha=function(a){for(;a.j.j;)try{var b=a.B(a.j);if(b)return a.j.N=!1,{value:b.value,done:!1}}catch(c){a.j.B=void 0,ya(a.j,c)}a.j.N=!1;if(a.j.C){b=a.j.C;a.j.C=null;if(b.pZ)throw b.KX;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
iaa=function(a){this.next=function(b){wa(a.j);a.j.D?b=Ga(a,a.j.D.next,b,a.j.Z):(a.j.Z(b),b=Ha(a));return b};
this.throw=function(b){wa(a.j);a.j.D?b=Ga(a,a.j.D["throw"],b,a.j.Z):(ya(a.j,b),b=Ha(a));return b};
this.return=function(b){return haa(a,b)};
this[Symbol.iterator]=function(){return this}};
jaa=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.G=function(a){return jaa(new iaa(new gaa(a)))};
g.Ia=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
Ja=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};
kaa=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,CM:f}}return{i:-1,CM:void 0}};
La=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+""};
Na=function(a){return a?a:Array.prototype.fill};
Oa=function(a){return a?a:Array.prototype.copyWithin};
laa=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length-1;0<=d;d--){var e=a[d];if(b.call(c,e,d,a))return{i:d,CM:e}}return{i:-1,CM:void 0}};
Ra=function(a){return a?a:function(b,c){return laa(this,b,c).i}};
g.Ua=function(a,b,c){a=a.split(".");c=c||g.Ta;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};
Ya=function(a,b){var c=g.Xa("CLOSURE_FLAGS");a=c&&c[a];return null!=a?a:b};
g.Xa=function(a,b){a=a.split(".");b=b||g.Ta;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};
bb=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.cb=function(a){var b=bb(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.db=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.fb=function(a){return Object.prototype.hasOwnProperty.call(a,eb)&&a[eb]||(a[eb]=++maa)};
naa=function(a,b,c){return a.call.apply(a.bind,arguments)};
oaa=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.gb=function(a,b,c){g.gb=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?naa:oaa;return g.gb.apply(null,arguments)};
g.ib=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.lb=function(){return Date.now()};
g.nb=function(a,b){function c(){}
c.prototype=b.prototype;a.Of=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return b.prototype[e].apply(d,h)}};
qb=function(a){return a};
paa=function(a){this.j=a};
sb=function(a,b,c){this.D=a;this.C=b;this.fields=c||[];this.j=new Map};
tb=function(a,b){sb.call(this,a,3,b)};
ub=function(a,b){sb.call(this,a,2,b)};
g.vb=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.wb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.cb(d)?g.wb.apply(null,d):g.vb(d)}};
g.I=function(){this.Zy=this.Zy;this.Kn=this.Kn};
g.N=function(a,b){a.addOnDisposeCallback(g.ib(g.vb,b))};
xb=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,xb);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b)};
yb=function(a,b){var c=xb.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(xb,this,d+a[e])};
qaa=function(){};
g.Ab=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.B=!1};
g.Bb=function(a){return a[a.length-1]};
raa=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.Db=function(a,b,c){b=Cb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
Cb=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
g.Eb=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.Fb=function(a,b){return 0<=saa(a,b)};
taa=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.Hb=function(a,b){b=saa(a,b);var c;(c=0<=b)&&g.Gb(a,b);return c};
g.Gb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.Jb=function(a,b){b=Cb(a,b);0<=b&&g.Gb(a,b)};
uaa=function(a,b){var c=0;raa(a,function(d,e){b.call(void 0,d,e,a)&&g.Gb(a,e)&&c++})};
g.Kb=function(a){return Array.prototype.concat.apply([],arguments)};
g.Lb=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.Mb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.cb(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.Ob=function(a,b,c,d){Array.prototype.splice.apply(a,Nb(arguments,1))};
Nb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
vaa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.db(e)?"o"+g.fb(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.Sb=function(a,b,c){return waa(a,c||Qb,!1,b)};
Tb=function(a,b){return waa(a,b,!0)};
waa=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.Ub=function(a,b){a.sort(b||Qb)};
xaa=function(a,b){var c=Qb;g.Ub(a,function(d,e){return c(b(d),b(e))})};
g.Xb=function(a,b){if(!g.cb(a)||!g.cb(b)||a.length!=b.length)return!1;for(var c=a.length,d=yaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
Qb=function(a,b){return a>b?1:a<b?-1:0};
yaa=function(a,b){return a===b};
g.Zb=function(a,b,c){c=g.Sb(a,b,c);0>c&&g.Ob(a,-(c+1),0,b)};
g.cc=function(a,b,c){var d={};(0,g.bc)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
zaa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
Aaa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
Baa=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};
Daa=function(a){var b=g.Xa("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.Ta.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Caa(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,dc[c])c=dc[c];else{c=String(c);if(!dc[c]){var f=/function\s+([^\(]+)/m.exec(c);dc[c]=f?f[1]:"[Anonymous]"}c=dc[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"}}return{message:a.message,
name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:b}};
Caa=function(a,b){b||(b={});b[Eaa(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[Eaa(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=Caa(a,b));return c};
Eaa=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
ec=function(a,b){return 0==a.lastIndexOf(b,0)};
Faa=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.fc=function(a){return/^[\s\xa0]*$/.test(a)};
gc=function(a){if(!Gaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Haa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Iaa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Jaa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Kaa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Laa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Maa,"&#0;"));return a};
g.jc=function(a,b){return-1!=a.indexOf(b)};
kc=function(a,b){return g.jc(a.toLowerCase(),b.toLowerCase())};
g.nc=function(a,b){var c=0;a=lc(String(a)).split(".");b=lc(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=mc(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||mc(0==f[2].length,0==h[2].length)||mc(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c};
mc=function(a,b){return a<b?-1:a>b?1:0};
g.pc=function(){var a=g.Ta.navigator;return a&&(a=a.userAgent)?a:""};
wc=function(a){return qc||rc?sc?sc.brands.some(function(b){return(b=b.brand)&&g.jc(b,a)}):!1:!1};
xc=function(a){return g.jc(g.pc(),a)};
yc=function(){return qc||rc?!!sc&&0<sc.brands.length:!1};
zc=function(){return yc()?!1:xc("Opera")};
Naa=function(){return yc()?!1:xc("Trident")||xc("MSIE")};
Oaa=function(){return yc()?wc("Microsoft Edge"):xc("Edg/")};
Ac=function(){return xc("Firefox")||xc("FxiOS")};
Cc=function(){return xc("Safari")&&!(Bc()||(yc()?0:xc("Coast"))||zc()||(yc()?0:xc("Edge"))||Oaa()||(yc()?wc("Opera"):xc("OPR"))||Ac()||xc("Silk")||xc("Android"))};
Bc=function(){return yc()?wc("Chromium"):(xc("Chrome")||xc("CriOS"))&&!(yc()?0:xc("Edge"))||xc("Silk")};
Paa=function(){return xc("Android")&&!(Bc()||Ac()||zc()||xc("Silk"))};
Qaa=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})]||""}};
Raa=function(a){var b=g.pc();if("Internet Explorer"===a){if(Naa())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=Qaa(c);switch(a){case "Opera":if(zc())return b(["Version","Opera"]);if(yc()?wc("Opera"):xc("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(yc()?0:xc("Edge"))return b(["Edge"]);if(Oaa())return b(["Edg"]);break;case "Chromium":if(Bc())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&Ac()||"Safari"===a&&Cc()||"Android Browser"===a&&Paa()||"Silk"===a&&xc("Silk")?(b=c[2])&&b[1]||"":""};
Saa=function(a){if(yc()&&"Silk"!==a){var b=sc.brands.find(function(c){return c.brand===a});
if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=Raa(a);if(""===b)return NaN;b=b.split(".")}return 0===b.length?NaN:Number(b[0])};
Dc=function(){return qc||rc?!!sc&&!!sc.platform:!1};
Taa=function(){return Dc()?"Android"===sc.platform:xc("Android")};
Hc=function(){return xc("iPhone")&&!xc("iPod")&&!xc("iPad")};
Ic=function(){return Hc()||xc("iPad")||xc("iPod")};
Kc=function(){return Dc()?"macOS"===sc.platform:xc("Macintosh")};
Uaa=function(){return Dc()?"Windows"===sc.platform:xc("Windows")};
Mc=function(a){Mc[" "](a);return a};
Nc=function(a,b){try{return Mc(a[b]),!0}catch(c){}return!1};
Waa=function(a,b){var c=Vaa;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
g.Oc=function(a){return Waa(a,function(){return 0<=g.nc(Xaa,a)})};
Yaa=function(a){return g.Pc?"webkit"+a:a.toLowerCase()};
Qc=function(a,b){g.Ab.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.j=null;a&&this.init(a,b)};
Sc=function(a){return!(!a||!a[Zaa])};
aba=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Ed=e;this.key=++$aa;this.removed=this.yI=!1};
Tc=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Ed=null};
g.Uc=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Vc=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Wc=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};
bba=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};
cba=function(a){for(var b in a)return a[b]};
g.ad=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.cd=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.dd=function(a,b){return null!==a&&b in a};
g.ed=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
fd=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};
dba=function(a,b){return(b=fd(a,b))&&a[b]};
g.gd=function(a){for(var b in a)return!1;return!0};
g.eba=function(a){for(var 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<fba.length;f++)c=fba[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
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.Hb(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.Ed==d)return e}return-1};
g.ud=function(a,b,c,d,e){if(d&&d.once)return td(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)g.ud(a,b[f],c,d,e);return null}c=vd(c);return Sc(a)?a.listen(b,c,g.db(d)?!!d.capture:!!d,e):gba(a,b,c,!1,d,e)};
gba=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.db(e)?!!e.capture:!!e,l=wd(a);l||(a[xd]=l=new md(a));c=l.add(b,c,d,h,f);if(c.proxy)return c;d=hba();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)iba||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(jba(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");kba++;return c};
hba=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=lba;return a};
td=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)td(a,b[f],c,d,e);return null}c=vd(c);return Sc(a)?a.FF(b,c,g.db(d)?!!d.capture:!!d,e):gba(a,b,c,!0,d,e)};
mba=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)mba(a,b[f],c,d,e);else d=g.db(d)?!!d.capture:!!d,c=vd(c),Sc(a)?a.Pc(b,c,d,e):a&&(a=wd(a))&&(b=a.NE(b,c,d,e))&&Ad(b)};
Ad=function(a){if("number"!==typeof a&&a&&!a.removed){var b=a.src;if(Sc(b))g.nd(b.nm,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(jba(c),d):b.addListener&&b.removeListener&&b.removeListener(d);kba--;(c=wd(b))?(g.nd(c,a),0==c.j&&(c.src=null,b[xd]=null)):Tc(a)}}};
jba=function(a){return a in Bd?Bd[a]:Bd[a]="on"+a};
lba=function(a,b){if(a.removed)a=!0;else{b=new Qc(b,this);var c=a.listener,d=a.Ed||a.src;a.yI&&Ad(a);a=c.call(d,b)}return a};
wd=function(a){a=a[xd];return a instanceof md?a:null};
vd=function(a){if("function"===typeof a)return a;a[Cd]||(a[Cd]=function(b){return a.handleEvent(b)});
return a[Cd]};
g.Ed=function(){g.I.call(this);this.nm=new md(this);this.Q6=this;this.cS=null};
Fd=function(a,b,c,d){b=a.nm.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.Ed||h.src;h.yI&&g.nd(a.nm,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
Gd=function(a,b){this.C=a;this.D=b;this.B=0;this.j=null};
nba=function(a,b){a.D(b);100>a.B&&(a.B++,b.next=a.j,a.j=b)};
Id=function(a){return function(){return a}};
g.Jd=function(){};
oba=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
Kd=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
Pd=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
pba=function(a,b){var c=0;return function(d){g.Ta.clearTimeout(c);var e=arguments;c=g.Ta.setTimeout(function(){a.apply(b,e)},50)}};
Rd=function(a,b){this.j=a===qba&&b||"";this.B=rba};
Sd=function(a){return a instanceof Rd&&a.constructor===Rd&&a.B===rba?a.j:"type_error:Const"};
Td=function(a){return new Rd(qba,a)};
Xd=function(){if(void 0===Wd){var a=null,b=g.Ta.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:qb,createScript:qb,createScriptURL:qb})}catch(c){g.Ta.console&&g.Ta.console.error(c.message)}Wd=a}else Wd=a}return Wd};
g.Yd=function(a){this.H0=a};
g.Zd=function(a){return a instanceof g.Yd&&a.constructor===g.Yd?a.H0:"type_error:TrustedResourceUrl"};
be=function(a){var b=Xd();a=b?b.createScriptURL(a):a;return new g.Yd(a,sba)};
g.ce=function(a){this.J0=a};
g.de=function(a){if(a instanceof g.ce)return a.J0;throw Error("");};
ee=function(a){this.ue=a};
he=function(a){return new ee(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
g.je=function(a,b){b=void 0===b?tba:b;a:if(b=void 0===b?tba:b,!(a instanceof g.ce)){for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof ee&&d.ue(a)){a=new g.ce(a);break a}}a=void 0}return a||g.ie};
ne=function(a){a instanceof g.ce?a=g.de(a):a=uba.test(a)?a:void 0;return a};
g.oe=function(a){this.G0=a};
pe=function(a){return a instanceof g.oe&&a.constructor===g.oe?a.G0:"type_error:SafeStyle"};
Bba=function(a){if(a instanceof g.ce)return'url("'+a.toString().replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof Rd)a=Sd(a);else{a=String(a);var b=a.replace(vba,"$1").replace(vba,"$1").replace(wba,"url");if(xba.test(b)){if(b=!yba.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&&zba(a)}a=b?Aba(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new yb("Value does not allow [{;}], got: %s.",[a]);return a};
zba=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};
Aba=function(a){return a.replace(wba,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=g.je(d).toString();return c+f+b+f+e})};
g.qe=function(a){this.F0=a};
g.re=function(a){return a instanceof g.qe&&a.constructor===g.qe?a.F0:"type_error:SafeHtml"};
Dba=function(a){function b(e){Array.isArray(e)?e.forEach(b):(e=e instanceof g.qe?e:se(gc(String(e))),d.push(g.re(e).toString()))}
var c=Cba;c=c instanceof g.qe?c:se(gc(String(c)));var d=[];a.forEach(b);return se(d.join(g.re(c).toString()))};
Eba=function(a){return Dba(Array.prototype.slice.call(arguments))};
se=function(a){var b=Xd();a=b?b.createHTML(a):a;return new g.qe(a,Fba)};
ve=function(){this.j=Gba[0].toLowerCase()};
we=function(a){this.I0=a};
Hba=function(a){var b=Xd();return new we(b?b.createScript(a):a)};
xe=function(a){if(a instanceof we)return a.I0;throw Error("");};
Iba=function(a){return pe(a)};
Jba=function(a){var b=g.Ia.apply(1,arguments);if(0===b.length)return be(a[0]);for(var c=a[0],d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return be(c)};
Kba=function(a){for(var b=g.Ia.apply(1,arguments),c=a[0],d=0;d<a.length-1;d++)c+=String(b[d])+a[d+1];if(/[<>]/.test(c))throw Error("Forbidden characters in style string: "+c);return new g.oe(c,ye)};
Mba=function(a,b,c,d){a=Lba(a);b=b||g.Ta;c=c instanceof Rd?Sd(c):c||"";return void 0!==d?b.open(a,c,d):b.open(a,c)};
Lba=function(a){a=ne(a);return void 0!==a?a:g.ie.toString()};
g.ze=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.Ae=function(a,b){a%=b;return 0>a*b?a+b:a};
Be=function(a,b,c){return a+c*(b-a)};
g.Ee=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
Je=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.Ke=function(a,b){this.width=a;this.height=b};
g.Le=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
g.Me=function(a,b){b=ne(b);void 0!==b&&(a.href=b)};
Nba=function(a){var b="true".toString(),c=[new ve];if(0===c.length)throw Error("");if(c.map(function(d){if(d instanceof ve)d=d.j;else throw Error("");return d}).every(function(d){return 0!=="data-loaded".indexOf(d)}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.');
a.setAttribute("data-loaded",b)};
Ne=function(a,b){throw Error(void 0===b?"unexpected value "+a+"!":b);};
g.Qe=function(a,b,c){var d=window;a=ne(a);return void 0!==a?d.open(a,b,c):null};
Re=function(a){var b,c;return(a=null==(c=(b=a.document).querySelector)?void 0:c.call(b,"script[nonce]"))?a.nonce||a.getAttribute("nonce")||"":""};
Ve=function(a){var b=Re(a.ownerDocument&&a.ownerDocument.defaultView||window);b&&a.setAttribute("nonce",b)};
g.We=function(a,b){a.src=g.Zd(b);Ve(a)};
Oba=function(a,b){return a.parseFromString(g.re(b),"text/xml")};
g.Xe=function(a){return encodeURIComponent(String(a))};
Ye=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
Ze=function(a){return a=gc(a)};
g.bf=function(a){return null==a?"":String(a)};
cf=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
df=function(a){var b=Number(a);return 0==b&&g.fc(a)?NaN:b};
Pba=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
Qba=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
Rba=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
Sba=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};
lf=function(a){return a?new ef(kf(a)):Tba||(Tba=new ef)};
mf=function(a,b){return"string"===typeof b?a.getElementById(b):b};
g.nf=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.sf=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.of(document,"*",a,b)};
g.tf=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.of(c,"*",a,b)[0]||null}return a||null};
g.of=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.Fb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
uf=function(a,b){g.Uc(b,function(c,d){"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:Uba.hasOwnProperty(d)?a.setAttribute(Uba[d],c):ec(d,"aria-")||ec(d,"data-")?a.setAttribute(d,c):a[d]=c})};
Vba=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.Ke(a.clientWidth,a.clientHeight)};
Xba=function(a){var b=Wba(a);a=a.parentWindow||a.defaultView;return new g.Ee(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
Wba=function(a){return a.scrollingElement?a.scrollingElement:g.Pc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
vf=function(a){return a?a.parentWindow||a.defaultView:window};
xf=function(a,b,c){var d=arguments,e=document,f=d[1],h=wf(e,String(d[0]));f&&("string"===typeof f?h.className=f:Array.isArray(f)?h.className=f.join(" "):uf(h,f));2<d.length&&Yba(e,h,d,2);return h};
Yba=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.cb(f)||g.db(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.db(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.bc(h?g.Lb(f):f,e)}}};
g.yf=function(a){return wf(document,a)};
wf=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.zf=function(a){return document.createTextNode(String(a))};
g.Af=function(a,b){a.appendChild(b)};
g.Cf=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
Df=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.Ef=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
g.If=function(a){var b;if(g.Pc&&(b=a.parentElement))return b;b=a.parentNode;return g.db(b)&&1==b.nodeType?b:null};
g.Jf=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};
kf=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.Kf=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.Cf(a),a.appendChild(kf(a).createTextNode(String(b)))};
$ba=function(a){return"A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!a.hasAttribute("tabindex")||Zba(a)):a.hasAttribute("tabindex")&&Zba(a)};
Zba=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
Mf=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return Lf(a,function(e){return(!d||e.nodeName==d)&&(!c||"string"===typeof e.className&&g.Fb(e.className.split(/\s+/),c))},!0)};
Lf=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};
ef=function(a){this.j=a||g.Ta.document||document};
Of=function(a){"function"!==typeof g.Ta.setImmediate||g.Ta.Window&&g.Ta.Window.prototype&&g.Ta.Window.prototype.setImmediate==g.Ta.setImmediate?(Nf||(Nf=aca()),Nf(a)):g.Ta.setImmediate(a)};
aca=function(){var a=g.Ta.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!xc("Presto")&&(a=function(){var e=g.yf("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.gb)(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){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.XW;c.XW=null;e()}};
return function(e){d.next={XW:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.Ta.setTimeout(e,0)}};
Pf=function(a){g.Ta.setTimeout(function(){throw a;},0)};
Rf=function(){this.B=this.j=null};
Sf=function(){this.next=this.scope=this.qm=null};
g.dg=function(a,b){bg||bca();cg||(bg(),cg=!0);cca.add(a,b)};
bca=function(){if(g.Ta.Promise&&g.Ta.Promise.resolve){var a=g.Ta.Promise.resolve(void 0);bg=function(){a.then(dca)}}else bg=function(){Of(dca)}};
dca=function(){for(var a;a=cca.remove();){try{a.qm.call(a.scope)}catch(b){Pf(b)}nba(eca,a)}cg=!1};
g.fg=function(a){this.j=0;this.N=void 0;this.D=this.B=this.C=null;this.G=this.K=!1;if(a!=g.Jd)try{var b=this;a.call(void 0,function(c){eg(b,2,c)},function(c){eg(b,3,c)})}catch(c){eg(this,3,c)}};
fca=function(){this.next=this.context=this.B=this.C=this.j=null;this.D=!1};
gg=function(a,b,c){var d=gca.get();d.C=a;d.B=b;d.context=c;return d};
hg=function(a){if(a instanceof g.fg)return a;var b=new g.fg(g.Jd);eg(b,2,a);return b};
ig=function(a){return new g.fg(function(b,c){c(a)})};
g.ica=function(a,b,c){hca(a,b,c,null)||g.dg(g.ib(b,a))};
jca=function(a){return new g.fg(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.ica(e,b,c)})};
lca=function(){var a,b,c=new g.fg(function(d,e){a=d;b=e});
return new kca(c,a,b)};
lg=function(a,b){b=gg(b,b);b.D=!0;kg(a,b);return a};
mca=function(a,b){if(0==a.j)if(a.C){var c=a.C;if(c.B){for(var d=0,e=null,f=null,h=c.B;h&&(h.D||(d++,h.j==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.j&&1==d?mca(c,b):(f?(d=f,d.next==c.D&&(c.D=d),d.next=d.next.next):nca(c),oca(c,e,3,b)))}a.C=null}else eg(a,3,b)};
kg=function(a,b){a.B||2!=a.j&&3!=a.j||pca(a);a.D?a.D.next=b:a.B=b;a.D=b};
qca=function(a,b,c,d){var e=gg(null,null,null);e.j=new g.fg(function(f,h){e.C=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f;
e.B=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof mg?h(l):f(m)}catch(n){h(n)}}:h});
e.j.C=a;kg(a,e);return e.j};
eg=function(a,b,c){0==a.j&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,hca(c,a.Oea,a.Pea,a)||(a.N=c,a.j=b,a.C=null,pca(a),3!=b||c instanceof mg||rca(a,c)))};
hca=function(a,b,c,d){if(a instanceof g.fg)return kg(a,gg(b||g.Jd,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.db(a))try{var f=a.then;if("function"===typeof f)return sca(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1};
sca=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)}};
pca=function(a){a.K||(a.K=!0,g.dg(a.l8,a))};
nca=function(a){var b=null;a.B&&(b=a.B,a.B=b.next,b.next=null);a.B||(a.D=null);return b};
oca=function(a,b,c,d){if(3==c&&b.B&&!b.D)for(;a&&a.G;a=a.C)a.G=!1;if(b.j)b.j.C=null,tca(b,c,d);else try{b.D?b.C.call(b.context):tca(b,c,d)}catch(e){uca.call(null,e)}nba(gca,b)};
tca=function(a,b,c){2==b?a.C.call(a.context,c):a.B&&a.B.call(a.context,c)};
rca=function(a,b){a.G=!0;g.dg(function(){a.G&&uca.call(null,b)})};
mg=function(a){xb.call(this,a)};
kca=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};
g.ng=function(a,b){g.Ed.call(this);this.Wi=a||1;this.uH=b||g.Ta;this.SW=(0,g.gb)(this.zea,this);this.EZ=g.lb()};
g.og=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.gb)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.gb)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.Ta.setTimeout(a,b||0)};
Bg=function(a,b){var c=null;return(new g.fg(function(d,e){c=g.og(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))})).Dl(function(d){g.Ta.clearTimeout(c);
throw d;})};
g.Cg=function(a){g.I.call(this);this.N=a;this.D=0;this.C=100;this.G=!1;this.B=new Map;this.K=new Set;this.flushInterval=3E4;this.j=new g.ng(this.flushInterval);this.j.listen("tick",this.Xm,!1,this);g.N(this,this.j)};
vca=function(a){a.j.enabled||a.j.start();a.D++;a.D>=a.C&&a.Xm()};
wca=function(a,b){return a.K.has(b)?void 0:a.B.get(b)};
xca=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
yca=function(a){this.j=a;this.j.Sj("/client_streamz/bg/fic",{oe:3,me:"ke"})};
zca=function(a){this.j=a;this.j.Sj("/client_streamz/bg/fiec",{oe:3,me:"rk"},{oe:3,me:"ke"},{oe:2,me:"ec"})};
Aca=function(a){this.j=a;this.j.ND("/client_streamz/bg/fil",{oe:3,me:"rk"},{oe:3,me:"ke"})};
Bca=function(a){this.j=a;this.j.Sj("/client_streamz/bg/fcc",{oe:2,me:"ph"},{oe:3,me:"ke"})};
Cca=function(a){this.j=a;this.j.ND("/client_streamz/bg/fcd",{oe:2,me:"ph"},{oe:3,me:"ke"})};
Dca=function(a){this.j=a;this.j.Sj("/client_streamz/bg/fsc",{oe:3,me:"rk"},{oe:3,me:"ke"})};
Eca=function(a){this.j=a;this.j.ND("/client_streamz/bg/fsl",{oe:3,me:"rk"},{oe:3,me:"ke"})};
Dg=function(a){this.j=a;this.j.ND("/client_streamz/bg/wrl",{oe:3,me:"mn"},{oe:2,me:"ac"},{oe:2,me:"sc"},{oe:3,me:"rk"})};
Eg=function(a){this.j=a;this.j.ND("/client_streamz/bg/el",{oe:3,me:"en"},{oe:3,me:"rk"})};
Fca=function(a){this.j=a;this.j.Sj("/client_streamz/bg/cec",{oe:2,me:"ec"},{oe:3,me:"rk"})};
Gca=function(a){this.j=a;this.j.Sj("/client_streamz/bg/po/csc",{oe:2,me:"cs"},{oe:3,me:"rk"})};
Hca=function(a){this.j=a;this.j.Sj("/client_streamz/bg/po/ctav",{oe:3,me:"av"},{oe:3,me:"rk"})};
Ica=function(a){this.j=a;this.j.Sj("/client_streamz/bg/po/cwsc",{oe:3,me:"su"},{oe:3,me:"rk"})};
Fg=function(){throw Error("Invalid UTF8");};
Jca=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
Nca=function(a){var b=!1;b=void 0===b?!1:b;if(Kca){if(b&&(Lca?!a.d$():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a)))throw Error("Found an unpaired surrogate");a=(Mca||(Mca=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};
Oca=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
Pca=function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};
g.Gg=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.Hg=function(a,b){void 0===b&&(b=0);Qca();b=Rca[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.Ig=function(a,b){if(Sca&&!b)a=g.Ta.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.Hg(c,b)}return a};
Uca=function(a){var b=[];Tca(a,function(c){b.push(c)});
return b};
Jg=function(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.jc("=.",a[b-1])&&(c=g.jc("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Tca(a,function(f){d[e++]=f});
return e!==c?d.subarray(0,e):d};
Tca=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=Kg[n];if(null!=p)return p;if(!g.fc(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
Qca();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))}};
Qca=function(){if(!Kg){Kg={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Rca[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===Kg[f]&&(Kg[f]=e)}}}};
Wca=function(a){if(!Vca)return g.Hg(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)};
Yca=function(a){return Xca[a]||""};
$ca=function(a){if(!Vca)return Jg(a);Zca.test(a)&&(a=a.replace(Zca,Yca));a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
Lg=function(a){return ada&&null!=a&&a instanceof Uint8Array};
Mg=function(){return bda||(bda=new Uint8Array(0))};
cda=function(a){if(a!==Ng)throw Error("illegal external caller");};
Og=function(a,b){cda(b);this.j=a;if(null!=a&&0===a.length)throw Error("ByteString should be constructed with non-empty values");};
Xg=function(){return dda||(dda=new Og(null,Ng))};
eda=function(a){var b=a.j;return null==b?"":"string"===typeof b?b:a.j=Wca(b)};
Zg=function(a){return(a=Yg(a))?new Uint8Array(a):Mg()};
Yg=function(a){cda(Ng);var b=a.j;b=null==b||Lg(b)?b:"string"===typeof b?$ca(b):null;return null==b?b:a.j=b};
fda=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
$g=function(){return Error("Failed to read varint, encoding is invalid.")};
gda=function(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};
ah=function(a){if("string"===typeof a)return{buffer:$ca(a),hx:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),hx:!1};if(a.constructor===Uint8Array)return{buffer:a,hx:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),hx:!1};if(a.constructor===Og)return{buffer:Yg(a)||Mg(),hx:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),hx:!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");
};
bh=function(){return"function"===typeof BigInt};
fh=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=g.u(ch(c,a)),b=c.next().value,a=c.next().value,c=b);dh=c>>>0;eh=a>>>0};
hda=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=4294967296*b+(a>>>0);return c?-a:a};
gh=function(a,b){b>>>=0;a>>>=0;if(2097151>=b)var c=""+(4294967296*b+a);else bh()?c=""+(BigInt(b)<<BigInt(32)|BigInt(a)):(c=(a>>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+6777216*c+6710656*b,c+=8147497*b,b*=2,1E7<=a&&(c+=Math.floor(a/1E7),a%=1E7),1E7<=c&&(b+=Math.floor(c/1E7),c%=1E7),c=b+ida(c)+ida(a));return c};
ida=function(a){a=String(a);return"0000000".slice(a.length)+a};
jda=function(){var a=dh,b=eh;b&2147483648?bh()?a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0)):(b=g.u(ch(a,b)),a=b.next().value,b=b.next().value,a="-"+gh(a,b)):a=gh(a,b);return a};
hh=function(a){if(16>a.length)fh(Number(a));else if(bh())a=BigInt(a),dh=Number(a&BigInt(4294967295))>>>0,eh=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+("-"===a[0]);eh=dh=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)),eh*=1E6,dh=1E6*dh+d,4294967296<=dh&&(eh+=Math.trunc(dh/4294967296),eh>>>=0,dh>>>=0);b&&(b=g.u(ch(dh,eh)),a=b.next().value,b=b.next().value,dh=a,eh=b)}};
ch=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};
jh=function(a,b){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.init(a,void 0,void 0,b)};
lh=function(a){var b=0,c=0,d=0,e=a.B,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;kh(a,f);if(128>h)return hda(b>>>0,c>>>0);throw $g();};
kh=function(a,b){a.j=b;if(b>a.C)throw gda(a.C,b);};
Ah=function(a){var b=a.B,c=a.j,d=b[c++],e=d&127;if(d&128&&(d=b[c++],e|=(d&127)<<7,d&128&&(d=b[c++],e|=(d&127)<<14,d&128&&(d=b[c++],e|=(d&127)<<21,d&128&&(d=b[c++],e|=d<<28,d&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128)))))throw $g();kh(a,c);return e};
Bh=function(a){var b=a.B,c=a.j,d=b[c+0],e=b[c+1],f=b[c+2];b=b[c+3];kh(a,a.j+4);return(d<<0|e<<8|f<<16|b<<24)>>>0};
Ch=function(a){var b=Bh(a);return 4294967296*Bh(a)+(b>>>0)};
Dh=function(a){var b=Bh(a),c=Bh(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)};
Eh=function(a){for(var b=0,c=a.j,d=c+10,e=a.B;c<d;){var f=e[c++];b|=f;if(0===(f&128))return kh(a,c),!!(b&127)}throw $g();};
kda=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.C)throw gda(b,a.C-c);a.j=d;return c};
mda=function(a,b){if(0==b)return Xg();var c=kda(a,b);a.lI&&a.G?c=a.B.subarray(c,c+b):(a=a.B,b=c+b,c=c===b?Mg():lda?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return 0==c.length?Xg():new Og(c,Ng)};
Gh=function(a,b){if(Fh.length){var c=Fh.pop();c.init(a,void 0,void 0,b);a=c}else a=new jh(a,b);this.j=a;this.C=this.j.j;this.B=this.D=-1;nda(this,b)};
nda=function(a,b){b=void 0===b?{}:b;a.OO=void 0===b.OO?!1:b.OO};
oda=function(a){var b=a.j;if(b.j==b.C)return!1;a.C=a.j.j;var c=Ah(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw fda(c,a.C);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.C+")");a.D=b;a.B=c;return!0};
Hh=function(a){switch(a.B){case 0:0!=a.B?Hh(a):Eh(a.j);break;case 1:a=a.j;kh(a,a.j+8);break;case 2:if(2!=a.B)Hh(a);else{var b=Ah(a.j)>>>0;a=a.j;kh(a,a.j+b)}break;case 5:a=a.j;kh(a,a.j+4);break;case 3:b=a.D;do{if(!oda(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.B){if(a.D!=b)throw Error("Unmatched end-group tag");break}Hh(a)}while(1);break;default:throw fda(a.B,a.C);}};
Ih=function(a,b,c){var d=a.j.C,e=Ah(a.j)>>>0,f=a.j.j+e,h=f-d;0>=h&&(a.j.C=f,c(b,a,void 0,void 0,void 0),h=f-a.j.j);if(h)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-h)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.j.j=f;a.j.C=d};
Lh=function(a){var b=Ah(a.j)>>>0;a=a.j;var c=kda(a,b);a=a.B;if(pda){var d=a,e;(e=Jh)||(e=Jh=new TextDecoder("utf-8",{fatal:!0}));b=c+b;d=0===c&&b===d.length?d:d.subarray(c,b);try{var f=e.decode(d)}catch(n){if(void 0===Kh){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),Kh=!0}catch(p){Kh=!1}}!Kh&&(Jh=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?Fg():(m=a[f++],194>l||128!==(m&192)?(f--,Fg()):c.push((l&31)<<6|m&63)):
240>l?f>=b-1?Fg():(m=a[f++],128!==(m&192)||224===l&&160>m||237===l&&160<=m||128!==((e=a[f++])&192)?(f--,Fg()):c.push((l&15)<<12|(m&63)<<6|e&63)):244>=l?f>=b-2?Fg():(m=a[f++],128!==(m&192)||0!==(l<<28)+(m-144)>>30||128!==((e=a[f++])&192)||128!==((d=a[f++])&192)?(f--,Fg()):(l=(l&7)<<18|(m&63)<<12|(e&63)<<6|d&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):Fg(),8192<=c.length&&(h=Jca(h,c),c.length=0);f=Jca(h,c)}return f};
qda=function(a){var b=Ah(a.j)>>>0;return mda(a.j,b)};
rda=function(a,b){this.B=a>>>0;this.j=b>>>0};
tda=function(a){if(!a)return sda||(sda=new rda(0,0));if(!/^\d+$/.test(a))return null;hh(a);return new rda(dh,eh)};
uda=function(a,b){this.B=a>>>0;this.j=b>>>0};
wda=function(a){if(!a)return vda||(vda=new uda(0,0));if(!/^-?\d+$/.test(a))return null;hh(a);return new uda(dh,eh)};
Mh=function(){this.j=[]};
xda=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)};
Nh=function(a,b){for(;127<b;)a.j.push(b&127|128),b>>>=7;a.j.push(b)};
yda=function(a,b){if(0<=b)Nh(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}};
Oh=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)};
zda=function(){this.C=[];this.B=0;this.j=new Mh};
Ph=function(a,b){0!==b.length&&(a.C.push(b),a.B+=b.length)};
Qh=function(a,b,c){Nh(a.j,8*b+c)};
Ada=function(a,b,c){null!=c&&("string"===typeof c&&tda(c),Qh(a,b,1),"number"===typeof c?(a=a.j,b=c>>>0,c=Math.floor((c-b)/4294967296)>>>0,dh=b,eh=c,Oh(a,dh),Oh(a,eh)):(c=tda(c),a=a.j,b=c.j,Oh(a,c.B),Oh(a,b)))};
Rh=function(a,b,c){Qh(a,b,2);Nh(a.j,c.length);Ph(a,a.j.end());Ph(a,c)};
Sh=function(a,b,c,d){this.IM=a;this.JM=b;this.j=c;this.v3=d};
Th=function(a){return Array.prototype.slice.call(a)};
Uh=function(a){return"function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():a};
Vh=function(a,b,c){return c?a|b:a&~b};
Xh=function(a){Wh(a,34);return a};
Bda=function(a,b){Yh(b,(a|0)&-14591)};
pi=function(a,b){Yh(b,(a|34)&-14557)};
Cda=function(a){a=a>>14&1023;return 0===a?536870912:a};
Eda=function(a){return!(!a||"object"!==typeof a||a.w$!==Dda)};
qi=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object};
ri=function(a,b,c){if(null!=a)if("string"===typeof a)a=a?new Og(a,Ng):Xg();else if(a.constructor!==Og)if(Lg(a))a=a.length?new Og(c?a:new Uint8Array(a),Ng):Xg();else{if(!b)throw Error();a=void 0}return a};
ti=function(a,b,c){if(!Array.isArray(a)||a.length)return!1;var d=si(a);if(d&1)return!0;if(!(b&&(Array.isArray(b)?b.includes(c):b.has(c))))return!1;Yh(a,d|1);return!0};
ui=function(a){if(a&2)throw Error();};
Fda=function(a,b){if("number"!==typeof b||0>b||b>=a.length)throw Error();};
Gda=function(a,b){if("number"!==typeof b||0>b||b>a.length)throw Error();};
vi=function(a,b,c){this.C=0;this.j=a;this.B=b;this.D=c};
Hda=function(a,b){(b=wi?b[wi]:void 0)&&(a[wi]=Th(b))};
Ida=function(){};
Jda=function(){var a=Error();Baa(a,"incident");Pf(a)};
xi=function(a){a=Error(a);Baa(a,"warning");return a};
yi=function(a){if(null!=a&&"number"!==typeof a)throw Error("Value of float/double field must be a number, found "+typeof a+": "+a);return a};
Kda=function(a){if(null==a||"number"===typeof a)return a;if("NaN"===a||"Infinity"===a||"-Infinity"===a)return Number(a)};
Lda=function(a){return a.displayName||a.name||"unknown type name"};
Mda=function(a){if("boolean"!==typeof a)throw Error("Expected boolean but got "+bb(a)+": "+a);return a};
Nda=function(a){if(null==a||"boolean"===typeof a)return a;if("number"===typeof a)return!!a};
zi=function(a){var b=typeof a;return"number"===b?Number.isFinite(a):"string"!==b?!1:Oda.test(a)};
Ai=function(a){if(!Number.isFinite(a))throw xi("enum");return a|0};
Bi=function(a){return null==a?a:Number.isFinite(a)?a|0:void 0};
Ci=function(a){if("number"!==typeof a)throw xi("int32");if(!Number.isFinite(a))throw xi("int32");return a|0};
Di=function(a){return null==a?a:Ci(a)};
Ei=function(a){if(null==a)return a;if("string"===typeof a){if(!a)return;a=+a}if("number"===typeof a)return Number.isFinite(a)?a|0:void 0};
Fi=function(a){if(null==a)return a;if("string"===typeof a){if(!a)return;a=+a}if("number"===typeof a)return Number.isFinite(a)?a>>>0:void 0};
Qda=function(a,b){b=!!b;if(!zi(a))throw xi("int64");return"string"===typeof a?Gi(a):b?Pda(a):Hi(a)};
Ii=function(a){return null==a?a:Qda(a)};
Ji=function(a){return"-"===a[0]?!1:20>a.length?!0:20===a.length&&184467>Number(a.substring(0,6))};
Rda=function(a){return"-"===a[0]?20>a.length?!0:20===a.length&&-922337<Number(a.substring(0,7)):19>a.length?!0:19===a.length&&922337>Number(a.substring(0,6))};
Sda=function(a){if(0>a){fh(a);var b=gh(dh,eh);a=Number(b);return Number.isSafeInteger(a)?a:b}if(Ji(String(a)))return a;fh(a);return 4294967296*eh+(dh>>>0)};
Hi=function(a){zi(a);a=Math.trunc(a);Number.isSafeInteger(a)||(fh(a),a=hda(dh,eh));return a};
$i=function(a){zi(a);a=Math.trunc(a);return 0<=a&&Number.isSafeInteger(a)?a:Sda(a)};
Pda=function(a){zi(a);a=Math.trunc(a);if(Number.isSafeInteger(a))a=String(a);else{var b=String(a);Rda(b)?a=b:(fh(a),a=jda())}return a};
Gi=function(a){zi(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b))return String(b);b=a.indexOf(".");-1!==b&&(a=a.substring(0,b));Rda(a)||(hh(a),a=jda());return a};
aj=function(a){zi(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b)&&0<=b)return String(b);b=a.indexOf(".");-1!==b&&(a=a.substring(0,b));Ji(a)||(hh(a),a=gh(dh,eh));return a};
Tda=function(a){if(null==a)return a;if(zi(a)){if("string"===typeof a)return aj(a);if("number"===typeof a)return $i(a)}};
Uda=function(a){if(null==a||"string"==typeof a||Lg(a)||a instanceof Og)return a};
bj=function(a){if("string"!==typeof a)throw Error();return a};
cj=function(a){if(null!=a&&"string"!==typeof a)throw Error();return a};
dj=function(a){return null==a||"string"===typeof a?a:void 0};
ej=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+Lda(b)+" but got "+(a&&Lda(a.constructor)));return a};
gj=function(a,b,c,d){if(null!=a&&"object"===typeof a&&a.GK===fj)return a;if(!Array.isArray(a))return c?d&2?(a=b[Vda])?b=a:(a=new b,Xh(a.oa),b=b[Vda]=a):b=new b:b=void 0,b;var e=c=si(a);0===e&&(e|=d&32);e|=d&2;e!==c&&Yh(a,e);return new b(a)};
ij=function(a,b){hj=b;a=new a(b);hj=void 0;return a};
kj=function(a){switch(typeof a){case "boolean":return jj||(jj=[0,void 0,!0]);case "number":return 0<a?void 0:0===a?Wda||(Wda=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}};
P=function(a,b,c){null==a&&(a=hj);hj=void 0;if(null==a){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("narr");d=si(a);if(d&2048)throw Error("farr");if(d&64)return a;d|=64;if(c&&(d|=512,c!==a[0]))throw Error("mid");a:{c=a;var e=c.length;if(e){var f=e-1;if(qi(c[f])){d|=256;b=f-(+!!(d&512)-1);if(1024<=b)throw Error("pvtlmt");d=d&-16760833|(b&1023)<<14;break a}}if(b){b=Math.max(b,e-(+!!(d&512)-1));if(1024<b)throw Error("spvt");d=d&-16760833|(b&1023)<<
14}}}Yh(a,d);return a};
lj=function(){this.j=new Map};
Xda=function(a){return a};
nj=function(a,b,c,d){c=void 0===c?Xda:c;d=void 0===d?Xda:d;var e=mj.call(this)||this;var f=si(a);f|=64;Yh(a,f);e.nI=f;e.DM=b;e.xF=c;e.eU=e.DM?Yda:d;for(var h=0;h<a.length;h++){var l=a[h],m=c(l[0],!1,!0),n=l[1];b?void 0===n&&(n=null):n=d(l[1],!1,!0,void 0,void 0,f);mj.prototype.set.call(e,m,n)}return e};
oj=function(a){if(a.nI&2)throw Error("Cannot mutate an immutable Map");};
aea=function(a,b){b=void 0===b?Zda:b;if(0!==a.size)return $da(a,b)};
$da=function(a,b){b=void 0===b?Zda:b;var c=[];a=mj.prototype.entries.call(a);for(var d;!(d=a.next()).done;)d=d.value,d[0]=b(d[0]),d[1]=b(d[1]),c.push(d);return c};
Yda=function(a,b,c,d,e,f){b&&ej(a,d);a=gj(a,d,c,f);e&&(a=pj(a));return a};
Zda=function(a){return a};
bea=function(a){return[a,this.get(a)]};
dea=function(a,b){return cea(b)};
cea=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(ti(a,void 0,0))return}else{if(Lg(a))return Wca(a);if(a instanceof Og)return eda(a);if(a instanceof nj)return aea(a)}}return a};
eea=function(a,b,c){var d=Th(a),e=d.length,f=b&256?d[e-1]:void 0;e+=f?-1:0;for(b=b&512?1:0;b<e;b++)d[b]=c(d[b]);if(f){b=d[b]={};for(var h in f)b[h]=c(f[h])}Hda(d,a);return d};
Gj=function(a,b,c,d,e){if(null!=a){if(Array.isArray(a))a=ti(a,void 0,0)?void 0:e&&si(a)&2?a:Fj(a,b,c,void 0!==d,e);else if(qi(a)){var f={},h;for(h in a)f[h]=Gj(a[h],b,c,d,e);a=f}else a=b(a,d);return a}};
Fj=function(a,b,c,d,e){var f=d||c?si(a):0;d=d?!!(f&32):void 0;for(var h=Th(a),l=0;l<h.length;l++)h[l]=Gj(h[l],b,c,d,e);c&&(Hda(h,a),c(f,h));return h};
gea=function(a){return Gj(a,fea,void 0,void 0,!1)};
fea=function(a){return a.GK===fj?a.toJSON():a instanceof nj?aea(a,gea):cea(a)};
Hj=function(a,b,c){c=void 0===c?pi:c;if(null!=a){if(ada&&a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=si(a);d&2||(b&&(b=0===d||!!(d&32)&&!(d&64||!(d&16))),a=b?Yh(a,(d|34)&-12293):Fj(a,Hj,d&4?pi:c,!0,!0));return a}a.GK===fj?(c=a.oa,d=Ij(c),a=d&2?a:ij(a.constructor,Jj(c,d,!0))):a instanceof nj&&!(a.nI&2)&&(c=Xh($da(a,Hj)),a=new nj(c,a.DM,a.xF,a.eU));return a}};
Jj=function(a,b,c){var d=c||b&2?pi:Bda,e=!!(b&32);a=eea(a,b,function(f){return Hj(f,e,d)});
Wh(a,32|(c?2:0));return a};
pj=function(a){var b=a.oa,c=Ij(b);return c&2?ij(a.constructor,Jj(b,c,!1)):a};
iea=function(a,b,c,d){if(!(4&b))return!0;if(null==c)return!1;!d&&0===c&&(4096&b||8192&b)&&5>(a.constructor[hea]=(a.constructor[hea]|0)+1)&&Jda();return 0===c?!1:!(c&b)};
Lj=function(a,b){a=a.oa;return Kj(a,Ij(a),b)};
jea=function(a,b,c,d){b=d+(+!!(b&512)-1);if(!(0>b||b>=a.length||b>=c))return a[b]};
Kj=function(a,b,c,d){if(-1===c)return null;var e=Cda(b);if(c>=e){if(b&256)return a[a.length-1][c]}else{var f=a.length;if(d&&b&256&&(d=a[f-1][c],null!=d)){if(jea(a,b,e,c)&&null!=Mj){var h;a=null!=(h=kea)?h:kea={};h=a[Mj]||0;4<=h||(a[Mj]=h+1,Jda())}return d}return jea(a,b,e,c)}};
Oj=function(a,b,c){var d=a.oa,e=Ij(d);ui(e);Nj(d,e,b,c);return a};
Nj=function(a,b,c,d,e){var f=Cda(b);if(c>=f||e){var h=b;if(b&256)e=a[a.length-1];else{if(null==d)return h;e=a[f+(+!!(b&512)-1)]={};h|=256}e[c]=d;c<f&&(a[c+(+!!(b&512)-1)]=void 0);h!==b&&Yh(a,h);return h}a[c+(+!!(b&512)-1)]=d;b&256&&(a=a[a.length-1],c in a&&delete a[c]);return b};
Pj=function(a,b,c){return void 0!==lea(a,b,c,!1)};
Sj=function(a,b,c,d,e){var f=b&2,h=Kj(a,b,c,e);Array.isArray(h)||(h=Qj);var l=!(d&2);d=!(d&1);var m=!!(b&32),n=si(h);0!==n||!m||f||l?n&1||(n|=1,Yh(h,n)):(n|=33,Yh(h,n));f?(a=!1,n&2||(Xh(h),a=!!(4&n)),(d||a)&&Object.freeze(h)):(f=!!(2&n)||!!(2048&n),d&&f?(h=Th(h),d=1,m&&!l&&(d|=32),Yh(h,d),Nj(a,b,c,h,e)):l&&n&32&&!f&&Rj(h,32));return h};
Wj=function(a,b,c,d,e,f){var h=a.oa,l=Ij(h);d=2&l?1:d;f=!!f;var m=mea(h,l,b,e),n=si(m);if(iea(a,n,void 0,f)){if(4&n||Object.isFrozen(m))m=Th(m),n=Tj(n,l),l=Nj(h,l,b,m,e);for(var p=a=0;a<m.length;a++){var q=c(m[a]);null!=q&&(m[p++]=q)}p<a&&(m.length=p);n=nea(n,l);n=Vh(n,20,!0);n=Vh(n,4096,!1);n=Vh(n,8192,!1);Yh(m,n);2&n&&Object.freeze(m)}Uj(n)||(c=n,n=(a=1===d||4===d&&!!(32&n))?Vh(n,2,!0):Vj(n,l,f),n!==c&&Yh(m,n),a&&Object.freeze(m));2===d&&Uj(n)&&(m=Th(m),n=Tj(n,l),n=Vj(n,l,f),Yh(m,n),Nj(h,l,b,m,
e));return m};
mea=function(a,b,c,d){a=Kj(a,b,c,d);return Array.isArray(a)?a:Qj};
nea=function(a,b){0===a&&(a=Tj(a,b));return a=Vh(a,1,!0)};
Uj=function(a){return!!(2&a)&&!!(4&a)||!!(2048&a)};
oea=function(a){return ri(a,!0,!0)};
pea=function(a){return ri(a,!0,!1)};
Xj=function(a,b){a=a.oa;var c=Ij(a),d=Kj(a,c,b),e=ri(d,!0,!!(c&34));null!=e&&e!==d&&Nj(a,c,b,e);return null==e?Xg():e};
Yj=function(a,b,c){var d=a.oa,e=Ij(d);ui(e);if(null==b)return Nj(d,e,3),a;if(!Array.isArray(b))throw xi();var f=si(b),h=f,l=!!(2&f)||Object.isFrozen(b),m=!l&&(void 0===qea||!1);if(iea(a,f))for(f=21,l&&(b=Th(b),h=0,f=Tj(f,e),f=Vj(f,e,!0)),l=0;l<b.length;l++)b[l]=c(b[l]);m&&(b=Th(b),h=0,f=Tj(f,e),f=Vj(f,e,!0));f!==h&&Yh(b,f);Nj(d,e,3,b);return a};
Zj=function(a,b,c,d){var e=a.oa,f=Ij(e);ui(f);Nj(e,f,b,("0"===d?0===Number(c):c===d)?void 0:c);return a};
bk=function(a,b,c,d,e){ak(a.oa,b,c,d,e);return a};
ak=function(a,b,c,d,e){var f=Ij(a);ui(f);a=Sj(a,f,b,2);b=si(a);d=c(d,!!(4&b)&&!!(4096&b));void 0!=e?a.splice(e,0,d):a.push(d)};
rea=function(a){return a};
sea=function(a,b,c,d,e,f){ui(Ij(a.oa));b=f(a,b,2,void 0,!0);Gda(b,d);f=si(b);b[d]=c(e,!!(4&f)&&!!(4096&f));return a};
dk=function(a,b,c,d){var e=a.oa,f=Ij(e);ui(f);(c=ck(e,f,c))&&c!==b&&null!=d&&(f=Nj(e,f,c));Nj(e,f,b,d);return a};
ek=function(a,b,c,d){var e=Ij(a);ui(e);(c=ck(a,e,c))&&c!==b&&(e=Nj(a,e,c));Nj(a,e,b,d)};
fk=function(a,b,c){a=a.oa;return ck(a,Ij(a),b)===c?c:-1};
ck=function(a,b,c){for(var d=0,e=0;e<c.length;e++){var f=c[e];null!=Kj(a,b,f)&&(0!==d&&(b=Nj(a,b,d)),d=f)}return d};
gk=function(a,b,c,d){var e=Ij(a);ui(e);var f=Kj(a,e,c,d),h;if(null!=f&&f.GK===fj)return b=pj(f),b!==f&&Nj(a,e,c,b,d),b.oa;if(Array.isArray(f)){var l=si(f);l&2?h=Jj(f,l,!1):h=f;h=P(h,b[0],b[1])}else h=P(void 0,b[0],b[1]);h!==f&&Nj(a,e,c,h,d);return h};
lea=function(a,b,c,d){a=a.oa;var e=Ij(a),f=Kj(a,e,c,d);b=gj(f,b,!1,e);b!==f&&null!=b&&Nj(a,e,c,b,d);return b};
g.Hk=function(a,b,c,d){d=void 0===d?!1:d;b=lea(a,b,c,d);if(null==b)return b;a=a.oa;var e=Ij(a);if(!(e&2)){var f=pj(b);f!==b&&(b=f,Nj(a,e,c,b,d))}return b};
tea=function(a,b,c,d,e,f,h){var l=!!(2&b),m=l?1:2;f=!!f;h&&(h=!l);l=mea(a,b,d,e);var n=si(l),p=!!(4&n);if(!p){n=nea(n,b);var q=l,r=b,t=!!(2&n);t&&(r=Vh(r,2,!0));for(var v=!t,w=!0,A=0,C=0;A<q.length;A++){var F=gj(q[A],c,!1,r);if(F instanceof c){if(!t){var H=!!(si(F.oa)&2);v&&(v=!H);w&&(w=H)}q[C++]=F}}C<A&&(q.length=C);n=Vh(n,4,!0);n=Vh(n,16,w);n=Vh(n,8,v);Yh(q,n);t&&Object.freeze(q)}if(h&&!(8&n||!l.length&&(1===m||4===m&&32&n))){Uj(n)&&(l=Th(l),n=Tj(n,b),b=Nj(a,b,d,l,e));c=l;h=n;for(q=0;q<c.length;q++)n=
c[q],r=pj(n),n!==r&&(c[q]=r);h=Vh(h,8,!0);h=Vh(h,16,!c.length);Yh(c,h);n=h}Uj(n)||(c=n,n=(h=1===m||4===m&&!!(32&n))?Vh(n,!l.length||16&n&&(!p||32&n)?2:2048,!0):Vj(n,b,f),n!==c&&Yh(l,n),h&&Object.freeze(l));2===m&&Uj(n)&&(l=Th(l),n=Tj(n,b),n=Vj(n,b,f),Yh(l,n),Nj(a,b,d,l,e));return l};
uea=function(a,b){a=a.oa;var c=Ij(a);return tea(a,c,b,3,void 0,!1,!(2&c))};
Ik=function(a,b,c,d){null!=d?ej(d,b):d=void 0;return Oj(a,c,d)};
Jk=function(a,b,c,d,e){null!=e?ej(e,b):e=void 0;return dk(a,c,d,e)};
Kk=function(a,b,c,d){var e=a.oa,f=Ij(e);ui(f);if(null==d)return Nj(e,f,c),a;if(!Array.isArray(d))throw xi();for(var h=si(d),l=h,m=!!(2&h)||!!(2048&h),n=m||Object.isFrozen(d),p=!n&&(void 0===qea||!1),q=!0,r=!0,t=0;t<d.length;t++){var v=d[t];ej(v,b);m||(v=!!(si(v.oa)&2),q&&(q=!v),r&&(r=v))}m||(h=Vh(h,5,!0),h=Vh(h,8,q),h=Vh(h,16,r));if(p||n&&h!==l)d=Th(d),l=0,h=Tj(h,f),h=Vj(h,f,!0);h!==l&&Yh(d,h);Nj(e,f,c,d);return a};
Tj=function(a,b){a=Vh(a,2,!!(2&b));a=Vh(a,32,!0);return a=Vh(a,2048,!1)};
Vj=function(a,b,c){32&b&&c||(a=Vh(a,32,!1));return a};
vea=function(a,b,c,d,e,f,h){a=a.oa;var l=Ij(a);ui(l);b=tea(a,l,c,b,f,!0);f=null!=d?ej(d,c):new c;h&&(Gda(b,e),ej(d,c));void 0!=e?b.splice(e,h,f):b.push(f);si(f.oa)&2?Rj(b,8):Rj(b,16)};
Lk=function(a,b,c,d,e){vea(a,b,c,d,e);return a};
Mk=function(a,b){a=Lj(a,b);var c;null==a?c=a:zi(a)?"number"===typeof a?c=Hi(a):c=Gi(a):c=void 0;return c};
wea=function(a){a=Lj(a,1);var b=void 0===b?!1:b;b=null==a?a:zi(a)?"string"===typeof a?Gi(a):b?Pda(a):Hi(a):void 0;return b};
Nk=function(a,b){return null!=a?a:b};
Ok=function(a,b){return dj(Lj(a,b))};
Pk=function(a,b,c){c=void 0===c?0:c;a=Ei(Lj(a,b));return Nk(a,c)};
Qk=function(a,b){var c=void 0===c?0:c;return Nk(Fi(Lj(a,b)),c)};
xea=function(a,b){var c=void 0===c?0:c;return Nk(Mk(a,b),c)};
Rk=function(a,b){var c=void 0===c?0:c;a=Lj(a,b);var d;null==a?d=a:zi(a)?"number"===typeof a?d=$i(a):d=aj(a):d=void 0;return Nk(d,c)};
yea=function(a,b){var c=void 0===c?0:c;a=a.oa;var d=Ij(a),e=Kj(a,d,b),f=Kda(e);null!=f&&f!==e&&Nj(a,d,b,f);return Nk(f,c)};
Sk=function(a,b){var c=void 0===c?"":c;return Nk(Ok(a,b),c)};
Tk=function(a,b){var c=0;c=void 0===c?0:c;return Nk(Bi(Lj(a,b)),c)};
zea=function(a,b,c,d,e){return Wj(a,b,dj,c,d,e)};
Aea=function(a,b,c,d,e){return Wj(a,b,Bi,c,d,e)};
Bea=function(a,b,c){a=Aea(a,b,3,void 0,!0);Fda(a,c);return a[c]};
Uk=function(a,b,c){return Oj(a,b,null==c?c:Mda(c))};
Vk=function(a,b,c){return Oj(a,b,Di(c))};
Wk=function(a,b,c){if(null!=c){if("number"!==typeof c)throw xi("uint32");if(!Number.isFinite(c))throw xi("uint32");c>>>=0}Oj(a,b,c)};
Xk=function(a,b,c){return Oj(a,b,Ii(c))};
Yk=function(a,b,c){if(null!=c){var d=!!d;if(!zi(c))throw xi("uint64");"string"===typeof c?c=aj(c):d?(zi(c),c=Math.trunc(c),0<=c&&Number.isSafeInteger(c)?c=String(c):(d=String(c),Ji(d)?c=d:(fh(c),c=gh(dh,eh)))):c=$i(c)}Oj(a,b,c)};
Zk=function(a,b,c){return Oj(a,b,yi(c))};
Q=function(a,b,c){return Oj(a,b,cj(c))};
$k=function(a,b,c){return Zj(a,b,cj(c),"")};
al=function(a,b,c){return Oj(a,b,ri(c,!1,!1))};
S=function(a,b,c){return Oj(a,b,null==c?c:Ai(c))};
bl=function(a,b,c,d){dk(a,b,c,null==d?d:Ai(d))};
T=function(a,b,c){this.oa=P(a,b,c)};
Cea=function(a,b){if(null==b||""==b)return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");Wh(b,32);return ij(a,b)};
cl=function(a,b,c){var d=Dea?void 0:a.constructor.wb;var e=Ij(c?a.oa:b);a=b.length;if(!a)return b;var f;if(qi(c=b[a-1])){a:{var h=c;var l={},m=!1,n;for(n in h){var p=h[n];if(Array.isArray(p)){var q=p;if(ti(p,d,+n)||Eda(p)&&0===p.size)p=null;p!=q&&(m=!0)}null!=p?l[n]=p:m=!0}if(m){for(var r in l){h=l;break a}h=null}}h!=c&&(f=!0);a--}for(n=+!!(e&512)-1;0<a;a--){r=a-1;c=b[r];r-=n;if(!(null==c||ti(c,d,r)||Eda(c)&&0===c.size))break;var t=!0}if(!f&&!t)return b;b=Array.prototype.slice.call(b,0,a);h&&b.push(h);
return b};
Fea=function(a){return Array.isArray(a)?a[0]instanceof Sh?a:[Eea,a]:[a,void 0]};
dl=function(a,b,c){if(Array.isArray(b)){var d=si(b);if(d&4)return b;for(var e=0,f=0;e<b.length;e++){var h=a(b[e]);null!=h&&(b[f++]=h)}f<e&&(b.length=f);c&&(Yh(b,(d|5)&-12289),d&2&&Object.freeze(b));return b}};
hl=function(a){var b=a[Gea];if(!b){var c=Hea(a),d=el(a),e=d.C;b=e?function(f,h){return e(f,h,d)}:function(f,h){for(;oda(h)&&4!=h.B;){var l=h.D,m=d[l];
if(!m){var n=d.extensions;n&&(n=n[l])&&(m=d[l]=Iea(n))}m&&m(h,f,l)||(m=h,l=m.C,Hh(m),m.OO?m=void 0:(n=m.j.j-l,m.j.j=l,m=mda(m.j,n)),l=f,m&&(wi||(wi=Symbol()),(n=l[wi])?n.push(m):l[wi]=[m]))}c===fl||c===gl||c.G||(f[Jea||(Jea=Symbol())]=c)};
a[Gea]=b}return b};
Iea=function(a){a=Fea(a);var b=a[0].IM;if(a=a[1]){var c=hl(a),d=el(a).fB;return function(e,f,h){return b(e,f,h,d,c)}}return b};
il=function(){};
Kea=function(a,b,c){var d=c[1];if(d){var e=d[jl];var f=e?e.fB:kj(d[0]);a[b]=null!=e?e:d}f&&f===jj?(a.j||(a.j=new Set)).add(b):c[0]&&(a.B||(a.B=new Set)).add(b)};
Lea=function(a,b){return[a.j,!b||0<b[0]?void 0:b]};
Hea=function(a){var b=a[jl];if(b)return b;b=kl(a,a[jl]=new il,Lea,Lea,Kea);if(!b.extensions&&!b.B&&!b.j){var c=!0,d;for(d in b)isNaN(d)||(c=!1);c?(kj(a[0])===jj?gl?b=gl:(b=new il,b.fB=kj(!0),b=gl=b):b=fl||(fl=new il),b=a[jl]=b):b.G=!0}return b};
Mea=function(a,b,c){a[b]=c};
kl=function(a,b,c,d,e){e=void 0===e?Mea:e;b.fB=kj(a[0]);var f=0,h=a[++f];h&&h.constructor===Object&&(b.extensions=h,h=a[++f],"function"===typeof h&&(b.C=h,b.D=a[++f],h=a[++f]));for(var l={};Array.isArray(h)&&"number"===typeof h[0]&&0<h[0];){for(var m=0;m<h.length;m++)l[h[m]]=h;h=a[++f]}for(m=1;void 0!==h;){"number"===typeof h&&(m+=h,h=a[++f]);var n=void 0;if(h instanceof Sh)var p=h;else p=Nea,f--;if(p.v3){h=a[++f];n=a;var q=f;"function"==typeof h&&(h=h(),n[q]=h);n=h}h=a[++f];q=m+1;"number"===typeof h&&
0>h&&(q-=h,h=a[++f]);for(;m<q;m++){var r=l[m];e(b,m,n?d(p,n,r):c(p,r))}}return b};
Qea=function(a){var b=a[Oea];if(!b){var c=Ul(a);b=function(d,e){return Pea(d,e,c)};
a[Oea]=b}return b};
Rea=function(a){return a.JM};
Sea=function(a,b){var c,d,e=a.JM;return function(f,h,l){return e(f,h,l,d||(d=Ul(b).fB),c||(c=Qea(b)))}};
Ul=function(a){var b=a[Vl];if(b)return b;b=kl(a,a[Vl]={},Rea,Sea);Tea(a);return b};
Uea=function(a,b){var c=a.IM;return b?function(d,e,f){return c(d,e,f,b)}:c};
Vea=function(a,b,c){var d=a.IM,e,f;return function(h,l,m){return d(h,l,m,f||(f=el(b).fB),e||(e=hl(b)),c)}};
el=function(a){var b=a[Wl];if(b)return b;Hea(a);b=kl(a,a[Wl]={},Uea,Vea);Tea(a);return b};
Tea=function(a){Wl in a&&jl in a&&Vl in a&&(a.length=0)};
Wea=function(a,b){var c=a[b];if(c)return c;if(c=a.extensions)if(c=c[b]){c=Fea(c);var d=c[0].JM;if(c=c[1]){var e=Qea(c),f=Ul(c).fB;c=(c=a.D)?c(f,e):function(h,l,m){return d(h,l,m,f,e)}}else c=d;
return a[b]=c}};
Pea=function(a,b,c){for(var d=Ij(a),e=+!!(d&512)-1,f=a.length,h=f+(d&256?-1:0),l=d&512?1:0;l<h;l++){var m=a[l];if(null!=m){var n=l-e,p=Wea(c,n);p&&p(b,m,n)}}if(d&256){d=a[f-1];for(var q in d)e=+q,Number.isNaN(e)||(f=d[q],null!=f&&(h=Wea(c,e))&&h(b,f,e))}if(a=wi?a[wi]:void 0)for(Ph(b,b.j.end()),c=0;c<a.length;c++)Ph(b,Yg(a[c])||Mg())};
Xl=function(a,b){return new Sh(a,b,!1,!1)};
Yl=function(a,b){return new Sh(a,b,!0,!1)};
Zl=function(a,b,c){Nj(a,Ij(a),b,c)};
$l=function(a,b,c){b=Kda(b);null!=b&&(Qh(a,c,1),a=a.j,c=Xea||(Xea=new DataView(new ArrayBuffer(8))),c.setFloat64(0,+b,!0),dh=c.getUint32(0,!0),eh=c.getUint32(4,!0),Oh(a,dh),Oh(a,eh))};
am=function(a,b,c){a:if(null!=b){if(zi(b)){if("string"===typeof b){b=Gi(b);break a}if("number"===typeof b){b=Hi(b);break a}}b=void 0}null!=b&&("string"===typeof b&&wda(b),null!=b&&(Qh(a,c,0),"number"===typeof b?(a=a.j,fh(b),xda(a,dh,eh)):(c=wda(b),xda(a.j,c.B,c.j))))};
bm=function(a,b,c){b=Ei(b);null!=b&&null!=b&&(Qh(a,c,0),yda(a.j,b))};
Yea=function(a,b,c){b=Nda(b);null!=b&&(Qh(a,c,0),a.j.j.push(b?1:0))};
Zea=function(a,b,c){b=dj(b);null!=b&&Rh(a,c,Nca(b))};
cm=function(a,b,c,d,e){b=b instanceof T?b.oa:Array.isArray(b)?P(b,d[0],d[1]):void 0;if(null!=b){Qh(a,c,2);c=a.j.end();Ph(a,c);c.push(a.B);e(b,a);e=c.pop();for(e=a.B+a.j.length()-e;127<e;)c.push(e&127|128),e>>>=7,a.B++;c.push(e);a.B++}};
$ea=function(a){return function(){var b=new zda;Pea(this.oa,b,Ul(a));Ph(b,b.j.end());for(var c=new Uint8Array(b.B),d=b.C,e=d.length,f=0,h=0;h<e;h++){var l=d[h];c.set(l,f);f+=l.length}b.C=[c];return c}};
dm=function(a){return function(b){return Cea(a,b)}};
em=function(a){this.oa=P(a)};
fm=function(a){this.oa=P(a)};
gm=function(a){this.oa=P(a)};
hm=function(a){this.oa=P(a)};
im=function(a){this.oa=P(a)};
jm=function(a){this.oa=P(a)};
g.afa=function(a){var b=new im;b=Q(b,1,a.D);for(var c=[],d=0;d<a.fields.length;d++)c.push(a.fields[d].me);b=Yj(b,c,bj);c=[];d=[];for(var e=g.u(a.j.keys()),f=e.next();!f.done;f=e.next())d.push(f.value.split(","));for(e=0;e<d.length;e++){f=d[e];for(var h=a.C,l=a.jP(f)||[],m=[],n=0;n<l.length;n++){var p=l[n],q=p&&p.j;p=new gm;switch(h){case 3:q=Number(q);Number.isFinite(q)&&dk(p,1,km,Ii(q));break;case 2:dk(p,2,km,yi(Number(q)))}m.push(p)}h=m;for(l=0;l<h.length;l++){m=h[l];n=new hm;m=Ik(n,gm,2,m);n=[];
p=a;q=[];for(var r=0;r<p.fields.length;r++)q.push(p.fields[r].oe);p=q;for(q=0;q<p.length;q++){var t=p[q],v=f[q];r=new fm;switch(t){case 3:dk(r,1,lm,cj(String(v)));break;case 2:t=Number(v);Number.isFinite(t)&&dk(r,2,lm,Di(t));break;case 1:t="true"===v,t=null==t?t:Mda(t),dk(r,3,lm,t)}n.push(r)}Kk(m,fm,1,n);c.push(m)}}Kk(b,hm,4,c);return b};
bfa=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";0===a.indexOf("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};
cfa=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 r=h,t=0;64>t;t+=4)r[t/4]=q[t]<<24|q[t+1]<<16|q[t+2]<<8|q[t+3];for(t=16;80>t;t++)q=r[t-3]^r[t-8]^r[t-14]^r[t-16],r[t]=(q<<1|q>>>31)&4294967295;q=e[0];var v=e[1],w=e[2],A=e[3],C=e[4];for(t=0;80>t;t++){if(40>t)if(20>t){var F=A^v&(w^A);var H=1518500249}else F=v^w^A,H=1859775393;else 60>t?(F=v&w|A&(v|w),H=2400959708):(F=v^w^A,H=3395469782);F=((q<<5|q>>>27)&4294967295)+F+C+H+r[t]&4294967295;C=A;A=w;w=(v<<30|v>>>2)&4294967295;v=q;q=F}e[0]=e[0]+q&4294967295;e[1]=e[1]+v&4294967295;e[2]=
e[2]+w&4294967295;e[3]=e[3]+A&4294967295;e[4]=e[4]+C&4294967295}
function c(q,r){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var t=[],v=0,w=q.length;v<w;++v)t.push(q.charCodeAt(v));q=t}r||(r=q.length);t=0;if(0==n)for(;t+64<r;)b(q.slice(t,t+64)),t+=64,p+=64;for(;t<r;)if(f[n++]=q[t++],p++,64==n)for(n=0,b(f);t+64<r;)b(q.slice(t,t+64)),t+=64,p+=64}
function d(){var q=[],r=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var t=63;56<=t;t--)f[t]=r&255,r>>>=8;b(f);for(t=r=0;5>t;t++)for(var v=24;0<=v;v-=8)q[r++]=e[t]>>v&255;return q}
for(var e=[],f=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,U7:function(){for(var q=d(),r="",t=0;t<q.length;t++)r+="0123456789ABCDEF".charAt(Math.floor(q[t]/16))+"0123456789ABCDEF".charAt(q[t]%16);return r}}};
efa=function(a,b,c){var d=String(g.Ta.location.href);return d&&a&&b?[b,dfa(bfa(d),a,c||null)].join(" "):null};
dfa=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.bc(d,function(l){e.push(l)}),ffa(e.join(" "));
var f=[],h=[];g.bc(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=0==f.length?[c,b,a]:[f.join(":"),c,b,a];g.bc(d,function(l){e.push(l)});
a=ffa(e.join(" "));a=[c,a];0==h.length||a.push(h.join(""));return a.join("_")};
ffa=function(a){var b=cfa();b.update(a);return b.U7().toLowerCase()};
mm=function(a){this.j=a||{cookie:""}};
nm=function(a){a=(a.j.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=lc(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}};
om=function(a){return!!gfa.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
hfa=function(a){a=void 0===a?!1:a;var b=g.Ta.__SAPISID||g.Ta.__APISID||g.Ta.__3PSAPISID||g.Ta.__OVERRIDE_SID;om(a)&&(b=b||g.Ta.__1PSAPISID);if(b)return!0;if("undefined"!==typeof document){var c=new mm(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID");om(a)&&(b=b||c.get("__Secure-1PAPISID"))}return!!b};
ifa=function(a,b,c,d){(a=g.Ta[a])||"undefined"===typeof document||(a=(new mm(document)).get(b));return a?efa(a,c,d):null};
jfa=function(a,b){b=void 0===b?!1:b;var c=bfa(String(g.Ta.location.href)),d=[];if(hfa(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?g.Ta.__SAPISID:g.Ta.__APISID;e||"undefined"===typeof document||(e=new mm(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?efa(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&om(b)&&((b=ifa("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=ifa("__3PSAPISID","__Secure-3PAPISID",
"SAPISID3PHASH",a))&&d.push(a))}return 0==d.length?null:d.join(" ")};
pm=function(a){this.oa=P(a)};
Km=function(a,b){this.intervalMs=a;this.callback=b;this.enabled=!1;this.j=function(){return g.lb()};
this.B=this.j()};
Lm=function(a){this.oa=P(a)};
Mm=function(a){this.oa=P(a)};
g.Nm=function(a,b,c,d){this.D=a;this.G=b;this.j=this.C=a;this.K=c||0;this.N=d||2};
g.Om=function(a){a.j=Math.min(a.G,a.j*a.N);a.C=Math.min(a.G,a.j+(a.K?Math.round(a.K*(Math.random()-.5)*2*a.j):0));a.B++};
Pm=function(a){this.oa=P(a)};
Qm=function(a){this.oa=P(a)};
Rm=function(a){this.oa=P(a)};
kfa=function(a,b){Kk(a,Qm,1,b)};
Sm=function(a){this.oa=P(a)};
mfa=function(a,b){b=void 0===b?lfa:b;if(!Tm){var c;a=null==(c=a.navigator)?void 0:c.userAgentData;if(!a||"function"!==typeof a.getHighEntropyValues||a.brands&&"function"!==typeof a.brands.map)return Promise.reject(Error("UACH unavailable"));c=(a.brands||[]).map(function(e){var f=new Qm;f=Q(f,1,e.brand);return Q(f,2,e.version)});
kfa(Uk(Um,2,a.mobile),c);Tm=a.getHighEntropyValues(b)}var d=new Set(b);return Tm.then(function(e){var f=Um.clone();d.has("platform")&&Q(f,3,e.platform);d.has("platformVersion")&&Q(f,4,e.platformVersion);d.has("architecture")&&Q(f,5,e.architecture);d.has("model")&&Q(f,6,e.model);d.has("uaFullVersion")&&Q(f,7,e.uaFullVersion);return f}).catch(function(){return Um.clone()})};
Vm=function(a){this.oa=P(a)};
Wm=function(a){this.oa=P(a)};
Xm=function(a){this.oa=P(a,4)};
Ym=function(a){this.oa=P(a,35)};
Zm=function(a){this.oa=P(a,19)};
$m=function(a){this.oa=P(a,8)};
nfa=function(a){this.oa=P(a)};
cn=function(a){g.I.call(this);var b=this;this.componentId="";this.C=[];this.ra="";this.pageId=null;this.Ca=this.Y=-1;this.experimentIds=null;this.Z=this.G=0;this.Ha=1;this.timeoutMillis=0;this.logSource=a.logSource;this.zE=a.zE||function(){};
this.B=new an(a.logSource,a.nx);this.network=a.network;this.LB=a.LB||null;this.K=a.Yea||null;this.sessionIndex=a.sessionIndex||null;this.hE=a.hE||!1;this.logger=null;this.withCredentials=!a.AX;this.nx=a.nx||!1;this.N="undefined"!==typeof URLSearchParams&&!!(new URL(bn())).searchParams&&!!(new URL(bn())).searchParams.set;var c=S(new Vm,1,1);ofa(this.B,c);this.D=new g.Nm(1E4,3E5,.1);a=pfa(this,a.OW);this.j=new Km(this.D.getValue(),a);this.qa=new Km(6E5,a);this.hE||this.qa.start();this.nx||(document.addEventListener("visibilitychange",
function(){"hidden"===document.visibilityState&&b.ZO()}),document.addEventListener("pagehide",this.ZO.bind(this)))};
pfa=function(a,b){return a.N?b?function(){b().then(function(){a.flush()})}:function(){a.flush()}:function(){}};
bn=function(){return"https://play.google.com/log?format=json&hasfast=true"};
an=function(a,b){this.nx=b=void 0===b?!1:b;this.B=this.locale=null;this.j=new Zm;Number.isInteger(a)&&this.j.ZG(a);b||(this.locale=document.documentElement.getAttribute("lang"));ofa(this,new Vm)};
ofa=function(a,b){Ik(a.j,Vm,1,b);Bi(Lj(b,1))||S(b,1,1);a.nx||(b=dn(a),Ok(b,5)||Q(b,5,a.locale));a.B&&(b=dn(a),g.Hk(b,Rm,9)||Ik(b,Rm,9,a.B))};
qfa=function(a,b){Pj(en(a),Sm,11)&&(a=fn(a),S(a,1,b))};
rfa=function(a,b){Pj(en(a),Sm,11)&&(a=fn(a),Uk(a,2,b))};
en=function(a){return g.Hk(a.j,Vm,1)};
sfa=function(a){var b=void 0===b?lfa:b;var c=a.nx?void 0:vf();c?mfa(c,b).then(function(d){a.B=d;d=dn(a);Ik(d,Rm,9,a.B);return!0}).catch(function(){return!1}):Promise.resolve(!1)};
dn=function(a){a=en(a);var b=g.Hk(a,Sm,11);b||(b=new Sm,Ik(a,Sm,11,b));return b};
fn=function(a){a=dn(a);var b=g.Hk(a,Pm,10);b||(b=new Pm,Uk(b,2,!1),Ik(a,Pm,10,b));return b};
gn=function(){this.N6="undefined"!==typeof AbortController};
hn=function(a,b){g.I.call(this);this.logSource=a;this.sessionIndex=b;this.B="https://play.google.com/log?format=json&hasfast=true";this.j=null;this.C=!1;this.network=null;this.componentId="";this.pageId=this.qw=this.LB=null};
jn=function(a,b){a.j=b;return a};
kn=function(a,b){a.network=b;return a};
ln=function(a,b,c,d,e,f,h){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.I.call(this);this.logSource=a;this.componentId=b;f?b=f:(a=new hn(a,"0"),a.componentId=b,g.N(this,a),""!==c&&(a.B=c),d&&(a.C=!0),e&&jn(a,e),h&&kn(a,h),b=a.build());this.j=b};
mn=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}};
tfa=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""}};
nn=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;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
g.on=function(a){return(new ufa).Fk(a)};
ufa=function(){};
pn=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),pn(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),vfa(d,c),c.push(":"),pn(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":vfa(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);}}};
vfa=function(a,b){b.push('"',a.replace(wfa,function(c){var d=xfa[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),xfa[c]=d);return d}),'"')};
yfa=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"}};
qn=function(){};
rn=function(){};
sn=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};
tn=function(a){return a?decodeURI(a):a};
g.vn=function(a,b){return b.match(un)[a]||null};
g.wn=function(a){return tn(g.vn(3,a))};
g.zfa=function(a){a=a.match(un);return sn(a[1],a[2],a[3],a[4])};
xn=function(a){a=a.match(un);return sn(null,null,null,null,a[5],a[6],a[7])};
Afa=function(a){var b=a.indexOf("#");return 0>b?a:a.slice(0,b)};
yn=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?Ye(e):"")}}};
zn=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]};
An=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)An(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+g.Xe(b)))};
Bfa=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)An(a[b],a[b+1],c);return c.join("&")};
g.so=function(a){var b=[],c;for(c in a)An(c,a[c],b);return b.join("&")};
Cfa=function(a,b){var c=2==arguments.length?Bfa(arguments[1],0):Bfa(arguments,1);return zn(a,c)};
g.to=function(a,b){b=g.so(b);return zn(a,b)};
uo=function(a,b,c){c=null!=c?"="+g.Xe(c):"";return zn(a,b+c)};
Dfa=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};
vo=function(a,b){var c=a.search(Efa),d=Dfa(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 Ye(a.slice(d,-1!==e?e:0))};
wo=function(a,b){for(var c=a.search(Efa),d=0,e,f=[];0<=(e=Dfa(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(Ffa,"$1")};
Gfa=function(a,b,c){return uo(wo(a,b),b,c)};
g.xo=function(a){g.Ed.call(this);this.headers=new Map;this.N=a||null;this.C=!1;this.Ca=this.j=null;this.Y="";this.B=0;this.D="";this.G=this.Ga=this.Z=this.Ha=!1;this.ra=0;this.qa=null;this.La="";this.K=!1};
Ifa=function(a,b,c,d,e,f,h){var l=new g.xo;Hfa.push(l);b&&l.listen("complete",b);l.FF("ready",l.v7);f&&(l.ra=Math.max(0,f));h&&(l.K=h);l.send(a,c,d,e)};
Kfa=function(a,b){a.C=!1;a.j&&(a.G=!0,a.j.abort(),a.G=!1);a.D=b;a.B=5;Jfa(a);yo(a)};
Jfa=function(a){a.Ha||(a.Ha=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Lfa=function(a){if(a.C&&"undefined"!=typeof zo)if(a.Ca[1]&&4==g.Ao(a)&&2==a.getStatus())a.getStatus();else if(a.Z&&4==g.Ao(a))g.og(a.S_,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(Bo(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.B=6;try{var b=2<g.Ao(a)?a.j.statusText:""}catch(c){b=""}a.D=b+" ["+a.getStatus()+"]";Jfa(a)}}finally{yo(a)}}};
yo=function(a,b){if(a.j){Mfa(a);var c=a.j,d=a.Ca[0]?function(){}:null;
a.j=null;a.Ca=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Mfa=function(a){a.qa&&(g.Ta.clearTimeout(a.qa),a.qa=null)};
Bo=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.vn(1,String(a.Y)),!a&&g.Ta.self&&g.Ta.self.location&&(a=g.Ta.self.location.protocol.slice(0,-1)),b=!Nfa.test(a?a.toLowerCase():"");c=b}return c};
g.Ao=function(a){return a.j?a.j.readyState:0};
g.Co=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
g.Do=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.La){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.Ofa=function(a){var b={};a=(a.j&&2<=g.Ao(a)?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!g.fc(a[c])){var d=Sba(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 Wc(b,function(h){return h.join(", ")})};
g.Eo=function(a,b){return a.j?a.j.getResponseHeader(b):null};
Fo=function(){};
Go=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()};
Ho=function(a,b){this.logger=a;this.j=b;this.startMillis=Go()};
Pfa=function(){};
Qfa=function(a,b){this.dj=a;a=kn(jn(new hn(1828,"0"),"21"),new Fo);if(b){var c=new em;b=Yj(c,b,Ci);a.qw=b}b=new ln(1828,"","",!1,"",a.build());b=new g.Cg(b);this.clientError=new Fca(b);this.j=new Eg(b);this.G=new Dg(b);this.D=new Gca(b);this.C=new Hca(b);this.B=new Ica(b)};
Tfa=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=Rfa(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;12<=h;h-=12,l+=12)c+=Io(a,l),d+=Io(a,l+4),e+=Io(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 Sfa.toString(e)};
Rfa=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
Io=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
Ko=function(a,b,c){this.logger=a;this.event=b;if(void 0===c||c)this.startMillis=Jo()};
Ufa=function(){};
Lo=function(a,b,c,d){g.I.call(this);this.Mm=b;this.B=new Map;this.C=new Map;b=kn(jn(new hn(1828,"0"),"21"),new Fo);if(d){var e=new em;d=Yj(e,d,Ci);b.qw=d}this.G=new ln(1828,"","",!1,"",b.build());this.j=new g.Cg(this.G);c&&(this.j.C=1E5,c=this.j,c.flushInterval=3E4,c.j.setInterval(3E4));this.qa=new Aca(this.j);this.ra=new Dca(this.j);this.Ca=new Eca(this.j);this.Y=new zca(this.j);this.N=new Bca(this.j);this.Z=new Cca(this.j);this.errorCount=new Fca(this.j);this.K=new Eg(this.j);new Dg(this.j);new Gca(this.j);
new Hca(this.j);new Ica(this.j);this.D=Tfa(a);a=new yca(this.j);this.B.set("h",1);this.B.set("u",2);this.B.set("k",3);this.B.set("P",4);this.B.set("p",5);this.C.set(25,1);this.C.set(26,2);this.C.set(27,3);this.C.set(28,4);a.j.Qk("/client_streamz/bg/fic",this.Mm);g.N(this,this.G);g.N(this,this.j)};
Jo=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()};
Mo=function(a){this.oa=P(a)};
No=function(a){this.oa=P(a)};
Oo=function(a){this.oa=P(a,0,Oo.messageId)};
g.Po=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
Qo=function(a){function b(t,v,w){Promise.resolve().then(function(){q.done();d.j&&d.Lg.Xm();p.resolve({l7:t,cea:v,brb:w})})}
function c(t,v,w,A){if(l){var C="k";v?C="h":w&&(C="u");"k"!==C?0!==A&&d.Lg.Ur(C,t):0>=d.B?(d.Lg.Ur(C,t),d.B=Math.floor(200*Math.random())):d.B--}}
g.I.call(this);var d=this;this.j=!1;this.B=Math.floor(200*Math.random());if(a.challenge instanceof Oo){var e=Sk(a.challenge,4);var f=Sk(a.challenge,5)}else e=a.program,f=a.globalName;var h=Math.random(),l=.3>h;null!=a.t7&&(l=h<a.t7);l&&(this.j=!0);var m=new g.I;this.addOnDisposeCallback(function(){d.C.then(function(t){t=t.cea;d.Lg.Xm();null==t||t();m.dispose()})});
if(!1!==a.Q0)if(a.Lg)this.Lg=a.Lg;else{var n;g.N(m,this.Lg=new Lo(f,null!=(n=a.Mm)?n:"_",this.j))}else this.Lg=new Ufa;var p=new g.Po;this.C=p.promise;var q=new Ko(this.Lg,"t",!1);if(!g.Ta[f])throw this.Lg.iq(25),this.Lg.Xm(),Error("EGOU");if(!g.Ta[f].a)throw this.Lg.iq(26),this.Lg.Xm(),Error("ELIU");try{var r=g.Ta[f].a;q.start();this.D=g.u(r(e,b,!0,a.Wrb,c)).next().value;this.hT=p.promise.then(function(){})}catch(t){throw this.Lg.iq(28),this.Lg.Xm(),t;
}};
Ro=function(a,b,c){var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=a;b+=":";null!=c||(c=Error());if(c instanceof Error){this.message=b+c.message;var e;this.stack=null!=(e=c.stack)?e:""}else this.message=b+String(c),this.stack="";Object.setPrototypeOf(this,Ro.prototype)};
Vfa=function(a){if(!a)return null;a=Ok(a,4);return null===a||void 0===a?null:be(a)};
So=function(){this.B={};this.j=null};
To=function(){So.instance||(So.instance=new So);return So.instance};
Xfa=function(a){var b=To();return Wfa(b,g.Hk(a,Mo,1),g.Hk(a,No,2),Sk(a,3))};
Wfa=function(a,b,c,d){if(!b&&!c)return Promise.resolve();if(!d)return Yfa(b,c);var e;(e=a.B)[d]||(e[d]=new Promise(function(f,h){Yfa(b,c).then(function(){a.j=d;f()},function(l){delete a.B[d];
h(l)})}));
return a.B[d]};
Yfa=function(a,b){return b?Zfa(b):a?$fa(a):Promise.resolve()};
Zfa=function(a){return new Promise(function(b,c){var d=g.yf("SCRIPT"),e=Vfa(a);g.We(d,e);d.onload=function(){g.Ef(d);b()};
d.onerror=function(){g.Ef(d);c(Error("EWLS"))};
(g.nf("HEAD")[0]||document.documentElement).appendChild(d)})};
$fa=function(a){return new Promise(function(b){var c=g.yf("SCRIPT");if(a){var d=Ok(a,6);d=null===d||void 0===d?null:Hba(d)}else d=null;c.textContent=xe(d);Ve(c);(g.nf("HEAD")[0]||document.documentElement).appendChild(c);g.Ef(c);b()})};
cga=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a[c]+97;if(g.Ta.TextDecoder)b=(new TextDecoder).decode(b);else if(8192>=b.length)b=String.fromCharCode.apply(null,b);else{a="";for(c=0;c<b.length;c+=8192)a+=String.fromCharCode.apply(null,Array.prototype.slice.call(b,c,c+8192));b=a}return aga(b)};
Uo=function(a){this.oa=P(a)};
Vo=function(a){this.oa=P(a)};
Wo=function(a){this.oa=P(a)};
Xo=function(a,b,c){this.client=a;this.dj=b;this.j=c};
dga=function(a,b){try{return globalThis.sessionStorage.setItem(a,b),!0}catch(c){return!1}};
Yo=function(a,b,c,d){b=void 0===b?0:b;c=void 0===c?a.length:c;var e=0;for(d&&(e=Yo(d));b<c;b++)d="string"===typeof a?a.charCodeAt(b):a[b],e=ega(31,e)+d|0;return e};
fga=function(a,b){return[Yo(a,0,a.length>>1,b),Yo(a,a.length>>1)]};
gga=function(a){var b=g.u(fga(a,Zo));a=b.next().value;b=b.next().value;return a.toString(16)+b.toString(16)};
hga=function(a,b){var c=fga(b);a=new Uint32Array(a.buffer);b=a[0];var d=g.u(c);c=d.next().value;d=d.next().value;for(var e=1;e<a.length;e+=2){for(var f=b,h=e,l=c,m=d,n=0;22>n;n++)h=h>>>8|h<<24,h+=f|0,h^=l+38293,f=f<<3|f>>>29,f^=h,m=m>>>8|m<<24,m+=l|0,m^=n+38293,l=l<<3|l>>>29,l^=m;f=[f,h];a[e]^=f[0];e+1<a.length&&(a[e+1]^=f[1])}};
iga=function(a,b,c,d,e){var f=(4-(Zo.length+c.length)%4)%4,h=new Uint8Array(4+f+Zo.length+4+c.length),l=new DataView(h.buffer),m=0;l.setUint32(m,4294967295*Math.random());m=m+4+f;h.set(Zo,m);m+=Zo.length;l.setUint32(m,e);h.set(c,m+4);hga(h,d);return a.Dh(b,function(n){return void globalThis.sessionStorage.removeItem(n)})?dga(b,g.Hg(h))?"s":"t":"i"};
jga=function(a,b){var c=globalThis.sessionStorage.getItem(a);if(!c)return["m"];try{var d=Jg(c);hga(d,b)}catch(e){return globalThis.sessionStorage.removeItem(a),["c"]}for(b=4;7>b&&0===d[b];)b++;for(c=0;c<Zo.length;c++)if(d[b++]!==Zo[c])return globalThis.sessionStorage.removeItem(a),["d"];c=(new DataView(d.buffer)).getUint32(b);return Math.floor(Date.now()/1E3)>=c?(globalThis.sessionStorage.removeItem(a),["e"]):["a",new Uint8Array(d.buffer,b+4)]};
$o=function(a,b,c){c=void 0===c?[]:c;this.maxItems=a;this.j=void 0===b?0:b;this.B=c};
kga=function(a){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!b)return new $o(a);var c=b.split(",");if(2>c.length)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new $o(a);b=c.slice(1);1===b.length&&""===b[0]&&(b=[]);c=Number(c[0]);return isNaN(c)||0>c||c>b.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new $o(a)):new $o(a,c,b)};
lga=function(a,b){this.logger=b;try{var c=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(d){c=!1}c&&(this.index=kga(a))};
mga=function(a,b,c,d,e){var f=a.index?a.logger.Lm(function(){return iga(a.index,gga(null!=b?b:[]),c,d,e)},"W"):"u";
a.logger.RZ(f)};
nga=function(a,b,c){var d=g.u(a.index?a.logger.Lm(function(){return jga(gga(null!=b?b:[]),c)},"R"):["u"]),e=d.next().value;
d=d.next().value;a.logger.SZ(e);return d};
ap=function(a){g.I.call(this);var b=this;this.logger=a;this.D=new g.Po;this.addOnDisposeCallback(function(){return b.D.reject()})};
bp=function(a,b){var c=setTimeout(function(){a.D.resolve()},b);
a.addOnDisposeCallback(function(){return void clearTimeout(c)})};
cp=function(a,b){return a.logger.Lm(function(){return a.G(b)},a.C)};
dp=function(a,b,c,d){ap.call(this,a);this.K=b;this.Z=c;this.C="m";this.B="x";this.N=0;bp(this,d)};
ep=function(a,b,c){ap.call(this,a);this.K=b;this.C="f";this.B="z";bp(this,c)};
fp=function(a,b,c){ap.call(this,a);this.K=b;this.C="w";this.B="z";bp(this,c)};
gp=function(a,b){ap.call(this,a);this.error=b;this.C="e";this.B="y"};
pga=function(a,b){var c=(b(a.error.message)+":"+b(a.error.stack)).substring(0,2048);b=c.length+1;c=oga(c);var d=new Uint8Array(4+c.length);d.set([42,b&127|128,b>>7,a.error.code]);d.set(c,4);return d};
hp=function(a,b,c){ap.call(this,a);this.K=b;this.clientState=c;this.C="S";this.B="q"};
oga=function(a){return globalThis.TextEncoder?(new TextEncoder).encode(a):g.Gg(a)};
ip=function(a,b,c){g.I.call(this);var d=this;this.logger=a;this.onError=b;this.state=c;this.C=0;this.addOnDisposeCallback(function(){d.j&&(d.j.dispose(),d.j=void 0)})};
qga=function(a,b){var c,d=null==(c=a.j)?void 0:cp(c,function(){return jp(a,b)}),e;
if(d&&a.j instanceof dp&&(null==(e=b.ir)?0:e.BT))try{var f;null==(f=a.cache)||mga(f,jp(a,b),d,b.ir.wI,a.G)}catch(h){a.reportError(new Ro(24,"ELX:write",h))}return d};
rga=function(a,b){try{var c;if(null==(c=b.ir)?0:c.TN){var d,e=null==(d=a.cache)?void 0:nga(d,jp(a,b),b.ir.wI);if(e)return a.logger.Lm(function(){return g.Hg(e,2)},"a")}}catch(f){a.reportError(new Ro(23,"RXO:read",f))}};
sga=function(a,b){if(!b.K$)throw new Ro(29,"SDF:notready");return cp(new hp(a.logger,a.C,a.state),function(){return jp(a,b)})};
tga=function(a,b){b=b instanceof Ro?b:new Ro(5,"TVD:error",b);a.reportError(b);return cp(new gp(a.logger,b),function(){return[]})};
jp=function(a,b){return b.eJ?b.eJ:b.Ct?a.logger.Lm(function(){return b.eJ=oga(b.Ct)},"c"):[]};
kp=function(a){this.oa=P(a)};
lp=function(a,b,c){this.j=a;this.C=b;this.B=c};
mp=function(a,b,c){c=void 0===c?{}:c;this.zda=a;this.j=c;this.B=b};
np=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.B=e};
uga=function(a,b,c){c=void 0===c?{}:c;return new lp(b,a,c)};
op=function(a){this.oa=P(a)};
pp=function(a){this.oa=P(a)};
qp=function(a){this.oa=P(a)};
rp=function(a){this.oa=P(a)};
sp=function(a,b){this.N=a.V$;this.Z=b;this.j=a.xhr;this.C=[];this.G=[];this.K=[];this.D=[];this.B=[];this.N&&vga(this)};
yga=function(a,b){g.ud(a.j,"complete",function(){if(Bo(a.j)){var c=g.Co(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.Z(c)}catch(h){dq(a,new nn(13,"Error when deserializing response data; error: "+h+(", response: "+c)));return}c=mn(a.j.getStatus());eq(a,fq(a));0==c?wga(a,d):dq(a,new nn(c,"Xhr succeeded but the status code is not 200"))}else{c=g.Co(a.j);d=fq(a);if(c){var e=xga(a,c);c=e.code;var f=e.details;
e=e.metadata}else c=2,f="Rpc failed due to xhr error. error code: "+a.j.B+", error: "+a.j.getLastError(),e=d;eq(a,d);dq(a,new nn(c,f,e))}})};
vga=function(a){a.N.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.Z(c)}catch(e){dq(a,new nn(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&wga(a,d)}if("2"in b)for(b=xga(a,b["2"]),c=0;c<a.K.length;c++)a.K[c](b)});
a.N.on("end",function(){eq(a,fq(a));for(var b=0;b<a.D.length;b++)a.D[b]()});
a.N.on("error",function(){if(0!=a.B.length){var b=a.j.B;0!==b||Bo(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=mn(c);break;default:d=14}eq(a,fq(a));b=yfa(b)+", error: "+a.j.getLastError();-1!=c&&(b+=", http status code: "+c);dq(a,new nn(d,b))}})};
fq=function(a){var b={},c=g.Ofa(a.j);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
xga=function(a,b){var c=2,d={};try{var e=zga(b);c=Pk(e,1);var f=e.getMessage();uea(e,qp).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.j&&404===a.j.getStatus()?(c=5,f="Not Found: "+String(a.j.Y)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
gq=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
wga=function(a,b){for(var c=0;c<a.C.length;c++)a.C[c](b)};
eq=function(a,b){for(var c=0;c<a.G.length;c++)a.G[c](b)};
dq=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
g.hq=function(a){this.K=a.lfa||null;this.G=a.X1||!1;this.B=void 0};
iq=function(a,b){g.Ed.call(this);this.ra=a;this.K=b;this.G=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.Z=new Headers;this.B=null;this.qa="GET";this.Y="";this.j=!1;this.N=this.C=this.D=null};
Aga=function(a){a.C.read().then(a.m9.bind(a)).catch(a.VJ.bind(a))};
kq=function(a){a.readyState=4;a.D=null;a.C=null;a.N=null;jq(a)};
jq=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
g.lq=function(a){this.j=this.Z=this.G="";this.D=null;this.K=this.B="";this.N=!1;var b;a instanceof g.lq?(this.N=a.N,g.mq(this,a.G),this.Z=a.Z,g.nq(this,a.j),g.oq(this,a.D),this.B=a.B,pq(this,a.C.clone()),this.K=a.K):a&&(b=String(a).match(un))?(this.N=!1,g.mq(this,b[1]||"",!0),this.Z=qq(b[2]||""),g.nq(this,b[3]||"",!0),g.oq(this,b[4]),this.B=qq(b[5]||"",!0),pq(this,b[6]||"",!0),this.K=qq(b[7]||"")):(this.N=!1,this.C=new rq(null,this.N))};
g.mq=function(a,b,c){a.G=c?qq(b,!0):b;a.G&&(a.G=a.G.replace(/:$/,""))};
g.nq=function(a,b,c){a.j=c?qq(b,!0):b};
g.oq=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.D=b}else a.D=null};
pq=function(a,b,c){b instanceof rq?(a.C=b,Bga(a.C,a.N)):(c||(b=sq(b,Cga)),a.C=new rq(b,a.N))};
g.tq=function(a,b,c){a.C.set(b,c)};
g.uq=function(a){return a instanceof g.lq?a.clone():new g.lq(a)};
qq=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
sq=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Dga),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
Dga=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
rq=function(a,b){this.B=this.j=null;this.C=a||null;this.D=!!b};
vq=function(a){a.j||(a.j=new Map,a.B=0,a.C&&yn(a.C,function(b,c){a.add(Ye(b),c)}))};
Ega=function(a,b){vq(a);b=wq(a,b);return a.j.has(b)};
g.Fga=function(a,b,c){a.remove(b);0<c.length&&(a.C=null,a.j.set(wq(a,b),g.Lb(c)),a.B=a.B+c.length)};
wq=function(a,b){b=String(b);a.D&&(b=b.toLowerCase());return b};
Bga=function(a,b){b&&!a.D&&(vq(a),a.C=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.Fga(this,e,c))},a));
a.D=b};
g.Gga=function(a){var b="";g.Uc(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.xq=function(a,b,c){if(g.gd(c))return a;c=g.Gga(c);if("string"===typeof a)return uo(a,g.Xe(b),c);g.tq(a,b,c);return a};
g.yq=function(a){g.I.call(this);this.B=a;this.j={}};
Hga=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)Hga(a,b,c[h],d,e,f);else{b=td(b,c,d||a.handleEvent,e,f||a.B||a);if(!b)return a;a.j[b.key]=b}return a};
Iga=function(){this.C=!0;this.B=0;this.j=""};
Jga=function(a,b,c){a.C=!1;throw Error("The stream is broken @"+a.B+". Error: "+c+". With input:\n"+b);};
zq=function(){this.K=null;this.N=[];this.D=this.B=this.C=this.j=this.Y=0;this.G=null;this.Z=0};
Aq=function(a,b,c,d){a.j=3;a.K="The stream is broken @"+a.Y+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.K);};
Bq=function(){this.j=null;this.B=0;this.C=new Iga;this.D=new zq};
Kga=function(a,b,c){a.j="The stream is broken @"+a.B+". Error: "+c+". With input:\n"+b;throw Error(a.j);};
Cq=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
Dq=function(a){this.Y=null;this.K=[];this.D="";this.ra=[];this.C=this.B=0;this.N=!1;this.Z=0;this.Ca=/[\\"]/g;this.j=this.G=0;this.qa=!(!a||!a.R7)};
Eq=function(a,b,c){a.G=3;a.Y="The stream is broken @"+a.C+"/"+c+". With input:\n"+b;throw Error(a.Y);};
Fq=function(){this.G=this.C=null;this.B=this.j=0;this.D=[];this.K=!1};
Lga=function(a){var b=g.Eo(a,"Content-Type");if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new Fq:new Dq:b.startsWith("application/x-protobuf")?(a=g.Eo(a,"Content-Transfer-Encoding"))?"base64"==a.toLowerCase()?new Bq:null:new zq:null};
Gq=function(a){this.j=a;this.B=null;this.D=this.C=0;this.Y=!1;this.G=this.N=this.K=null;this.Z=new g.yq(this);this.Z.listen(this.j,"readystatechange",this.qa)};
Hq=function(a,b){a.D!=b&&(a.D=b,a.N&&a.N())};
Iq=function(a){a.Z.removeAll();if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}};
Mga=function(a){a=this.C=a;var b=(0,g.gb)(this.Baa,this);a.G=b;a=this.C;b=(0,g.gb)(this.pca,this);a.N=b;this.B={};this.j={}};
Nga=function(a,b){for(var c={},d=0;d<a.length;c={e_:void 0},d++)c.e_=a[d],b.forEach(function(e){return function(f){try{f(e.e_)}catch(h){}}}(c))};
Jq=function(a,b){var c=a.B[b];c&&c.forEach(function(d){try{d()}catch(e){}});
(c=a.j[b])&&c.forEach(function(d){d()});
a.j[b]=[]};
Oga=function(){var a={format:"jspb"};a=void 0===a?{}:a;this.G=a.Nrb||g.Xa("suppressCorsPreflight",a)||!1;this.B=a.withCredentials||g.Xa("withCredentials",a)||!1;this.D=a.Mrb||[];this.K=a.Srb||[];this.j=a.Xrb;this.C=a.Urb||!1};
Kq=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return Pga(function(h){return new Qga(function(l,m){var n={},p=Rga(a,h,f);p.on("error",function(q){return m(q)});
p.on("metadata",function(q){n=q});
p.on("data",function(q){var r=h.AJ(),t=n;t=void 0===t?{}:t;l(new mp(q,r,t))})})},a.K).call(a,uga(e,c,d)).then(function(h){return h.zda})};
Rga=function(a,b,c){var d=b.AJ(),e=b.getMetadata(),f=Sga(a,!0);a=Tga(a,e,f,c+d.getName());c=Uga(f,d.B,!1);yga(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.j(b.j);f.send(a,"POST",b);return c};
Sga=function(a,b){b=a.C&&!b;return a.j||b?new g.xo(new g.hq({lfa:a.j,X1:b})):new g.xo};
Tga=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]="grpc-web-javascript/0.1";var e=b.Authorization;if(e&&Vga.has(e.split(" ")[0])||a.B)c.K=!0;if(a.G)d=g.xq(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d};
Uga=function(a,b,c){if(c){a.isActive();c=new Gq(a);var d=new Mga(c)}return new sp({xhr:a,V$:d},b)};
Pga=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
return c};
Lq=function(){this.j=new Oga;this.B="https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
Mq=function(a){g.I.call(this);this.owner=a;this.signals=new Set;a&&g.N(a,this)};
Nq=function(a,b,c){var d=Wga;a.signals.has(b);d({signal:b,data:c})};
Oq=function(a){g.I.call(this);this.TW=a;this.slots=new Map;this.UB=new Set;this.MY=!1};
Xga=function(a,b){a.Na()||a.slots.set(b,{slotId:b,slot:void 0,wX:function(){return a.slots.delete(b)}})};
Yga=function(a,b){return new Promise(function(c){Pq(function(){a.TW&&(a.CZ=b,a.MY=!0);for(var d=g.u(a.slots.values()),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.slotId;f=f.slot;try{f(b,{signal:a,slotId:e})}catch(h){Pf(h)}}d=g.u(a.UB);for(e=d.next();!e.done;e=d.next())e.value.resolve(b);a.UB.clear();c()})})};
Wga=function(){var a=g.Ia.apply(0,arguments);0===a.length?Promise.resolve():1===a.length?(a=a[0],Yga(a.signal,a.data)):Promise.all(a.map(function(b){return Yga(b.signal,b.data)})).then()};
Pq=function(a){Qq.push(a);Zga()};
Zga=function(){var a,b;g.G(function(c){switch(c.j){case 1:if(Rq)return c.return();g.Ba(c,2,3);Rq=!0;a=$ga(0);case 5:if(!(a<Qq.length)){c.Ia(3);break}return g.z(c,Promise.resolve(),8);case 8:a=$ga(a);c.Ia(5);break;case 3:g.Ea(c);Qq.length=0;Rq=!1;g.Fa(c,0);break;case 2:b=g.Da(c),Pf(b),c.Ia(3)}})};
$ga=function(a){for(var b=a+100;a<b&&a<Qq.length;)try{Qq[a++]()}catch(c){Pf(c)}return a};
aha=function(a,b){if(a.Na())b();else{var c=Sq.get(a);if(c)c.push(b);else{var d=[b];Sq.set(a,d);a.addOnDisposeCallback(function(){for(var e=g.u([].concat(g.qa(d))),f=e.next();!f.done;f=e.next())f=f.value,f();Sq.delete(a)})}}};
Tq=function(a,b,c){g.I.call(this);this.N=a;this.milliseconds=b;this.Fb=c;this.state=this.D=0};
bha=function(a){return new Tq(!1,a,{SR:function(){},
y_:void 0})};
Uq=function(a){xb.call(this,a);this.name="TimerCancelledError"};
Vq=function(a){xb.call(this,a);this.name="TimerDisposedError"};
cha=function(a){var b=new Lq,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new Xo(b,a,function(){return c})};
Wq=function(a){var b;ip.call(this,a.nrb?new Pfa:new Qfa(a.dj,a.qw),null!=(b=a.onError)?b:function(){},1);
this.D=new g.Po;this.B=void 0;this.Zz=a.Zz;this.AR=a.AR;var c;this.onEvent=null!=(c=a.onEvent)?c:function(){}};
dha=function(a,b,c,d){if(!d)throw new Ro(4,"PMD:Undefined");var e=d(Zg(Xj(b,1)));if(!(e instanceof Function))throw new Ro(16,"APF:Failed");d=1E3*Qk(b,2);b=new dp(a.logger,e,Qk(b,3),d);a.G=Math.floor((Date.now()+d)/1E3);g.N(b,c);return b};
fha=function(a){var b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,C,F,H,M;return g.G(function(L){switch(L.j){case 1:b=void 0,c=a.isReady()?6E4:1E3,d=new g.Nm(c,6E5,.25,2),e={},f=1;case 2:if(!(2>=f)){L.Ia(4);break}g.Ba(L,5);a.state=3;a.C=f-1;return g.z(L,a.B&&1===f?a.B:a.sE(f),7);case 7:return h=L.B,a.B=void 0,a.state=4,l=new Ho(a.logger,"b"),g.z(L,Xfa(h),8);case 8:return a.state=5,a.onEvent(1),e.aO=3,m=new Qo({challenge:h}),n=Xq(a,12E4).then(function(ba){return function(){a.onEvent(ba.aO);return Promise.reject(new Ro(15,
"MDA:Timeout"))}}(e)),g.z(L,Promise.race([m.hT,
n]),9);case 9:return a.onEvent(2),p=[],a.onEvent(4),e.aO=6,g.z(L,Promise.race([m.snapshot({l3:p}),n]),10);case 10:return q=L.B,a.onEvent(5),r=g.u(p),v=t=r.next().value,l.done(),a.state=6,g.z(L,eha(a,a.logger.NQ("g",f,a.Zz.OX(q)),new Ro(10,"BWB:Timeout")),11);case 11:w=L.B;a.state=7;A=new Ho(a.logger,"i");if(Sk(w,4)){m.dispose();var R=new fp(a.logger,Sk(w,4),1E3*Qk(w,2))}else Qk(w,3)?R=dha(a,w,m,v):(m.dispose(),R=new ep(a.logger,Zg(Xj(w,1)),1E3*Qk(w,2)));C=R;A.done();H=F=void 0;null==(H=(F=a).AR)||
H.call(F,Zg(Xj(w,1)));a.state=8;return L.return(C);case 5:M=g.Da(L);b=M instanceof Ro?M:M instanceof Vq?new Ro(20,"WTO:Disposed",M):M instanceof nn?new Ro(11,"EBH:Error",M):new Ro(12,"BSO:Unknown",M);a.reportError(b);a:{if(M instanceof nn)switch(M.code){case 2:case 13:case 14:case 4:R=!0;break a;default:R=!1;break a}R=M instanceof Ro?20!==M.code:!0}if(!R)throw b;return g.z(L,Xq(a,d.getValue()),12);case 12:g.Om(d);case 3:e={aO:void 0};f++;L.Ia(2);break;case 4:throw b;}})};
Xq=function(a,b){b=bha(b);g.N(a,b);b.start();return b.Z};
eha=function(a,b,c){return Promise.race([b,Xq(a,12E4).then(function(){return Promise.reject(c)})])};
gha=function(a){var b,c,d;g.G(function(e){switch(e.j){case 1:return b=void 0,g.Ba(e,5),g.z(e,fha(a),7);case 7:b=e.B;g.Ca(e,6);break;case 5:c=g.Da(e);if(a.j){a.logger.vK(13);e.Ia(0);break}a.logger.vK(14);b=new gp(a.logger,c instanceof Ro?c:new Ro(14,"SOM:Init",c instanceof Error?c:Error(String(c))));case 6:return d=void 0,null==(d=a.j)||d.dispose(),a.j=b,a.D.resolve(),g.Ba(e,8),g.z(e,a.j.D.promise,10);case 10:g.Ca(e,1);break;case 8:g.Da(e),e.Ia(0)}})};
hha=function(a){var b={};g.bc(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.j(e)||(b[d]=null)):b[d]=c});
uaa(a,function(c){return null===b[c.event]})};
Yq=function(){this.Be=0;this.j=!1;this.B=-1;this.ix=!1;this.Ek=0};
Zq=function(){this.B=null;this.j=!1};
$q=function(a){Zq.call(this);this.D=a};
ar=function(){Zq.call(this)};
Er=function(){Zq.call(this)};
Fr=function(){this.j={};this.B=!0;this.C={}};
Gr=function(a,b,c){a.j[b]||(a.j[b]=new $q(c));return a.j[b]};
iha=function(a){a.j.queryid||(a.j.queryid=new Er)};
Hr=function(a,b,c){(a=a.j[b])&&a.C(c)};
Ir=function(a,b){if(g.dd(a.C,b))return a.C[b];if(a=a.j[b])return a.getValue()};
Jr=function(a){var b={},c=g.Vc(a.j,function(d){return d.j});
g.Uc(c,function(d,e){d=void 0!==a.C[e]?String(a.C[e]):d.j&&null!==d.B?String(d.B):"";0<d.length&&(b[e]=d)},a);
return b};
jha=function(a){a=Jr(a);var b=[];g.Uc(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
lha=function(a){Gr(a,"od",kha);Gr(a,"opac",Kr).j=!0;Gr(a,"sbeos",Kr).j=!0;Gr(a,"prf",Kr).j=!0;Gr(a,"mwt",Kr).j=!0;Gr(a,"iogeo",Kr)};
mha=function(){this.j=this.Du=null};
Lr=function(){};
Nr=function(){if(!Mr())throw Error();};
Mr=function(){return!(!Or||!Or.performance)};
Pr=function(a){return a?a.passive&&nha()?a:a.capture||!1:!1};
Qr=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Pr(d)),!0):!1};
Rr=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
oha=function(){};
pha=function(){return(qc||rc)&&sc?sc.mobile:!Sr()&&(xc("iPod")||xc("iPhone")||xc("Android")||xc("IEMobile"))};
Sr=function(){return(qc||rc)&&sc?!sc.mobile&&(xc("iPad")||xc("Android")||xc("Silk")):xc("iPad")||xc("Android")&&!xc("Mobile")||xc("Silk")};
Tr=function(a){try{return!!a&&null!=a.location.href&&Nc(a,"foo")}catch(b){return!1}};
Ur=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
rha=function(){var a=[];Ur(qha,function(b){a.push(b)});
return a};
sha=function(a){var b,c;return null!=(c=null==(b=/https?:\/\/[^\/]+/.exec(a))?void 0:b[0])?c:""};
vha=function(){var a=tha("IFRAME"),b={};g.bc(uha(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
tha=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};
wha=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,Tr(a)&&(b=a);return b};
Aha=function(a){a=a||Vr();for(var b=new xha(g.Ta.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&yha.test(f.url)&&(c=f);if(f.url&&!f.xQ){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new zha(b,e,c)};
Vr=function(){var a=g.Ta,b=[],c=null;do{var d=a;if(Tr(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new xha(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.Ta;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.xQ=!0);return b};
zha=function(a,b,c){this.j=a;this.B=b;this.C=c};
xha=function(a,b){this.url=a;this.xQ=!!b;this.depth=null};
Wr=function(){this.C="&";this.B={};this.D=0;this.j=[]};
Xr=function(a,b){var c={};c[a]=b;return[c]};
Bha=function(a,b,c,d,e){var f=[];Ur(a,function(h,l){(h=Yr(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
Yr=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(Yr(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(Bha(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
Cha=function(a){var b=1,c;for(c in a.B)b=c.length>b?c.length:b;return 3997-b-a.C.length-1};
Zr=function(a,b){this.j=a;this.depth=b};
Eha=function(){function a(l,m){return null==l?m:l}
var b=Vr(),c=Math.max(b.length-1,0),d=Aha(b);b=d.j;var e=d.B,f=d.C,h=[];f&&h.push(new Zr([f.url,f.xQ?2:0],a(f.depth,1)));e&&e!=f&&h.push(new Zr([e.url,2],0));b.url&&b!=f&&h.push(new Zr([b.url,0],a(b.depth,c)));d=g.$r(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=sha(b.url))&&d.push([new Zr([e,1],a(b.depth,c))]);d.push([]);return g.$r(d,function(l){return Dha(c,l)})};
Dha=function(a,b){g.as(b,function(e){return 0<=e.depth});
var c=bs(b,function(e,f){return Math.max(e,f.depth)},-1),d=zaa(c+2);
d[0]=a;g.bc(b,function(e){return d[e.depth+1]=e.j});
return d};
Fha=function(){var a=void 0===a?Eha():a;return a.map(function(b){return Yr(b)})};
Gha=function(a){var b=!1;b=void 0===b?!1:b;Or.google_image_requests||(Or.google_image_requests=[]);var c=tha("IMG",Or.document);b&&(c.attributionSrc="");c.src=a;Or.google_image_requests.push(c)};
cs=function(a){var b="hh";if(a.hh&&a.hasOwnProperty(b))return a.hh;var c=new a;a.hh=c;a.hasOwnProperty(b);return c};
ds=function(){this.B=new oha;this.j=Mr()?new Nr:new Lr};
Hha=function(){es();var a=Or.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Or.setInterval&&"function"===typeof Or.clearInterval&&"function"===typeof Or.setTimeout&&"function"===typeof Or.clearTimeout)};
Iha=function(){es();return Fha()};
Jha=function(){};
es=function(){var a=cs(Jha);if(!a.j){if(!Or)throw Error("Context has not been set and window is undefined.");a.j=cs(ds)}return a.j};
fs=function(a){this.oa=P(a)};
Kha=function(a){this.C=a;this.j=-1;this.B=this.D=0};
gs=function(a,b){return function(){var c=g.Ia.apply(0,arguments);if(-1<a.j)return b.apply(null,g.qa(c));try{return a.j=a.C.j.now(),b.apply(null,g.qa(c))}finally{a.D+=a.C.j.now()-a.j,a.j=-1,a.B+=1}}};
Lha=function(a,b){this.B=a;this.C=b;this.j=new Kha(a)};
Mha=function(){this.j={}};
Oha=function(){var a=hs().flags,b=Nha;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};
Sha=function(){this.C=void 0;this.B=this.K=0;this.G=-1;this.Kc=new Fr;Gr(this.Kc,"mv",Pha).j=!0;Gr(this.Kc,"omid",Kr);Gr(this.Kc,"epoh",Kr).j=!0;Gr(this.Kc,"epph",Kr).j=!0;Gr(this.Kc,"umt",Kr).j=!0;Gr(this.Kc,"phel",Kr).j=!0;Gr(this.Kc,"phell",Kr).j=!0;Gr(this.Kc,"oseid",Qha).j=!0;var a=this.Kc;a.j.sloi||(a.j.sloi=new ar);a.j.sloi.j=!0;Gr(this.Kc,"mm",is);Gr(this.Kc,"ovms",Rha).j=!0;Gr(this.Kc,"xdi",Kr).j=!0;Gr(this.Kc,"amp",Kr).j=!0;Gr(this.Kc,"prf",Kr).j=!0;Gr(this.Kc,"gtx",Kr).j=!0;Gr(this.Kc,
"mvp_lv",Kr).j=!0;Gr(this.Kc,"ssmol",Kr).j=!0;Gr(this.Kc,"fmd",Kr).j=!0;Gr(this.Kc,"gen204simple",Kr);this.j=new Lha(es(),this.Kc);this.D=!1;this.flags=new Mha};
hs=function(){return cs(Sha)};
Tha=function(a,b,c,d){if(Math.random()<(d||a.j))try{if(c instanceof Wr)var e=c;else e=new Wr,Ur(c,function(h,l){var m=e,n=m.D++;h=Xr(l,h);m.j.push(n);m.B[n]=h});
var f=e.Ke(a.B,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");f&&(es(),Gha(f))}catch(h){}};
Uha=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};
Vha=function(){var a=void 0===a?g.Ta:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.lb()};
Wha=function(){var a=void 0===a?g.Ta:a;return(a=a.performance)&&a.now?a.now():null};
Xha=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()};
ks=function(){var a=window;this.events=[];this.B=a||g.Ta;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=js()||(null!=b?b:1>Math.random())};
Yha=function(a){a&&ls&&js()&&(ls.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),ls.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Zha=function(){var a=ms;this.j=ns;this.JX="jserror";this.rT=!0;this.NN=null;this.B=this.RQ;this.od=void 0===a?null:a};
$ha=function(a,b,c){var d=os;return gs(hs().j.j,function(){try{if(d.od&&d.od.j){var e=d.od.start(a.toString(),3);var f=b();d.od.end(e)}else f=b()}catch(l){var h=d.rT;try{Yha(e),h=d.B(a,new ps(qs(l)),void 0,c)}catch(m){d.RQ(217,m)}if(!h)throw l;}return f})()};
rs=function(a,b,c,d){return gs(hs().j.j,function(){var e=g.Ia.apply(0,arguments);return $ha(a,function(){return b.apply(c,e)},d)})};
qs=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=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");break a}catch(e){b=c;break a}b=void 0}return b};
ps=function(a){Uha.call(this,Error(a),{message:a})};
aia=function(){Or&&"undefined"!=typeof Or.google_measure_js_timing&&(Or.google_measure_js_timing||ms.disable())};
bia=function(a){os.NN=function(b){g.bc(a,function(c){c(b)})}};
cia=function(a,b){return $ha(a,b)};
ts=function(a,b){return rs(a,b)};
us=function(a,b,c,d){os.RQ(a,b,c,d)};
vs=function(){return Date.now()-dia};
eia=function(){var a=hs().C,b=0<=ws?vs()-ws:-1,c=xs?vs()-ys:-1,d=0<=zs?vs()-zs:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];us(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};
As=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
Bs=function(a){return a.right-a.left};
Cs=function(a,b,c){b instanceof g.Ee?(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};
fia=function(a,b,c){var d=new As(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.j=d;this.B=c};
Ds=function(a,b,c,d,e,f,h,l){this.D=a;this.N=b;this.C=c;this.K=d;this.j=e;this.G=f;this.B=h;this.Z=l};
hia=function(a){var b=a!==a.top,c=a.top===wha(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),bba(gia,function(h){return"function"===typeof f[h]})||(e=1));
return{Ao:f,compatibility:e,gea:d}};
iia=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint};
jia=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.Ke(b.innerWidth,b.innerHeight)).round():Vba(b||window).round()}catch(d){return new g.Ke(-12245933,-12245933)}};
Es=function(a,b,c){try{a&&(b=b.top);var d=jia(a,b,c),e=d.height,f=d.width;if(-12245933===f)return new As(f,f,f,f);var h=Xba(lf(b.document).j),l=h.x,m=h.y;return new As(m,l+f,m+e,l)}catch(n){return new As(-12245933,-12245933,-12245933,-12245933)}};
g.Fs=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
Gs=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.Is=function(a,b,c){if("string"===typeof b)(b=Hs(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Hs(c,d);f&&(c.style[f]=e)}};
Hs=function(a,b){var c=kia[b];if(!c){var d=Pba(b);c=d;void 0===a.style[d]&&(d=(g.Pc?"Webkit":Js?"Moz":g.Ks?"ms":null)+Rba(d),void 0!==a.style[d]&&(c=d));kia[b]=c}return c};
g.Ls=function(a,b){var c=a.style[Pba(b)];return"undefined"!==typeof c?c:a.style[Hs(a,b)]||""};
Ms=function(a,b){var c=kf(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
Ns=function(a,b){return Ms(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Ps=function(a,b,c){if(b instanceof g.Ee){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Os(d,!1);a.style.top=g.Os(b,!1)};
Qs=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
lia=function(a){var b=kf(a),c=Ns(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=Ns(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.Rs=function(a){var b=kf(a),c=new g.Ee(0,0);if(a==(b?kf(b):document).documentElement)return c;a=Qs(a);b=Xba(lf(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c};
nia=function(a,b){var c=new g.Ee(0,0),d=vf(kf(a));if(!Nc(d,"parent"))return c;do{var e=d==b?g.Rs(a):mia(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.Ss=function(a,b){a=oia(a);b=oia(b);return new g.Ee(a.x-b.x,a.y-b.y)};
mia=function(a){a=Qs(a);return new g.Ee(a.left,a.top)};
oia=function(a){if(1==a.nodeType)return mia(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Ee(a.clientX,a.clientY)};
g.Ts=function(a,b,c){if(b instanceof g.Ke)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Os(b,!0);a.style.height=g.Os(c,!0)};
g.Os=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Us=function(a){var b=pia;if("none"!=Ns(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};
pia=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Pc&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Qs(a),new g.Ke(a.right-a.left,a.bottom-a.top)):new g.Ke(b,c)};
g.Vs=function(a,b){a.style.display=b?"":"none"};
Ws=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
qia=function(a){return new As(a.top,a.right,a.bottom,a.left)};
ria=function(a){var b=a.top||0,c=a.left||0;return new As(b,c+(a.width||0),b+(a.height||0),c)};
Xs=function(a){return null!=a&&0<=a&&1>=a};
sia=function(){var a=g.pc();return a?Ys("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(b){return kc(a,b)})||kc(a,"OMI/")&&!kc(a,"XiaoMi/")?!0:kc(a,"Presto")&&kc(a,"Linux")&&!kc(a,"X11")&&!kc(a,"Android")&&!kc(a,"Mobi"):!1};
tia=function(){this.C=!Tr(Or.top);this.isMobileDevice=Sr()||pha();var a=Vr();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.wn(a[a.length-1].url)||"":"";this.j=new As(0,0,0,0);this.D=new g.Ke(0,0);this.G=new g.Ke(0,0);this.N=new As(0,0,0,0);this.frameOffset=new g.Ee(0,0);this.K=0;this.Z=!1;this.B=!(!Or||!hia(Or).Ao);this.update(Or)};
uia=function(a,b){b&&b.screen&&(a.D=new g.Ke(b.screen.width,b.screen.height))};
via=function(a,b){a:{var c=a.j?new g.Ke(Bs(a.j),a.j.getHeight()):new g.Ke(0,0);b=void 0===b?Or: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 r=new g.Ke(e,d);break a}catch(t){r=new g.Ke(-12245933,-12245933);break a}r=void 0}a.G=r};
at=function(){var a=Zs();if(0<a.K||a.Z)return!0;a=es().B.isVisible();var b=0===Rr($s);return a||b};
Zs=function(){return cs(tia)};
bt=function(a){this.C=a;this.B=0;this.j=null};
ct=function(a,b,c){this.C=a;this.Sa=void 0===c?"na":c;this.G=[];this.isInitialized=!1;this.D=new fia(-1,!0,this);this.j=this;this.Z=b;this.qa=this.Y=!1;this.Ga="uk";this.Ha=!1;this.K=!0};
dt=function(a,b){g.Fb(a.G,b)||(a.G.push(b),b.oA(a.j),b.Vt(a.D),b.Cq()&&(a.Y=!0))};
wia=function(a){a=a.j;a.pV();a.oV();var b=Zs();b.N=Es(!1,a.C,b.isMobileDevice);via(Zs(),a.C);a.D.j=a.uY()};
xia=function(a){a.Y=a.G.length?Ys(a.G,function(b){return b.Cq()}):!1};
yia=function(a){var b=g.Lb(a.G);g.bc(b,function(c){c.Vt(a.D)})};
et=function(a){var b=g.Lb(a.G);g.bc(b,function(c){c.oA(a.j)});
a.j!=a||yia(a)};
ft=function(a,b,c,d){this.element=a;this.j=new As(0,0,0,0);this.D=new As(0,0,0,0);this.B=b;this.Kc=c;this.ra=d;this.qa=!1;this.timestamp=-1;this.N=new Ds(b.D,this.element,this.j,new As(0,0,0,0),0,0,vs(),0)};
gt=function(a){this.G=!1;this.j=a;this.D=function(){}};
zia=function(a,b,c){this.C=void 0===c?0:c;this.B=a;this.j=null==b?"":b};
Aia=function(a){switch(Math.trunc(a.C)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
Bia=function(a,b){return a.C<b.C?!0:a.C>b.C?!1:a.B<b.B?!0:a.B>b.B?!1:typeof a.j<typeof b.j?!0:typeof a.j>typeof b.j?!1:a.j<b.j};
ht=function(){this.C=0;this.j=[];this.B=!1};
Cia=function(a,b){(0,g.bc)(b.j,function(c){a.add(c.B,c.j,Aia(c))})};
rt=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;Ur(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
tt=function(a){var b=Dia;a.B&&(g.Ub(a.j,function(c,d){return Bia(d,c)?1:Bia(c,d)?-1:0}),a.B=!1);
return bs(a.j,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
Dia=function(a){var b=a.B;a=a.j;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.Fb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Eia=function(a){var b=void 0===b?!0:b;this.j=new ht;void 0!==a&&Cia(this.j,a);b&&this.j.add("v","unreleased",-16)};
Fia=function(a){var b=[],c=[];g.Uc(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)};
Gia=function(a){a=a.toString();es();Gha(a)};
Hia=function(){this.j=0};
Iia=function(a,b,c){(0,g.bc)(a.C,function(d){var e=a.j;if(!d.j&&(d.C(b,c),d.D())){d.j=!0;var f=d.B(),h=new ht;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.G);d=cs(Hia);h.add("i",d.j++);h.add("adk",e);rt(h,f);e=new Eia(h);Gia(e)}})};
ut=function(){this.B=this.C=this.D=this.j=0};
vt=function(a){this.B=a=void 0===a?Jia:a;this.j=g.$r(this.B,function(){return new ut})};
wt=function(a,b){return Kia(a,function(c){return c.j},void 0===b?!0:b)};
zt=function(a,b){return xt(a,b,function(c){return c.j})};
Lia=function(a,b){return Kia(a,function(c){return c.C},void 0===b?!0:b)};
At=function(a,b){return xt(a,b,function(c){return c.C})};
Bt=function(a,b){return xt(a,b,function(c){return c.B})};
Mia=function(a){g.bc(a.j,function(b){b.B=0})};
Kia=function(a,b,c){a=g.$r(a.j,function(d){return b(d)});
return c?a:Nia(a)};
xt=function(a,b,c){var d=g.Eb(a.B,function(e){return b<=e});
return-1==d?0:c(a.j[d])};
Nia=function(a){return g.$r(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
Ct=function(){this.B=new vt;this.Sa=new ut;this.ra=this.N=-1;this.eb=1E3;this.bb=new vt([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Ga=this.Ca=-1};
Dt=function(a,b){return Lia(a.B,void 0===b?!0:b)};
Et=function(a,b,c,d){var e=void 0===e?!1:e;c=rs(d,c);Qr(a,b,c,{capture:e})};
Gt=function(a,b){b=Ft(b);return 0===b?0:Ft(a)/b};
Ft=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
Oia=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.If(a)||a){var d=kf(a),e=d&&vf(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
Pia=function(a,b,c){if(!a||!b)return!1;b=Cs(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Tr(window.top)&&window.top&&window.top.document&&(window=window.top);if(!iia())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=kf(c))&&b.defaultView&&b.defaultView.frameElement)&&Oia(b,a);var d=a===c;a=!d&&a&&Lf(a,function(e){return e===c});
return!(b||d||a)};
Qia=function(a,b,c,d){return Zs().C?!1:0>=Bs(a)||0>=a.getHeight()?!0:c&&d?cia(208,function(){return Pia(a,b,c)}):!1};
Ht=function(a,b,c){g.I.call(this);this.position=Ria.clone();this.DK=this.DJ();this.MQ=-2;this.Aea=Date.now();this.t2=-1;this.fq=b;this.sK=null;this.lE=!1;this.UK=null;this.opacity=-1;this.requestSource=c;this.Hea=!1;this.SQ=function(){};
this.O2=function(){};
this.Vj=new mha;this.Vj.Du=a;this.Vj.j=a;this.au=!1;this.yw={cR:null,bR:null};this.M1=!0;this.nH=null;this.AA=this.c$=!1;hs().K++;this.Zh=this.zP();this.m2=-1;this.Xf=null;this.hasCompleted=this.Z9=!1;this.Kc=new Fr;lha(this.Kc);Sia(this);1==this.requestSource?Hr(this.Kc,"od",1):Hr(this.Kc,"od",0)};
Sia=function(a){a=a.Vj.Du;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:Tia&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Qba()):!!a.getAttribute("data-"+Qba());b&&(Zs().B=!0)};
It=function(a,b){b!=a.AA&&(a.AA=b,a=Zs(),b?a.K++:0<a.K&&a.K--)};
Uia=function(a,b){if(a.Xf){if(b.getName()===a.Xf.getName())return;a.Xf.dispose();a.Xf=null}b=b.create(a.Vj.j,a.Kc,a.Cq());if(b=null!=b&&b.iN()?b:null)a.Xf=b};
Via=function(a,b,c){if(!a.sK||-1==a.fq||-1===b.B||-1===a.sK.B)return 0;a=b.B-a.sK.B;return a>c?0:a};
Wia=function(a,b,c){if(a.Xf){a.Xf.kt();var d=a.Xf.N,e=d.D,f=e.j;if(null!=d.K){var h=d.C;a.UK=new g.Ee(h.left-f.left,h.top-f.top)}f=a.fM()?Math.max(d.j,d.G):d.j;h={};null!==e.volume&&(h.volume=e.volume);e=a.kY(d);a.sK=d;a.Ta(f,b,c,!1,h,e,d.Z)}};
Xia=function(a){if(a.lE&&a.nH){var b=1==Ir(a.Kc,"od"),c=Zs().j,d=a.nH,e=a.Xf?a.Xf.getName():"ns",f=a.UK,h=new g.Ke(Bs(c),c.getHeight());c=a.fM();a={oea:e,UK:f,ifa:h,fM:c,Be:a.Zh.Be,cfa:b};if(b=d.B){b.kt();e=b.N;f=e.D.j;var l=h=null;null!=e.K&&f&&(h=e.C,h=new g.Ee(h.left-f.left,h.top-f.top),l=new g.Ke(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.G):e.j;c={oea:b.getName(),UK:h,ifa:l,fM:c,cfa:!1,Be:e}}else c=null;c&&Iia(d,a,c)}};
Yia=function(a,b,c){b&&(a.SQ=b);c&&(a.O2=c)};
g.Jt=function(){};
g.Kt=function(a){return{value:a,done:!1}};
Zia=function(){this.D=this.j=this.C=this.B=this.G=0};
$ia=function(a){var b={};var c=g.lb()-a.G;b=(b.ptlt=c,b);(c=a.B)&&(b.pnk=c);(c=a.C)&&(b.pnc=c);(c=a.D)&&(b.pnmm=c);(a=a.j)&&(b.pns=a);return b};
aja=function(){Yq.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
Lt=function(a){return Xs(a.volume)&&0<a.volume};
Mt=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 bja(f,b,c)}};
Nt=function(a,b){return function(c){return b(c)?c[a]:void 0}};
cja=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}};
bja=function(a,b,c){return void 0===c||c?g.Ot(a,function(d,e){return g.Fb(b,e)}):g.$r(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)})};
dja=function(){this.B=this.j=""};
eja=function(){};
Pt=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 tt(rt(new ht,c))};
fja=function(){var a={};this.B=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a.mut=[33554432,33554432],a.umutb=[67108864,67108864],a.tvoff=[134217728,134217728],a);this.j={};for(var b in this.B)0<this.B[b][1]&&(this.j[b]=0);this.C=0};
Qt=function(a,b){var c=a.B[b],d=c[1];a.C+=c[0];0<d&&0==a.j[b]&&(a.j[b]=1)};
gja=function(a){var b=g.cd(a.B),c=0,d;for(d in a.j)g.Fb(b,d)&&1==a.j[d]&&(c+=a.B[d][1],a.j[d]=2);return c};
hja=function(a){var b=0,c;for(c in a.j){var d=a.j[c];if(1==d||2==d)b+=a.B[c][1]}return b};
Rt=function(){this.j=this.B=0};
St=function(){Ct.call(this);this.C=new ut;this.Ma=this.Y=this.Ha=0;this.Z=-1;this.gb=new ut;this.G=new ut;this.j=new vt;this.K=this.D=-1;this.qa=new ut;this.eb=2E3;this.La=new Rt;this.Wa=new Rt;this.Va=new Rt};
Tt=function(a,b,c){var d=a.Ma;xs||c||-1==a.Z||(d+=b-a.Z);return d};
ija=function(){this.C=!1};
Ut=function(a,b){this.C=!1;this.D=a;this.Y=b;this.G=0};
Vt=function(a,b){Ut.call(this,a,b);this.N=[]};
jja=function(){};
Wt=function(){};
Xt=function(a,b,c,d){ft.call(this,a,b,c,d)};
Yt=function(a,b,c){ft.call(this,null,a,b,c);this.K=a.isActive();this.G=0};
Zt=function(a){return[a.top,a.left,a.bottom,a.right]};
$t=function(a,b,c,d,e,f){f=void 0===f?new Wt:f;Ht.call(this,b,c,d);this.fS=e;this.MO=0;this.gi={};this.Kg=new fja;this.g3={};this.bj="";this.eb=null;this.Hb=!1;this.j=[];this.Vr=f.B();this.K=f.C();this.D=null;this.C=-1;this.Sa=this.Y=void 0;this.ra=this.qa=0;this.Ga=-1;this.gb=this.bb=!1;this.Ha=this.Z=this.B=this.yC=this.Jb=0;new vt;this.La=this.Va=0;this.Wa=-1;this.nk=0;this.N=g.Jd;this.Ca=[this.DJ()];this.Nb=2;this.Ny={};this.Ny.pause="p";this.Ny.resume="r";this.Ny.skip="s";this.Ny.mute="m";this.Ny.unmute=
"um";this.Ny.exitfullscreen="ef";this.G=null;this.rb=this.Ab=!1;this.Kb=Math.floor(Date.now()/1E3-1704067200);this.Ma=0};
au=function(a){a.hasCompleted=!0;0!=a.nk&&(a.nk=3)};
bu=function(a){return void 0===a?a:Number(a)?Ws(a,3):0};
cu=function(a,b){return a.Ca[null!=b&&b<a.Ca.length?b:a.Ca.length-1]};
kja=function(a){var b=!!Ir(hs().Kc,"umt");return a.Y||!b&&!a.Sa?0:1};
lja=function(a,b){a.qo()?b=0:-1==a.fq?b=0:(b-=a.fq,b=b>Math.max(1E4,a.C/3)?0:b);var c=a.N(a)||{};c=void 0!==c.currentTime?c.currentTime:a.qa;var d=c-a.qa,e=0;0<=d?(a.ra+=b,a.La+=Math.max(b-d,0),e=Math.min(d,a.ra)):a.Va+=Math.abs(d);0!=d&&(a.ra=0);-1==a.Wa&&0<d&&(a.Wa=0<=zs?vs()-zs:-1);a.qa=c;return e};
mja=function(a,b){Ys(a.K,function(c){return c.D==b.D})||a.K.push(b)};
nja=function(a){var b=zt(a.wj().j,1);return du(a,b)};
du=function(a,b,c){return 15E3<=b?!0:a.bb?(void 0===c?0:c)?!0:0<a.C?b>=a.C/2:0<a.Ga?b>=a.Ga:!1:!1};
oja=function(a){var b=Ws(a.Zh.Be,2),c=a.Kg.C,d=a.Zh,e=cu(a),f=bu(e.D),h=bu(e.K),l=bu(d.volume),m=Ws(e.N,2),n=Ws(e.ra,2),p=Ws(d.Be,2),q=Ws(e.Ca,2),r=Ws(e.Ga,2);d=Ws(d.Ek,2);a=a.Qt().clone();a.round();e=Dt(e,!1);return{gfa:b,gF:c,HK:f,xK:h,QD:l,IK:m,zK:n,Be:p,KK:q,AK:r,Ek:d,position:a,MK:e}};
qja=function(a,b){pja(a.j,b,function(){return{gfa:0,gF:void 0,HK:-1,xK:-1,QD:-1,IK:-1,zK:-1,Be:-1,KK:-1,AK:-1,Ek:-1,position:void 0,MK:[]}});
a.j[b]=oja(a)};
pja=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
fu=function(a,b,c){var d=a.g3[b];if(null!=d)return d;d=rja(a,b);var e=fd(eu,function(f){return f==b});
a=sja(a,d,d,c,tja[eu[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
gu=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
sja=function(a,b,c,d,e){if(a.au)return{"if":0,vs:0};var f=a.Qt().clone();f.round();var h=Zs(),l=hs(),m=a.wj(),n=a.Xf?a.Xf.getName():"ns",p={};p["if"]=h.C?1:void 0;p.sdk=a.D?a.D:void 0;p.t=a.Aea;p.p=[f.top,f.left,f.bottom,f.right];p.tos=wt(m.B,!1);p.mtos=Dt(m);p.mcvt=m.Sa.C;p.ps=void 0;f=Tt(m,vs(),a.qo());p.vht=f;p.mut=m.gb.C;p.a=bu(a.Zh.volume);p.mv=bu(m.K);p.fs=a.AA?1:0;p.ft=m.qa.j;p.at=m.G.j;p.as=0<m.D?1:0;p.atos=wt(m.j);p.ssb=wt(m.bb,!1);p.amtos=Lia(m.j,!1);p.uac=a.Jb;p.vpt=m.C.j;"nio"==n&&(p.nio=
1,p.avms="nio");p.gmm="4";p.gdr=du(a,m.C.j,!0)?1:0;p.efpf=a.Nb;if("gsv"==n||"nis"==n)n=a.Xf,0<n.G&&(p.nnut=n.G);p.tcm=kja(a);p.nmt=a.Va;p.bt=a.La;p.pst=a.Wa;p.vpaid=a.Y;p.dur=a.C;p.vmtime=a.qa;p.is=a.Kg.C;1<=a.j.length&&(p.i0=a.j[0].gF,p.a0=[a.j[0].QD],p.c0=[a.j[0].Be],p.ss0=[a.j[0].Ek],n=a.j[0].position,p.p0=n?Zt(n):void 0);2<=a.j.length&&(p.i1=a.j[1].gF,p.a1=gu(a.j[1].HK,a.j[1].QD,a.j[1].xK),p.c1=gu(a.j[1].IK,a.j[1].Be,a.j[1].zK),p.ss1=gu(a.j[1].KK,a.j[1].Ek,a.j[1].AK),n=a.j[1].position,p.p1=n?
Zt(n):void 0,p.mtos1=a.j[1].MK);3<=a.j.length&&(p.i2=a.j[2].gF,p.a2=gu(a.j[2].HK,a.j[2].QD,a.j[2].xK),p.c2=gu(a.j[2].IK,a.j[2].Be,a.j[2].zK),p.ss2=gu(a.j[2].KK,a.j[2].Ek,a.j[2].AK),n=a.j[2].position,p.p2=n?Zt(n):void 0,p.mtos2=a.j[2].MK);4<=a.j.length&&(p.i3=a.j[3].gF,p.a3=gu(a.j[3].HK,a.j[3].QD,a.j[3].xK),p.c3=gu(a.j[3].IK,a.j[3].Be,a.j[3].zK),p.ss3=gu(a.j[3].KK,a.j[3].Ek,a.j[3].AK),n=a.j[3].position,p.p3=n?Zt(n):void 0,p.mtos3=a.j[3].MK);p.cs=hja(a.Kg);b&&(p.ic=gja(a.Kg),p.dvpt=m.C.B,p.dvs=Bt(m.B,
.5),p.dfvs=Bt(m.B,1),p.davs=Bt(m.j,.5),p.dafvs=Bt(m.j,1),c&&(m.C.B=0,Mia(m.B),Mia(m.j)),a.Sr()&&(p.dtos=m.Ha,p.dav=m.Y,p.dtoss=a.MO+1,c&&(m.Ha=0,m.Y=0,a.MO++)),p.dat=m.G.B,p.dft=m.qa.B,c&&(m.G.B=0,m.qa.B=0));p.ps=[h.G.width,h.G.height];p.bs=[Bs(h.j),h.j.getHeight()];p.scs=[h.D.width,h.D.height];p.dom=h.domain;a.yC&&(p.vds=a.yC);if(0<a.K.length||a.Vr)b=g.Lb(a.K),a.Vr&&b.push(a.Vr),p.pings=g.$r(b,function(q){return q.toString()});
b=g.$r(g.Ot(a.K,function(q){return q.K()}),function(q){return q.getId()});
vaa(b);p.ces=b;a.B&&(p.vmer=a.B);a.Z&&(p.vmmk=a.Z);a.Ha&&(p.vmiec=a.Ha);p.avms=a.Xf?a.Xf.getName():"ns";a.Xf&&g.ld(p,a.Xf.Nt());d?(p.c=Ws(a.Zh.Be,2),p.ss=Ws(a.Zh.Ek,2)):p.tth=vs()-uja;p.mc=Ws(m.ra,2);p.nc=Ws(m.N,2);p.mv=bu(m.K);p.nv=bu(m.D);p.lte=Ws(a.MQ,2);d=cu(a,e);Dt(m);p.qmtos=Dt(d);p.qnc=Ws(d.N,2);p.qmv=bu(d.K);p.qnv=bu(d.D);p.qas=0<d.D?1:0;p.qi=a.bj;p.avms||(p.avms="geo");p.psm=m.La.j;p.psv=m.La.getValue();p.psfv=m.Wa.getValue();p.psa=m.Va.getValue();l=jha(l.Kc);l.length&&(p.veid=l);a.G&&g.ld(p,
$ia(a.G));p.avas=a.sJ();p.vs=a.xY();p.co=vja(a);return p};
rja=function(a,b){if(g.Fb(wja,b))return!0;var c=a.gi[b];return void 0!==c?(a.gi[b]=!0,!c):!1};
vja=function(a){var b=a.Ma.toString(10).padStart(2,"0");b=""+a.Kb+b;99>a.Ma&&a.Ma++;return b};
yja=function(){this.j={};var a=vf();hu(this,a,document);var b=xja();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)hu(this,c,c.document);hu(this,a.top,a.top.document)}}catch(d){}};
xja=function(){var a=document.documentElement;try{if(!Tr(vf().top))return"2";var b=[],c=vf(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"}};
hu=function(a,b,c){Et(c,"mousedown",function(){return zja(a)},301);
Et(b,"scroll",function(){return Aja(a)},302);
Et(c,"touchmove",function(){return Bja(a)},303);
Et(c,"mousemove",function(){return Cja(a)},304);
Et(c,"keydown",function(){return Dja(a)},305)};
zja=function(a){g.Uc(a.j,function(b){1E5<b.C||++b.C})};
Aja=function(a){g.Uc(a.j,function(b){1E5<b.j||++b.j})};
Bja=function(a){g.Uc(a.j,function(b){1E5<b.j||++b.j})};
Dja=function(a){g.Uc(a.j,function(b){1E5<b.B||++b.B})};
Cja=function(a){g.Uc(a.j,function(b){1E5<b.D||++b.D})};
Eja=function(){this.j=[];this.B=[]};
iu=function(a,b){return g.Db(a.j,function(c){return c.bj==b})};
Fja=function(a,b){return b?g.Db(a.j,function(c){return c.Vj.Du==b}):null};
Gja=function(a,b){return g.Db(a.B,function(c){return 2==c.Pp()&&c.bj==b})};
ku=function(){var a=ju;return 0==a.j.length?a.B:0==a.B.length?a.j:g.Kb(a.B,a.j)};
Hja=function(a,b){a=1==b.Pp()?a.j:a.B;var c=Cb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.Xf&&b.Xf.ZH(),b.dispose(),!0):!1};
Ija=function(a){var b=ju;if(Hja(b,a)){switch(a.Pp()){case 0:var c=function(){return null};
case 2:c=function(){return Gja(b,a.bj)};
break;case 1:c=function(){return iu(b,a.bj)}}for(var d=c();d;d=c())Hja(b,d)}};
Jja=function(a){var b=ju;a=g.Ot(a,function(c){return!Fja(b,c.Vj.Du)});
b.j.push.apply(b.j,g.qa(a))};
Kja=function(a){var b=[];g.bc(a,function(c){Ys(ju.j,function(d){return d.Vj.Du===c.Vj.Du&&d.bj===c.bj})||(ju.j.push(c),b.push(c))})};
lu=function(){this.j=this.B=null};
Lja=function(a,b){function c(d,e){b(d,e)}
if(null==a.B)return!1;a.j=g.Db(a.B,function(d){return null!=d&&d.qV()});
a.j&&(a.j.init(c)?wia(a.j.j):b(a.j.j.eA(),a.j));return null!=a.j};
mu=function(a){a=Mja(a);gt.call(this,a.length?a[a.length-1]:new ct(Or,0));this.C=a;this.B=null};
Mja=function(a){if(!a.length)return[];a=(0,g.Ot)(a,function(c){return null!=c&&c.lD()});
for(var b=1;b<a.length;b++)dt(a[b-1],a[b]);return a};
nu=function(a,b,c,d){ft.call(this,a,b,c,d);this.Y=this.Z=this.G=this.K=this.C=null};
ou=function(a){return a.C&&a.C.takeRecords?a.C.takeRecords():[]};
Oja=function(a){if(!a.element)return!1;var b=a.element,c=a.B.j.C,d=hs().j.j;a.C=new c.IntersectionObserver(gs(d,function(e){return pu(a,e)}),Nja);
d=gs(d,function(){a.C.unobserve(b);a.C.observe(b);pu(a,ou(a))});
c.ResizeObserver?(a.K=new c.ResizeObserver(d),a.K.observe(b)):c.MutationObserver&&(a.G=new g.Ta.MutationObserver(d),a.G.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.C.observe(b);pu(a,ou(a));return!0};
pu=function(a,b){try{if(b.length){a.Z||(a.Z=vs());var c=Pja(b),d=nia(a.element,a.B.j.C),e=d.x,f=d.y;a.j=new As(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=qia(c.intersectionRect);a.D=Cs(h,a.j.left-h.left,a.j.top-h.top)}}catch(l){a.ZH(),us(299,l)}};
Pja=function(a){return bs(a,function(b,c){return b.time>c.time?b:c},a[0])};
qu=function(a){a=void 0===a?Or:a;gt.call(this,new ct(a,2))};
ru=function(){var a=Qja();ct.call(this,Or.top,a,"geo")};
Qja=function(){hs();var a=Zs();return a.C||a.B?0:2};
Rja=function(){};
tu=function(){this.done=!1;this.j={R6:0,vW:0,prb:0,DX:0,jQ:-1,F7:0,E7:0,G7:0,mea:0};this.G=null;this.K=!1;this.C=null;this.N=0;this.B=new bt(this)};
vu=function(){var a=uu;a.K||(a.K=!0,Sja(a,function(){return a.D.apply(a,g.qa(g.Ia.apply(0,arguments)))}),a.D())};
Tja=function(){cs(Rja);var a=cs(lu);null!=a.j&&a.j.j?wia(a.j.j):Zs().update(Or)};
wu=function(a,b,c){if(!a.done&&(a.B.cancel(),0!=b.length)){a.C=null;try{Tja();var d=vs();hs().G=d;if(null!=cs(lu).j)for(var e=0;e<b.length;e++)Wia(b[e],d,c);for(d=0;d<b.length;d++)Xia(b[d]);++a.j.DX}finally{c?g.bc(b,function(f){f.Zh.Be=0}):a.B.schedule()}}};
Sja=function(a,b){if(!a.G){b=rs(142,b);es();var c;$s.visibilityState?c="visibilitychange":$s.mozVisibilityState?c="mozvisibilitychange":$s.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Qr($s,c,b,{capture:!1})&&(a.G=b)}};
Uja=function(){var a=cs(lu);if(null!=a.j){var b=a.j;g.bc(ku(),function(c){return Uia(c,b)})}};
Vja=function(a,b){a=a.N;xs&&(a+=b-ys);return a};
Wja=function(a){a=void 0===a?function(){return{}}:a;
os.JX="av-js";ns.j=.01;bia([function(b){var c=hs(),d={};d=(d.bin=c.B,d.type="error",d);c=Jr(c.Kc);if(!uu.C){var e=uu,f=Or.document,h=0<=ws?vs()-ws:-1,l=vs();-1==e.j.jQ&&(h=l);var m=Zs(),n=hs(),p=Jr(n.Kc),q=ku();try{if(0<q.length){var r=m.j;r&&(p.bs=[Bs(r),r.getHeight()]);var t=m.G;t&&(p.ps=[t.width,t.height]);Or.screen&&(p.scs=[Or.screen.width,Or.screen.height])}else p.url=encodeURIComponent(Or.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,512)));
p.tt=h;p.pt=ws;p.bin=n.B;void 0!==Or.google_osd_load_pub_page_exp&&(p.olpp=Or.google_osd_load_pub_page_exp);p.deb=[1,e.j.R6,e.j.vW,e.j.DX,e.j.jQ,0,e.B.B,e.j.F7,e.j.E7,e.j.G7,e.j.mea,-1].join(";");p.tvt=Vja(e,l);m.B&&(p.inapp=1);if(null!==Or&&Or!=Or.top){0<q.length&&(p.iframe_loc=encodeURIComponent(Or.location.href.substring(0,512)));var v=m.N;p.is=[Bs(v),v.getHeight()]}}catch(w){p.error=1}uu.C=p}r=g.jd(uu.C);t=hs().j;1==Ir(t.C,"prf")?(v=new fs,e=t.j,f=0,-1<e.j&&(f=e.C.j.now()-e.j),v=Zj(v,1,yi(e.D+
f),0),e=t.j,v=Zj(v,5,Di(-1<e.j?e.B+1:e.B),0),v=Zj(v,2,Ii(t.B.j.C()),"0"),v=Zj(v,3,Ii(t.B.j.B()),"0"),t=Zj(v,4,Ii(t.B.j.j()),"0"),v={},t=(v.pf=g.Hg(t.j()),v)):t={};g.ld(r,t);g.ld(b,d,c,r,a())}])};
Yja=function(){var a=Xja||Or;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("&")};
xu=function(){var a="youtube.player.web_20240604_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20240604_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20240604_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20240604_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_20240604_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};
Zja=function(){return"av.default_js".includes("ima_html5_sdk")?{Dp:"ima",Hp:null}:"av.default_js".includes("ima_native_sdk")?{Dp:"nima",Hp:null}:"av.default_js".includes("admob-native-video-javascript")?{Dp:"an",Hp:null}:"youtube.player.web_20240604_00_RC00".includes("cast_js_sdk")?{Dp:"cast",Hp:xu()}:"youtube.player.web_20240604_00_RC00".includes("youtube.player.web")?{Dp:"yw",Hp:xu()}:"youtube.player.web_20240604_00_RC00".includes("outstream_web_client")?{Dp:"out",Hp:xu()}:"youtube.player.web_20240604_00_RC00".includes("drx_rewarded_web")?
{Dp:"r",Hp:xu()}:"youtube.player.web_20240604_00_RC00".includes("gam_native_web_video")?{Dp:"n",Hp:xu()}:"youtube.player.web_20240604_00_RC00".includes("admob_interstitial_video")?{Dp:"int",Hp:xu()}:{Dp:"j",Hp:null}};
Au=function(a,b){var c={sv:"962"};null!==yu&&(c.v=yu);c.cb=$ja;c.nas=ju.j.length;c.msg=a;void 0!==b&&(a=aka(b))&&(c.e=zu[a]);return c};
Bu=function(a){return ec(a,"custom_metric_viewable")};
aka=function(a){var b=Bu(a)?"custom_metric_viewable":a.toLowerCase();return fd(eu,function(c){return c==b})};
bka=function(){this.j=void 0;this.B=!1;this.C=0;this.D=-1;this.G="tos"};
eka=function(a){try{var b=a.split(",");return b.length>g.cd(cka).length?null:bs(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===dka[d[0]]||!dka[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
fka=function(a,b){if(void 0==a.j)return 0;switch(a.G){case "mtos":return a.B?At(b.j,a.j):At(b.B,a.j);case "tos":return a.B?zt(b.j,a.j):zt(b.B,a.j)}return 0};
Cu=function(a,b,c,d){Ut.call(this,b,d);this.N=a;this.Z=c};
Du=function(){};
Eu=function(a){Ut.call(this,"fully_viewable_audible_half_duration_impression",a)};
Fu=function(a){this.j=a};
Gu=function(a,b){Ut.call(this,a,b)};
Hu=function(a){Vt.call(this,"measurable_impression",a)};
Iu=function(){Fu.apply(this,arguments)};
Ju=function(a,b,c){Yt.call(this,a,b,c)};
Ku=function(a){a=void 0===a?Or:a;gt.call(this,new ct(a,2))};
Lu=function(a,b,c){Yt.call(this,a,b,c)};
Mu=function(a){a=void 0===a?Or:a;gt.call(this,new ct(a,2))};
Nu=function(){ct.call(this,Or,2,"mraid");this.La=0;this.ra=this.Ca=!1;this.N=null;this.B=hia(this.C);this.D.j=new As(0,0,0,0);this.Ma=!1};
Ou=function(a,b,c){a.Vu("addEventListener",b,c)};
jka=function(a){hs().D=!!a.Vu("isViewable");Ou(a,"viewableChange",gka);"loading"===a.Vu("getState")?Ou(a,"ready",hka):ika(a)};
ika=function(a){"string"===typeof a.B.Ao.AFMA_LIDAR?(a.Ca=!0,kka(a)):(a.B.compatibility=3,a.N="nc",a.vj("w"))};
kka=function(a){a.ra=!1;var b=1==Ir(hs().Kc,"rmmt"),c=!!a.Vu("isViewable");(b?!c:1)&&es().setTimeout(ts(524,function(){a.ra||(lka(a),us(540,Error()),a.N="mt",a.vj("w"))}),500);
mka(a);Ou(a,a.B.Ao.AFMA_LIDAR,nka)};
mka=function(a){var b=1==Ir(hs().Kc,"sneio"),c=void 0!==a.B.Ao.AFMA_LIDAR_EXP_1,d=void 0!==a.B.Ao.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.B.Ao.AFMA_LIDAR_EXP_2=!0);c&&(a.B.Ao.AFMA_LIDAR_EXP_1=!b)};
lka=function(a){a.Vu("removeEventListener",a.B.Ao.AFMA_LIDAR,nka);a.Ca=!1};
oka=function(a,b){if("loading"===a.Vu("getState"))return new g.Ke(-1,-1);b=a.Vu(b);if(!b)return new g.Ke(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Ke(-1,-1):new g.Ke(a,b)};
hka=function(){try{var a=cs(Nu);a.Vu("removeEventListener","ready",hka);ika(a)}catch(b){us(541,b)}};
nka=function(a,b){try{var c=cs(Nu);c.ra=!0;var d=a?new As(a.y,a.x+a.width,a.y+a.height,a.x):new As(0,0,0,0);var e=vs(),f=at();var h=new fia(e,f,c);h.j=d;h.volume=b;c.Vt(h)}catch(l){us(542,l)}};
gka=function(a){var b=hs(),c=cs(Nu);a&&!b.D&&(b.D=!0,c.Ma=!0,c.N&&c.vj("w",!0))};
Pu=function(){this.isInitialized=!1;this.j=this.B=null;var a={};this.K=(a.start=this.I9,a.firstquartile=this.D9,a.midpoint=this.F9,a.thirdquartile=this.J9,a.complete=this.A9,a.error=this.B9,a.pause=this.eS,a.resume=this.d1,a.skip=this.H9,a.viewable_impression=this.Qp,a.mute=this.vC,a.unmute=this.vC,a.fullscreen=this.E9,a.exitfullscreen=this.C9,a.fully_viewable_audible_half_duration_impression=this.Qp,a.measurable_impression=this.Qp,a.abandon=this.eS,a.engagedview=this.Qp,a.impression=this.Qp,a.creativeview=
this.Qp,a.progress=this.vC,a.custom_metric_viewable=this.Qp,a.bufferstart=this.eS,a.bufferfinish=this.d1,a.audio_measurable=this.Qp,a.audio_audible=this.Qp,a);a={};this.N=(a.overlay_resize=this.G9,a.abandon=this.VP,a.close=this.VP,a.collapse=this.VP,a.overlay_unmeasurable_impression=function(b){return fu(b,"overlay_unmeasurable_impression",at())},a.overlay_viewable_immediate_impression=function(b){return fu(b,"overlay_viewable_immediate_impression",at())},a.overlay_unviewable_impression=function(b){return fu(b,
"overlay_unviewable_impression",at())},a.overlay_viewable_end_of_session_impression=function(b){return fu(b,"overlay_viewable_end_of_session_impression",at())},a);
hs().B=3;pka(this)};
Qu=function(a,b,c,d){a=a.FG(null,d,!0,b);a.D=c;Jja([a]);return a};
qka=function(a,b,c){hha(b);var d=a.j;g.bc(b,function(e){var f=g.$r(e.criteria,function(h){var l=eka(h);if(null==l)h=null;else if(h=new bka,null!=l.visible&&(h.j=l.visible/100),null!=l.audible&&(h.B=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=Faa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);h.setTime(l,n,m)}return h});
Ys(f,function(h){return null==h})||mja(c,new Cu(e.id,e.event,f,d))})};
rka=function(){var a=[],b=hs();a.push(cs(ru));Ir(b.Kc,"mvp_lv")&&a.push(cs(Nu));b=[new Ku,new Mu];b.push(new mu(a));b.push(new qu(Or));return b};
ska=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=vs(),c=hs(),d=Zs();ws=b;c.C=79463069;"o"!==a.B&&(Xja=wha(Or));if(Hha()){uu.j.vW=0;uu.j.jQ=vs()-b;var e=rka(),f=cs(lu);f.B=e;Lja(f,function(){Ru()})?uu.done||(Uja(),dt(f.j.j,a),vu()):d.C?Ru():vu()}else Su=!0}catch(h){throw ju.reset(),h;
}}};
Uu=function(a){uu.B.cancel();Tu=a;uu.done=!0};
Vu=function(a){if(a.B)return a.B;var b=cs(lu).j;if(b)switch(b.getName()){case "nis":a.B="n";break;case "gsv":a.B="m"}a.B||(a.B="h");return a.B};
Wu=function(a,b,c){if(null==a.j)return b.yC|=4,!1;a=tka(a.j,c,b);b.yC|=a;return 0==a};
Ru=function(){var a=[new qu(Or)],b=cs(lu);b.B=a;Lja(b,function(){Uu("i")})?uu.done||(Uja(),vu()):Uu("i")};
uka=function(a,b){if(!a.Hb){var c=fu(a,"start",at());c=a.fS.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="962";null!==yu&&(d.v=yu);yn(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)});
b=Yja();yn(b,function(e,f){return d[e]=encodeURIComponent(f)});
b="//pagead2.googlesyndication.com/pagead/gen_204?"+tt(rt(new ht,d));Gia(b);a.Hb=!0}};
Xu=function(a,b,c){wu(uu,[a],!at());qja(a,c);4!=c&&pja(a.Ca,c,a.DJ);return fu(a,b,at())};
pka=function(a){Wja(function(){var b=vka();null!=a.B&&(b.sdk=a.B);var c=cs(lu);null!=c.j&&(b.avms=c.j.getName());return b})};
wka=function(a,b,c,d){var e=Fja(ju,c);null!==e&&e.bj!==b&&(a.WI(e),e=null);e||(b=a.FG(c,vs(),!1,b),0==ju.B.length&&(hs().C=79463069),Kja([b]),e=b,e.D=Vu(a),d&&(e.eb=d));return e};
xka=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
vka=function(){var a=Zs(),b={},c={},d={};return Object.assign({},(b.sv="962",b),null!==yu&&(c.v=yu,c),(d["if"]=a.C?"1":"0",d.nas=String(ju.j.length),d))};
Yu=function(a){Ut.call(this,"audio_audible",a)};
Zu=function(a){Vt.call(this,"audio_measurable",a)};
$u=function(){Fu.apply(this,arguments)};
av=function(){};
yka=function(a){this.j=a};
tka=function(a,b,c){a=a.B();if("function"===typeof a){var d={};var e={};d=Object.assign({},null!==yu&&(d.v=yu,d),(e.sv="962",e.cb=$ja,e.e=zka(b),e));e=fu(c,b,at());g.ld(d,e);c.g3[b]=e;d=2==c.Pp()?Fia(d).join("&"):c.fS.j(d).j;try{return a(c.bj,d,b),0}catch(f){return 2}}else return 1};
zka=function(a){var b=Bu(a)?"custom_metric_viewable":a;a=fd(eu,function(c){return c==b});
return zu[a]};
bv=function(){Pu.call(this);this.G=null;this.D=!1;this.C="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
Aka=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.j&&Array.isArray(c)&&qka(a,c,b)};
Bka=function(a,b,c){var d=iu(ju,b);d||(d=c.opt_nativeTime||-1,d=Qu(a,b,Vu(a),d),c.opt_osdId&&(d.eb=c.opt_osdId));return d};
Cka=function(a,b,c){var d=iu(ju,b);d||(d=Qu(a,b,"n",c.opt_nativeTime||-1));return d};
Dka=function(a,b){var c=iu(ju,b);c||(c=Qu(a,b,"h",-1));return c};
Eka=function(a){hs();switch(Vu(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};
Hka=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.NJ(b,c);c=f?f.fS:a.FO();if(e.opt_bounds)return c.j(Au("ol",d));if(void 0!==d)if(void 0!==aka(d))if(Su)a=Au("ue",d);else if(ska(a),"i"==Tu)a=Au("i",d),a["if"]=0;else if(b=a.NJ(b,e)){b:{"i"==Tu&&(b.au=!0);f=e.opt_fullscreen;void 0!==f&&It(b,!!f);var h;if(f=!Zs().B)(f=kc(g.pc(),"CrKey")&&!(kc(g.pc(),"CrKey")&&kc(g.pc(),"SmartSpeaker"))||kc(g.pc(),"PlayStation")||kc(g.pc(),"Roku")||sia()||kc(g.pc(),
"Xbox"))||(f=g.pc(),f=kc(f,"AppleTV")||kc(f,"Apple TV")||kc(f,"CFNetwork")||kc(f,"tvOS")),f||(f=g.pc(),f=kc(f,"sdk_google_atv_x86")||kc(f,"Android TV")),f=!f;f&&(es(),f=0===Rr($s));if(h=f){switch(b.Pp()){case 1:uka(b,"pv");break;case 2:a.zS(b)}Uu("pv")}f=d.toLowerCase();if(h=!h)h=Ir(hs().Kc,"ssmol")&&"loaded"===f?!1:g.Fb(Fka,f);if(h&&0==b.nk){"i"!=Tu&&(uu.done=!1);h=void 0!==e?e.opt_nativeTime:void 0;zs=h="number"===typeof h?h:vs();b.lE=!0;var l=at();b.nk=1;b.gi={};b.gi.start=!1;b.gi.firstquartile=
!1;b.gi.midpoint=!1;b.gi.thirdquartile=!1;b.gi.complete=!1;b.gi.resume=!1;b.gi.pause=!1;b.gi.skip=!1;b.gi.mute=!1;b.gi.unmute=!1;b.gi.viewable_impression=!1;b.gi.measurable_impression=!1;b.gi.fully_viewable_audible_half_duration_impression=!1;b.gi.fullscreen=!1;b.gi.exitfullscreen=!1;b.MO=0;l||(b.wj().Z=h);wu(uu,[b],!l)}(h=b.Ny[f])&&Qt(b.Kg,h);Ir(hs().Kc,"fmd")||g.Fb(Gka,f)&&b.Vr&&b.Vr.B(b,null);switch(b.Pp()){case 1:var m=Bu(f)?a.K.custom_metric_viewable:a.K[f];break;case 2:m=a.N[f]}if(m&&(d=m.call(a,
b,e,d),Ir(hs().Kc,"fmd")&&g.Fb(Gka,f)&&b.Vr&&b.Vr.B(b,null),void 0!==d)){e=Au(void 0,f);g.ld(e,d);d=e;break b}d=void 0}3==b.nk&&a.WI(b);a=d}else a=Au("nf",d);else a=void 0;else Su?a=Au("ue"):f?(a=Au(),g.ld(a,sja(f,!0,!1,!1))):a=Au("nf");return"string"===typeof a?c.j():c.j(a)};
Ika=function(a,b){b&&(a.C=b)};
Jka=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.B,b};
Kka=function(a,b,c){c=void 0===c?{}:c;a=Hka(cs(bv),b,c,a);return Jka(a)};
Lka=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.C=!b&&/[?&]ae=1(&|$)/.test(a);this.D=!b&&/[?&]ae=2(&|$)/.test(a);if((this.j=/[?&]adurl=([^&]*)/.exec(a))&&this.j[1]){try{var c=decodeURIComponent(this.j[1])}catch(d){c=null}this.B=c}};
Oka=function(a){if(g.fc(g.bf(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.lq(a)}catch(c){return null!=g.Db(Mka,function(d){return 0<a.search(d)})}return b.K.match(Nka)?!0:null!=g.Db(Mka,function(c){return null!=a.match(c)})};
g.cv=function(a,b){return a.replace(Pka,function(c,d){try{var e=g.hd(b,d);if(null==e||null==e.toString())return c;e=e.toString();if(""==e||!g.fc(g.bf(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
Qka=function(a,b){return Object.is(a,b)};
g.ev=function(a){var b=dv;dv=a;return b};
Ska=function(a){if(void 0!==a.Yi){var b=g.fv;g.fv=!0;try{for(var c=g.u(a.Yi),d=c.next();!d.done;d=c.next()){var e=d.value;e.mm||g.Rka(e)}}finally{g.fv=b}}};
Tka=function(){var a;return!1!==(null==(a=dv)?void 0:a.MI)};
g.Rka=function(a){a.mm=!0;Ska(a);var b;null==(b=a.mX)||b.call(a,a)};
g.Uka=function(a){a&&(a.PK=0);return g.ev(a)};
g.Vka=function(a,b){g.ev(b);if(a&&void 0!==a.vg&&void 0!==a.Qm&&void 0!==a.ey){if(g.gv(a))for(b=a.PK;b<a.vg.length;b++)g.hv(a.vg[b],a.Qm[b]);for(;a.vg.length>a.PK;)a.vg.pop(),a.ey.pop(),a.Qm.pop()}};
Xka=function(a,b,c){Wka(a);if(0===a.Yi.length&&void 0!==a.vg)for(var d=0;d<a.vg.length;d++)a.Qm[d]=Xka(a.vg[d],a,d);a.Au.push(c);return a.Yi.push(b)-1};
g.hv=function(a,b){Wka(a);if(1===a.Yi.length&&void 0!==a.vg)for(var c=0;c<a.vg.length;c++)g.hv(a.vg[c],a.Qm[c]);c=a.Yi.length-1;a.Yi[b]=a.Yi[c];a.Au[b]=a.Au[c];a.Yi.length--;a.Au.length--;b<a.Yi.length&&(c=a.Au[b],a=a.Yi[b],g.iv(a),a.Qm[c]=b)};
g.gv=function(a){var b,c;return a.lX||0<(null!=(c=null==a?void 0:null==(b=a.Yi)?void 0:b.length)?c:0)};
g.iv=function(a){null!=a.vg||(a.vg=[]);null!=a.Qm||(a.Qm=[]);null!=a.ey||(a.ey=[])};
Wka=function(a){null!=a.Yi||(a.Yi=[]);null!=a.Au||(a.Au=[])};
jv=function(){throw Error();};
Zka=function(a){function b(){if(g.fv)throw Error("");if(null!==dv){var d=dv.PK++;g.iv(dv);d<dv.vg.length&&dv.vg[d]!==c&&g.gv(dv)&&g.hv(dv.vg[d],dv.Qm[d]);dv.vg[d]!==c&&(dv.vg[d]=c,dv.Qm[d]=g.gv(dv)?Xka(c,dv,d):0);dv.ey[d]=c.version}return c.value}
var c=Object.create(Yka);c.value=a;b[g.vv]=c;return b};
ala=function(a,b){Tka()||jv();if(!a.UO(a.value,b)){a.value=b;a.version++;g.wv++;Ska(a);var c;null==(c=g.$ka)||c()}};
g.xv=function(){};
bla=function(a){return Object.create(Object.assign({},yv,{MI:a}))};
Av=function(a){g.Ed.call(this);var b=this;this.G=this.B=0;this.uo=null!=a?a:{Qi:function(e,f){return setTimeout(e,f)},
Tj:function(e){clearTimeout(e)}};
var c,d;this.j=null!=(d=null==(c=window.navigator)?void 0:c.onLine)?d:!0;this.C=function(){return g.G(function(e){return g.z(e,zv(b),0)})};
window.addEventListener("offline",this.C);window.addEventListener("online",this.C);this.G||this.mf()};
dla=function(){var a=g.Bv;Av.instance||(Av.instance=new Av(a));return Av.instance};
zv=function(a,b){return a.D?a.D:a.D=new Promise(function(c){var d,e,f,h;return g.G(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.Ba(l,2,3),d&&(a.B=a.uo.Qi(function(){d.abort()},b||2E4)),g.z(l,fetch("/generate_204",{method:"HEAD",
signal:f}),5);case 5:h=!0;case 3:g.Ea(l);a.D=void 0;a.B&&(a.uo.Tj(a.B),a.B=0);h!==a.j&&(a.j=h,a.j?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(h);g.Fa(l,0);break;case 2:g.Da(l),h=!1,l.Ia(3)}})})};
Cv=function(){this.data=[];this.j=-1};
ela=function(a){-1===a.j&&(a.j=a.data.reduce(function(b,c,d){return b+(c?Math.pow(2,d):0)},0));
return a.j};
Dv=function(a){a.setAttribute("role","link")};
Fv=function(a,b){Array.isArray(b)&&(b=b.join(" "));""===b||void 0==b?(Ev||(b={},Ev=(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=Ev,"label"in b?a.setAttribute("aria-label",b.label):a.removeAttribute("aria-label")):a.setAttribute("aria-label",b)};
Gv=function(a){a=a.getAttribute("aria-label");return null==a||void 0==a?"":String(a)};
g.Hv=function(a,b,c){g.I.call(this);this.j=null;this.D=!1;this.K=a;this.G=c;this.B=b||window;this.C=(0,g.gb)(this.K5,this)};
fla=function(a){a=a.B;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
gla=function(a){a=a.B;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.Iv=function(a,b,c){g.I.call(this);this.j=a;this.Wi=b||0;this.B=c;this.C=(0,g.gb)(this.sV,this)};
g.Jv=function(a,b){a.isActive()||a.start(b)};
g.Kv=function(a){a.stop();a.sV()};
g.Lv=function(a){a.isActive()&&g.Kv(a)};
g.Mv=function(a,b){this.j=a[g.Ta.Symbol.iterator]();this.B=b};
hla=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
Nv=function(a){return a.classList?a.classList:hla(a).match(/\S+/g)||[]};
g.Ov=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.Pv=function(a,b){return a.classList?a.classList.contains(b):g.Fb(Nv(a),b)};
g.Qv=function(a,b){if(a.classList)a.classList.add(b);else if(!g.Pv(a,b)){var c=hla(a);g.Ov(a,c+(0<c.length?" "+b:b))}};
g.Rv=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.Qv(a,e)});
else{var c={};Array.prototype.forEach.call(Nv(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.Ov(a,b)}};
g.Sv=function(a,b){a.classList?a.classList.remove(b):g.Pv(a,b)&&g.Ov(a,Array.prototype.filter.call(Nv(a),function(c){return c!=b}).join(" "))};
g.Tv=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.Sv(a,c)}):g.Ov(a,Array.prototype.filter.call(Nv(a),function(c){return!g.Fb(b,c)}).join(" "))};
g.Uv=function(a,b,c){c?g.Qv(a,b):g.Sv(a,b)};
ila=function(a,b){var c=!g.Pv(a,b);g.Uv(a,b,c)};
g.Vv=function(){g.Ed.call(this);this.j=0;this.endTime=this.startTime=null};
jla=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.Is(a,"transition",b.join(","))};
Wv=function(a,b,c,d,e){g.Vv.call(this);this.B=a;this.G=b;this.K=c;this.D=d;this.N=Array.isArray(e)?e:[e]};
kla=function(a,b,c,d){return new Wv(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
mla=function(a){a=lc(a);if(""==a)return null;var b=String(a.slice(0,4)).toLowerCase();if(0==("url("<b?-1:"url("==b?0:1))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in lla))return null}return a};
Xv=function(a,b){a=g.Ta[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
nla=function(a){var b=g.Ta.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
ola=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Ks&&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)};
ula=function(a){if(!a)return pla;var b=document.createElement("div").style;qla(a).forEach(function(c){var d=g.Pc&&c in rla?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");ec(d,"--")||ec(d,"var")||(c=ola(sla,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=mla(c),null!=c&&ola(tla,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return new g.oe(b.cssText||"",ye)};
qla=function(a){g.cb(a)?a=g.Lb(a):(a=g.cd(a),g.Hb(a,"cssText"));return a};
g.Zv=function(a){var b,c=b=0,d=!1;a=a.split(vla);for(var e=0;e<a.length;e++){var f=a[e];g.Yv.test(f)?(b++,c++):wla.test(f)?d=!0:xla.test(f)?c++:yla.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.cw=function(a){if(a instanceof $v||a instanceof aw||a instanceof bw)return a;if("function"==typeof a.next)return new $v(function(){return a});
if("function"==typeof a[Symbol.iterator])return new $v(function(){return a[Symbol.iterator]()});
if("function"==typeof a.Yl)return new $v(function(){return a.Yl()});
throw Error("Not an iterator or iterable.");};
$v=function(a){this.B=a};
aw=function(a){this.B=a};
bw=function(a){$v.call(this,function(){return a});
this.C=a};
dw=function(a,b,c,d,e,f,h,l){this.j=a;this.C=b;this.x1=c;this.y1=d;this.x2=e;this.y2=f;this.B=h;this.D=l};
ew=function(a,b){if(0==b)return a.j;if(1==b)return a.B;var c=Be(a.j,a.x1,b),d=Be(a.x1,a.x2,b);a=Be(a.x2,a.B,b);c=Be(c,d,b);d=Be(d,a,b);return Be(c,d,b)};
zla=function(a,b){var c=(b-a.j)/(a.B-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=ew(a,c);var l=(ew(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=ew(a,c);return c};
fw=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
gw=function(a){return(a=a.exec(g.pc()))?a[1]:""};
hw=function(a){return 0<=g.nc(Ala,a)};
g.iw=function(a){g.I.call(this);this.K=1;this.C=[];this.D=0;this.j=[];this.B={};this.N=!!a};
Bla=function(a,b,c){g.dg(function(){a.apply(b,c)})};
g.jw=function(a){this.j=a};
kw=function(a){this.j=a};
Cla=function(a){this.data=a};
Dla=function(a){return void 0===a||a instanceof Cla?a:new Cla(a)};
lw=function(a){this.j=a};
g.Ela=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.lb()||!!b&&b>g.lb()};
g.mw=function(a){this.j=a};
Fla=function(){};
nw=function(){};
ow=function(a){this.j=a;this.B=null};
pw=function(a){if(null==a.j)throw Error("Storage mechanism: Storage unavailable");var b;(null!=(b=a.B)?b:a.isAvailable())||Pf(Error("Storage mechanism: Storage unavailable"))};
qw=function(){var a=null;try{a=g.Ta.localStorage||null}catch(b){}ow.call(this,a)};
Gla=function(){var a=null;try{a=g.Ta.sessionStorage||null}catch(b){}ow.call(this,a)};
rw=function(a,b){this.B=a;this.j=b+"::"};
g.tw=function(a){var b=new qw;return b.isAvailable()?a?new rw(b,a):b:null};
uw=function(a,b){this.j=a;this.B=b};
vw=function(a){this.j=[];if(a)a:{if(a instanceof vw){var b=a.On();a=a.zm();if(0>=this.j.length){for(var c=this.j,d=0;d<b.length;d++)c.push(new uw(b[d],a[d]));break a}}else b=g.cd(a),a=g.ad(a);for(c=0;c<b.length;c++)this.Dh(b[c],a[c])}};
ww=function(){vw.apply(this,arguments)};
xw=function(){};
Hla=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 yw.Ry(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};
zw=function(a){for(var b=a.length;0<=--b;)a[b]=0};
Aw=function(a,b,c,d,e){this.W1=a;this.o8=b;this.n8=c;this.b8=d;this.C$=e;this.UY=a&&a.length};
Bw=function(a,b){this.EX=a;this.bB=0;this.fv=b};
Cw=function(a,b){a.rg[a.pending++]=b&255;a.rg[a.pending++]=b>>>8&255};
Dw=function(a,b,c){a.xi>16-c?(a.tj|=b<<a.xi&65535,Cw(a,a.tj),a.tj=b>>16-a.xi,a.xi+=c-16):(a.tj|=b<<a.xi&65535,a.xi+=c)};
Ew=function(a,b,c){Dw(a,c[2*b],c[2*b+1])};
Ila=function(a,b){var c=0;do c|=a&1,a>>>=1,c<<=1;while(0<--b);return c>>>1};
Jla=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]=Ila(d[e]++,e))};
Kla=function(a){var b;for(b=0;286>b;b++)a.Yj[2*b]=0;for(b=0;30>b;b++)a.Cw[2*b]=0;for(b=0;19>b;b++)a.Si[2*b]=0;a.Yj[512]=1;a.qs=a.nC=0;a.Jm=a.matches=0};
Lla=function(a){8<a.xi?Cw(a,a.tj):0<a.xi&&(a.rg[a.pending++]=a.tj);a.tj=0;a.xi=0};
Mla=function(a,b,c){Lla(a);Cw(a,c);Cw(a,~c);yw.xz(a.rg,a.window,b,c,a.pending);a.pending+=c};
Nla=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]};
Fw=function(a,b,c){for(var d=a.zg[c],e=c<<1;e<=a.Mr;){e<a.Mr&&Nla(b,a.zg[e+1],a.zg[e],a.depth)&&e++;if(Nla(b,d,a.zg[e],a.depth))break;a.zg[c]=a.zg[e];c=e;e<<=1}a.zg[c]=d};
Pla=function(a,b,c){var d=0;if(0!==a.Jm){do{var e=a.rg[a.eE+2*d]<<8|a.rg[a.eE+2*d+1];var f=a.rg[a.EQ+d];d++;if(0===e)Ew(a,f,b);else{var h=Gw[f];Ew(a,h+256+1,b);var l=Hw[h];0!==l&&(f-=Ola[h],Dw(a,f,l));e--;h=256>e?Iw[e]:Iw[256+(e>>>7)];Ew(a,h,c);l=Jw[h];0!==l&&(e-=Kw[h],Dw(a,e,l))}}while(d<a.Jm)}Ew(a,256,b)};
Qla=function(a,b){var c=b.EX,d=b.fv.W1,e=b.fv.UY,f=b.fv.b8,h,l=-1;a.Mr=0;a.rA=573;for(h=0;h<f;h++)0!==c[2*h]?(a.zg[++a.Mr]=l=h,a.depth[h]=0):c[2*h+1]=0;for(;2>a.Mr;){var m=a.zg[++a.Mr]=2>l?++l:0;c[2*m]=1;a.depth[m]=0;a.qs--;e&&(a.nC-=d[2*m+1])}b.bB=l;for(h=a.Mr>>1;1<=h;h--)Fw(a,c,h);m=f;do h=a.zg[1],a.zg[1]=a.zg[a.Mr--],Fw(a,c,1),d=a.zg[1],a.zg[--a.rA]=h,a.zg[--a.rA]=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.zg[1]=m++,Fw(a,c,1);while(2<=
a.Mr);a.zg[--a.rA]=a.zg[1];h=b.EX;m=b.bB;d=b.fv.W1;e=b.fv.UY;f=b.fv.o8;var n=b.fv.n8,p=b.fv.C$,q,r=0;for(q=0;15>=q;q++)a.gr[q]=0;h[2*a.zg[a.rA]+1]=0;for(b=a.rA+1;573>b;b++){var t=a.zg[b];q=h[2*h[2*t+1]+1]+1;q>p&&(q=p,r++);h[2*t+1]=q;if(!(t>m)){a.gr[q]++;var v=0;t>=n&&(v=f[t-n]);var w=h[2*t];a.qs+=w*(q+v);e&&(a.nC+=w*(d[2*t+1]+v))}}if(0!==r){do{for(q=p-1;0===a.gr[q];)q--;a.gr[q]--;a.gr[q+1]+=2;a.gr[p]--;r-=2}while(0<r);for(q=p;0!==q;q--)for(t=a.gr[q];0!==t;)d=a.zg[--b],d>m||(h[2*d+1]!==q&&(a.qs+=(q-
h[2*d+1])*h[2*d],h[2*d+1]=q),t--)}Jla(c,l,a.gr)};
Rla=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.Si[2*n]+=h:0!==n?(n!==e&&a.Si[2*n]++,a.Si[32]++):10>=h?a.Si[34]++:a.Si[36]++,h=0,e=n,0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4))}};
Sla=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 Ew(a,n,a.Si);while(0!==--h)}else 0!==n?(n!==e&&(Ew(a,n,a.Si),h--),Ew(a,16,a.Si),Dw(a,h-3,2)):10>=h?(Ew(a,17,a.Si),Dw(a,h-3,3)):(Ew(a,18,a.Si),Dw(a,h-11,7));h=0;e=n;0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4)}}};
Tla=function(a){var b=4093624447,c;for(c=0;31>=c;c++,b>>>=1)if(b&1&&0!==a.Yj[2*c])return 0;if(0!==a.Yj[18]||0!==a.Yj[20]||0!==a.Yj[26])return 1;for(c=32;256>c;c++)if(0!==a.Yj[2*c])return 1;return 0};
Lw=function(a,b,c){a.rg[a.eE+2*a.Jm]=b>>>8&255;a.rg[a.eE+2*a.Jm+1]=b&255;a.rg[a.EQ+a.Jm]=c&255;a.Jm++;0===b?a.Yj[2*c]++:(a.matches++,b--,a.Yj[2*(Gw[c]+256+1)]++,a.Cw[2*(256>b?Iw[b]:Iw[256+(b>>>7)])]++);return a.Jm===a.GF-1};
Nw=function(a,b){a.msg=Mw[b];return b};
Ow=function(a){for(var b=a.length;0<=--b;)a[b]=0};
Pw=function(a){var b=a.state,c=b.pending;c>a.Ge&&(c=a.Ge);0!==c&&(yw.xz(a.output,b.rg,b.rG,c,a.kB),a.kB+=c,b.rG+=c,a.LT+=c,a.Ge-=c,b.pending-=c,0===b.pending&&(b.rG=0))};
Sw=function(a,b){var c=0<=a.Vk?a.Vk:-1,d=a.Eb-a.Vk,e=0;if(0<a.level){2===a.ye.KO&&(a.ye.KO=Tla(a));Qla(a,a.pK);Qla(a,a.VI);Rla(a,a.Yj,a.pK.bB);Rla(a,a.Cw,a.VI.bB);Qla(a,a.RW);for(e=18;3<=e&&0===a.Si[2*Ula[e]+1];e--);a.qs+=3*(e+1)+14;var f=a.qs+3+7>>>3;var h=a.nC+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&-1!==c)Dw(a,b?1:0,3),Mla(a,c,d);else if(4===a.strategy||h===f)Dw(a,2+(b?1:0),3),Pla(a,Qw,Rw);else{Dw(a,4+(b?1:0),3);c=a.pK.bB+1;d=a.VI.bB+1;e+=1;Dw(a,c-257,5);Dw(a,d-1,5);Dw(a,e-4,4);for(f=0;f<e;f++)Dw(a,
a.Si[2*Ula[f]+1],3);Sla(a,a.Yj,c-1);Sla(a,a.Cw,d-1);Pla(a,a.Yj,a.Cw)}Kla(a);b&&Lla(a);a.Vk=a.Eb;Pw(a.ye)};
Tw=function(a,b){a.rg[a.pending++]=b};
Uw=function(a,b){a.rg[a.pending++]=b>>>8&255;a.rg[a.pending++]=b&255};
Vla=function(a,b){var c=a.ZZ,d=a.Eb,e=a.zl,f=a.s_,h=a.Eb>a.mj-262?a.Eb-(a.mj-262):0,l=a.window,m=a.zv,n=a.xq,p=a.Eb+258,q=l[d+e-1],r=l[d+e];a.zl>=a.zY&&(c>>=2);f>a.hc&&(f=a.hc);do{var t=b;if(l[t+e]===r&&l[t+e-1]===q&&l[t]===l[d]&&l[++t]===l[d+1]){d+=2;for(t++;l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&d<p;);t=258-(p-d);d=p-258;if(t>e){a.ZA=b;e=t;if(t>=f)break;q=l[d+e-1];r=l[d+e]}}}while((b=n[b&m])>h&&0!==
--c);return e<=a.hc?e:a.hc};
Ww=function(a){var b=a.mj,c;do{var d=a.o3-a.hc-a.Eb;if(a.Eb>=b+(b-262)){yw.xz(a.window,a.window,b,b,0);a.ZA-=b;a.Eb-=b;a.Vk-=b;var e=c=a.XJ;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.xq[--e],a.xq[e]=f>=b?f-b:0;while(--c);d+=b}if(0===a.ye.rj)break;e=a.ye;c=a.window;f=a.Eb+a.hc;var h=e.rj;h>d&&(h=d);0===h?c=0:(e.rj-=h,yw.xz(c,e.input,e.Fx,h,f),1===e.state.wrap?e.Ud=Wla(e.Ud,c,h,f):2===e.state.wrap&&(e.Ud=Vw(e.Ud,c,h,f)),e.Fx+=h,e.Ky+=h,c=h);a.hc+=c;if(3<=a.hc+a.Dh)for(d=a.Eb-
a.Dh,a.Ce=a.window[d],a.Ce=(a.Ce<<a.Kr^a.window[d+1])&a.Jr;a.Dh&&!(a.Ce=(a.Ce<<a.Kr^a.window[d+3-1])&a.Jr,a.xq[d&a.zv]=a.head[a.Ce],a.head[a.Ce]=d,d++,a.Dh--,3>a.hc+a.Dh););}while(262>a.hc&&0!==a.ye.rj)};
Xla=function(a,b){for(var c;;){if(262>a.hc){Ww(a);if(262>a.hc&&0===b)return 1;if(0===a.hc)break}c=0;3<=a.hc&&(a.Ce=(a.Ce<<a.Kr^a.window[a.Eb+3-1])&a.Jr,c=a.xq[a.Eb&a.zv]=a.head[a.Ce],a.head[a.Ce]=a.Eb);0!==c&&a.Eb-c<=a.mj-262&&(a.Ue=Vla(a,c));if(3<=a.Ue)if(c=Lw(a,a.Eb-a.ZA,a.Ue-3),a.hc-=a.Ue,a.Ue<=a.QQ&&3<=a.hc){a.Ue--;do a.Eb++,a.Ce=(a.Ce<<a.Kr^a.window[a.Eb+3-1])&a.Jr,a.xq[a.Eb&a.zv]=a.head[a.Ce],a.head[a.Ce]=a.Eb;while(0!==--a.Ue);a.Eb++}else a.Eb+=a.Ue,a.Ue=0,a.Ce=a.window[a.Eb],a.Ce=(a.Ce<<a.Kr^
a.window[a.Eb+1])&a.Jr;else c=Lw(a,0,a.window[a.Eb]),a.hc--,a.Eb++;if(c&&(Sw(a,!1),0===a.ye.Ge))return 1}a.Dh=2>a.Eb?a.Eb:2;return 4===b?(Sw(a,!0),0===a.ye.Ge?3:4):a.Jm&&(Sw(a,!1),0===a.ye.Ge)?1:2};
Xw=function(a,b){for(var c,d;;){if(262>a.hc){Ww(a);if(262>a.hc&&0===b)return 1;if(0===a.hc)break}c=0;3<=a.hc&&(a.Ce=(a.Ce<<a.Kr^a.window[a.Eb+3-1])&a.Jr,c=a.xq[a.Eb&a.zv]=a.head[a.Ce],a.head[a.Ce]=a.Eb);a.zl=a.Ue;a.E0=a.ZA;a.Ue=2;0!==c&&a.zl<a.QQ&&a.Eb-c<=a.mj-262&&(a.Ue=Vla(a,c),5>=a.Ue&&(1===a.strategy||3===a.Ue&&4096<a.Eb-a.ZA)&&(a.Ue=2));if(3<=a.zl&&a.Ue<=a.zl){d=a.Eb+a.hc-3;c=Lw(a,a.Eb-1-a.E0,a.zl-3);a.hc-=a.zl-1;a.zl-=2;do++a.Eb<=d&&(a.Ce=(a.Ce<<a.Kr^a.window[a.Eb+3-1])&a.Jr,a.xq[a.Eb&a.zv]=
a.head[a.Ce],a.head[a.Ce]=a.Eb);while(0!==--a.zl);a.yx=0;a.Ue=2;a.Eb++;if(c&&(Sw(a,!1),0===a.ye.Ge))return 1}else if(a.yx){if((c=Lw(a,0,a.window[a.Eb-1]))&&Sw(a,!1),a.Eb++,a.hc--,0===a.ye.Ge)return 1}else a.yx=1,a.Eb++,a.hc--}a.yx&&(Lw(a,0,a.window[a.Eb-1]),a.yx=0);a.Dh=2>a.Eb?a.Eb:2;return 4===b?(Sw(a,!0),0===a.ye.Ge?3:4):a.Jm&&(Sw(a,!1),0===a.ye.Ge)?1:2};
Yla=function(a,b){for(var c,d,e,f=a.window;;){if(258>=a.hc){Ww(a);if(258>=a.hc&&0===b)return 1;if(0===a.hc)break}a.Ue=0;if(3<=a.hc&&0<a.Eb&&(d=a.Eb-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.Eb+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.Ue=258-(e-d);a.Ue>a.hc&&(a.Ue=a.hc)}3<=a.Ue?(c=Lw(a,1,a.Ue-3),a.hc-=a.Ue,a.Eb+=a.Ue,a.Ue=0):(c=Lw(a,0,a.window[a.Eb]),a.hc--,a.Eb++);if(c&&(Sw(a,!1),0===a.ye.Ge))return 1}a.Dh=0;return 4===
b?(Sw(a,!0),0===a.ye.Ge?3:4):a.Jm&&(Sw(a,!1),0===a.ye.Ge)?1:2};
Zla=function(a,b){for(var c;;){if(0===a.hc&&(Ww(a),0===a.hc)){if(0===b)return 1;break}a.Ue=0;c=Lw(a,0,a.window[a.Eb]);a.hc--;a.Eb++;if(c&&(Sw(a,!1),0===a.ye.Ge))return 1}a.Dh=0;return 4===b?(Sw(a,!0),0===a.ye.Ge?3:4):a.Jm&&(Sw(a,!1),0===a.ye.Ge)?1:2};
Yw=function(a,b,c,d,e){this.g9=a;this.B$=b;this.U$=c;this.A$=d;this.func=e};
$la=function(){this.ye=null;this.status=0;this.rg=null;this.wrap=this.pending=this.rG=this.Pm=0;this.Od=null;this.Tn=0;this.method=8;this.PA=-1;this.zv=this.hU=this.mj=0;this.window=null;this.o3=0;this.head=this.xq=null;this.s_=this.zY=this.strategy=this.level=this.QQ=this.ZZ=this.zl=this.hc=this.ZA=this.Eb=this.yx=this.E0=this.Ue=this.Vk=this.Kr=this.Jr=this.bQ=this.XJ=this.Ce=0;this.Yj=new yw.Rq(1146);this.Cw=new yw.Rq(122);this.Si=new yw.Rq(78);Ow(this.Yj);Ow(this.Cw);Ow(this.Si);this.RW=this.VI=
this.pK=null;this.gr=new yw.Rq(16);this.zg=new yw.Rq(573);Ow(this.zg);this.rA=this.Mr=0;this.depth=new yw.Rq(573);Ow(this.depth);this.xi=this.tj=this.Dh=this.matches=this.nC=this.qs=this.eE=this.Jm=this.GF=this.EQ=0};
ama=function(a,b){if(!a||!a.state||5<b||0>b)return a?Nw(a,-2):-2;var c=a.state;if(!a.output||!a.input&&0!==a.rj||666===c.status&&4!==b)return Nw(a,0===a.Ge?-5:-2);c.ye=a;var d=c.PA;c.PA=b;if(42===c.status)if(2===c.wrap)a.Ud=0,Tw(c,31),Tw(c,139),Tw(c,8),c.Od?(Tw(c,(c.Od.text?1:0)+(c.Od.Xt?2:0)+(c.Od.extra?4:0)+(c.Od.name?8:0)+(c.Od.comment?16:0)),Tw(c,c.Od.time&255),Tw(c,c.Od.time>>8&255),Tw(c,c.Od.time>>16&255),Tw(c,c.Od.time>>24&255),Tw(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),Tw(c,c.Od.os&
255),c.Od.extra&&c.Od.extra.length&&(Tw(c,c.Od.extra.length&255),Tw(c,c.Od.extra.length>>8&255)),c.Od.Xt&&(a.Ud=Vw(a.Ud,c.rg,c.pending,0)),c.Tn=0,c.status=69):(Tw(c,0),Tw(c,0),Tw(c,0),Tw(c,0),Tw(c,0),Tw(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),Tw(c,3),c.status=113);else{var e=8+(c.hU-8<<4)<<8;e|=(2<=c.strategy||2>c.level?0:6>c.level?1:6===c.level?2:3)<<6;0!==c.Eb&&(e|=32);c.status=113;Uw(c,e+(31-e%31));0!==c.Eb&&(Uw(c,a.Ud>>>16),Uw(c,a.Ud&65535));a.Ud=1}if(69===c.status)if(c.Od.extra){for(e=
c.pending;c.Tn<(c.Od.extra.length&65535)&&(c.pending!==c.Pm||(c.Od.Xt&&c.pending>e&&(a.Ud=Vw(a.Ud,c.rg,c.pending-e,e)),Pw(a),e=c.pending,c.pending!==c.Pm));)Tw(c,c.Od.extra[c.Tn]&255),c.Tn++;c.Od.Xt&&c.pending>e&&(a.Ud=Vw(a.Ud,c.rg,c.pending-e,e));c.Tn===c.Od.extra.length&&(c.Tn=0,c.status=73)}else c.status=73;if(73===c.status)if(c.Od.name){e=c.pending;do{if(c.pending===c.Pm&&(c.Od.Xt&&c.pending>e&&(a.Ud=Vw(a.Ud,c.rg,c.pending-e,e)),Pw(a),e=c.pending,c.pending===c.Pm)){var f=1;break}f=c.Tn<c.Od.name.length?
c.Od.name.charCodeAt(c.Tn++)&255:0;Tw(c,f)}while(0!==f);c.Od.Xt&&c.pending>e&&(a.Ud=Vw(a.Ud,c.rg,c.pending-e,e));0===f&&(c.Tn=0,c.status=91)}else c.status=91;if(91===c.status)if(c.Od.comment){e=c.pending;do{if(c.pending===c.Pm&&(c.Od.Xt&&c.pending>e&&(a.Ud=Vw(a.Ud,c.rg,c.pending-e,e)),Pw(a),e=c.pending,c.pending===c.Pm)){f=1;break}f=c.Tn<c.Od.comment.length?c.Od.comment.charCodeAt(c.Tn++)&255:0;Tw(c,f)}while(0!==f);c.Od.Xt&&c.pending>e&&(a.Ud=Vw(a.Ud,c.rg,c.pending-e,e));0===f&&(c.status=103)}else c.status=
103;103===c.status&&(c.Od.Xt?(c.pending+2>c.Pm&&Pw(a),c.pending+2<=c.Pm&&(Tw(c,a.Ud&255),Tw(c,a.Ud>>8&255),a.Ud=0,c.status=113)):c.status=113);if(0!==c.pending){if(Pw(a),0===a.Ge)return c.PA=-1,0}else if(0===a.rj&&(b<<1)-(4<b?9:0)<=(d<<1)-(4<d?9:0)&&4!==b)return Nw(a,-5);if(666===c.status&&0!==a.rj)return Nw(a,-5);if(0!==a.rj||0!==c.hc||0!==b&&666!==c.status){d=2===c.strategy?Zla(c,b):3===c.strategy?Yla(c,b):Zw[c.level].func(c,b);if(3===d||4===d)c.status=666;if(1===d||3===d)return 0===a.Ge&&(c.PA=
-1),0;if(2===d&&(1===b?(Dw(c,2,3),Ew(c,256,Qw),16===c.xi?(Cw(c,c.tj),c.tj=0,c.xi=0):8<=c.xi&&(c.rg[c.pending++]=c.tj&255,c.tj>>=8,c.xi-=8)):5!==b&&(Dw(c,0,3),Mla(c,0,0),3===b&&(Ow(c.head),0===c.hc&&(c.Eb=0,c.Vk=0,c.Dh=0))),Pw(a),0===a.Ge))return c.PA=-1,0}if(4!==b)return 0;if(0>=c.wrap)return 1;2===c.wrap?(Tw(c,a.Ud&255),Tw(c,a.Ud>>8&255),Tw(c,a.Ud>>16&255),Tw(c,a.Ud>>24&255),Tw(c,a.Ky&255),Tw(c,a.Ky>>8&255),Tw(c,a.Ky>>16&255),Tw(c,a.Ky>>24&255)):(Uw(c,a.Ud>>>16),Uw(c,a.Ud&65535));Pw(a);0<c.wrap&&
(c.wrap=-c.wrap);return 0!==c.pending?0:1};
$w=function(a){if(!(this instanceof $w))return new $w(a);a=this.options=yw.assign({level:-1,method:8,chunkSize:16384,Av:15,H$:8,strategy:0,to:""},a||{});a.raw&&0<a.Av?a.Av=-a.Av:a.h9&&0<a.Av&&16>a.Av&&(a.Av+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.ye=new bma;this.ye.Ge=0;var b=this.ye;var c=a.level,d=a.method,e=a.Av,f=a.H$,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=Nw(b,-2);else{8===e&&(e=9);var m=
new $la;b.state=m;m.ye=b;m.wrap=l;m.Od=null;m.hU=e;m.mj=1<<m.hU;m.zv=m.mj-1;m.bQ=f+7;m.XJ=1<<m.bQ;m.Jr=m.XJ-1;m.Kr=~~((m.bQ+3-1)/3);m.window=new yw.Ry(2*m.mj);m.head=new yw.Rq(m.XJ);m.xq=new yw.Rq(m.mj);m.GF=1<<f+6;m.Pm=4*m.GF;m.rg=new yw.Ry(m.Pm);m.eE=1*m.GF;m.EQ=3*m.GF;m.level=c;m.strategy=h;m.method=d;if(b&&b.state){b.Ky=b.LT=0;b.KO=2;c=b.state;c.pending=0;c.rG=0;0>c.wrap&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.Ud=2===c.wrap?0:1;c.PA=0;if(!cma){d=Array(16);for(f=h=0;28>f;f++)for(Ola[f]=h,e=
0;e<1<<Hw[f];e++)Gw[h++]=f;Gw[h-1]=f;for(f=h=0;16>f;f++)for(Kw[f]=h,e=0;e<1<<Jw[f];e++)Iw[h++]=f;for(h>>=7;30>f;f++)for(Kw[f]=h<<7,e=0;e<1<<Jw[f]-7;e++)Iw[256+h++]=f;for(e=0;15>=e;e++)d[e]=0;for(e=0;143>=e;)Qw[2*e+1]=8,e++,d[8]++;for(;255>=e;)Qw[2*e+1]=9,e++,d[9]++;for(;279>=e;)Qw[2*e+1]=7,e++,d[7]++;for(;287>=e;)Qw[2*e+1]=8,e++,d[8]++;Jla(Qw,287,d);for(e=0;30>e;e++)Rw[2*e+1]=5,Rw[2*e]=Ila(e,5);dma=new Aw(Qw,Hw,257,286,15);ema=new Aw(Rw,Jw,0,30,15);fma=new Aw([],gma,0,19,7);cma=!0}c.pK=new Bw(c.Yj,
dma);c.VI=new Bw(c.Cw,ema);c.RW=new Bw(c.Si,fma);c.tj=0;c.xi=0;Kla(c);c=0}else c=Nw(b,-2);0===c&&(b=b.state,b.o3=2*b.mj,Ow(b.head),b.QQ=Zw[b.level].B$,b.zY=Zw[b.level].g9,b.s_=Zw[b.level].U$,b.ZZ=Zw[b.level].A$,b.Eb=0,b.Vk=0,b.hc=0,b.Dh=0,b.Ue=b.zl=2,b.yx=0,b.Ce=0);b=c}}else b=-2;if(0!==b)throw Error(Mw[b]);a.header&&(b=this.ye)&&b.state&&2===b.state.wrap&&(b.state.Od=a.header);if(a.fE){var n;"string"===typeof a.fE?n=Hla(a.fE):"[object ArrayBuffer]"===hma.call(a.fE)?n=new Uint8Array(a.fE):n=a.fE;
a=this.ye;f=n;h=f.length;if(a&&a.state)if(n=a.state,b=n.wrap,2===b||1===b&&42!==n.status||n.hc)b=-2;else{1===b&&(a.Ud=Wla(a.Ud,f,h,0));n.wrap=0;h>=n.mj&&(0===b&&(Ow(n.head),n.Eb=0,n.Vk=0,n.Dh=0),c=new yw.Ry(n.mj),yw.xz(c,f,h-n.mj,n.mj,0),f=c,h=n.mj);c=a.rj;d=a.Fx;e=a.input;a.rj=h;a.Fx=0;a.input=f;for(Ww(n);3<=n.hc;){f=n.Eb;h=n.hc-2;do n.Ce=(n.Ce<<n.Kr^n.window[f+3-1])&n.Jr,n.xq[f&n.zv]=n.head[n.Ce],n.head[n.Ce]=f,f++;while(--h);n.Eb=f;n.hc=2;Ww(n)}n.Eb+=n.hc;n.Vk=n.Eb;n.Dh=n.hc;n.hc=0;n.Ue=n.zl=2;
n.yx=0;a.Fx=d;a.input=e;a.rj=c;n.wrap=b;b=0}else b=-2;if(0!==b)throw Error(Mw[b]);this.zob=!0}};
ima=function(a,b){b=b||{};b.h9=!0;b=new $w(b);b.push(a,!0);if(b.err)throw b.msg||Mw[b.err];return b.result};
jma=function(){var a=g.Ia.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.qa(g.Ia.apply(0,arguments))))}})};
kma=function(){var a=g.Ia.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.qa(g.Ia.apply(1,arguments))))}};
d=a.map(function(h){return h(f)});
e=jma.apply(null,g.qa(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
lma=function(){return Math.random().toString(36).substring(7).split("").join(".")};
nma=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:mma}))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"+lma()}))throw Error('The slice reducer for key "'+
b+"\" returned undefined when probed with a random type. Don't try to handle '"+(mma+'\' 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.'));})};
oma=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(t){if("function"!==typeof t)throw Error("Expected the listener to be a function. Instead, received: '"+typeof t+"'");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 v=!0;p===n&&(p=n.slice());p.push(t);return function(){if(v){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.");
v=!1;p===n&&(p=n.slice());p.splice(p.indexOf(t),1);n=null}}}
function h(t){if("object"!==typeof t||null===t)var v=!1;else{for(v=t;null!==Object.getPrototypeOf(v);)v=Object.getPrototypeOf(v);v=Object.getPrototypeOf(t)===v}if(!v)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof t+"'. 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 t.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,t)}finally{q=!1}v=n=p;for(var w=0;w<v.length;w++)(0,v[w])();return t}
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(oma)(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:mma});a={};var r=(a.dispatch=h,a.subscribe=f,a.getState=e,a.replaceReducer=function(t){if("function"!==typeof t)throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof t);l=t;h({type:pma});return r},a[qma]=function(){var t={};
return t.subscribe=function(v){function w(){v.next&&v.next(e())}
if("object"!==typeof v||null===v)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof v+"'");w();return{unsubscribe:f(w)}},t[qma]=function(){return this},t},a);
return r};
rma=function(a){return a?(a=a.privateDoNotAccessOrElseSafeScriptWrappedValue)?Hba(a):null:null};
ax=function(a){return a?(a=a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?be(a):null:null};
tma=function(a){a=sma(a);return se(a)};
g.uma=function(a){a=sma(a);return be(a)};
sma=function(a){return null===a?"null":void 0===a?"undefined":a};
bx=function(a){this.oa=P(a)};
vma=function(a){var b=a.split(""),c=[2063592428,-911426402,function(d){throw d;},
null,-1340480006,1276946775,69823558,-500886799,1101842885,90880787,function(d,e,f){var h=e.length;d.forEach(function(l,m,n){this.push(n[m]=e[(e.indexOf(l)-e.indexOf(this[m])+m+h--)%e.length])},f.split(""))},
176662878,1101842885,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},
292623238,b,function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
838972600,878656882,-527326783,415050091,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
1569237686,1035282233,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(e,1)},
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.hda(String.fromCharCode(d))}return e},
1767715570,/()(),(',,}(){)/,-268619132,-207017061,function(d,e,f,h,l,m,n){return d(l,m,n)},
-1168327559,1639552774,",]([/",-2021491486,-1325331653,-1163411673,1111473968,-734976664,1729240662,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}},
null,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
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},
1125291886,-1817395559,function(d,e){0!=e.length&&(d=(d%e.length+e.length)%e.length,e.splice(0,1,e.splice(d,1,e[0])[0]))},
-1163768507,function(d,e,f,h,l){return e(f,h,l)},
-1677128229,1780742529,function(d,e,f,h,l,m,n,p){return e(f,h,l,m,n,p)},
function(d){d.reverse()},
function(d,e){e.push(d)},
function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
function(d,e,f,h,l,m){return e(h,l,m)},
1496491918,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},
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.hda(String.fromCharCode(d))}return e},
function(d,e){e.splice(e.length,0,d)},
-901640303,-824813761,-2001350305,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},
-654190082,2035003142,",48];c[57]=c;",b,-2133292827,815535850,1117466687,1255446190,-363371863,-440713710,"for",-1439308866,-973764705,b,-166690373,-1085888369,1519457494,null,function(d,e,f,h,l,m,n,p,q,r){return e(l,m,n,p,q,r)},
function(d,e,f,h,l,m,n,p,q){return f(h,l,m,n,p,q)}];
c[3]=c;c[41]=c;c[81]=c;try{try{c[37]!==new Date("1970-01-01T10:00:04.000+10:00")/1E3&&(-9===c[79]?(0,c[48])((0,c[82])((0,c[10])(c[77],(0,c[Math.pow(8,5)-39-32666])(),c[74]),c[new Date("1970-01-01T02:45:48.000+02:45")/1E3],(0,c[238+Math.pow(3,2)+-237])(c[15],(0,c[63])(),c[74]),((0,c[21])(c[3]),c[16])(c[3],c[9]),(0,c[46])(c[76],c[new Date("1969-12-31T17:15:15.000-06:45")/1E3]),c[10],c[67],(0,c[13])(),c[74]),c[10],c[15],(0,c[57])(),c[74]):(((((((0,c[46])(c[Math.pow(6,1)+-24973- -24975],c[81]),c[46])(c[-196*
Math.pow(6,2)- -7074],c[67]),c[46])(c[50-Math.pow(1,4)- -16],c[81]),c[53])(c[Math.pow(7,1)+33-27],c[81]),c[-35526-Math.pow(2,2)+35570])(c[81],c[-21983+Math.pow(2,5)- -21971]),c[46])(c[45],c[67]),c[42])(c[3],c[26])),(0,c[35])((0,c[67])(c[75+Math.pow(4,5)+-1042]),c[75],(0,c[75])(c[57],(0,c[43])(),c[1]),c[57],(0,c[23])(),c[1])}catch(d){}try{-8<c[50]&&(-5<=c[3]&&((0,c[28])(((0,c[35])((0,c[39])(c[9],c[21]),c[22],(0,c[4])(c[Math.pow(new Date("1969-12-31T22:30:01.000-01:30")/1E3,2)-37- -116],c[Math.pow(3,
3)%117- -25]),c[47],c[53]),c[22])(c[47],c[55])|((0,c[26])(c[29],c[61]),c[32])(c[68]),c[63],c[28],c[35]),1)||(0,c[22])((0,c[10])(c[5],(0,c[62])(),c[84]),(0,c[10])(c[5],(0,c[42])(),c[84]),c[57],(((0,c[81])(c[5],c[19]),c[81])(c[Math.pow(2,1)- -16456+-16441],c[16]),c[81])(c[5],c[83]),c[81],c[38],c[37])*(0,c[59])(c[41],c[17])),0!==c[55]&&(9!==c[2]&&((((0,c[50])((0,c[81])(c[38],c[6]),c[52],(0,c[-113*Math.pow(6,4)+146507])(c[74],c[28]),c[40],c[64]),c[51])(c[17],c[0]),c[26])(c[53],c[62]),1)||((0,c[58])(c[76],
(0,c[23])(),c[45]),c[58])(c[86],(0,c[55])(),c[45])/(0,c[42])(c[new Date("1970-01-01T06:16:26.000+06:15")/1E3],c[10])|(0,c[18])((0,c[24])(c[new Date("1970-01-01T11:00:25.000+11:00")/1E3],c[32]),c[42],c[25],c[43])),5!==c[6]&&(-4!==c[17]?(0,c[15])((0,c[18])((0,c[12])(c[65],c[61]),c[61],c[29],c[7]),c[59],(((0,c[12])(c[40],(0,c[new Date("1970-01-01T06:45:23.000+06:45")/1E3])(),c[86]),c[61])(c[69],c[7]),c[67])(c[30],c[45]),c[83],c[7],c[72]):(0,c[59])((0,c[52])((0,c[83])(c[-38626+Math.pow(6,2)+38620],c[47]),
c[53],(0,c[59])(((0,c[12])(c[30],(0,c[23])(),c[86]),c[12])(c[30],(0,c[44])(),c[86]),c[67],c[30],c[60]),c[7],c[63]),c[12],c[30],(0,c[44])(),c[Math.pow(7,3)-75+-182])),4<c[0]&&((0,c[61])(c[71],c[40]),c[77])(c[48+Math.pow(8,4)-4079],(0,c[48])(c[76],c[26]),(0,c[48])(c[new Date("1969-12-31T12:16:17.000-11:45")/1E3],c[26]),(0,c[61])(c[68],c[86-Math.pow(1,4)+-55]),c[26],c[27]),(0,c[22])(c[17],c[59],c[7]),(0,c[22])(c[17],(0,c[74])(),c[7])}catch(d){6<c[78]&&(0,c[58])(c[22],c[76]),3<=c[185%Math.pow(2,1)- -47]&&
(3>=c[85]||((0,c[62])((0,c[65])(c[17]),c[75],(0,c[65])(c[29]),c[72],c[43]),0))&&((0,c[20])((0,c[73])(c[60],c[9]),c[67],c[-256+328%Math.pow(6,5)],(0,c[56])(),c[82]),c[67])(c[72],(0,c[29])(),c[82]),-3<=c[9]&&(0,c[new Date("1970-01-01T06:45:20.000+06:45")/1E3])(((0,c[12])(c[60],c[-18*Math.pow(1,2)+107]),c[14])(c[39],c[33]),c[24],c[49]),c[87]>=-19720-Math.pow(7,1)+19733?(0,c[20])((0,c[26])(c[13],c[46]),c[82],c[29],c[48]):(0,c[84])(c[40],c[54])>=(0,c[68])(c[52],(0,c[9])(),c[62])}finally{3==c[55]&&(((0,c[65])(c[52],
c[417-Math.pow(7,new Date("1970-01-01T04:00:03.000+04:00")/1E3)%(new Date("1970-01-01T06:38:09.000+06:30")/1E3)]),c[88])(c[56],c[19]),(0,c[Math.pow(7,2)%217- -16])(c[40],c[31]),1)||((0,c[0])((0,c[53])(c[40],c[21]),c[34],c[33],c[42]),c[12])(c[42],c[1])}}catch(d){return"enhanced_except_p5sB2OT-_w8_"+a}return b.join("")};
g.cx=function(a){this.name=a};
wma=function(a){this.oa=P(a)};
xma=function(a){this.oa=P(a)};
yma=function(a){this.oa=P(a)};
zma=function(a){this.oa=P(a)};
dx=function(a){this.oa=P(a)};
ex=function(a){this.oa=P(a)};
Ama=function(a){this.oa=P(a)};
Bma=function(a){this.oa=P(a)};
fx=function(a){this.oa=P(a)};
Cma=function(a){this.oa=P(a)};
Dma=function(a){this.oa=P(a)};
gx=function(a){this.oa=P(a)};
hx=function(a){this.oa=P(a)};
ix=function(a){this.oa=P(a)};
Ema=function(a){this.oa=P(a)};
Fma=function(a){this.oa=P(a)};
Gma=function(a){this.oa=P(a)};
Hma=function(a){this.oa=P(a)};
Ima=function(a){this.oa=P(a)};
jx=function(a){this.oa=P(a)};
Jma=function(a){this.oa=P(a)};
Kma=function(a){this.oa=P(a)};
Lma=function(a){this.oa=P(a)};
Mma=function(a){this.oa=P(a)};
kx=function(a){this.oa=P(a)};
lx=function(a){this.oa=P(a)};
Nma=function(a){this.oa=P(a)};
Oma=function(a){this.oa=P(a)};
Pma=function(a){this.oa=P(a)};
Qma=function(a){this.oa=P(a)};
Rma=function(a){this.oa=P(a)};
Sma=function(a){this.oa=P(a)};
mx=function(a){this.oa=P(a)};
Tma=function(a){this.oa=P(a)};
nx=function(a){this.oa=P(a)};
Uma=function(a){this.oa=P(a)};
Vma=function(a){this.oa=P(a)};
Wma=function(a){this.oa=P(a)};
Xma=function(a){this.oa=P(a)};
Yma=function(a){this.oa=P(a)};
Zma=function(a){this.oa=P(a)};
$ma=function(a){this.oa=P(a)};
ana=function(a){this.oa=P(a)};
bna=function(a){this.oa=P(a)};
cna=function(a){this.oa=P(a)};
ox=function(a){this.oa=P(a)};
dna=function(a){this.oa=P(a)};
ena=function(a){this.oa=P(a)};
px=function(a){this.oa=P(a)};
qx=function(a){this.oa=P(a)};
rx=function(a){this.oa=P(a)};
sx=function(a){this.oa=P(a)};
tx=function(a){this.oa=P(a)};
fna=function(a){this.oa=P(a)};
ux=function(a){this.oa=P(a)};
vx=function(a){this.oa=P(a)};
gna=function(a){this.oa=P(a)};
wx=function(a){this.oa=P(a)};
xx=function(a){this.oa=P(a)};
hna=function(a){this.oa=P(a)};
yx=function(a){this.oa=P(a)};
zx=function(a){this.oa=P(a)};
Ax=function(a){this.oa=P(a)};
ina=function(a){this.oa=P(a)};
jna=function(a){this.oa=P(a)};
Bx=function(a){this.oa=P(a)};
kna=function(a){this.oa=P(a)};
lna=function(a){this.oa=P(a)};
mna=function(a){this.oa=P(a)};
nna=function(a){this.oa=P(a)};
ona=function(a){this.oa=P(a)};
Cx=function(a){this.oa=P(a)};
pna=function(a){this.oa=P(a)};
qna=function(a){this.oa=P(a)};
rna=function(a){this.oa=P(a)};
Dx=function(a){this.oa=P(a)};
sna=function(a){this.oa=P(a)};
tna=function(a){this.oa=P(a)};
una=function(a){this.oa=P(a)};
Ex=function(a){this.oa=P(a)};
vna=function(a){this.oa=P(a)};
Fx=function(a){this.oa=P(a)};
wna=function(a,b){return Vk(a,1,b)};
Gx=function(a){this.oa=P(a)};
Hx=function(a){this.oa=P(a)};
Ix=function(a){this.oa=P(a)};
Jx=function(a){this.oa=P(a)};
Kx=function(a){this.oa=P(a)};
Lx=function(a){this.oa=P(a)};
xna=function(a){this.oa=P(a)};
yna=function(a){this.oa=P(a)};
Mx=function(a){this.oa=P(a)};
zna=function(a){this.oa=P(a)};
Nx=function(a){this.oa=P(a)};
Ox=function(a){this.oa=P(a)};
Px=function(a){this.oa=P(a)};
Qx=function(a){this.oa=P(a)};
Rx=function(a){this.oa=P(a)};
Zx=function(a){this.oa=P(a)};
$x=function(a){this.oa=P(a)};
ay=function(a){this.oa=P(a)};
Ana=function(a){this.oa=P(a)};
Bna=function(a){this.oa=P(a)};
Cna=function(a){this.oa=P(a)};
Dna=function(a){this.oa=P(a)};
Ena=function(a){this.oa=P(a)};
by=function(a){this.oa=P(a)};
Fna=function(a){this.oa=P(a)};
Gna=function(a){this.oa=P(a)};
Hna=function(a){this.oa=P(a)};
Ina=function(a){this.oa=P(a)};
cy=function(a){this.oa=P(a)};
Jna=function(a){this.oa=P(a)};
Kna=function(a){this.oa=P(a)};
Lna=function(a){this.oa=P(a)};
dy=function(a){this.oa=P(a)};
ey=function(a){this.oa=P(a)};
fy=function(a){this.oa=P(a)};
gy=function(a){this.oa=P(a)};
hy=function(a){this.oa=P(a)};
iy=function(a){this.oa=P(a)};
Mna=function(a){this.oa=P(a)};
jy=function(a){this.oa=P(a)};
ky=function(a){this.oa=P(a)};
ly=function(a){this.oa=P(a)};
my=function(a){this.oa=P(a)};
Nna=function(a){this.oa=P(a)};
ny=function(a){this.oa=P(a)};
oy=function(a){this.oa=P(a)};
py=function(a){this.oa=P(a)};
Ona=function(a){this.oa=P(a)};
Pna=function(a){this.oa=P(a)};
qy=function(a){this.oa=P(a)};
ry=function(a){this.oa=P(a)};
sy=function(a){this.oa=P(a)};
ty=function(a){this.oa=P(a)};
uy=function(a){this.oa=P(a)};
vy=function(a){this.oa=P(a)};
wy=function(a){this.oa=P(a)};
yy=function(a){this.oa=P(a)};
Qna=function(a){this.oa=P(a)};
Rna=function(a){this.oa=P(a)};
zy=function(a){this.oa=P(a)};
Sna=function(a){this.oa=P(a)};
Tna=function(a){this.oa=P(a)};
Una=function(a){this.oa=P(a)};
Ay=function(a){this.oa=P(a)};
Vna=function(a){this.oa=P(a)};
Wna=function(a){this.oa=P(a)};
Xna=function(a){this.oa=P(a)};
By=function(a){this.oa=P(a)};
Yna=function(a){this.oa=P(a)};
Cy=function(a){this.oa=P(a)};
Dy=function(a){this.oa=P(a)};
Ey=function(a){this.oa=P(a)};
Zna=function(a){this.oa=P(a)};
Fy=function(a){this.oa=P(a)};
$na=function(a){this.oa=P(a)};
Gy=function(a){this.oa=P(a)};
Hy=function(a){this.oa=P(a)};
aoa=function(a){this.oa=P(a)};
Iy=function(a){this.oa=P(a)};
boa=function(a){this.oa=P(a)};
Jy=function(a){this.oa=P(a)};
coa=function(a){this.oa=P(a)};
doa=function(a){this.oa=P(a)};
eoa=function(a){this.oa=P(a)};
Ky=function(a){this.oa=P(a)};
foa=function(a){this.oa=P(a)};
Ly=function(a){this.oa=P(a)};
My=function(a){this.oa=P(a)};
Ny=function(a){this.oa=P(a)};
goa=function(a){this.oa=P(a)};
Oy=function(a){this.oa=P(a)};
hoa=function(a){this.oa=P(a)};
Py=function(a){this.oa=P(a)};
Qy=function(a){this.oa=P(a)};
Ry=function(a){this.oa=P(a)};
Sy=function(a){this.oa=P(a)};
g.Ty=function(a){this.oa=P(a)};
g.Uy=function(a){this.oa=P(a)};
Vy=function(a){this.oa=P(a)};
Wy=function(a){this.oa=P(a)};
Xy=function(a){this.oa=P(a)};
ioa=function(a){this.oa=P(a)};
Yy=function(a){this.oa=P(a)};
Zy=function(a){this.oa=P(a)};
$y=function(a){this.oa=P(a)};
joa=function(a){this.oa=P(a)};
az=function(a){this.oa=P(a)};
bz=function(a){this.oa=P(a)};
cz=function(a){this.oa=P(a)};
dz=function(a){this.oa=P(a)};
koa=function(a){this.oa=P(a)};
ez=function(a){this.oa=P(a)};
fz=function(a){this.oa=P(a)};
gz=function(a){this.oa=P(a)};
hz=function(a){this.oa=P(a)};
iz=function(a){this.oa=P(a)};
loa=function(a){this.oa=P(a)};
jz=function(a){this.oa=P(a)};
moa=function(a){this.oa=P(a)};
kz=function(a){this.oa=P(a)};
noa=function(a){this.oa=P(a)};
ooa=function(a){this.oa=P(a)};
lz=function(a){this.oa=P(a)};
mz=function(a){this.oa=P(a)};
poa=function(a){this.oa=P(a)};
nz=function(a){this.oa=P(a)};
oz=function(a){this.oa=P(a)};
pz=function(a){this.oa=P(a)};
qoa=function(a){this.oa=P(a)};
roa=function(a){this.oa=P(a)};
soa=function(a){this.oa=P(a)};
toa=function(a){this.oa=P(a)};
qz=function(a){this.oa=P(a)};
rz=function(a){this.oa=P(a)};
uoa=function(a){this.oa=P(a)};
sz=function(a){this.oa=P(a)};
voa=function(a){this.oa=P(a)};
woa=function(a){this.oa=P(a)};
xoa=function(a){this.oa=P(a)};
yoa=function(a){this.oa=P(a)};
zoa=function(a){this.oa=P(a)};
tz=function(a){this.oa=P(a)};
Aoa=function(a){this.oa=P(a)};
Boa=function(a){this.oa=P(a)};
Coa=function(a){this.oa=P(a)};
uz=function(a){this.oa=P(a)};
vz=function(a){this.oa=P(a)};
Doa=function(a){this.oa=P(a)};
wz=function(a){this.oa=P(a)};
Eoa=function(a){this.oa=P(a)};
Foa=function(a){this.oa=P(a)};
xz=function(a){this.oa=P(a)};
Goa=function(a){this.oa=P(a)};
Hoa=function(a){this.oa=P(a)};
Ioa=function(a){this.oa=P(a)};
Joa=function(a){this.oa=P(a)};
yz=function(a){this.oa=P(a)};
zz=function(a){this.oa=P(a)};
Az=function(a){this.oa=P(a)};
Bz=function(a){this.oa=P(a)};
Koa=function(a){this.oa=P(a)};
Loa=function(a){this.oa=P(a)};
Cz=function(a){this.oa=P(a)};
Moa=function(a){this.oa=P(a)};
Noa=function(a){this.oa=P(a)};
Ooa=function(a){this.oa=P(a)};
Poa=function(a){this.oa=P(a)};
Dz=function(a){this.oa=P(a)};
Qoa=function(a){this.oa=P(a)};
Roa=function(a){this.oa=P(a)};
Soa=function(a){this.oa=P(a)};
Toa=function(a){this.oa=P(a)};
Uoa=function(a){this.oa=P(a)};
Voa=function(a){this.oa=P(a)};
Woa=function(a){this.oa=P(a)};
Xoa=function(a){this.oa=P(a)};
Yoa=function(a){this.oa=P(a)};
Ez=function(a){this.oa=P(a)};
Zoa=function(a){this.oa=P(a)};
Fz=function(a){this.oa=P(a)};
Gz=function(a){this.oa=P(a)};
$oa=function(a){this.oa=P(a)};
apa=function(a){this.oa=P(a)};
Hz=function(a){this.oa=P(a)};
bpa=function(a){this.oa=P(a)};
cpa=function(a){this.oa=P(a)};
dpa=function(a){this.oa=P(a)};
epa=function(a){this.oa=P(a)};
fpa=function(a){this.oa=P(a)};
gpa=function(a){this.oa=P(a)};
hpa=function(a){this.oa=P(a)};
ipa=function(a){this.oa=P(a)};
Iz=function(a){this.oa=P(a)};
jpa=function(a){this.oa=P(a)};
kpa=function(a){this.oa=P(a)};
lpa=function(a){this.oa=P(a)};
Jz=function(a){this.oa=P(a)};
mpa=function(a){this.oa=P(a)};
npa=function(a){this.oa=P(a)};
Kz=function(a){this.oa=P(a)};
Lz=function(a){this.oa=P(a)};
opa=function(a){this.oa=P(a)};
ppa=function(a){this.oa=P(a)};
Mz=function(a){this.oa=P(a)};
Nz=function(a){this.oa=P(a)};
qpa=function(a){this.oa=P(a)};
Oz=function(a){this.oa=P(a)};
rpa=function(a){this.oa=P(a)};
Pz=function(a){this.oa=P(a)};
spa=function(a){this.oa=P(a)};
Qz=function(a){this.oa=P(a)};
Rz=function(a){this.oa=P(a)};
tpa=function(a){this.oa=P(a)};
upa=function(a){this.oa=P(a)};
Sz=function(a){this.oa=P(a)};
vpa=function(a){this.oa=P(a)};
wpa=function(a){this.oa=P(a)};
Tz=function(a){this.oa=P(a)};
xpa=function(a){this.oa=P(a)};
ypa=function(a){this.oa=P(a)};
zpa=function(a){this.oa=P(a)};
Apa=function(a){this.oa=P(a)};
Bpa=function(a){this.oa=P(a)};
Cpa=function(a){this.oa=P(a)};
Dpa=function(a){this.oa=P(a)};
Epa=function(a){this.oa=P(a)};
Fpa=function(a){this.oa=P(a)};
Gpa=function(a){this.oa=P(a)};
Uz=function(a){this.oa=P(a)};
Hpa=function(a){this.oa=P(a)};
Ipa=function(a){this.oa=P(a)};
Vz=function(a){this.oa=P(a)};
Jpa=function(a){this.oa=P(a)};
Wz=function(a){this.oa=P(a)};
Xz=function(a){this.oa=P(a)};
Kpa=function(a){this.oa=P(a)};
Lpa=function(a){this.oa=P(a)};
Yz=function(a){this.oa=P(a)};
Mpa=function(a){this.oa=P(a)};
Npa=function(a,b){Ik(a,zz,1,b)};
Zz=function(a){this.oa=P(a)};
Opa=function(a,b){return Ik(a,zz,1,b)};
$z=function(a){this.oa=P(a)};
Ppa=function(a,b){return Ik(a,zz,2,b)};
aA=function(a){this.oa=P(a)};
bA=function(a){this.oa=P(a)};
cA=function(a){this.oa=P(a)};
dA=function(a){this.oa=P(a)};
Qpa=function(a){this.oa=P(a)};
eA=function(a){this.oa=P(a)};
fA=function(a){var b=new eA;return Q(b,1,a)};
gA=function(a,b){return Q(a,2,b)};
hA=function(a){this.oa=P(a)};
Rpa=function(a){this.oa=P(a)};
iA=function(a){this.oa=P(a)};
jA=function(a,b){Lk(a,68,eA,b)};
Spa=function(a){this.oa=P(a)};
Tpa=function(a){this.oa=P(a)};
kA=function(a){this.oa=P(a)};
lA=function(a){this.oa=P(a)};
mA=function(a){this.oa=P(a)};
Upa=function(a){this.oa=P(a)};
nA=function(a){this.oa=P(a)};
Vpa=function(a){this.oa=P(a)};
Wpa=function(a){this.oa=P(a)};
Xpa=function(a){this.oa=P(a)};
oA=function(a){this.oa=P(a)};
Ypa=function(a){this.oa=P(a)};
Zpa=function(a){this.oa=P(a)};
$pa=function(a){this.oa=P(a)};
pA=function(a){this.oa=P(a)};
aqa=function(a){this.oa=P(a)};
bqa=function(a){this.oa=P(a)};
qA=function(a){this.oa=P(a)};
rA=function(a){this.oa=P(a)};
cqa=function(a){this.oa=P(a)};
sA=function(a){this.oa=P(a)};
dqa=function(a){this.oa=P(a)};
eqa=function(a){this.oa=P(a)};
tA=function(a){this.oa=P(a,497)};
fqa=function(a){this.oa=P(a)};
uA=function(a){this.oa=P(a)};
gqa=function(a){this.oa=P(a)};
hqa=function(){return g.Xa("yt.ads.biscotti.lastId_")||""};
iqa=function(a){g.Ua("yt.ads.biscotti.lastId_",a)};
wA=function(){var a=arguments;1<a.length?vA[a[0]]=a[1]:1===a.length&&Object.assign(vA,a[0])};
g.xA=function(a,b){return a in vA?vA[a]:b};
yA=function(a){var b=vA.EXPERIMENT_FLAGS;return b?b[a]:void 0};
jqa=function(a){zA.forEach(function(b){return b(a)})};
g.BA=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.AA(b)}}:a};
g.AA=function(a){var b=g.Xa("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=g.xA("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),wA("ERRORS",b));jqa(a)};
CA=function(a,b,c,d,e){var f=g.Xa("yt.logging.errors.log");f?f(a,"WARNING",b,c,d,void 0,e):(f=g.xA("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),wA("ERRORS",f))};
DA=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=kqa(f[0]||""),l=kqa(f[1]||"");if(h in c){var m=c[h];Array.isArray(m)?g.Mb(m,l):c[h]=[m,l]}else c[h]=l}catch(r){var n=r,p=f[0],q=String(DA);n.args=[{key:p,value:f[1],query:a,method:lqa===q?"unchanged":q}];mqa.hasOwnProperty(p)||CA(n)}}return c};
EA=function(a){var b=[];g.Uc(a,function(c,d){var e=g.Xe(d);g.bc(Array.isArray(c)?c:[c],function(f){""==f?b.push(e):b.push(e+"="+g.Xe(f))})});
return b.join("&")};
FA=function(a){"?"===a.charAt(0)&&(a=a.substring(1));return DA(a,"&")};
nqa=function(a){return a.split(",").map(function(b){return FA(b)})};
g.GA=function(a){return-1!==a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),FA(1<a.length?a[1]:a[0])):{}};
HA=function(a,b){return oqa(a,b||{},!0)};
IA=function(a,b){return oqa(a,b||{},!1)};
oqa=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=FA(e[1]||"");for(var f in b)if(c||!g.dd(e,f))e[f]=b[f];return g.to(a,e)+d};
JA=function(a){if(!b)var b=window.location.href;var c=g.vn(1,a),d=g.wn(a);c&&d?(a=a.match(un),b=b.match(un),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.wn(b)===d&&(Number(g.vn(4,b))||null)===(Number(g.vn(4,a))||null):!0;return a};
KA=function(a){a||(a=document.location.href);a=g.vn(1,a);return null!==a&&"https"===a};
LA=function(a){a=pqa(a);return null===a?!1:"com"===a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
pqa=function(a){a=g.wn(a);return null!==a?a.split(".").reverse():null};
kqa=function(a){return a&&a.match(qqa)?a:Ye(a)};
MA=function(a){var b=rqa;a=void 0===a?hqa():a;var c=Object,d=c.assign,e=sqa(b);var f=b.j;try{var h=f.screenX;var l=f.screenY}catch(C){}try{var m=f.outerWidth;var n=f.outerHeight}catch(C){}try{var p=f.innerWidth;var q=f.innerHeight}catch(C){}try{var r=f.screenLeft;var t=f.screenTop}catch(C){}try{p=f.innerWidth,q=f.innerHeight}catch(C){}try{var v=f.screen.availWidth;var w=f.screen.availTop}catch(C){}f=[r,t,h,l,v,w,m,n,p,q];h=jia(!1,b.j.top);l={};var A=void 0===A?g.Ta:A;m=new Cv;"SVGElement"in A&&"createElementNS"in
A.document&&m.set(0);n=vha();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);A.crypto&&A.crypto.subtle&&m.set(3);"TextDecoder"in A&&"TextEncoder"in A&&m.set(4);A=ela(m);b=(l.bc=A,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=Rr(b.B),l.wgl=!!Or.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
sqa=function(a){var b={};b.dt=tqa;b.flash="0";a:{try{var c=a.j.top.location.href}catch(p){a=2;break a}a=c?c===a.B.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?Or:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=null==(f=Or.screen)?void 0:f.height;var h;b.u_w=null==(h=Or.screen)?void 0:h.width;var l;b.u_ah=null==(l=Or.screen)?void 0:l.availHeight;var m;b.u_aw=null==(m=Or.screen)?void 0:m.availWidth;var n;b.u_cd=null==(n=Or.screen)?void 0:
n.colorDepth}catch(p){}return b};
vqa=function(){if(!uqa)return null;var a=uqa();return"open"in a?a:null};
g.OA=function(a){switch(NA(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
NA=function(a){return a&&"status"in a?a.status:-1};
g.PA=function(a,b){"function"===typeof a&&(a=g.BA(a));return window.setTimeout(a,b)};
g.QA=function(a,b){"function"===typeof a&&(a=g.BA(a));return window.setInterval(a,b)};
g.RA=function(a){window.clearTimeout(a)};
g.SA=function(a){window.clearInterval(a)};
g.TA=function(a){a=wqa(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.UA=function(a,b){a=wqa(a);return void 0===a&&void 0!==b?b:Number(a||0)};
xqa=function(){return g.xA("EXPERIMENTS_TOKEN","")};
wqa=function(a){return g.xA("EXPERIMENT_FLAGS",{})[a]};
yqa=function(){for(var a=[],b=g.xA("EXPERIMENTS_FORCED_FLAGS",{}),c=g.u(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=g.xA("EXPERIMENT_FLAGS",{});d=g.u(Object.keys(c));for(var e=d.next();!e.done;e=d.next())e=e.value,e.startsWith("force_")&&void 0===b[e]&&a.push({key:e,value:String(c[e])});return a};
Bqa=function(a,b,c,d,e,f,h,l){function m(){4===(n&&"readyState"in n?n.readyState:0)&&b&&g.BA(b)(n)}
c=void 0===c?"GET":c;d=void 0===d?"":d;l=void 0===l?!1:l;var n=vqa();if(!n)return null;"onloadend"in n?n.addEventListener("loadend",m,!1):n.onreadystatechange=m;g.TA("debug_forward_web_query_parameters")&&(a=zqa(a,window.location.search));n.open(c,a,!0);f&&(n.responseType=f);h&&(n.withCredentials=!0);c="POST"===c&&(void 0===window.FormData||!(d instanceof FormData));if(e=Aqa(a,e))for(var p in e)n.setRequestHeader(p,e[p]),"content-type"===p.toLowerCase()&&(c=!1);c&&n.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");if(l&&"setAttributionReporting"in XMLHttpRequest.prototype){a={eventSourceEligible:!0,triggerEligible:!1};try{n.setAttributionReporting(a)}catch(q){CA(q)}}n.send(d);return n};
Aqa=function(a,b){b=void 0===b?{}:b;var c=JA(a),d=g.TA("web_ajax_ignore_global_headers_if_set"),e;for(e in Cqa){var f=g.xA(Cqa[e]),h="X-Goog-AuthUser"===e||"X-Goog-PageId"===e;"X-Goog-Visitor-Id"!==e||f||(f=g.xA("VISITOR_DATA"));!f||!c&&g.wn(a)||d&&void 0!==b[e]||"TVHTML5_UNPLUGGED"===g.xA("INNERTUBE_CLIENT_NAME")&&h||(b[e]=f)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||!g.wn(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!g.wn(a)){try{var l=
(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(m){}l&&(b["X-YouTube-Time-Zone"]=l)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&g.wn(a)||(b["X-YouTube-Ad-Signals"]=EA(MA()));return b};
Eqa=function(a,b){var c=g.wn(a);g.TA("debug_handle_relative_url_for_query_forward_killswitch")||!c&&JA(a)&&(c=document.location.hostname);var d=tn(g.vn(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=FA(b),f={};g.bc(Dqa,function(h){e[h]&&(f[h]=e[h])});
return IA(a,f)};
Fqa=function(a,b){b.method="POST";b.postParams||(b.postParams={});return g.VA(a,b)};
g.VA=function(a,b){var c=b.format||"JSON";a=Gqa(a,b);var d=Hqa(a,b),e=!1,f=Iqa(a,function(m){if(!e){e=!0;l&&g.RA(l);var n=g.OA(m),p=null,q=400<=m.status&&500>m.status,r=500<=m.status&&600>m.status;if(n||q||r)p=Jqa(a,c,m,b.convertToSafeHtml);n&&(n=Kqa(c,m,p));p=p||{};q=b.context||g.Ta;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,p)}},b.method,d,b.headers,b.responseType,b.withCredentials);
d=b.timeout||0;if(b.onTimeout&&0<d){var h=b.onTimeout;var l=g.PA(function(){e||(e=!0,f.abort(),g.RA(l),h.call(b.context||g.Ta,f))},d)}return f};
Gqa=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.xA("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=HA(a,b);return a};
Hqa=function(a,b){var c=g.xA("XSRF_FIELD_NAME"),d=g.xA("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.xA("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.wn(a)&&!b.withCredentials&&g.wn(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.TA("ajax_parse_query_data_only_when_filled")&&f&&0<Object.keys(f).length||f)&&"string"===typeof e&&(e=FA(e),g.ld(e,f),e=b.postBodyFormat&&
"JSON"===b.postBodyFormat?JSON.stringify(e):g.so(e));f=e||f&&!g.gd(f);!Lqa&&f&&"POST"!==b.method&&(Lqa=!0,g.AA(Error("AJAX request with postData should use POST")));return e};
Jqa=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,CA(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)?Mqa(a):null)e={},g.bc(a.getElementsByTagName("*"),function(h){e[h.tagName]=Nqa(h)})}d&&Oqa(e);
return e};
Oqa=function(a){if(g.db(a))for(var b in a)"html_content"===b||Faa(b,"_html")?a[b]=se(a[b]):Oqa(a[b])};
Kqa=function(a,b,c){if(b&&204===b.status)return!0;switch(a){case "JSON":return!!c;case "XML":return 0===Number(c&&c.return_code);case "RAW":return!0;default:return!!c}};
Mqa=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
Nqa=function(a){var b="";g.bc(a.childNodes,function(c){b+=c.nodeValue});
return b};
XA=function(a,b){var c=g.jd(b),d;return(new g.fg(function(e,f){c.onSuccess=function(h){g.OA(h)?e(new Pqa(h)):f(new WA("Request failed, status="+NA(h),"net.badstatus",h))};
c.onError=function(h){f(new WA("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new WA("Request timed out","net.timeout",h))};
d=g.VA(a,c)})).Dl(function(e){if(e instanceof mg){var f;
null==(f=d)||f.abort()}return ig(e)})};
g.YA=function(a,b,c,d){function e(l,m,n){return l.Dl(function(p){if(0>=m||403===NA(p.xhr))return ig(new WA("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(XA(a,b),m-1,q)})})}
function f(l){return new g.fg(function(m){setTimeout(m,l)})}
var h=void 0===h?-1:h;return e(XA(a,b),c-1,d)};
WA=function(a,b,c){xb.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
Pqa=function(a){this.xhr=a};
ZA=function(a){this.j=void 0===a?null:a;this.C=0;this.B=null};
$A=function(a){var b=new ZA;a=void 0===a?null:a;b.C=2;b.B=void 0===a?null:a;return b};
aB=function(a){var b=new ZA;a=void 0===a?null:a;b.C=1;b.B=void 0===a?null:a;return b};
g.dB=function(a,b,c,d,e){bB||cB.set(""+a,b,{KF:c,path:"/",domain:void 0===d?"youtube.com":d,secure:void 0===e?!1:e})};
g.eB=function(a,b){if(!bB)return cB.get(""+a,b)};
g.Qqa=function(a,b,c){bB||cB.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
Rqa=function(){if(g.TA("embeds_web_enable_cookie_detection_fix")){if(!g.Ta.navigator.cookieEnabled)return!1}else if(!cB.isEnabled())return!1;if(!cB.isEmpty())return!0;g.TA("embeds_web_enable_cookie_detection_fix")?cB.set("TESTCOOKIESENABLED","1",{KF:60,Jda:"none",secure:!0}):cB.set("TESTCOOKIESENABLED","1",{KF:60});if("1"!==cB.get("TESTCOOKIESENABLED"))return!1;cB.remove("TESTCOOKIESENABLED");return!0};
g.V=function(a,b){if(a)return a[b.name]};
Sqa=function(a){var b=g.xA("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(xn(a)));return a};
Tqa=function(a,b){var c={};g.TA("web_api_key_killswitch")&&(g.xA("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null==b?0:b.Authorization)||(c.key=g.xA("INNERTUBE_API_KEY")));g.TA("json_condensed_response")&&(c.prettyPrint="false");return a=IA(a,c)};
Uqa=function(a,b){var c=void 0===c?{}:c;a={method:void 0===b?"POST":b,mode:JA(a)?"same-origin":"cors",credentials:JA(a)?"same-origin":"include"};b={};for(var d=g.u(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};
Vqa=function(){var a=/Chrome\/(\d+)/.exec(g.pc());return a?parseFloat(a[1]):NaN};
Wqa=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.pc());if(!a)return NaN;var b=[];a=g.u(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("."))};
gB=function(){return g.fB("android")&&g.fB("chrome")&&!(g.fB("trident/")||g.fB("edge/"))&&!g.fB("cobalt")};
Xqa=function(){return g.fB("armv7")||g.fB("aarch64")||g.fB("android")};
g.hB=function(){return g.fB("cobalt")};
iB=function(){return g.fB("cobalt")&&g.fB("appletv")};
Yqa=function(){return g.fB("(ps3; leanback shell)")||g.fB("ps3")&&g.hB()};
Zqa=function(){return g.fB("(ps4; leanback shell)")||g.fB("ps4")&&g.hB()};
g.$qa=function(){return g.hB()&&(g.fB("ps4 vr")||g.fB("ps4 pro vr"))};
jB=function(){var a=/WebKit\/([0-9]+)/.exec(g.pc());return!!(a&&600<=parseInt(a[1],10))};
ara=function(){var a=/WebKit\/([0-9]+)/.exec(g.pc());return!!(a&&602<=parseInt(a[1],10))};
bra=function(){return g.fB("iemobile")||g.fB("windows phone")&&g.fB("edge")};
cra=function(){return(kB||lB)&&g.fB("applewebkit")&&!g.fB("version")&&(!g.fB("safari")||g.fB("gsa/"))};
nB=function(){return g.mB&&g.fB("version/")};
dra=function(){return g.fB("smart-tv")&&g.fB("samsung")};
g.fB=function(a){var b=g.pc();return b?0<=b.toLowerCase().indexOf(a):!1};
era=function(){return hfa()||cra()||nB()?!0:g.xA("EOM_VISITOR_DATA")?!1:!0};
oB=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
pB=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
qB=function(a,b){return void 0===b||null===b?a:Number(b)};
rB=function(a,b){return void 0===b||null===b?a:b.toString()};
gra=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(fra))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
sB=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};
ira=function(a){return"EMBEDDED_PLAYER_MODE_PFL"===hra(a,!1)};
g.tB=function(a){return"EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"===a||"EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"===a?!0:!1};
hra=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?pB(b,c.embeddedPlayerMode,jra):b};
kra=function(a){xb.call(this,a.message||a.description||a.name);this.isMissing=a instanceof uB;this.isTimeout=a instanceof WA&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof mg};
uB=function(){xb.call(this,"Biscotti ID is missing from server")};
lra=function(){if(g.TA("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!era())return Error("User has not consented - not fetching biscotti id.");var a=g.xA("PLAYER_VARS",{});if("1"==g.hd(a,"privembed",!1))return Error("Biscotti ID is not available in private embed mode");if(ira(a))return Error("Biscotti id fetching has been disabled for pfl.")};
pra=function(){var a=lra();if(void 0!==a)return ig(a);vB||(vB=XA("//googleads.g.doubleclick.net/pagead/id",mra).then(nra).Dl(function(b){return ora(2,b)}));
return vB};
nra=function(a){a=a.xhr.responseText;if(!ec(a,")]}'"))throw new uB;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new uB;a=a.id;iqa(a);vB=aB(a);qra(18E5,2);return a};
ora=function(a,b){b=new kra(b);iqa("");vB=$A(b);0<a&&qra(12E4,a-1);throw b;};
qra=function(a,b){g.PA(function(){XA("//googleads.g.doubleclick.net/pagead/id",mra).then(nra,function(c){return ora(b,c)}).Dl(g.Jd)},a)};
rra=function(){try{var a=g.Xa("yt.ads.biscotti.getId_");return a?a():pra()}catch(b){return ig(b)}};
tra=function(a){a&&(a.dataset?a.dataset[sra()]="true":Nba(a))};
ura=function(a){return a?a.dataset?a.dataset[sra()]:a.getAttribute("data-loaded"):null};
sra=function(){return vra.loaded||(vra.loaded="loaded".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}))};
xra=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=wra+"VisibilityState";if(b in a)return a[b]};
wB=function(a,b){var c;Ys(a,function(d){c=b[d];return!!c});
return c};
yra=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()};
zB=function(a){var b;g.xB()?yB()==a&&(b=document):b=a;return b&&(a=wB(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
zra=function(a){return g.Db(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Ara=function(){var a=document;return g.Db(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.xB=function(){return!!wB(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
yB=function(a){a=void 0===a?!1:a;var b=wB(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
AB=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 Bra||(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.B=a.pageY}}catch(e){}};
Kra=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.j=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.B=a.clientY+b}};
Lra=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 fd(BB,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.db(e[4])&&g.db(d)&&g.id(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.CB=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Lra(a,b,c,d);if(e)return e;e=++Mra.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new AB(l);if(!Lf(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new AB(l);
l.currentTarget=a;return c.call(a,l)};
h=g.BA(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Nra()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);BB[e]=[a,b,c,h,d];return e};
Pra=function(a){return Ora(a,function(b){return g.Pv(b,"ytp-ad-has-logging-urls")})};
Ora=function(a,b){var c=document.body||document;return g.CB(c,"click",function(d){var e=Lf(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.DB=function(a){a&&("string"==typeof a&&(a=[a]),g.bc(a,function(b){if(b in BB){var c=BB[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Nra()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete BB[b]}}))};
Qra=function(a){for(var b in BB)BB[b][0]==a&&g.DB(b)};
EB=function(a){a=a||window.event;var b;a.composedPath&&"function"===typeof a.composedPath?b=a.composedPath():b=a.path;b&&b.length?a=b[0]:(a=a||window.event,a=a.target||a.srcElement,3==a.nodeType&&(a=a.parentNode));return a};
JB=function(a){this.N=a;this.j=null;this.D=0;this.K=null;this.G=0;this.B=[];for(a=0;4>a;a++)this.B.push(0);this.C=0;this.ra=g.CB(window,"mousemove",(0,g.gb)(this.Y,this));this.Z=g.QA((0,g.gb)(this.qa,this),25)};
KB=function(a){g.I.call(this);this.N=[];this.rb=a||this};
LB=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)};
g.MB=function(a,b){for(;a.N.length;){var c=a.N.pop(),d=void 0;b&&Rra()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
NB=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||{}};
Sra=function(a){a instanceof NB||(a=new NB(a));return a};
g.PB=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.OB)():Tra())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.QB=function(a){var b=Tra(),c=(0,g.OB)();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};
Ura=function(){var a=(0,g.OB)();if(a&&(a=a.B("yt-player-quality")))return a.creation};
g.RB=function(a){try{var b=Tra(),c=(0,g.OB)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.SB=function(){return g.QB("yt-remote-session-screen-id")};
Vra=function(a){var b=this;this.B=void 0;this.j=!1;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.B=c});
a.addEventListener("appinstalled",function(){b.j=!0},{once:!0})};
Wra=function(){if(!g.Ta.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Ta.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Ta.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Ta.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Ta.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
TB=function(){this.d2=!0};
Xra=function(){TB.instance||(TB.instance=new TB);return TB.instance};
Yra=function(a){switch(a){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}};
Zra=function(){this.j=g.xA("ALT_PREF_COOKIE_NAME","PREF");this.B=g.xA("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.eB(this.j);a&&this.parse(a)};
g.UB=function(){$ra||($ra=new Zra);return $ra};
g.VB=function(a,b){return!!((asa("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
bsa=function(a,b){var c="f"+(Math.floor(a/31)+1);a=1<<a%31;var d=asa(c)||0;d=b?d|a:d&~a;0===d?delete WB[c]:(b=d.toString(16),WB[c]=b.toString())};
csa=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
dsa=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
asa=function(a){a=void 0!==WB[a]?WB[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
esa=function(){var a=g.Ta.navigator;return a?a.connection:void 0};
gsa=function(){var a=esa();if(a){var b=fsa[a.type||"unknown"]||"CONN_UNKNOWN";a=fsa[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}};
isa=function(){var a=esa();if(null!=a&&a.effectiveType)return hsa.hasOwnProperty(a.effectiveType)?hsa[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
g.XB=function(a){var b=g.Ia.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(g.qa(b))};
g.ZB=function(){try{return g.YB(),!0}catch(a){return!1}};
g.YB=function(a){if(void 0!==g.xA("DATASYNC_ID"))return g.xA("DATASYNC_ID");throw new g.XB("Datasync ID not set",void 0===a?"unknown":a);};
$B=function(){this.j=new WeakMap};
g.bC=function(a,b,c){return aC(b,0,c)};
jsa=function(a){var b=g.Xa("yt.scheduler.instance.addImmediateJob");b?b(a):a()};
cC=function(){$B.apply(this,arguments)};
g.dC=function(){cC.instance||(cC.instance=new cC);return cC.instance};
g.eC=function(){return!!g.Xa("yt.scheduler.instance")};
aC=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Xa("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.PA(a,c||0)};
fC=function(a,b){(a=g.Xa("yt.scheduler.instance.setPriorityThreshold"))&&a(b)};
gC=function(a){this.j=(a=g.tw(a))?new lw(a):null;this.B=document.domain||window.location.hostname};
lsa=function(){var a;return null==(a=ksa())?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
osa=function(){var a={};for(hC=new msa(void 0===a.handleError?nsa:a.handleError,void 0===a.logEvent?g.iC:a.logEvent);0<jC.length;)switch(a=jC.shift(),a.type){case "ERROR":hC.iq(a.payload);break;case "EVENT":hC.logEvent(a.eventType,a.payload)}};
lC=function(a){kC||(hC?hC.iq(a):(jC.push({type:"ERROR",payload:a}),10<jC.length&&jC.shift()))};
mC=function(a,b){kC||(hC?hC.logEvent(a,b):(jC.push({type:"EVENT",eventType:a,payload:b}),10<jC.length&&jC.shift()))};
nC=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
oC=function(a){return a.substr(0,a.indexOf(":"))||a};
g.pC=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?psa[a]:c;d=void 0===d?qsa[a]:d;e=void 0===e?rsa[a]:e;g.XB.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.pC.prototype)};
ssa=function(a,b){g.pC.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},psa.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,ssa.prototype)};
qC=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,qC.prototype)};
usa=function(a,b,c,d){b=oC(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.pC)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if("QuotaExceededError"===e.name)return new g.pC("QUOTA_EXCEEDED",a);if(g.rC&&"UnknownError"===e.name)return new g.pC("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof qC)return new g.pC("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if("InvalidStateError"===e.name&&tsa.some(function(f){return e.message.includes(f)}))return new g.pC("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if("AbortError"===e.name)return new g.pC("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",mL:e.name})];e.level="WARNING";return e};
g.sC=function(a,b,c){var d=lsa();return new g.pC("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:null==d?void 0:d.hasSucceededOnce}})};
vsa=function(a){if(!a)throw Error();throw a;};
wsa=function(a){return a};
tC=function(a){this.j=a};
g.uC=function(a){function b(e){if("PENDING"===d.state.status){d.state={status:"REJECTED",reason:e};e=g.u(d.B);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.u(d.j);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
var d=this;this.state={status:"PENDING"};this.j=[];this.B=[];a=a.j;try{a(c,b)}catch(e){b(e)}};
ysa=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.uC?xsa(a,b,f,d,e):d(f)}catch(h){e(h)}};
zsa=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.uC?xsa(a,b,f,d,e):d(f)}catch(h){e(h)}};
xsa=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.uC?xsa(a,b,f,d,e):d(f)},function(f){e(f)})};
Asa=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)};
Bsa=function(a){return new Promise(function(b,c){Asa(a,b,c)})};
vC=function(a){return new g.uC(new tC(function(b,c){Asa(a,b,c)}))};
Csa=function(a,b){return new g.uC(new tC(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()}))};
Dsa=function(a,b){this.request=a;this.cursor=b};
Esa=function(a){return vC(a).then(function(b){return b?new Dsa(a,b):null})};
g.Fsa=function(a){a.cursor.continue(void 0);return Esa(a.request)};
Gsa=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.C=Math.round((0,g.wC)());this.B=!1};
g.xC=function(a,b,c){a=a.j.createObjectStore(b,c);return new Hsa(a)};
yC=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)};
g.BC=function(a,b,c){return g.zC(a,[b],{mode:"readwrite",Pb:!0},function(d){return g.AC(d.objectStore(b),c)})};
g.zC=function(a,b,c,d){var e,f,h,l,m,n,p,q,r,t,v,w;return g.G(function(A){switch(A.j){case 1:var C={mode:"readonly",Pb:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?C.mode=c:Object.assign(C,c);e=C;a.transactionCount++;f=e.Pb?3:1;h=0;case 2:if(l){A.Ia(4);break}h++;m=Math.round((0,g.wC)());g.Ba(A,5);n=a.j.transaction(b,e.mode);C=new CC(n);C=Isa(C,d);return g.z(A,C,7);case 7:return p=A.B,q=Math.round((0,g.wC)()),Jsa(a,m,q,h,void 0,b.join(),e),A.return(p);case 5:r=g.Da(A);t=Math.round((0,g.wC)());
v=usa(r,a.j.name,b.join(),a.j.version);if((w=v instanceof g.pC&&!v.j)||h>=f)Jsa(a,m,t,h,v,b.join(),e),l=v;A.Ia(2);break;case 4:return A.return(Promise.reject(l))}})};
Jsa=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.pC&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&mC("QUOTA_EXCEEDED",{dbName:oC(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.pC&&"UNKNOWN_ABORT"===e.type&&(c-=a.C,0>c&&c>=Math.pow(2,31)&&(c=0),mC("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.B=!0),Ksa(a,!1,d,f,b,h.tag),lC(e)):Ksa(a,!0,d,
f,b,h.tag)};
Ksa=function(a,b,c,d,e,f){mC("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.B,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
Hsa=function(a){this.j=a};
g.DC=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
Lsa=function(a,b){return g.EC(a,{query:b},function(c){return c.delete().then(function(){return g.FC(c)})}).then(function(){})};
Msa=function(a,b,c){var d=[];return g.EC(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),g.FC(e)}).then(function(){return d})};
Osa=function(a){return"getAllKeys"in IDBObjectStore.prototype?vC(a.j.getAllKeys(void 0,void 0)):Nsa(a)};
Nsa=function(a){var b=[];return g.Psa(a,{query:void 0},function(c){b.push(c.cursor.primaryKey);return g.Fsa(c)}).then(function(){return b})};
g.AC=function(a,b,c){return vC(a.j.put(b,c))};
g.EC=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return Qsa(a).then(function(d){return Csa(d,c)})};
g.Psa=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 Esa(a).then(function(e){return Csa(e,c)})};
CC=function(a){var b=this;this.j=a;this.C=new Map;this.B=!1;this.done=new Promise(function(c,d){b.j.addEventListener("complete",function(){c()});
b.j.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.j.error)});
b.j.addEventListener("abort",function(){var e=b.j.error;if(e)d(e);else if(!b.B){e=g.pC;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)}})})};
Isa=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.u(d).next().value})};
Rsa=function(a){this.j=a};
Ssa=function(a,b,c){var d=[];return g.GC(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),g.FC(e)}).then(function(){return d})};
g.GC=function(a,b,c){a=a.j.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return Qsa(a).then(function(d){return Csa(d,c)})};
HC=function(a,b){this.request=a;this.cursor=b};
Qsa=function(a){return vC(a).then(function(b){return b?new HC(a,b):null})};
g.FC=function(a){a.cursor.continue(void 0);return Qsa(a.request)};
Tsa=function(a,b,c){return new Promise(function(d,e){function f(){r||(r=new Gsa(h.result,{closed:q}));return r}
var h=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.wea,p=c.upgrade,q=c.closed,r;h.addEventListener("upgradeneeded",function(t){try{if(null===t.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");t.dataLoss&&"none"!==t.dataLoss&&mC("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:oC(a)});var v=f(),w=new CC(h.transaction);
p&&p(v,function(A){return t.oldVersion<A&&t.newVersion>=A},w);
w.done.catch(function(A){e(A)})}catch(A){e(A)}});
h.addEventListener("success",function(){var t=h.result;m&&t.addEventListener("versionchange",function(){m(f())});
t.addEventListener("close",function(){mC("IDB_UNEXPECTEDLY_CLOSED",{dbName:oC(a),dbVersion:t.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
Usa=function(a,b,c){c=void 0===c?{}:c;return Tsa(a,b,c)};
IC=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.G(function(h){if(1==h.j)return g.Ba(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.z(h,Bsa(c),4);
if(2!=h.j)return g.Ca(h,0);f=g.Da(h);throw usa(f,a,"",-1);})};
JC=function(a,b){this.name=a;this.options=b;this.C=!0;this.G=this.D=0};
Vsa=function(a,b){return new g.pC("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
g.KC=function(a,b){if(!b)throw g.sC("openWithToken",oC(a.name));return a.open()};
Xsa=function(a,b){var c;return g.G(function(d){if(1==d.j)return g.z(d,g.KC(Wsa,b),2);c=d.B;return d.return(g.zC(c,["databases"],{Pb:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(h){if(h?a.actualName!==h.actualName||a.publicName!==h.publicName||a.userIdentifier!==h.userIdentifier:1)return g.AC(f,a).then(function(){})})}))})};
LC=function(a,b){var c;return g.G(function(d){if(1==d.j)return a?g.z(d,g.KC(Wsa,b),2):d.return();c=d.B;return d.return(c.delete("databases",a))})};
Ysa=function(a,b){var c,d;return g.G(function(e){return 1==e.j?(c=[],g.z(e,g.KC(Wsa,b),2)):3!=e.j?(d=e.B,g.z(e,g.zC(d,["databases"],{Pb:!0,mode:"readonly"},function(f){c.length=0;return g.EC(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return g.FC(h)})}),3)):e.return(c)})};
Zsa=function(a,b){return Ysa(function(c){return c.publicName===a&&void 0!==c.userIdentifier},b)};
ata=function(){var a,b,c,d;return g.G(function(e){switch(e.j){case 1:a=lsa();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(MC&&jB()&&!ara()||g.NC)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(f){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);g.Ba(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.z(e,Xsa(d,$sa),4);case 4:return g.z(e,LC("yt-idb-test-do-not-use",$sa),5);case 5:return e.return(!0);case 2:return g.Da(e),e.return(!1)}})};
cta=function(){if(void 0!==bta)return bta;kC=!0;return bta=ata().then(function(a){kC=!1;var b;if(null!=(b=ksa())&&b.j){var c;b={hasSucceededOnce:(null==(c=lsa())?void 0:c.hasSucceededOnce)||a};var d;null==(d=ksa())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
OC=function(){return g.Xa("ytglobal.idbToken_")||void 0};
g.PC=function(){var a=OC();return a?Promise.resolve(a):cta().then(function(b){(b=b?$sa:void 0)&&g.Ua("ytglobal.idbToken_",b);return b})};
dta=function(a){if(!g.ZB())throw a=new g.pC("AUTH_INVALID",{dbName:a}),lC(a),a;var b=g.YB();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
eta=function(a,b,c,d){var e,f,h,l,m,n;return g.G(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.z(p,g.PC(),2);case 2:h=p.B;if(!h)throw l=g.sC("openDbImpl",a,b),g.TA("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),lC(l),l;nC(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:dta(a);g.Ba(p,3);return g.z(p,Xsa(m,h),5);case 5:return g.z(p,Usa(m.actualName,b,d),6);case 6:return p.return(p.B);case 3:return n=g.Da(p),g.Ba(p,7),g.z(p,LC(m.actualName,
h),9);case 9:g.Ca(p,8);break;case 7:g.Da(p);case 8:throw n;}})};
fta=function(a,b,c){c=void 0===c?{}:c;return eta(a,b,!1,c)};
gta=function(a,b,c){c=void 0===c?{}:c;return eta(a,b,!0,c)};
hta=function(a,b){b=void 0===b?{}:b;var c,d;return g.G(function(e){if(1==e.j)return g.z(e,g.PC(),2);if(3!=e.j){c=e.B;if(!c)return e.return();nC(a);d=dta(a);return g.z(e,IC(d.actualName,b),3)}return g.z(e,LC(d.actualName,c),0)})};
ita=function(a,b,c){a=a.map(function(d){return g.G(function(e){return 1==e.j?g.z(e,IC(d.actualName,b),2):g.z(e,LC(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
jta=function(a){var b=void 0===b?{}:b;var c,d;return g.G(function(e){if(1==e.j)return g.z(e,g.PC(),2);if(3!=e.j){c=e.B;if(!c)return e.return();nC(a);return g.z(e,Zsa(a,c),3)}d=e.B;return g.z(e,ita(d,b,c),0)})};
kta=function(a,b){b=void 0===b?{}:b;var c;return g.G(function(d){if(1==d.j)return g.z(d,g.PC(),2);if(3!=d.j){c=d.B;if(!c)return d.return();nC(a);return g.z(d,IC(a,b),3)}return g.z(d,LC(a,c),0)})};
QC=function(a,b){JC.call(this,a,b);this.options=b;nC(a)};
lta=function(a,b){var c;return function(){c||(c=new QC(a,b));return c}};
g.RC=function(a,b){return lta(a,b)};
SC=function(a){return g.KC(mta(),a)};
nta=function(a,b,c,d){var e,f,h;return g.G(function(l){switch(l.j){case 1:return e={config:a,hashData:b,timestamp:void 0!==d?d:(0,g.wC)()},g.z(l,SC(c),2);case 2:return f=l.B,g.z(l,f.clear("hotConfigStore"),3);case 3:return g.z(l,g.BC(f,"hotConfigStore",e),4);case 4:return h=l.B,l.return(h)}})};
ota=function(a,b,c,d,e){var f,h,l;return g.G(function(m){switch(m.j){case 1:return f={config:a,hashData:b,configData:c,timestamp:void 0!==e?e:(0,g.wC)()},g.z(m,SC(d),2);case 2:return h=m.B,g.z(m,h.clear("coldConfigStore"),3);case 3:return g.z(m,g.BC(h,"coldConfigStore",f),4);case 4:return l=m.B,m.return(l)}})};
pta=function(a){var b,c;return g.G(function(d){return 1==d.j?g.z(d,SC(a),2):3!=d.j?(b=d.B,c=void 0,g.z(d,g.zC(b,["coldConfigStore"],{mode:"readwrite",Pb:!0},function(e){return g.GC(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
qta=function(a){var b,c;return g.G(function(d){return 1==d.j?g.z(d,SC(a),2):3!=d.j?(b=d.B,c=void 0,g.z(d,g.zC(b,["hotConfigStore"],{mode:"readwrite",Pb:!0},function(e){return g.GC(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
rta=function(){return g.G(function(a){return g.z(a,jta("ytGcfConfig"),0)})};
sta=function(){g.I.call(this);this.B=[];this.j=[];var a=g.Xa("yt.gcf.config.hotUpdateCallbacks");a?(this.B=[].concat(g.qa(a)),this.j=a):(this.j=[],g.Ua("yt.gcf.config.hotUpdateCallbacks",this.j))};
XC=function(){var a=this;this.G=!1;this.C=this.D=0;this.K=new sta;this.wd={uqb:function(){a.G=!0},
zpb:function(){return a.j},
Arb:function(b){TC(a,b)},
As:function(b){a.As(b)},
urb:function(b){tta(a,b)},
C8:function(){return a.coldHashData},
K8:function(){return a.hotHashData},
Qpb:function(){return a.B},
Ipb:function(){return UC()},
Kpb:function(){return VC()},
Jpb:function(){return g.Xa("yt.gcf.config.coldHashData")},
Lpb:function(){return g.Xa("yt.gcf.config.hotHashData")},
Qrb:function(){uta(a)},
orb:function(){a.As(void 0);WC(a);delete XC.instance},
xrb:function(b){a.C=b},
Epb:function(){return a.C}}};
vta=function(){if(!XC.instance){var a=new XC;XC.instance=a}return XC.instance};
yta=function(a){var b;g.G(function(c){if(1==c.j)return g.TA("start_client_gcf")||g.TA("delete_gcf_config_db")?g.TA("start_client_gcf")?g.z(c,g.PC(),3):c.Ia(2):c.return();2!=c.j&&((b=c.B)&&g.ZB()&&!g.TA("delete_gcf_config_db")?(a.G=!0,uta(a)):(wta(a),xta(a)));return g.TA("delete_gcf_config_db")?g.z(c,rta(),0):c.Ia(0)})};
YC=function(){var a;return null!=(a=VC())?a:g.xA("RAW_HOT_CONFIG_GROUP")};
zta=function(a){var b,c,d,e,f,h;return g.G(function(l){switch(l.j){case 1:if(a.B)return l.return(VC());if(!a.G)return b=g.sC("getHotConfig IDB not initialized"),CA(b),l.return(Promise.reject(b));c=OC();d=g.xA("TIME_CREATED_MS");if(!c){e=g.sC("getHotConfig token error");CA(e);l.Ia(2);break}return g.z(l,qta(c),3);case 3:if((f=l.B)&&f.timestamp>d)return TC(a,f.config),a.As(f.hashData),l.return(VC());case 2:xta(a);if(!(c&&a.B&&a.hotHashData)){l.Ia(4);break}return g.z(l,nta(a.B,a.hotHashData,c,d),4);case 4:return a.B?
l.return(VC()):(h=new g.XB("Config not available in ytConfig"),CA(h),l.return(Promise.reject(h)))}})};
Bta=function(a){var b,c,d,e,f,h;return g.G(function(l){switch(l.j){case 1:if(a.j)return l.return(UC());if(!a.G)return b=g.sC("getColdConfig IDB not initialized"),CA(b),l.return(Promise.reject(b));c=OC();d=g.xA("TIME_CREATED_MS");if(!c){e=g.sC("getColdConfig");CA(e);l.Ia(2);break}return g.z(l,pta(c),3);case 3:if((f=l.B)&&f.timestamp>d)return tta(a,f.config),Ata(a,f.configData),WC(a,f.hashData),l.return(UC());case 2:wta(a);if(!(c&&a.j&&a.coldHashData&&a.configData)){l.Ia(4);break}return g.z(l,ota(a.j,
a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(UC()):(h=new g.XB("Config not available in ytConfig"),CA(h),l.return(Promise.reject(h)))}})};
uta=function(a){if(!a.B||!a.j){if(!OC()){var b=g.sC("scheduleGetConfigs");CA(b)}a.D||(a.D=g.Bv.Qi(function(){return g.G(function(c){switch(c.j){case 1:return g.Ba(c,2),g.z(c,zta(a),4);case 4:g.Ca(c,3);break;case 2:g.Da(c);case 3:return g.Ba(c,5),g.z(c,Bta(a),7);case 7:g.Ca(c,6);break;case 5:g.Da(c);case 6:a.D&&(a.D=0),g.Aa(c)}})},100))}};
Cta=function(a,b,c){var d,e,f;return g.G(function(h){switch(h.j){case 1:if(!g.TA("start_client_gcf")){h.Ia(0);break}c&&TC(a,c);a.As(b);d=OC();if(!d){h.Ia(3);break}if(c){h.Ia(4);break}return g.z(h,qta(d),5);case 5:e=h.B,c=null==(f=e)?void 0:f.config;case 4:return g.z(h,nta(c,b,d),3);case 3:if(c)for(var l=c,m=g.u(a.K.j),n=m.next();!n.done;n=m.next())n=n.value,n(l);g.Aa(h)}})};
Dta=function(a,b,c){var d,e,f,h;return g.G(function(l){if(1==l.j){if(!g.TA("start_client_gcf"))return l.Ia(0);WC(a,b);return(d=OC())?c?l.Ia(4):g.z(l,pta(d),5):l.Ia(0)}4!=l.j&&(e=l.B,c=null==(f=e)?void 0:f.config);if(!c)return l.Ia(0);h=c.configData;return g.z(l,ota(c,b,h,d),0)})};
Eta=function(){var a=vta(),b=(0,g.wC)()-a.C;if(!(0!==a.C&&b<g.UA("send_config_hash_timer"))){b=g.Xa("yt.gcf.config.coldConfigData");var c=g.Xa("yt.gcf.config.hotHashData"),d=g.Xa("yt.gcf.config.coldHashData");b&&c&&d&&(a.C=(0,g.wC)());return{coldConfigData:b,hotHashData:c,coldHashData:d}}};
wta=function(a){tta(a,g.xA("RAW_COLD_CONFIG_GROUP"));WC(a,g.xA("SERIALIZED_COLD_HASH_DATA"));var b;Ata(a,null==(b=a.j)?void 0:b.configData)};
xta=function(a){TC(a,g.xA("RAW_HOT_CONFIG_GROUP"));a.As(g.xA("SERIALIZED_HOT_HASH_DATA"))};
TC=function(a,b){a.B=b;g.Ua("yt.gcf.config.hotConfigGroup",a.B||null)};
tta=function(a,b){a.j=b;g.Ua("yt.gcf.config.coldConfigGroup",a.j||null)};
WC=function(a,b){a.coldHashData=b;g.Ua("yt.gcf.config.coldHashData",a.coldHashData||null)};
Ata=function(a,b){a.configData=b;g.Ua("yt.gcf.config.coldConfigData",a.configData||null)};
VC=function(){return g.Xa("yt.gcf.config.hotConfigGroup")};
UC=function(){return g.Xa("yt.gcf.config.coldConfigGroup")};
Fta=function(){return"INNERTUBE_API_KEY"in vA&&"INNERTUBE_API_VERSION"in vA};
g.ZC=function(){return{innertubeApiKey:g.xA("INNERTUBE_API_KEY"),innertubeApiVersion:g.xA("INNERTUBE_API_VERSION"),gK:g.xA("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),kQ:g.xA("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),gZ:g.xA("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.xA("INNERTUBE_CONTEXT_CLIENT_VERSION"),mQ:g.xA("INNERTUBE_CONTEXT_HL"),lQ:g.xA("INNERTUBE_CONTEXT_GL"),hZ:g.xA("INNERTUBE_HOST_OVERRIDE")||"",iZ:!!g.xA("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),nQ:!!g.xA("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.xA("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.Mta=function(a){var b={client:{hl:a.mQ,gl:a.lQ,clientName:a.kQ,clientVersion:a.innertubeContextClientVersion,configInfo:a.gK}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.Ta.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=xqa();""!==c&&(b.client.experimentsToken=c);c=yqa();0<c.length&&(b.request={internalExperimentFlags:c});Gta(a,void 0,b);Hta(void 0,b);Ita(void 0,b);Jta(a,void 0,b);Kta(void 0,b);g.TA("start_client_gcf")&&Lta(void 0,b);g.xA("DELEGATED_SESSION_ID")&&
!g.TA("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.xA("DELEGATED_SESSION_ID")});!g.TA("fill_delegate_context_in_gel_killswitch")&&(a=g.xA("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(b.user=Object.assign({},b.user,{serializedDelegationContext:a}));a=Object;c=a.assign;for(var d=b.client,e={},f=g.u(Object.entries(FA(g.xA("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.u(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};
Gta=function(a,b,c){a=a.kQ;if("WEB"===a||"MWEB"===a||1===a||2===a)if(b){c=g.Hk(b,Mx,96)||new Mx;var d=Wra();d=Object.keys(Nta).indexOf(d);d=-1===d?null:d;null!==d&&S(c,3,d);Ik(b,Mx,96,c)}else c&&(c.client.mainAppWebInfo=null!=(d=c.client.mainAppWebInfo)?d:{},c.client.mainAppWebInfo.webDisplayMode=Wra())};
Hta=function(a,b){var c=g.Xa("yt.embedded_player.embed_url");c&&(a?(b=g.Hk(a,Qx,7)||new Qx,Q(b,4,c),Ik(a,Qx,7,b)):b&&(b.thirdParty={embedUrl:c}))};
Ita=function(a,b){var c;if(g.TA("web_log_memory_total_kbytes")&&(null==(c=g.Ta.navigator)?0:c.deviceMemory)){var d;c=null==(d=g.Ta.navigator)?void 0:d.deviceMemory;a?Oj(a,95,Ii(1E6*c)):b&&(b.client.memoryTotalKbytes=""+1E6*c)}};
Jta=function(a,b,c){if(a.appInstallData)if(b){var d;c=null!=(d=g.Hk(b,Kx,62))?d:new Kx;Q(c,6,a.appInstallData);Ik(b,Kx,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
Kta=function(a,b){var c=gsa();c&&(a?S(a,61,Ota[c]):b&&(b.client.connectionType=c));g.TA("web_log_effective_connection_type")&&(c=isa())&&(a?S(a,94,Pta[c]):b&&(b.client.effectiveConnectionType=c))};
Qta=function(a,b,c){c=void 0===c?{}:c;var d={};g.xA("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.xA("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.xA("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.IW||g.xA("AUTHORIZATION");b||(a?b="Bearer "+g.Xa("gapi.auth.getToken")().access_token:(a=Xra().AE($C),g.TA("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d};
Lta=function(a,b){var c=Eta();if(c){var d=c.coldConfigData,e=c.coldHashData;c=c.hotHashData;if(a){var f;b=null!=(f=g.Hk(a,Kx,62))?f:new Kx;d=Q(b,1,d);Q(d,3,e).As(c);Ik(a,Kx,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},d&&(b.client.configInfo.coldConfigData=d),e&&(b.client.configInfo.coldHashData=e),c&&(b.client.configInfo.hotHashData=c))}};
aD=function(a,b){this.version=a;this.args=b};
bD=function(a,b){this.topic=a;this.j=b};
cD=function(a,b){var c=Rta();c&&c.publish.call(c,a.toString(),a,b)};
Tta=function(a,b){var c=Rta();if(!c)return 0;var d=c.subscribe(a.toString(),function(e,f){var h=g.Xa("ytPubsub2Pubsub2SkipSubKey");h&&h==d||(h=function(){if(dD[d])try{if(f&&a instanceof bD&&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.yv){var n=new l;l.yv=n.version}var p=l.yv}catch(q){}if(!p||m.version!=p)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{f=Reflect.construct(l,
g.Lb(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.AA(q)}},Sta[a.toString()]?g.eC()?g.Bv.Qi(h):g.PA(h,0):h())});
dD[d]=!0;eD[a.toString()]||(eD[a.toString()]=[]);eD[a.toString()].push(d);return d};
Vta=function(a,b){var c=Tta(a,function(d){b.apply(void 0,arguments);Uta(c)});
return c};
Uta=function(a){var b=Rta();b&&("number"===typeof a&&(a=[a]),g.bc(a,function(c){b.unsubscribeByKey(c);delete dD[c]}))};
Rta=function(){return g.Xa("ytPubsub2Pubsub2Instance")};
Wta=function(a,b,c){c=void 0===c?{sampleRate:.1}:c;Math.random()<Math.min(.02,c.sampleRate/100)&&cD("meta_logging_csi_event",{timerName:a,Orb:b})};
Yta=function(){Xta||(Xta=ax(g.xA("WORKER_SERIALIZATION_URL")));return Xta||void 0};
fD=function(){var a=Yta();Zta||void 0===a||(Zta=new Worker(g.Zd(a),void 0));return Zta};
$ta=function(){return"function"===typeof Worker&&Yta()?!0:!1};
cua=function(){if($ta()&&!aua){var a=function(c){c=c.data;if("gzippedGelBatch"===c.op){var d=gD.get(c.key);d&&(bua(c.gzippedBatch,d.latencyPayload,d.url,d.options,d.sendFn),gD.delete(c.key))}},b=fD();
b&&(b.addEventListener("message",a),b.onerror=function(){gD.clear()},aua=!0)}};
iD=function(a,b,c,d,e){e=void 0===e?!1:e;var f={startTime:(0,g.wC)(),ticks:{},infos:{}};if(hD)try{var h=dua(b);if(null!=h&&(h>eua||h<fua))d(a,c);else{if(g.TA("gzip_gel_with_worker")&&(g.TA("initial_gzip_use_main_thread")&&!gua||!g.TA("initial_gzip_use_main_thread"))){aua||cua();var l=fD();if(l&&!e){gD.set(hua,{latencyPayload:f,url:a,options:c,sendFn:d});l.postMessage({op:"gelBatchToGzip",serializedBatch:b,key:hua});hua++;return}}var m=ima(iua(b));bua(m,f,a,c,d)}}catch(n){CA(n),d(a,c)}else d(a,c)};
bua=function(a,b,c,d,e){gua=!1;var f=(0,g.wC)();b.ticks.gelc=f;jD++;g.TA("disable_compression_due_to_performance_degredation")&&f-b.startTime>=jua&&(kD++,g.TA("abandon_compression_after_N_slow_zips")?jD===g.UA("compression_disable_point")&&kD>kua&&(hD=!1):hD=!1);lua(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)};
mua=function(a){var b=void 0===b?!1:b;var c=void 0===c?!1:c;var d=(0,g.wC)(),e={startTime:d,ticks:{},infos:{}},f=b?g.Xa("yt.logging.gzipForFetch",!1):!0;if(hD&&f){if(!a.body)return a;try{var h=c?a.body:"string"===typeof a.body?a.body:JSON.stringify(a.body);f=h;if(!c&&"string"===typeof h){var l=dua(h);if(null!=l&&(l>eua||l<fua))return a;c=b?{level:1}:void 0;f=ima(iua(h),c);var m=(0,g.wC)();e.ticks.gelc=m;if(b){jD++;if((g.TA("disable_compression_due_to_performance_degredation")||g.TA("disable_compression_due_to_performance_degradation_lr"))&&
m-d>=jua)if(kD++,g.TA("abandon_compression_after_N_slow_zips")||g.TA("abandon_compression_after_N_slow_zips_lr")){b=kD/jD;var n=kua/g.UA("compression_disable_point");0<jD&&0===jD%g.UA("compression_disable_point")&&b>=n&&(hD=!1)}else hD=!1;lua(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(p){return CA(p),a}}else return a};
dua=function(a){try{return(new Blob(a.split(""))).size}catch(b){return CA(b),null}};
lua=function(a){g.TA("gel_compression_csi_killswitch")||!g.TA("log_gel_compression_latency")&&!g.TA("log_gel_compression_latency_lr")||Wta("gel_compression",a,{sampleRate:.1})};
mD=function(a){var b=this;this.tI=this.j=!1;this.potentialEsfErrorCounter=this.B=0;this.handleError=function(){};
this.pA=function(){};
this.now=Date.now;this.jE=!1;this.wd={wrb:function(p){b.Df=p},
Rrb:function(){b.sC()},
p7:function(){b.jO()},
eF:function(p){return g.G(function(q){return g.z(q,b.eF(p),0)})},
QL:function(p,q){return b.QL(p,q)},
TL:function(){b.TL()}};
var c;this.l2=null!=(c=a.l2)?c:100;var d;this.j1=null!=(d=a.j1)?d:1;var e;this.W0=null!=(e=a.W0)?e:2592E6;var f;this.P0=null!=(f=a.P0)?f:12E4;var h;this.f1=null!=(h=a.f1)?h:5E3;var l;this.Df=null!=(l=a.Df)?l:void 0;this.cJ=!!a.cJ;var m;this.DI=null!=(m=a.DI)?m:.1;var n;this.BL=null!=(n=a.BL)?n:10;a.handleError&&(this.handleError=a.handleError);a.pA&&(this.pA=a.pA);a.jE&&(this.jE=a.jE);a.tI&&(this.tI=a.tI);this.fb=a.fb;this.uo=a.uo;this.Hh=a.Hh;this.jh=a.jh;this.sendFn=a.sendFn;this.XR=a.XR;this.jR=
a.jR;lD(this)&&(!this.fb||this.fb("networkless_logging"))&&nua(this)};
nua=function(a){lD(a)&&!a.jE&&(a.j=!0,a.cJ&&Math.random()<=a.DI&&a.Hh.u7(a.Df),a.TL(),a.jh.Gh()&&a.sC(),a.jh.listen(a.XR,a.sC.bind(a)),a.jh.listen(a.jR,a.jO.bind(a)))};
qua=function(a,b){if(!lD(a))throw Error("IndexedDB is not supported: updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
b.options.onError=function(e,f){var h,l,m,n;return g.G(function(p){switch(p.j){case 1:h=oua(f);(l=pua(f))&&a.fb&&a.fb("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.fb&&a.fb("nwl_consider_error_code")&&h||a.fb&&!a.fb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.BL)){p.Ia(2);break}if(!a.jh.XL){p.Ia(3);break}return g.z(p,a.jh.XL(),3);case 3:if(a.jh.Gh()){p.Ia(2);break}c(e,f);if(!a.fb||!a.fb("nwl_consider_error_code")||void 0===(null==(m=
b)?void 0:m.id)){p.Ia(6);break}return g.z(p,a.Hh.HS(b.id,a.Df,!1),6);case 6:return p.return();case 2:if(a.fb&&a.fb("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.BL)return p.return();a.potentialEsfErrorCounter++;if(void 0===(null==(n=b)?void 0:n.id)){p.Ia(8);break}return b.sendCount<a.j1?g.z(p,a.Hh.HS(b.id,a.Df,!0,l?!1:void 0),12):g.z(p,a.Hh.Sz(b.id,a.Df),8);case 12:a.uo.Qi(function(){a.jh.Gh()&&a.sC()},a.f1);
case 8:c(e,f),g.Aa(p)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,f){var h;return g.G(function(l){if(1==l.j)return void 0===(null==(h=b)?void 0:h.id)?l.Ia(2):g.z(l,a.Hh.Sz(b.id,a.Df),2);a.jh.Dx&&a.fb&&a.fb("vss_network_hint")&&a.jh.Dx(!0);d(e,f);g.Aa(l)})};
return b};
nD=function(a,b){a.q3&&!a.jh.Gh()?a.q3(b):a.handleError(b)};
lD=function(a){return!!a.Df||a.tI};
oua=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0};
pua=function(a){var b;a=null==a?void 0:null==(b=a.error)?void 0:b.code;return!(400!==a&&415!==a)};
rua=function(){if(oD)return oD();var a={};oD=g.RC("LogsDatabaseV2",{Yr:(a.LogsRequestsStore={zn:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.xC(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.DC(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&yC(b,"sapisid");c(9)&&yC(b,"SWHealthLog")},
version:9});return oD()};
pD=function(a){return g.KC(rua(),a)};
tua=function(a,b){var c,d,e,f;return g.G(function(h){if(1==h.j)return c={startTime:(0,g.wC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.z(h,pD(b),2);if(3!=h.j)return d=h.B,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.xA("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.z(h,g.BC(d,"LogsRequestsStore",e),3);f=h.B;c.ticks.tc=(0,g.wC)();sua(c);return h.return(f)})};
uua=function(a,b){var c,d,e,f,h,l,m,n;return g.G(function(p){if(1==p.j)return c={startTime:(0,g.wC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.z(p,pD(b),2);if(3!=p.j)return d=p.B,e=g.xA("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.wC)()],l=IDBKeyRange.bound(f,h),m="prev",g.TA("use_fifo_for_networkless")&&(m="next"),n=void 0,g.z(p,g.zC(d,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(q){return g.GC(q.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:l,direction:m},function(r){r.getValue()&&(n=r.getValue(),"NEW"===a&&(n.status="QUEUED",r.update(n)))})}),3);
c.ticks.tc=(0,g.wC)();sua(c);return p.return(n)})};
vua=function(a,b){var c;return g.G(function(d){if(1==d.j)return g.z(d,pD(b),2);c=d.B;return d.return(g.zC(c,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.AC(f,h).then(function(){return h})})}))})};
wua=function(a,b,c,d){c=void 0===c?!0:c;var e;return g.G(function(f){if(1==f.j)return g.z(f,pD(b),2);e=f.B;return f.return(g.zC(e,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(h){var l=h.objectStore("LogsRequestsStore");return l.get(a).then(function(m){return m?(m.status="NEW",c&&(m.sendCount+=1),void 0!==d&&(m.options.compress=d),g.AC(l,m).then(function(){return m})):g.uC.resolve(void 0)})}))})};
xua=function(a,b){var c;return g.G(function(d){if(1==d.j)return g.z(d,pD(b),2);c=d.B;return d.return(c.delete("LogsRequestsStore",a))})};
yua=function(a){var b,c;return g.G(function(d){if(1==d.j)return g.z(d,pD(a),2);b=d.B;c=(0,g.wC)()-2592E6;return g.z(d,g.zC(b,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(e){return g.EC(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.FC(f)})})}),0)})};
zua=function(){g.G(function(a){return g.z(a,jta("LogsDatabaseV2"),0)})};
sua=function(a){g.TA("nwl_csi_killswitch")||Wta("networkless_performance",a,{sampleRate:1})};
Bua=function(a){return g.KC(Aua(),a)};
Cua=function(a){var b,c;g.G(function(d){if(1==d.j)return g.z(d,Bua(a),2);b=d.B;c=(0,g.wC)()-2592E6;return g.z(d,g.zC(b,["SWHealthLog"],{mode:"readwrite",Pb:!0},function(e){return g.EC(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.FC(f)})})}),0)})};
Dua=function(a){var b;return g.G(function(c){if(1==c.j)return g.z(c,Bua(a),2);b=c.B;return g.z(c,b.clear("SWHealthLog"),0)})};
g.qD=function(a,b,c,d,e,f,h){e=void 0===e?"":e;f=void 0===f?!1:f;h=void 0===h?!1:h;if(a)if(c&&!g.hB()){if(a){a=g.de(g.je(a));if(a===g.ie.toString()||a.startsWith("data"))a="";else{var l=void 0===l?{}:l;a instanceof g.qe?l=a:(a=String(a).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"),l.krb&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1&#160;")),l.irb&&(a=a.replace(/(\r\n|\n|\r)/g,"<br>")),l.lrb&&(a=a.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>')),
l=se(a));a=g.Xe(g.on(g.re(l).toString()))}g.fc(a)||(l=xf("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),kf(l).body.appendChild(l))}}else if(e)Bqa(a,b,"POST",e,d);else if(g.xA("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||h)Bqa(a,b,"GET","",d,void 0,f,h);else{b:{try{var m=new Lka({url:a});if(m.C&&m.B||m.D){var n=tn(g.vn(5,a));var p=!(!n||!n.endsWith("/aclk")||"1"!==vo(a,"ri"));break b}}catch(q){}p=!1}p?Eua(a)?(b&&b(),l=!0):l=!1:l=!1;l||Fua(a,b)}};
Eua=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
Fua=function(a,b){var c=new Image,d=""+Gua++;Hua[d]=c;c.onload=c.onerror=function(){b&&Hua[d]&&b();delete Hua[d]};
c.src=a};
Iua=function(a){var b=g.wn(a);if(!g.TA("update_chrome_api_monitoring_allowed_features")&&"www.googleadservices.com"!==b)return a;var c,d,e;return(g.TA("update_chrome_api_monitoring_allowed_features")?null==(c=document.featurePolicy)?0:c.allowedFeatures().includes("attribution-reporting"):"function"===typeof(null==(d=document.featurePolicy)?void 0:d.features)&&(null==(e=document.featurePolicy)?0:e.features().includes("attribution-reporting")))?a+"&nis=6":a+"&nis=5"};
rD=function(){Jua||(Jua=new gC("yt.offline"));return Jua};
Kua=function(a){if(g.TA("offline_error_handling")){var b=rD().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);rD().set("errors",b,2592E3,!0)}};
sD=function(){this.j=new Map;this.B=!1};
tD=function(){if(!sD.instance){var a=g.Xa("yt.networkRequestMonitor.instance")||new sD;g.Ua("yt.networkRequestMonitor.instance",a);sD.instance=a}return sD.instance};
uD=function(){g.Ed.call(this);var a=this;this.B=!1;this.j=dla();this.j.listen("networkstatus-online",function(){if(a.B&&g.TA("offline_error_handling")){var b=rD().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.XB(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.AA(d)}rD().set("errors",{},2592E3,!0)}}})};
Lua=function(){if(!uD.instance){var a=g.Xa("yt.networkStatusManager.instance")||new uD;g.Ua("yt.networkStatusManager.instance",a);uD.instance=a}return uD.instance};
g.vD=function(a){a=void 0===a?{}:a;g.Ed.call(this);var b=this;this.j=this.D=0;this.B=Lua();var c=g.Xa("yt.networkStatusManager.instance.listen").bind(this.B);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){Mua(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){Mua(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
Mua=function(a,b){a.rateLimit?a.j?(g.Bv.Tj(a.D),a.D=g.Bv.Qi(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.wC)())},a.rateLimit-((0,g.wC)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.wC)()):a.dispatchEvent(b)};
wD=function(){var a=mD.call;Nua||(Nua=new g.vD({Fqb:!0,Zob:!0}));a.call(mD,this,{Hh:{u7:yua,Sz:xua,lY:uua,x$:vua,HS:wua,set:tua},jh:Nua,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;CA(new g.XB(b.message,c,null==d?void 0:null==(h=d.error)?void 0:h.code),void 0,void 0,void 0,!0)}else g.AA(b)},
pA:CA,sendFn:Oua,now:g.wC,q3:Kua,uo:g.dC(),XR:"publicytnetworkstatus-online",jR:"publicytnetworkstatus-offline",cJ:!0,DI:.1,BL:g.UA("potential_esf_error_limit",10),fb:g.TA,jE:!(g.ZB()&&"www.youtube-nocookie.com"!==g.wn(document.location.toString()))});this.C=new g.Po;g.TA("networkless_immediately_drop_all_requests")&&zua();kta("LogsDatabaseV2")};
xD=function(){var a=g.Xa("yt.networklessRequestController.instance");a||(a=new wD,g.Ua("yt.networklessRequestController.instance",a),g.TA("networkless_logging")&&g.PC().then(function(b){a.Df=b;nua(a);a.C.resolve();a.cJ&&Math.random()<=a.DI&&a.Df&&Cua(a.Df);g.TA("networkless_immediately_drop_sw_health_store")&&Pua(a)}));
return a};
Pua=function(a){var b;g.G(function(c){if(!a.Df)throw b=g.sC("clearSWHealthLogsDb"),b;return c.return(Dua(a.Df).catch(function(d){a.handleError(d)}))})};
Oua=function(a,b,c,d){d=void 0===d?!1:d;b=g.TA("web_fp_via_jspb")?Object.assign({},b):b;g.TA("use_cfr_monitor")&&Qua(a,b);if(g.TA("use_request_time_ms_header"))b.headers&&JA(a)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.wC)())));else{var e;if(null==(e=b.postParams)?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.wC)())}c&&0===Object.keys(b).length?g.qD(a):b.compress?b.postBody?("string"!==typeof b.postBody&&(b.postBody=JSON.stringify(b.postBody)),iD(a,b.postBody,
b,g.VA,d)):iD(a,JSON.stringify(b.postParams),b,Fqa,d):g.VA(a,b)};
Rua=function(a,b){g.TA("use_event_time_ms_header")&&JA(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.wC)())));return b};
Qua=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,f){tD().requestComplete(a,!1);c(e,f)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,f){tD().requestComplete(a,!0);d(e,f)}};
g.yD=function(a){this.config_=null;a?this.config_=a:Fta()&&(this.config_=g.ZC())};
g.zD=function(a,b,c,d){function e(p){try{if((void 0===p?0:p)&&d.retry&&!d.networklessOptions.bypassNetworkless)f.method="POST",d.networklessOptions.writeThenSend?xD().writeThenSend(n,f):xD().sendAndWrite(n,f);else if(d.compress){var q=!d.networklessOptions.writeThenSend;if(f.postBody){var r=f.postBody;"string"!==typeof r&&(r=JSON.stringify(f.postBody));iD(n,r,f,g.VA,q)}else iD(n,JSON.stringify(f.postParams),f,Fqa,q)}else g.TA("web_all_payloads_via_jspb")?g.VA(n,f):Fqa(n,f)}catch(t){if("InvalidAccessError"===
t.name)CA(Error("An extension is blocking network request."));else throw t;}}
!g.xA("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&CA(new g.XB("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.XB("innertube xhrclient not ready",b,c,d),g.AA(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_.hZ;h&&(c=h);var l=a.config_.iZ||!1;h=Qta(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_.nQ&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=HA(""+c+b,l);g.Xa("ytNetworklessLoggingInitializationOptions")&&
Sua.isNwlInitialized?cta().then(function(p){e(p)}):e(!1)};
g.ED=function(a,b,c){var d=g.AD();if(d&&b){var e=d.subscribe(a,function(){function f(){BD[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,h)}
var h=arguments;try{g.CD[a]?f():g.PA(f,0)}catch(l){g.AA(l)}},c);
BD[e]=!0;DD[a]||(DD[a]=[]);DD[a].push(e);return e}return 0};
Tua=function(a){var b=g.ED("LOGGED_IN",function(c){a.apply(void 0,arguments);g.FD(b)})};
g.FD=function(a){var b=g.AD();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.bc(a,function(c){b.unsubscribeByKey(c);delete BD[c]}))};
g.GD=function(a,b){var c=g.AD();return c?c.publish.apply(c,arguments):!1};
Vua=function(a){var b=g.AD();if(b)if(b.clear(a),a)Uua(a);else for(var c in DD)Uua(c)};
g.AD=function(){return g.Ta.ytPubsubPubsubInstance};
Uua=function(a){DD[a]&&(a=DD[a],g.bc(a,function(b){BD[b]&&delete BD[b]}),a.length=0)};
g.Xua=function(a,b,c){Wua(a,b,void 0===c?null:c)};
Wua=function(a,b,c){c=void 0===c?null:c;var d=Yua(a),e=document.getElementById(d),f=e&&ura(e),h=e&&!f;f?b&&b():(b&&(f=g.ED(d,b),b=""+g.fb(b),Zua[b]=f),h||(e=$ua(a,d,function(){ura(e)||(tra(e),g.GD(d),g.PA(function(){Vua(d)},0))},c)))};
$ua=function(a,b,c,d){d=void 0===d?null:d;var e=g.yf("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)};
e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}};
d&&e.setAttribute("nonce",d);g.We(e,g.uma(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
Yua=function(a){var b=document.createElement("a");g.Me(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+cf(a)};
ID=function(a){var b=g.Ia.apply(1,arguments);if(!HD(a)||b.some(function(d){return!HD(d)}))throw Error("Only objects may be merged.");
b=g.u(b);for(var c=b.next();!c.done;c=b.next())ava(a,c.value)};
ava=function(a,b){for(var c in b)if(HD(b[c])){if(c in a&&!HD(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});ava(a[c],b[c])}else if(bva(b[c])){if(c in a&&!bva(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);cva(a[c],b[c])}else a[c]=b[c];return a};
cva=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,HD(c)?a.push(ava({},c)):bva(c)?a.push(cva([],c)):a.push(c);return a};
HD=function(a){return"object"===typeof a&&!Array.isArray(a)};
bva=function(a){return"object"===typeof a&&Array.isArray(a)};
JD=function(a){g.I.call(this);this.B=a};
KD=function(a){JD.call(this,!0);this.j=a};
dva=function(a,b){g.I.call(this);var c=this;this.C=[];this.N=!1;this.B=0;this.G=this.K=this.D=!1;this.qa=null;var d=(0,g.gb)(a,b);this.j=new g.Iv(function(){return d(c.qa)},300);
g.N(this,this.j);this.Y=this.Z=Infinity};
eva=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.C.includes(d.identifier))return!0}return!1};
fva=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(LD)for(c=1,d=0;d<LD.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^LD.charCodeAt(d),c++;return b};
MD=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 fva(a)};
g.ND=function(a){a=MD(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.gva=function(){return g.$r(MD(16),function(a){return(a&15).toString(16)}).join("")};
hva=function(){var a={};var b=void 0===a.Wca?!1:a.Wca;a=void 0===a.f8?!0:a.f8;if(null==g.Xa("_lact",window)){var c=parseInt(g.xA("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Ua("_lact",c,window);g.Ua("_fact",c,window);-1==c&&OD();g.CB(document,"keydown",OD);g.CB(document,"keyup",OD);g.CB(document,"mousedown",OD);g.CB(document,"mouseup",OD);b?g.CB(window,"touchmove",function(){PD("touchmove",200)},{passive:!0}):(g.CB(window,"resize",function(){PD("resize",200)}),a&&g.CB(window,"scroll",
function(){PD("scroll",200)}));
new JB(function(){PD("mouse",100)});
g.CB(document,"touchstart",OD,{passive:!0});g.CB(document,"touchend",OD,{passive:!0})}};
PD=function(a,b){iva[a]||(iva[a]=!0,g.Bv.Qi(function(){OD();iva[a]=!1},b))};
OD=function(){null==g.Xa("_lact",window)&&(hva(),g.Xa("_lact",window));var a=Date.now();g.Ua("_lact",a,window);-1==g.Xa("_fact",window)&&g.Ua("_fact",a,window);(a=g.Xa("ytglobal.ytUtilActivityCallback_"))&&a()};
QD=function(){var a=g.Xa("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)};
RD=function(a){this.name=a};
SD=function(a){this.key=a};
jva=function(){var a=this;this.j=new Map;this.C=new Map;this.B=new Map;this.wd={Spb:function(){return new Map(a.j)}}};
kva=function(a,b){a.j.set(b.xG,b);var c=a.C.get(b.xG);if(c)try{c.JS(a.resolve(b.xG))}catch(d){c.wS(d)}};
UD=function(a,b,c,d){d=void 0===d?!1:d;if(-1<c.indexOf(b))throw Error("Deps cycle for: "+b);if(a.B.has(b))return a.B.get(b);if(!a.j.has(b)){if(d)return;throw Error("No provider for: "+b);}d=a.j.get(b);c.push(b);if(void 0!==d.dU)var e=d.dU;else if(d.afa)e=d[TD]?lva(a,d[TD],c):[],e=d.afa.apply(d,g.qa(e));else if(d.Z2){e=d.Z2;var f=e[TD]?lva(a,e[TD],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.qa(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.Krb||a.B.set(b,e);
return e};
lva=function(a,b,c){return b?b.map(function(d){return d instanceof SD?UD(a,d.key,c,!0):UD(a,d,c)}):[]};
VD=function(){mva||(mva=new jva);return mva};
nva=function(){var a,b;return"h5vcc"in WD&&(null==(a=WD.h5vcc.traceEvent)?0:a.traceBegin)&&(null==(b=WD.h5vcc.traceEvent)?0:b.traceEnd)?1:"performance"in WD&&WD.performance.mark&&WD.performance.measure?2:0};
ova=function(a){var b=nva();switch(b){case 1:WD.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:WD.performance.mark(a+"-start");break;case 0:break;default:Ne(b,"unknown trace type")}};
pva=function(a){var b=nva();switch(b){case 1:WD.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";WD.performance.mark(c);WD.performance.measure(a,b,c);break;case 0:break;default:Ne(b,"unknown trace type")}};
rva=function(a){var b=this;var c=void 0===c?0:c;var d=void 0===d?g.dC():d;this.C=c;this.scheduler=d;this.B=new g.Po;this.j=a;for(a={Ww:0};a.Ww<this.j.length;a={tL:void 0,Ww:a.Ww},a.Ww++)a.tL=this.j[a.Ww],c=function(e){return function(){e.tL.DQ();b.j[e.Ww].EL=!0;b.j.every(function(f){return!0===f.EL})&&b.B.resolve()}}(a),d=aC(c,qva(this,a.tL)),this.j[a.Ww]=Object.assign({},a.tL,{DQ:c,
jobId:d})};
sva=function(a){var b=Array.from(a.j.keys()).sort(function(d,e){return qva(a,a.j[e])-qva(a,a.j[d])});
b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=a.j[c.value],void 0===c.jobId||c.EL||(a.scheduler.Tj(c.jobId),aC(c.DQ,10))};
qva=function(a,b){var c;return null!=(c=b.priority)?c:a.C};
YD=function(a){this.state=a;this.plugins=[];this.C=void 0;this.D={};XD&&ova(this.state)};
uva=function(a,b){var c=b.filter(function(e){return 10===tva(a,e)}),d=b.filter(function(e){return 10!==tva(a,e)});
return a.D.Grb?function(){var e=g.Ia.apply(0,arguments);return g.G(function(f){if(1==f.j)return g.z(f,a.Cda.apply(a,[c].concat(g.qa(e))),2);a.E1.apply(a,[d].concat(g.qa(e)));g.Aa(f)})}:function(){var e=g.Ia.apply(0,arguments);
a.Dda.apply(a,[c].concat(g.qa(e)));a.E1.apply(a,[d].concat(g.qa(e)))}};
tva=function(a,b){var c,d;return null!=(d=null!=(c=a.C)?c:b.priority)?d:0};
vva=function(a){XD&&a&&ova(a)};
ZD=function(a){XD&&a&&pva(a)};
xva=function(a,b,c){wva&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+a.constructor.name+"] '"+a.state+"' to '"+b+"'"),console.log("with message: ",c),console.groupEnd())};
$D=function(a){YD.call(this,void 0===a?"none":a);this.j=null;this.C=10;this.transitions=[{from:"none",to:"application_navigating",action:this.G},{from:"application_navigating",to:"none",action:this.K},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]};
zva=function(){yva||(yva=new $D);return yva};
aE=function(){var a=this;this.store={};this.j=0;this.B={};this.wd={Gpb:function(){return a.j}}};
Bva=function(a,b){var c=Ava(b);if(a.B[c])return a.B[c];var d=Object.keys(a.store)||[];if(1>=d.length&&Ava(b)===d[0])return d;for(var e=[],f=0;f<d.length;f++){var h=d[f].split("/");if(bE(b.auth,h[0])){var l=b.isJspb;bE(void 0===l?"undefined":l?"true":"false",h[1])&&bE(b.cttAuthInfo,h[2])&&(l=b.tier,l=void 0===l?"undefined":JSON.stringify(l),bE(l,h[3])&&e.push(d[f]))}}return a.B[c]=e};
bE=function(a,b){return void 0===a||"undefined"===a?!0:a===b};
Ava=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("/")};
cE=function(){this.D=this.j=this.B=0;this.C=!1};
dE=function(){var a=g.Xa("yt.logging.ims");a||(a=new aE,g.Ua("yt.logging.ims",a));return a};
Eva=function(){if($ta()&&!Cva){var a=function(c){c=c.data;if("serializedGelBatch"===c.op){var d=eE.get(c.key);d&&(Dva(c.serializedBatch,d.client,d.resolve,d.networklessOptions,d.isIsolated,d.useVSSEndpoint,d.dangerousLogToVisitorSession,d.requestsOutstanding),eE.delete(c.key))}},b=fD();
b&&(b.addEventListener("message",a),b.onerror=function(){eE.clear()});
Cva=!0}};
Kva=function(a,b){if("log_event"===a.endpoint){fE(a);var c=gE(a),d=Fva(a.payload)||"",e=Gva(d),f=200;if(e){if(!1===e.enabled&&!g.TA("web_payload_policy_disabled_killswitch"))return;f=Hva(e.tier);if(400===f){Iva(a,b);return}}hE[c]=!0;e={cttAuthInfo:c,isJspb:!1,tier:f};dE().storePayload(e,a.payload);Jva(b,c,!1,e,iE(d))}};
Mva=function(a,b,c){if("log_event"===b.endpoint){fE(void 0,b);var d=gE(b,!0),e=Gva(a),f=200;if(e){if(!1===e.enabled&&!g.TA("web_payload_policy_disabled_killswitch"))return;f=Hva(e.tier);if(400===f){Lva(a,b,c);return}}hE[d]=!0;e={cttAuthInfo:d,isJspb:!0,tier:f};dE().storePayload(e,b.payload.toJSON());Jva(c,d,!0,e,iE(a))}};
Jva=function(a,b,c,d,e){function f(){Nva({writeThenSend:!0},g.TA("flush_only_full_queue")?b:void 0,c,d.tier)}
c=void 0===c?!1:c;e=void 0===e?!1:e;a&&(jE=new a);a=g.UA("tvhtml5_logging_max_batch_ads_fork")||g.UA("web_logging_max_batch")||100;var h=(0,g.wC)(),l=Ova(c,d.tier),m=l.D;e&&(l.C=!0);e=0;d&&(e=dE().getSequenceCount(d));1E3<=e?f():e>=a?Pva||(Pva=Qva(function(){f();Pva=void 0},0)):10<=h-m&&(Rva(c,d.tier),l.D=h)};
Iva=function(a,b){if("log_event"===a.endpoint){fE(a);var c=gE(a),d=new Map;d.set(c,[a.payload]);var e=Fva(a.payload)||"";b&&(jE=new b);return new g.fg(function(f,h){jE&&jE.isReady()?Sva(d,jE,f,h,{bypassNetworkless:!0},!0,iE(e)):f()})}};
Lva=function(a,b,c){if("log_event"===b.endpoint){fE(void 0,b);var d=gE(b,!0),e=new Map;e.set(d,[b.payload.toJSON()]);c&&(jE=new c);return new g.fg(function(f){jE&&jE.isReady()?Tva(e,jE,f,{bypassNetworkless:!0},!0,iE(a)):f()})}};
gE=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 uA;c.videoId?d.setVideoId(c.videoId):c.playlistId&&dk(d,2,kE,cj(c.playlistId));lE[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),mE[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
Nva=function(a,b,c,d){a=void 0===a?{}:a;c=void 0===c?!1:c;new g.fg(function(e,f){var h=Ova(c,d),l=h.C;h.C=!1;Uva(h.B);Uva(h.j);h.j=0;jE&&jE.isReady()?void 0===d&&g.TA("enable_web_tiered_gel")?Vva(e,f,a,b,c,300,l):Vva(e,f,a,b,c,d,l):(Rva(c,d),e())})};
Vva=function(a,b,c,d,e,f,h){var l=jE;c=void 0===c?{}:c;e=void 0===e?!1:e;f=void 0===f?200:f;h=void 0===h?!1:h;var m=new Map,n=new Map,p={isJspb:e,cttAuthInfo:d,tier:f},q={isJspb:e,cttAuthInfo:d};if(void 0!==d)e?(b=g.TA("enable_web_tiered_gel")?dE().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):dE().extractMatchingEntries(q),m.set(d,b),Tva(m,l,a,c,!1,h)):(m=g.TA("enable_web_tiered_gel")?dE().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):dE().extractMatchingEntries(q),n.set(d,m),
Sva(n,l,a,b,c,!1,h));else if(e){b=g.u(Object.keys(hE));for(n=b.next();!n.done;n=b.next())n=n.value,f=g.TA("enable_web_tiered_gel")?dE().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):dE().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),0<f.length&&m.set(n,f),(g.TA("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.TA("web_fp_via_jspb_and_json"))&&delete hE[n];Tva(m,l,a,c,!1,h)}else{m=g.u(Object.keys(hE));for(p=m.next();!p.done;p=m.next())p=p.value,q=g.TA("enable_web_tiered_gel")?dE().smartExtractMatchingEntries({keys:[{isJspb:!1,
cttAuthInfo:p,tier:f},{isJspb:!1,cttAuthInfo:p}],sizeLimit:1E3}):dE().extractMatchingEntries({isJspb:!1,cttAuthInfo:p}),0<q.length&&n.set(p,q),(g.TA("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.TA("web_fp_via_jspb_and_json"))&&delete hE[p];Sva(n,l,a,b,c,!1,h)}};
Rva=function(a,b){function c(){Nva({writeThenSend:!0},void 0,a,b)}
a=void 0===a?!1:a;b=void 0===b?200:b;var d=Ova(a,b),e=d===Wva||d===Xva?5E3:Yva;g.TA("web_gel_timeout_cap")&&!d.j&&(e=Qva(function(){c()},e),d.j=e);
Uva(d.B);e=g.xA("LOGGING_BATCH_TIMEOUT",g.UA("web_gel_debounce_ms",1E4));g.TA("shorten_initial_gel_batch_timeout")&&nE&&(e=Zva);e=Qva(function(){0<g.UA("gel_min_batch_size")?dE().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=$va&&c():c()},e);
d.B=e};
Sva=function(a,b,c,d,e,f,h){e=void 0===e?{}:e;var l=Math.round((0,g.wC)()),m=a.size,n=awa(h);a=g.u(a);var p=a.next();for(h={};!p.done;h={fR:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,RR:void 0,tR:void 0},p=a.next()){var q=g.u(p.value);p=q.next().value;q=q.next().value;h.batchRequest=g.kd({context:g.Mta(b.config_||g.ZC())});if(!g.cb(q)&&!g.TA("throw_err_when_logevent_malformed_killswitch")){d();break}h.batchRequest.events=q;(q=mE[p])&&bwa(h.batchRequest,p,q);delete mE[p];h.dangerousLogToVisitorSession=
"visitorOnlyApprovedKey"===p;cwa(h.batchRequest,l,h.dangerousLogToVisitorSession);dwa(e);h.RR=function(r){g.TA("start_client_gcf")&&g.Bv.Qi(function(){return g.G(function(t){return g.z(t,ewa(r),0)})});
m--;m||c()};
h.fR=0;h.tR=function(r){return function(){r.fR++;if(e.bypassNetworkless&&1===r.fR)try{g.zD(b,n,r.batchRequest,fwa({writeThenSend:!0},r.dangerousLogToVisitorSession,r.RR,r.tR,f)),nE=!1}catch(t){g.AA(t),d()}m--;m||c()}}(h);
try{g.zD(b,n,h.batchRequest,fwa(e,h.dangerousLogToVisitorSession,h.RR,h.tR,f)),nE=!1}catch(r){g.AA(r),d()}}};
Tva=function(a,b,c,d,e,f){d=void 0===d?{}:d;var h=Math.round((0,g.wC)()),l={value:a.size},m=new Map([].concat(g.qa(a)));m=g.u(m);for(var n=m.next();!n.done;n=m.next()){var p=g.u(n.value).next().value,q=a.get(p);n=new gqa;var r=b.config_||g.ZC(),t=new $x,v=new Nx;Q(v,1,r.mQ);Q(v,2,r.lQ);S(v,16,r.gZ);Q(v,17,r.innertubeContextClientVersion);if(r.gK){var w=r.gK,A=new Kx;w.coldConfigData&&Q(A,1,w.coldConfigData);w.appInstallData&&Q(A,6,w.appInstallData);w.coldHashData&&Q(A,3,w.coldHashData);w.hotHashData&&
A.As(w.hotHashData);Ik(v,Kx,62,A)}(w=g.Ta.devicePixelRatio)&&1!=w&&Zk(v,65,w);w=xqa();""!==w&&Q(v,54,w);w=yqa();if(0<w.length){A=new Px;for(var C=0;C<w.length;C++){var F=new Ox;Q(F,1,w[C].key);dk(F,2,gwa,cj(w[C].value));Lk(A,15,Ox,F)}Ik(t,Px,5,A)}Gta(r,v);Hta(t);Ita(v);Jta(r,v);Kta(v);g.TA("start_client_gcf")&&Lta(v);g.xA("DELEGATED_SESSION_ID")&&!g.TA("pageid_as_header_web")&&(r=new Zx,Q(r,3,g.xA("DELEGATED_SESSION_ID")));!g.TA("fill_delegate_context_in_gel_killswitch")&&(w=g.xA("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&
(A=g.Hk(t,Zx,3)||new Zx,r=t,w=Q(A,18,w),Ik(r,Zx,3,w));r=v;w=g.u(Object.entries(FA(g.xA("DEVICE",""))));for(A=w.next();!A.done;A=w.next())C=g.u(A.value),A=C.next().value,C=C.next().value,"cbrand"===A?Q(r,12,C):"cmodel"===A?Q(r,13,C):"cbr"===A?Q(r,87,C):"cbrver"===A?Q(r,88,C):"cos"===A?Q(r,18,C):"cosver"===A?Q(r,19,C):"cplatform"===A&&S(r,42,Yra(C));t.wy(v);Ik(n,$x,1,t);if(v=lE[p])a:{if(v.qe())t=1;else if(v.getPlaylistId())t=2;else break a;Ik(n,uA,4,v);v=g.Hk(n,$x,1)||new $x;r=g.Hk(v,Zx,3)||new Zx;
w=new Rx;w.setToken(p);S(w,1,t);Lk(r,12,Rx,w);Ik(v,Zx,3,r)}delete lE[p];p="visitorOnlyApprovedKey"===p;hwa()||Xk(n,2,h);!p&&(t=g.xA("EVENT_ID"))&&(v=iwa(),r=new fqa,Q(r,1,t),Xk(r,2,v),Ik(n,fqa,5,r));dwa(d);if(g.TA("jspb_serialize_with_worker")&&(t=fD())&&d.writeThenSend){eE.set(jwa,{client:b,resolve:c,networklessOptions:d,isIsolated:e,useVSSEndpoint:f,dangerousLogToVisitorSession:p,requestsOutstanding:l});t.postMessage({op:"gelBatchToSerialize",batchRequest:n.toJSON(),clientEvents:q,key:jwa});jwa++;
break}if(q){t=[];for(v=0;v<q.length;v++)try{t.push(new tA(q[v]))}catch(H){g.AA(new g.XB("Transport failed to deserialize "+String(q[v])))}q=t}else q=[];q=g.u(q);for(t=q.next();!t.done;t=q.next())Lk(n,3,tA,t.value);q={startTime:(0,g.wC)(),ticks:{},infos:{}};n=n.Fk();q.ticks.geljspc=(0,g.wC)();g.TA("log_jspb_serialize_latency")&&Wta("gel_jspb_serialize",q,{sampleRate:.1});Dva(n,b,c,d,e,f,p,l)}};
Dva=function(a,b,c,d,e,f,h,l){d=void 0===d?{}:d;l=void 0===l?{value:0}:l;f=awa(f);d=fwa(d,h,function(m){g.TA("start_client_gcf")&&g.Bv.Qi(function(){return g.G(function(n){return g.z(n,ewa(m),0)})});
l.value--;l.value||c()},function(){l.value--;
l.value||c()},e);
d.headers["Content-Type"]="application/json+protobuf";d.postBodyFormat="JSPB";d.postBody=a;g.zD(b,f,"",d);nE=!1};
dwa=function(a){g.TA("always_send_and_write")&&(a.writeThenSend=!1)};
fwa=function(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,networklessOptions:a,dangerousLogToVisitorSession:b,Lob:!!e,headers:{},postBodyFormat:"",postBody:"",compress:g.TA("compress_gel")||g.TA("compress_gel_lr")};hwa()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.wC)())));return a};
cwa=function(a,b,c){hwa()||(a.requestTimeMs=String(b));g.TA("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.xA("EVENT_ID"))&&(c=iwa(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
iwa=function(){var a=g.xA("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*kwa/2));a++;a>kwa&&(a=1);wA("BATCH_CLIENT_COUNTER",a);return a};
bwa=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}]};
fE=function(a,b){if(!g.Xa("yt.logging.transport.enableScrapingForTest")){var c=wqa("il_payload_scraping");if("enable_il_payload_scraping"===(void 0!==c?String(c):""))lwa=[],g.Ua("yt.logging.transport.enableScrapingForTest",!0),g.Ua("yt.logging.transport.scrapedPayloadsForTesting",lwa),g.Ua("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Ua("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
g.Ua("yt.logging.transport.scrapeClientEvent",!0);else return}c=g.Xa("yt.logging.transport.scrapedPayloadsForTesting");var d=g.Xa("yt.logging.transport.payloadToScrape");b&&(b=b.payload,(b=g.Xa("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));b=g.Xa("yt.logging.transport.scrapeClientEvent");if(d&&1<=d.length)for(var e=0;e<d.length;e++)if(a&&a.payload[d[e]])if(b)c.push(a.payload);else{var f=void 0;c.push((null==(f=a)?void 0:f.payload)[d[e]])}g.Ua("yt.logging.transport.scrapedPayloadsForTesting",
c)};
hwa=function(){return g.TA("use_request_time_ms_header")||g.TA("lr_use_request_time_ms_header")};
Qva=function(a,b){return!1===g.TA("transport_use_scheduler")?g.PA(a,b):g.TA("logging_avoid_blocking_during_navigation")||g.TA("lr_logging_avoid_blocking_during_navigation")?g.bC(0,function(){if("none"===zva().currentState)a();else{var c={};zva().install((c.none={callback:a},c))}},b):aC(a,0,b)};
Uva=function(a){g.TA("transport_use_scheduler")?g.Bv.Tj(a):g.RA(a)};
ewa=function(a){var b,c,d,e,f,h,l,m,n,p;return g.G(function(q){return 1==q.j?(d=null==(b=a)?void 0:null==(c=b.responseContext)?void 0:c.globalConfigGroup,e=g.V(d,mwa),h=null==(f=d)?void 0:f.hotHashData,l=g.V(d,nwa),n=null==(m=d)?void 0:m.coldHashData,(p=VD().resolve(new SD(XC)))?h?e?g.z(q,Cta(p,h,e),2):g.z(q,Cta(p,h),2):q.Ia(2):q.return()):n?l?g.z(q,Dta(p,n,l),0):g.z(q,Dta(p,n),0):q.Ia(0)})};
Ova=function(a,b){b=void 0===b?200:b;return a?300===b?Wva:owa:300===b?Xva:pwa};
Gva=function(a){if(g.TA("enable_web_tiered_gel")){a=qwa[a||""];var b,c,d,e=null==VD().resolve(new SD(XC))?void 0:null==(b=YC())?void 0:null==(c=b.loggingHotConfig)?void 0:null==(d=c.eventLoggingConfig)?void 0:d.payloadPolicies;if(e)for(b=0;b<e.length;b++)if(e[b].payloadNumber===a)return e[b]}};
Fva=function(a){a=Object.keys(a);a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,qwa[b])return b};
Hva=function(a){switch(a){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
iE=function(a){return"gelDebuggingEvent"===a};
awa=function(a){return(void 0===a?0:a)&&g.TA("vss_through_gel_video_stats")?"video_stats":"log_event"};
pE=function(a,b,c,d){d=void 0===d?{}:d;var e={},f=Math.round(d.timestamp||(0,g.wC)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;a=QD();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};d.sequenceGroup&&!g.TA("web_gel_sequence_info_killswitch")&&(a=e.context,b=d.sequenceGroup,b={index:rwa(b),groupKey:b},a.sequence=b,d.endOfSequence&&delete oE[d.sequenceGroup]);(d.sendIsolatedPayload?Iva:Kva)({endpoint:"log_event",payload:e,cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},
c)};
swa=function(a){Nva(void 0,void 0,void 0===a?!1:a)};
rwa=function(a){oE[a]=a in oE?oE[a]+1:0;return oE[a]};
wwa=function(a,b){twa||(twa=!0);uwa=a;qE=b;vwa=!1};
g.iC=function(a,b,c){c=void 0===c?{}:c;var d=xwa;g.xA("ytLoggingEventsDefaultDisabled",!1)&&xwa===g.yD&&(d=null);if(g.TA("web_all_payloads_via_jspb"))if(c.timestamp||(c.lact=QD(),c.timestamp=(0,g.wC)()),uwa&&qE){var e=uwa[a];if(e){e=e(ywa(b));var f=e[1];(e[0]||!g.TA("jspb_translator_return_completion"))&&f&&qE[a]?(qE[a](f,c,d||void 0),zwa()):(CA(new g.XB("Unable to call logFn for payload",a)),pE(a,b,d,c))}else{if(!g.TA("web_translate_player_logs"))CA(new g.XB("Unable to translate payload to JSPB",
a));else if(!1===vwa){var h=!1;e=Vta("app_received_payload",function(){h=!0});
cD("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c});if(h)return;Uta(e);Vta("app_has_initialized",function(){cD("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c})})}pE(a,b,d,c)}}else Awa.push({payloadName:a,
payload:b,options:c});else pE(a,b,d,c)};
zwa=function(a){a=void 0===a?!1:a;var b=Awa;Awa=[];if(b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a?pE(c.payloadName,c.payload,xwa,c.options):g.iC(c.payloadName,c.payload,c.options)}};
ywa=function(a){if(!g.TA("jspb_convert_payloads_to_lower_camel")||!g.db(a))return a;for(var b=Object.keys(a),c=0;c<b.length;c++){var d=Bwa(b[c]);b[c]!==d&&(a[d]=a[b[c]],delete a[b[c]]);if("object"===typeof a[d]&&!g.cb(a[d]))a[d]=ywa(a[d]);else if(g.cb(a[d])){for(var e=a[d],f=[],h=0;h<e.length;h++)f.push(ywa(e[h]));a[d]=f}}return a};
Bwa=function(a){return a.includes("_")?a.toLowerCase().replace(/([_][a-z])/g,function(b){return b.toUpperCase().replace("_","")}):a};
rE=function(a,b,c,d){d=void 0===d?{}:d;var e=Math.round(d.timestamp||(0,g.wC)());Xk(b,1,e<Number.MAX_SAFE_INTEGER?e:0);e=new eqa;if(d.lact)Xk(e,1,isFinite(d.lact)?d.lact:-1);else if(d.timestamp)Xk(e,1,-1);else{var f=QD();Xk(e,1,isFinite(f)?f:-1)}if(d.sequenceGroup&&!g.TA("web_gel_sequence_info_killswitch")){f=d.sequenceGroup;var h=rwa(f),l=new dqa;Xk(l,2,h);Q(l,1,f);Ik(e,dqa,3,l);d.endOfSequence&&delete Cwa[d.sequenceGroup]}Ik(b,eqa,33,e);(d.sendIsolatedPayload?Lva:Mva)(a,{endpoint:"log_event",payload:b,
cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},c)};
sE=function(a,b,c){c=void 0===c?{}:c;var d=!1;g.xA("ytLoggingEventsDefaultDisabled",!1)&&(d=!0);rE(a,b,d?null:g.yD,c)};
Dwa=function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,cA,72,tE,a);c?rE("visualElementShown",d,c,b):sE("visualElementShown",d,b)};
Ewa=function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,bA,73,tE,a);c?rE("visualElementHidden",d,c,b):sE("visualElementHidden",d,b)};
Fwa=function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,aA,78,tE,a);c?rE("visualElementGestured",d,c,b):sE("visualElementGestured",d,b)};
Gwa=function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,dA,208,tE,a);c?rE("visualElementStateChanged",d,c,b):sE("visualElementStateChanged",d,b)};
Hwa=function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,Zz,156,tE,a);c?rE("screenCreated",d,c,b):sE("screenCreated",d,b)};
Iwa=function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,Xz,202,tE,a);c?rE("playbackAssociated",d,c,b):sE("playbackAssociated",d,b)};
Jwa=function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,$z,215,tE,a);c?rE("visualElementAttached",d,c,b):sE("visualElementAttached",d,b)};
uE=function(a){this.j=a};
g.vE=function(a){return new uE({trackingParams:a})};
Lwa=function(a){var b=Kwa++;return new uE({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0,loggingDirectives:void 0})};
Mwa=function(a){return g.xA("client-screen-nonce-store",{})[void 0===a?0:a]};
Nwa=function(a,b){b=void 0===b?0:b;var c=g.xA("client-screen-nonce-store");c||(c={},wA("client-screen-nonce-store",c));c[b]=a};
Owa=function(a){a=void 0===a?0:a;return 0===a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
Pwa=function(a){return g.xA(Owa(void 0===a?0:a))};
g.wE=function(a){return(a=Pwa(void 0===a?0:a))?new uE({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
Qwa=function(){var a=g.xA("csn-to-ctt-auth-info");a||(a={},wA("csn-to-ctt-auth-info",a));return a};
Rwa=function(){return Object.values(g.xA("client-screen-nonce-store",{})).filter(function(a){return void 0!==a})};
g.xE=function(a){a=Mwa(void 0===a?0:a);if(!a&&!g.xA("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
Twa=function(a){for(var b=g.u(Object.values(Swa)),c=b.next();!c.done;c=b.next())if(g.xE(c.value)===a)return!0;return!1};
Uwa=function(a,b,c){var d=Qwa();(c=g.xE(c))&&delete d[c];b&&(d[a]=b)};
yE=function(a){return Qwa()[a]};
Wwa=function(a,b,c,d){c=void 0===c?0:c;if(a!==Mwa(c)||b!==g.xA(Owa(c)))if(Uwa(a,d,c),Nwa(a,c),wA(Owa(c),b),b=function(){setTimeout(function(){if(a)if(g.TA("web_time_via_jspb")){var e=new Epa;Q(e,1,Vwa);Q(e,2,a);var f=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(f,Epa,111,tE,e);sE("foregroundHeartbeatScreenAssociated",f)}else g.iC("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Vwa,clientScreenNonce:a})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(e){b()}else b()};
Ywa=function(a,b){var c=void 0===c?!0:c;var d=g.xA("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.wn(window.location.href);e&&d.push(e);e=g.wn(a);if(g.Fb(d,e)||!e&&ec(a,"/"))if(d=document.createElement("a"),g.Me(d,a),a=d.href)if(a=xn(a),a=Afa(a))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.xE()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&Xwa(a,b,f)}else Xwa(a,b)};
Xwa=function(a,b,c){a=Zwa(a);b=b?g.so(b):"";c=c||5;era()&&g.dB(a,b,c)};
Zwa=function(a){for(var b=g.u($wa),c=b.next();!c.done;c=b.next())a=wo(a,c.value);return"ST-"+cf(a).toString(36)};
axa=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
bxa=function(){this.qt=[];this.Wr=[]};
fxa=function(){if(!cxa){var a=cxa=new bxa;a.Wr.length=0;a.qt.length=0;dxa(a,exa)}return cxa};
dxa=function(a,b){b.Wr&&a.Wr.push.apply(a.Wr,b.Wr);b.qt&&a.qt.push.apply(a.qt,b.qt)};
hxa=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=gxa(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=gxa(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=gxa(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)};
gxa=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};
jxa=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=ixa(d,a[d],b,c),500<e));d++);d=e}else if("object"===typeof a)for(e in a){if(a[e]){var f=e;var h=a[e],l=b,m=c;f="string"!==typeof h||"clickTrackingParams"!==f&&"trackingParams"!==f?0:(h=hxa(atob(h.replace(/-/g,"+").replace(/_/g,"/"))))?ixa(f+".ve",h,l,m):0;d+=f;d+=ixa(e,a[e],b,c);if(500<d)break}}else c[b]=zE(a),d+=c[b].length;else c[b]=zE(a),d+=c[b].length;return d};
ixa=function(a,b,c,d){c+="."+a;a=zE(b);d[c]=a;return c.length+a.length};
zE=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+")"}};
nsa=function(a){g.AE(a)};
g.BE=function(a){g.AE(a,"WARNING")};
g.AE=function(a,b){var c=void 0===c?{}:c;c.name=g.xA("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.xA("INNERTUBE_CONTEXT_CLIENT_VERSION");var d=void 0===b?"ERROR":b,e=!1;d=void 0===d?"ERROR":d;e=void 0===e?!1:e;if(a){a.hasOwnProperty("level")&&a.level&&(d=a.level);if(g.TA("console_log_js_exceptions")){var f=[];f.push("Name: "+a.name);f.push("Message: "+a.message);a.hasOwnProperty("params")&&f.push("Error Params: "+JSON.stringify(a.params));a.hasOwnProperty("args")&&f.push("Error args: "+JSON.stringify(a.args));
f.push("File name: "+a.fileName);f.push("Stacktrace: "+a.stack);window.console.log(f.join("\n"),a)}if(!(5<=kxa)){var h=lxa,l=Daa(a),m=l.message||"Unknown Error",n=l.name||"UnknownError",p=l.stack||a.B||"Not available";if(p.startsWith(n+": "+m)){var q=p.split("\n");q.shift();p=q.join("\n")}var r=l.lineNumber||"Not available",t=l.fileName||"Not available",v=p,w=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var A=0;A<a.args.length&&!(w=jxa(a.args[A],"params."+A,c,w),500<=w);A++);else if(a.hasOwnProperty("params")&&
a.params){var C=a.params;if("object"===typeof a.params)for(var F in C){if(C[F]){var H="params."+F,M=zE(C[F]);c[H]=M;w+=H.length+M.length;if(500<w)break}}else c.params=zE(C)}if(h.length)for(var L=0;L<h.length&&!(w=jxa(h[L],"params.context."+L,c,w),500<=w);L++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);var R={message:m,name:n,lineNumber:r,fileName:t,stack:v,params:c,sampleWeight:1},ba=Number(a.columnNumber);isNaN(ba)||(R.lineNumber=R.lineNumber+":"+ba);if("IGNORED"===
a.level)var ma=0;else a:{for(var na=fxa(),ia=g.u(na.Wr),sa=ia.next();!sa.done;sa=ia.next()){var aa=sa.value;if(R.message&&R.message.match(aa.gB)){ma=aa.weight;break a}}for(var U=g.u(na.qt),Ka=U.next();!Ka.done;Ka=U.next()){var x=Ka.value;if(x.callback(R)){ma=x.weight;break a}}ma=1}R.sampleWeight=ma;for(var ca=g.u(mxa),Ma=ca.next();!Ma.done;Ma=ca.next()){var $a=Ma.value;if($a.sL[R.name])for(var kb=g.u($a.sL[R.name]),Qa=kb.next();!Qa.done;Qa=kb.next()){var Va=Qa.value,jb=R.message.match(Va.Hj);if(jb){R.params["params.error.original"]=
jb[0];for(var rb=Va.groups,pb={},B=0;B<rb.length;B++)pb[rb[B]]=jb[B+1],R.params["params.error."+rb[B]]=jb[B+1];R.message=$a.VQ(pb);break}}}R.params||(R.params={});var D=fxa();R.params["params.errorServiceSignature"]="msg="+D.Wr.length+"&cb="+D.qt.length;R.params["params.serviceWorker"]="false";g.Ta.document&&g.Ta.document.querySelectorAll&&(R.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));Td("sample").constructor!==Rd&&(R.params["params.fconst"]="true");
window.yterr&&"function"===typeof window.yterr&&window.yterr(R);if(0!==R.sampleWeight&&!nxa.has(R.message)){if(e&&g.TA("web_enable_error_204"))oxa(void 0===d?"ERROR":d,R);else{var E=d;E=void 0===E?"ERROR":E;if("ERROR"===E){CE.publish("handleError",R);if(g.TA("record_app_crashed_web")&&0===pxa&&1===R.sampleWeight)if(pxa++,g.TA("errors_via_jspb")){var J=new uoa;var K=S(J,1,1);if(!g.TA("report_client_error_with_app_crash_ks")){var da=new rz,ta=new iz,la=new hz,O=new gz;var Z=Q(O,1,R.message);var za=
Ik(la,gz,3,Z);var xa=Ik(ta,hz,5,za);var ab=Ik(da,iz,9,xa);Ik(K,rz,4,ab)}var Wa=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(Wa,uoa,20,tE,K);sE("appCrashed",Wa)}else{var zb={appCrashType:"APP_CRASH_TYPE_BREAKPAD"};g.TA("report_client_error_with_app_crash_ks")||(zb.systemHealth={crashData:{clientError:{logMessage:{message:R.message}}}});g.iC("appCrashed",zb)}qxa++}else"WARNING"===E&&CE.publish("handleWarning",R);if(g.TA("kevlar_gel_error_routing"))a:{var Rb=E;if(g.TA("errors_via_jspb")){if(rxa())var Za=
void 0;else{var $b=new $y;Q($b,1,R.stack);R.fileName&&Q($b,4,R.fileName);var hc=R.lineNumber&&R.lineNumber.split?R.lineNumber.split(":"):[];0!==hc.length&&(1!==hc.length||isNaN(Number(hc[0]))?2!==hc.length||isNaN(Number(hc[0]))||isNaN(Number(hc[1]))||(Vk($b,2,Number(hc[0])),Vk($b,3,Number(hc[1]))):Vk($b,2,Number(hc[0])));var Jc=new gz;Q(Jc,1,R.message);Q(Jc,3,R.name);Vk(Jc,6,R.sampleWeight);"ERROR"===Rb?S(Jc,2,2):"WARNING"===Rb?S(Jc,2,1):S(Jc,2,0);var Yb=new fz;Uk(Yb,1,!0);Jk(Yb,$y,3,DE,$b);var vc=
new Yy;Q(vc,3,window.location.href);for(var $c=g.xA("FEXP_EXPERIMENTS",[]),Rc=0;Rc<$c.length;Rc++)vc.B($c[Rc]);var tc=g.xA("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!yA("web_disable_gel_stp_ecatcher_killswitch")&&tc)for(var Vb=g.u(Object.keys(tc)),Wb=Vb.next();!Wb.done;Wb=Vb.next()){var yd=Wb.value,pd=new Jy;Q(pd,1,yd);Q(pd,2,String(tc[yd]));vc.j(pd)}var qd=R.params;if(qd)for(var ac=g.u(Object.keys(qd)),Ec=ac.next();!Ec.done;Ec=ac.next()){var Ib=Ec.value,bd=new Jy;Q(bd,1,"client."+Ib);Q(bd,2,
String(qd[Ib]));vc.j(bd)}var zd=g.xA("SERVER_NAME"),Pb=g.xA("SERVER_VERSION");if(zd&&Pb){var fe=new Jy;Q(fe,1,"server.name");Q(fe,2,zd);vc.j(fe);var Ud=new Jy;Q(Ud,1,"server.version");Q(Ud,2,Pb);vc.j(Ud)}var Vd=new hz;Ik(Vd,Yy,1,vc);Ik(Vd,fz,2,Yb);Ik(Vd,gz,3,Jc);Za=Vd}var Ce=Za;if(!Ce)break a;var De=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(De,hz,163,tE,Ce);sE("clientError",De)}else{var Ld=void 0;Ld=void 0===Ld?{}:Ld;if(rxa())var $e=void 0;else{var Oe={stackTrace:R.stack};R.fileName&&
(Oe.filename=R.fileName);var Md=R.lineNumber&&R.lineNumber.split?R.lineNumber.split(":"):[];0!==Md.length&&(1!==Md.length||isNaN(Number(Md[0]))?2!==Md.length||isNaN(Number(Md[0]))||isNaN(Number(Md[1]))||(Oe.lineNumber=Number(Md[0]),Oe.columnNumber=Number(Md[1])):Oe.lineNumber=Number(Md[0]));var Bf={level:"ERROR_LEVEL_UNKNOWN",message:R.message,errorClassName:R.name,sampleWeight:R.sampleWeight};"ERROR"===Rb?Bf.level="ERROR_LEVEL_ERROR":"WARNING"===Rb&&(Bf.level="ERROR_LEVEL_WARNNING");var Nd={isObfuscated:!0,
browserStackInfo:Oe};Ld.pageUrl=window.location.href;Ld.kvPairs=[];g.xA("FEXP_EXPERIMENTS")&&(Ld.experimentIds=g.xA("FEXP_EXPERIMENTS"));var ge=g.xA("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!yA("web_disable_gel_stp_ecatcher_killswitch")&&ge)for(var rd=g.u(Object.keys(ge)),Hd=rd.next();!Hd.done;Hd=rd.next()){var sd=Hd.value;Ld.kvPairs.push({key:sd,value:String(ge[sd])})}var Od=R.params;if(Od)for(var jg=g.u(Object.keys(Od)),af=jg.next();!af.done;af=jg.next()){var Qf=af.value;Ld.kvPairs.push({key:"client."+
Qf,value:String(Od[Qf])})}var Xc=g.xA("SERVER_NAME"),oc=g.xA("SERVER_VERSION");Xc&&oc&&(Ld.kvPairs.push({key:"server.name",value:Xc}),Ld.kvPairs.push({key:"server.version",value:oc}));$e={errorMetadata:Ld,stackTrace:Nd,logMessage:Bf}}var Pe=$e;if(!Pe)break a;g.iC("clientError",Pe)}if("ERROR"===Rb||g.TA("errors_flush_gel_always_killswitch"))b:{if(g.TA("web_fp_via_jspb")&&(zwa(!0),swa(!0),!g.TA("web_fp_via_jspb_and_json")))break b;swa()}}g.TA("suppress_error_204_logging")||oxa(E,R)}try{nxa.add(R.message)}catch(ih){}kxa++}}}};
rxa=function(){for(var a=g.u(sxa),b=a.next();!b.done;b=a.next())if(g.fB(b.value.toLowerCase()))return!0;return!1};
oxa=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.xA("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.u(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.xA("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(b=
g.u(Object.keys(c)),d=b.next();!d.done;d=b.next())d=d.value,a.postParams[d]=c[d];c=g.xA("SERVER_NAME");b=g.xA("SERVER_VERSION");c&&b&&(a.postParams["server.name"]=c,a.postParams["server.version"]=b)}g.VA(g.xA("ECATCHER_REPORT_HOST","")+"/error_204",a)};
txa=function(a){var b=g.Ia.apply(1,arguments);a.args||(a.args=[]);a.args.push.apply(a.args,g.qa(b))};
GE=function(a){var b=g.V(a,EE);if(b)return b;if((b=g.V(a,uxa))&&b.commands)return vxa(b.commands);if((b=g.V(a,wxa))&&b.commands)return vxa(b.commands);if((a=g.V(a,xxa))&&a.identifier&&a.command&&(FE||(FE=[]),!FE.includes(a.identifier)))return FE.push(a.identifier),g.V(a.command,EE)};
vxa=function(a){if(0!==a.length){var b=[];a=g.u(a);for(var c=a.next();!c.done;c=a.next())(c=GE(c.value))&&b.push(c);return{commandExecutorCommand:{commands:b}}}};
g.HE=function(a,b,c){void 0===c?delete a[b.name]:a[b.name]=c};
yxa=function(a){a=void 0===a||a?MD(16):fva(16);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
zxa=function(a){for(var b=0,c=0;c<a.length;c++)b=31*b+a.charCodeAt(c),c<a.length-1&&(b%=Math.pow(2,47));return b%1E5};
Axa=function(a){aD.call(this,1,arguments);this.csn=a};
Gxa=function(a,b,c,d,e,f,h,l){function m(){g.BE(new g.XB("newScreen() parent element does not have a VE - rootVe",b))}
var n=Bxa(),p=new uE({veType:b,youtubeData:f,jspbYoutubeData:void 0});f=IE({},n);e&&(f.cttAuthInfo=e);if(g.TA("il_via_jspb")){e=Opa((new Zz).j(n),p.getAsJspb());c&&c.visualElement?(p=new Mpa,c.clientScreenNonce&&Q(p,2,c.clientScreenNonce),Npa(p,c.visualElement.getAsJspb()),h&&S(p,4,Cxa[h]),Ik(e,Mpa,5,p)):c&&m();d&&Q(e,3,d);if(g.TA("expectation_logging")&&l&&l.screenCreatedLoggingExpectations){c=new Hx;l=g.u(l.screenCreatedLoggingExpectations.expectedParentScreens||[]);for(d=l.next();!d.done;d=l.next())d=
d.value,d.screenVeType&&(d=wna(new Fx,d.screenVeType),c.j(d));Ik(e,Hx,7,c)}Hwa(e,f,a)}else e={csn:n,pageVe:p.getAsJson()},g.TA("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?pE("screenCreated",e,a,f):g.iC("screenCreated",e,f);cD(Dxa,new Axa(n));
JE.clear();Exa.clear();Fxa.clear();return n};
g.KE=function(a,b,c,d,e){g.Hxa(a,b,c,[d],void 0===e?!1:e)};
g.Hxa=function(a,b,c,d,e){e=void 0===e?!1:e;for(var f=IE({cttAuthInfo:yE(b)||void 0},b),h=g.u(d),l=h.next();!l.done;l=h.next()){l=l.value;var m=l.getAsJson();(g.gd(m)||!m.trackingParams&&!m.veType)&&g.BE(Error("Child VE logged with no data"));if(g.TA("no_client_ve_attach_unless_shown")){var n=LE(l,b);if(m.veType&&!Exa.has(n)&&!Fxa.has(n)&&!e){if(!g.TA("il_attach_cache_limit")||1E3>JE.size){JE.set(n,[a,b,c,l]);return}g.TA("il_attach_cache_limit")&&1E3<JE.size&&g.BE(new g.XB("IL Attach cache exceeded limit"))}l=
LE(c,b);JE.has(l)?Ixa(c,b):Fxa.set(l,!0)}}d=d.filter(function(q){q.csn!==b?(q.csn=b,q=!0):q=!1;return q});
if(g.TA("il_via_jspb")){var p=Ppa((new $z).j(b),c.getAsJspb());g.$r(d,function(q){q=q.getAsJspb();Lk(p,3,zz,q)});
"UNDEFINED_CSN"===b?ME("visualElementAttached",f,void 0,p):Jwa(p,f,a)}else c={csn:b,parentVe:c.getAsJson(),childVes:g.$r(d,function(q){return q.getAsJson()})},"UNDEFINED_CSN"===b?ME("visualElementAttached",f,c):a?pE("visualElementAttached",c,a,f):g.iC("visualElementAttached",c,f)};
Kxa=function(a,b,c,d,e,f){Jxa(c,b);d=IE({cttAuthInfo:yE(b)||void 0},b);g.TA("il_via_jspb")?(e=(new cA).j(b),c=c.getAsJspb(),c=Ik(e,zz,2,c),c=S(c,4,1),f&&Ik(c,Yz,3,f),"UNDEFINED_CSN"===b?ME("visualElementShown",d,void 0,c):Dwa(c,d,a)):(f={csn:b,ve:c.getAsJson(),eventType:1},e&&(f.clientData=e),"UNDEFINED_CSN"===b?ME("visualElementShown",d,f):a?pE("visualElementShown",f,a,d):g.iC("visualElementShown",f,d))};
Lxa=function(a,b,c,d){var e=(d=void 0===d?!1:d)?16:8,f=IE({cttAuthInfo:yE(b)||void 0,endOfSequence:d},b);g.TA("il_via_jspb")?(e=(new bA).j(b),c=c.getAsJspb(),c=Ik(e,zz,2,c),S(c,4,d?16:8),"UNDEFINED_CSN"===b?ME("visualElementHidden",f,void 0,c):Ewa(c,f,a)):(d={csn:b,ve:c.getAsJson(),eventType:e},"UNDEFINED_CSN"===b?ME("visualElementHidden",f,d):a?pE("visualElementHidden",d,a,f):g.iC("visualElementHidden",d,f))};
Nxa=function(a,b,c,d,e){Mxa(a,b,c,d,e)};
Mxa=function(a,b,c,d,e){var f=void 0;Jxa(c,b);f=f||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var h=IE({cttAuthInfo:yE(b)||void 0},b);g.TA("il_via_jspb")?(d=(new aA).j(b),c=c.getAsJspb(),c=Ik(d,zz,2,c),S(c,4,Cxa[f]),e&&Ik(c,Yz,3,e),"UNDEFINED_CSN"===b?ME("visualElementGestured",h,void 0,c):Fwa(c,h,a)):(e={csn:b,ve:c.getAsJson(),gestureType:f},d&&(e.clientData=d),"UNDEFINED_CSN"===b?ME("visualElementGestured",h,e):a?pE("visualElementGestured",e,a,h):g.iC("visualElementGestured",e,h))};
Oxa=function(){var a;g.TA("enable_web_96_bit_csn")?a=yxa():g.TA("enable_web_96_bit_csn_no_crypto")?a=yxa(!1):a=g.Hg(g.Gg(Math.random()+""),3);return a};
ME=function(a,b,c,d){NE.push({payloadName:a,payload:c,vu:d,options:b});Pxa||(Pxa=Vta(Dxa,Qxa))};
Qxa=function(a){if(NE){for(var b=g.u(NE),c=b.next();!c.done;c=b.next())if(c=c.value,g.TA("il_via_jspb")&&c.vu)switch(c.vu.j(a.csn),c.payloadName){case "screenCreated":Hwa(c.vu,c.options);break;case "visualElementAttached":Jwa(c.vu,c.options);break;case "visualElementShown":Dwa(c.vu,c.options);break;case "visualElementHidden":Ewa(c.vu,c.options);break;case "visualElementGestured":Fwa(c.vu,c.options);break;case "visualElementStateChanged":Gwa(c.vu,c.options);break;default:g.BE(new g.XB("flushQueue unable to map payloadName to JSPB setter"))}else c.payload&&
(c.payload.csn=a.csn,g.iC(c.payloadName,c.payload,c.options));NE.length=0}Pxa=0};
LE=function(a,b){return""+a.getAsJson().veType+a.getAsJson().veCounter+b};
Jxa=function(a,b){if(g.TA("no_client_ve_attach_unless_shown")){var c=LE(a,b);Exa.set(c,!0);Ixa(a,b)}};
Ixa=function(a,b){a=LE(a,b);JE.has(a)&&(b=JE.get(a)||[],g.KE(b[0],b[1],b[2],b[3],!0),JE.delete(a))};
IE=function(a,b){g.TA("log_sequence_info_on_gel_web")&&(a.sequenceGroup=b);return a};
g.OE=function(a,b,c,d){g.BA(Kxa)(void 0,a,b,c,d,void 0)};
g.PE=function(a,b){g.BA(function(){g.bc(b,function(c){Jxa(c,a);var d=IE({cttAuthInfo:yE(a)||void 0},a);if(g.TA("il_via_jspb")){var e=(new cA).j(a);c=c.getAsJspb();e=Ik(e,zz,2,c);e=S(e,4,4);"UNDEFINED_CSN"===a?ME("visualElementShown",d,void 0,e):Dwa(e,d)}else e={csn:a,ve:c.getAsJson(),eventType:4},"UNDEFINED_CSN"===a?ME("visualElementShown",d,e):g.iC("visualElementShown",e,d)})})()};
g.QE=function(a,b){g.BA(function(){g.bc(b,function(c){Lxa(void 0,a,c)})})()};
g.RE=function(a,b,c){g.BA(Nxa)(void 0,a,b,c,void 0)};
TE=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=SE(a)};
SE=function(a){var b=":"+(xw.getInstance().j++).toString(36);return a+b};
g.UE=function(a){a=void 0===a?!1:a;g.I.call(this);this.yj=new g.iw(a);g.N(this,this.yj)};
g.VE=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
WE=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
XE=function(){var a="ytp-id-"+Rxa.toString();Rxa++;return a};
g.YE=function(a){g.I.call(this);this.Jb={};this.je={};this.element=this.createElement(a)};
ZE=function(a,b,c,d){if("{{"===d.substr(0,2))a.je[d]=[b,c];else return d};
Sxa=function(a,b){var c=[];if(!b)return c;b=g.u(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.I?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.yf("BR"));c.push(g.zf(f))}):c.push(g.zf(d))}return c};
$E=function(a,b,c,d){if("child"===c){g.Cf(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.I?[d]:d;c=Sxa(a,e);c=g.u(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.Is(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.de(g.je(a))),b.setAttribute(c,a))};
g.W=function(a){g.YE.call(this,a);this.Gb=!0;this.Z=!1;this.listeners=[]};
g.aF=function(a,b){b?a.show():a.hide()};
g.bF=function(a){g.W.call(this,a);this.Sa=new g.UE;g.N(this,this.Sa)};
cF=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.bF.call(this,b);this.api=a;this.macros={};this.componentType=c;this.K=this.N=null;this.Ab=h;this.layoutId=d;this.interactionLoggingClientData=e;this.kb=f;this.eb=null;this.MS=new KD(this.element);g.N(this,this.MS);this.rb=this.T(this.element,"click",this.onClick);this.Ha=[];this.Ca=new dva(this.onClick,this);g.N(this,this.Ca);this.Hb=!1;this.La=this.qa=null};
dF=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.BE(Error("Got null or undefined adText object")),"";var c=g.bf(a.text);if(!a.isTemplated)return c;if(null==b)return g.BE(Error("Missing required parameters for a templated message")),c;a=g.u(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.u(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
Txa=function(a){a=void 0===a?null:a;return null!=a&&(a=a.thumbnail,null!=a&&null!=a.thumbnails&&0!=a.thumbnails.length&&null!=a.thumbnails[0].url)?g.bf(a.thumbnails[0].url):""};
Uxa=function(a){a=void 0===a?null:a;return null!=a&&(a=a.thumbnail,null!=a&&null!=a.thumbnails&&0!=a.thumbnails.length&&null!=a.thumbnails[0].width&&null!=a.thumbnails[0].height)?new g.Ke(a.thumbnails[0].width||0,a.thumbnails[0].height||0):new g.Ke(0,0)};
g.eF=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.u(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.fF=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=xf("B",null,h||l));d.italics&&(h=xf("I",null,h||l));d.strikethrough&&(h=xf("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=xf("A",null,h||l),g.Me(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||xf("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:xf("SPAN",null,b)};
g.Vxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!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"}}]}};
Wxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"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.gF=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{I:"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.hF=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{I:"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"}}]}};
Xxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",X:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{I:"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"}}]}};
Yxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
Zxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.iF=function(){return{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"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"}}]}};
$xa=function(){return{I:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"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"}}]}};
aya=function(){return{I:"svg",X:{viewBox:"0 0 24 24"},V:[{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{I:"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"}}]}};
bya=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}};
cya=function(){return{I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"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"}}]}};
dya=function(){return{I:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{I:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{I:"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"}}]}};
eya=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 17,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"}}]}};
fya=function(){return{I:"svg",X:{viewBox:"0 0 24 24"},V:[{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{I:"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"}}]}};
jF=function(){return{I:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"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"}}]}};
gya=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
hya=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
g.iya=function(){return{I:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"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"}}]}};
kF=function(){return{I:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{I:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{I:"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"}}]}};
jya=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
kya=function(){return{I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",S:"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"}}]}};
lya=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!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"}}]}};
mya=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
nya=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.oya=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}};
g.pya=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!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.lF=function(){return{I:"svg",X:{height:"100%",viewBox:"0 0 16 16",width:"100%"},V:[{I:"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"}}]}};
qya=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
rya=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 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"}}]}};
mF=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return kF();case "CHECK_BOX":return{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{I:"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{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"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"}},{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.iF();case "INFO_OUTLINE":return dya();case "REMOVE_CIRCLE":return{I:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",X:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};
case "SKIP_NEXT":return hya();case "SKIP_NEXT_NEW":return{I:"svg",X:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},V:[{I:"path",X:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return fya();case "DISLIKE":return aya();default:return g.BE(new g.XB("Unexpected icon:",a)),null}};
nF=function(a,b,c,d,e,f,h,l){e=void 0===e?[]:e;h=void 0===h?!1:h;e={I:"button",Ka:["ytp-ad-button"].concat(e)};null!=l&&(e.X={tabindex:l});cF.call(this,a,e,void 0===f?"button":f,b,c,d);this.j=this.B=this.C=null;this.D=h;this.hide()};
sya=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||[]};
oF=function(){g.I.call(this);var a=this;this.j=new Map;this.B=Pra(function(b){if(b.target&&(b=a.j.get(b.target))&&b)for(var c=0;c<b.length;c++)g.qD(b[c])})};
tya=function(){null==pF&&(pF=new oF);return pF};
qF=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=uya(a))){b=xf("SPAN",null,b);break a}b=g.zf(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(vya(e,b))}return 1==c.length?c[0]:xf("SPAN",null,c)};
vya=function(a,b){var c=null,d=a.text;b&&(d=uya(d)||d);a.bold&&(c=xf("B",null,c||d));a.italics&&(c=xf("I",null,c||d));a.strikethrough&&(c=xf("STRIKE",null,c||d));a.navigationEndpoint&&g.V(a.navigationEndpoint,g.rF)&&(b=g.V(a.navigationEndpoint,g.rF),c=xf("A",null,c||d),g.Me(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),tya().register(c,a),g.Qv(c,"ytp-ad-has-logging-urls"));
return c||xf("SPAN",null,d)};
uya=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(xf("BR")),b.push(a[c]);return b}return null};
sF=function(a,b,c,d,e,f,h,l){f=void 0===f?!1:f;h=void 0===h?[]:h;cF.call(this,a,{I:"span",Ka:["ytp-ad-hover-text-button"].concat(h)},void 0===l?"ad-hover-text-button":l,b,c,d);this.button=this.B=null;this.G=f;this.D=e;this.hide()};
tF=function(a){return a&&a.thumbnails&&0!=(a.thumbnails||null).length&&a.thumbnails[0].url?g.bf(a.thumbnails[0].url):""};
uF=function(a,b,c,d,e,f){f=void 0===f?!1:f;cF.call(this,a,{I:"img",S:"ytp-ad-image"},"ad-image",b,c,d,void 0===e?null:e);this.j=f;this.hide()};
vF=function(a,b,c,d,e,f){e=void 0===e?[]:e;cF.call(this,a,{I:"div",Ka:["ytp-ad-confirm-dialog-background"],V:[{I:"div",S:"ytp-ad-confirm-dialog-container",V:[{I:"div",Ka:["ytp-ad-confirm-dialog"].concat(e),X:{role:"dialog",tabindex:"-1"},V:[{I:"div",S:"ytp-ad-confirm-dialog-title",xa:"{{title}}"},{I:"div",S:"ytp-ad-confirm-dialog-messages"},{I:"div",S:"ytp-ad-confirm-dialog-confirm-container",V:[{I:"button",S:"ytp-ad-confirm-dialog-cancel-button",xa:"{{cancelLabel}}"},{I:"button",S:"ytp-ad-confirm-dialog-confirm-button",
xa:"{{confirmLabel}}"}]}]}]},{I:"button",Ka:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],V:[{I:"span",S:"ytp-ad-button-icon",V:[g.iF()]}]}]},void 0===f?"confirm-dialog":f,b,c,d);this.Y=this.Fa("ytp-ad-confirm-dialog-close-overlay-button");this.D=this.Fa("ytp-ad-confirm-dialog-cancel-button");this.G=this.Fa("ytp-ad-confirm-dialog-confirm-button");this.ra=this.Fa("ytp-ad-confirm-dialog-messages");this.C=null;this.j=new KB;g.N(this,this.j);this.B=null;this.hide()};
wya=function(a,b){if(b.title){var c=g.eF(b.title);a.updateValue("title",c)}if(b.dialogMessages){c=g.u(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=qF(d.value),a.ra.appendChild(d)}b.cancelLabel&&(c=g.eF(b.cancelLabel),a.updateValue("cancelLabel",c),a.j.T(a.D,"click",function(e){return a.kN(e)}));
b.confirmLabel&&(b=g.eF(b.confirmLabel),a.updateValue("confirmLabel",b),a.j.T(a.G,"click",function(e){return a.pR(e)}));
a.j.T(a.Y,"click",function(e){return a.oR(e)})};
wF=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=SE("ytp-ad-toggle-button-input"),l={role:"button","aria-label":"{{tooltipText}}"};a.U().experiments.fb("fix_h5_toggle_button_a11y")&&(l.tabindex="0");a.U().experiments.fb("fix_toggle_button_role_for_ad_components")&&(l.role="checkbox");cF.call(this,a,{I:"div",Ka:["ytp-ad-toggle-button"].concat(e),V:[{I:"label",S:"ytp-ad-toggle-button-label",X:{"for":h},V:[{I:"span",S:"ytp-ad-toggle-button-icon",X:l,V:[{I:"span",S:"ytp-ad-toggle-button-untoggled-icon",
xa:"{{untoggledIconTemplateSpec}}"},{I:"span",S:"ytp-ad-toggle-button-toggled-icon",xa:"{{toggledIconTemplateSpec}}"}]},{I:"input",S:"ytp-ad-toggle-button-input",X:{id:h,type:"checkbox"}},{I:"span",S:"ytp-ad-toggle-button-text",xa:"{{buttonText}}"},{I:"span",S:"ytp-ad-toggle-button-tooltip",xa:"{{tooltipText}}"}]}]},f,b,c,d);this.D=this.Fa("ytp-ad-toggle-button");this.j=this.Fa("ytp-ad-toggle-button-input");this.Fa("ytp-ad-toggle-button-label");this.B=this.Fa("ytp-ad-toggle-button-icon");this.Y=this.Fa("ytp-ad-toggle-button-untoggled-icon");
this.G=this.Fa("ytp-ad-toggle-button-toggled-icon");this.Ga=this.Fa("ytp-ad-toggle-button-text");this.C=null;this.ra=!1;this.hide()};
xya=function(a){a.ra&&(a.isToggled()?(g.Vs(a.Y,!1),g.Vs(a.G,!0),a.api.U().experiments.fb("fix_toggle_button_role_for_ad_components")&&a.B.setAttribute("aria-checked",!0)):(g.Vs(a.Y,!0),g.Vs(a.G,!1),a.api.U().experiments.fb("fix_toggle_button_role_for_ad_components")&&a.B.setAttribute("aria-checked",!1)))};
yya=function(a,b){var c=null;a.C&&(c=(b?[a.C.defaultServiceEndpoint,a.C.defaultNavigationEndpoint]:[a.C.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
zya=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
xF=function(a){KB.call(this);this.j=a;this.T(this.j,"onAdUxUpdate",this.K)};
Aya=function(a,b,c,d){cF.call(this,a,{I:"div",S:"ytp-ad-feedback-dialog-background",V:[{I:"div",S:"ytp-ad-feedback-dialog-container",V:[{I:"div",S:"ytp-ad-feedback-dialog-form",X:{role:"dialog",tabindex:"-1"},V:[{I:"div",S:"ytp-ad-feedback-dialog-title",V:[{I:"span",xa:"{{title}}"}]},{I:"span",S:"ytp-ad-info-dialog-feedback-options-title",xa:"{{reasonsTitle}}"},{I:"div",S:"ytp-ad-info-dialog-feedback-options"},{I:"div",S:"ytp-ad-feedback-dialog-confirm-container",V:[{I:"button",S:"ytp-ad-feedback-dialog-cancel-button",
xa:"{{cancelLabel}}"},{I:"button",S:"ytp-ad-feedback-dialog-confirm-button",xa:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",b,c,d);this.D=[];this.j=null;this.G=this.Fa("ytp-ad-feedback-dialog-cancel-button");this.Y=this.Fa("ytp-ad-feedback-dialog-confirm-button");this.ra=this.Fa("ytp-ad-info-dialog-feedback-options");this.Ga=this.Fa("ytp-ad-feedback-dialog-title");this.C=this.B=null;this.hide()};
Eya=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.j=new nF(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,["ytp-ad-feedback-dialog-close-button"],"button"),g.N(a,a.j),a.j.init(SE("button"),c,a.macros),a.j.listen("click",a.B_,a),a.j.Ja(a.element));b.title&&(c=g.eF(b.title),a.updateValue("title",c));b.reasonsTitle&&(c=g.eF(b.reasonsTitle),a.updateValue("reasonsTitle",c));b.reasons&&Bya(a,b.reasons);b.cancelLabel&&(c=g.eF(b.cancelLabel),a.updateValue("cancelLabel",
c),g.CB(a.G,"click",function(){return a.B_()}));
b.confirmLabel&&(c=g.eF(b.confirmLabel),a.updateValue("confirmLabel",c),g.CB(a.Y,"click",function(){return Cya(a)}));
b.undoRenderer&&Dya(a,b.undoRenderer)};
Bya=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;if(null==c)g.BE(Error("AdFeedbackReason.reason was not set."));else if(d=d.endpoint,null==d)g.BE(Error("AdFeedbackReason.endpoint was not set."));else{c=new yF(c,d);g.N(a,c);d=a.ra;var e=c.Ib();d.appendChild(e);a.D.push(c)}}};
Dya=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.B=new nF(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.N(a,a.B),a.B.init(SE("ad-feedback-undo-mute-button"),b,a.macros),a.B.listen("click",a.zca,a),a.B.Ja(a.Ga)):g.BE(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
Cya=function(a){var b=a.D.filter(function(c){return c.isChecked()});
0!==b.length&&(b=b[0].getCommand(),a.layoutId?a.kb.executeCommand(b,a.layoutId):g.AE(Error("Missing layoutId for ad feedback dialog.")),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.publish("a"),a.hide())};
yF=function(a,b){this.B=b;this.j=new g.bF({I:"label",S:"ytp-ad-feedback-dialog-reason-label",V:[{I:"input",S:"ytp-ad-feedback-dialog-reason-input",X:{type:"radio",name:"feedback-reason-group"}},{I:"span",S:"ytp-ad-feedback-dialog-reason-text",xa:g.eF(a)}]});this.C=this.j.Fa("ytp-ad-feedback-dialog-reason-input")};
zF=function(a,b,c,d){vF.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
Fya=function(a,b,c,d,e){cF.call(this,a,{I:"div",S:"ytp-ad-info-dialog-background",V:[{I:"div",S:"ytp-ad-info-dialog-container",V:[{I:"div",S:"ytp-ad-info-dialog-form",X:{role:"dialog",tabindex:"-1"},V:[{I:"div",S:"ytp-ad-info-dialog-title",xa:"{{title}}"},{I:"ul",S:"ytp-ad-info-dialog-ad-reasons"},{I:"div",S:"ytp-ad-info-dialog-message"},{I:"div",S:"ytp-ad-info-dialog-mute-container"},{I:"div",S:"ytp-ad-info-dialog-confirm-container",V:[{I:"button",S:"ytp-ad-info-dialog-confirm-button",xa:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",b,c,d);this.j=this.B=null;this.Y=this.Fa("ytp-ad-info-dialog-confirm-button");this.bb=this.Fa("ytp-ad-info-dialog-mute-container");this.Wa=this.Fa("ytp-ad-info-dialog-message");this.Ma=this.Fa("ytp-ad-info-dialog-ad-reasons");this.D=this.C=null;this.Ga=e;this.G=null;this.Va=!1;this.ra=null;this.hide()};
Gya=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.B=new Aya(a.api,a.layoutId,a.interactionLoggingClientData,a.kb),g.N(a,a.B),a.B.init(SE("ad-feedback-dialog"),b,a.macros),a.B.Ja(a.Ga),a.B.subscribe("a",function(){return a.publish("c")})};
Hya=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.D=new zF(a.api,a.layoutId,a.interactionLoggingClientData,a.kb),g.N(a,a.D),a.D.init(SE("ad-mute-confirm-dialog"),b,a.macros),a.D.Ja(a.Ga),a.D.subscribe("b",function(){return a.publish("c")})};
Iya=function(a){a.j&&a.j.listen("click",a.uV,a);g.CB(a.Y,"click",function(){return a.uV()})};
AF=function(a,b,c,d,e,f){sF.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.C=e;this.hide()};
Kya=function(a,b,c){b=b.dialog&&g.V(b.dialog,Jya)||null;null==b?g.AE(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.j=new Fya(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,a.C),g.N(a,a.j),a.j.init(SE("ad-info-dialog"),b,c),a.j.Ja(a.C),a.j.subscribe("d",function(){return a.publish("f")}),a.j.subscribe("c",function(){return a.publish("e")}))};
Nya=function(a,b,c){null==a.button?g.AE(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.B&&g.Qv(a.B.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&g.V(b.serviceEndpoint,Lya)||null)?(Kya(a,b,c),a.button.listen("click",function(){a.j&&!a.j.Gb&&(a.j.show(),Mya(a))})):a.button.listen("click",function(){return Mya(a)}))};
Mya=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
BF=function(a,b,c,d,e,f){cF.call(this,a,{I:"div",S:"ytp-ad-text"},void 0===f?"ad-text":f,b,c,d,void 0===e?null:e);this.j=null;this.hide()};
Oya=function(a,b){b&&g.Kf(a.element,dF(a.j,b))};
CF=function(a,b,c,d,e,f,h){cF.call(this,a,b,c,d,e,f);this.j=h;g.N(this,this.j);this.Va=this.Y=-1};
DF=function(a){a.j&&-1===a.Y&&(a.Y=a.j.subscribe("h",a.Ko,a),a.Va=a.j.subscribe("g",a.yq,a),a.Ko())};
EF=function(a){null!=a.j&&-1!==a.Y&&(a.j.Ph(a.Y),a.j.Ph(a.Va),a.Va=-1,a.Y=-1)};
g.FF=function(a,b,c,d,e,f){g.I.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.onHidden=e;this.delay=new g.Iv(this.bI,0,this);g.N(this,this.delay)};
GF=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
HF=function(a,b,c,d,e,f){CF.call(this,a,{I:"div",S:"ytp-ad-preview-slot"},"ad-preview",b,c,d,e);var h=this;this.bb=-1;this.D=this.api.U().experiments.fb("enable_modern_skip_button_on_web");this.B=new g.bF({I:"span",S:"ytp-ad-preview-container"});this.D&&this.B.element.classList.add("ytp-ad-preview-container-detached");g.N(this,this.B);this.C=this.D?new BF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-preview-text-modern"):new BF(this.api,this.layoutId,this.interactionLoggingClientData,
this.kb,"ytp-ad-preview-text");g.N(this,this.C);this.C.Ja(this.B.element);this.ra=this.D?new g.bF({I:"span",S:"ytp-ad-preview-image-modern"}):new g.bF({I:"span",S:"ytp-ad-preview-image"});g.N(this,this.ra);this.G=new uF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);g.N(this,this.G);this.G.Ja(this.ra.element);this.ra.Ja(this.B.element);this.B.Ja(this.element);this.Ga=new g.FF(this.B,400,!1,100,function(){return h.hide()});
g.N(this,this.Ga);this.Ma=0;this.Wa=!1;this.gb=f;this.hide()};
Pya=function(a){a.Ga.show(100);a.show()};
Qya=function(a,b,c,d,e,f){CF.call(this,a,{I:"div",Ka:["ytp-flyout-cta","ytp-flyout-cta-inactive"],V:[{I:"div",S:"ytp-flyout-cta-icon-container"},{I:"div",S:"ytp-flyout-cta-body",V:[{I:"div",S:"ytp-flyout-cta-text-container",V:[{I:"div",S:"ytp-flyout-cta-headline-container"},{I:"div",S:"ytp-flyout-cta-description-container"}]},{I:"div",S:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",b,c,d,e);this.C=new uF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-flyout-cta-icon");
g.N(this,this.C);this.C.Ja(this.Fa("ytp-flyout-cta-icon-container"));this.api.U().L("web_rounded_thumbnails")&&this.C.element.classList.add("ytp-flyout-cta-icon-rounded");this.G=new BF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-flyout-cta-headline");g.N(this,this.G);this.G.Ja(this.Fa("ytp-flyout-cta-headline-container"));this.D=new BF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-flyout-cta-description");g.N(this,this.D);this.D.Ja(this.Fa("ytp-flyout-cta-description-container"));
a=["ytp-flyout-cta-action-button"];this.api.U().L("web_modern_buttons")&&a.push("ytp-flyout-cta-action-button-rounded");this.B=new nF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,a);g.N(this,this.B);this.B.Ja(this.Fa("ytp-flyout-cta-action-button-container"));this.B.element.setAttribute("tabIndex","-1");Dv(this.B.element);this.ra=null;this.Ga=0;this.Ma=f;this.hide()};
Rya=function(a,b,c,d,e){cF.call(this,a,{I:"div",S:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",b,c,d,void 0===e?null:e);var f=this;this.j=null;this.C=new wF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,["ytp-ad-instream-user-sentiment-like-button"]);g.N(this,this.C);this.C.Ja(this.element);this.B=new wF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,["ytp-ad-instream-user-sentiment-dislike-button"]);g.N(this,this.B);this.B.Ja(this.element);
this.D=new g.FF(this,400,!1,500,function(){return f.hide()});
g.N(this,this.D);this.hide()};
IF=function(a,b,c,d,e,f){e=void 0===e?0:e;f=void 0===f?!1:f;g.I.call(this);this.B=a;this.C=!1;this.Y=d;this.qa=f;this.K=!1;this.j=null;0<b&&(this.j=new g.Iv(this.JW,b,this),g.N(this,this.j));this.G=new g.Iv(this.JW,c,this);g.N(this,this.G);this.Z=kla(this.B,e,1,d);g.N(this,this.Z);this.N=kla(this.B,0,d,1);g.N(this,this.N);this.D=new KB;g.N(this,this.D)};
Sya=function(a){switch(a){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Ne(a,"unknown result type")}};
Tya=function(a){switch(a){case "b.f_":return 0;case "j.s_":return 2;case "r.s_":return 4;case "e.h_":return 6;case "i.s_":return 8;case "p.h_":return 12;case "s.t_":return 10;case "s.i_":return 14;case "f.i_":return 16;case "a.b_":return 18;case "a.o_":return 20;case "g.o_":return 22;case "p.i_":return 24;case "p.m_":return 26;case "i.k_":return 28;case "i.f_":return 30;case "a.s_":return 32;default:Ne(a,"Unknown method type")}};
Vya=function(a,b){var c=1,d=[];try{var e=document.querySelector(".ytp-ad-skip-button-slot");e?"none"===getComputedStyle(e).display?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_INVISIBLE"):d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_VISIBLE"):d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_NOT_FOUND")}catch(f){d.push("BISCOTTI_BASED_DETECTION_STATE_IS_FINDING_BUTTON_FAILURE")}!0===a.isTrusted?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_TRUSTED"):!1===a.isTrusted?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_NOT_TRUSTED"):
d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_TRUSTED_UNDEFINED");d.includes("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_NOT_TRUSTED")&&(c=0);wA("ISDSTAT",c);Uya(c,"i.s_",{Iea:"sk",metadata:b,states:d});return c};
Wya=function(a,b){var c=[];b?!0===b.isTrusted?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):!1===b.isTrusted?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");Uya(0,"a.s_",{metadata:a,states:c},!1);wA("ASDSTAT",0)};
Uya=function(a,b,c,d){d=void 0===d?!0:d;var e,f,h={detected:0===a,source:""+b+(null!=(e=c.Iea)?e:"")+(null!=(f=c.U6)?f:""),detectionStates:c.states,durationMs:c.T6};c.metadata&&(h.contentCpn=c.metadata.contentCpn,h.adCpn=c.metadata.adCpn);g.iC("biscottiBasedDetection",h);d&&(a=Sya(a),b=Tya(b),wA("CATSTAT",Number(g.xA("CATSTAT",0))&~(3<<b)|a<<b))};
Xya=function(a){return a?"layout:  "+a.layoutType:""};
JF=function(a,b,c){return a?!0:(g.BE(new g.XB("Assertion: "+b,c)),!1)};
KF=function(a,b,c,d,e){d=void 0===d?{}:d;if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.XB(a);if(a.args)for(var f=g.u(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign({},h,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot:  "+b.slotType:"");c&&(d.layout=Xya(c));e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.BE(a)}};
g.LF=function(a,b){this.state=a;this.oB=b};
NF=function(a,b){return g.MF(a.state,b)&&!g.MF(a.oB,b)?1:!g.MF(a.state,b)&&g.MF(a.oB,b)?-1:0};
g.OF=function(a,b){return 0<NF(a,b)};
PF=function(a,b,c,d,e,f){CF.call(this,a,{I:"div",S:"ytp-ad-skip-button-slot"},"skip-button",b,c,d,e);var h=this;this.ra=null;this.Ga=!1;this.Wa=f;this.G=this.api.U().experiments.fb("enable_modern_skip_button_on_web");this.bb=!1;this.D=new g.bF({I:"span",Ka:["ytp-ad-skip-button-container"]});this.G&&this.D.element.classList.add("ytp-ad-skip-button-container-detached");g.N(this,this.D);this.D.Ja(this.element);this.B=this.C=null;this.gb=new g.FF(this.D,500,!1,100,function(){return h.hide()});
g.N(this,this.gb);this.Ma=new IF(this.D.element,15E3,5E3,.5,.5,this.G);g.N(this,this.Ma);this.hide()};
Zya=function(a){a=a.ra&&a.ra.adRendererCommands;return(a&&a.clickCommand&&g.V(a.clickCommand,g.QF)&&g.V(a.clickCommand,g.QF).commands||[]).some(function(b){return b.adLifecycleCommand?Yya(b.adLifecycleCommand):!1})};
Yya=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
RF=function(a,b,c,d,e,f){CF.call(this,a,{I:"div",S:"ytp-ad-skip-ad-slot"},"skip-ad",b,c,d,e);this.ra=f;this.D=!1;this.G=0;this.C=this.B=null;this.hide()};
$ya=function(a,b){a.D||(a.D=!0,a.B&&(b?a.B.Ga.hide():a.B.hide()),b?(a=a.C,a.gb.show(),a.show()):a.C.show())};
aza=function(a,b,c,d){nF.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
SF=function(a,b,c,d,e,f){cF.call(this,a,{I:"span",S:"ytp-ad-simple-ad-badge"},"simple-ad-badge",b,c,d);this.B=e;this.C=f;this.j=this.Fa("ytp-ad-simple-ad-badge");this.hide()};
TF=function(a,b,c,d,e){e=void 0===e?!1:e;TE.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.interactionLoggingClientData=d;this.dM=e};
UF=function(a,b){g.UE.call(this);this.api=a;this.durationMs=b;this.j=null;this.Ed=new KB(this);g.N(this,this.Ed);this.B=bza;this.Ed.T(this.api,"presentingplayerstatechange",this.O5);this.j=this.Ed.T(this.api,"onAdPlaybackProgress",this.Sc)};
VF=function(a){g.UE.call(this);this.j=!1;this.ij=0;this.Ed=new KB(this);g.N(this,this.Ed);this.durationMs=a;this.Ve=new g.ng(100);g.N(this,this.Ve);this.Ed.T(this.Ve,"tick",this.Sc);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.WF=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.XF=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)};
YF=function(a,b,c,d,e,f){CF.call(this,a,{I:"span",S:"ytp-ad-duration-remaining"},"ad-duration-remaining",b,c,d,e);this.videoAdDurationSeconds=f;this.B=null;this.hide()};
cza=function(a,b,c,d){BF.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
ZF=function(a,b){this.B=a;this.j=b};
dza=function(a,b){return a.B+b*(a.j-a.B)};
$F=function(a,b,c){return a.j-a.B?g.ze((b-a.B)/(a.j-a.B),0,1):null!=c?c:Infinity};
aG=function(a,b){g.bF.call(this,{I:"div",S:"ytp-ad-persistent-progress-bar-container",V:[{I:"div",S:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.B=b;g.N(this,this.B);this.progressBar=this.Fa("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
bG=function(a,b,c,d,e,f){cF.call(this,a,{I:"div",S:"ytp-ad-player-overlay",V:[{I:"div",S:"ytp-ad-player-overlay-flyout-cta"},{I:"div",S:"ytp-ad-player-overlay-instream-info"},{I:"div",S:"ytp-ad-player-overlay-skip-or-preview"},{I:"div",S:"ytp-ad-player-overlay-progress-bar"},{I:"div",S:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",b,c,d);this.Y=f;this.C=this.Fa("ytp-ad-player-overlay-flyout-cta");this.api.U().L("web_rounded_thumbnails")&&this.C.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");
this.j=this.Fa("ytp-ad-player-overlay-instream-info");this.D=null;eza(this)&&(a=xf("div"),g.Qv(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.j,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new cza(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),c.Ja(a),c.init(SE("ad-title"),{text:b.title},this.macros),g.N(this,c)),this.D=a);this.G=this.Fa("ytp-ad-player-overlay-skip-or-preview");this.Ga=this.Fa("ytp-ad-player-overlay-progress-bar");
this.ra=this.Fa("ytp-ad-player-overlay-instream-user-sentiment");this.B=e;g.N(this,this.B);this.hide()};
eza=function(a){a=a.api.U();return g.cG(a)&&a.B};
fza=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.to("/sharing_services",a);g.qD(d)};
g.dG=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)};
eG=function(a){this.j=new lw(a)};
gza=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return("WEB"===g.xA("INNERTUBE_CLIENT_NAME")||"WEB_CREATOR"===g.xA("INNERTUBE_CLIENT_NAME"))&&a};
fG=function(a){if(g.xA("LOGGED_IN",!0)&&gza()){var b=g.xA("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.wn(window.location.href);c&&b.push(c);c=g.wn(a);g.Fb(b,c)||!c&&ec(a,"/")?(b=xn(a),(b=Afa(b))?(b=Zwa(b),b=(b=g.eB(b)||null)?FA(b):{}):b=null):b=null;null==b&&(b={});c=b;var d=void 0;gza()?(d||(d=g.xA("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&Ywa(a,b)}};
g.hza=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;a=g.to(a,b);fG(a);c=g.je(a+c);d=d.location;c=ne(c);void 0!==c&&(d.href=c)};
g.iza=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.xA("EVENT_ID");d&&(b.ei||(b.ei=d));b&&Ywa(a,b);c||(fG(a),g.hza(a))};
g.gG=function(a,b,c,d,e){e=void 0===e?!1:e;c&&Ywa(a,c);c=g.je(a);var f=g.de(c);a!=f&&CA(Error("Unsafe window.open URL: "+a));a=f;b=b||cf(a).toString(36);try{var h=FA(a);if(g.TA("replace_client_url_parsing_with_server_signal")){if(e){jza(a,b);return}}else if("2"===(null==h?void 0:h.ase)){jza(a,b);return}}catch(l){g.AA(l)}fG(a);g.Qe(c,b,d)};
jza=function(a,b){a=Iua(a);fG(a);g.Qe(a,b,"attributionsrc")};
lza=function(a){kza=a&&a.data};
nza=function(a){mza=a&&a.data};
pza=function(a){oza=a&&a.data};
rza=function(){qza=oza=mza=kza=null};
tza=function(){var a=void 0===a?window.location.href:a;if(g.TA("kevlar_disable_theme_param"))return null;tn(g.vn(5,a));try{var b=g.GA(a).theme;return sza.get(b)||null}catch(c){}return null};
hG=function(){this.j={};if(this.B=Rqa()){var a=g.eB("CONSISTENCY");a&&uza(this,{encryptedTokenJarContents:a})}};
uza=function(a,b){if(b.encryptedTokenJarContents&&(a.j[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.j[b.encryptedTokenJarContents]},1E3*c);
a.B&&g.dB("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
iG=function(){this.B=-1;var a=g.xA("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.xA("INNERTUBE_CLIENT_NAME")&&(this.localStorage=vza(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
vza=function(a){return void 0===a.localStorage?new gC("yt-client-location"):a.localStorage};
g.jG=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.xA("INNERTUBE_CONTEXT");if(!d)return g.AE(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.kd(d);g.TA("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&"AUTOMOTIVE_FORM_FACTOR"!==e.clientFormFactor&&(e.clientFormFactor=g.xA("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.UB();var h="USER_INTERFACE_THEME_LIGHT";g.VB(0,165)?h="USER_INTERFACE_THEME_DARK":g.VB(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.TA("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:tza()||h;e.userInterfaceTheme=f;if(!b){if(f=gsa())e.connectionType=f;g.TA("web_log_effective_connection_type")&&(f=isa())&&(d.client.effectiveConnectionType=f)}var l;if(g.TA("web_log_memory_total_kbytes")&&(null==(l=g.Ta.navigator)?0:l.deviceMemory)){var m;l=null==(m=g.Ta.navigator)?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+1E6*l}g.TA("web_gcf_hashes_innertube")&&(f=Eta())&&(m=f.coldConfigData,l=f.coldHashData,f=f.hotHashData,d.client.configInfo=d.client.configInfo||
{},m&&(d.client.configInfo.coldConfigData=m),l&&(d.client.configInfo.coldHashData=l),f&&(d.client.configInfo.hotHashData=f));m=g.GA(g.Ta.location.href);!g.TA("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);"MWEB"===e.clientName||"WEB"===e.clientName?(e.mainAppWebInfo={graftUrl:g.Ta.location.href},g.TA("kevlar_woffle")&&Vra.instance&&(m=Vra.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.B?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":
"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=Wra(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&(!g.TA("web_lr_app_quality_killswitch")&&(m=g.xA("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.xA("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.TA("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==
typeof Intl)try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(H){}n=void 0}n&&(e.timeZone=n)}(n=xqa())?e.experimentsToken=n:delete e.experimentsToken;n=yqa();hG.instance||(hG.instance=new hG);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:g.ad(hG.instance.j)});!g.TA("web_prequest_context_killswitch")&&(n=g.xA("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.UB();n=g.VB(0,58);e=e.get("gsml","");d.user=
Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.TA("warm_op_csn_cleanup")?c&&(b=g.xE())&&(d.clientScreenNonce=b):!b&&(b=g.xE())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Xa("yt.mdx.remote.remoteClient_"))d.remoteClient=a;iG.getInstance().setLocationOnInnerTubeContext(d);try{var p=MA(),q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var r=g.u(Object.entries(p)),t=r.next();!t.done;t=r.next()){var v=g.u(t.value),
w=v.next().value,A=v.next().value;p=w;q=A;a=void 0;null==(a=d.adSignalsInfo.params)||a.push({key:p,value:""+q})}var C;if(g.TA("add_ifa_to_tvh5_requests")&&"TVHTML5"===(null==(C=d.client)?void 0:C.clientName)){var F=g.xA("INNERTUBE_CONTEXT");F.adSignalsInfo&&(d.adSignalsInfo.advertisingId=F.adSignalsInfo.advertisingId,d.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",d.adSignalsInfo.limitAdTracking=F.adSignalsInfo.limitAdTracking)}}catch(H){g.AE(H)}return d};
yza=function(a,b){if(!a)return!1;var c,d=null==(c=g.V(a,wza))?void 0:c.signal;if(d&&b.Cy)return!!b.Cy[d];var e;if((c=null==(e=g.V(a,xza))?void 0:e.request)&&b.AO)return!!b.AO[c];for(var f in a)if(b.vO[f])return!0;return!1};
zza=function(a){var b={"Content-Type":"application/json"};g.xA("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.xA("EOM_VISITOR_DATA"):g.xA("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.xA("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=g.xA("LOGGED_IN",!1);g.xA("DEBUG_SETTINGS_METADATA")&&(b["X-Debug-Settings-Metadata"]=g.xA("DEBUG_SETTINGS_METADATA"));"cors"!==a&&((a=g.xA("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.xA("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=
a),(a=g.xA("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=g.xA("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
Aza=function(){this.j={}};
kG=function(){this.mappings=new Aza};
lG=function(a){return function(){return new a}};
Cza=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=Bza[b];if(c){c=new RegExp(c);for(var d=g.u(a),e=d.next();!e.done;e=d.next())if(e=e.value,c.exec(e))return e}var f=[];Object.entries(Bza).forEach(function(h){var l=g.u(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)});
c=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length});
d=g.u(a);for(e=d.next();!e.done;e=d.next())if(e=e.value,!c.exec(e))return e;return a[0]};
g.mG=function(a){return"/youtubei/v1/"+Cza(a)};
Dza=function(){};
nG=function(){};
oG=function(){};
pG=function(a){return g.Xa("ytcsi."+(a||"")+"data_")||Eza(a)};
Fza=function(){var a=pG();a.info||(a.info={});return a.info};
qG=function(a){a=pG(a);a.metadata||(a.metadata={});return a.metadata};
rG=function(a){a=pG(a);a.tick||(a.tick={});return a.tick};
sG=function(a){a=pG(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
Gza=function(a){a=sG(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
tG=function(a){var b=pG(a).nonce;b||(b=g.ND(16),pG(a).nonce=b);return b};
Eza=function(a){var b={tick:{},info:{}};g.Ua("ytcsi."+(a||"")+"data_",b);return b};
Hza=function(){var a=g.Xa("ytcsi.debug");a||(a=[],g.Ua("ytcsi.debug",a),g.Ua("ytcsi.reference",{}));return a};
uG=function(a){a=a||"";var b=Iza();if(b[a])return b[a];var c=Hza(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
Jza=function(a){a=a||"";var b=Iza();b[a]&&delete b[a];var c=Hza(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
Iza=function(){var a=g.Xa("ytcsi.reference");if(a)return a;Hza();return g.Xa("ytcsi.reference")};
vG=function(a){return Kza[a]||"LATENCY_ACTION_UNKNOWN"};
Lza=function(a,b){aD.call(this,1,arguments);this.Ve=b};
wG=function(){this.j=0};
xG=function(){wG.instance||(wG.instance=new wG);return wG.instance};
zG=function(a,b){yG[b]=yG[b]||{count:0};var c=yG[b];c.count++;c.time=(0,g.wC)();a.j||(a.j=g.bC(0,function(){var d=(0,g.wC)(),e;for(e in yG)yG[e]&&6E4<d-yG[e].time&&delete yG[e];a&&(a.j=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.XB("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.BE(c)),!0):!1};
Mza=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
Nza=function(){var a;if(g.TA("csi_use_performance_navigation_timing")||g.TA("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=null==AG?void 0:null==(a=AG.getEntriesByType)?void 0:null==(b=a.call(AG,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=BG(e.requestStart),e.responseEnd=BG(e.responseEnd),e.redirectStart=BG(e.redirectStart),e.redirectEnd=BG(e.redirectEnd),e.domainLookupEnd=BG(e.domainLookupEnd),e.connectStart=BG(e.connectStart),
e.connectEnd=BG(e.connectEnd),e.responseStart=BG(e.responseStart),e.secureConnectionStart=BG(e.secureConnectionStart),e.domainLookupStart=BG(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=AG.timing}else a=g.TA("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(AG.timing)):AG.timing;return a};
BG=function(a){return Math.round(CG()+a)};
CG=function(){return(g.TA("csi_use_time_origin")||g.TA("csi_use_time_origin_tvhtml5"))&&AG.timeOrigin?Math.floor(AG.timeOrigin):AG.timing.navigationStart};
EG=function(a,b){DG("_start",a,b)};
UG=function(a,b,c){c=void 0===c?!1:c;if(!g.TA("web_csi_action_sampling_enabled")||!pG(b).actionDisabled)if(g.TA("web_csi_via_jspb")&&!c){c=new iA;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":S(c,1,X[a[e]]);break;case "clientActionNonce":Q(c,2,a[e]);break;case "clientScreenNonce":Q(c,4,a[e]);break;case "loadType":Q(c,3,a[e]);break;case "isPrewarmedLaunch":Uk(c,92,a[e]);break;case "isFirstInstall":Uk(c,55,a[e]);break;case "networkType":S(c,
5,FG[a[e]]);break;case "connectionType":S(c,26,GG[a[e]]);break;case "detailedConnectionType":S(c,27,HG[a[e]]);break;case "isVisible":Uk(c,6,a[e]);break;case "playerType":S(c,7,MG[a[e]]);break;case "clientPlaybackNonce":Q(c,8,a[e]);break;case "adClientPlaybackNonce":Q(c,28,a[e]);break;case "previousCpn":Q(c,77,a[e]);break;case "targetCpn":Q(c,76,a[e]);break;case "isMonetized":Uk(c,9,a[e]);break;case "isPrerollAllowed":Uk(c,16,a[e]);break;case "isPrerollShown":Uk(c,17,a[e]);break;case "adType":Q(c,
12,a[e]);break;case "adTypesAllowed":Q(c,36,a[e]);break;case "adNetworks":Q(c,37,a[e]);break;case "previousAction":S(c,13,X[a[e]]);break;case "isRedSubscriber":Uk(c,14,a[e]);break;case "serverTimeMs":Vk(c,15,a[e]);break;case "videoId":c.setVideoId(a[e]);break;case "adVideoId":Q(c,20,a[e]);break;case "targetVideoId":Q(c,78,a[e]);break;case "adBreakType":S(c,21,NG[a[e]]);break;case "isNavigation":Uk(c,25,a[e]);break;case "viewportHeight":Vk(c,29,a[e]);break;case "viewportWidth":Vk(c,30,a[e]);break;
case "screenHeight":Vk(c,84,a[e]);break;case "screenWidth":Vk(c,85,a[e]);break;case "browseId":Q(c,31,a[e]);break;case "isCacheHit":Uk(c,32,a[e]);break;case "isSsdai":Uk(c,125,a[e]);break;case "httpProtocol":Q(c,33,a[e]);break;case "transportProtocol":Q(c,34,a[e]);break;case "searchQuery":Q(c,41,a[e]);break;case "isContinuation":Uk(c,42,a[e]);break;case "availableProcessors":Vk(c,43,a[e]);break;case "sdk":Q(c,44,a[e]);break;case "isLocalStream":Uk(c,45,a[e]);break;case "navigationRequestedSameUrl":Uk(c,
64,a[e]);break;case "shellStartupDurationMs":Vk(c,70,a[e]);break;case "appInstallDataAgeMs":Vk(c,73,a[e]);break;case "latencyActionError":S(c,71,OG[a[e]]);break;case "actionStep":Vk(c,79,a[e]);break;case "jsHeapSizeLimit":Xk(c,80,a[e]);break;case "totalJsHeapSize":Xk(c,81,a[e]);break;case "usedJsHeapSize":Xk(c,82,a[e]);break;case "sourceVideoDurationMs":Xk(c,90,a[e]);break;case "videoOutputFrames":Xk(c,93,a[e]);break;case "isResume":Uk(c,104,a[e]);break;case "debugTicksExcluded":Uk(c,105,a[e]);break;
case "abandonedPing":Uk(c,113,a[e]);break;case "retries":Vk(c,123,a[e]);break;case "adPrebufferedTimeSecs":Vk(c,39,a[e]);break;case "isLivestream":Uk(c,47,a[e]);break;case "liveStreamMode":S(c,91,PG[a[e]]);break;case "adCpn2":Q(c,48,a[e]);break;case "adDaiDriftMillis":Xk(c,49,a[e]);break;case "videoStreamType":S(c,53,QG[a[e]]);break;case "playbackRequiresTap":Uk(c,56,a[e]);break;case "performanceNavigationTiming":Uk(c,67,a[e]);break;case "transactionType":S(c,74,RG[a[e]]);break;case "playerRotationType":S(c,
101,SG[a[e]]);break;case "allowedPreroll":Uk(c,10,a[e]);break;case "shownPreroll":Uk(c,11,a[e]);break;case "getHomeRequestId":Q(c,57,a[e]);break;case "getSearchRequestId":Q(c,60,a[e]);break;case "getPlayerRequestId":Q(c,61,a[e]);break;case "getWatchNextRequestId":Q(c,62,a[e]);break;case "getBrowseRequestId":Q(c,63,a[e]);break;case "getLibraryRequestId":Q(c,66,a[e]);break;case "isTransformerEnabledForFeature":Uk(c,106,a[e]);break;case "sourceVideoFrameCount":Xk(c,109,a[e]);break;default:Oza.includes(f)&&
g.AA(new g.XB("Codegen laipb translator asked to translate message field",""+f))}}catch(h){g.AA(Error("Codegen laipb translator failed to set "+f))}}TG(c,b)}else c=uG(b||""),ID(c.info,a),a.loadType&&(c=a.loadType,qG(b).loadType=c),ID(Gza(b),a),c=tG(b),b=pG(b).cttAuthInfo,xG().info(a,c,b)};
TG=function(a,b){if(!g.TA("web_csi_action_sampling_enabled")||!pG(b).actionDisabled){var c=Sk(a,3);c&&(qG(b).loadType=c);uG(b||"").jspbInfo.push(a);c=tG(b);b=pG(b).cttAuthInfo;xG().jspbInfo(a,c,b)}};
Pza=function(){var a,b,c,d;return(null!=(d=null==VD().resolve(new SD(XC))?void 0:null==(a=YC())?void 0:null==(b=a.loggingHotConfig)?void 0:null==(c=b.csiConfig)?void 0:c.debugTicks)?d:[]).map(function(e){return Object.values(e)[0]})};
DG=function(a,b,c){if(!g.TA("web_csi_action_sampling_enabled")||!pG(c).actionDisabled){var d=tG(c),e;if(e=g.TA("web_csi_debug_sample_enabled")&&d){(null==VD().resolve(new SD(XC))?0:YC())&&!Qza&&(Qza=!0,DG("gcfl",(0,g.wC)(),c));var f,h,l;e=(null==VD().resolve(new SD(XC))?void 0:null==(f=YC())?void 0:null==(h=f.loggingHotConfig)?void 0:null==(l=h.csiConfig)?void 0:l.debugSampleWeight)||0;if(f=0!==e)b:{f=Pza();if(0<f.length)for(h=0;h<f.length;h++)if(a===f[h]){f=!0;break b}f=!1}f?(e=0!==zxa(d)%e,pG(c).debugTicksExcludedLogged||
(g.TA("web_csi_via_jspb")?(f=new iA,f=Uk(f,105,e),TG(f,c)):(f={},f.debugTicksExcluded=e,UG(f,c))),pG(c).debugTicksExcludedLogged=!0):e=!1}if(!e){if("_"!==a[0]&&(e=a,f=b,AG.mark))if(e.startsWith("mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),void 0===f||g.TA("web_csi_disable_alt_time_performance_mark"))AG.mark(e);else{f-=AG.timeOrigin||AG.timing.navigationStart;try{AG.mark(e,{startTime:f})}catch(m){}}e=uG(c||"");e.tick[a]=b||(0,g.wC)();if(e.callback&&e.callback[a])for(e=g.u(e.callback[a]),f=e.next();!f.done;f=
e.next())f=f.value,f();e=sG(c);e.gelTicks&&(e.gelTicks[a]=!0);f=rG(c);e=b||(0,g.wC)();g.TA("log_repeated_ytcsi_ticks")?a in f||(f[a]=e):f[a]=e;f=pG(c).cttAuthInfo;"_start"===a?(a=xG(),zG(a,"baseline_"+d)||(b={timestamp:b,cttAuthInfo:f},g.TA("web_csi_via_jspb")?(a=new Qpa,Q(a,1,d),d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA,Jk(d,Qpa,6,tE,a),sE("latencyActionBaselined",d,b)):g.iC("latencyActionBaselined",{clientActionNonce:d},b))):xG().tick(a,d,b,f);Rza(c);return e}}};
Sza=function(){var a,b=null==(a=AG.getEntriesByType)?void 0:a.call(AG,"mark");b&&b.forEach(function(c){if(c.name.startsWith("mark_")){var d;null==(d=AG.clearMarks)||d.call(AG,c.name)}})};
Tza=function(){switch(xra()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
Wza=function(a){var b=Nza(),c=CG(),d=g.xA("CSI_START_TIMESTAMP_MILLIS",0);0<d&&!g.TA("embeds_web_enable_csi_start_override_killswitch")&&(c=d);c&&(DG("srt",b.responseStart),1!==a.prerender&&EG(c));a=Uza();0<a&&DG("fpt",a);a=Nza();a.isPerformanceNavigationTiming&&UG({performanceNavigationTiming:!0},void 0);DG("nreqs",a.requestStart,void 0);DG("nress",a.responseStart,void 0);DG("nrese",a.responseEnd,void 0);0<a.redirectEnd-a.redirectStart&&(DG("nrs",a.redirectStart,void 0),DG("nre",a.redirectEnd,void 0));
0<a.domainLookupEnd-a.domainLookupStart&&(DG("ndnss",a.domainLookupStart,void 0),DG("ndnse",a.domainLookupEnd,void 0));0<a.connectEnd-a.connectStart&&(DG("ntcps",a.connectStart,void 0),DG("ntcpe",a.connectEnd,void 0));a.secureConnectionStart>=CG()&&0<a.connectEnd-a.secureConnectionStart&&(DG("nstcps",a.secureConnectionStart,void 0),DG("ntcpe",a.connectEnd,void 0));AG&&"getEntriesByType"in AG&&Vza()};
Xza=function(a){function b(f,h,l){h=h.match("_rid")?h.split("_rid")[0]:h;"number"===typeof l&&(l=JSON.stringify(l));f.requestIds?f.requestIds.push({endpoint:h,id:l}):f.requestIds=[{endpoint:h,id:l}]}
var c={};a=g.u(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":b(c,d,e);break;case "GetGuide_rid":b(c,d,e);break;case "GetHome_rid":b(c,d,e);break;case "GetPlayer_rid":b(c,d,e);break;case "GetSearch_rid":b(c,d,e);break;case "GetSettings_rid":b(c,d,e);break;case "GetTrending_rid":b(c,d,e);break;case "GetWatchNext_rid":b(c,d,e);break;case "yt_red":c.isRedSubscriber=!!e;break;case "yt_ad":c.isMonetized=!!e}}return c};
Yza=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);Re(window)&&a.setAttribute("nonce",Re(window));return c?(a=AG.getEntriesByName(c))&&a[0]&&(a=a[0],c=CG(),DG("rsf_"+b,c+Math.round(a.fetchStart)),DG("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
$za=function(){var a=[];if(document.querySelector&&AG&&AG.getEntriesByName)for(var b in Zza)if(Zza.hasOwnProperty(b)){var c=Zza[b];Yza(b,c)&&a.push(c)}return a};
Vza=function(){var a=window.location.protocol,b=AG.getEntriesByType("resource");b=g.Ot(b,function(c){return 0===c.name.indexOf(a+"//fonts.gstatic.com/s/")});
(b=bs(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(DG("wffs",BG(b.startTime)),DG("wffe",BG(b.responseEnd)))};
aAa=function(a,b,c){AG&&AG.measure&&(a.startsWith("measure_")||(a="measure_"+a),c?AG.measure(a,b,c):b?AG.measure(a,b):AG.measure(a))};
bAa=function(a){var b=VG("aft",a);if(b)return b;b=g.xA((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d<c;d++){var e=VG(b[d],a);if(e)return e}return NaN};
cAa=function(a,b){g.Ua("ytglobal.timing"+(b||"")+"ready_",a)};
VG=function(a,b){if(a=rG(b)[a])return"number"===typeof a?a:a[a.length-1]};
Rza=function(a){var b=VG("_start",a),c=bAa(a),d=g.TA("enable_cow_info_csi")||!dAa;b&&c&&d&&(cD(eAa,new Lza(Math.round(c-b),a)),dAa=!0)};
Uza=function(){if(AG.getEntriesByType){var a=AG.getEntriesByType("paint");if(a=g.Db(a,function(b){return"first-paint"===b.name}))return BG(a.startTime)}a=AG.timing;
return a.R$?Math.max(0,a.R$):0};
WG=function(a){Eza(a);fAa();Sza();a||(g.xA("TIMING_ACTION")&&wA("PREVIOUS_ACTION",g.xA("TIMING_ACTION")),wA("TIMING_ACTION",""))};
gAa=function(){var a=["pbs","pbu"];g.BA(function(){uG("").info.actionType="watch";a&&wA("TIMING_AFT_KEYS",a);wA("TIMING_ACTION","watch");if(g.TA("web_csi_via_jspb")){var b=g.xA("TIMING_INFO",{}),c=new iA;b=g.u(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":jA(c,gA(fA(d),String(e)));break;case "GetGuide_rid":jA(c,gA(fA(d),String(e)));break;case "GetHome_rid":jA(c,gA(fA(d),String(e)));break;case "GetPlayer_rid":jA(c,
gA(fA(d),String(e)));break;case "GetSearch_rid":jA(c,gA(fA(d),String(e)));break;case "GetSettings_rid":jA(c,gA(fA(d),String(e)));break;case "GetTrending_rid":jA(c,gA(fA(d),String(e)));break;case "GetWatchNext_rid":jA(c,gA(fA(d),String(e)));break;case "yt_red":Uk(c,14,!!e);break;case "yt_ad":Uk(c,9,!!e)}}TG(c);c=new iA;c=Uk(c,25,!0);c=S(c,1,X[vG(g.xA("TIMING_ACTION"))]);(b=g.xA("PREVIOUS_ACTION"))&&S(c,13,X[vG(b)]);(b=g.xA("CLIENT_PROTOCOL"))&&Q(c,33,b);(b=g.xA("CLIENT_TRANSPORT"))&&Q(c,34,b);(b=g.xE())&&
"UNDEFINED_CSN"!==b&&Q(c,4,b);b=Tza();1!==b&&-1!==b||Uk(c,6,!0);b=Fza();(d="cold"===qG().loadType)||(d="cold"===b.yt_lt);if(d&&(Q(c,3,"cold"),Wza(b),b=$za(),0<b.length))for(b=g.u(b),d=b.next();!d.done;d=b.next())d=d.value,e=new Rpa,Q(e,1,d),Lk(c,83,Rpa,e);TG(c)}else{c=Xza(g.xA("TIMING_INFO",{}));0<Object.keys(c).length&&UG(c);c={isNavigation:!0,actionType:vG(g.xA("TIMING_ACTION"))};if(b=g.xA("PREVIOUS_ACTION"))c.previousAction=vG(b);if(b=g.xA("CLIENT_PROTOCOL"))c.httpProtocol=b;if(b=g.xA("CLIENT_TRANSPORT"))c.transportProtocol=
b;(b=g.xE())&&"UNDEFINED_CSN"!==b&&(c.clientScreenNonce=b);b=Tza();if(1===b||-1===b)c.isVisible=!0;b="cold"===qG().loadType;d=Fza();b||(b="cold"===d.yt_lt);if(b&&(c.loadType="cold",Wza(Fza()),b=$za(),0<b.length))for(c.resourceInfo=[],b=g.u(b),d=b.next();!d.done;d=b.next())c.resourceInfo.push({resourceCache:d.value});UG(c)}c=sG();c.preLoggedGelInfos||(c.preLoggedGelInfos=[]);b=c.preLoggedGelInfos;c=Gza();d=void 0;for(e=0;e<b.length;e++){var f=b[e];if(f.loadType){d=f.loadType;break}}if("cold"===qG().loadType&&
("cold"===c.loadType||"cold"===d)){d=rG();e=sG();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var h in d)if(!(h in e))if("number"===typeof d[h])DG(h,VG(h));else if(g.TA("log_repeated_ytcsi_ticks")){f=g.u(d[h]);for(var l=f.next();!l.done;l=f.next())DG(h.slice(1),l.value)}h={};d=!1;b=g.u(b);for(e=b.next();!e.done;e=b.next())d=e.value,ID(c,d),ID(h,d),d=!0;d&&UG(h)}cAa(!0);h=g.xA("TIMING_ACTION");g.Xa("ytglobal.timingready_")&&h&&XG()&&bAa()&&Rza()})()};
hAa=function(){var a=void 0===a?{}:a;g.BA(function(){XG()&&YG("aa",void 0,void 0);Jza();WG();cAa(!1);a.cttAuthInfo&&(pG().cttAuthInfo=a.cttAuthInfo);wA("TIMING_AFT_KEYS",[]);a.yqb?g.ZG({loadType:"hot"}):g.ZG({loadType:"warm"});wA("TIMING_ACTION","");delete g.xA("TIMING_INFO",{}).yt_lt;g.BA(EG)(a.startTime,void 0)})()};
$G=function(a,b){b=void 0===b?{}:b;g.BA(function(){iAa(a);var c=b.sampleRate;if(!g.TA("web_csi_action_sampling_enabled")||void 0===c||1>=c)c=!1;else{var d=tG(a);c=0!==zxa(d)%c}c&&(pG(a).actionDisabled=!0);uG(a||"").info.actionType=a;b.cttAuthInfo&&(pG(a).cttAuthInfo=b.cttAuthInfo);wA(a+"TIMING_ACTION",a);g.BA(EG)(b.startTime,a);c={actionType:vG(a)};b.Gqb&&(c.previousAction=vG(g.xA("TIMING_ACTION")));(d=g.xE())&&"UNDEFINED_CSN"!==d&&(c.clientScreenNonce=d);g.ZG(c,a);cAa(!0,a)})()};
iAa=function(a){g.BA(function(){XG(a)&&YG("aa",void 0,a);Jza(a);WG(a)})()};
XG=function(a){return g.BA(function(){return aH("_start",a)})()};
g.ZG=function(a,b,c){g.BA(UG)(a,b,void 0===c?!1:c)};
YG=function(a,b,c){return g.BA(DG)(a,b,c)};
jAa=function(a){g.BA(aAa)("action_finished",a,void 0)};
aH=function(a,b){return g.BA(function(){var c=rG(b);return a in c})()};
lAa=function(a){if(!g.TA("universal_csi_network_ticks"))return"";a=tn(g.vn(5,a))||"";for(var b=Object.keys(kAa),c=0;c<b.length;c++){var d=b[c];if(a.includes(d))return d}return""};
oAa=function(a){if(!g.TA("universal_csi_network_ticks"))return function(){};
var b=kAa[a];return b?(mAa(b),function(){var c=g.TA("universal_csi_network_ticks")?(c=nAa[a])?mAa(c):!1:!1;return c}):function(){}};
mAa=function(a,b){return g.BA(function(){if(aH(a,b))return!1;YG(a,void 0,b);return!0})()};
bH=function(a,b,c){g.BA(function(){if(!XG(c)||aH(a,c))return!1;YG(a,b,c);return!0})()};
pAa=function(){g.BA(function(){var a=tG();requestAnimationFrame(function(){setTimeout(function(){a===tG()&&YG("ftl",void 0,void 0)},0)})})()};
cH=function(a,b,c,d){this.SO=a;this.jh=b;this.j=c;this.D=d;this.C=void 0;this.B=new Map;a.Cy||(a.Cy={});a.Cy=Object.assign({},qAa,a.Cy)};
rAa=function(a,b,c,d){if(void 0!==cH.instance){if(d=cH.instance,a=[a!==d.SO,b!==d.jh,c!==d.j,!1,!1,!1,void 0!==d.C],a.some(function(e){return e}))throw new g.XB("InnerTubeTransportService is already initialized",a);
}else cH.instance=new cH(a,b,c,d)};
dH=function(a,b,c){var d=void 0===d?$C:d;var e=sAa(a,b);return e?new g.fg(function(f,h){var l,m,n,p,q;return g.G(function(r){switch(r.j){case 1:return g.z(r,e,2);case 2:l=r.B;m=l.G(b,c,d);if(!m){h(new g.XB("Error: Failed to build request for command.",b));r.Ia(0);break}fG(m.input);p="cors"===(null==(n=m.Uu)?void 0:n.mode)?"cors":void 0;if(a.j.d2){q=tAa(a,m.config,p);r.Ia(4);break}return g.z(r,uAa(a,m.config,p),5);case 5:q=r.B;case 4:f(vAa(a,m,q)),g.Aa(r)}})}):ig(new g.XB("Error: No request builder found for command.",
b))};
g.eH=function(a,b,c,d,e){function f(){}
e=void 0===e?{hw:{identity:$C}}:e;var h=void 0===h?!0:h;f=oAa(lAa(c));b.context||(b.context=g.jG(d,h));return new g.fg(function(l){var m,n,p,q,r,t,v,w,A,C;return g.G(function(F){switch(F.j){case 1:m=Sqa(c);n=JA(m)?"same-origin":"cors";if(a.j.d2){p=tAa(a,e,n);F.Ia(2);break}return g.z(F,uAa(a,e,n),3);case 3:p=F.B;case 2:if(!g.TA("owl_pl_await")){F.Ia(4);break}r=!(null==(q=b)||!q.playbackContext);v=null==(t=b)?void 0:t.videoId;if(!r||!v){F.Ia(4);break}w=g.Xa("yt.jnn.mod");if(!w){g.AE(Error("owl_pl not found"));
F.Ia(4);break}if(w.isr()){F.Ia(7);break}return g.z(F,w.rea(),7);case 7:w.mawst(v);case 4:var H=p;A=Tqa(Sqa(c),H);C={input:A,Uu:Uqa(A),Vp:b,config:e};l(vAa(a,C,p,f));g.Aa(F)}})})};
xAa=function(a,b,c){var d;if(b&&!(null==b?0:null==(d=b.sequenceMetaData)?0:d.skipProcessing)&&a.D){d=g.u(wAa);for(var e=d.next();!e.done;e=d.next())e=e.value,a.D[e]&&a.D[e].handleResponse(b,c)}};
vAa=function(a,b,c,d){d=void 0===d?function(){}:d;
var e,f,h,l,m,n,p,q,r,t,v,w,A,C,F,H,M,L,R,ba,ma,na,ia,sa,aa,U,Ka,x,ca;return g.G(function(Ma){switch(Ma.j){case 1:Ma.Ia(2);break;case 3:if((e=Ma.B)&&!e.isExpired())return Ma.return(Promise.resolve(e.j()));case 2:if(!(null==(f=b)?0:null==(h=f.Vp)?0:h.context)){Ma.Ia(4);break}l=b.Vp.context;Ma.Ia(5);break;case 5:m=g.u([]),n=m.next();case 7:if(n.done){Ma.Ia(4);break}p=n.value;return g.z(Ma,p.mrb(l),8);case 8:n=m.next();Ma.Ia(7);break;case 4:if(null==(q=a.C)||!q.Frb(b.input,b.Vp)){Ma.Ia(11);break}return g.z(Ma,
a.C.Eqb(b.input,b.Vp),12);case 12:return r=Ma.B,g.TA("kevlar_process_local_innertube_responses_killswitch")||xAa(a,r,b),Ma.return(r);case 11:return(w=null==(v=b.config)?void 0:v.dj)&&a.B.has(w)?t=a.B.get(w):(A=JSON.stringify(b.Vp),H=null!=(F=null==(C=b.Uu)?void 0:C.headers)?F:{},b.Uu=Object.assign({},b.Uu,{headers:Object.assign({},H,c)}),M=Object.assign({},b.Uu),"POST"===b.Uu.method&&(M=Object.assign({},M,{body:A})),(null==(L=b.config)?0:L.wda)&&YG(b.config.wda),R=function(){return a.jh.fetch(b.input,
M,b.config)},t=R(),w&&a.B.set(w,t)),g.z(Ma,t,13);
case 13:if((ba=Ma.B)&&"error"in ba&&(null==(ma=ba)?0:null==(na=ma.error)?0:na.details))for(ia=ba.error.details,sa=g.u(ia),aa=sa.next();!aa.done;aa=sa.next())U=aa.value,(Ka=U["@type"])&&-1<yAa.indexOf(Ka)&&(delete U["@type"],ba=U);w&&a.B.has(w)&&a.B.delete(w);(null==(x=b.config)?0:x.Ada)&&YG(b.config.Ada);if(ba||null==(ca=a.C)||!ca.Nob(b.input,b.Vp)){Ma.Ia(14);break}return g.z(Ma,a.C.Dqb(b.input,b.Vp),15);case 15:ba=Ma.B;case 14:return xAa(a,ba,b),d(),Ma.return(ba||void 0)}})};
sAa=function(a,b){a:{a=a.SO;var c,d=null==(c=g.V(b,wza))?void 0:c.signal;if(d&&a.Cy&&(c=a.Cy[d])){var e=c();break a}var f;if((c=null==(f=g.V(b,xza))?void 0:f.request)&&a.AO&&(f=a.AO[c])){e=f();break a}for(e in b)if(a.vO[e]&&(b=a.vO[e])){e=b();break a}e=void 0}if(void 0!==e)return Promise.resolve(e)};
uAa=function(a,b,c){var d,e,f,h,l,m,n;return g.G(function(p){if(1==p.j){f=(null==(d=b)?void 0:null==(e=d.hw)?void 0:e.identity)||$C;m=null==(h=b)?void 0:null==(l=h.hw)?void 0:l.sessionIndex;var q=hg(a.j.AE(f,{sessionIndex:m}));return g.z(p,q,2)}n=p.B;return p.return(Promise.resolve(Object.assign({},zza(c),n)))})};
tAa=function(a,b,c){var d,e=(null==b?void 0:null==(d=b.hw)?void 0:d.identity)||$C,f;b=null==b?void 0:null==(f=b.hw)?void 0:f.sessionIndex;a=a.j.AE(e,{sessionIndex:b});return Object.assign({},zza(c),a)};
fH=function(){};
gH=function(){};
hH=function(){};
iH=function(){};
jH=function(){};
kH=function(){};
g.lH=function(a,b){var c=g.Ia.apply(2,arguments);a=void 0===a?0:a;g.XB.call(this,b,c);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)};
mH=function(a){this.j=a};
zAa=function(a,b,c){if(a.j){var d=tn(g.vn(5,wo(b,"key")))||"/UNKNOWN_PATH";a.j.start(d)}a=c;g.TA("wug_networking_gzip_request")&&(a=mua(c));return new window.Request(b,a)};
g.nH=function(a,b){if(!AAa){var c=VD();kva(c,{xG:BAa,Z2:mH});var d={vO:{feedbackEndpoint:lG(hH),modifyChannelNotificationPreferenceEndpoint:lG(iH),playlistEditEndpoint:lG(jH),subscribeEndpoint:lG(fH),unsubscribeEndpoint:lG(gH),webPlayerShareEntityServiceEndpoint:lG(kH)}},e=iG.getInstance(),f={};e&&(f.client_location=e);void 0===a&&(a=Xra());void 0===b&&(b=c.resolve(BAa));rAa(d,b,a,f);kva(c,{xG:CAa,dU:cH.instance});AAa=c.resolve(CAa)}return AAa};
FAa=function(){if(!g.TA("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.TA("disable_biscotti_fetch_entirely_for_all_web_clients")&&era()){var a=g.xA("PLAYER_VARS",{});if("1"!=g.hd(a,"privembed",!1)&&!ira(a)){var b=function(){DAa=!0;"google_ad_status"in window?wA("DCLKSTAT",1):wA("DCLKSTAT",2)};
try{g.Xua("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}EAa.push(g.Bv.Qi(function(){if(!(DAa||"google_ad_status"in window)){try{if(b){var c=""+g.fb(b),d=Zua[c];d&&g.FD(d)}}catch(e){}DAa=!0;wA("DCLKSTAT",3)}},5E3))}}};
oH=function(){var a=Number(g.xA("DCLKSTAT",0));return isNaN(a)?0:a};
qH=function(a,b,c){this.network=a;this.B=c;this.j=null;b&&(this.j=pH(this,0))};
pH=function(a,b,c){c=void 0===c?0:c;var d,e,f,h,l,m,n,p,q,r,t,v;return g.G(function(w){switch(w.j){case 1:return g.z(w,new Promise(function(A){aC(A,0,b)}),2);
case 2:d={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};if(e=To().j)d.interpreterHash=e;g.Ba(w,3);return g.z(w,GAa(a,d),5);case 5:f=w.B;if(!f)throw Error("Fetching Attestation challenge returned falsy");if(!f.challenge)throw Error("Missing Attestation challenge");h=f.challenge;l=HAa(h);if("c1a"in l&&(!f.bgChallenge||!f.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Ca(w,4);break;case 3:m=g.Da(w);g.BE(m);c++;if(5<=c)return g.BE(Error("Failed to fetch attestation challenge after "+
(c+" attempts; not retrying for 24h."))),IAa(a,864E5),w.return({challenge:"",jr:{},Qq:void 0,bgChallenge:void 0});n=1E3*Math.pow(2,c-1)+1E3*Math.random();return w.return(pH(a,n,c));case 4:p=Number(l.t)||7200;IAa(a,1E3*p);q=void 0;if(!("c1a"in l&&f.bgChallenge)){w.Ia(6);break}r=JAa(f.bgChallenge);g.Ba(w,7);return g.z(w,Xfa(r),9);case 9:g.Ca(w,8);break;case 7:return t=g.Da(w),g.BE(t),w.return({challenge:h,jr:l,Qq:q,bgChallenge:r});case 8:return g.Ba(w,10),q=new Qo({challenge:r,Q0:!0,Mm:"aGIf"}),g.z(w,
q.hT,12);case 12:g.Ca(w,6);break;case 10:v=g.Da(w),g.BE(v),q=void 0;case 6:return w.return({challenge:h,jr:l,Qq:q,bgChallenge:r})}})};
GAa=function(a,b){var c;return g.G(function(d){c=a.B;return!c||c.Gh()?d.return(GAa(a.network,b)):d.return(new Promise(function(e){c.FF("publicytnetworkstatus-online",function(){GAa(a.network,b).then(e)})}))})};
KAa=function(a,b){a.j=b};
HAa=function(a){var b={};a=a.split("&");a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value.split("="),2===c.length&&(b[c[0]]=c[1]);return b};
JAa=function(a){var b=new Oo;if(a.interpreterJavascript){var c=rma(a.interpreterJavascript);c=xe(c).toString();var d=new Mo;Q(d,6,c);Ik(b,Mo,1,d)}else a.interpreterUrl&&(c=ax(a.interpreterUrl),c=g.Zd(c).toString(),d=new No,Q(d,4,c),Ik(b,No,2,d));a.interpreterHash&&$k(b,3,a.interpreterHash);a.program&&$k(b,4,a.program);a.globalName&&$k(b,5,a.globalName);return b};
IAa=function(a,b){pH(a,b).then(function(c){Promise.race([a.j,null]).then(function(d){var e;null==d||null==(e=d.Qq)||e.dispose()}).finally(function(){var d=Promise.resolve(c);
a.j=d})})};
LAa=function(a,b){return new Promise(function(c){g.bC(0,function(){c(b())},a)})};
g.MAa=function(a,b){var c;return g.G(function(d){var e=g.Xa("yt.aba.att");return(c=e?e:void 0!==qH.instance?qH.instance.C.bind(qH.instance):null)?d.return(c("ENGAGEMENT_TYPE_PLAYBACK",a,b)):d.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
g.NAa=function(){var a;return(a=(a=g.Xa("yt.aba.att2"))?a:void 0!==qH.instance?qH.instance.D.bind(qH.instance):null)?a():Promise.resolve(!1)};
PAa=function(a,b){var c=g.Xa("ytDebugData.callbacks");c||(c={},g.Ua("ytDebugData.callbacks",c));if(g.TA("web_dd_iu")||OAa.includes(a))c[a]=b};
RAa=function(a){for(var b="",c=0;c<a.length;c++){var d=a[c];if(0===c)d="M "+d.x.toFixed(1)+","+d.y.toFixed(1);else{var e=QAa(a[c-1],a[c-2],d),f=QAa(d,a[c-1],a[c+1],!0);d=" C "+(e.x.toFixed(1)+","+e.y.toFixed(1)+" "+f.x.toFixed(1)+","+f.y.toFixed(1)+" "+d.x.toFixed(1)+","+d.y.toFixed(1))}b+=d}return b};
QAa=function(a,b,c,d){d=void 0===d?!1:d;b=new SAa(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.B:b.B)}};
SAa=function(a,b){this.B=this.j=0;this.j=b.x-a.x;this.B=b.y-a.y};
TAa=function(a,b,c){if(!b)return 1<=a.length?a[a.length-1]:null;for(var d=g.u(a),e=d.next();!e.done;e=d.next())if(e=e.value,e.width&&e.height&&(c&&e.width>=b||!c&&e.height>=b))return e;for(b=a.length-1;0<=b;b--)if(c&&a[b].width||!c&&a[b].height)return a[b];return a[0]};
UAa=function(){this.state=1;this.Qq=null};
WAa=function(a,b,c,d,e,f){var h=void 0===h?"trayride":h;c?(a.Hc(2),g.Xua(c,function(){if(window[h])VAa(a,d,h,e);else{a.Hc(3);var l=Yua(c),m=document.getElementById(l);m&&(Vua(l),m.parentNode.removeChild(m));g.BE(new g.XB("Unable to load Botguard","from "+c))}},f)):b?(f=g.yf("SCRIPT"),b instanceof we?(f.textContent=xe(b),Ve(f)):f.textContent=b,f.nonce=Re(window),document.head.appendChild(f),document.head.removeChild(f),window[h]?VAa(a,d,h,e):(a.Hc(4),g.BE(new g.XB("Unable to load Botguard from JS")))):
g.BE(new g.XB("Unable to load VM; no url or JS provided"))};
VAa=function(a,b,c,d){a.Hc(5);try{var e=new Qo({program:b,globalName:c,Q0:g.TA("att_web_record_metrics"),Mm:"aGIf"});e.hT.then(function(){a.Hc(6);d&&d(b)});
a.fT(e)}catch(f){a.Hc(7),f instanceof Error&&g.BE(f)}};
XAa=function(){var a=g.Xa("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null};
rH=function(){UAa.apply(this,arguments)};
YAa=function(){};
ZAa=function(a,b,c){for(var d=!1,e=g.u(a.gj.entries()),f=e.next();!f.done;f=e.next())f=g.u(f.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===f.slotType&&"core"===f.Ya&&(d=!0);if(d){a:if(!c){a=g.u(a.gj.entries());for(c=a.next();!c.done;c=a.next())if(d=g.u(c.value),c=d.next().value,d=d.next().value,"SLOT_TYPE_IN_PLAYER"===c.slotType&&"core"===c.Ya){c=d.layoutId;break a}c=void 0}c?b.RP(c):KF("No triggering layout ID available when attempting to mute.")}};
$Aa=function(a,b){this.ll=a;this.Bo=b};
aBa=function(){};
bBa=function(){};
dBa=function(a){g.I.call(this);var b=this;this.hd=a;this.j=new Map;sH(this,"commandExecutorCommand",function(c,d,e){cBa(b,c.commands,d,e)});
sH(this,"clickTrackingParams",function(){})};
eBa=function(a,b){sH(a,b.Cr(),function(c,d,e){b.Tt(c,d,e)})};
sH=function(a,b,c){a.Na();a.j.get(b)&&g.AE(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
cBa=function(a,b,c,d){b=void 0===b?[]:b;a.Na();var e=[],f=[];b=g.u(b);for(var h=b.next();!h.done;h=b.next())h=h.value,g.V(h,fBa)||g.V(h,gBa)?e.push(h):f.push(h);e=g.u(e);for(b=e.next();!b.done;b=e.next())tH(a,b.value,c,d);f=g.u(f);for(e=f.next();!e.done;e=f.next())tH(a,e.value,c,d)};
tH=function(a,b,c,d){a.Na();b.loggingUrls&&hBa(a,"loggingUrls",b.loggingUrls,c,d);b=g.u(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.u(e.value);e=f.next().value;f=f.next().value;"openPopupAction"===e?a.hd.get().Ru("innertubeCommand",{openPopupAction:f}):"confirmDialogEndpoint"===e?a.hd.get().Ru("innertubeCommand",{confirmDialogEndpoint:f}):iBa.hasOwnProperty(e)||hBa(a,e,f,c,d)}};
hBa=function(a,b,c,d,e){if((a=a.j.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.AE(f)}else b=new g.XB("Unhandled field",b),g.BE(b)};
jBa=function(a,b,c){this.df=a;this.j=b;this.Oa=c};
uH=function(a){this.value=a};
vH=function(a){this.value=a};
wH=function(a){this.value=a};
kBa=function(a){this.value=a};
lBa=function(a){this.value=a};
xH=function(a){this.value=a};
yH=function(a){this.value=a};
mBa=function(){uH.apply(this,arguments)};
nBa=function(a){this.value=a};
oBa=function(a){this.value=a};
pBa=function(a){this.value=a};
qBa=function(a){this.value=a};
rBa=function(a){this.value=a};
zH=function(a){this.value=a};
AH=function(a){this.value=a};
BH=function(a){this.value=a};
CH=function(a){this.value=a};
DH=function(a){this.value=a};
EH=function(){uH.apply(this,arguments)};
FH=function(a){this.value=a};
GH=function(a){this.value=a};
HH=function(a){this.value=a};
IH=function(a){this.value=a};
JH=function(a){this.value=a};
sBa=function(a){this.value=a};
tBa=function(a){this.value=a};
KH=function(a){this.value=a};
uBa=function(a){this.value=a};
vBa=function(a){this.value=a};
wBa=function(a){this.value=a};
xBa=function(a){this.value=a};
LH=function(a){this.value=a};
MH=function(a){this.value=a};
NH=function(a){this.value=a};
OH=function(a){this.value=a};
yBa=function(a){this.value=a};
PH=function(a){this.value=a};
QH=function(a){this.value=a};
RH=function(a){this.value=a};
zBa=function(a){this.value=a};
SH=function(a){this.value=a};
TH=function(a){this.value=a};
UH=function(a){this.value=a};
VH=function(a){this.value=a};
WH=function(a){this.value=a};
XH=function(a){this.value=a};
YH=function(a){this.value=a};
ZH=function(a){this.value=a};
$H=function(a){this.value=a};
ABa=function(a){this.value=a};
aI=function(a){this.value=a};
bI=function(a){this.value=a};
cI=function(a){this.value=a};
BBa=function(a){this.value=a};
dI=function(a){this.value=a};
eI=function(a){this.value=a};
fI=function(a){this.value=a};
gI=function(){uH.apply(this,arguments)};
CBa=function(a){this.value=a};
hI=function(){uH.apply(this,arguments)};
iI=function(){uH.apply(this,arguments)};
DBa=function(){uH.apply(this,arguments)};
jI=function(){uH.apply(this,arguments)};
EBa=function(){uH.apply(this,arguments)};
FBa=function(a){this.value=a};
kI=function(a){this.value=a};
GBa=function(a){this.value=a};
lI=function(a){this.value=a};
HBa=function(a){this.value=a};
nI=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.u(b);for(c=b.next();!c.done;c=b.next())if(!mI(a.Ba,c.value))return!1;return!0};
oI=function(){return""};
IBa=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}};
pI=function(a,b,c,d){d=void 0===d?!1:d;xb.call(this,a);this.Tk=c;this.gw=d;this.args=[];b&&this.args.push(b)};
qI=function(a,b,c,d){d=void 0===d?!1:d;xb.call(this,a);this.Tk=c;this.gw=d;this.args=[];b&&this.args.push(b)};
rI=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.j=b};
mI=function(a,b){return a.j.has(b)};
sI=function(a,b){a=a.j.get(b);if(void 0!==a)return a.get()};
tI=function(a){return Array.from(a.j.keys())};
uI=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.u(b);for(c=b.next();!c.done;c=b.next())if(!mI(a.Ba,c.value))return!1;return!0};
KBa=function(a){var b;return(null==(b=JBa.get(a))?void 0:b.Gy)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
MBa=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:LBa.get(b.Ya)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.slotEntryTrigger&&(c.entryTriggerType=b.slotEntryTrigger.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.slotEntryTrigger)c.debugData.slotEntryTriggerData=vI(a);a=b.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];a=g.u(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(vI(d.value));
b=b.slotExpirationTriggers;c.debugData.expirationTriggerData=[];b=g.u(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(vI(a.value))}return c};
NBa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:LBa.get(b.Ya)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
vI=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};
OBa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.$r(d||[],function(e){return MBa(a,e)}),b.debugData=Object.assign({},c&&0<c.length?{associatedSlotId:c}:{},0<d.length?{slots:d}:{}));
return b};
wI=function(a,b){return function(c){return PBa(QBa(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.Ya,b.slotEntryTrigger,b.slotFulfillmentTriggers,b.slotExpirationTriggers,c.layoutId,c.layoutType,c.Ya)}};
PBa=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:MBa(a,{slotId:b,slotType:c,slotPhysicalPosition:d,Ya:e,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:l,Ba:new rI([])}),layoutData:NBa(a,{layoutId:m,layoutType:n,Ya:p,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Db:new Map,Ba:new rI([]),ac:{}})}}};
yI=function(a){this.Aa=a;a=Math.random();var b=this.Aa.get();b=g.xI(b.J.U().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&0<=b&&1>=b?b:0;this.j=a<b};
QBa=function(a){return a.j||a.Aa.get().J.U().L("html5_force_debug_data_for_client_tmp_logs")};
RBa=function(a,b,c,d){g.I.call(this);this.B=b;this.Qb=c;this.Aa=d;this.j=a(this,this,this,this,this);g.N(this,this.j);a=g.u(b);for(b=a.next();!b.done;b=a.next())g.N(this,b.value)};
zI=function(a,b){a.B.add(b)};
AI=function(a,b){a.B.delete(b)};
SBa=function(a,b,c,d){KF(c,b,void 0,void 0,c.gw);c.Tk?a.Qb.Vl(d,c.Tk,b):KF("adsClientErrorMessage is missing.",b);BI(a,b,!0)};
VBa=function(a,b,c){if(CI(a.j,b))if(DI(a.j,b).D=c?"filled":"not_filled",null===c){a.Qb.Rh("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.u(a.B);for(var d=c.next();!d.done;d=c.next())d.value.Lh(b);BI(a,b,!1)}else{a.Qb.Rh("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);a.Qb.Rh("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);var e,f=null!=(e=c.Fy)?e:sI(c.Ba,"metadata_type_sub_layouts");if(f)for(e=g.u(f),f=e.next();!f.done;f=e.next())a.Qb.Rh("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,f.value);
e=g.u(a.B);for(f=e.next();!f.done;f=e.next())f.value.Mh(b);if(CI(a.j,b))if(DI(a.j,b).G)BI(a,b,!1);else{a.Qb.Rh("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{d=a.j;if(!DI(d,b))throw new pI("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!d.oh.yu.get(b.slotType))throw new pI("No LayoutRenderingAdapterFactory registered for slot of type: "+b.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");if(0==c.layoutExitNormalTriggers.length&&
0==c.layoutExitSkipTriggers.length&&0==c.layoutExitMuteTriggers.length&&0==c.layoutExitUserInputSubmittedTriggers.length&&0==c.Uc.length)throw new pI("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");EI(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);EI(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);EI(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);EI(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
c.layoutExitUserInputSubmittedTriggers);EI(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Uc)}catch(n){n instanceof pI?a.kf(b,c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.kf(b,c,new pI("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");BI(a,b,!0);return}DI(a.j,b).K=!0;try{var h=a.j,l=DI(h,b),m=h.oh.yu.get(b.slotType).get().build(h.D,h.B,b,c);m.init();l.layout=c;if(l.C)throw new pI("Already had LayoutRenderingAdapter registered for slot",
void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");l.C=m;FI(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);FI(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);FI(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);FI(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.layoutExitUserInputSubmittedTriggers);FI(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Uc)}catch(n){TBa(a,b);n instanceof pI?a.kf(b,
c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.kf(b,c,new pI("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");BI(a,b,!0);return}a.Qb.Rh("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);d=g.u(a.B);for(h=d.next();!h.done;h=d.next())h.value.kh(b,c);TBa(a,b);UBa(a,b)}else a=a.Aa.get(),g.GI(a.J.U())||HI(a.J.U())||g.II(a.J.U())?a=!0:(KF("Composite VOD on legacy path."),a=!1),a&&KF("slot is unscheduled after been fulfilled.",b,
c)}};
WBa=function(a,b,c){"core"!==b.Ya&&a.Qb.Rh("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c,void 0)};
XBa=function(a,b,c){a.Qb.Rh("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c,void 0);a=g.u(a.B);for(var d=a.next();!d.done;d=a.next())d.value.kh(b,c)};
YBa=function(a,b,c){a=g.u(a.B);for(var d=a.next();!d.done;d=a.next())d.value.pg(b,c)};
ZBa=function(a,b,c){a.Qb.Rh("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c,void 0);a=g.u(a.B);for(var d=a.next();!d.done;d=a.next())d.value.uc(b,c)};
$Ba=function(a,b,c,d){a.Qb.Rh(KBa(d),b,c,void 0);a=g.u(a.B);for(var e=a.next();!e.done;e=a.next())e.value.yc(b,c,d)};
TBa=function(a,b){if(CI(a.j,b)){DI(a.j,b).K=!1;var c=JI;b=DI(a.j,b);var d=[].concat(g.qa(b.Z));taa(b.Z);c(a,d)}};
JI=function(a,b){b.sort(function(f,h){function l(m){KF("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):IBa(f.category,l)-IBa(h.category,l)});
var c=new Map;b=g.u(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,CI(a.j,d.slot))if(DI(a.j,d.slot).K)DI(a.j,d.slot).Z.push(d);else{a.Qb.mN("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.u(aCa);for(d=b.next();!d.done;d=b.next())e=g.u(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&bCa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&cCa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&dCa(a,
b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&eCa(a,c)};
bCa=function(a,b,c){b=g.u(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&fCa(a.j,d.slot)&&gCa(a,d.slot,d.layout,c)};
cCa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())BI(a,c.value.slot,!1)};
dCa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(DI(a.j,c.slot).D){case "not_filled":var d=!0;break a;default:d=!1}d&&(a.Qb.Pj("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.j.tE(c.slot))}};
eCa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.Qb.Pj("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.u(a.B),e=d.next();!e.done;e=d.next())e.value.Kh(c.slot);try{var f=a.j,h=c.slot,l=DI(f,h);if(!l)throw new qI("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!l.B)throw new qI("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if("scheduled"!==l.j)throw new qI("Tried to enter a slot from stage: "+
l.j,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(KI(l))throw new qI("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var m=g.u(LI(f,h.slotType+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&KI(p))throw new qI("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 qI&&q.Tk?(a.Qb.Vl("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",
q.Tk,c.slot),KF(q,c.slot,MI(a.j,c.slot),void 0,q.gw)):(a.Qb.Vl("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c.slot),KF(q,c.slot));BI(a,c.slot,!0);continue}c=DI(a.j,c.slot);"scheduled"!==c.j&&NI(c.slot,c.j,"enterSlot");c.j="enter_requested";c.B.iJ()}};
UBa=function(a,b){if(CI(a.j,b)&&KI(DI(a.j,b))&&MI(a.j,b)&&!fCa(a.j,b)){var c;a.Qb.Rh("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!=(c=MI(a.j,b))?c:void 0);a=DI(a.j,b);"entered"!==a.j&&NI(a.slot,a.j,"enterLayoutForSlot");a.j="rendering";a.C.startRendering(a.layout)}};
gCa=function(a,b,c,d){if(CI(a.j,b)){var e=a.Qb,f=e.Rh,h;var l=(null==(h=JBa.get(d))?void 0:h.uy)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";f.call(e,l,b,c);a=DI(a.j,b);"rendering"!==a.j&&NI(a.slot,a.j,"exitLayout");a.j="rendering_stop_requested";a.C.kd(c,d)}};
BI=function(a,b,c){if(CI(a.j,b)){a:switch(DI(a.j,b).j){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(DI(a.j,b).j){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(DI(a.j,b).G=!0,!c))return;if(KI(DI(a.j,b)))DI(a.j,b).G=!0,hCa(a,b,c);else{a:switch(DI(a.j,b).D){case "fill_requested":c=!0;break a;default:c=!1}if(c)DI(a.j,b).G=!0,CI(a.j,b)&&(a.Qb.Pj("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=DI(a.j,b),b.D="fill_cancel_requested",b.N.iO());else{c=
MI(a.j,b);(d=a.Aa.get().J.U().experiments.fb("h5_enable_layout_unscheduling_events"))&&(c?a.pg(b,c):KF(Error("Layout is null for LayoutUnscheduled event."),b,c,void 0,!1));a.Qb.Pj("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var e=DI(a.j,b),f=b.slotEntryTrigger,h=e.Ca.get(f.triggerId);h&&(h.Gl(f),e.Ca.delete(f.triggerId));f=g.u(b.slotFulfillmentTriggers);for(h=f.next();!h.done;h=f.next()){h=h.value;var l=e.qa.get(h.triggerId);l&&(l.Gl(h),e.qa.delete(h.triggerId))}f=g.u(b.slotExpirationTriggers);
for(h=f.next();!h.done;h=f.next())if(h=h.value,l=e.Y.get(h.triggerId))l.Gl(h),e.Y.delete(h.triggerId);null!=e.layout&&(f=e.layout,OI(e,f.layoutExitNormalTriggers),OI(e,f.layoutExitSkipTriggers),OI(e,f.layoutExitMuteTriggers),OI(e,f.layoutExitUserInputSubmittedTriggers),OI(e,f.Uc));e.N=void 0;null!=e.B&&(e.B.release(),e.B=void 0);null!=e.C&&(e.C.release(),e.C=void 0);e=a.j;DI(e,b)&&(e=LI(e,b.slotType+"_"+b.slotPhysicalPosition))&&e.delete(b.slotId);a.Qb.Pj("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
b);a=g.u(a.B);for(e=a.next();!e.done;e=a.next())e=e.value,e.Nh(b),c&&!d&&e.pg(b,c)}}}};
hCa=function(a,b,c){if(CI(a.j,b)&&KI(DI(a.j,b))){var d=MI(a.j,b);if(d&&fCa(a.j,b))gCa(a,b,d,c?"error":"abandoned");else{a.Qb.Pj("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=DI(a.j,b);if(!e)throw new qI("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&&NI(e.slot,e.j,"exitSlot");e.j="exit_requested";if(void 0===e.B)throw e.j="scheduled",new qI("Cannot exit slot because adapter is not defined",
void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");e.B.lJ()}catch(f){f instanceof qI&&f.Tk?(a.Qb.Vl("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",f.Tk,b),KF(f,b,void 0,void 0,f.gw)):(a.Qb.Vl("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b),KF(f,b))}}}};
iCa=function(a){this.slot=a;this.Ca=new Map;this.qa=new Map;this.Y=new Map;this.ra=new Map;this.C=this.layout=this.B=this.N=void 0;this.K=this.G=!1;this.Z=[];this.j="not_scheduled";this.D="not_filled"};
KI=function(a){return"enter_requested"===a.j||a.isActive()};
jCa=function(a,b,c,d,e,f){g.I.call(this);this.oh=a;this.C=b;this.G=c;this.D=d;this.B=e;this.Aa=f;this.j=new Map};
LI=function(a,b){return(a=a.j.get(b))?a:new Map};
DI=function(a,b){return LI(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)};
kCa=function(a){var b=[];a.j.forEach(function(c){c=g.u(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
CI=function(a,b){return null!=DI(a,b)};
fCa=function(a,b){a=DI(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};
MI=function(a,b){(a=DI(a,b))?null!=a.layout&&!a.layout&&KF("Unexpected empty layout",b):KF("Unexpected undefined slotState",b);return(null==a?void 0:a.layout)||null};
nCa=function(a,b,c){if(0==c.length)throw new qI("No "+lCa.get(b)+" triggers found for slot.",void 0,mCa(b));c=g.u(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.oh.dn.get(d.triggerType))throw new qI("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
mCa=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"}};
EI=function(a,b,c){c=g.u(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.oh.dn.get(d.triggerType))throw new pI("No trigger adapter registered for "+lCa.get(b)+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
FI=function(a,b,c,d){d=g.u(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.oh.dn.get(e.triggerType);f.Al(c,e,b.slot,b.layout?b.layout:null);b.ra.set(e.triggerId,f)}};
OI=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.ra.get(c.triggerId);d&&(d.Gl(c),a.ra.delete(c.triggerId))}};
NI=function(a,b,c){KF("Slot stage was "+b+" when calling method "+c,a)};
oCa=function(a){return PI(a.xB).concat(PI(a.dn)).concat(PI(a.Kt)).concat(PI(a.bv)).concat(PI(a.yu))};
PI=function(a){var b=[];a=g.u(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.ih&&b.push(c);return b};
pCa=function(a){g.I.call(this);var b=this;this.j=a;this.instance=null;this.addOnDisposeCallback(function(){g.vb(b.instance);b.instance=null})};
QI=function(a){return new pCa(a)};
rCa=function(a){g.I.call(this);this.Zg=a;this.j=qCa(this)};
qCa=function(a){var b=new RBa(function(c,d,e,f){return new jCa(a.Zg.oh,c,d,e,f,a.Zg.Aa)},new Set(oCa(a.Zg.oh).concat(a.Zg.listeners)),a.Zg.Qb,a.Zg.Aa);
g.N(a,b);return b};
RI=function(a){this.j=a};
SI=function(a,b,c){cBa(a.j(),b,c)};
TI=function(a,b,c,d){(a=a.j())||KF("Could not initiate a command router instance.");tH(a,b,c,d)};
UI=function(){this.listeners=new Set};
VI=function(){};
tCa=function(a,b){a=b.bgp&&b.bgub;var c=b.upb;if(b.siub&&b.scs&&(a||c)){a=b.siub;var d=b.scs,e=b.bgub,f=b.bgp;b=window;var h=e?"//pagead2.googlesyndication.com/bg/"+Ze(e)+".js":"";e=b.document;var l={};d&&(l._scs_=d);l._bgu_=h;l._bgp_=f;l._li_="v_h.3.0.0.0";c&&(l._upb_=c);(c=b.GoogleTyFxhY)&&"function"==typeof c.push||(c=b.GoogleTyFxhY=[]);c.push(l);c=lf(e).createElement("SCRIPT");c.type="text/javascript";c.async=!0;a=Jba(sCa,Ze(a)+".js");g.We(c,a);(a=(b.GoogleTyFxhYEET||{})[c.src])?a():e.getElementsByTagName("head")[0].appendChild(c)}};
uCa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.B=c;this.Ne=d;this.Aa=e;this.j=null};
wCa=function(a,b,c,d){a.j&&KF("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.rC?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.B.get(),l=a.slot.slotId,m=wI(a.Ne.get(),{slotId:a.slot.slotId,slotType:a.slot.slotType,slotPhysicalPosition:a.slot.slotPhysicalPosition,Ya:a.slot.Ya,slotEntryTrigger:a.slot.slotEntryTrigger,slotFulfillmentTriggers:a.slot.slotFulfillmentTriggers,slotExpirationTriggers:a.slot.slotExpirationTriggers}),
n=WI(h.B.get(),f,l),p={layoutId:n,layoutType:f,Ya:"core"};e={layoutId:n,layoutType:f,Db:new Map,layoutExitNormalTriggers:[new vCa(h.j,l)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:"core",Ba:new rI([new BBa(e)]),ac:m(p)};VBa(a.callback,a.slot,e)},function(e){a.j=null;
c&&c();e instanceof mg||SBa(a.callback,a.slot,new qI(e,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})};
xCa=function(a){if(null==a.j)a.callback.gL(a.slot);else try{a.j.cancel(),a.j=null,a.callback.gL(a.slot)}catch(b){a.j=null,SBa(a.callback,a.slot,new qI(b,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
XI=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.BE(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
YI=function(a,b,c){return b&&b.test(a)||yCa&&c&&c.test(a)?!0:!1};
ACa=function(a){return(a=zCa&&zCa.exec(a))?a[0]:""};
ZI=function(a){var b=void 0===b?!1:b;return XI(YI(a,BCa,null),a,b,"Trusted Stream URL")};
g.$I=function(a){var b=void 0===b?!1:b;return XI(YI(a,CCa,null),a,b,"Trusted Image URL")};
ECa=function(a){var b=void 0===b?!1:b;return XI(YI(a,DCa,null),a,b,"Trusted Promoted Video Domain URL")};
GCa=function(a){var b=void 0===b?!1:b;return XI(YI(a,FCa,null),a,b,"Drm Licensor URL")};
ICa=function(a,b){b=void 0===b?!1:b;return XI(YI(a,HCa,null),a,b,"Captions URL")};
JCa=function(a){a=new g.lq(a);g.mq(a,document.location.protocol);g.nq(a,document.location.hostname);document.location.port&&g.oq(a,document.location.port);return a.toString()};
aJ=function(a){a=new g.lq(a);g.mq(a,document.location.protocol);return a.toString()};
g.cJ=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.wl=0;this.B=KCa++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||bJ.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.as(d.thumbnails,function(e){return g.$I(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
LCa=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
MCa=function(a,b){switch(a.style){case bJ.CHAPTER_MARKER:return b?8:5;case bJ.AD_MARKER:return 6;case bJ.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.NCa=function(a,b){return a.start-b.start||a.priority-b.priority||a.B-b.B};
g.dJ=function(a){return"crn_"+a};
g.eJ=function(a){return"crx_"+a};
OCa=function(a,b,c,d,e,f,h,l,m){this.slot=b;this.B=c;this.Oa=h;this.Ea=l;this.zc=m;this.j=new uCa(a,b,d,e,f)};
PCa=function(a){var b;null==(b=a.zc)||b.get().Ou(sI(a.slot.Ba,"metadata_type_cue_point").identifier)};
QCa=function(a,b,c,d,e,f){this.slot=b;this.B=c;this.j=new uCa(a,b,d,e,f)};
RCa=function(a,b){this.callback=a;this.slot=b};
SCa=function(a,b){return uI(a,b.Ld,b.slotType)?!0:!1};
TCa=function(){};
fJ=function(a,b,c,d,e,f,h){this.j=a;this.B=b;this.Ne=c;this.Aa=d;this.Oa=e;this.Ea=f;this.zc=h};
gJ=function(){};
UCa=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.layout=c;this.B=d;this.C=e;this.j=f};
WCa=function(a){if(sI(a.slot.Ba,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var b=VCa(a,a.slot);hJ(a.C.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[b]})}};
VCa=function(a,b){var c=iJ(a.j.get(),a.slot.slotType),d=Object,e=d.assign;a=a.slot;if(b.slotEntryTrigger){var f=b.slotId;var h=b.slotEntryTrigger;f=null!=h.triggeringSlotId&&h.triggeringSlotId===f?h.clone(c):h}else f=void 0;return e.call(d,{},a,{slotId:c,slotEntryTrigger:f,slotFulfillmentTriggers:XCa(b.slotId,c,b.slotFulfillmentTriggers),slotExpirationTriggers:XCa(b.slotId,c,b.slotExpirationTriggers)})};
XCa=function(a,b,c){var d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next()){var f=d,h=f.push;var l=a;var m=b;e=e.value;l=null!=e.triggeringSlotId&&e.triggeringSlotId===l?e.clone(m):e;h.call(f,l)}return d};
g.jJ=function(a,b){for(var c=g.u(Object.keys(b)),d=c.next(),e={};!d.done;e={placeholder:void 0},d=c.next())d=d.value,e.placeholder=b[d],a=a.replace(new RegExp("\\$"+d,"gi"),function(f){return function(){return f.placeholder}}(e));
return a};
YCa=function(a,b,c){this.j=a;this.slot=b;this.layout=c};
ZCa=function(a,b,c){b.layoutId!==a.layout.layoutId?a.j.kf(a.slot,b,new pI("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()};
kJ=function(a,b,c,d){g.UE.call(this);this.callback=a;this.C=d;this.j=[];this.B=new YCa(a,b,c)};
mJ=function(a,b,c,d,e,f,h,l){d=d||sI(c.Ba,f);a=lJ(a);var m=Pd(function(){e.uc(b,c)});
l.push(h(d,a,c.layoutId,{adsClientData:c.ac},function(){m()}))};
nJ=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.u(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.J.sendVideoStatsEngageEvent(1,void 0,2):e?e():KF("Tried to call engagePingCallback but it is null",h,l)}}else KF("Companion AdUxClick received without a layoutId",h,l)};
oJ=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)};
pJ=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"};
qJ=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||[]],["swipe",a.swipePings||[]],["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||[]]])};
$Ca=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 "swipe":return null;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}};
rJ=function(a,b,c,d,e){e=void 0===e?null:e;this.C=a;this.Oa=b;this.layoutId=d;this.D=0;this.K=null;this.G=void 0;this.j=new Set;this.B=Array.from(this.C.get("progress")||[]);this.B.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.N={adPlacementConfig:c,d_:e}};
sJ=function(){return["metadata_type_ad_placement_config"]};
lJ=function(a){var b=a.Oa.get();return tJ(b,a.N)};
bDa=function(a,b,c){c=void 0===c?!1:c;a.j.has(b)?aDa(a,b,[]):a.Ub(b,c)};
uJ=function(a,b,c){for(c=void 0===c?!1:c;a.D<a.B.length;){var d=a.B[a.D];if(d.offsetMilliseconds<=b||c)aDa(a,"progress",[d]),a.D++;else break}};
vJ=function(a,b){return a.j.has(b)};
wJ=function(a){return a.B.every(function(b){return b.hasOwnProperty("offsetMilliseconds")})};
cDa=function(a,b,c){a.K=b;a.G=c};
aDa=function(a,b,c){var d;dDa(a.Oa.get(),a.layoutId,b,c,null!=(d=a.K)?d:void 0,a.G)};
eDa=function(a,b,c,d,e){TE.call(this,"ads-engagement-panel-layout",a,b,c,d,e)};
fDa=function(a,b,c,d,e,f,h,l){kJ.call(this,a,b,c,d);this.Oa=e;this.Yb=f;this.K=l;this.ih=!0;this.D=null;this.G=sI(c.Ba,"metadata_type_linked_player_bytes_layout_id");zI(this.Yb(),this);a=sI(c.Ba,"metadata_type_ad_placement_config");this.Za=new rJ(c.Db,this.Oa,a,c.layoutId)};
gDa=function(){var a=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];sJ().forEach(function(b){a.push(b)});
return{Ld:a,Ee:["LAYOUT_TYPE_PANEL"]}};
hDa=function(a,b,c,d,e){TE.call(this,"banner-image",a,b,c,d,e)};
iDa=function(a,b,c,d,e,f,h,l){kJ.call(this,a,b,c,d);this.Oa=e;this.Yb=f;this.K=l;this.ih=!0;this.D=null;this.G=sI(c.Ba,"metadata_type_linked_player_bytes_layout_id");zI(this.Yb(),this);this.adPlacementConfig=sI(c.Ba,"metadata_type_ad_placement_config");this.Za=new rJ(c.Db,this.Oa,this.adPlacementConfig,c.layoutId)};
jDa=function(){var a=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];sJ().forEach(function(b){a.push(b)});
return{Ld:a,Ee:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
kDa=function(a,b,c,d,e){TE.call(this,"action-companion",a,b,c,d,e)};
lDa=function(a,b,c,d,e,f,h,l){kJ.call(this,a,b,c,d);this.Oa=e;this.Yb=f;this.K=l;this.ih=!0;this.D=null;this.G=sI(c.Ba,"metadata_type_linked_player_bytes_layout_id");zI(this.Yb(),this);a=sI(c.Ba,"metadata_type_ad_placement_config");this.Za=new rJ(c.Db,this.Oa,a,c.layoutId)};
mDa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];sJ().forEach(function(b){a.push(b)});
return{Ld:a,Ee:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
nDa=function(a,b,c,d,e){TE.call(this,"image-companion",a,b,c,d,e)};
oDa=function(a,b,c,d,e,f,h,l){kJ.call(this,a,b,c,d);this.Oa=e;this.Yb=f;this.K=l;this.ih=!0;this.D=null;this.G=sI(c.Ba,"metadata_type_linked_player_bytes_layout_id");zI(this.Yb(),this);a=sI(c.Ba,"metadata_type_ad_placement_config");this.Za=new rJ(c.Db,this.Oa,a,c.layoutId)};
pDa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];sJ().forEach(function(b){a.push(b)});
return{Ld:a,Ee:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
qDa=function(a,b,c,d,e){TE.call(this,"shopping-companion",a,b,c,d,e)};
rDa=function(a,b,c,d,e,f,h,l){kJ.call(this,a,b,c,d);this.Oa=e;this.Yb=f;this.K=l;this.ih=!0;this.D=null;this.G=sI(c.Ba,"metadata_type_linked_player_bytes_layout_id");zI(this.Yb(),this);a=sI(c.Ba,"metadata_type_ad_placement_config");this.Za=new rJ(c.Db,this.Oa,a,c.layoutId)};
sDa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];sJ().forEach(function(b){a.push(b)});
return{Ld:a,Ee:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
tDa=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)};
uDa=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))};
vDa=function(a,b,c,d){this.Lb=a;this.layoutId=c;this.G=d;this.B=[];this.j=[];this.C=this.D=0;a=g.u(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":tDa(b)?this.B.push(b):KF("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":uDa(b)?this.j.push(b):KF("Invalid AdVideoProgressMillisecondsCommand");break;default:KF("Unknown or invalid AdVideoProgressOffSet kind")}this.B.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)})};
wDa=function(a,b,c){c=void 0===c?!1:c;var d=a.G();if(d){for(;a.D<a.B.length;){var e=a.B[a.D];if(e.adVideoOffset.percent*d<=b)a.Lb.get().executeCommand(e.command,a.layoutId),a.D++;else break}for(;a.C<a.j.length;)if(d=a.j[a.C],Number(d.adVideoOffset.milliseconds)<=b||c)a.Lb.get().executeCommand(d.command,a.layoutId),a.C++;else break}};
xDa=function(a,b,c,d,e,f){kJ.call(this,a,b,c,d);this.Oa=e;this.Yb=f;this.ih=!0;zI(this.Yb(),this);a=sI(c.Ba,"metadata_type_ad_placement_config");this.Za=new rJ(c.Db,this.Oa,a,c.layoutId)};
yDa=function(){var a=["metadata_type_action_companion_ad_renderer"];sJ().forEach(function(b){a.push(b)});
return{Ld:a,Ee:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
zDa=function(a,b,c,d,e,f,h){this.callback=a;this.slot=b;this.layout=c;this.Ea=d;this.Oa=e;this.Aa=f;this.ub=h;this.j=!1;a=sI(c.Ba,"metadata_type_ad_placement_config");this.Za=new rJ(c.Db,this.Oa,a,c.layoutId)};
ADa=function(a,b,c,d,e,f){kJ.call(this,a,b,c,d);this.Ea=e;this.G=f;this.D=!1};
BDa=function(a,b,c,d,e){TE.call(this,"top-banner-image-text-icon-buttoned",a,b,c,d,e)};
CDa=function(a,b,c,d,e,f){kJ.call(this,a,b,c,d);this.Oa=e;this.Yb=f;this.ih=!0;zI(this.Yb(),this);a=sI(c.Ba,"metadata_type_ad_placement_config");this.Za=new rJ(c.Db,this.Oa,a,c.layoutId)};
DDa=function(){var a=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];sJ().forEach(function(b){a.push(b)});
return{Ld:a,Ee:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
xJ=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;TE.call(this,"ad-action-interstitial",a,b,c,d);this.interactionLoggingClientData=d;this.pT=e;this.dM=f};
yJ=function(a,b,c,d,e){kJ.call(this,a,b,c,d);a=sI(c.Ba,"metadata_type_ad_placement_config");this.Za=new rJ(c.Db,e,a,c.layoutId)};
EDa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];sJ().forEach(function(b){a.push(b)});
return{Ld:a,Ee:["LAYOUT_TYPE_ENDCAP"]}};
zJ=function(a,b){return nI(a,b.Ld,b.Ee)?!0:!1};
AJ=function(a,b,c){this.B=a;this.C=b;this.j=c};
FDa=function(a,b,c,d,e){TE.call(this,"ads-engagement-panel",a,b,c,d,e)};
GDa=function(a,b,c,d,e,f,h,l){kJ.call(this,a,b,c,d);this.Oa=e;this.Yb=f;this.K=l;this.ih=!0;this.D=null;this.G=sI(c.Ba,"metadata_type_linked_player_bytes_layout_id");zI(this.Yb(),this);a=sI(c.Ba,"metadata_type_ad_placement_config");this.Za=new rJ(c.Db,this.Oa,a,c.layoutId)};
HDa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];sJ().forEach(function(b){a.push(b)});
return{Ld:a,Ee:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
IDa=function(a,b,c,d,e,f,h,l){kJ.call(this,a,b,c,d);this.Oa=e;this.Yb=f;this.K=l;this.ih=!0;this.D=null;this.G=sI(c.Ba,"metadata_type_linked_player_bytes_layout_id");zI(this.Yb(),this);this.adPlacementConfig=sI(c.Ba,"metadata_type_ad_placement_config");this.Za=new rJ(c.Db,this.Oa,this.adPlacementConfig,c.layoutId)};
JDa=function(){var a=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];sJ().forEach(function(b){a.push(b)});
return{Ld:a,Ee:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
KDa=function(a,b,c,d,e){this.Ec=a;this.Oa=b;this.Yb=c;this.j=d;this.ub=e};
LDa=function(a,b,c){TE.call(this,"player-underlay",a,{},b,c);this.interactionLoggingClientData=c};
BJ=function(a,b,c,d){kJ.call(this,a,b,c,d)};
MDa=function(a){this.Ec=a};
NDa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Oa=d;this.Jh=e;a=sI(this.layout.Ba,"metadata_type_ad_placement_config");this.Za=new rJ(c.Db,this.Oa,a,c.layoutId)};
ODa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];sJ().forEach(function(b){a.push(b)});
return{Ld:a,Ee:["LAYOUT_TYPE_FORECASTING"]}};
PDa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Oa=d;this.Jh=e;a=sI(this.layout.Ba,"metadata_type_ad_placement_config");this.Za=new rJ(c.Db,this.Oa,a,c.layoutId)};
CJ=function(a,b,c,d){this.Aa=a;this.Oa=b;this.Jh=c;this.ub=d};
QDa=function(a,b){return mI(a.Ba,"metadata_type_ad_info_ad_metadata")?sI(a.Ba,"metadata_type_ad_info_ad_metadata"):b?{channelId:b.Il,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(KF("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})};
RDa=function(a,b){return mI(a.Ba,"metadata_ad_video_is_listed")?sI(a.Ba,"metadata_ad_video_is_listed"):b?b.isListed:(KF("No layout metadata nor AdPlayback specified for ad video isListed"),!1)};
SDa=function(a,b,c,d){TE.call(this,"player-overlay-layout",a,{},c,d);this.videoAdDurationSeconds=b;this.interactionLoggingClientData=d};
TDa=function(a,b,c,d,e,f,h,l){kJ.call(this,a,b,c,d);this.Ea=e;this.Oa=f;this.K=h;this.G=l;this.D=!1;this.N=sI(this.layout.Ba,"metadata_type_linked_player_bytes_layout_id")};
UDa=function(a){if(a.layout.renderingContent){var b;return null==(b=sI(a.layout.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:b.current}return sI(a.layout.Ba,"metadata_type_player_bytes_callback")};
DJ=function(a,b,c,d,e,f,h,l){kJ.call(this,a,b,c,d);this.Ea=e;this.Oa=f;this.K=h;this.G=l;this.D=!1;this.N=sI(this.layout.Ba,"metadata_type_linked_player_bytes_layout_id")};
VDa=function(){return{Ld:["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"],Ee:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
WDa=function(a){if(a.layout.renderingContent){var b;return null==(b=sI(a.layout.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:b.current}return sI(a.layout.Ba,"metadata_type_player_bytes_callback")};
XDa=function(a,b,c){TE.call(this,"ad-message",a,void 0,b,c)};
EJ=function(a,b,c,d,e,f){kJ.call(this,c,a,b,d);this.Ea=e;this.Aa=f};
YDa=function(){return{Ld:["metadata_type_valid_ad_message_renderer"],Ee:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
HJ=function(a,b,c,d,e,f,h,l,m){return zJ(c,VDa())||"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===c.layoutType&&void 0!==g.V(c.renderingContent,FJ)?new DJ(a,b,c,d,e,f,h,l):zJ(c,{Ld:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],Ee:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===c.layoutType&&void 0!==g.V(c.renderingContent,ZDa)?
new TDa(a,b,c,d,e,f,h,l):zJ(c,EDa())||"LAYOUT_TYPE_ENDCAP"===c.layoutType&&void 0!==g.V(c.renderingContent,GJ)?new yJ(a,b,c,d,f):zJ(c,YDa())?new EJ(b,c,a,d,e,m):zJ(c,{Ld:["metadata_type_instream_ad_player_overlay_renderer"],Ee:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new ADa(a,b,c,d,e,l):null};
$Da=function(a,b,c,d,e,f){this.Ec=a;this.Ea=b;this.Oa=c;this.B=d;this.j=e;this.Aa=f};
IJ=function(a){return!a.oB.isPlaying()&&a.state.isPlaying()};
JJ=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
aEa=function(a,b,c,d,e,f,h){this.callback=a;this.slot=b;this.layout=c;this.Ea=d;this.Oa=e;this.Aa=f;this.ub=h;this.j=!1;a=sI(c.Ba,"metadata_type_ad_placement_config");this.Za=new rJ(c.Db,this.Oa,a,c.layoutId)};
bEa=function(a,b){a.j||(a.Za.Ub(b),a.j=!0)};
cEa=function(a,b,c,d){this.Ea=a;this.Oa=b;this.Aa=c;this.ub=d};
dEa=function(){this.currentState=1;this.j="unknown"};
eEa=function(a,b){if(1<a.currentState){g.BE(new g.XB("Exit already started",{current:a.currentState}));var c=!1}else c=!0;if(!c)return!1;a.currentState=2;a.j=b;return!0};
fEa=function(a,b){var c=new Map;a=g.u(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;if("LAYOUT_TYPE_MEDIA"===d.layoutType)var e="v";else"LAYOUT_TYPE_MEDIA_BREAK"===d.layoutType?(e=sI(d.Ba,"metadata_type_linked_in_player_layout_type"),e="LAYOUT_TYPE_ENDCAP"===e||"LAYOUT_TYPE_VIDEO_INTERSTITIAL"===e?"e":"LAYOUT_TYPE_SURVEY"===e?"s":"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"===e?"si":"u"):e="u";c.set(d.layoutId,e);"u"===e&&(e={},KJ(b,"uct",(e.c=d.layoutId,e)))}a=b.fg();LJ={contentCpn:a,vt:c};
d={};KJ(b,"acc",(d.ct=c.size,d.c=a,d))};
gEa=function(){LJ={contentCpn:"",vt:new Map}};
MJ=function(a){var b;return null!=(b=LJ.vt.get(a))?b:"u"};
NJ=function(a,b,c){KJ(a,b,c);hEa(a)};
iEa=function(a){var b=a.layoutId,c=a.Hm;if(a.aq){var d={};NJ(a.df,"slso",(d.ec=b,d.is=c,d.ctp=MJ(b),d))}};
jEa=function(a){var b=a.layoutId,c=a.Hm;if(a.aq){var d={};NJ(a.df,"slse",(d.ec=b,d.is=c,d.ctp=MJ(b),d))}};
kEa=function(a){var b=a.layoutId,c=a.Hm,d=a.df;a.aq&&(a={},NJ(d,"sleo",(a.xc=b,a.is=c,a.ctp=MJ(b),a)),hEa(d))};
lEa=function(a){var b=a.layoutId,c=a.Hm;if(a.aq){var d={};NJ(a.df,"slhe",(d.xc=b,d.is=c,d.ctp=MJ(b),d))}};
OJ=function(a){var b=a.cpn,c=a.df;a=a.Hm;var d=c.fg(),e={};NJ(c,"ce",(e.ec=b,e.ia=b!==d,e.r=LJ.vt.has(b),e.is=a,e.ctp=MJ(b),e))};
hEa=function(a){if(a.fg()!==LJ.contentCpn){var b={};KJ(a,"ccm",(b.c=LJ.contentCpn,b))}};
PJ=function(a){var b=a.cpn,c=a.df;a=a.Hm;var d=c.fg(),e={};NJ(c,"cx",(e.xc=b,e.ia=b!==d,e.r=LJ.vt.has(b),e.is=a,e.ctp=MJ(b),e))};
mEa=function(a,b){this.df=a;this.Aa=b};
QJ=function(a){var b=[];if(a){a=g.u(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.u(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(";")};
RJ=function(a,b,c){b=void 0===b?{}:b;this.errorCode=a;this.details=b;this.severity=void 0===c?0:c};
SJ=function(a){return 1===a||2===a};
TJ=function(a,b){b=void 0===b?0:b;if(a instanceof RJ)return a;a=a&&a instanceof Error?a:Error(""+a);SJ(b)?g.AE(a):g.BE(a);return new RJ(1===b?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
g.oEa=function(a){return(a=nEa[a.toString()])?a:"LICENSE"};
pEa=function(a,b){function c(){var d=g.Ia.apply(0,arguments);a.removeEventListener("playing",c);b.apply(null,g.qa(d))}
a.addEventListener("playing",c)};
UJ=function(){var a=g.Xa("yt.player.utils.videoElement_");a||(a=g.yf("VIDEO"),g.Ua("yt.player.utils.videoElement_",a));return a};
VJ=function(a){var b=UJ();return!!(b&&b.canPlayType&&b.canPlayType(a))};
XJ=function(a){if(/opus/.test(a)&&g.WJ&&!hw("38")&&!g.hB())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Zqa())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!VJ(a)};
qEa=function(a){try{var b=XJ('video/mp4; codecs="avc1.42001E"')||XJ('video/webm; codecs="vp9"');return(XJ('audio/mp4; codecs="mp4a.40.2"')||XJ('audio/webm; codecs="opus"'))&&(b||!a)||VJ('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
rEa=function(){var a=UJ();return!(!a.webkitSupportsPresentationMode||"function"!==typeof a.webkitSetPresentationMode)};
sEa=function(){var a=UJ();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
g.YJ=function(){KB.apply(this,arguments)};
ZJ=function(a,b,c,d,e,f){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.C=void 0===e?0:e;this.B=void 0===f?0:f};
aK=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||tEa(a,b);this.j=g.$J[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.$J[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.B=l||"";this.primaries=m||""};
tEa=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=bK[0];for(var d=0;d<bK.length;d++){var e=bK[d],f=g.$J[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
eK=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0<c.sb||(c.sb=16E3);Object.assign(this,c);a=g.u(this.id.split(";"));this.itag=a.next().value;this.j=a.next().value;this.containerType=cK(b);this.qb=dK[this.itag]||""};
fK=function(a){return"9"===a.qb||"("===a.qb||"9h"===a.qb||"(h"===a.qb};
uEa=function(a){return"H"===a.qb||"h"===a.qb};
vEa=function(a){return"9h"===a.qb||"(h"===a.qb};
gK=function(a){return"1"===a.qb||"1h"===a.qb};
wEa=function(a){return"mac3"===a.qb||"meac3"===a.qb||"m"===a.qb};
hK=function(a){return"MAC3"===a.qb||"MEAC3"===a.qb||"M"===a.qb};
g.iK=function(a){return 1===a.containerType};
xEa=function(a){return"("===a.qb||"(h"===a.qb||"H"===a.qb};
jK=function(a){return"application/x-mpegURL"===a.mimeType};
kK=function(a,b){return{itag:+a.itag,lmt:b?0:a.lastModified,xtags:a.j||""}};
lK=function(a,b){a=kK(a,b);return a.itag+";"+(a.lmt||0)+";"+a.xtags};
yEa=function(a){var b=navigator.mediaCapabilities;if(null==b||!b.decodingInfo||"f"===a.qb)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.sb||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:""+(a.audio.numChannels||2),bitrate:8*a.sb||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.B=d})};
zEa=function(a){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(a)};
AEa=function(a){return/(vp9|vp09|vp8|avc1|av01)/.test(a)};
mK=function(a){return a.includes("vtt")||a.includes("text/mp4")};
cK=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};
nK=function(a,b,c,d,e,f){var h=new ZJ;b in g.$J||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.$J[b],d=Math.round(16*e/9));f=new aK(d,e,0,null,void 0,b,f);a=unescape(a.replace(/&quot;/g,'"'));return new eK(c,a,{audio:h,video:f})};
oK=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+(null==(c=a.jw)?void 0:c.toFixed(0))+", "+(null==(d=a.sb)?void 0:d.toFixed(0))+")"};
pK=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
BEa=function(a,b,c){for(var d=[],e=[],f=0;f<a.length;f++)d.push(a.start(f)),e.push(a.end(f));d.push(b);e.push(c);d.sort(function(h,l){return h-l});
e.sort(function(h,l){return h-l});
return pK(d,e)};
qK=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)};
rK=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};
sK=function(a,b){return 0<=rK(a,b)};
CEa=function(a,b){if(!a)return NaN;b=rK(a,b);return 0<=b?a.start(b):NaN};
tK=function(a,b){if(!a)return NaN;b=rK(a,b);return 0<=b?a.end(b):NaN};
uK=function(a){return a&&a.length?a.end(a.length-1):NaN};
vK=function(a,b){a=tK(a,b);return 0<=a?a-b:0};
wK=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 pK(d,e)};
xK=function(a,b,c,d){g.UE.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.HY={error:function(){!e.Na()&&e.isActive&&e.publish("error",e)},
updateend:function(){!e.Na()&&e.isActive&&e.publish("updateend",e)}};
g.VE(this.Gd,this.HY);this.iU=this.isActive};
yK=function(a,b,c,d,e,f){g.UE.call(this);var h=this;this.Rb=a;this.wg=b;this.id=c;this.containerType=d;this.qb=e;this.Ag=f;this.HQ=this.zF=this.Jf=null;this.HI=!1;this.appendWindowStart=this.timestampOffset=0;this.eO=pK([],[]);this.XD=!1;this.yF=[];this.VB=DEa?[]:void 0;this.JH=!1;this.Ed=function(m){return h.publish(m.type,h)};
var l;if(null==(l=this.Rb)?0:l.addEventListener)this.Rb.addEventListener("updateend",this.Ed),this.Rb.addEventListener("error",this.Ed)};
zK=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
AK=function(a,b){this.resource=a;this.j=void 0===b?!1:b;this.B=!1};
BK=function(a,b,c){c=void 0===c?!1:c;g.I.call(this);this.mediaElement=a;this.Qa=b;this.isView=c;this.N=0;this.G=!1;this.K=!0;this.ra=0;this.callback=null;this.qa=!1;this.Qa||(this.wg=this.mediaElement.Ib());this.events=new g.YJ(this);g.N(this,this.events);this.C=new AK(this.Qa?window.URL.createObjectURL(this.Qa):this.wg.webkitMediaSourceURL,!0);a=this.Qa||this.wg;LB(this.events,a,["sourceopen","webkitsourceopen"],this.nca);LB(this.events,a,["sourceclose","webkitsourceclose"],this.mca);this.D={updateend:this.P5}};
EEa=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
FEa=function(a,b){CK(a)?g.dg(function(){b(a)}):a.callback=b};
GEa=function(a,b,c){if(DK){var d;EK(a.mediaElement,{l:"mswssb",sr:null==(d=a.mediaElement.ea)?void 0:FK(d)},!1);g.VE(b,a.D,a);g.VE(c,a.D,a)}a.j=b;a.B=c;g.N(a,b);g.N(a,c)};
HEa=function(a,b,c,d){d=b.mimeType+(void 0===d?"":d);var e=c.mimeType;b=b.qb;c=c.qb;var f;a.Z=null==(f=a.Qa)?void 0:f.addSourceBuffer(e);var h;a.Y="fakesb"===d.split(";")[0]?void 0:null==(h=a.Qa)?void 0:h.addSourceBuffer(d);a.wg&&(a.wg.webkitSourceAddId("0",e),a.wg.webkitSourceAddId("1",d));f=new yK(a.Z,a.wg,"0",cK(e),c,!1);d=new yK(a.Y,a.wg,"1",cK(d),b,!0);GEa(a,f,d)};
GK=function(a){return!!a.j||!!a.B};
CK=function(a){try{return"open"===HK(a)}catch(b){return!1}};
HK=function(a){if(a.Qa)return a.Qa.readyState;switch(a.wg.webkitSourceState){case a.wg.SOURCE_OPEN:return"open";case a.wg.SOURCE_ENDED:return"ended";default:return"closed"}};
IEa=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource};
JEa=function(a){CK(a)&&(a.Qa?a.Qa.endOfStream():a.wg.webkitSourceEndOfStream(a.wg.EOS_NO_ERROR))};
KEa=function(a,b,c,d){if(!a.j||!a.B)return null;var e=a.j.isView()?a.j.Gd:a.j,f=a.B.isView()?a.B.Gd:a.B,h=new BK(a.mediaElement,a.Qa,!0);h.C=a.C;GEa(h,new xK(e,b,c,d),new xK(f,b,c,d));CK(a)||a.j.Gq(a.j.Mc());return h};
LEa=function(a){var b;null==(b=a.j)||b.Ez();var c;null==(c=a.B)||c.Ez();a.K=!1};
IK=function(){var a=this;this.wS=this.JS=qaa;this.promise=new g.fg(function(b,c){a.JS=b;a.wS=c})};
JK=function(){g.I.call(this);this.dK=!1;this.resource=null;this.N=this.K=!1;this.D=new g.Ed;this.ea=null;g.N(this,this.D)};
MEa=function(a){a=a.TE();return 1>a.length?NaN:a.end(a.length-1)};
NEa=function(a){!a.B&&EEa()&&(a.C?a.C.then(function(){return NEa(a)}):a.Ef()||(a.B=a.Er()))};
OEa=function(a){a.B&&(a.B.dispose(),a.B=void 0)};
EK=function(a,b,c){var d;(null==(d=a.ea)?0:d.Bc())&&a.ea.ma("rms",b,void 0===c?!1:c)};
PEa=function(a,b,c){a.isPaused()||a.getCurrentTime()>b||10<c||(a.play(),g.PA(function(){PEa(a,a.getCurrentTime(),c+1)},500))};
QEa=function(a,b){a.resource&&null!==b&&b.resource===a.resource.resource||(a.resource&&a.resource.dispose(),a.resource=b)};
KK=function(a){return vK(a.Ch(),a.getCurrentTime())};
REa=function(a,b){if(0===a.Rk()||a.hasError())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.TE(),a.length||!c)?sK(a,b):c};
TEa=function(a){a.Ef()&&(SEa&&a.ea&&a.ea.ov("rs_s"),MC&&0<a.getCurrentTime()&&a.seekTo(0),a.ML(),a.load(),QEa(a,null));delete a.C};
UEa=function(a){switch(a.dh()){case 2:return"progressive.net.retryexhausted";case 3:var b;return(null==(b=a.wf())?0:b.includes("MEDIA_ERR_CAPABILITY_CHANGED"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
g.LK=function(a,b,c){this.Ng=void 0===b?null:b;this.seekSource=void 0===c?null:c;this.state=a||64};
MK=function(a,b){return VEa(a,b.getCurrentTime(),(0,g.wC)(),KK(b))};
NK=function(a,b,c,d){if(!(b===a.state&&c===a.Ng&&d===a.seekSource||void 0!==b&&(b&128&&!c||b&2&&b&16))){var e;if(e=b)e=b||a.state,e=!!(e&16||e&32);a=new g.LK(b,c,e?d?d:a.seekSource:null)}return a};
OK=function(a,b,c){return NK(a,a.state|b,null,void 0===c?null:c)};
PK=function(a,b){return NK(a,a.state&~b,null,null)};
QK=function(a,b,c,d){return NK(a,(a.state|b)&~c,null,void 0===d?null:d)};
g.MF=function(a,b){return!!(a.state&b)};
g.WEa=function(a,b){return b.state===a.state&&b.Ng===a.Ng};
XEa=function(a){return a.isPlaying()&&!g.MF(a,16)&&!g.MF(a,32)};
RK=function(a){return g.MF(a,128)?-1:g.MF(a,2)?0:g.MF(a,2048)?3:g.MF(a,64)?-1:g.MF(a,1)&&!g.MF(a,32)?3:g.MF(a,8)?1:g.MF(a,4)?2:-1};
TK=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v){g.I.call(this);var w=this;this.Ro=a;this.slot=b;this.layout=c;this.Oa=d;this.ub=e;this.Ra=f;this.Ea=h;this.Ac=l;this.Lb=m;this.zq=n;this.position=q;this.G=r;this.Aa=t;this.Rr=v;this.ih=!0;this.D=!1;this.kc="not_rendering";this.j=!1;this.B=new dEa;a=sI(this.layout.Ba,"metadata_type_ad_placement_config");this.Za=new rJ(c.Db,this.Oa,a,c.layoutId);var A;a=(null==(A=SK(this))?void 0:A.progressCommands)||[];this.C=new vDa(m,a,c.layoutId,function(){return w.hA()})};
UK=function(a){return{layoutId:a.Lw(),Hm:a.Rr,df:a.Ra.get(),aq:a.qf()}};
YEa=function(a,b){return b.layoutId!==a.layout.layoutId?(a.Ro.kf(a.slot,b,new pI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+a.layout.layoutId+("and LayoutType: "+a.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
ZEa=function(a){a.kc="rendering_start_requested";a.zq(-1)};
SK=function(a){return sI(a.layout.Ba,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
$Ea=function(a){KF("Received layout exit signal when not in layout exit flow.",a.slot,a.layout)};
aFa=function(a){a.qf()&&KF("Unexpected ad player in SSAP",a.slot,a.layout)};
VK=function(a,b){switch(b){case "normal":a.Ub("complete");break;case "skipped":a.Ub("skip");break;case "abandoned":vJ(a.Za,"impression")&&a.Ub("abandon")}};
WK=function(a,b){a.D||(b=new g.LF(b.state,new g.LK),a.D=!0);return b};
XK=function(a,b){IJ(b)?a.zq(1):g.OF(b,4)&&!g.OF(b,2)&&a.D2();0>NF(b,4)&&!(0>NF(b,2))&&a.E2()};
bFa=function(a){0===a.position&&(a.Ac.get(),a=sI(a.layout.Ba,"metadata_type_ad_placement_config").kind,a={adBreakType:YK(a)},YG("ad_bl"),g.ZG(a))};
ZK=function(a,b){bDa(a.Za,b,!a.j)};
dFa=function(a){var b;return-1!==((null==(b=SK(a))?void 0:b.progressCommands)||[]).findIndex(function(c){return!!g.V(null==c?void 0:c.command,cFa)})};
$K=function(a,b){var c=sI(a.Ba,"metadata_type_eligible_for_ssap");return void 0===c?(KF("Expected SSAP eligibility in PlayerBytes factory",a),!1):b.qf(c)};
eFa=function(a){switch(a){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:return KF("getExitReason: unexpected reason",void 0,void 0,{reason:a}),"error";default:Ne(a,"unexpected transition reason")}};
aL=function(a,b,c){aH(a,c)||bH(a,b,c);aH(a,"video_to_ad")||bH(a,b,"video_to_ad");aH(a,"ad_to_video")||bH(a,b,"ad_to_video");aH(a,"ad_to_ad")||bH(a,b,"ad_to_ad")};
bL=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w){TK.call(this,a,b,c,d,e,f,h,l,n,p,q,r,t,v,w);var A=this;this.hd=m;this.Wn=q;this.kK=!0;this.KQ=this.ij=0;this.Mz=Pd(function(){iEa(UK(A));A.Ro.uc(A.slot,A.layout)});
this.At=Pd(function(){kEa(UK(A));"rendering_stop_requested"!==A.kc&&A.Wn(A);A.xO()});
this.Ve=new g.ng(200);this.Ve.listen("tick",function(){A.Sc()});
g.N(this,this.Ve)};
gFa=function(a){a.KQ=Date.now();fFa(a,a.ij);a.Ve.start()};
hFa=function(a){a.ij=a.hA();a.tC(a.ij/1E3,!0);fFa(a,a.ij)};
fFa=function(a,b){b={current:b/1E3,duration:a.hA()/1E3};a.hd.get().Ru("onAdPlaybackProgress",b)};
iFa=function(a){bL.call(this,a.Ro,a.slot,a.Nf,a.Oa,a.ub,a.Ra,a.Ea,a.Ac,a.hd,a.Lb,a.zq,a.Wn,a.Jq,a.Jy,a.Aa,a.Rr)};
cL=function(a){bL.call(this,a.Ro,a.slot,a.Nf,a.Oa,a.ub,a.Ra,a.Ea,a.Ac,a.hd,a.Lb,a.zq,a.Wn,a.Jq,a.Jy,a.Aa,a.Rr)};
dL=function(){cL.apply(this,arguments)};
jFa=function(a){return $K(a.slot,a.Aa.get())?eL(a.Aa.get())?new dL(a):new cL(a):new iFa(a)};
hL=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,C,F,H,M){TK.call(this,a,b,c,d,e,l,m,p,r,v,w,A,C,F,H);var L=this;this.gf=f;this.Yc=h;this.Oc=n;this.hd=q;this.Wf=t;this.Wn=w;this.context=M;this.adCpn="";this.xW=0;this.LY=!1;this.Mz=Pd(function(){iEa(UK(L));L.Ro.uc(L.slot,L.layout)});
this.At=Pd(function(){kEa(UK(L));"rendering_stop_requested"!==L.kc&&L.Wn(L);L.xO()});
this.qf()||(this.FK=new g.Iv(function(){L.lB("load_timeout",new pI("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4),a=fL(this.Aa.get()),F=gL(F.get()),a&&F&&(this.eB=new g.Iv(function(){var R=sI(c.Ba,"metadata_type_preload_player_vars");
R&&L.Yc.get().J.preloadVideoByPlayerVars(R,2,300)})))};
lFa=function(a,b){var c=sI(b.Ba,"metadata_type_ad_video_id"),d=sI(b.Ba,"metadata_type_legacy_info_card_vast_extension");c&&d&&a.Wf.get().J.U().Ma.add(c,{CI:d});(b=sI(b.Ba,"metadata_type_sodar_extension_data"))&&tCa(a.gf.get(),b);kFa(a.Ea.get(),!1)};
mFa=function(a){kFa(a.Ea.get(),!0);var b;(null==(b=a.shrunkenPlayerBytesConfig)?0:b.shouldRequestShrunkenPlayerBytes)&&a.Ea.get().hC(!1)};
nFa=function(a){return eL(a.context.Aa.get())?new iL(a):new jL(a)};
jL=function(a){hL.call(this,a.callback,a.slot,a.Nf,a.Oa,a.ub,a.gf,a.Yc,a.Ra,a.Ea,a.Oc,a.Ac,a.hd,a.Lb,a.Wf,a.zq,a.Wn,a.Jq,a.Jy,a.Aa,a.Rr,a.context)};
iL=function(){jL.apply(this,arguments)};
oFa=function(a){return jFa(Object.assign({},a,{Ro:a.callback,zq:function(){}}))};
pFa=function(a){return new hL(a.callback,a.slot,a.Nf,a.Oa,a.ub,a.gf,a.Yc,a.Ra,a.Ea,a.Oc,a.Ac,a.hd,a.Lb,a.Wf,function(b){a.hd.get().Ru("onAdIntroStateChange",b)},a.Wn,a.Jq,a.Jy,a.Aa,a.Rr,a.context)};
qFa=function(a){function b(c){a.hd.get().yG(c)}
return $K(a.slot,a.Aa.get())?nFa(Object.assign({},a,{zq:b})):new hL(a.callback,a.slot,a.Nf,a.Oa,a.ub,a.gf,a.Yc,a.Ra,a.Ea,a.Oc,a.Ac,a.hd,a.Lb,a.Wf,b,a.Wn,a.Jq,a.Jy,a.Aa,a.Rr,a.context)};
rFa=function(a){for(var b=a.Nf,c=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],d=g.u(sJ()),e=d.next();!e.done;e=d.next())c.push(e.value);if(zJ(b,{Ld:c,Ee:["LAYOUT_TYPE_MEDIA_BREAK"]}))return oFa(a);b=a.Nf;c=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];d=g.u(sJ());for(e=d.next();!e.done;e=d.next())c.push(e.value);if(zJ(b,{Ld:c,Ee:["LAYOUT_TYPE_MEDIA"]}))return mI(a.Nf.Ba,"metadata_type_ad_intro")?pFa(a):qFa(a)};
tFa=function(a){var b=sI(a.Ba,"metadata_type_ad_placement_config").kind,c=sI(a.Ba,"metadata_type_linked_in_player_layout_type");return{cpn:a.layoutId,adType:sFa(c),adBreakType:YK(b)}};
YK=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"}};
sFa=function(a){switch(a){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}};
vFa=function(a){try{return eL(a.context.Aa.get())?new uFa(a):new kL(a.Jk,a.slot,a.layout,a.Hd,a.Me,a.Ra,a.zc,a.Yc,a.Yb,a.Ea,a.Z1)}catch(b){}};
kL=function(a,b,c,d,e,f,h,l,m,n,p){g.I.call(this);this.Jk=a;this.slot=b;this.layout=c;this.Hd=d;this.Me=e;this.Ra=f;this.zc=h;this.Yc=l;this.Yb=m;this.Ea=n;this.ih=!0;this.j=void 0;this.B=!1;a=rFa(p);if(!a)throw Error("Invalid params for sublayout");this.Vc=a};
uFa=function(a){kL.call(this,a.Jk,a.slot,a.layout,a.Hd,a.Me,a.Ra,a.zc,a.Yc,a.Yb,a.Ea,a.Z1)};
wFa=function(){this.j=1;this.B=new dEa};
lL=function(a,b,c,d,e,f,h,l,m,n,p,q,r){g.I.call(this);this.callback=a;this.Ra=b;this.zc=c;this.Yc=d;this.Ea=e;this.Ac=f;this.Iq=h;this.slot=l;this.layout=m;this.Hd=n;this.Jh=p;this.Yb=q;this.Aa=r;this.ih=!0;this.ax=!1;this.rf=[];this.cw=-1;this.rQ=this.YP=!1;this.xw=new wFa};
xFa=function(a){var b;return null!=(b=a.layout.Fy)?b:sI(a.layout.Ba,"metadata_type_sub_layouts")};
mL=function(a){return{df:a.Ra.get(),Hm:!1,aq:a.qf()}};
yFa=function(a,b,c){if(a.Uh()===a.rf.length-1){var d,e;KF("Unexpected skip requested during the last sublayout",null==(d=a.jf())?void 0:d.Xb(),null==(e=a.jf())?void 0:e.Xa(),{requestingSlot:b,requestingLayout:c})}};
zFa=function(a,b,c){return c.layoutId!==nL(a,b,c)?(KF("onSkipRequested for a PlayerBytes layout that is not currently active",a.Xb(),a.Xa()),!1):!0};
AFa=function(a){a.Uh()===a.rf.length-1&&KF("Unexpected skip with target requested during the last sublayout")};
BFa=function(a,b,c){return void 0===c.renderingContent&&c.layoutId!==nL(a,b,c)?(KF("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",a.Xb(),a.Xa(),{requestingSlot:b,requestingLayout:c}),!1):!0};
CFa=function(a,b,c,d){var e=sI(b.Xa().Ba,"metadata_type_ad_pod_skip_target");if(e&&0<e&&e<a.rf.length){a:{for(var f=e;f<a.rf.length;){if(e===sI(a.rf[f].Xa().Ba,"metadata_type_ad_pod_skip_index")){a=f;break a}f++}a=void 0}if(void 0===a)KF("Skip-to-index was requested but target index was not found",b.Xb(),b.Xa(),{requestingSlot:c,requestingLayout:d});else return a}else KF("Invalid ad pod skip target index",b.Xb(),b.Xa(),{requestingSlot:c,requestingLayout:d})};
nL=function(a,b,c){var d=sI(a.Xa().Ba,"metadata_type_linked_in_player_layout_id");return d?d:(KF("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.Xb(),a.Xa(),{requestingSlot:b,requestingLayout:c}),null)};
EFa=function(a,b,c,d){oL(a,b,c,"skipped",function(){DFa(a,d)})};
oL=function(a,b,c,d,e){if(!a.rQ){var f=a.jf();if(f){f.Xa().layoutId!==c.layoutId&&KF("SubLayout mismatch in exitSubLayout",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:f.Xa().layoutId});a.rQ=!0;f.kd(f.Xa(),d);f=Object.assign({},mL(a),{layoutId:c.layoutId,layoutExitReason:d});var h=f.layoutId,l=f.layoutExitReason;if(f.aq){var m={};NJ(f.df,"wrsx",(m.xc=h,m.ler=l,m.ctp=MJ(h),m))}a.yO(b,c,d);a.rQ=!1;a.hQ?(a.hQ(),a.qf()||FFa(a.Ac.get())):e()}else KF("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",
b,c)}};
DFa=function(a,b){a.Uh()===a.rf.length-1?(a.cw++,pL(a.Jh,a.layout,"normal"),a.qf()||FFa(a.Ac.get())):GFa(a,b)};
GFa=function(a,b){if(-1===a.Uh()&&(a.callback.uc(a.slot,a.layout),0<b)){KF("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});return}a.cw=b;b=a.jf();if(0<a.Uh()&&!a.qf()){var c=a.Ac.get();c.B=!1;var d={};c.j&&c.videoId&&(d.cttAuthInfo={token:c.j,videoId:c.videoId});$G("ad_to_ad",d)}a.wT(b)};
HFa=function(a){lL.call(this,a.Jk,a.Ra,a.zc,a.Yc,a.Ea,a.Ac,a.Iq,a.slot,a.layout,a.Hd,a.Jh,a.Yb,a.Aa)};
qL=function(a){lL.call(this,a.Jk,a.Ra,a.zc,a.Yc,a.Ea,a.Ac,a.Iq,a.slot,a.layout,a.Hd,a.Jh,a.Yb,a.Aa)};
IFa=function(a,b,c){oL(a,a.slot,b,c,function(){var d=a.dX;d?(a.dX=void 0,d(b)):KF("Expected further action after sublayout exit is confirmed",a.slot,a.layout)})};
JFa=function(){qL.apply(this,arguments);this.Ai=void 0};
KFa=function(a,b,c){2>b.dA().currentState&&(c=eFa(c),b.kd(b.Xa(),c));c=b.dA().j;a.yO(a.slot,b.Xa(),c)};
LFa=function(a,b){2===a.xw.j&&b!==a.fg()&&KF("onClipEntered: unknown cpn",a.slot,a.layout,{cpn:b})};
MFa=function(a,b){var c=a.jf();c?(c.kd(c.Xa(),b),b=a.Uh()+1,0<=b&&b<a.rf.length?(b=a.rf[b].Xa().layoutId,a.zc.get().finishSegmentByCpn(c.Xa().layoutId,b)):b===a.rf.length?pL(a.Jh,a.layout,"normal"):KF("unexpected index",a.slot,a.layout,{index:b})):KF("exitActiveLayoutAndPlayNext: no active adapter",a.slot,a.layout)};
NFa=function(a,b){KF(b+": undefined adapter",a.slot,a.layout)};
OFa=function(a){return $K(a.slot,a.Aa.get())?eL(a.Aa.get())?new JFa(a):new qL(a):new HFa(a)};
PFa=function(a,b,c,d,e,f,h){g.I.call(this);this.callback=a;this.Yc=b;this.Ea=c;this.Ac=d;this.Vc=e;this.Yb=f;this.Aa=h;this.ih=!0;this.ax=!1};
QFa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,C,F,H,M){function L(){var na=rFa(Object.assign({},ma,{callback:{uc:a.uc.bind(a),yc:a.yc.bind(a),vy:function(){},
kf:a.kf.bind(a)},slot:c,Nf:d,Wn:function(){pL(h,d,"normal")},
Jq:0,Jy:1,Rr:!0}));return na?new PFa(a,p,r,v,na,e,F):na}
function R(){var na=Object.assign({},ma,{callback:{uc:function(){},
yc:function(){},
vy:function(){return void pL(h,d,"normal")},
kf:function(){}},
slot:c,Nf:d,Wn:function(){},
Jq:0,Jy:1,Rr:!0});return vFa({Jk:a,slot:c,layout:d,Hd:f,Me:h,Ra:q,zc:H,Yc:p,Yb:e,Ea:r,Z1:na,context:M})}
function ba(){var na,ia=null!=(na=d.Fy)?na:sI(d.Ba,"metadata_type_sub_layouts");na=OFa({Jk:a,Ra:q,zc:H,Yc:p,Ea:r,Ac:v,Iq:b,slot:c,layout:d,Hd:f,Jh:h,Yb:e,Aa:F});for(var sa=[],aa={Xw:0};aa.Xw<ia.length;aa={Xw:aa.Xw},aa.Xw++){var U=rFa(Object.assign({},ma,{callback:{uc:na.Z_.bind(na),yc:na.d0.bind(na),vy:na.vy.bind(na),kf:na.b0.bind(na)},slot:c,Nf:ia[aa.Xw],Wn:function(Ka){return function(x){x.kd(ia[Ka.Xw],"normal")}}(aa),
Jq:aa.Xw,Jy:ia.length,Rr:!1}));if(!U)return;sa.push(U)}na.rf=sa;return na}
var ma={Oa:l,ub:m,gf:n,Yc:p,Ra:q,Ea:r,Oc:t,Ac:v,hd:w,Lb:A,Wf:C,Aa:F,context:M};l=zJ(d,{Ld:["metadata_type_sub_layouts"],Ee:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||void 0!==d.Fy&&"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"===d.layoutType;m=$K(c,F.get())&&zJ(d,{Ld:[],Ee:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});n=zJ(d,{Ld:[],Ee:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});if(l)return ba();if(m)return R();if(n)return L()};
rL=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Ra=d;this.zc=e;this.Bf=f;this.Ea=h;this.Za=l;this.Oa=m;this.D=n;this.driftRecoveryMs=sI(this.layout.Ba,"metadata_type_drift_recovery_ms")||null};
SFa=function(a){var b=sI(a.layout.Ba,"metadata_type_layout_enter_ms"),c=sI(a.layout.Ba,"metadata_type_layout_exit_ms");a=a.Bf.get();b=RFa(a.C,b,c);return Math.min(c,null!==b?b:Infinity)};
TFa=function(a,b){var c;sL(a.Oa.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:null==(c=a.Ra.get().Aw)?void 0:c.clientPlaybackNonce,adClientData:a.layout.ac.adClientDataEntry},b)})};
UFa=function(a,b,c,d,e,f,h,l,m,n,p){rL.call(this,a,b,c,d,e,f,h,l,m,n);this.C=p;this.B=this.j=null;a=g.u(this.C);for(b=a.next();!b.done;b=a.next())b=b.value,mI(b.Xa().Ba,"metadata_type_survey_overlay")&&(this.B=b.Xa().layoutId)};
WFa=function(a,b){var c=VFa(a,b);a.j={fm:c};c?c.startRendering(c.Xa()):b===a.B&&KF("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
VFa=function(a,b){return null==b?null:a.C.find(function(c){return c.Xa().layoutId===b})||null};
XFa=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,q=mI(b.Ba,"metadata_type_survey_overlay"),r,t=(null==(r=sI(a.Ba,"metadata_type_fulfilled_layout"))?void 0:sI(r.Ba,"metadata_type_ssdai_ads_config"))||"";if(!p)return h.fF(c,t,2,f,d,e,a.slotId),tL(n,"ads_iraot","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id),null;p=h.OD(c,t,2,f,d,e,a.slotId);tL(n,"ads_atct","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id);if(!p)return KF("Unexpected failure to add to playback timeline",
a,b,m()),null;a=a.slotId;b=b.layoutId;p?(l.j.has(p)&&KF("Unexpected remap of timeline playback"),l.j.set(p,{slotId:a,layoutId:b})):KF("Invalid timeline playback ID");d+f>e&&h.CH(p,e-d);return p};
YFa=function(a,b){var c=sI(b.Ba,"metadata_type_sodar_extension_data");if(c)try{tCa(0,c)}catch(d){KF("Unexpected error when loading Sodar",a,b,{error:d})}};
$Fa=function(a,b,c,d,e,f){ZFa(a,b,new g.LF(c,new g.LK),d,e,!1,f)};
ZFa=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;IJ(c)&&JJ(e,0,null)&&(!vJ(a,"impression")&&h&&h(),a.Ub("impression"));vJ(a,"impression")&&(g.OF(c,4)&&!g.OF(c,2)&&a.Oh("pause"),0>NF(c,4)&&!(0>NF(c,2))&&a.Oh("resume"),g.OF(c,16)&&.5<=e&&a.Oh("seek"),f&&g.OF(c,2)&&aGa(a,c.state,b,d,e))};
aGa=function(a,b,c,d,e,f,h){if(vJ(a,"impression")){var l=1>=Math.abs(d-e);bGa(a,b,l?d:e,c,d,f,h&&l);l&&a.Ub("complete")}};
bGa=function(a,b,c,d,e,f,h){uJ(a,1E3*c,h);0>=e||0>=c||(null==b?0:g.MF(b,16))||(null==b?0:g.MF(b,32))||(JJ(c,.25*e,d)&&(f&&!vJ(a,"first_quartile")&&f("first"),a.Ub("first_quartile")),JJ(c,.5*e,d)&&(f&&!vJ(a,"midpoint")&&f("second"),a.Ub("midpoint")),JJ(c,.75*e,d)&&(f&&!vJ(a,"third_quartile")&&f("third"),a.Ub("third_quartile")))};
cGa=function(a,b){vJ(a,"impression")&&a.Oh(b?"fullscreen":"end_fullscreen")};
dGa=function(a){vJ(a,"impression")&&a.Oh("clickthrough")};
eGa=function(a){a.Oh("active_view_measurable")};
fGa=function(a){vJ(a,"impression")&&!vJ(a,"seek")&&a.Oh("active_view_fully_viewable_audible_half_duration")};
gGa=function(a){vJ(a,"impression")&&!vJ(a,"seek")&&a.Oh("active_view_viewable")};
hGa=function(a){vJ(a,"impression")&&!vJ(a,"seek")&&a.Oh("audio_audible")};
iGa=function(a){vJ(a,"impression")&&!vJ(a,"seek")&&a.Oh("audio_measurable")};
jGa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.zc=d;this.Za=e;this.Ea=f;this.Js=h;this.ub=l;this.gf=m;this.Aa=n;this.Oa=p;this.Ra=q;this.kK=!0;this.md=this.kc=null;this.adCpn=void 0};
kGa=function(a,b,c){var d;tL(a.Oa.get(),"ads_qua","cpn."+sI(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ra.get().Xd(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
lGa=function(a,b){var c,d;tL(a.Oa.get(),"ads_imp","cpn."+sI(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(c=a.Ra.get().Xd(2))?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.V(null==(d=sI(a.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"))?void 0:d.skipOrPreviewRenderer,uL))};
mGa=function(a){return{enterMs:sI(a.Ba,"metadata_type_layout_enter_ms"),exitMs:sI(a.Ba,"metadata_type_layout_exit_ms")}};
nGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){rL.call(this,a,b,c,d,e,h,l,m,n,q);this.Js=f;this.gf=p;this.ub=r;this.Aa=t;this.md=this.kc=null};
oGa=function(a,b){var c;tL(a.Oa.get(),"ads_imp","acpn."+(null==(c=a.Ra.get().Xd(2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
pGa=function(a,b,c){var d;tL(a.Oa.get(),"ads_qua","cpn."+sI(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ra.get().Xd(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
qGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,C,F,H){this.Yb=a;this.Hd=b;this.Jh=c;this.Ra=d;this.zc=e;this.Ea=f;this.Oa=h;this.Js=l;this.Bf=m;this.ub=n;this.gf=p;this.Yc=q;this.Oc=r;this.Ac=t;this.hd=v;this.Lb=w;this.Wf=A;this.Aa=C;this.j=F;this.context=H};
vL=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A){this.Yb=a;this.Hd=b;this.Jh=c;this.Oa=d;this.ub=e;this.gf=f;this.Yc=h;this.Ra=l;this.Ea=m;this.Oc=n;this.Ac=p;this.hd=q;this.Lb=r;this.Wf=t;this.Aa=v;this.zc=w;this.context=A};
rGa=function(a,b,c,d){TE.call(this,"survey-interstitial",a,b,c,d)};
wL=function(a,b,c,d,e){kJ.call(this,c,a,b,d);this.Oa=e;a=sI(b.Ba,"metadata_type_ad_placement_config");this.Za=new rJ(b.Db,e,a,b.layoutId)};
xL=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
tGa=function(a,b,c){c=void 0===c?sGa:c;c.width<sGa.width&&(c=sGa);if(a.width<c.width||a.height<c.height)return{HM:3,FH:501,errorMessage:"ad("+xL(c)+") larger than container("+xL(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{HM:3,FH:501,errorMessage:"ad("+xL(c)+") to container("+xL(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{HM:3,FH:501,errorMessage:"ad("+xL(c)+") covers container("+xL(a)+") center."}};
uGa=function(a,b){var c=sI(a.Ba,"metadata_type_ad_placement_config");return new rJ(a.Db,b,c,a.layoutId)};
yL=function(a){return sI(a.Ba,"metadata_type_invideo_overlay_ad_renderer")};
vGa=function(a,b,c,d){TE.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d};
zL=function(a,b,c,d,e,f,h,l,m,n,p,q){kJ.call(this,f,a,b,e);this.Oa=c;this.D=h;this.Ea=l;this.Lb=m;this.Aa=n;this.K=p;this.G=q;this.Za=uGa(b,c)};
wGa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];sJ().forEach(function(b){a.push(b)});
return{Ld:a,Ee:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
AL=function(a,b,c,d,e,f,h,l,m,n,p,q,r){kJ.call(this,f,a,b,e);this.Oa=c;this.D=h;this.Z=l;this.Ea=m;this.Lb=n;this.Aa=p;this.K=q;this.G=r;this.Za=uGa(b,c)};
xGa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.u(sJ()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Ld:a,Ee:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
BL=function(a){this.Ea=a;this.j=!1};
yGa=function(a,b,c){TE.call(this,"survey",a,{},b,c)};
zGa=function(a,b,c,d,e,f,h){kJ.call(this,c,a,b,d);this.D=e;this.Ea=f;this.Aa=h};
AGa=function(a,b,c,d,e,f,h,l,m,n){this.Ec=a;this.Ea=b;this.Oa=c;this.D=d;this.ub=e;this.B=f;this.C=h;this.Lb=l;this.Aa=m;this.j=n};
BGa=function(a,b,c,d,e,f,h,l,m,n){this.Ec=a;this.Ea=b;this.Oa=c;this.D=d;this.ub=e;this.B=f;this.C=h;this.Lb=l;this.Aa=m;this.j=n};
CL=function(a,b,c,d,e,f,h,l,m,n){DJ.call(this,a,b,c,d,e,f,h,m);this.xn=l;this.Ra=n};
CGa=function(){var a=VDa();a.Ld.push("metadata_type_ad_info_ad_metadata");return a};
DGa=function(a,b,c,d,e,f,h){this.Ec=a;this.Ea=b;this.Oa=c;this.B=d;this.xn=e;this.j=f;this.Ra=h};
EGa=function(a,b,c,d,e,f,h,l){this.Ec=a;this.Ea=b;this.Oa=c;this.B=d;this.xn=e;this.j=f;this.Aa=h;this.Ra=l};
DL=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=a(this.triggerType)};
EL=function(a,b){this.adPodIndex=a;this.j=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0);
var c=0;for(a+=1;a<b.length;a++)c+=b[a];this.adBreakRemainingLengthSeconds=c};
FL=function(a,b,c){this.uv=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=c||a(this.triggerType)};
GL=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=c||a(this.triggerType)};
HL=function(a,b,c,d){this.uv=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=d||a(this.triggerType)};
FGa=function(a){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=a(this.triggerType)};
IL=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)};
JL=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
KL=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)};
GGa=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 qI("Invalid layout exit reason: "+
a)}};
LL=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
HGa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
IGa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
JGa=function(a){this.triggerId=a;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
KGa=function(a,b,c,d,e){this.uv=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)};
ML=function(a,b,c,d,e){this.uv=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=e||a(this.triggerType)};
LGa=function(a,b,c){this.uv=b;this.j=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
NL=function(a,b,c,d,e){this.j=b;this.slotType=c;this.layoutType=d;this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=e||a(this.triggerType)};
MGa=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)};
OL=function(a,b,c){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=c||a(this.triggerType)};
PL=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=c||a(this.triggerType)};
vCa=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)};
NGa=function(a,b){this.ping=a;this.index=b};
OGa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
PGa=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)};
QGa=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=a(this.triggerType)};
RGa=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)};
QL=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=c||a(this.triggerType)};
RL=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
SL=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
TL=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
UL=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
VL=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=c||a(this.triggerType)};
WL=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=a(this.triggerType)};
XL=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=c||a(this.triggerType)};
YL=function(a,b,c,d){this.durationMs=b;this.triggeringLayoutId=c;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=d||a(this.triggerType)};
ZL=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
$L=function(a){return null!=(null==a?void 0:a.layoutId)&&null!=(null==a?void 0:a.layoutType)};
VGa=function(a){if(!$L(a.adLayoutMetadata))return!1;a=a.renderingContent;return g.V(a,aM)||g.V(a,bM)||g.V(a,cM)||g.V(a,SGa)||g.V(a,TGa)||g.V(a,UGa)?!0:!1};
WGa=function(a){return null!=(null==a?void 0:a.durationMs)&&0<(null==a?void 0:a.durationMs)};
XGa=function(a){return!!(a.W9&&a.slot&&a.layout)};
YGa=function(a){var b,c=null==(b=a.config)?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
ZGa=function(a){if(!$L(a.adLayoutMetadata))return!1;a=a.renderingContent;return g.V(a,GJ)||g.V(a,FJ)||g.V(a,ZDa)?!0:!1};
dM=function(a){return void 0!==a.playerVars&&void 0!==a.pings&&void 0!==a.externalVideoId};
iM=function(a){if(!$L(a.adLayoutMetadata))return!1;a=a.renderingContent;var b=g.V(a,$Ga);return b?aHa(b):(b=g.V(a,eM))?dM(b):(b=g.V(a,fM))?void 0!==b.playerVars:(b=g.V(a,GJ))?void 0!==b.durationMilliseconds:g.V(a,gM)||g.V(a,hM)?!0:!1};
aHa=function(a){a=(a.sequentialLayouts||[]).map(function(b){return g.V(b,bHa)});
return 0<a.length&&a.every(iM)};
fHa=function(a){if(!$L(a.adLayoutMetadata))return!1;if(g.V(a.renderingContent,cHa))return!0;a=g.V(a.renderingContent,jM);return g.V(null==a?void 0:a.sidePanel,dHa)||g.V(null==a?void 0:a.sidePanel,eHa)?!0:!1};
kHa=function(a){var b=a.adSlotMetadata;if(void 0===(null==b?void 0:b.slotId)||void 0===(null==b?void 0:b.slotType)||!(gHa(a)||a.slotEntryTrigger&&a.slotFulfillmentTriggers&&a.slotExpirationTriggers))return!1;var c;a=null==(c=a.fulfillmentContent)?void 0:c.fulfilledLayout;return(c=g.V(a,bHa))?iM(c):(c=g.V(a,kM))?fHa(c):(c=g.V(a,hHa))?ZGa(c):(c=g.V(a,iHa))?VGa(c):(a=g.V(a,jHa))?$L(a.adLayoutMetadata)?g.V(a.renderingContent,aM)?!0:!1:!1:!1};
gHa=function(a){var b;a=g.V(null==(b=a.fulfillmentContent)?void 0:b.fulfilledLayout,kM);var c;return a&&"LAYOUT_TYPE_PANEL_QR_CODE"===(null==(c=a.adLayoutMetadata)?void 0:c.layoutType)};
mHa=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.u(a.questions);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=c=void 0,e=(null==(c=g.V(b,lM))?void 0:c.surveyAdQuestionCommon)||(null==(d=g.V(b,mM))?void 0:d.surveyAdQuestionCommon);if(!lHa(e))return!1}return!0};
nHa=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.V(a.questions[0],lM))?void 0:b.surveyAdQuestionCommon)||(null==(c=g.V(a.questions[0],mM))?void 0:c.surveyAdQuestionCommon);b=lHa(d)}else b=!1;else b=!1;return b};
lHa=function(a){if(!a)return!1;a=g.V(a.instreamAdPlayerOverlay,oHa);var b=g.V(null==a?void 0:a.skipOrPreviewRenderer,uL),c=g.V(null==a?void 0:a.adInfoRenderer,nM);return(g.V(null==a?void 0:a.skipOrPreviewRenderer,oM)||b)&&c?!0:!1};
pHa=function(a){return null!=a.linearAds&&$L(a.adLayoutMetadata)};
qHa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
rHa=function(a){if(isNaN(Number(a.timeoutSeconds))||!a.text||!a.ctaButton||!g.V(a.ctaButton,g.pM)||!a.brandImage)return!1;var b;return a.backgroundImage&&g.V(a.backgroundImage,qM)&&(null==(b=g.V(a.backgroundImage,qM))?0:b.landscape)?!0:!1};
rM=function(a,b,c,d,e,f,h){g.I.call(this);this.Aa=a;this.j=b;this.C=d;this.Ra=e;this.D=f;this.B=h};
uHa=function(a,b,c){var d,e=(null!=(d=c.adSlots)?d:[]).map(function(f){return g.V(f,sM)});
c.rC?sI(b.Ba,"metadata_type_allow_pause_ad_break_request_slot_reschedule")?hJ(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId):(a.Aa.get().J.U().L("h5_check_forecasting_renderer_for_throttled_midroll")?(d=c.dw.filter(function(f){var h;
return null!=(null==(h=f.renderer)?void 0:h.clientForecastingAdRenderer)}),0!==d.length?sHa(a.B,d,e,b.slotId,c.ssdaiAdsConfig):hJ(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId)):hJ(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),tHa(a.D,b)):sHa(a.B,c.dw,e,b.slotId,c.ssdaiAdsConfig)};
wHa=function(a,b,c,d,e,f){var h=a.Ra.get().Xd(1);hJ(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return vHa(a.C.get(),c,d,e,h.clientPlaybackNonce,h.Fp,h.daiEnabled,h,f)},b)};
zHa=function(a,b,c,d,e,f,h){b=xHa(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof qI?b:yHa(a,d,e,b,c);return a instanceof qI?a:[a]};
AHa=function(a,b,c,d,e){var f=iJ(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST");d=[new cI({getAdBreakUrl:d.getAdBreakUrl,uS:0,tS:0}),new GBa(!0)];a=b.pauseDurationMs?b.lactThresholdMs?{slotId:f,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new VL(a.j,f),slotFulfillmentTriggers:[new FGa(a.j)],slotExpirationTriggers:[new PL(a.j,e),new SL(a.j,f)],Ya:"core",Ba:new rI(d),adSlotLoggingData:c}:new qI("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new qI("AdPlacementConfig for Pause Ads is missing pause_duration_ms");
return a instanceof qI?a:[a]};
BHa=function(a){var b,c;return void 0!==(null==(b=a.renderer)?void 0:null==(c=b.adBreakServiceRenderer)?void 0:c.getAdBreakUrl)};
tM=function(a,b,c){if(a.beforeContentVideoIdStartedTrigger)a=a.beforeContentVideoIdStartedTrigger?new FL(oI,b,a.id):new qI("Not able to create BeforeContentVideoIdStartedTrigger");else{if(a.layoutIdExitedTrigger){var d;b=null!=(d=a.layoutIdExitedTrigger)&&d.triggeringLayoutId?new LL(oI,a.layoutIdExitedTrigger.triggeringLayoutId,a.id):new qI("Not able to create LayoutIdExitedTrigger")}else{if(a.layoutExitedForReasonTrigger){var e,f;(null==(e=a.layoutExitedForReasonTrigger)?0:e.triggeringLayoutId)&&
(null==(f=a.layoutExitedForReasonTrigger)?0:f.layoutExitReason)?(b=GGa(a.layoutExitedForReasonTrigger.layoutExitReason),a=b instanceof qI?b:new KL(oI,a.layoutExitedForReasonTrigger.triggeringLayoutId,[b],a.id)):a=new qI("Not able to create LayoutIdExitedForReasonTrigger")}else{if(a.onLayoutSelfExitRequestedTrigger){var h;b=null!=(h=a.onLayoutSelfExitRequestedTrigger)&&h.triggeringLayoutId?new OL(oI,a.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,a.id):new qI("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(a.onNewPlaybackAfterContentVideoIdTrigger)a=
a.onNewPlaybackAfterContentVideoIdTrigger?new PL(oI,b,a.id):new qI("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(a.skipRequestedTrigger){var l;b=null!=(l=a.skipRequestedTrigger)&&l.triggeringLayoutId?new QL(oI,a.skipRequestedTrigger.triggeringLayoutId,a.id):new qI("Not able to create SkipRequestedTrigger")}else if(a.slotIdEnteredTrigger){var m;b=null!=(m=a.slotIdEnteredTrigger)&&m.triggeringSlotId?new RL(oI,a.slotIdEnteredTrigger.triggeringSlotId,a.id):new qI("Not able to create SlotIdEnteredTrigger")}else if(a.slotIdExitedTrigger){var n;
b=null!=(n=a.slotIdExitedTrigger)&&n.triggeringSlotId?new SL(oI,a.slotIdExitedTrigger.triggeringSlotId,a.id):new qI("Not able to create SkipRequestedTrigger")}else if(a.surveySubmittedTrigger){var p;b=null!=(p=a.surveySubmittedTrigger)&&p.triggeringLayoutId?new XL(oI,a.surveySubmittedTrigger.triggeringLayoutId,a.id):new qI("Not able to create SurveySubmittedTrigger")}else{if(a.mediaResumedTrigger)a=a.mediaResumedTrigger&&a.id?new JGa(a.id):new qI("Not able to create MediaResumedTrigger");else{if(a.closeRequestedTrigger){var q;
b=null!=(q=a.closeRequestedTrigger)&&q.triggeringLayoutId?new GL(oI,a.closeRequestedTrigger.triggeringLayoutId,a.id):new qI("Not able to create CloseRequestedTrigger")}else if(a.slotIdScheduledTrigger){var r;b=null!=(r=a.slotIdScheduledTrigger)&&r.triggeringSlotId?new VL(oI,a.slotIdScheduledTrigger.triggeringSlotId,a.id):new qI("Not able to create SlotIdScheduledTrigger")}else{if(a.mediaTimeRangeTrigger){var t;d=Number(null==(t=a.mediaTimeRangeTrigger)?void 0:t.offsetStartMilliseconds);var v;h=Number(null==
(v=a.mediaTimeRangeTrigger)?void 0:v.offsetEndMilliseconds);isFinite(d)&&isFinite(h)?(v=h,-1===v&&(v=c),c=d>v?new qI("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:d,offsetEndMs:v},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",v===c&&d-500<=v):new fw(d,v),a=c instanceof qI?c:new ML(oI,b,c,!1,a.id)):a=new qI("Not able to create MediaTimeRangeTrigger")}else if(a.contentVideoIdEndedTrigger)a=a.contentVideoIdEndedTrigger?new HL(oI,b,!1,a.id):new qI("Not able to create ContentVideoIdEndedTrigger");
else{if(a.layoutIdEnteredTrigger){var w;b=null!=(w=a.layoutIdEnteredTrigger)&&w.triggeringLayoutId?new JL(oI,a.layoutIdEnteredTrigger.triggeringLayoutId,a.id):new qI("Not able to create LayoutIdEnteredTrigger")}else if(a.timeRelativeToLayoutEnterTrigger){var A;b=null!=(A=a.timeRelativeToLayoutEnterTrigger)&&A.triggeringLayoutId?new YL(oI,Number(a.timeRelativeToLayoutEnterTrigger.durationMs),a.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,a.id):new qI("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(a.onDifferentLayoutIdEnteredTrigger){var C;
b=null!=(C=a.onDifferentLayoutIdEnteredTrigger)&&C.triggeringLayoutId&&a.onDifferentLayoutIdEnteredTrigger.slotType&&a.onDifferentLayoutIdEnteredTrigger.layoutType?new NL(oI,a.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,a.onDifferentLayoutIdEnteredTrigger.slotType,a.onDifferentLayoutIdEnteredTrigger.layoutType,a.id):new qI("Not able to create CloseRequestedTrigger")}else b=new qI("Not able to convert an AdsControlflowTrigger.");a=b}b=a}a=b}b=a}a=b}b=a}a=b}b=a}a=b}return a};
DHa=function(a,b,c,d,e,f,h,l){return null===b?new qI("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:b,ActionCompanionAdRenderer:d}):[CHa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new rI([new vH(d),new zH(e)]);n=WI(c.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ya:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Db:new Map,
layoutExitNormalTriggers:[new PL(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:"core",Ba:q,ac:m(r),adLayoutLoggingData:p}})]};
EHa=function(a,b,c,d,e,f,h,l){return null===b?new qI("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:b,TopBannerImageTextIconButtonedLayoutViewModel:d}):[CHa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new rI([new wH(d),new zH(e)]);n=WI(c.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ya:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
Db:new Map,layoutExitNormalTriggers:[new PL(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:"core",Ba:q,ac:m(r),adLayoutLoggingData:p}})]};
IHa=function(a,b,c,d,e,f){if(!f)for(b=g.u(b),f=b.next();!f.done;f=b.next())f=f.value,uM(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return FHa(p)});
b=[];f=g.u(a);for(var h=f.next(),l={};!h.done;l={ow:void 0},h=f.next()){l.ow=h.value;h=g.u(l.ow.KN);for(var m=h.next(),n={};!m.done;n={yn:void 0},m=h.next())n.yn=m.value,m=function(p,q){return function(r){return p.yn.EO(r,q.ow.instreamVideoAdRenderer.elementId,p.yn.JN)}}(n,l),n.yn.isContentVideoCompanion?b.push(GHa(c,d,e,l.ow.instreamVideoAdRenderer.elementId,n.yn.associatedCompositePlayerBytesLayoutId,n.yn.adSlotLoggingData,m)):1<a.length?b.push(HHa(c,d,e,l.ow.instreamVideoAdRenderer.elementId,n.yn.adSlotLoggingData,
function(p,q){return function(r){return p.yn.EO(r,q.ow.instreamVideoAdRenderer.elementId,p.yn.JN,p.yn.associatedCompositePlayerBytesLayoutId)}}(n,l))):b.push(HHa(c,d,e,l.ow.instreamVideoAdRenderer.elementId,n.yn.adSlotLoggingData,m))}return b};
uM=function(a,b,c){if(b=JHa(b)){b=g.u(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=KHa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.hF=c)}else KF("InstreamVideoAdRenderer without externalVideoId")}};
JHa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&g.V(a.sandwichedLinearAdRenderer.linearAd,eM);if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.u(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,g.V(c,eM)&&b.push(g.V(c,eM));return b}return null};
FHa=function(a){if(void 0===a.instreamVideoAdRenderer)return KF("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.u(a.KN),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.EO)return!1;if(void 0===c.JN)return KF("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.hF||void 0===c.kI||a.hF!==c.kI&&"AD_PLACEMENT_KIND_SELF_START"!==c.kI)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return KF("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.hF,"matching APSR kind":c.kI}),!1}return!0};
KHa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,hF:void 0,adVideoId:b,KN:[]});return a.get(b)};
vM=function(a,b,c,d,e,f,h,l,m){e?KHa(a,e).KN.push({Aob:b,kI:c,isContentVideoCompanion:d,JN:h,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:l,EO:m}):KF("Companion AdPlacementSupportedRenderer without adVideoId")};
LHa=function(a){var b,c=null==(b=sI(a.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=sI(a.Ba,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=sI(a.Ba,"metadata_type_content_cpn"),f=sI(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),h=sI(a.Ba,"metadata_type_player_underlay_renderer"),l=sI(a.Ba,"metadata_type_ad_placement_config"),m=sI(a.Ba,"metadata_type_video_length_seconds");var n=mI(a.Ba,"metadata_type_layout_enter_ms")&&mI(a.Ba,
"metadata_type_layout_exit_ms")?(sI(a.Ba,"metadata_type_layout_exit_ms")-sI(a.Ba,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Lq:d,contentCpn:e,jS:c,LN:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,EK:n,inPlayerLayoutId:sI(a.Ba,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:sI(a.Ba,"metadata_type_linked_in_player_slot_id")}};
OHa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v){d=iJ(d,"SLOT_TYPE_PLAYER_BYTES");a=MHa(e,a,h,c,d,m,n);if(a instanceof qI)return a;var w;n=null==(w=sI(a.Ba,"metadata_type_fulfilled_layout"))?void 0:w.layoutId;if(!n)return new qI("Invalid adNotify layout");b=NHa(n,e,f,c,l,b,m,p,q,r,t,v,h);return b instanceof qI?b:[a].concat(g.qa(b))};
NHa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=PHa(b,c,d,f,h,l,m,n,p,q,r);if(c instanceof qI)return c;a=QHa(b,a,h,e,c);return a instanceof qI?a:[].concat(g.qa(a.qg),[a.Xx])};
SHa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=PHa(a,b,c,e,f,l,m,n,p,q,r,t);if(b instanceof qI)return b;a=RHa(a,c,f,h,d,l.dc,b);return a instanceof qI?a:a.qg.concat(a.Xx)};
PHa=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=wM(d,c,n);return r instanceof pI?new qI(r):n.J.U().experiments.fb("html5_refactor_in_player_slot_generation")?function(t){var v=new EL(0,[r.xp]);t=THa(b,r.layoutId,r.Uo,c,xM(r.playerVars,r.OB,f,m,v),r.xp,e,v,h(t),l.get(r.Uo.externalVideoId),q);v=[];if(r.Uo.playerOverlay.instreamAdPlayerOverlayRenderer){var w=LHa(t);if(!w)return KF("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,t),{layout:t,qg:[]};
v=[UHa(a,w.contentCpn,w.Lq,function(C){return yM(b,C.slotId,"core",w,wI(p,C))},w.inPlayerSlotId)].concat(g.qa(v));
if(w.instreamAdPlayerUnderlayRenderer&&VHa(n)){var A=w.instreamAdPlayerUnderlayRenderer;v=[WHa(a,w.contentCpn,w.Lq,function(C){return XHa(b,C.slotId,A,w.adPlacementConfig,w.Lq,wI(p,C))})].concat(g.qa(v))}}return{layout:t,
qg:v}}:function(t){var v=new EL(0,[r.xp]);
return{layout:THa(b,r.layoutId,r.Uo,c,xM(r.playerVars,r.OB,f,m,v),r.xp,e,v,h(t),l.get(r.Uo.externalVideoId),q),qg:[]}}};
wM=function(a,b,c){if(!a.playerVars)return new pI("No playerVars available in InstreamVideoAdRenderer.");var d,e;if(null==a.elementId||null==a.playerVars||null==a.playerOverlay||null==(null==(d=a.playerOverlay)?void 0:d.instreamAdPlayerOverlayRenderer)&&null==(null==(e=a.playerOverlay)?void 0:e.playerOverlayLayoutRenderer)||null==a.pings||null==a.externalVideoId)return new pI("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});d=FA(a.playerVars);e=Number(d.length_seconds);
isNaN(e)&&(e=0,KF("Expected valid length seconds in player vars but got NaN"));if(c.qf("AD_PLACEMENT_KIND_START"===b.kind)){if(void 0===a.layoutId)return new pI("Expected server generated layout ID in instreamVideoAdRenderer");b=a.layoutId}else b=a.elementId;return{layoutId:b,Uo:a,playerVars:d,OB:a.playerVars,xp:e}};
xM=function(a,b,c,d,e){a.iv_load_policy=d;b=FA(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){KF(f)}c.cj&&(a.ctrl=c.cj);c.Ij&&(a.ytr=c.Ij);c.ww&&(a.ytrcc=c.ww);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.fn&&(a.vss_credentials_token_type=c.fn),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.j&&(a.slot_pos=e.adPodIndex);a.autoplay="1";return a};
YHa=function(a){var b=new Map;a=g.u(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};
ZHa=function(a){return"SLOT_TYPE_PLAYER_BYTES"===a.adSlotMetadata.slotType};
cIa=function(a,b,c,d,e,f,h,l,m,n,p){for(var q=[],r=g.u(a),t=r.next();!t.done;t=r.next()){t=t.value;var v;if(v=!gHa(t)){var w=void 0;v="SLOT_TYPE_IN_PLAYER"!==(null==t?void 0:null==(w=t.adSlotMetadata)?void 0:w.slotType)}if(v){w=ZHa(t)&&!!t.slotEntryTrigger.beforeContentVideoIdStartedTrigger;var A=m.qf(w),C=$Ha(t,n,d,c.Fp,A);if(C instanceof qI)return C;var F=void 0;v={slotId:t.adSlotMetadata.slotId,slotType:t.adSlotMetadata.slotType,slotPhysicalPosition:null!=(F=t.adSlotMetadata.slotPhysicalPosition)?
F:1,Ya:"core",slotEntryTrigger:C.slotEntryTrigger,slotFulfillmentTriggers:C.slotFulfillmentTriggers,slotExpirationTriggers:C.slotExpirationTriggers};if(C=g.V(t.fulfillmentContent.fulfilledLayout,bHa)){if(!iM(C))return new qI("Invalid PlayerBytesAdLayoutRenderer");A=aIa(v,t.adSlotMetadata.triggerEvent,C,b,c,d,e,f,h,l,m,n,a,p,A);if(A instanceof qI)return A;C=[];ZHa(t)&&C.push(new lI({mu:ZHa(t)&&!!t.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));c.dc&&C.push(new iI({}));C.push(new kI(w));t=Object.assign({},
v,{Ba:new rI(C),fulfilledLayout:A.layout,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push.apply(q,g.qa(A.qg));q.push(t)}else if(w=g.V(t.fulfillmentContent.fulfilledLayout,kM),C=A=void 0,"LAYOUT_TYPE_PANEL_QR_CODE"!==(null==(A=w)?void 0:null==(C=A.adLayoutMetadata)?void 0:C.layoutType))if(w){if(!fHa(w))return new qI("Invalid PlayerUnderlayAdLayoutRenderer");A=w;F=d;var H=c.Fp,M=f;C=v;w=t.adSlotMetadata.triggerEvent;if("LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE"===A.adLayoutMetadata.layoutType){var L=
g.V(A.renderingContent,jM);if(L)if(L=g.V(L.sidePanel,eHa)){var R={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,Ya:"core"};F=zM(A,F,H);w=F instanceof qI?F:Object.assign({},R,{renderingContent:A.renderingContent,Db:new Map([["impression",L.impressionPings||[]],["resume",L.resumePings||[]]])},F,{ac:wI(M,C)(R),Ba:new rI([new zH(AM(w))]),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData})}else w=new qI("DismissablePanelTextPortraitImageRenderer is missing");else w=
new qI("SqueezebackPlayerSidePanelRenderer is missing")}else"LAYOUT_TYPE_DISPLAY_TRACKING"===A.adLayoutMetadata.layoutType?g.V(A.renderingContent,cHa)?(L={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,Ya:"core"},F=zM(A,F,H),w=F instanceof qI?F:Object.assign({},L,{renderingContent:A.renderingContent,Db:new Map},F,{ac:wI(M,C)(L),Ba:new rI([new zH(AM(w))]),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData})):w=new qI("CounterfactualRenderer is missing"):w=new qI("LayoutType ["+
A.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");if(w instanceof qI)return w;t=Object.assign({},v,{Ba:new rI([]),fulfilledLayout:w,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else if(w=g.V(t.fulfillmentContent.fulfilledLayout,iHa)){if(!VGa(w))return new qI("Invalid AboveFeedAdLayoutRenderer");w=bIa(w,d,c.Fp,f,v,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId);if(w instanceof qI)return w;t=Object.assign({},v,{Ba:new rI([]),fulfilledLayout:w,
adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else if(w=g.V(t.fulfillmentContent.fulfilledLayout,jHa)){if(!$L(w.adLayoutMetadata)||!g.V(w.renderingContent,aM))return new qI("Invalid BelowPlayerAdLayoutRenderer");w=bIa(w,d,c.Fp,f,v,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId);if(w instanceof qI)return w;t=Object.assign({},v,{Ba:new rI([]),fulfilledLayout:w,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else return new qI("Unable to retrieve a client slot ["+
v.slotType+"] from a given AdSlotRenderer")}}return q};
bIa=function(a,b,c,d,e,f,h){var l={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,Ya:"core"};b=zM(a,b,c);if(b instanceof qI)return b;c=[];c.push(new zH(AM(f)));"SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"===f&&void 0!==h&&c.push(new LH(h));return Object.assign({},l,{renderingContent:a.renderingContent,Db:new Map([["impression",dIa(a)]])},b,{ac:wI(d,e)(l),Ba:new rI(c),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData})};
aIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v){var w=zM(c,f,e.Fp);if(w instanceof qI)return w;if(g.V(c.renderingContent,eM)){m=eIa([c],e,m);if(m instanceof qI)return m;if(1!==m.length)return new qI("Only expected one media layout.");a=fIa(a,b,c,w,m[0],void 0,"core",d,f,h,l,n,r,t,v,e.Fp,q);return a instanceof qI?a:{layout:a.layout,qg:a.lf?[a.lf]:[]}}var A=g.V(c.renderingContent,$Ga);if(A){if(!$L(c.adLayoutMetadata))return new qI("Invalid ad layout metadata");if(!aHa(A))return new qI("Invalid sequential layout");
A=A.sequentialLayouts.map(function(C){return C.playerBytesAdLayoutRenderer});
a=gIa(a,b,c.adLayoutMetadata,w,A,d,f,e,m,h,l,n,p,q,v,r,t);return a instanceof qI?a:{layout:a.B7,qg:a.qg}}return new qI("Not able to convert a sequential layout")};
gIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A){var C=new DH({current:null}),F=eIa(e,l,m);if(F instanceof qI)return F;m=[];for(var H=[],M=void 0,L=0;L<e.length;L++){var R=e[L];if(g.V(R.renderingContent,eM)){M=fIa(a,b,R,hIa,F[L],fL(r)&&gL(r)?F[L+1]:void 0,"adapter",f,h,n,p,q,w,A,v,l.Fp,t,C);if(M instanceof qI)return M;m.push(M.layout);M.lf&&H.push(M.lf);M=F[L]}else if(g.V(R.renderingContent,fM)){var ba=a,ma=p;if(iM(R)){var na=g.V(R.renderingContent,fM);if(na&&void 0!==na.playerVars){var ia={layoutId:R.adLayoutMetadata.layoutId,
layoutType:R.adLayoutMetadata.layoutType,Ya:"adapter"};na=FA(na.playerVars);na.autoplay="1";R=Object.assign({},ia,hIa,{renderingContent:R.renderingContent,Ba:new rI([new $H({}),new zH({kind:"AD_PLACEMENT_KIND_START"}),new PH({current:null}),new TH(na)]),Db:new Map,ac:wI(ma,ba)(ia),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData})}else R=new qI("Invalid ad intro renderer")}else R=new qI("Invalid PlayerBytesAdLayoutRenderer");if(R instanceof qI)return R;m.push(R)}else if(g.V(R.renderingContent,
GJ))if(A){R=iIa(a,R,p,AM(b),M);if(R instanceof qI)return R;m.push(R);R=jIa(w,R,h,l.Fp,p,t,v,C);if(R instanceof qI)return R;if(R)H.push(R);else return new qI("Not able to retrieve InPlayer slot for endcap")}else{a:{ba=R.adLayoutMetadata.layoutId;ma=g.u(f);for(ia=ma.next();!ia.done;ia=ma.next()){ia=ia.value;var sa=na=void 0,aa=(null==(na=ia.renderer)?void 0:null==(sa=na.linearAdSequenceRenderer)?void 0:sa.linearAds)||[];na=g.u(aa);for(sa=na.next();!sa.done;sa=na.next())if((sa=g.V(sa.value,GJ))&&void 0!==
sa.inPlayerSlotId&&void 0!==sa.inPlayerLayoutId&&void 0!==sa.associatedPlayerBytesLayoutId&&sa.associatedPlayerBytesLayoutId===ba){ba={gJ:sa,adPlacementConfig:ia.config.adPlacementConfig};break a}}ba=new qI("Not able to find associated InPlayer slot for endcap")}if(ba instanceof qI)return ba;R=iIa(a,R,p,ba.adPlacementConfig,M);if(R instanceof qI)return R;m.push(R);R=kIa(R.layoutId,t,h,ba,C,p);if(R instanceof qI)return R;H.push(R)}}b={layoutId:c.layoutId,layoutType:c.layoutType,Ya:"core"};return{B7:Object.assign({},
b,d,{Fy:m,Db:new Map,Ba:new rI([C]),ac:wI(p,a)(b)}),qg:H}};
fIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,C){if(!iM(c))return new qI("Invalid PlayerBytesAdLayoutRenderer");var F=g.V(c.renderingContent,eM);(null==F?0:F.pings)?F=qJ(F.pings):(F=g.V(c.renderingContent,GJ),F=(null==F?0:F.skipPings)?new Map([["skip",F.skipPings]]):new Map);if(F instanceof qI)return F;h={layoutId:c.adLayoutMetadata.layoutId,layoutType:c.adLayoutMetadata.layoutType,Ya:h};a:{var H=c.adLayoutMetadata.layoutId,M=g.V(c.renderingContent,eM);if(M&&dM(M)){var L=[];if(t)L.push(new zH(AM(b)));
else{b:{l=g.u(l);for(b=l.next();!b.done;b=l.next()){b=b.value;var R=JHa(b.renderer)||[],ba=g.u(R);for(R=ba.next();!R.done;R=ba.next())if(R=R.value,R.associatedPlayerBytesLayoutId===H){R.associatedPlayerBytesLayoutId?(l=R.playerOverlay,ba=void 0!==l&&void 0!==l.playerOverlayLayoutRenderer&&void 0!==l.playerOverlayLayoutRenderer.inPlayerSlotId&&void 0!==l.playerOverlayLayoutRenderer.inPlayerLayoutId,l=void 0!==l&&void 0!==l.instreamAdPlayerOverlayRenderer&&void 0!==l.instreamAdPlayerOverlayRenderer.inPlayerSlotId&&
void 0!==l.instreamAdPlayerOverlayRenderer.inPlayerLayoutId||ba):l=!1;b=l?{instreamVideoAdRenderer:R,adPlacementConfig:b.config.adPlacementConfig}:new qI("Invalid InPlayer shim");break b}}b=new qI("Not able to find associated InPlayer slot")}if(b instanceof qI){f=b;break a}l=b.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;R=b.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var ma;ba=null!=(ma=null==l?void 0:l.inPlayerSlotId)?ma:null==R?void 0:R.inPlayerSlotId;
var na;ma=null!=(na=null==l?void 0:l.inPlayerLayoutId)?na:null==R?void 0:R.inPlayerLayoutId;if(void 0===ba){f=new qI("InPlayer shim slot id is undefined");break a}if(void 0===ma){f=new qI("InPlayer shim layout id is undefined");break a}L.push(new MH(ma),new OH(ba),new YH(e.ew.adPodIndex),new zH(b.adPlacementConfig));l&&L.push(new GH(l));R&&L.push(new HH(R))}L.push(new AH(e.ew),new EH(M.externalVideoId),new FH(m),new hI({impressionCommands:M.impressionCommands,abandonCommands:M.onAbandonCommands,completeCommands:M.completeCommands,
progressCommands:M.adVideoProgressCommands}),new TH(e.RD),new PH({current:null}),new SH(e.Sca.xp),new jI(pJ(M.pings)),new BH(e.ew.adPodIndex));(e=lIa(H,r))&&L.push(new JH(e));f&&L.push(new UH(f.RD));M.adNextParams&&L.push(new xH(M.adNextParams));M.clickthroughEndpoint&&L.push(new yH(M.clickthroughEndpoint));M.legacyInfoCardVastExtension&&L.push(new gI(M.legacyInfoCardVastExtension));M.sodarExtensionData&&L.push(new VH(M.sodarExtensionData));C&&M.adPodSkipTarget&&0<M.adPodSkipTarget&&(L.push(C),L.push(new CH(M.adPodSkipTarget)));
(f=n.get(M.externalVideoId))&&L.push(new dI(f));f=L}else f=new qI("Invalid vod media renderer")}if(f instanceof qI)return f;a=Object.assign({},h,d,{Db:F,renderingContent:c.renderingContent,Ba:new rI(f),ac:wI(p,a)(h),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData});c=g.V(c.renderingContent,eM);if(!c||!dM(c))return new qI("Invalid meida renderer");q=KHa(q,c.externalVideoId);q.instreamVideoAdRenderer=c;q.hF="AD_PLACEMENT_KIND_START";return t?(m=jIa(r,a,m,w,p,A,v,C),m instanceof qI?m:lIa(a.layoutId,
r)&&m?{layout:Object.assign({},a,{Ba:new rI(f.concat(new sBa(m)))})}:{layout:a,lf:m}):{layout:a}};
iIa=function(a,b,c,d,e){if(!iM(b))return new qI("Invalid PlayerBytesAdLayoutRenderer");var f=g.V(b.renderingContent,GJ);if(!f||void 0===f.durationMilliseconds)return new qI("Invalid endcap renderer");var h={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,Ya:"adapter"};d=[new fI(f.durationMilliseconds),new hI({impressionCommands:void 0,abandonCommands:f.abandonCommands?[{commandExecutorCommand:f.abandonCommands}]:void 0,completeCommands:f.completionCommands}),new zH(d),
new NH("LAYOUT_TYPE_ENDCAP")];if(e){d.push(new BH(e.ew.adPodIndex-1));d.push(new YH(e.ew.adPodIndex));var l;d.push(new CH(null!=(l=e.adPodSkipTarget)?l:-1))}return Object.assign({},h,hIa,{renderingContent:b.renderingContent,Ba:new rI(d),Db:f.skipPings?new Map([["skip",f.skipPings]]):new Map,ac:wI(c,a)(h),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData})};
jIa=function(a,b,c,d,e,f,h,l){a=a.filter(function(n){return"SLOT_TYPE_IN_PLAYER"===n.adSlotMetadata.slotType&&n.adSlotMetadata.triggeringSourceLayoutId===b.layoutId});
if(0!==a.length){if(1!==a.length)return new qI("Invalid InPlayer slot association for the given PlayerBytes layout");a=a[0];h=$Ha(a,f,c,d,h);if(h instanceof qI)return h;var m;f={slotId:a.adSlotMetadata.slotId,slotType:a.adSlotMetadata.slotType,slotPhysicalPosition:null!=(m=a.adSlotMetadata.slotPhysicalPosition)?m:1,Ya:"core",slotEntryTrigger:h.slotEntryTrigger,slotFulfillmentTriggers:h.slotFulfillmentTriggers,slotExpirationTriggers:h.slotExpirationTriggers};m=g.V(a.fulfillmentContent.fulfilledLayout,
hHa);if(!m||!ZGa(m))return new qI("Invalid InPlayerAdLayoutRenderer");h={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,Ya:"core"};c=zM(m,c,d);if(c instanceof qI)return c;d=[];if("LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===m.adLayoutMetadata.layoutType)d.push.apply(d,g.qa(mIa(a.adSlotMetadata.triggerEvent,b)));else if("LAYOUT_TYPE_ENDCAP"===m.adLayoutMetadata.layoutType)d.push(new zH(AM(a.adSlotMetadata.triggerEvent))),l&&d.push(l);else return new qI("Not able to parse an SDF InPlayer layout");
e=Object.assign({},h,c,{renderingContent:m.renderingContent,Db:new Map,ac:wI(e,f)(h),Ba:new rI(d),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},f,{fulfilledLayout:e,Ba:new rI([])})}};
mIa=function(a,b){var c=[];c.push(new zH(AM(a)));c.push(new LH(b.layoutId));(a=sI(b.Ba,"metadata_type_player_bytes_callback_ref"))&&c.push(new PH(a));(a=sI(b.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))&&c.push(new DH(a));(a=sI(b.Ba,"metadata_type_remote_slots_data"))&&c.push(new dI(a));(a=sI(b.Ba,"metadata_type_ad_next_params"))&&c.push(new xH(a));(a=sI(b.Ba,"metadata_type_ad_video_clickthrough_endpoint"))&&c.push(new yH(a));(a=sI(b.Ba,"metadata_type_ad_pod_info"))&&c.push(new AH(a));(b=
sI(b.Ba,"metadata_type_ad_video_id"))&&c.push(new EH(b));return c};
kIa=function(a,b,c,d,e,f){function h(n){return BM(b,n)}
var l=d.gJ.inPlayerSlotId,m={layoutId:d.gJ.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Ya:"core"};c={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:new JL(h,a),slotFulfillmentTriggers:[new RL(h,l)],slotExpirationTriggers:[new SL(h,l),new PL(h,c)]};a=Object.assign({},m,{layoutExitNormalTriggers:[new LL(h,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Db:new Map,Ba:new rI([new KH(d.gJ),new zH(d.adPlacementConfig),
e]),ac:wI(f,c)(m),adLayoutLoggingData:d.gJ.adLayoutLoggingData});return Object.assign({},c,{Ba:new rI([new bI(a)])})};
lIa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,"SLOT_TYPE_PLAYER_UNDERLAY"===c.adSlotMetadata.slotType){var d=g.V(c.fulfillmentContent.fulfilledLayout,kM);if(d&&(d=g.V(d.renderingContent,jM))&&d.associatedPlayerBytesLayoutId===a)return c}};
$Ha=function(a,b,c,d,e){var f=nIa(tM(a.slotEntryTrigger,c,d),e,a,b);if(f instanceof qI)return f;for(var h=[],l=g.u(a.slotFulfillmentTriggers),m=l.next();!m.done;m=l.next()){m=tM(m.value,c,d);if(m instanceof qI)return m;h.push(m)}h=oIa(h,e,a,b);b=[];a=g.u(a.slotExpirationTriggers);for(e=a.next();!e.done;e=a.next()){e=tM(e.value,c,d);if(e instanceof qI)return e;b.push(e)}return{slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b}};
nIa=function(a,b,c,d){return b&&"SLOT_TYPE_PLAYER_BYTES"===c.adSlotMetadata.slotType&&a instanceof FL?new DL(function(e){return BM(d,e)},c.adSlotMetadata.slotId):a};
oIa=function(a,b,c,d){return b&&"SLOT_TYPE_PLAYER_BYTES"===c.adSlotMetadata.slotType?a.map(function(e){return e instanceof RL?new VL(function(f){return BM(d,f)},c.adSlotMetadata.slotId):e}):a};
zM=function(a,b,c){for(var d=[],e=g.u(a.layoutExitNormalTriggers||[]),f=e.next();!f.done;f=e.next()){f=tM(f.value,b,c);if(f instanceof qI)return f;d.push(f)}e=[];f=g.u(a.layoutExitSkipTriggers||[]);for(var h=f.next();!h.done;h=f.next()){h=tM(h.value,b,c);if(h instanceof qI)return h;e.push(h)}f=[];h=g.u(a.layoutExitMuteTriggers||[]);for(var l=h.next();!l.done;l=h.next()){l=tM(l.value,b,c);if(l instanceof qI)return l;f.push(l)}h=[];a=g.u(a.layoutExitUserInputSubmittedTriggers||[]);for(l=a.next();!l.done;l=
a.next()){l=tM(l.value,b,c);if(l instanceof qI)return l;h.push(l)}return{layoutExitNormalTriggers:d,layoutExitSkipTriggers:e,layoutExitMuteTriggers:f,layoutExitUserInputSubmittedTriggers:h,Uc:[]}};
eIa=function(a,b,c){for(var d=[],e=g.u(a),f=e.next();!f.done;f=e.next())if(f=g.V(f.value.renderingContent,eM)){if(!dM(f))return new qI("Invalid vod media renderer");d.push(pIa(f))}e=d.map(function(q){return q.xp});
f=[];for(var h=0,l=0;l<a.length;l++){var m=g.V(a[l].renderingContent,eM);if(m){var n=new EL(h,e),p=xM(d[h].playerVars,d[h].OB,b,c,n);f[l]={ew:n,adPodSkipTarget:m.adPodSkipTarget,Sca:d[h],RD:p};h++}}return f};
pIa=function(a){var b=FA(a.playerVars),c=Number(b.length_seconds);isNaN(c)&&(c=0,KF("Expected valid length seconds in player vars but got NaN"));return{playerVars:b,OB:a.playerVars,xp:c}};
AM=function(a){switch(a){case "SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED":return{kind:"AD_PLACEMENT_KIND_LAYOUT_ID_ENTERED"};case "SLOT_TRIGGER_EVENT_BEFORE_CONTENT":return{kind:"AD_PLACEMENT_KIND_START"};case "SLOT_TRIGGER_EVENT_CONTENT_OFFSET":return{kind:"AD_PLACEMENT_KIND_MILLISECONDS"};case "SLOT_TRIGGER_EVENT_AFTER_CONTENT":return{kind:"AD_PLACEMENT_KIND_END"};case "SLOT_TRIGGER_EVENT_CONTENT_PAUSED":return{kind:"AD_PLACEMENT_KIND_PAUSE"};default:return{kind:"AD_PLACEMENT_KIND_UNKNOWN"}}};
dIa=function(a){if(g.V(a.renderingContent,cM)){var b;return(null==(b=g.V(a.renderingContent,cM))?void 0:b.impressionPings)||[]}if(g.V(a.renderingContent,aM)){var c;return(null==(c=g.V(a.renderingContent,aM))?void 0:c.impressionPings)||[]}if(g.V(a.renderingContent,bM)){var d;return(null==(d=g.V(a.renderingContent,bM))?void 0:d.impressionPings)||[]}return[]};
qIa=function(a){var b=0;a=g.u(a.questions);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c=g.V(c,lM)||g.V(c,mM)){var d=void 0;b+=(null==(d=c.surveyAdQuestionCommon)?void 0:d.durationMilliseconds)||0}return b};
rIa=function(a){var b,c,d,e,f=(null==(c=g.V(null==(b=a.questions)?void 0:b[0],lM))?void 0:c.surveyAdQuestionCommon)||(null==(e=g.V(null==(d=a.questions)?void 0:d[0],mM))?void 0:e.surveyAdQuestionCommon),h;b=[].concat(g.qa((null==(h=a.playbackCommands)?void 0:h.instreamAdCompleteCommands)||[]),g.qa((null==f?void 0:f.timeoutCommands)||[]));var l,m,n,p,q,r,t,v,w,A,C,F,H,M,L,R,ba,ma,na,ia;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==(r=a.playbackCommands)?void 0:r.rewindCommands,resumeCommands:null==(t=a.playbackCommands)?void 0:t.resumeCommands,skipCommands:null==(v=a.playbackCommands)?void 0:v.skipCommands,progressCommands:null==(w=a.playbackCommands)?void 0:w.progressCommands,Qob:null==
(A=a.playbackCommands)?void 0:A.clickthroughCommands,fullscreenCommands:null==(C=a.playbackCommands)?void 0:C.fullscreenCommands,activeViewViewableCommands:null==(F=a.playbackCommands)?void 0:F.activeViewViewableCommands,activeViewMeasurableCommands:null==(H=a.playbackCommands)?void 0:H.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null==(M=a.playbackCommands)?void 0:M.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:null==(L=a.playbackCommands)?
void 0:null==(R=L.activeViewTracking)?void 0:R.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:null==(ba=a.playbackCommands)?void 0:null==(ma=ba.activeViewTracking)?void 0:ma.activeViewAudioMeasurableCommands,endFullscreenCommands:null==(na=a.playbackCommands)?void 0:na.endFullscreenCommands,abandonCommands:null==(ia=a.playbackCommands)?void 0:ia.abandonCommands,completeCommands:b}};
uIa=function(a,b,c,d,e,f,h){return function(l,m){return sIa(a,m.slotId,l,f,function(n,p){var q=m.layoutId;n=h(n);return tIa(b,q,p,e,n,"LAYOUT_TYPE_SURVEY",[new wBa(c),d],c.adLayoutLoggingData)})}};
xIa=function(a,b,c,d,e,f,h){if(!vIa(a))return new qI("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[wIa(f,b,c,d,function(m){var n=m.slotId;m=h(m);n=WI(e.B.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Ya:"core"},q=new LL(e.j,d);return{layoutId:n,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Db:new Map,layoutExitNormalTriggers:[q],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:"core",Ba:new rI([new xBa(l)]),ac:m(p)}})]};
vIa=function(a){a=g.V(null==a?void 0:a.additionalPlayerOverlay,yIa);if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1};
AIa=function(a,b,c,d,e){var f;if(null==(f=a.playerOverlay)||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!nHa(a))return function(){return new qI("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=qIa(h);return 0>=l?function(){return new qI("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=zIa(m,c,d,function(q){var r=q.slotId;
q=n(q);var t=rIa(h);r=WI(e.B.get(),"LAYOUT_TYPE_SURVEY",r);var v={layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Ya:"core"},w=new LL(e.j,d),A=new QL(e.j,r),C=new XL(e.j,r),F=new OGa(e.j);return{layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Db:new Map,layoutExitNormalTriggers:[w,F],layoutExitSkipTriggers:[A],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[C],Uc:[],Ya:"core",Ba:new rI([new vBa(h),new zH(b),new eI(l/1E3),new hI(t)]),ac:q(v),adLayoutLoggingData:h.adLayoutLoggingData}});
m=xIa(a,c,p.slotId,d,e,m,n);return m instanceof qI?m:[p].concat(g.qa(m))}};
IIa=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;var l=[];try{var m=[];if(c.renderer.linearAdSequenceRenderer)var n=function(w){w=BIa(w.slotId,c,b,e(w),d,f,h);m=w.tea;return w.P7};
else if(c.renderer.instreamVideoAdRenderer)n=function(w){var A=w.slotId;w=e(w);var C=h,F=c.config.adPlacementConfig,H=CIa(F),M=H.IX,L=H.LX;H=c.renderer.instreamVideoAdRenderer;var R;if(null==H?0:null==(R=H.playerOverlay)?0:R.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var ba=DIa(H,C);R=Math.min(M+1E3*ba.videoLengthSeconds,L);C=new EL(0,[ba.videoLengthSeconds]);L=ba.videoLengthSeconds;var ma=ba.playerVars,na=ba.instreamAdPlayerOverlayRenderer,ia=
ba.playerOverlayLayoutRenderer,sa=ba.adVideoId,aa=EIa(c),U=ba.Db;ba=ba.Ys;var Ka=null==H?void 0:H.adLayoutLoggingData;H=null==H?void 0:H.sodarExtensionData;A=WI(b.B.get(),"LAYOUT_TYPE_MEDIA",A);var x={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"core"};return{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Db:U,layoutExitNormalTriggers:[new HGa(b.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:"core",Ba:new rI([new FH(d),new SH(L),new TH(ma),new WH(M),
new XH(R),na&&new GH(na),ia&&new HH(ia),new zH(F),new EH(sa),new AH(C),new aI(aa),H&&new VH(H),new PH({current:null}),new ZH({}),new jI(ba)].filter(FIa)),ac:w(x),adLayoutLoggingData:Ka}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var p=GIa(a,d,c.adSlotLoggingData,n);l.push(p);for(var q=g.u(m),r=q.next();!r.done;r=q.next()){var t=r.value,v=t(a,e);if(v instanceof qI)return v;l.push.apply(l,g.qa(v))}}catch(w){return new qI(w,{errorMessage:w.message,AdPlacementRenderer:c,numberOfSurveyRenderers:HIa(c)})}return l};
HIa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=g.V(b,eM))?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0};
BIa=function(a,b,c,d,e,f,h){var l=b.config.adPlacementConfig,m=CIa(l),n=m.IX,p=m.LX;m=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==m||!m.length)throw new TypeError("Expected linear ads");var q=[],r={Y1:n,Jq:0,pea:q};m=m.map(function(v){return JIa(a,v,r,c,d,l,e,p,h)}).map(function(v,w){w=new EL(w,q);
return v(w)});
var t=m.map(function(v){return v.Q7});
return{P7:KIa(c,a,n,t,l,EIa(b),d,p,f),tea:m.map(function(v){return v.sea})}};
JIa=function(a,b,c,d,e,f,h,l,m){var n=DIa(g.V(b,eM),m),p=c.Y1,q=c.Jq,r=Math.min(p+1E3*n.videoLengthSeconds,l);c.Y1=r;c.Jq++;c.pea.push(n.videoLengthSeconds);var t,v,w=null==(t=g.V(b,eM))?void 0:null==(v=t.playerOverlay)?void 0:v.instreamSurveyAdRenderer;if("nPpU29QrbiU"===n.adVideoId&&null==w)throw new TypeError("Survey slate media has no survey overlay");return function(A){var C=n.playerVars;2<=A.j&&(C.slot_pos=A.adPodIndex);C.autoplay="1";var F,H;C=n.videoLengthSeconds;var M=n.playerVars,L=n.Db,
R=n.Ys,ba=n.instreamAdPlayerOverlayRenderer,ma=n.playerOverlayLayoutRenderer,na=n.adVideoId,ia=null==(F=g.V(b,eM))?void 0:F.adLayoutLoggingData;F=null==(H=g.V(b,eM))?void 0:H.sodarExtensionData;H=WI(d.B.get(),"LAYOUT_TYPE_MEDIA",a);var sa={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"adapter"};A={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",Db:L,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:"adapter",Ba:new rI([new FH(h),
new SH(C),new TH(M),new WH(p),new XH(r),new YH(q),new PH({current:null}),ba&&new GH(ba),ma&&new HH(ma),new zH(f),new EH(na),new AH(A),F&&new VH(F),w&&new DBa(w),new ZH({}),new jI(R)].filter(FIa)),ac:e(sa),adLayoutLoggingData:ia};C=AIa(g.V(b,eM),f,h,A.layoutId,d);return{Q7:A,sea:C}}};
DIa=function(a,b){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var c=FA(a.playerVars),d=Number(c.length_seconds);if(isNaN(d))throw new TypeError("Expected valid length seconds in player vars");var e=Number(a.trimmedMaxNonSkippableAdDurationMs);d=isNaN(e)?d:Math.min(d,e/1E3);e=a.playerOverlay||{};e=void 0===e.instreamAdPlayerOverlayRenderer?null:e.instreamAdPlayerOverlayRenderer;var f=a.playerOverlay||
{};f=void 0===f.playerOverlayLayoutRenderer?null:f.playerOverlayLayoutRenderer;var h=c.video_id;h||(h=(h=a.externalVideoId)?h:void 0);if(!h)throw new TypeError("Expected valid video id in IVAR");if(b&&0===d){var l;b=null!=(l=LIa[h])?l:d}else b=d;return{playerVars:c,videoLengthSeconds:b,instreamAdPlayerOverlayRenderer:e,playerOverlayLayoutRenderer:f,adVideoId:h,Db:a.pings?qJ(a.pings):new Map,Ys:pJ(a.pings)}};
EIa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
CIa=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{IX:b,LX:a}};
NIa=function(a,b,c,d,e,f,h,l,m){var n=c.pings;return n?[MIa(a,f,l,e,function(p){var q=p.slotId;p=m(p);var r=c.adLayoutLoggingData;q=WI(b.B.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",q);var t={layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Ya:"core"},v=qJ(n),w=[new PL(b.j,f)],A;var C=null==n?void 0:null==(A=n.activeViewTracking)?void 0:A.identifier;return{layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Db:v,layoutExitNormalTriggers:w,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],
layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:"core",Ba:new rI([new zH(d),new jI(pJ(n)),new EBa(C),new SH(h/1E3)]),ac:p(t),adLayoutLoggingData:r}})]:new qI("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:c})};
PIa=function(a,b,c,d,e,f,h,l){a=OIa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=WI(b.B.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Ya:"core"},q=new Map,r=e.impressionUrls;r&&q.set("impression",r);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Db:q,layoutExitNormalTriggers:[new OL(b.j,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:"core",Ba:new rI([new ABa(e),new zH(c)]),ac:m(p)}});
return a instanceof qI?a:[a]};
RIa=function(a,b,c,d,e,f,h){return[QIa(a,f,d,function(l){var m=l.slotId;l=h(l);m=WI(b.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",m);var n={layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ya:"core"};return{layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Db:new Map,layoutExitNormalTriggers:[new PL(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:"core",Ba:new rI([new GH(e),new zH(c)]),ac:l(n),adLayoutLoggingData:e.adLayoutLoggingData}})]};
VIa=function(a,b,c,d,e,f,h,l){a=SIa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=WI(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=TIa(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,UIa(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=WI(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=TIa(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,UIa(b,n,p))):q.imageOverlayAdContentRenderer?(q=WI(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=UIa(b,n,p),n.push(new YL(b.j,45E3,q)),n=TIa(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new pI("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new pI("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof qI?a:[a]};
YIa=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new qI("Expected valid duration for AdActionInterstitialRenderer."):function(p){return WIa(b,p.slotId,c,d,n,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,h(p),function(q){return XIa(a,q,e,function(r,t){var v=r.slotId;r=h(r);v=WI(b.B.get(),"LAYOUT_TYPE_ENDCAP",
v);return tIa(b,v,t,c,r,"LAYOUT_TYPE_ENDCAP",[new KH(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}};
ZIa=function(a,b,c,d){if(!c.playerVars)return new qI("No playerVars available in AdIntroRenderer.");var e=FA(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=WI(a.B.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"adapter"};return{Nf:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Db:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:"adapter",Ba:new rI([new $H({}),
new zH(b),new PH({current:null}),new TH(e)]),ac:f(l)},jm:[new KL(a.j,h,["error"])],Uj:[],Kz:[],Jz:[]}}};
aJa=function(a,b,c,d,e,f,h,l,m,n){n=void 0===n?!1:n;var p=qIa(e);if(!mHa(e,n))return new qI("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=p)return new qI("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=uIa(a,b,e,f,c,d,h);return q instanceof qI?q:function(r){return $Ia(b,r.slotId,c,p,e,rIa(e),h(r),q,l,m)}};
cJa=function(a,b,c,d,e,f,h,l){function m(q){return XIa(a,q,d,n)}
function n(q,r){var t=q.slotId;q=h(q);t=WI(b.B.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return tIa(b,t,r,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new uBa(e),f],e.adLayoutLoggingData)}
if(!rHa(e))return new qI("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=1E3*e.timeoutSeconds;return function(q){var r=q.slotId,t={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands};q=h(q);r=bJa(b,r,c,p,t,new Map,q,m,void 0,CM(b,c,e.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));t=new MH(r.nL);q=new BH(l);return{Nf:{layoutId:r.layoutId,layoutType:r.layoutType,Db:r.Db,layoutExitNormalTriggers:[],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:r.Ya,Ba:new rI([].concat(g.qa(r.Gz),[t,q])),ac:r.ac,adLayoutLoggingData:r.adLayoutLoggingData},jm:[],Uj:r.layoutExitMuteTriggers,Kz:r.layoutExitUserInputSubmittedTriggers,Jz:r.Uc,lf:r.lf}}};
eJa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w){a=iJ(a,"SLOT_TYPE_PLAYER_BYTES");d=MHa(b,h,d,e,a,n,p);if(d instanceof qI)return d;var A;h=null==(A=sI(d.Ba,"metadata_type_fulfilled_layout"))?void 0:A.layoutId;if(!h)return new qI("Invalid adNotify layout");b=dJa(h,b,c,e,f,m,l,n,q,r,t,v,w);return b instanceof qI?b:[d].concat(g.qa(b))};
dJa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=fJa(b,c,d,f,h,l,m,n,p,q,r);gJa(f)?(d=hJa(b,a),a=iJ(b.B.get(),"SLOT_TYPE_IN_PLAYER"),f=WI(b.B.get(),"LAYOUT_TYPE_SURVEY",a),l=iJa(b,d,l),b=[].concat(g.qa(l.slotExpirationTriggers),[new GL(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:b,Ya:l.Ya},{slotId:a,layoutId:f}),e=a instanceof qI?a:{Xx:Object.assign({},
l,{slotExpirationTriggers:b,Ba:new rI([new bI(a.layout)]),adSlotLoggingData:e}),qg:a.qg}):e=QHa(b,a,l,e,c);return e instanceof qI?e:[].concat(g.qa(e.qg),[e.Xx])};
mJa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=fJa(a,b,c,e,f,h,m,n,p,q,r,t);gJa(e)?(e=jJa(a,c,h,l),e instanceof qI?a=e:(l=iJ(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=WI(a.B.get(),"LAYOUT_TYPE_SURVEY",l),h=[].concat(g.qa(e.slotExpirationTriggers),[new GL(a.j,m)]),l=b({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,Ya:e.Ya,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h},{slotId:l,layoutId:m}),a=l instanceof qI?l:
{Xx:{slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:kJa(a,c,e.slotId,e.slotEntryTrigger),slotFulfillmentTriggers:lJa(a,c,e.slotId,e.slotFulfillmentTriggers),slotExpirationTriggers:h,Ya:e.Ya,Ba:new rI([new kI(DM(c)),new bI(l.layout),new lI({mu:a.mu(c)})]),adSlotLoggingData:d},qg:l.qg})):a=RHa(a,c,h,l,d,m.dc,b);return a instanceof qI?a:a.qg.concat(a.Xx)};
gJa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(g.V(b.value,gM))return!0;return!1};
fJa=function(a,b,c,d,e,f,h,l,m,n,p,q){return function(r,t){if(fL(p)&&gL(p))a:{var v=nJa(d,c,p);if(v instanceof qI)t=v;else{for(var w=0,A=[],C=[],F=[],H=[],M=[],L=[],R=new QH({current:null}),ba=new DH({current:null}),ma=!1,na=[],ia=0,sa=[],aa=0;aa<d.length;aa++){var U=d[aa],Ka=g.V(U,eM);if(Ka){Ka=wM(Ka,c,p);if(Ka instanceof pI){t=new qI(Ka);break a}var x=new EL(ia,v),ca=xM(Ka.playerVars,Ka.OB,h,n,x);ia++;sa[aa]={renderer:U,data:Ka,ew:x,RD:ca}}}ia=-1;for(v=0;v<d.length;v++)if(aa=d[v],U=g.V(aa,fM)){aa=
ZIa(b,c,U,l);if(aa instanceof qI){t=aa;break a}aa=aa(r);A.push(aa.Nf);C=[].concat(g.qa(aa.jm),g.qa(C));F=[].concat(g.qa(aa.Uj),g.qa(F));aa.lf&&(na=[aa.lf].concat(g.qa(na)))}else if(g.V(aa,eM))U=sa[v],ia=U.data,aa=U.ew,U=U.RD,Ka=sa[v+1],x=void 0,Ka&&(x=Ka.RD),aa=oJa(b,ia.layoutId,ia.Uo,c,U,ia.xp,f,aa,l(r),ba,m.get(ia.Uo.externalVideoId),x,q),w++,A.push(aa.Nf),C=[].concat(g.qa(aa.jm),g.qa(C)),F=[].concat(g.qa(aa.Uj),g.qa(F)),ma||(L.push(ba),ma=!0),ia=(ia=ia.Uo.adPodSkipTarget)&&0<ia?ia:-1;else if(U=
g.V(aa,GJ)){aa=YIa(a,b,c,U,f,w,l,ba,ia);if(aa instanceof qI){t=aa;break a}aa=aa(r);A.push(aa.Nf);C=[].concat(g.qa(aa.jm),g.qa(C));F=[].concat(g.qa(aa.Uj),g.qa(F));aa.lf&&(na=[aa.lf].concat(g.qa(na)))}else if(U=g.V(aa,gM)){if(void 0===t){t=new qI("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:U});break a}aa=aJa(a,b,c,f,U,R,l,t,w,EM(p,"supports_multi_step_on_desktop"));if(aa instanceof qI){t=aa;break a}aa=aa(r);A.push(aa.Nf);aa.lf&&na.push(aa.lf);
C=[].concat(g.qa(aa.jm),g.qa(C));F=[].concat(g.qa(aa.Uj),g.qa(F));H=[].concat(g.qa(aa.Kz),g.qa(H));M=[].concat(g.qa(aa.Jz),g.qa(M));L=[R].concat(g.qa(L))}else if(aa=g.V(aa,hM)){aa=cJa(a,b,c,f,aa,R,l,w);if(aa instanceof qI){t=aa;break a}aa=aa(r);A.push(aa.Nf);aa.lf&&na.push(aa.lf);F=[].concat(g.qa(aa.Uj),g.qa(F))}else{t=new qI("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={Fy:A,layoutExitSkipTriggers:C,layoutExitUserInputSubmittedTriggers:H,Uc:M,layoutExitMuteTriggers:F,Gz:L,
qg:na}}}else a:if(w=nJa(d,c,p),w instanceof qI)t=w;else{A=0;C=[];F=[];H=[];M=[];L=[];R=[];ba=new QH({current:null});ma=new DH({current:null});na=!1;sa=[];ia=-1;v=g.u(d);for(aa=v.next();!aa.done;aa=v.next())if(aa=aa.value,g.V(aa,fM)){aa=ZIa(b,c,g.V(aa,fM),l);if(aa instanceof qI){t=aa;break a}aa=aa(r);C.push(aa.Nf);F=[].concat(g.qa(aa.jm),g.qa(F));H=[].concat(g.qa(aa.Uj),g.qa(H));aa.lf&&(sa=[aa.lf].concat(g.qa(sa)))}else if(g.V(aa,eM)){ia=wM(g.V(aa,eM),c,p);if(ia instanceof pI){t=new qI(ia);break a}aa=
new EL(A,w);aa=oJa(b,ia.layoutId,ia.Uo,c,xM(ia.playerVars,ia.OB,h,n,aa),ia.xp,f,aa,l(r),ma,m.get(ia.Uo.externalVideoId),void 0,q);A++;C.push(aa.Nf);F=[].concat(g.qa(aa.jm),g.qa(F));H=[].concat(g.qa(aa.Uj),g.qa(H));na||(R.push(ma),na=!0);ia=(ia=ia.Uo.adPodSkipTarget)&&0<ia?ia:-1}else if(g.V(aa,GJ)){aa=YIa(a,b,c,g.V(aa,GJ),f,A,l,ma,ia);if(aa instanceof qI){t=aa;break a}aa=aa(r);C.push(aa.Nf);F=[].concat(g.qa(aa.jm),g.qa(F));H=[].concat(g.qa(aa.Uj),g.qa(H));aa.lf&&(sa=[aa.lf].concat(g.qa(sa)))}else if(g.V(aa,
gM)){if(void 0===t){t=new qI("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.V(aa,gM)});break a}aa=aJa(a,b,c,f,g.V(aa,gM),ba,l,t,A,EM(p,"supports_multi_step_on_desktop"));if(aa instanceof qI){t=aa;break a}aa=aa(r);C.push(aa.Nf);aa.lf&&sa.push(aa.lf);F=[].concat(g.qa(aa.jm),g.qa(F));H=[].concat(g.qa(aa.Uj),g.qa(H));M=[].concat(g.qa(aa.Kz),g.qa(M));L=[].concat(g.qa(aa.Jz),g.qa(L));R=[ba].concat(g.qa(R))}else if(g.V(aa,hM)){aa=cJa(a,b,c,f,g.V(aa,
hM),ba,l,A);if(aa instanceof qI){t=aa;break a}aa=aa(r);C.push(aa.Nf);aa.lf&&sa.push(aa.lf);H=[].concat(g.qa(aa.Uj),g.qa(H))}else{t=new qI("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={Fy:C,layoutExitSkipTriggers:F,layoutExitUserInputSubmittedTriggers:M,Uc:L,layoutExitMuteTriggers:H,Gz:R,qg:sa}}t instanceof qI?r=t:(L=r.slotId,w=t.Fy,A=t.layoutExitSkipTriggers,C=t.layoutExitMuteTriggers,F=t.layoutExitUserInputSubmittedTriggers,H=t.Gz,r=l(r),M=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",
L=e?e.layoutId:WI(b.B.get(),M,L),R={layoutId:L,layoutType:M,Ya:"core"},r={layout:{layoutId:L,layoutType:M,Db:new Map,layoutExitNormalTriggers:[new OL(b.j,L)],layoutExitSkipTriggers:A,layoutExitMuteTriggers:C,layoutExitUserInputSubmittedTriggers:F,Uc:[],Ya:"core",Ba:new rI([new RH(w)].concat(g.qa(H))),ac:r(R)},qg:t.qg});return r}};
nJa=function(a,b,c){var d=[];a=g.u(a);for(var e=a.next();!e.done;e=a.next())if(e=e.value,g.V(e,eM)){e=wM(g.V(e,eM),b,c);if(e instanceof pI)return new qI(e);d.push(e.xp)}return d};
qJa=function(a,b,c,d,e,f,h,l){if(!mHa(c,void 0===l?!1:l))return new qI("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var m=qIa(c);if(0>=m)return new qI("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new QH({current:null}),p=uIa(a,b,c,n,d,f,h);return pJa(a,d,f,m,e,function(q,r){var t=q.slotId,v=rIa(c);q=h(q);var w,A=null!=(w=CM(b,d,c.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))?
w:WI(b.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ya:"core"};w=p(A,r);var C=sI(w.Ba,"metadata_type_fulfilled_layout");C||KF("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");v=[new zH(d),new fI(m),new hI(v),n];C&&v.push(new NH(C.layoutType));return{F$:{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Db:new Map,layoutExitNormalTriggers:[new OL(b.j,A)],layoutExitSkipTriggers:[new QL(b.j,r.layoutId)],
layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new XL(b.j,r.layoutId)],Uc:[],Ya:"core",Ba:new rI(v),ac:q(t)},R9:w}})};
rJa=function(a){if(!qHa(a))return!1;var b=g.V(a.adVideoStart,FM);return b?g.V(a.linearAd,eM)&&XGa(b)?!0:(KF("Invalid Sandwich with notify"),!1):!1};
sJa=function(a){if(null==a.linearAds)return!1;a=g.V(a.adStart,FM);return a?XGa(a)?!0:(KF("Invalid LASR with notify"),!1):!1};
tJa=function(a){if(!pHa(a))return!1;a=g.V(a.adStart,FM);return a?XGa(a)?!0:(KF("Invalid LASR with notify"),!1):!1};
GM=function(a,b,c,d,e,f,h,l,m){this.D=a;this.B=b;this.j=c;this.Aa=d;this.Ne=e;this.C=f;this.Ea=h;this.Wj=l;this.loadPolicy=void 0===m?1:m};
vHa=function(a,b,c,d,e,f,h,l,m){var n=[];if(0===b.length&&0===d.length&&0===c.length)return n;b=b.filter(YGa);var p=c.filter(kHa),q=d.filter(YGa),r=new Map,t=YHa(b),v=c.some(function(aa){var U;return"SLOT_TYPE_PLAYER_BYTES"===(null==aa?void 0:null==(U=aa.adSlotMetadata)?void 0:U.slotType)}),w=c.some(function(aa){var U;
return"SLOT_TYPE_PLAYER_UNDERLAY"===(null==aa?void 0:null==(U=aa.adSlotMetadata)?void 0:U.slotType)}),A=c.some(function(aa){var U;
return"SLOT_TYPE_IN_PLAYER"===(null==aa?void 0:null==(U=aa.adSlotMetadata)?void 0:U.slotType)});
c=c.some(function(aa){var U,Ka;return"SLOT_TYPE_BELOW_PLAYER"===(null==aa?void 0:null==(U=aa.adSlotMetadata)?void 0:U.slotType)||"SLOT_TYPE_ABOVE_FEED"===(null==aa?void 0:null==(Ka=aa.adSlotMetadata)?void 0:Ka.slotType)});
if(v||w||A||c)c=cIa(p,b,l,e,t,a.Ne.get(),a.loadPolicy,r,a.Aa.get(),a.D.get(),A),c instanceof qI?KF(c,void 0,void 0,{contentCpn:e}):n.push.apply(n,g.qa(c));c=g.u(b);for(w=c.next();!w.done;w=c.next())w=w.value,A=uJa(a,r,w,e,f,h,v,l,t,m,p),A instanceof qI?KF(A,void 0,void 0,{renderer:w.renderer,config:w.config.adPlacementConfig,kind:w.config.adPlacementConfig.kind,contentCpn:e,daiEnabled:h}):n.push.apply(n,g.qa(A));vJa(a.Aa.get())||(f=wJa(a,q,e,l,t,r),n.push.apply(n,g.qa(f)));if(null===a.C||h&&!l.uX){var C,
F,H;a=l.dc&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(C=b[0].config)?void 0:null==(F=C.adPlacementConfig)?void 0:F.kind)&&(null==(H=b[0].renderer)?void 0:H.adBreakServiceRenderer);if(!n.length&&!a){var M,L,R,ba;KF("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,"first APR kind":null==(M=b[0])?void 0:null==(L=M.config)?void 0:null==(R=L.adPlacementConfig)?void 0:R.kind,renderer:null==(ba=b[0])?void 0:ba.renderer})}return n}C=
d.filter(YGa);n.push.apply(n,g.qa(IHa(r,C,a.B.get(),a.C,e,v)));if(!n.length){var ma,na,ia,sa;KF("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,daiEnabled:h.toString(),"first APR kind":null==(ma=b[0])?void 0:null==(na=ma.config)?void 0:null==(ia=na.adPlacementConfig)?void 0:ia.kind,renderer:null==(sa=b[0])?void 0:sa.renderer})}return n};
wJa=function(a,b,c,d,e,f){function h(r){return wI(a.Ne.get(),r)}
var l=[];b=g.u(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,q=n.linearAdSequenceRenderer;p&&rJa(p)?(KF("Found AdNotify with SandwichedLinearAdRenderer"),q=g.V(p.adVideoStart,FM),p=g.V(p.linearAd,eM),uM(f,n,m.config.adPlacementConfig.kind),n=void 0,q=NHa(null==(n=q)?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Aa.get(),a.Ne.get()),q instanceof qI?KF(q):l.push.apply(l,g.qa(q))):
q&&(!q.adLayoutMetadata&&sJa(q)||q.adLayoutMetadata&&tJa(q))&&(KF("Found AdNotify with LinearAdSequenceRenderer"),uM(f,n,m.config.adPlacementConfig.kind),n=void 0,p=dJa(null==(n=g.V(q.adStart,FM))?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,$L(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Aa.get()),p instanceof qI?KF(p):l.push.apply(l,g.qa(p)))}return l};
uJa=function(a,b,c,d,e,f,h,l,m,n,p){function q(C){return wI(a.Ne.get(),C)}
var r=c.renderer,t=c.config.adPlacementConfig,v=t.kind,w=c.adSlotLoggingData,A=l.uX&&"AD_PLACEMENT_KIND_START"===v;A=f&&!A;if(null!=r.adsEngagementPanelRenderer)return vM(b,c.elementId,v,r.adsEngagementPanelRenderer.isContentVideoEngagementPanel,r.adsEngagementPanelRenderer.adVideoId,r.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(C,F,H,M){var L=a.j.get(),R=C.slotId,ba=r.adsEngagementPanelRenderer;C=wI(a.Ne.get(),C);return HM(L,R,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
new kBa(ba),F,H,ba.impressionPings,C,r.adsEngagementPanelRenderer.adLayoutLoggingData,M)}),[];
if(r.adsEngagementPanelLayoutViewModel)return vM(b,c.elementId,v,r.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,r.adsEngagementPanelLayoutViewModel.adVideoId,r.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,w,function(C,F,H,M){var L=a.j.get(),R=C.slotId,ba=r.adsEngagementPanelLayoutViewModel;C=wI(a.Ne.get(),C);return xJa(L,R,"LAYOUT_TYPE_PANEL",new lBa(ba),F,H,C,r.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,M)}),[];
if(null!=r.actionCompanionAdRenderer){if(r.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return DHa(a.B.get(),a.C,a.j.get(),r.actionCompanionAdRenderer,t,w,d,q);vM(b,c.elementId,v,r.actionCompanionAdRenderer.isContentVideoCompanion,r.actionCompanionAdRenderer.adVideoId,r.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(C,F,H,M){var L=a.j.get(),R=C.slotId,ba=r.actionCompanionAdRenderer;C=wI(a.Ne.get(),C);return HM(L,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
new vH(ba),F,H,ba.impressionPings,C,r.actionCompanionAdRenderer.adLayoutLoggingData,M)})}else if(void 0!==r.topBannerImageTextIconButtonedLayoutViewModel){if(r.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return EHa(a.B.get(),a.C,a.j.get(),r.topBannerImageTextIconButtonedLayoutViewModel,t,w,d,q);
vM(b,c.elementId,v,r.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,r.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,r.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,w,function(C,F,H,M){var L=a.j.get(),R=C.slotId,ba=r.topBannerImageTextIconButtonedLayoutViewModel;C=wI(a.Ne.get(),C);return xJa(L,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new wH(ba),F,H,C,r.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,M)})}else if(r.imageCompanionAdRenderer)vM(b,
c.elementId,v,r.imageCompanionAdRenderer.isContentVideoCompanion,r.imageCompanionAdRenderer.adVideoId,r.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(C,F,H,M){var L=a.j.get(),R=C.slotId,ba=r.imageCompanionAdRenderer;
C=wI(a.Ne.get(),C);return HM(L,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new nBa(ba),F,H,ba.impressionPings,C,r.imageCompanionAdRenderer.adLayoutLoggingData,M)});
else if(r.bannerImageLayoutViewModel)vM(b,c.elementId,v,r.bannerImageLayoutViewModel.isContentVideoCompanion,r.bannerImageLayoutViewModel.adVideoId,r.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,w,function(C,F,H,M){var L=a.j.get(),R=C.slotId,ba=r.bannerImageLayoutViewModel;C=wI(a.Ne.get(),C);return xJa(L,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new oBa(ba),F,H,C,r.bannerImageLayoutViewModel.adLayoutLoggingData,M)});
else if(r.shoppingCompanionCarouselRenderer)vM(b,c.elementId,v,r.shoppingCompanionCarouselRenderer.isContentVideoCompanion,r.shoppingCompanionCarouselRenderer.adVideoId,r.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(C,F,H,M){var L=a.j.get(),R=C.slotId,ba=r.shoppingCompanionCarouselRenderer;C=wI(a.Ne.get(),C);return HM(L,R,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new pBa(ba),F,H,ba.impressionPings,C,r.shoppingCompanionCarouselRenderer.adLayoutLoggingData,M)});
else if(r.adBreakServiceRenderer){if(!BHa(c))return[];if("AD_PLACEMENT_KIND_PAUSE"===v)return AHa(a.B.get(),t,w,c.renderer.adBreakServiceRenderer,d);if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==v&&"AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"!==v)return zHa(a.B.get(),t,w,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.Wj)return new qI("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");l.dc||KF("Received non-live cue point triggered AdBreakServiceRenderer",
void 0,void 0,{kind:v,adPlacementConfig:t,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(l.dc),clientPlaybackNonce:l.clientPlaybackNonce});yJa(a.Wj,{adPlacementRenderer:c,contentCpn:d,Fp:e});if("AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"===v){if(!a.Ea)return new qI("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no playerControlsApiProvider set for interface");e=a.Ea.get().getCurrentTimeSec(1,!1);return zJa(a.B.get(),c.renderer.adBreakServiceRenderer,t,e,d,w,f)}}else{if(r.clientForecastingAdRenderer)return PIa(a.B.get(),
a.j.get(),t,w,r.clientForecastingAdRenderer,d,e,q);if(r.invideoOverlayAdRenderer)return VIa(a.B.get(),a.j.get(),t,w,r.invideoOverlayAdRenderer,d,e,q);if(r.instreamAdPlayerOverlayRenderer)return RIa(a.B.get(),a.j.get(),t,w,r.instreamAdPlayerOverlayRenderer,d,q);if((r.linearAdSequenceRenderer||r.instreamVideoAdRenderer)&&A)return IIa(a.B.get(),a.j.get(),c,d,q,n,!a.Aa.get().J.U().L("html5_override_ad_video_length_killswitch"));if(r.linearAdSequenceRenderer&&!A){if(h)return[];uM(b,r,v);if(r.linearAdSequenceRenderer.adLayoutMetadata){if(!pHa(r.linearAdSequenceRenderer))return new qI("Received invalid LinearAdSequenceRenderer.")}else if(null==
r.linearAdSequenceRenderer.linearAds)return new qI("Received invalid LinearAdSequenceRenderer.");if(g.V(r.linearAdSequenceRenderer.adStart,FM)){KF("Found AdNotify in LinearAdSequenceRenderer");c=g.V(r.linearAdSequenceRenderer.adStart,FM);if(!WGa(c))return new qI("Invalid AdMessageRenderer.");f=r.linearAdSequenceRenderer.linearAds;return eJa(a.D.get(),a.B.get(),a.j.get(),a.Ne.get(),t,w,c,$L(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,f,d,e,l,q,m,
a.loadPolicy,a.Aa.get())}return mJa(a.B.get(),a.j.get(),t,w,r.linearAdSequenceRenderer.linearAds,$L(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,e,l,q,m,a.loadPolicy,a.Aa.get(),p)}if(!r.remoteSlotsRenderer||f){if(r.instreamVideoAdRenderer&&!A){if(h)return[];uM(b,r,v);return SHa(a.B.get(),a.j.get(),t,w,r.instreamVideoAdRenderer,d,e,l,q,m,a.loadPolicy,a.Aa.get(),a.Ne.get(),p)}if(r.instreamSurveyAdRenderer)return qJa(a.B.get(),a.j.get(),r.instreamSurveyAdRenderer,
t,w,d,q,EM(a.Aa.get(),"supports_multi_step_on_desktop"));if(null!=r.sandwichedLinearAdRenderer)return qHa(r.sandwichedLinearAdRenderer)?g.V(r.sandwichedLinearAdRenderer.adVideoStart,FM)?(KF("Found AdNotify in SandwichedLinearAdRenderer"),c=g.V(r.sandwichedLinearAdRenderer.adVideoStart,FM),WGa(c)?(f=g.V(r.sandwichedLinearAdRenderer.linearAd,eM))?OHa(c,f,t,a.D.get(),a.B.get(),a.j.get(),a.Ne.get(),w,d,e,l,q,m,a.loadPolicy,a.Aa.get()):new qI("Missing IVAR from Sandwich"):new qI("Invalid AdMessageRenderer.")):
mJa(a.B.get(),a.j.get(),t,w,[r.sandwichedLinearAdRenderer.adVideoStart,r.sandwichedLinearAdRenderer.linearAd],void 0,d,e,l,q,m,a.loadPolicy,a.Aa.get()):new qI("Received invalid SandwichedLinearAdRenderer.");if(null!=r.videoAdTrackingRenderer)return l=EM(a.Aa.get(),"enable_h5_shorts_ad_terminal_events")&&l.fk,NIa(a.B.get(),a.j.get(),r.videoAdTrackingRenderer,t,w,d,e,l,q)}}return[]};
IM=function(a,b,c,d,e,f,h,l){g.I.call(this);var m=this;this.B=a;this.C=b;this.Bf=d;this.Ea=e;this.Aa=f;this.Oa=h;this.zc=l;this.j=null;c.get().addListener(this);this.addOnDisposeCallback(function(){c.Na()||c.get().removeListener(m)});
d.get().addListener(this);this.addOnDisposeCallback(function(){d.Na()||d.get().removeListener(m)})};
yJa=function(a,b){if(a.j)KF("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.u(a.Bf.get().uM);for(var c=b.next();!c.done;c=b.next())AJa(a,a.j,c.value)}};
AJa=function(a,b,c){var d=a.Ea.get().getCurrentTimeSec(1,!1);a.Aa.get().J.U().Bc()&&tL(a.Oa.get(),"sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.Bh.toFixed(3));hJ(a.B.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.C.get(),f=b.adPlacementRenderer.renderer.adBreakServiceRenderer,h=b.contentCpn,l=b.adPlacementRenderer.adSlotLoggingData,m=JM(a.Aa.get()),n=a.Oa;if(e.Aa.get().J.U().experiments.fb("enable_smearing_expansion_dai")){var p=g.xI(e.Aa.get().J.U().experiments,
"max_prefetch_window_sec_for_livestream_optimization");var q=g.xI(e.Aa.get().J.U().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={Sm:BJa(c),NB:!1,cueProcessedMs:1E3*d};var r=c.startSecs+c.Bh;if(0===d)m.In=new fw(0,1E3*r);else{q=c.startSecs-q;var t=q-d;m.In=0>=t?new fw(1E3*q,1E3*r):new fw(1E3*Math.floor(d+Math.random()*Math.min(t,p)),1E3*r)}p=m}else p={Sm:BJa(c),NB:!1},r=c.startSecs+c.Bh,c.startSecs<=d?m=new fw(1E3*(c.startSecs-4),1E3*r):(q=Math.max(0,c.startSecs-d-10),m=new fw(1E3*
Math.floor(d+Math.random()*(m?0===d?0:Math.min(q,5):q)),1E3*r)),p.In=m;f=yHa(e,f,h,p,l,[new zBa(c)]);e.Aa.get().J.U().experiments.fb("html5_add_dai_smearing_to_qoe")?(h=n.get(),e=p.In.start/1E3-d,n=c.startSecs-d,null!=(h=h.J.Zc())&&(h=h.wc(),h.qoe&&(h=h.qoe,h.provider.W.L("html5_add_dai_smearing_to_qoe")&&(l=1E3*g.KM(h.provider),p=h.j.daism||[],p.push("t."+l.toFixed(0)+";smw."+(1E3*e).toFixed(0)+";smo."+(1E3*n).toFixed(0)),h.j.daism=p)))):tL(n.get(),"daism","ct."+Date.now()+";cmt."+d+";smw."+(p.In.start/
1E3-d)+";tw."+(c.startSecs-d)+";cid."+c.identifier.replaceAll(":","_")+";sid."+f.slotId);return[f]})};
CJa=function(a){var b,c=null==(b=sI(a.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=sI(a.Ba,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=sI(a.Ba,"metadata_type_content_cpn"),f=sI(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),h=sI(a.Ba,"metadata_type_player_overlay_layout_renderer"),l=sI(a.Ba,"metadata_type_player_underlay_renderer"),m=sI(a.Ba,"metadata_type_ad_placement_config"),n=sI(a.Ba,"metadata_type_video_length_seconds");
var p=mI(a.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?sI(a.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):mI(a.Ba,"metadata_type_layout_enter_ms")&&mI(a.Ba,"metadata_type_layout_exit_ms")?(sI(a.Ba,"metadata_type_layout_exit_ms")-sI(a.Ba,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Lq:d,contentCpn:e,jS:c,LN:b,instreamAdPlayerOverlayRenderer:f,playerOverlayLayoutRenderer:h,instreamAdPlayerUnderlayRenderer:l,adPlacementConfig:m,videoLengthSeconds:n,EK:p,inPlayerLayoutId:sI(a.Ba,"metadata_type_linked_in_player_layout_id"),
inPlayerSlotId:sI(a.Ba,"metadata_type_linked_in_player_slot_id")}};
EJa=function(a,b){return DJa(a,b)};
FJa=function(a,b){b=DJa(a,b);if(!b)return null;var c;b.EK=null==(c=sI(a.Ba,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b};
DJa=function(a,b){var c,d=null==(c=sI(a.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;c=RDa(a,b);return{S6:QDa(a,b),adPlacementConfig:sI(a.Ba,"metadata_type_ad_placement_config"),V6:c,contentCpn:sI(a.Ba,"metadata_type_content_cpn"),inPlayerLayoutId:sI(a.Ba,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:sI(a.Ba,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:sI(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,
instreamAdPlayerUnderlayRenderer:void 0,EK:void 0,jS:d,Lq:a.layoutId,videoLengthSeconds:sI(a.Ba,"metadata_type_video_length_seconds")}};
LM=function(a,b,c,d,e,f,h,l,m){g.I.call(this);this.D=a;this.K=b;this.G=c;this.C=d;this.j=e;this.B=f;this.Ne=h;this.Aa=l;this.Ra=m;this.ih=!0};
GJa=function(a,b,c){return WHa(a.j.get(),b.contentCpn,b.Lq,function(d){return XHa(a.B.get(),d.slotId,c,b.adPlacementConfig,b.Lq,wI(a.Ne.get(),d))})};
MM=function(a,b,c,d,e,f,h,l){g.I.call(this);this.B=a;this.j=b;this.C=c;this.Aa=d;this.D=e;this.Ra=f;this.Ea=h;this.Ac=l};
NM=function(a){g.I.call(this);this.j=a};
hJ=function(a,b,c,d){a.j().Qg(b,d);c=c();a=a.j();a.Qb.fI("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.u(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;d.Qb.Pj("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);d.Qb.Pj("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.fc(c.slotId))throw new qI("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(DI(e,c))throw new qI("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType},
"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.oh.Kt.has(c.slotType))throw new qI("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.oh.bv.has(c.slotType))throw new qI("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");nCa(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);nCa(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",
c.slotFulfillmentTriggers);nCa(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=LI(f,h);if(DI(f,c))throw new qI("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new iCa(c));f.j.set(h,l)}catch(ma){ma instanceof qI&&ma.Tk?(d.Qb.Vl("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",ma.Tk,c),KF(ma,c,void 0,void 0,ma.gw)):(d.Qb.Vl("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",
c),KF(ma,c));break a}DI(d.j,c).K=!0;try{var m=d.j,n=DI(m,c),p=c.slotEntryTrigger,q=m.oh.dn.get(p.triggerType);q&&(q.Al("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.Ca.set(p.triggerId,q));for(var r=g.u(c.slotFulfillmentTriggers),t=r.next();!t.done;t=r.next()){var v=t.value,w=m.oh.dn.get(v.triggerType);w&&(w.Al("TRIGGER_CATEGORY_SLOT_FULFILLMENT",v,c,null),n.qa.set(v.triggerId,w))}for(var A=g.u(c.slotExpirationTriggers),C=A.next();!C.done;C=A.next()){var F=C.value,H=m.oh.dn.get(F.triggerType);H&&(H.Al("TRIGGER_CATEGORY_SLOT_EXPIRATION",
F,c,null),n.Y.set(F.triggerId,H))}var M=m.oh.Kt.get(c.slotType).get().build(m.C,c);n.N=M;var L=m.oh.bv.get(c.slotType).get().build(m.G,c);L.init();n.B=L}catch(ma){ma instanceof qI&&ma.Tk?(d.Qb.Vl("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",ma.Tk,c),KF(ma,c,void 0,void 0,ma.gw)):(d.Qb.Vl("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),KF(ma,c));BI(d,c,!0);break a}d.Qb.Pj("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Rg(c);for(var R=g.u(d.B),ba=R.next();!ba.done;ba=
R.next())ba.value.Rg(c);TBa(d,c)}};
OM=function(a,b,c,d,e){g.I.call(this);var f=this;this.B=a;this.C=b;this.Oc=c;this.context=e;this.j=new Map;d.get().addListener(this);this.addOnDisposeCallback(function(){d.Na()||d.get().removeListener(f)})};
tHa=function(a,b){var c=0x8000000000000;var d=0;for(var e=g.u(b.slotFulfillmentTriggers),f=e.next();!f.done;f=e.next())f=f.value,f instanceof ML?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):KF("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});d=new fw(c,d);c="throttledadcuerange:"+b.slotId;a.j.set(c,b);a.Oc.get().addCueRange(c,d.start,d.end,!1,a);PM(a.context.Aa.get())&&(b=d.start,d=d.end,e={},a.context.Jp.ql("tcrr",(e.cid=c,e.sm=b,e.em=d,e)))};
QM=function(){g.I.apply(this,arguments);this.ih=!0;this.gj=new Map;this.j=new Map};
HJa=function(a,b){a=g.u(a.gj.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
IJa=function(a,b){a=g.u(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}KF("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.fc(b)),layoutId:b})};
JJa=function(a,b){this.callback=a;this.slot=b};
RM=function(){};
KJa=function(a,b,c){this.callback=a;this.slot=b;this.Ea=c};
LJa=function(a,b,c){this.callback=a;this.slot=b;this.Ea=c;this.B=!1;this.j=0};
MJa=function(a,b,c){this.callback=a;this.slot=b;this.Ea=c};
SM=function(a){this.Ea=a};
TM=function(a){g.I.call(this);this.lN=a;this.Vb=new Map};
NJa=function(a,b){for(var c=[],d=g.u(a.Vb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof XL&&f.triggeringLayoutId===b&&c.push(e)}c.length?JI(a.lN(),c):KF("Survey is submitted but no registered triggers can be activated.")};
UM=function(a,b,c){TM.call(this,a);var d=this;this.Aa=c;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Na()||b.get().removeListener(d)})};
VM=function(a){g.I.call(this);this.j=a;this.ih=!0;this.Vb=new Map;this.G=new Set;this.C=new Set;this.D=new Set;this.K=new Set;this.B=new Set};
WM=function(a){g.I.call(this);this.j=a;this.Vb=new Map};
XM=function(a,b){for(var c=[],d=g.u(a.Vb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&JI(a.j(),c)};
YM=function(a,b,c){g.I.call(this);var d=this;this.j=a;this.context=c;this.Vb=new Map;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Na()||b.get().removeListener(d)})};
ZM=function(a,b,c,d,e){g.I.call(this);var f=this;this.B=a;this.Oc=b;this.Ea=c;this.Ra=d;this.context=e;this.ih=!0;this.Vb=new Map;this.j=new Set;c.get().addListener(this);this.addOnDisposeCallback(function(){c.Na()||c.get().removeListener(f)})};
OJa=function(a,b,c,d,e,f,h,l,m,n){if(a.Ra.get().Xd(1).clientPlaybackNonce!==m)throw new qI("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Vb.set(c.triggerId,{VD:new ZL(b,c,d,e),UI:f});a.Oc.get().addCueRange(f,h,l,n,a);PM(a.context.Aa.get())&&(m={},a.context.Jp.ql("crr",(m.ca=b,m.tt=c.triggerType,m.st=d.slotType,m.lt=null==e?void 0:e.layoutType,m.cid=f,m.sm=h,m.em=l,m)))};
PJa=function(a,b){a=g.u(a.Vb.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;if(b===d.UI)return c}return""};
$M=function(a,b){g.I.call(this);var c=this;this.D=a;this.B=new Map;this.C=new Map;this.j=null;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Na()||b.get().removeListener(c)});
var d;this.j=(null==(d=b.get().Aw)?void 0:d.slotId)||null};
QJa=function(a,b){var c=[];a=g.u(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
aN=function(a){g.I.call(this);this.j=a;this.ih=!0;this.Vb=new Map};
pL=function(a,b,c){b=b.layoutId;for(var d=[],e=g.u(a.Vb.values()),f=e.next();!f.done;f=e.next())if(f=f.value,f.trigger instanceof OL){var h;if(h=f.trigger.layoutId===b){h=c;var l=aCa.get(f.category);h=l?l===h:!1}h&&d.push(f)}d.length&&JI(a.j(),d)};
bN=function(a){g.I.call(this);this.j=a;this.ih=!0;this.Vb=new Map};
cN=function(a){g.I.call(this);this.C=a;this.ih=!0;this.Vb=new Map;this.j=new Map;this.B=new Map};
RJa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.u(b);for(var d=b.next();!d.done;d=b.next())(d=a.B.get(d.value.triggerId))&&c.push(d)}return c};
dN=function(a){g.I.call(this);this.j=a;this.Vb=new Map};
eN=function(a,b){for(var c=[],d=g.u(a.Vb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof DL&&e.trigger.slotId===b&&c.push(e);1<=c.length&&JI(a.j(),c)};
SJa=function(a,b){var c={slotId:iJ(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Ya:"surface",Ba:new rI([])},d=Object,e=d.assign;b=WI(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Db:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:"surface",Ba:new rI([]),
ac:PBa(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.Ya,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},a,{W9:!0,slot:c,layout:b})};
xHa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Sm:new fw(-0x8000000000000,-0x8000000000000),NB:d},null!=c&&(d.In=new fw(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Sm:new fw(0x7ffffffffffff,0x8000000000000),NB:d},null!=c&&(d.In=new fw(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||KF("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||KF("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 qI("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={Sm:new fw(a,e),NB:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.In=new fw(a,e)}return d;
default:return new qI("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}};
BJa=function(a){var b=1E3*a.startSecs;return new fw(b,b+1E3*a.Bh)};
TJa=function(a){if(!a||!a.adPlacements&&!a.adSlots)return!1;for(var b=g.u(a.adPlacements||[]),c=b.next();!c.done;c=b.next())if(c=c.value)if(c=c.adPlacementRenderer,null!=c&&"AD_PLACEMENT_KIND_START"===(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind))return!0;a=g.u(a.adSlots||[]);for(b=a.next();!b.done;b=a.next()){var d=c=void 0;if("SLOT_TRIGGER_EVENT_BEFORE_CONTENT"===(null==(c=g.V(b.value,sM))?void 0:null==(d=c.adSlotMetadata)?void 0:d.triggerEvent))return!0}return!1};
fN=function(a){this.Aa=a;this.B=new Map;this.j=new Map;this.C=new Map};
iJ=function(a,b){if(UJa(a.Aa.get())){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.ND(16)};
WI=function(a,b,c){if(UJa(a.Aa.get())){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.ND(16)};
BM=function(a,b){if(UJa(a.Aa.get())){var c=a.C.get(b)||0;c++;a.C.set(b,c);return b+"_"+c}return g.ND(16)};
VJa=function(a){var b=[new LH(a.Lq),new yBa(a.jS),new zH(a.adPlacementConfig),new SH(a.videoLengthSeconds),new eI(a.EK)];a.instreamAdPlayerOverlayRenderer&&b.push(new GH(a.instreamAdPlayerOverlayRenderer));a.playerOverlayLayoutRenderer&&b.push(new HH(a.playerOverlayLayoutRenderer));a.LN&&b.push(new DH(a.LN));return b};
WJa=function(a,b,c,d,e,f){a=c.inPlayerLayoutId?c.inPlayerLayoutId:WI(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h,l,m=c.instreamAdPlayerOverlayRenderer?null==(h=c.instreamAdPlayerOverlayRenderer)?void 0:h.adLayoutLoggingData:null==(l=c.playerOverlayLayoutRenderer)?void 0:l.adLayoutLoggingData;h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ya:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Db:new Map,layoutExitNormalTriggers:[new LL(function(n){return BM(f,
n)},c.Lq)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:b,Ba:d,ac:e(h),adLayoutLoggingData:m}};
gN=function(a,b){var c=this;this.B=a;this.Aa=b;this.j=function(d){return BM(c.B.get(),d)}};
XHa=function(a,b,c,d,e,f){c=new rI([new IH(c),new zH(d)]);b=WI(a.B.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Ya:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Db:new Map,layoutExitNormalTriggers:[new LL(function(h){return BM(a.B.get(),h)},e)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:"core",Ba:c,ac:f(d),adLayoutLoggingData:void 0}};
yM=function(a,b,c,d,e){var f=VJa(d);return WJa(b,c,d,new rI(f),e,a.B.get())};
XJa=function(a,b,c,d,e){var f=VJa(d);f.push(new qBa(d.S6));f.push(new rBa(d.V6));return WJa(b,c,d,new rI(f),e,a.B.get())};
HM=function(a,b,c,d,e,f,h,l,m,n){b=WI(a.B.get(),c,b);var p={layoutId:b,layoutType:c,Ya:"core"},q=new Map;h&&q.set("impression",h);h=[new NL(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];n&&h.push(new KL(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Db:q,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:"core",Ba:new rI([d,new zH(f),new LH(e)]),ac:l(p),adLayoutLoggingData:m}};
xJa=function(a,b,c,d,e,f,h,l,m){b=WI(a.B.get(),c,b);var n={layoutId:b,layoutType:c,Ya:"core"},p=[new NL(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];m&&p.push(new KL(a.j,m,["normal"]));return{layoutId:b,layoutType:c,Db:new Map,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:"core",Ba:new rI([d,new zH(f),new LH(e)]),ac:h(n),adLayoutLoggingData:l}};
UIa=function(a,b,c){var d=[];d.push(new MGa(a.j,c));b&&d.push(b);return d};
TIa=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,Ya:"core"};return{layoutId:b,layoutType:c,Db:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[new GL(a.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:"core",Ba:new rI([new mBa(d),new zH(e)]),ac:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
tIa=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,Ya:"core"};return{layoutId:b,layoutType:f,Db:new Map,layoutExitNormalTriggers:[new LL(a.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:"core",Ba:new rI([new zH(d)].concat(g.qa(h))),ac:e(m),adLayoutLoggingData:l}};
CM=function(a,b,c,d){if(a.Aa.get().qf("AD_PLACEMENT_KIND_START"===b.kind))if(void 0===c)KF("Expected SSAP layout ID in renderer",void 0,void 0,{caller:d});else return c};
WIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){a=bJa(a,b,c,e,f,h,l,m,q,CM(a,c,d.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),r);b=a.Gz;c=new MH(a.nL);d=a.layoutExitSkipTriggers;0<n&&(b.push(c),b.push(new CH(n)),d=[]);b.push(new BH(p));return{Nf:{layoutId:a.layoutId,layoutType:a.layoutType,Db:a.Db,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:a.Ya,Ba:new rI(b),ac:a.ac,adLayoutLoggingData:a.adLayoutLoggingData},
jm:d,Uj:a.layoutExitMuteTriggers,Kz:a.layoutExitUserInputSubmittedTriggers,Jz:a.Uc,lf:a.lf}};
$Ia=function(a,b,c,d,e,f,h,l,m,n){b=bJa(a,b,c,d,f,new Map,h,function(p){return l(p,m)},void 0,CM(a,c,e.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey"));
a=new XL(a.j,b.nL);c=new MH(b.nL);n=new BH(n);return{Nf:{layoutId:b.layoutId,layoutType:b.layoutType,Db:b.Db,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:b.Ya,Ba:new rI([].concat(g.qa(b.Gz),[c,n])),ac:b.ac,adLayoutLoggingData:b.adLayoutLoggingData},jm:b.layoutExitSkipTriggers,Uj:b.layoutExitMuteTriggers,Kz:[].concat(g.qa(b.layoutExitUserInputSubmittedTriggers),[a]),Jz:b.Uc,lf:b.lf}};
bJa=function(a,b,c,d,e,f,h,l,m,n,p){b=null!=n?n:WI(a.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);n={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ya:"adapter"};l=l(b);var q=sI(l.Ba,"metadata_type_fulfilled_layout");q||KF("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var r=q?q.layoutId:"";c=[new zH(c),new fI(d),new hI(e)];q&&c.push(new NH(q.layoutType));p&&c.push(new YH(p));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Db:f,layoutExitNormalTriggers:[],
layoutExitSkipTriggers:[new QL(a.j,r)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:"adapter",Gz:c,ac:h(n),adLayoutLoggingData:m,lf:l,nL:r}};
THa=function(a,b,c,d,e,f,h,l,m,n,p){a=YJa(a,b,"core",c,d,e,f,h,l,m,n,void 0,p);return{layoutId:a.layoutId,layoutType:a.layoutType,Db:a.Db,layoutExitNormalTriggers:a.layoutExitNormalTriggers,layoutExitSkipTriggers:a.layoutExitSkipTriggers,layoutExitMuteTriggers:a.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:a.layoutExitUserInputSubmittedTriggers,Uc:a.Uc,Ya:a.Ya,Ba:new rI(a.hX),ac:a.ac,adLayoutLoggingData:a.adLayoutLoggingData}};
oJa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){b=YJa(a,b,"adapter",c,d,e,f,h,l,m,p,q,r);d=b.layoutExitSkipTriggers;e=b.hX;c.adPodSkipTarget&&0<c.adPodSkipTarget&&(e.push(n),e.push(new CH(c.adPodSkipTarget)),d=[]);e.push(new BH(l.adPodIndex));c.isCritical&&(d=[new KL(a.j,b.layoutId,["error"])].concat(g.qa(d)));return{Nf:{layoutId:b.layoutId,layoutType:b.layoutType,Db:b.Db,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:b.Ya,
Ba:new rI(e),ac:b.ac,adLayoutLoggingData:b.adLayoutLoggingData},jm:d,Uj:b.layoutExitMuteTriggers,Kz:b.layoutExitUserInputSubmittedTriggers,Jz:b.Uc}};
YJa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){var t={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Ya:c};e=[new zH(e),new AH(m),new EH(d.externalVideoId),new FH(l),new hI({impressionCommands:d.impressionCommands,abandonCommands:d.onAbandonCommands,completeCommands:d.completeCommands,progressCommands:d.adVideoProgressCommands}),new TH(f),new PH({current:null}),new SH(h)];(f=d.playerOverlay.instreamAdPlayerOverlayRenderer)&&e.push(new GH(f));(h=d.playerOverlay.playerOverlayLayoutRenderer)&&e.push(new HH(h));
q&&e.push(new UH(q));(q=d.playerUnderlay)&&e.push(new IH(q));l=iJ(a.B.get(),"SLOT_TYPE_IN_PLAYER");q=(q=f?f.elementId:null==h?void 0:h.layoutId)?q:WI(a.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",l);e.push(new MH(q));e.push(new OH(l));e.push(new YH(m.adPodIndex));d.adNextParams&&e.push(new xH(d.adNextParams));d.shrunkenPlayerBytesConfig&&e.push(new tBa(d.shrunkenPlayerBytesConfig));d.clickthroughEndpoint&&e.push(new yH(d.clickthroughEndpoint));d.legacyInfoCardVastExtension&&e.push(new gI(d.legacyInfoCardVastExtension));
d.sodarExtensionData&&e.push(new VH(d.sodarExtensionData));p&&e.push(new dI(p));e.push(new jI(pJ(d.pings)));m=qJ(d.pings);if(r){a:{r=g.u(r);for(p=r.next();!p.done;p=r.next())if(p=p.value,"SLOT_TYPE_PLAYER_UNDERLAY"===p.adSlotMetadata.slotType&&(f=g.V(p.fulfillmentContent.fulfilledLayout,kM))&&(f=g.V(f.renderingContent,jM))&&f.associatedPlayerBytesLayoutId===b){r=p;break a}r=void 0}r&&e.push(new JH(r))}return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Db:m,layoutExitNormalTriggers:[new OL(a.j,b)],layoutExitSkipTriggers:d.skipOffsetMilliseconds?
[new QL(a.j,q)]:[],layoutExitMuteTriggers:[new QL(a.j,q)],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:c,hX:e,ac:n(t),adLayoutLoggingData:d.adLayoutLoggingData}};
KIa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return nI(p,[],["LAYOUT_TYPE_MEDIA"])})||KF("Unexpect subLayout type for DAI composite layout");
b=WI(a.B.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Ya:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Db:new Map,layoutExitNormalTriggers:[new HGa(a.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],Ya:"core",Ba:new rI([new WH(c),new XH(l),new RH(d),new zH(e),new aI(f),new ZH({}),new FBa(m)]),ac:h(n)}};
FIa=function(a){return null!=a};
hN=function(a,b,c){var d=this;this.B=a;this.C=b;this.Aa=c;this.j=function(e){return BM(d.B.get(),e)}};
zJa=function(a,b,c,d,e,f,h){if(!c.highCcvPrefetchConfig)return new qI("AdPlacementConfig for Live Prefetch is missing high_ccv_prefetch_config");c=c.highCcvPrefetchConfig;d*=1E3;var l=[];if(!c.breakLengthMs)return new qI("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var m=g.u(c.breakLengthMs),n=m.next();!n.done;n=m.next())if(n=n.value,0<Number(n)){var p=d+Number(c.startTimeOffsetMs),q=p+Number(c.cacheFetchSmearingDurationMs);p={Sm:new fw(q,q+Number(n)),NB:!1,In:new fw(Math.floor(p+
Math.random()*Number(c.cacheFetchSmearingDurationMs)),q)};q=[];q.push(new HBa({breakLengthMs:Number(n)}));h&&q.push(new ZH({}));l.push(yHa(a,b,e,p,f,q))}return l};
yHa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=iJ(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.In&&d.In.start!==d.Sm.start&&l.push(new ML(a.j,c,new fw(d.In.start,d.Sm.start),!1));l.push(new ML(a.j,c,new fw(d.Sm.start,d.Sm.end),d.NB));d={getAdBreakUrl:b.getAdBreakUrl,uS:d.Sm.start,tS:d.Sm.end,cueProcessedMs:d.cueProcessedMs};b=new UL(a.j,h);f=[new cI(d)].concat(g.qa(f));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:[new PL(a.j,
c),new SL(a.j,h),new TL(a.j,h)],Ya:"core",Ba:new rI(f),adSlotLoggingData:e}};
$Ja=function(a,b,c){var d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next())d.push(ZJa(a,b,e.value));return d};
ZJa=function(a,b,c){return null!=c.triggeringSlotId&&c.triggeringSlotId===a?c.clone(b):c};
sIa=function(a,b,c,d,e){return aKa(a,b,c,d,e)};
XIa=function(a,b,c,d){var e=iJ(a.B.get(),"SLOT_TYPE_IN_PLAYER");return aKa(a,e,b,c,d)};
aKa=function(a,b,c,d,e){var f=new JL(a.j,c),h=[new RL(a.j,b)];a=[new SL(a.j,b),new PL(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Ya:"core",Ba:new rI([new bI(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a},c))]),adSlotLoggingData:void 0}};
pJa=function(a,b,c,d,e,f){var h=iJ(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),l=iJ(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=WI(a.B.get(),"LAYOUT_TYPE_SURVEY",l);d=iN(a,b,c,d);var n=[new RL(a.j,h)];c=[new SL(a.j,h),new PL(a.j,c),new GL(a.j,m)];if(d instanceof qI)return d;l=f({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:n,slotExpirationTriggers:c},{slotId:l,layoutId:m});f=l.F$;l=l.R9;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
slotEntryTrigger:kJa(a,b,h,d),slotFulfillmentTriggers:lJa(a,b,h,n),slotExpirationTriggers:c,Ya:"core",Ba:new rI([new bI(f),new kI(DM(b)),new lI({mu:a.mu(b)})]),adSlotLoggingData:e},l]};
DM=function(a){return"AD_PLACEMENT_KIND_START"===a.kind};
UHa=function(a,b,c,d,e){e=e?e:iJ(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new JL(a.j,c);var f=[new RL(a.j,e)];a=[new PL(a.j,b),new SL(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Ya:"core",Ba:new rI([new bI(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
WHa=function(a,b,c,d){var e=iJ(a.B.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new JL(a.j,c);var f=[new RL(a.j,e)];a=[new PL(a.j,b),new SL(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Ya:"core",Ba:new rI([new bI(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
MHa=function(a,b,c,d,e,f,h){var l=iJ(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=WI(a.B.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=bKa(a,d,f,h,m);if(d instanceof qI)return d;h=[new RL(a.j,l)];e=[new PL(a.j,f),new RL(a.j,e),new WL(a.j,e)];c=wI(c,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e});a=a.C.get();f={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Ya:"core"};b={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",
Db:new Map,layoutExitNormalTriggers:[new PGa(a.j,m,b.durationMs)],layoutExitSkipTriggers:[new RGa(a.j,m,b.durationMs)],Uc:[new QGa(a.j,m)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ya:"core",Ba:new rI([new CBa(b)]),ac:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e,Ba:new rI([new bI(b)])}};
SIa=function(a,b,c,d,e,f){b=iN(a,b,c,d);if(b instanceof qI)return b;var h=b instanceof ML?new LGa(a.j,c,b.j):null;d=iJ(a.B.get(),"SLOT_TYPE_IN_PLAYER");var l=[new RL(a.j,d)];a=[new PL(a.j,c),new SL(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a},h);return f instanceof pI?new qI(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a,
Ya:"core",Ba:new rI([new bI(f)]),adSlotLoggingData:e}};
QIa=function(a,b,c,d){var e=iJ(a.B.get(),"SLOT_TYPE_IN_PLAYER"),f=new FL(a.j,b),h=[new VL(a.j,e)];a=[new PL(a.j,b),new SL(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Ya:"core",Ba:new rI([new bI(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:c}};
zIa=function(a,b,c,d){var e=iJ(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new JL(a.j,c);var f=[new RL(a.j,e)],h=[new SL(a.j,e),new PL(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:h};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:[new RL(a.j,e)],slotExpirationTriggers:[new PL(a.j,b),new SL(a.j,e)],Ya:"core",Ba:new rI([new bI(d(f))])}};
wIa=function(a,b,c,d,e){var f=iJ(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new IL(a.j,d,c);d=[new RL(a.j,f)];a=[new PL(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Ya:"core",Ba:new rI([new bI(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))])}};
HHa=function(a,b,c,d,e,f){var h=iJ(a.B.get(),b);return cKa(a,h,b,new JL(a.j,d),[new PL(a.j,c),new SL(a.j,h),new KL(a.j,d,["error"])],e,f)};
GHa=function(a,b,c,d,e,f,h){var l=iJ(a.B.get(),b);return cKa(a,l,b,new KL(a.j,e,["normal"]),[new PL(a.j,c),new SL(a.j,l),new KL(a.j,d,["error"])],f,h)};
CHa=function(a,b,c,d,e){var f=iJ(a.B.get(),b);return cKa(a,f,b,new FL(a.j,c),[new PL(a.j,c),new SL(a.j,f)],d,e)};
MIa=function(a,b,c,d,e){c=c?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var f=iJ(a.B.get(),c);b=new FL(a.j,b);var h=[new RL(a.j,f)];a=[new SL(a.j,f)];return{slotId:f,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Ya:"core",Ba:new rI([new bI(e({slotId:f,slotType:c,slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:d}};
GIa=function(a,b,c,d){var e=iJ(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),f=new IGa(a.j),h=[new VL(a.j,e)];b=[new PL(a.j,b)];var l={slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b};a=a.Aa.get();return!g.II(a.J.U())&&a.J.U().experiments.fb("enable_pacf_slot_asde_player_byte_h5")||g.II(a.J.U())&&a.J.U().experiments.fb("enable_pacf_slot_asde_player_byte_h5_TV")?{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,Ya:"core",Ba:new rI([new bI(d(l)),new ZH({})]),adSlotLoggingData:c}:{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,Ya:"core",Ba:new rI([new bI(d(l)),new ZH({})])}};
hJa=function(a,b){return vJa(a.Aa.get())?new KL(a.j,b,["normal","error","skipped"]):new KL(a.j,b,["normal"])};
QHa=function(a,b,c,d,e){b=hJa(a,b);a=iJa(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:a.slotEntryTrigger,slotFulfillmentTriggers:a.slotFulfillmentTriggers,slotExpirationTriggers:a.slotExpirationTriggers,Ya:a.Ya});return e instanceof qI?e:{Xx:Object.assign({},a,{Ba:new rI([new bI(e.layout)]),adSlotLoggingData:d}),qg:e.qg}};
RHa=function(a,b,c,d,e,f,h){c=jJa(a,b,c,d);if(c instanceof qI)return c;h=h({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:c.slotEntryTrigger,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers,Ya:c.Ya});if(h instanceof qI)return h;d=[new kI(DM(b)),new bI(h.layout),new lI({mu:a.mu(b)})];f&&d.push(new iI({}));return{Xx:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:kJa(a,
b,c.slotId,c.slotEntryTrigger),slotFulfillmentTriggers:lJa(a,b,c.slotId,c.slotFulfillmentTriggers),slotExpirationTriggers:c.slotExpirationTriggers,Ya:c.Ya,Ba:new rI(d),adSlotLoggingData:e},qg:h.qg}};
kJa=function(a,b,c,d){return a.Aa.get().qf(DM(b))?new DL(a.j,c):d};
lJa=function(a,b,c,d){return a.Aa.get().qf(DM(b))?[new VL(a.j,c)]:d};
iJa=function(a,b,c){var d=iJ(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new RL(a.j,d)];a=[new SL(a.j,d),new PL(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:e,slotExpirationTriggers:a,Ya:"core"}};
jJa=function(a,b,c,d){b=iN(a,b,c,d);return b instanceof qI?b:iJa(a,b,c)};
OIa=function(a,b,c,d,e,f){var h=iJ(a.B.get(),"SLOT_TYPE_FORECASTING");b=iN(a,b,c,d);if(b instanceof qI)return b;d=[new RL(a.j,h)];a=[new SL(a.j,h),new PL(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Ya:"core",Ba:new rI([new bI(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))]),adSlotLoggingData:e}};
dKa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new FL(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=xHa(b,d),a instanceof qI?a:e(a.Sm,f);case "AD_PLACEMENT_KIND_END":return new HL(a.j,c,f);default:return new qI("Cannot construct entry trigger",{kind:b.kind})}};
bKa=function(a,b,c,d,e){return dKa(a,b,c,d,function(f,h){return new KGa(a.j,c,f,h,e)})};
iN=function(a,b,c,d){return dKa(a,b,c,d,function(e,f){return new ML(a.j,c,e,f)})};
cKa=function(a,b,c,d,e,f,h){a=[new VL(a.j,b)];return{slotId:b,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e,Ya:"core",Ba:new rI([new bI(h({slotId:b,slotType:c,slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e}))]),adSlotLoggingData:f}};
jN=function(a,b){g.I.call(this);this.Aa=a;this.j=b;this.eventCount=0};
eKa=function(a,b,c,d){jN.call(this,a,b);this.Aa=a;this.Ra=c;this.context=d};
kN=function(){this.j=new Map};
lN=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
rN=function(a){g.I.call(this);this.counter=[0,0,0,0];this.B=new Uint8Array(16);this.j=16;if(!fKa){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);mN=new Uint8Array(256);nN=lN(256);oN=lN(256);pN=lN(256);qN=lN(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;mN[f]=e;b=e<<1^(e>>7&&283);var h=b^e;nN[f]=b<<24|e<<16|e<<8|h;oN[f]=h<<24|nN[f]>>>8;pN[f]=e<<24|oN[f]>>>8;qN[f]=e<<24|pN[f]>>>8}fKa=!0}e=lN(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=(mN[a>>16&255]^d)<<24|mN[a>>8&255]<<16|mN[a&255]<<8|mN[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
gKa=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=nN[c>>>24]^oN[d>>16&255]^pN[e>>8&255]^qN[f&255]^b[n++],l=nN[d>>>24]^oN[e>>16&255]^pN[f>>8&255]^qN[c&255]^b[n++],m=nN[e>>>24]^oN[f>>16&255]^pN[c>>8&255]^qN[d&255]^b[n++],f=nN[f>>>24]^oN[c>>16&255]^pN[d>>8&255]^qN[e&255]^b[n++],c=h,d=l,e=m;a=a.B;h=b[40];a[0]=mN[c>>>24]^h>>>24;a[1]=mN[d>>16&255]^h>>16&255;a[2]=mN[e>>8&255]^
h>>8&255;a[3]=mN[f&255]^h&255;h=b[41];a[4]=mN[d>>>24]^h>>>24;a[5]=mN[e>>16&255]^h>>16&255;a[6]=mN[f>>8&255]^h>>8&255;a[7]=mN[c&255]^h&255;h=b[42];a[8]=mN[e>>>24]^h>>>24;a[9]=mN[f>>16&255]^h>>16&255;a[10]=mN[c>>8&255]^h>>8&255;a[11]=mN[d&255]^h&255;h=b[43];a[12]=mN[f>>>24]^h>>>24;a[13]=mN[c>>16&255]^h>>16&255;a[14]=mN[d>>8&255]^h>>8&255;a[15]=mN[e&255]^h&255};
tN=function(){if(!hKa&&!g.NC){if(sN)return sN;var a;sN=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=sN)?0:b.importKey)&&(null==(c=sN)?0:c.sign)&&(null==(d=sN)?0:d.encrypt))return sN;sN=void 0}};
iKa=function(){this.B=this.nt=0;this.j=Array.from({length:uN.length}).fill(0)};
jKa=function(){};
kKa=function(){this.startTimeMs=(0,g.wC)();this.j=!1};
lKa=function(){this.j=new jKa};
mKa=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.j||(a.j[b]=new iKa),a.j[b].nh(c,d))};
nKa=function(a,b,c,d,e){var f=(0,g.wC)(),h=e?e(b):void 0,l;e=null!=(l=null==h?void 0:h.nt)?l:1;if(0!==e){var m;l=null!=(m=null==h?void 0:h.profile)?m:c;mKa(a,l,f-d,e)}return b};
oKa=function(a,b,c,d,e){if(b&&"object"===typeof b){var f=function(h){return nKa(a,h,c,d,e)};
if("then"in b&&"function"===typeof b.then)return b.then(f);if("andThen"in b&&"function"===typeof b.k7)return b.k7(f)}return nKa(a,b,c,d,e)};
pKa=function(){};
vN=function(a,b){this.Id=a;this.cipher=this.Id.exports.AES128CTRCipher_create(b.byteOffset)};
g.wN=function(a){this.D=a};
g.xN=function(a){g.I.call(this);this.B=a};
yN=function(a,b){this.j=new vN(a,b)};
qKa=function(a){this.G=new Uint8Array(64);this.C=new Uint8Array(64);this.D=0;this.K=new Uint8Array(64);this.B=0;this.G.set(a);this.C.set(a);for(a=0;64>a;a++)this.G[a]^=92,this.C[a]^=54;this.reset()};
rKa=function(a,b,c){for(var d=a.N,e=a.j[0],f=a.j[1],h=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],r,t,v,w=0;64>w;)16>w?(d[w]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[w-2],t=d[w-15],v=d[w-7]+d[w-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[w]=v),r=q+zN[w]+v+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),t=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=r+t,l+=r,w++,16>w?(d[w]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=
d[w-2],t=d[w-15],v=d[w-7]+d[w-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[w]=v),r=p+zN[w]+v+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),t=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=r+t,h+=r,w++,16>w?(d[w]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[w-2],t=d[w-15],v=d[w-7]+d[w-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[w]=v),r=n+zN[w]+v+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^
~h&m),t=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=r+t,f+=r,w++,16>w?(d[w]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[w-2],t=d[w-15],v=d[w-7]+d[w-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[w]=v),r=m+zN[w]+v+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),t=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),v=q,q=l,l=v,v=p,p=h,h=v,v=n,n=f,f=v,m=e+r,e=r+t,w++;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};
tKa=function(a){var b=new Uint8Array(32),c=64-a.B;55<a.B&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.D,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;sKa(a);return b};
sKa=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.N=[];a.N.length=64;a.D=0;a.B=0};
uKa=function(a){this.j=a};
vKa=function(a,b,c){a=new qKa(a.j);a.update(b);a.update(c);b=tKa(a);a.update(a.G);a.update(b);b=tKa(a);a.reset();return b};
wKa=function(a){this.B=a};
xKa=function(a,b,c,d){var e,f,h;return g.G(function(l){switch(l.j){case 1:if(a.j){l.Ia(2);break}return g.z(l,d.importKey("raw",a.B,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:a.j=l.B;case 2:return e=new Uint8Array(b.length+c.length),e.set(b),e.set(c,b.length),f={name:"HMAC",hash:"SHA-256"},g.z(l,d.sign(f,a.j,e),4);case 4:return h=l.B,l.return(new Uint8Array(h))}})};
yKa=function(a,b,c){a.C||(a.C=new uKa(a.B));return vKa(a.C,b,c)};
zKa=function(a,b,c){var d,e;return g.G(function(f){if(1==f.j){d=tN();if(!d)return f.return(yKa(a,b,c));g.Ba(f,3);return g.z(f,xKa(a,b,c,d),5)}if(3!=f.j)return f.return(f.B);e=g.Da(f);g.BE(e);hKa=!0;return f.return(yKa(a,b,c))})};
AN=function(){var a=AKa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=jma.apply(null,[kma.apply(null,g.qa(b))].concat(g.qa(c)));this.store=oma(a,void 0,b)};
g.BKa=function(a,b,c){for(var d=Object.assign({},a),e=g.u(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===h)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.qa(h),g.qa(l)):l;else if(!Array.isArray(l)&&g.db(l)&&!Array.isArray(h)&&g.db(h))d[f]=g.BKa(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.XB("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,Wqb:h,updateValue:l}),
g.AE(b),a}return d};
BN=function(a){var b=this;a=void 0===a?[]:a;this.j=[];this.C=this.B=0;this.D=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
CKa=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};
CN=function(a,b){b=g.u(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
DN=function(a,b,c){return a.split(b).Zm.split(c).aK};
DKa=function(a){a.D=void 0;a.B=0;a.C=0};
EKa=function(a,b,c){a.isFocused(b);return b-a.C+c<=a.j[a.B].length};
FKa=function(a){if(!a.D){var b=a.j[a.B];a.D=new DataView(b.buffer,b.byteOffset,b.length)}return a.D};
GKa=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(!EKa(a,b,c)){var d=a.B,e=a.C;a.focus(b+c-1);e=new Uint8Array(a.C+a.j[a.B].length-e);for(var f=0,h=d;h<=a.B;h++)e.set(a.j[h],f),f+=a.j[h].length;a.j.splice(d,a.B-d+1,e);DKa(a);a.focus(b)}d=a.j[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)};
EN=function(a,b,c){a=GKa(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
FN=function(a,b,c){a=EN(a,void 0===b?0:b,void 0===c?-1:c);b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(c=0;c<a.length;c++)b[c]=a[c]}return b};
GN=function(a,b){a.focus(b);return a.j[a.B][b-a.C]};
HKa=function(a,b){a.focus(b);return EKa(a,b,4)?FKa(a).getUint32(b-a.C):256*(256*(256*GN(a,b)+GN(a,b+1))+GN(a,b+2))+GN(a,b+3)};
IKa=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
HN=function(a){return String.fromCharCode.apply(null,a)};
JN=function(a){return a.length?IN?IN.decode(a):HN(a):""};
g.LN=function(a){if(!a.length)return"";try{if(IN)return IN.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)KN[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;KN[e++]=55296|f>>10;f=56320|f&1023}KN[e++]=f}}f=String.fromCharCode.apply(String,KN);
1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")};
NN=function(a,b){var c;if(null==(c=MN)?0:c.encodeInto)return b=MN.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};
JKa=function(a){if(MN)return MN.encode(a);var b=new Uint8Array(Math.ceil(1.2*a.length)),c=NN(a,b);b.length<c&&(b=new Uint8Array(c),c=NN(a,b));b.length>c&&(b=b.subarray(0,c));return b};
ON=function(a){this.j=a;this.pos=0;this.B=-1};
PN=function(a){var b=GN(a.j,a.pos);++a.pos;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=GN(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c};
QN=function(a,b){var c=a.B;for(a.B=-1;a.pos+1<=a.j.totalLength;){0>c&&(c=PN(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.B=c;break}c=-1;switch(e){case 0:PN(a);break;case 1:a.pos+=8;break;case 2:d=PN(a);a.pos+=d;break;case 5:a.pos+=4}}return!1};
RN=function(a,b){if(QN(a,b))return PN(a)};
SN=function(a,b){if(QN(a,b))return!!PN(a)};
TN=function(a,b){if(QN(a,b)){b=PN(a);var c=EN(a.j,a.pos,b);a.pos+=b;return c}};
UN=function(a,b){if(a=TN(a,b))return g.LN(a)};
VN=function(a,b,c){if(a=TN(a,b))return c(new ON(new BN([a])))};
WN=function(a,b){for(var c=[];QN(a,b);)c.push(PN(a));return c.length?c:void 0};
XN=function(a,b,c){for(var d=[],e;e=TN(a,b);)d.push(c(new ON(new BN([e]))));return d.length?d:void 0};
YN=function(a,b){a=a instanceof Uint8Array?new BN([a]):a;return b(new ON(a))};
KKa=function(a,b,c){if(b&&c&&c.buffer===b.exports.memory.buffer){var d=b.exports.realloc(c.byteOffset,a);if(d)return new Uint8Array(b.exports.memory.buffer,d,a)}a=b?new Uint8Array(b.exports.memory.buffer,b.exports.malloc(a),a):new Uint8Array(a);c&&a.set(c);return a};
LKa=function(a,b){this.Id=b;this.pos=0;this.B=[];this.j=KKa(void 0===a?4096:a,b);this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)};
ZN=function(a,b){b=a.pos+b;if(!(a.j.length>=b)){for(var c=2*a.j.length;c<b;)c*=2;a.j=KKa(c,a.Id,a.j.subarray(0,a.pos));a.view=new DataView(a.j.buffer,a.j.byteOffset,a.j.byteLength)}};
$N=function(a,b){if(268435455<b){ZN(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(ZN(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};
aO=function(a,b,c){void 0!==c&&($N(a,8*b),$N(a,c))};
bO=function(a,b,c){void 0!==c&&aO(a,b,c?1:0)};
cO=function(a,b,c){void 0!==c&&($N(a,8*b+2),b=c.length,$N(a,b),ZN(a,b),a.j.set(c,a.pos),a.pos+=b)};
dO=function(a,b,c){void 0!==c&&(MKa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),ZN(a,1.2*c.length),b=NN(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(ZN(a,b),b=NN(c,a.j.subarray(a.pos))),a.pos+=b,NKa(a))};
MKa=function(a,b,c){c=void 0===c?2:c;$N(a,8*b+2);a.B.push(a.pos);a.B.push(c);a.pos+=c};
NKa=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}};
eO=function(a,b,c,d,e){c&&(MKa(a,b,void 0===e?3:e),d(a,c),NKa(a))};
g.fO=function(a,b,c){c=new LKa(4096,c);b(c,a);return new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos)};
g.gO=function(a){var b=new ON(new BN([Jg(decodeURIComponent(a))]));a=UN(b,2);b=RN(b,4);var c=OKa[b];if("undefined"===typeof c)throw a=new g.XB("Failed to recognize field number",{name:"EntityKeyHelperError",mpb:b}),g.AE(a),a;return{k8:b,entityType:c,entityId:a}};
g.hO=function(a,b){var c=new LKa;cO(c,2,JKa(a));a=PKa[b];if("undefined"===typeof a)throw b=new g.XB("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.AE(b),b;aO(c,4,a);aO(c,5,1);b=new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos);return encodeURIComponent(g.Hg(b))};
pO=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))};
QKa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.BKa(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))};
RKa=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.AE(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.AE(new g.XB("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.Zc(e.payload);
return pO(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){a:{e=e.entityKey;try{var m=g.gO(e).entityType;l=pO(d,m,e);break a}catch(q){if(q instanceof Error){g.AE(new g.XB("Failed to deserialize entity key",{entityKey:e,YR:q.message}));l=d;break a}throw q;}l=void 0}return l}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.AE(new g.XB("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.Zc(e.payload);var n,p;return QKa(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 pO(a,c.entityType,c.key,c.j8);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 pO(h,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,QKa(a,c.entityType,c.key,c.j8,c.Kqb);default:return a}};
qO=function(a,b,c){return a[b]?a[b][c]||null:null};
TKa=function(a){var b=a.hours||0;var c=a.minutes||0,d=a.seconds||0;b=d+60*c+3600*b+86400*(a.days||0)+604800*(a.weeks||0)+2629800*(a.months||0)+31557600*(a.years||0);0>=b?b={hours:0,minutes:0,seconds:0}:(a=b,b=Math.floor(a/3600),a%=3600,c=Math.floor(a/60),d=Math.floor(a%60),b={hours:b,minutes:c,seconds:d});var e=void 0===b.hours?0:b.hours;c=void 0===b.minutes?0:b.minutes;a=void 0===b.seconds?0:b.seconds;d=0<e;b=[];if(d){e=(new Intl.NumberFormat("en-u-nu-latn")).format(e);var f=["fr"],h="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" ");
e="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(rO)?e.replace(",","\u00a0"):f.includes(rO)?e.replace(",","\u202f"):h.includes(rO)?e.replace(",","."):e;b.push(e)}d=void 0===d?!1:d;c=(["af","be","lt"].includes(rO)||d)&&10>c?SKa().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);b.push(c);c=SKa().format(a);b.push(c);c=":";"da fi id si sl sr sr-Latn".split(" ").includes(rO)&&(c=".");return b.join(c)};
SKa=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
UKa=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};
VKa=function(a){if(a&&a.simpleText)return a.simpleText;var b="";if(a&&a.runs)for(var c=0;c<a.runs.length;c++)a.runs[c].text&&(b+=a.runs[c].text);return b};
sO=function(a){return a?function(){try{return a.apply(this,arguments)}catch(b){g.AE(b)}}:a};
tO=function(a,b,c){if(!g.TA("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)};
uO=function(a,b,c){if(!g.TA("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.TA("jspb_translator_log_errors")&&g.AA(a)};
XKa=function(a){var b=new Zna,c=0;try{var d=a.eventType;void 0!==d&&(S(b,1,WKa[d]),c++);var e=a.storedEventsCount;void 0!==e&&(Vk(b,2,e),c++);var f=a.expiredEventsCount;void 0!==f&&(Vk(b,3,f),c++);var h=a.averageTimeBetweenDispatchesMs;void 0!==h&&(Vk(b,4,h),c++);var l=a.oldestStoredEventAgeMs;void 0!==l&&(Vk(b,5,l),c++);var m=a.metricIntervalMs;void 0!==m&&(Vk(b,6,m),c++);var n=a.dispatchedEventCount;void 0!==n&&(Vk(b,7,n),c++);var p=a.dispatchAttemptCount;void 0!==p&&(Vk(b,8,p),c++);var q=a.withDiskSpaceMs;
void 0!==q&&(Xk(b,9,q),c++);var r=a.withNetworkMs;void 0!==r&&(Xk(b,10,r),c++);var t=a.foregroundMs;void 0!==t&&(Xk(b,11,t),c++);var v=a.activeMs;void 0!==v&&(Xk(b,12,v),c++);var w=a.condensedPageBcSlackCount;void 0!==w&&(Vk(b,13,w),c++);var A=a.persistedDeleteUsedCount;void 0!==A&&(Vk(b,14,A),c++);var C=a.persistedDeleteCount;void 0!==C&&(Vk(b,15,C),c++);var F=a.eventDisabledCount;void 0!==F&&(Vk(b,16,F),c++);var H=a.identityResolutionErrorCount;void 0!==H&&(Vk(b,17,H),c++);var M=a.exceededMaxRetryCount;
void 0!==M&&(Vk(b,18,M),c++);var L=a.condensedPageBcPersistFailCount;void 0!==L&&(Vk(b,19,L),c++);var R=a.couldNotUnloadPageCount;void 0!==R&&(Vk(b,20,R),c++);var ba=a.pageWasCorruptedCount;void 0!==ba&&(Vk(b,24,ba),c++);var ma=a.badEventIndexCount;void 0!==ma&&(Vk(b,27,ma),c++);var na=a.serializeErrorCount;void 0!==na&&(Vk(b,25,na),c++);var ia=a.payloadInfoNotSetCount;void 0!==ia&&(Vk(b,21,ia),c++);var sa=a.requestEmptyErrorCount;void 0!==sa&&(Vk(b,22,sa),c++);var aa=a.clientEventNotSetCount;void 0!==
aa&&(Vk(b,23,aa),c++);var U=a.differentIdCount;void 0!==U&&(Vk(b,26,U),c++);var Ka=a.failedWriteCount;void 0!==Ka&&(Vk(b,28,Ka),c++);var x=a.failedReadCount;void 0!==x&&(Vk(b,29,x),c++);var ca=a.failedDispatchCount;void 0!==ca&&(Vk(b,30,ca),c++);var Ma=a.failedFetchCount;void 0!==Ma&&(Vk(b,31,Ma),c++);var $a=a.loggingliteLogsMoved;void 0!==$a&&(Vk(b,32,$a),c++);var kb=a.loggingliteLogsDropped;void 0!==kb&&(Vk(b,33,kb),c++);return[c===Object.keys(a).length,b]}catch(Qa){return Y(Qa),[!1,void 0]}};
vO=function(a){var b=new zz,c=0;try{var d=a.trackingParams;void 0!==d&&(b.setTrackingParams(d),c++);var e=a.veType;void 0!==e&&(Vk(b,2,e),c++);var f=a.elementIndex;void 0!==f&&(Vk(b,3,f),c++);var h=a.veCounter;void 0!==h&&(Vk(b,6,h),c++);var l=a.dataElement;if(l){var m=vO(l);m[0]&&(Ik(b,zz,7,m[1]),c++)}var n=a.isCounterfactual;void 0!==n&&(Uk(b,5,n),c++);var p=a.youtubeData;if(p){a:{var q=new Jx,r=0;try{var t=p.channelData;if(t){b:{var v=new Wma,w=0;try{var A=t.externalId;void 0!==A&&(al(v,1,A),w++);
var C=[w===Object.keys(t).length,v];break b}catch(Pa){Y(Pa);C=[!1,void 0];break b}}var F=C;F[0]&&(Ik(q,Wma,2,F[1]),r++)}var H=p.channelItem;if(H){b:{var M=new Xma,L=0;try{var R=H.externalId;void 0!==R&&(al(M,1,R),L++);var ba=[L===Object.keys(H).length,M];break b}catch(Pa){Y(Pa);ba=[!1,void 0];break b}}var ma=ba;ma[0]&&(Ik(q,Xma,5,ma[1]),r++)}var na=p.playlistItem;if(na){b:{var ia=new kna,sa=0;try{var aa=na.externalPlaylistId;void 0!==aa&&(al(ia,5,aa),sa++);var U=[sa===Object.keys(na).length,ia];break b}catch(Pa){Y(Pa);
U=[!1,void 0];break b}}var Ka=U;Ka[0]&&(Ik(q,kna,6,Ka[1]),r++)}var x=p.analyticsData;if(x){b:{var ca=new Uma,Ma=0;try{var $a=x.tabName;void 0!==$a&&(S(ca,1,YKa[$a]),Ma++);var kb=x.analysisVariant;if(kb){c:{var Qa=new Lma,Va=0;try{var jb=kb.analysisSummary;if(jb){d:{var rb=new ex,pb=0;try{var B=jb.type;void 0!==B&&(S(rb,1,ZKa[B]),pb++);var D=jb.eligibility;void 0!==D&&(S(rb,2,$Ka[D]),pb++);var E=jb.sentiment;void 0!==E&&(S(rb,3,aLa[E]),pb++);var J=[pb===Object.keys(jb).length,rb];break d}catch(Pa){Y(Pa);
J=[!1,void 0];break d}}var K=J;K[0]&&(Ik(Qa,ex,1,K[1]),Va++)}var da=kb.videoPerformanceVariant;if(da){var ta=bLa(da);ta[0]&&(Jk(Qa,jx,2,wO,ta[1]),Va++)}var la=kb.videoOverviewVariant;if(la){d:{var O=new Jma,Z=0;try{var za=la.timePeriod;void 0!==za&&(S(O,1,xO[za]),Z++);var xa=la.videoPerformanceVariant;if(xa){var ab=bLa(xa);ab[0]&&(Ik(O,jx,2,ab[1]),Z++)}var Wa=la.durationTimePeriod;void 0!==Wa&&(S(O,3,cLa[Wa]),Z++);var zb=[Z===Object.keys(la).length,O];break d}catch(Pa){Y(Pa);zb=[!1,void 0];break d}zb=
void 0}var Rb=zb;Rb[0]&&(Jk(Qa,Jma,3,wO,Rb[1]),Va++)}var Za=kb.channelFluctuationVariant;if(Za){d:{var $b=new fx,hc=0;try{var Jc=Za.views;void 0!==Jc&&(S($b,1,yO[Jc]),hc++);var Yb=Za.driver;void 0!==Yb&&(S($b,2,dLa[Yb]),hc++);var vc=Za.ctr;void 0!==vc&&(S($b,3,yO[vc]),hc++);var $c=Za.impressions;void 0!==$c&&(S($b,4,yO[$c]),hc++);var Rc=Za.viewsPerVideo;void 0!==Rc&&(S($b,5,yO[Rc]),hc++);var tc=[hc===Object.keys(Za).length,$b];break d}catch(Pa){Y(Pa);tc=[!1,void 0];break d}}var Vb=tc;Vb[0]&&(Jk(Qa,
fx,4,wO,Vb[1]),Va++)}var Wb=kb.artistOverviewVariant;if(Wb){d:{var yd=new Ama,pd=0;try{var qd=Wb.timePeriod;void 0!==qd&&(S(yd,1,xO[qd]),pd++);var ac=Wb.variantType;void 0!==ac&&(S(yd,2,eLa[ac]),pd++);var Ec=[pd===Object.keys(Wb).length,yd];break d}catch(Pa){Y(Pa);Ec=[!1,void 0];break d}}var Ib=Ec;Ib[0]&&(Jk(Qa,Ama,5,wO,Ib[1]),Va++)}var bd=kb.monthlySubsVariant;if(bd){var zd=fLa(bd);zd[0]&&(Jk(Qa,ix,6,wO,zd[1]),Va++)}var Pb=kb.monthlyRevenueVariant;if(Pb){var fe=gLa(Pb);fe[0]&&(Jk(Qa,hx,7,wO,fe[1]),
Va++)}var Ud=kb.holisticMonthlyOverviewVariant;if(Ud){d:{var Vd=new Ema,Ce=0;try{var De=Ud.viewsPerformance;if(De){var Ld=hLa(De);Ld[0]&&(Ik(Vd,gx,1,Ld[1]),Ce++)}var $e=Ud.subsPerformance;if($e){var Oe=fLa($e);Oe[0]&&(Ik(Vd,ix,2,Oe[1]),Ce++)}var Md=Ud.revenuePerformance;if(Md){var Bf=gLa(Md);Bf[0]&&(Ik(Vd,hx,3,Bf[1]),Ce++)}var Nd=[Ce===Object.keys(Ud).length,Vd];break d}catch(Pa){Y(Pa);Nd=[!1,void 0];break d}Nd=void 0}var ge=Nd;ge[0]&&(Jk(Qa,Ema,8,wO,ge[1]),Va++)}var rd=kb.personalizedChannelOverviewVariant;
if(rd){d:{var Hd=new Ima,sd=0;try{var Od=rd.timePeriod;void 0!==Od&&(S(Hd,1,xO[Od]),sd++);var jg=rd.viewsPerformance;if(jg){var af=hLa(jg);af[0]&&(Ik(Hd,gx,2,af[1]),sd++)}var Qf=[sd===Object.keys(rd).length,Hd];break d}catch(Pa){Y(Pa);Qf=[!1,void 0];break d}Qf=void 0}var Xc=Qf;Xc[0]&&(Jk(Qa,Ima,9,wO,Xc[1]),Va++)}var oc=kb.channelNewReturningVariant;if(oc){d:{var Pe=new Cma,ih=0;try{var Zh=oc.uniqueViewers;void 0!==Zh&&(S(Pe,1,yO[Zh]),ih++);var mh=oc.newViewers;void 0!==mh&&(S(Pe,2,yO[mh]),ih++);var Ki=
oc.returningViewers;void 0!==Ki&&(S(Pe,3,yO[Ki]),ih++);var pf=[ih===Object.keys(oc).length,Pe];break d}catch(Pa){Y(Pa);pf=[!1,void 0];break d}}var ff=pf;ff[0]&&(Jk(Qa,Cma,10,wO,ff[1]),Va++)}var Fe=kb.lowReturningViewersDataStoryVariant;if(Fe){d:{var $h=new Fma,uc=0;try{var Fc=Fe.videoListType;void 0!==Fc&&(S($h,1,iLa[Fc]),uc++);var Gc=[uc===Object.keys(Fe).length,$h];break d}catch(Pa){Y(Pa);Gc=[!1,void 0];break d}}var Li=Gc;Li[0]&&(Jk(Qa,Fma,11,wO,Li[1]),Va++)}var Ff=kb.weeklyDataStoryVariant;if(Ff){d:{var pg=
new Kma,gf=0;try{var Dd=Ff.dateId;void 0!==Dd&&(Wk(pg,1,Dd),gf++);var Tf=[gf===Object.keys(Ff).length,pg];break d}catch(Pa){Y(Pa);Tf=[!1,void 0];break d}}var ai=Tf;ai[0]&&(Jk(Qa,Kma,12,wO,ai[1]),Va++)}var qg=kb.monthlyDataStoryVariant;if(qg){d:{var Pg=new Gma,rg=0;try{var Mi=qg.dateId;void 0!==Mi&&(Wk(Pg,1,Mi),rg++);var ke=qg.highlightType;void 0!==ke&&(S(Pg,2,jLa[ke]),rg++);var sg=qg.adviceType;void 0!==sg&&(S(Pg,3,kLa[sg]),rg++);var tg=qg.revenueInsightType;void 0!==tg&&(S(Pg,4,lLa[tg]),rg++);var bi=
[rg===Object.keys(qg).length,Pg];break d}catch(Pa){Y(Pa);bi=[!1,void 0];break d}}var Gf=bi;Gf[0]&&(Jk(Qa,Gma,13,wO,Gf[1]),Va++)}var ug=kb.otherFormatsDataStoryVariant;if(ug){d:{var nh=new Hma,Qg=0;try{var oh=ug.overlapShorts;void 0!==oh&&(Wk(nh,1,oh),Qg++);var te=ug.overlapChannels;void 0!==te&&(Wk(nh,2,te),Qg++);var Se=[Qg===Object.keys(ug).length,nh];break d}catch(Pa){Y(Pa);Se=[!1,void 0];break d}}var $d=Se;$d[0]&&(Jk(Qa,Hma,14,wO,$d[1]),Va++)}var qj=kb.audienceWatchesLongformDataStoryVariant;if(qj){d:{var hf=
new Bma,Ge=0;try{var Uf=qj.hasOverlapVideo;void 0!==Uf&&(Uk(hf,1,Uf),Ge++);var Vf=qj.hasOverlapLivestream;void 0!==Vf&&(Uk(hf,2,Vf),Ge++);var Rg=qj.overlapChannels;void 0!==Rg&&(Wk(hf,3,Rg),Ge++);var Qd=[Ge===Object.keys(qj).length,hf];break d}catch(Pa){Y(Pa);Qd=[!1,void 0];break d}}var vg=Qd;vg[0]&&(Jk(Qa,Bma,15,wO,vg[1]),Va++)}var Hf=kb.contentInspirationDataStoryVariant;if(Hf){d:{var ci=new Dma,hk=0;try{var qm=Hf.hasVideoOverlapData;void 0!==qm&&(Uk(ci,1,qm),hk++);var ll=Hf.hasChannelOverlapData;
void 0!==ll&&(Uk(ci,2,ll),hk++);var ml=Hf.hasSearchTermsData;void 0!==ml&&(Uk(ci,3,ml),hk++);var ik=[hk===Object.keys(Hf).length,ci];break d}catch(Pa){Y(Pa);ik=[!1,void 0];break d}}var Ni=ik;Ni[0]&&(Jk(Qa,Dma,16,wO,Ni[1]),Va++)}var jf=[Va===Object.keys(kb).length,Qa];break c}catch(Pa){Y(Pa);jf=[!1,void 0];break c}jf=void 0}var He=jf;He[0]&&(Ik(ca,Lma,12,He[1]),Ma++)}var ae=x.cardConfig;if(ae){c:{var ph=new Nma,wg=0;try{var rm=ae.cardType;void 0!==rm&&(S(ph,3,mLa[rm]),wg++);var xg=ae.legacyMobileCardType;
void 0!==xg&&(S(ph,5,nLa[xg]),wg++);var di=ae.entityType;void 0!==di&&(S(ph,4,oLa[di]),wg++);var rj=ae.tableCardConfig;if(rj){d:{var Sg=new lx,qh=0;try{var sj=rj.dimension;void 0!==sj&&(S(Sg,1,zO[sj]),qh++);var tj=rj.metrics;void 0!==tj&&(uO(Sg.j.bind(Sg),tj,zO),qh++);var rh=[qh===Object.keys(rj).length,Sg];break d}catch(Pa){Y(Pa);rh=[!1,void 0];break d}}var uj=rh;uj[0]&&(Jk(ph,lx,1,pLa,uj[1]),wg++)}var Oi=ae.keyMetricCardConfig;if(Oi){d:{var sh=new kx,vj=0;try{var yg=Oi.metricTabConfigs;yg&&(tO(sh.j.bind(sh),
yg,qLa),vj++);var th=[vj===Object.keys(Oi).length,sh];break d}catch(Pa){Y(Pa);th=[!1,void 0];break d}}var jk=th;jk[0]&&(Jk(ph,kx,2,pLa,jk[1]),wg++)}var nl=[wg===Object.keys(ae).length,ph];break c}catch(Pa){Y(Pa);nl=[!1,void 0];break c}nl=void 0}var sm=nl;sm[0]&&(Ik(ca,Nma,13,sm[1]),Ma++)}var ei=x.externalVideoId;void 0!==ei&&(Q(ca,15,ei),Ma++);var Wf=x.videoSid;void 0!==Wf&&(Xk(ca,16,Wf),Ma++);var qf=x.exploreConfig;if(qf){c:{var Xf=new nx,zg=0;try{var kk=qf.metrics;void 0!==kk&&(uO(Xf.j.bind(Xf),
kk,zO),zg++);var wj=qf.dimension;void 0!==wj&&(S(Xf,2,zO[wj]),zg++);var ol=qf.timePeriodType;void 0!==ol&&(S(Xf,3,xO[ol]),zg++);var ic=[zg===Object.keys(qf).length,Xf];break c}catch(Pa){Y(Pa);ic=[!1,void 0];break c}}var br=ic;br[0]&&(Ik(ca,nx,18,br[1]),Ma++)}var lk=x.contentInspirationEntity;if(lk){c:{var pl=new dx,mk=0;try{var Bn=lk.video;if(Bn){d:{var fi=new zma,xj=0;try{var tm=Bn.externalVideoId;void 0!==tm&&(Q(fi,1,tm),xj++);var um=[xj===Object.keys(Bn).length,fi];break d}catch(Pa){Y(Pa);um=[!1,
void 0];break d}}var it=um;it[0]&&(Jk(pl,zma,1,AO,it[1]),mk++)}var cr=lk.kgTopic;if(cr){d:{var dr=new yma,Cn=0;try{var vm=cr.kgTopicMid;void 0!==vm&&(Q(dr,1,vm),Cn++);var nk=[Cn===Object.keys(cr).length,dr];break d}catch(Pa){Y(Pa);nk=[!1,void 0];break d}}var ql=nk;ql[0]&&(Jk(pl,yma,2,AO,ql[1]),mk++)}var ok=lk.freeformTopic;if(ok){d:{var uh=new wma,gi=0;try{var pk=ok.freeformTopic;void 0!==pk&&(Q(uh,1,pk),gi++);var er=ok.languageCode;void 0!==er&&(Q(uh,4,er),gi++);var tp=ok.isContentGap;void 0!==tp&&
(Uk(uh,2,tp),gi++);var up=ok.isShortsContentGap;void 0!==up&&(Uk(uh,3,up),gi++);var fr=ok.isInVideoIdeaShelf;void 0!==fr&&(Uk(uh,5,fr),gi++);var Dn=[gi===Object.keys(ok).length,uh];break d}catch(Pa){Y(Pa);Dn=[!1,void 0];break d}}var gr=Dn;gr[0]&&(Jk(pl,wma,3,AO,gr[1]),mk++)}var Tg=lk.generatedOutline;if(Tg){d:{var le=new xma,Te=0;try{var En=Tg.feedbackToken;void 0!==En&&(Q(le,1,En),Te++);var Ug=[Te===Object.keys(Tg).length,le];break d}catch(Pa){Y(Pa);Ug=[!1,void 0];break d}}var hi=Ug;hi[0]&&(Jk(pl,
xma,4,AO,hi[1]),mk++)}var vh=[mk===Object.keys(lk).length,pl];break c}catch(Pa){Y(Pa);vh=[!1,void 0];break c}vh=void 0}var vp=vh;vp[0]&&(Ik(ca,dx,19,vp[1]),Ma++)}var rl=[Ma===Object.keys(x).length,ca];break b}catch(Pa){Y(Pa);rl=[!1,void 0];break b}rl=void 0}var hr=rl;hr[0]&&(Ik(q,Uma,20,hr[1]),r++)}var Fn=p.promotionData;if(Fn){b:{var wm=new lna,Gn=0;try{var ir=Fn.promotionId;void 0!==ir&&(Q(wm,1,ir),Gn++);var ii=Fn.placementType;void 0!==ii&&(S(wm,9,rLa[ii]),Gn++);var yj=[Gn===Object.keys(Fn).length,
wm];break b}catch(Pa){Y(Pa);yj=[!1,void 0];break b}}var qk=yj;qk[0]&&(Ik(q,lna,21,qk[1]),r++)}var sl=p.backstageItem;if(sl){b:{var xm=new Vma,ym=0;try{var wp=sl.stanzaId;void 0!==wp&&(Q(xm,1,wp),ym++);var xp=sl.likeCount;void 0!==xp&&(Xk(xm,7,xp),ym++);var yp=sl.backstageId;void 0!==yp&&(Q(xm,9,yp),ym++);var Hn=sl.wasPostScheduled;void 0!==Hn&&(Uk(xm,14,Hn),ym++);var Lc=[ym===Object.keys(sl).length,xm];break b}catch(Pa){Y(Pa);Lc=[!1,void 0];break b}}var wh=Lc;wh[0]&&(Ik(q,Vma,32,wh[1]),r++)}var Yf=
p.adminSelfieData;if(Yf){b:{var ji=new Sma,xh=0;try{var In=Yf.componentId;void 0!==In&&(Q(ji,1,In),xh++);var jr=Yf.componentType;void 0!==jr&&(Q(ji,2,jr),xh++);var tl=Yf.payload;if(tl){c:{var Jn=new Rma,ul=0;try{var zp=tl.include;if(zp){d:{var kr=new Oma,Ap=0;try{var zj=zp.fragmentName;void 0!==zj&&(Q(kr,1,zj),Ap++);var Pi=[Ap===Object.keys(zp).length,kr];break d}catch(Pa){Y(Pa);Pi=[!1,void 0];break d}}var rk=Pi;rk[0]&&(Jk(Jn,Oma,1,sLa,rk[1]),ul++)}var vl=tl.toolboxPage;if(vl){d:{var Kn=new Qma,Ln=
0;try{var sk=vl.fragmentName;void 0!==sk&&(Q(Kn,1,sk),Ln++);var Aj=[Ln===Object.keys(vl).length,Kn];break d}catch(Pa){Y(Pa);Aj=[!1,void 0];break d}}var tk=Aj;tk[0]&&(Jk(Jn,Qma,2,sLa,tk[1]),ul++)}var Bp=tl.reviewQueuePage;if(Bp){d:{var wl=new Pma,lr=0;try{var xl=Bp.queueId;void 0!==xl&&(Vk(wl,1,xl),lr++);var yl=[lr===Object.keys(Bp).length,wl];break d}catch(Pa){Y(Pa);yl=[!1,void 0];break d}}var zl=yl;zl[0]&&(Jk(Jn,Pma,3,sLa,zl[1]),ul++)}var Cp=[ul===Object.keys(tl).length,Jn];break c}catch(Pa){Y(Pa);
Cp=[!1,void 0];break c}Cp=void 0}var uk=Cp;uk[0]&&(Ik(ji,Rma,3,uk[1]),xh++)}var zm=[xh===Object.keys(Yf).length,ji];break b}catch(Pa){Y(Pa);zm=[!1,void 0];break b}zm=void 0}var Mn=zm;Mn[0]&&(Ik(q,Sma,41,Mn[1]),r++)}var Al=p.notificationState;if(Al){b:{var Nn=new vna,On=0;try{var Pn=Al.inboxInteractionData;if(Pn){c:{var Qn=new Ex,Dp=0;try{var yh=Pn.notifications;yh&&(tO(Qn.j.bind(Qn),yh,tLa),Dp++);var Ep=[Dp===Object.keys(Pn).length,Qn];break c}catch(Pa){Y(Pa);Ep=[!1,void 0];break c}}var vk=Ep;vk[0]&&
(Ik(Nn,Ex,9,vk[1]),On++)}var Ag=[On===Object.keys(Al).length,Nn];break b}catch(Pa){Y(Pa);Ag=[!1,void 0];break b}Ag=void 0}var Am=Ag;Am[0]&&(Ik(q,vna,59,Am[1]),r++)}var Vg=p.delegationContext;if(Vg){b:{var Qi=new jna,ki=0;try{var Bj=Vg.externalChannelId;void 0!==Bj&&(Q(Qi,1,Bj),ki++);var wk=Vg.externalOwnerId;void 0!==wk&&(Q(Qi,3,wk),ki++);var Rn=Vg.artistId;void 0!==Rn&&(Q(Qi,4,Rn),ki++);var Bl=Vg.roleType;if(Bl){c:{var Ri=new ina,Si=0;try{var xk=Bl.channelRoleType;void 0!==xk&&(bl(Ri,1,uLa,vLa[xk]),
Si++);var Fp=Bl.artistRoleType;void 0!==Fp&&(bl(Ri,2,uLa,wLa[Fp]),Si++);var yk=Bl.contentOwnerRoleType;void 0!==yk&&(bl(Ri,3,uLa,xLa[yk]),Si++);var zk=[Si===Object.keys(Bl).length,Ri];break c}catch(Pa){Y(Pa);zk=[!1,void 0];break c}}var Cl=zk;Cl[0]&&(Ik(Qi,ina,5,Cl[1]),ki++)}var Dl=Vg.oacChannelId;void 0!==Dl&&(Q(Qi,6,Dl),ki++);var El=Vg.isInternalUser;void 0!==El&&(Uk(Qi,8,El),ki++);var Bm=Vg.user;void 0!==Bm&&(Uk(Qi,10,Bm),ki++);var Gp=Vg.delegationContextSerialized;void 0!==Gp&&(al(Qi,9,Gp),ki++);
var Hp=[ki===Object.keys(Vg).length,Qi];break b}catch(Pa){Y(Pa);Hp=[!1,void 0];break b}Hp=void 0}var Sn=Hp;Sn[0]&&(Ik(q,jna,63,Sn[1]),r++)}var Ip=p.campaignData;if(Ip){b:{var Jp=new tna,Fl=0;try{var Tn=Ip.campaignName;void 0!==Tn&&(Q(Jp,1,Tn),Fl++);var Un=Ip.campaignVersion;void 0!==Un&&(Q(Jp,2,Un),Fl++);var Cm=[Fl===Object.keys(Ip).length,Jp];break b}catch(Pa){Y(Pa);Cm=[!1,void 0];break b}}var mr=Cm;mr[0]&&(Ik(q,tna,64,mr[1]),r++)}var Dm=p.scoringEventInfo;if(Dm){b:{var Kp=new mna,Lp=0;try{var Mp=
Dm.scoringTrackingParams;void 0!==Mp&&(al(Kp,1,Mp),Lp++);var Np=[Lp===Object.keys(Dm).length,Kp];break b}catch(Pa){Y(Pa);Np=[!1,void 0];break b}}var Em=Np;Em[0]&&(Ik(q,mna,77,Em[1]),r++)}var Gl=p.servletData;if(Gl){b:{var Vn=new nna,Wn=0;try{var Op=Gl.serializedServletEventId;void 0!==Op&&(Q(Vn,1,Op),Wn++);var Xn=[Wn===Object.keys(Gl).length,Vn];break b}catch(Pa){Y(Pa);Xn=[!1,void 0];break b}}var nr=Xn;nr[0]&&(Ik(q,nna,83,nr[1]),r++)}var Pp=p.yoodleData;if(Pp){b:{var Yn=new sna,or=0;try{var me=Pp.promoId;
void 0!==me&&(Q(Yn,1,me),or++);var ue=[or===Object.keys(Pp).length,Yn];break b}catch(Pa){Y(Pa);ue=[!1,void 0];break b}}var Ie=ue;Ie[0]&&(Ik(q,sna,85,Ie[1]),r++)}var Zn=p.videoRestrictionData;if(Zn){b:{var $n=new Dx,Fm=0;try{var ao=Zn.restrictions;ao&&(tO($n.j.bind($n),ao,yLa),Fm++);var Qp=Zn.prechecksPending;void 0!==Qp&&(Uk($n,2,Qp),Fm++);var Rp=[Fm===Object.keys(Zn).length,$n];break b}catch(Pa){Y(Pa);Rp=[!1,void 0];break b}}var Sp=Rp;Sp[0]&&(Ik(q,Dx,92,Sp[1]),r++)}var li=p.creatorMusicData;if(li){b:{var mi=
new wx,Cj=0;try{var bo=li.entity;if(bo){var pr=zLa(bo);pr[0]&&(Ik(mi,vx,1,pr[1]),Cj++)}var Gm=li.entities;Gm&&(tO(mi.j.bind(mi),Gm,zLa),Cj++);var co=li.track;if(co){var eo=ALa(co);eo[0]&&(Jk(mi,ux,3,BO,eo[1]),Cj++)}var fo=li.artist;if(fo){c:{var Ak=new dna,Hm=0;try{var Ti=fo.details;if(Ti){d:{var go=new ox,ho=0;try{var qr=Ti.kgMid;void 0!==qr&&(Q(go,1,qr),ho++);var rr=Ti.name;void 0!==rr&&(Q(go,2,rr),ho++);var Ui=[ho===Object.keys(Ti).length,go];break d}catch(Pa){Y(Pa);Ui=[!1,void 0];break d}}var Hl=
Ui;Hl[0]&&(Ik(Ak,ox,1,Hl[1]),Hm++)}var Dj=[Hm===Object.keys(fo).length,Ak];break c}catch(Pa){Y(Pa);Dj=[!1,void 0];break c}Dj=void 0}var sr=Dj;sr[0]&&(Jk(mi,dna,5,BO,sr[1]),Cj++)}var io=li.licensePurchase;if(io){c:{var Tp=new gna,jo=0;try{var tr=io.assetId;void 0!==tr&&(Q(Tp,1,tr),jo++);var ko=io.artTrackId;void 0!==ko&&(Q(Tp,2,ko),jo++);var Up=[jo===Object.keys(io).length,Tp];break c}catch(Pa){Y(Pa);Up=[!1,void 0];break c}}var ni=Up;ni[0]&&(Jk(mi,gna,6,BO,ni[1]),Cj++)}var Il=li.claim;if(Il){c:{var Vi=
new ena,Vp=0;try{var Wg=Il.assetId;void 0!==Wg&&(Q(Vi,1,Wg),Vp++);var Zf=[Vp===Object.keys(Il).length,Vi];break c}catch(Pa){Y(Pa);Zf=[!1,void 0];break c}}var $f=Zf;$f[0]&&(Jk(mi,ena,7,BO,$f[1]),Cj++)}var Jl=li.collection;if(Jl){var ur=BLa(Jl);ur[0]&&(Jk(mi,tx,4,BO,ur[1]),Cj++)}var Ue=[Cj===Object.keys(li).length,mi];break b}catch(Pa){Y(Pa);Ue=[!1,void 0];break b}Ue=void 0}var zh=Ue;zh[0]&&(Ik(q,wx,96,zh[1]),r++)}var rf=p.creatorData;if(rf){b:{var ag=new cna,Kl=0;try{var Bk=rf.ttWizardTargetFeature;
void 0!==Bk&&(bl(ag,1,CLa,DLa[Bk]),Kl++);var vr=rf.ttWizardTargetLevel;void 0!==vr&&(bl(ag,2,CLa,ELa[vr]),Kl++);var jt=rf.simpleWizardDetails;if(jt){var kt=new bna;try{var Wp=[0===Object.keys(jt).length,kt]}catch(Pa){Y(Pa),Wp=[!1,void 0]}var wr=Wp;wr[0]&&(Jk(ag,bna,3,FLa,wr[1]),Kl++)}var Im=rf.advancedWizardDetails;if(Im){c:{var lo=new $ma,Ll=0;try{var Ml=Im.isDoubleHop;void 0!==Ml&&(Uk(lo,1,Ml),Ll++);var Xp=[Ll===Object.keys(Im).length,lo];break c}catch(Pa){Y(Pa);Xp=[!1,void 0];break c}}var Yp=Xp;
Yp[0]&&(Jk(ag,$ma,4,FLa,Yp[1]),Kl++)}var Wi=rf.blockedWizardDetails;if(Wi){c:{var Zp=new ana,mo=0;try{var Nl=Wi.loggableBlockedReason;void 0!==Nl&&(S(Zp,1,GLa[Nl]),mo++);var Ck=[mo===Object.keys(Wi).length,Zp];break c}catch(Pa){Y(Pa);Ck=[!1,void 0];break c}}var Ol=Ck;Ol[0]&&(Jk(ag,ana,5,FLa,Ol[1]),Kl++)}var Pl=[Kl===Object.keys(rf).length,ag];break b}catch(Pa){Y(Pa);Pl=[!1,void 0];break b}Pl=void 0}var no=Pl;no[0]&&(Ik(q,cna,98,no[1]),r++)}var oo=p.adstubeData;if(oo){b:{var $p=new Tma,Ql=0;try{var Dk=
oo.countryTargetingPrefill;if(Dk){c:{var Rl=new mx,Ej=0;try{var Ek=Dk.prefilledCodes;Ek&&(tO(Rl.B.bind(Rl),Ek),Ej++);var Fk=Dk.finalCodes;Fk&&(tO(Rl.j.bind(Rl),Fk),Ej++);var aq=Dk.source;void 0!==aq&&(Q(Rl,3,aq),Ej++);var xr=[Ej===Object.keys(Dk).length,Rl];break c}catch(Pa){Y(Pa);xr=[!1,void 0];break c}}var lt=xr;lt[0]&&(Ik($p,mx,1,lt[1]),Ql++)}var po=[Ql===Object.keys(oo).length,$p];break b}catch(Pa){Y(Pa);po=[!1,void 0];break b}po=void 0}var qo=po;qo[0]&&(Ik(q,Tma,104,qo[1]),r++)}var Jm=p.loggingExpectations;
if(Jm){var Xi=HLa(Jm);Xi[0]&&(Ik(q,Ix,106,Xi[1]),r++)}var oi=p.channelPageVeData;if(oi){b:{var Sl=new Yma,yr=0;try{var zr=oi.isForYouShelf;void 0!==zr&&(Uk(Sl,2,zr),yr++);var Yi=[yr===Object.keys(oi).length,Sl];break b}catch(Pa){Y(Pa);Yi=[!1,void 0];break b}}var Ar=Yi;Ar[0]&&(Ik(q,Yma,107,Ar[1]),r++)}var ro=p.shoppingAffiliateData;if(ro){b:{var bq=new ona,kv=0;try{var cq=ro.affiliateDeepLinkSource;void 0!==cq&&(S(bq,1,ILa[cq]),kv++);var Zi=[kv===Object.keys(ro).length,bq];break b}catch(Pa){Y(Pa);
Zi=[!1,void 0];break b}}var Gk=Zi;Gk[0]&&(Ik(q,ona,109,Gk[1]),r++)}var Tl=p.hashtagSuggestionData;if(Tl){b:{var mt=new Bx,lv=0;try{var Sx=Tl.hashtagId;void 0!==Sx&&(Q(mt,1,Sx),lv++);var mv=Tl.suggestionSources;void 0!==mv&&(uO(mt.j.bind(mt),mv,JLa),lv++);var nv=[lv===Object.keys(Tl).length,mt];break b}catch(Pa){Y(Pa);nv=[!1,void 0];break b}}var ov=nv;ov[0]&&(Ik(q,Bx,111,ov[1]),r++)}var nt=p.componentData;if(nt){b:{var Tx=new Zma,Br=0;try{var ot=nt.standardComponentType;void 0!==ot&&(S(Tx,1,KLa[ot]),
Br++);var Cr=[Br===Object.keys(nt).length,Tx];break b}catch(Pa){Y(Pa);Cr=[!1,void 0];break b}}var Ux=Cr;Ux[0]&&(Ik(q,Zma,121,Ux[1]),r++)}var pt=p.creatorShoppingTaggingData;if(pt){b:{var Dr=new Ax,qt=0;try{var Vx=pt.products;Vx&&(tO(Dr.j.bind(Dr),Vx,LLa),qt++);var pv=pt.taggedVideos;pv&&(tO(Dr.B.bind(Dr),pv,MLa),qt++);var qv=[qt===Object.keys(pt).length,Dr];break b}catch(Pa){Y(Pa);qv=[!1,void 0];break b}}var Wx=qv;Wx[0]&&(Ik(q,Ax,122,Wx[1]),r++)}var rv=[r===Object.keys(p).length,q];break a}catch(Pa){Y(Pa);
rv=[!1,void 0];break a}rv=void 0}var Xx=rv;Xx[0]&&(Ik(b,Jx,8,Xx[1]),c++)}var tv=a.loggingExpectations;if(tv){var Yx=HLa(tv);Yx[0]&&(Ik(b,Ix,9,Yx[1]),c++)}return[c===Object.keys(a).length,b]}catch(Pa){return Y(Pa),[!1,void 0]}};
bLa=function(a){var b=new jx,c=0;try{var d=a.views;void 0!==d&&(S(b,1,yO[d]),c++);var e=a.driver;void 0!==e&&(S(b,2,NLa[e]),c++);var f=a.ctr;void 0!==f&&(S(b,3,yO[f]),c++);var h=a.avd;void 0!==h&&(S(b,4,yO[h]),c++);var l=a.impressions;void 0!==l&&(S(b,5,yO[l]),c++);var m=a.videoLength;void 0!==m&&(S(b,6,yO[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
fLa=function(a){var b=new ix,c=0;try{var d=a.subsGrowth;void 0!==d&&(S(b,1,yO[d]),c++);var e=a.nonSubViews;void 0!==e&&(S(b,2,yO[e]),c++);var f=a.subsAddedPerNonSubViews;void 0!==f&&(S(b,3,yO[f]),c++);var h=a.accountsClosed;void 0!==h&&(S(b,4,yO[h]),c++);var l=a.subsRemovedToAddedRatio;void 0!==l&&(S(b,5,yO[l]),c++);var m=a.videosPublished;void 0!==m&&(S(b,6,yO[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
gLa=function(a){var b=new hx,c=0;try{var d=a.revenue;void 0!==d&&(S(b,1,yO[d]),c++);var e=a.revenueSource;void 0!==e&&(S(b,2,OLa[e]),c++);var f=a.revenueDrivingMetrics;void 0!==f&&(uO(b.j.bind(b),f,PLa),c++);var h=a.revenueChangeReason;void 0!==h&&(S(b,4,QLa[h]),c++);var l=a.revenueChangeFact;void 0!==l&&(S(b,5,RLa[l]),c++);var m=a.driverCountryCode;void 0!==m&&(Q(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
hLa=function(a){var b=new gx,c=0;try{var d=a.views;void 0!==d&&(S(b,1,yO[d]),c++);var e=a.drivers;void 0!==e&&(uO(b.j.bind(b),e,SLa),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
qLa=function(a){var b=new Mma,c=0;try{var d=a.metric;void 0!==d&&(S(b,1,zO[d]),c++);var e=a.comparisonMetric;void 0!==e&&(S(b,2,zO[e]),c++);var f=a.includeCumulative;void 0!==f&&(Uk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
tLa=function(a){var b=new una,c=0;try{var d=a.attributionTag;void 0!==d&&(Q(b,2,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
yLa=function(a){var b=new rna,c=0;try{var d=a.limitedAds;if(d){a:{var e=new qna,f=0;try{var h=d.imposer;void 0!==h&&(S(e,1,TLa[h]),f++);var l=[f===Object.keys(d).length,e];break a}catch(C){Y(C);l=[!1,void 0];break a}}d=l;d[0]&&(Jk(b,qna,1,ULa,d[1]),c++)}var m=a.copyright;if(m){a:{var n=new pna;d=0;try{var p=m.policyType;void 0!==p&&(S(n,1,VLa[p]),d++);var q=m.productTagsBlocked;void 0!==q&&(Uk(n,2,q),d++);var r=[d===Object.keys(m).length,n];break a}catch(C){Y(C);r=[!1,void 0];break a}}m=r;m[0]&&(Jk(b,
pna,2,ULa,m[1]),c++)}var t=a.communityGuidelines;if(t){a:{var v=new Cx;m=0;try{var w=t.policyVerticals;void 0!==w&&(uO(v.j.bind(v),w,WLa),m++);var A=[m===Object.keys(t).length,v];break a}catch(C){Y(C);A=[!1,void 0];break a}}t=A;t[0]&&(Jk(b,Cx,3,ULa,t[1]),c++)}return[c===Object.keys(a).length,b]}catch(C){return Y(C),[!1,void 0]}};
zLa=function(a){var b=new vx,c=0;try{var d=a.featuredCollection;if(d){var e=XLa(d);e[0]&&(Jk(b,px,1,CO,e[1]),c++)}var f=a.mood;if(f){var h=YLa(f);h[0]&&(Jk(b,rx,2,CO,h[1]),c++)}var l=a.genre;if(l){var m=ZLa(l);m[0]&&(Jk(b,qx,3,CO,m[1]),c++)}var n=a.track;if(n){var p=ALa(n);p[0]&&(Jk(b,ux,4,CO,p[1]),c++)}return[c===Object.keys(a).length,b]}catch(q){return Y(q),[!1,void 0]}};
XLa=function(a){var b=new px,c=0;try{var d=a.id;void 0!==d&&(Q(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
YLa=function(a){var b=new rx,c=0;try{var d=a.type;void 0!==d&&(S(b,1,$La[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
ZLa=function(a){var b=new qx,c=0;try{var d=a.type;void 0!==d&&(S(b,1,aMa[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
ALa=function(a){var b=new ux,c=0;try{var d=a.artTrackId;void 0!==d&&(Q(b,1,d),c++);var e=a.assetId;void 0!==e&&(Q(b,2,e),c++);var f=a.details;if(f){var h=new fna;try{var l=[0===Object.keys(f).length,h]}catch(p){Y(p),l=[!1,void 0]}d=l;d[0]&&(Ik(b,fna,3,d[1]),c++)}var m=a.parent;if(m){var n=BLa(m);n[0]&&(Ik(b,tx,4,n[1]),c++)}return[c===Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}};
BLa=function(a){var b=new tx,c=0;try{var d=a.featuredCollection;if(d){var e=XLa(d);e[0]&&(Jk(b,px,1,DO,e[1]),c++)}var f=a.mood;if(f){var h=YLa(f);h[0]&&(Jk(b,rx,2,DO,h[1]),c++)}var l=a.genre;if(l){var m=ZLa(l);m[0]&&(Jk(b,qx,3,DO,m[1]),c++)}var n=a.section;if(n){a:{var p=new sx;d=0;try{var q=n.type;void 0!==q&&(S(p,1,bMa[q]),d++);var r=[d===Object.keys(n).length,p];break a}catch(v){Y(v);r=[!1,void 0];break a}}n=r;n[0]&&(Jk(b,sx,4,DO,n[1]),c++)}var t=a.dimension;void 0!==t&&(S(b,5,cMa[t]),c++);return[c===
Object.keys(a).length,b]}catch(v){return Y(v),[!1,void 0]}};
HLa=function(a){var b=new Ix,c=0;try{var d=a.attachLoggingExpectations;if(d){a:{var e=new Gx,f=0;try{var h=d.attachScreenExpectations;h&&(tO(e.j.bind(e),h,dMa),f++);var l=[f===Object.keys(d).length,e];break a}catch(r){Y(r);l=[!1,void 0];break a}}d=l;d[0]&&(Ik(b,Gx,1,d[1]),c++)}var m=a.screenCreatedLoggingExpectations;if(m){a:{var n=new Hx;d=0;try{var p=m.expectedParentScreens;p&&(tO(n.j.bind(n),p,dMa),d++);var q=[d===Object.keys(m).length,n];break a}catch(r){Y(r);q=[!1,void 0];break a}}m=q;m[0]&&
(Ik(b,Hx,2,m[1]),c++)}return[c===Object.keys(a).length,b]}catch(r){return Y(r),[!1,void 0]}};
dMa=function(a){var b=new Fx,c=0;try{var d=a.screenVeType;void 0!==d&&(wna(b,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
LLa=function(a){var b=new yx,c=0;try{var d=a.taggingSource;void 0!==d&&(S(b,1,eMa[d]),c++);var e=a.id;if(e){a:{var f=new xx;d=0;try{var h=e.docid;void 0!==h&&(Yk(f,1,h),d++);var l=[d===Object.keys(e).length,f];break a}catch(A){Y(A);l=[!1,void 0];break a}}e=l;e[0]&&(Ik(b,xx,2,e[1]),c++)}var m=a.skuId;if(m){a:{var n=new hna;e=0;try{var p=m.merchantId;void 0!==p&&(dk(n,1,fMa,Ii(p)),e++);var q=m.youtubeGroupId;void 0!==q&&(dk(n,2,fMa,cj(q)),e++);var r=m.rawMerchantOfferId;void 0!==r&&(Q(n,3,r),e++);var t=
[e===Object.keys(m).length,n];break a}catch(A){Y(A);t=[!1,void 0];break a}}m=t;m[0]&&(Ik(b,hna,3,m[1]),c++)}var v=a.userInputUrl;void 0!==v&&(Q(b,4,v),c++);var w=a.userSearchQuery;void 0!==w&&(Q(b,5,w),c++);return[c===Object.keys(a).length,b]}catch(A){return Y(A),[!1,void 0]}};
MLa=function(a){var b=new zx,c=0;try{var d=a.externalVideoId;void 0!==d&&(Q(b,1,d),c++);var e=a.products;e&&(tO(b.j.bind(b),e,LLa),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
iMa=function(a){var b=new Ry,c=0;try{var d=a.segments;d&&(tO(b.j.bind(b),d,gMa),c++);var e=a.transitions;e&&(tO(b.B.bind(b),e,hMa),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
gMa=function(a){var b=new Py,c=0;try{var d=a.type;void 0!==d&&(S(b,1,jMa[d]),c++);var e=a.effects;e&&(tO(b.a7.bind(b),e,kMa),c++);var f=a.videoInfo;if(f){var h=lMa(f);h[0]&&(Ik(b,Oy,3,h[1]),c++)}var l=a.audioInfo;if(l){a:{var m=new goa;d=0;try{var n=l.sourceOffsetMs;void 0!==n&&(Xk(m,1,n),d++);var p=l.sampleRateHz;void 0!==p&&(Vk(m,2,p),d++);var q=l.channelCount;void 0!==q&&(Vk(m,3,q),d++);var r=l.isRemote;void 0!==r&&(Uk(m,4,r),d++);var t=[d===Object.keys(l).length,m];break a}catch(F){Y(F);t=[!1,
void 0];break a}}l=t;l[0]&&(Ik(b,goa,4,l[1]),c++)}var v=a.startTimeMs;void 0!==v&&(Xk(b,5,v),c++);var w=a.durationMs;void 0!==w&&(Yk(b,6,w),c++);var A=a.playbackRate;void 0!==A&&(b.setPlaybackRate(A),c++);var C=a.enabled;void 0!==C&&(b.setEnabled(C),c++);return[c===Object.keys(a).length,b]}catch(F){return Y(F),[!1,void 0]}};
kMa=function(a){var b=new hoa,c=0;try{var d=a.effectBaseName;void 0!==d&&(Q(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
lMa=function(a){var b=new Oy,c=0;try{var d=a.resolutionWidth;void 0!==d&&(Vk(b,1,d),c++);var e=a.resolutionHeight;void 0!==e&&(Vk(b,2,e),c++);var f=a.frameRate;void 0!==f&&(Zk(b,3,f),c++);var h=a.durationMs;void 0!==h&&(Yk(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
hMa=function(a){var b=new Qy,c=0;try{var d=a.incomingSegment;if(d){var e=gMa(d);e[0]&&(Ik(b,Py,1,e[1]),c++)}var f=a.outgoingSegment;if(f){var h=gMa(f);h[0]&&(Ik(b,Py,2,h[1]),c++)}var l=a.durationMs;void 0!==l&&(Yk(b,3,l),c++);return[c===Object.keys(a).length,b]}catch(m){return Y(m),[!1,void 0]}};
mMa=function(a){var b=new eoa,c=0;try{var d=a.previewWidth;void 0!==d&&(Vk(b,1,d),c++);var e=a.previewHeight;void 0!==e&&(Vk(b,2,e),c++);var f=a.fps;void 0!==f&&(Vk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
oNa=function(a){var b=new Hz,c=0;try{var d=a.encryptedVideoId;void 0!==d&&(Q(b,1,d),c++);var e=a.cotn;void 0!==e&&(Q(b,20,e),c++);var f=a.cpn;void 0!==f&&(Q(b,30,f),c++);var h=a.transferStatusType;void 0!==h&&(S(b,38,nMa[h]),c++);var l=a.statusType;void 0!==l&&(S(b,2,oMa[l]),c++);var m=a.failureReason;void 0!==m&&(S(b,3,pMa[m]),c++);var n=a.transferFailureReason;void 0!==n&&(S(b,41,qMa[n]),c++);var p=a.failureExceptionType;void 0!==p&&(Q(b,37,p),c++);var q=a.totalFetchedKbytes;void 0!==q&&(Xk(b,4,
q),c++);var r=a.diskAvailableKbytes;void 0!==r&&(Xk(b,5,r),c++);var t=a.totalContentKbytes;void 0!==t&&(Xk(b,21,t),c++);var v=a.alreadyDownloadedKbytes;void 0!==v&&(Xk(b,22,v),c++);var w=a.fetchedFromCacheKbytes;void 0!==w&&(Xk(b,23,w),c++);var A=a.systemHealth;if(A){a:{var C=new rz,F=0;try{var H=A.tag;void 0!==H&&(S(C,1,rMa[H]),F++);var M=A.staticContext;if(M){b:{var L=new qoa,R=0;try{var ba=M.displayDensityDpi;void 0!==ba&&(Vk(L,1,ba),R++);var ma=M.heightPixels;void 0!==ma&&(Vk(L,2,ma),R++);var na=
M.widthPixels;void 0!==na&&(Vk(L,3,na),R++);var ia=M.memoryTotalKbytes;void 0!==ia&&(Xk(L,4,ia),R++);var sa=M.osSdkVersion;void 0!==sa&&(Vk(L,5,sa),R++);var aa=M.osIncrementalVersion;void 0!==aa&&(Q(L,6,aa),R++);var U=M.hardwareArchitecture;void 0!==U&&(Q(L,7,U),R++);var Ka=M.appVersionCode;void 0!==Ka&&(Vk(L,8,Ka),R++);var x=M.devicePixelRatio;void 0!==x&&(Zk(L,9,x),R++);var ca=M.buildFingerprint;void 0!==ca&&(Q(L,10,ca),R++);var Ma=M.socManufacturer;void 0!==Ma&&(Q(L,11,Ma),R++);var $a=M.socModel;
void 0!==$a&&(Q(L,12,$a),R++);var kb=M.availableProcessors;void 0!==kb&&(Vk(L,13,kb),R++);var Qa=M.cpuCores;void 0!==Qa&&(Vk(L,14,Qa),R++);var Va=M.heightPoints;void 0!==Va&&(Vk(L,15,Va),R++);var jb=M.widthPoints;void 0!==jb&&(Vk(L,16,jb),R++);var rb=M.androidMediaPerformanceClass;void 0!==rb&&(Vk(L,17,rb),R++);var pb=[R===Object.keys(M).length,L];break b}catch(ob){Y(ob);pb=[!1,void 0];break b}}var B=pb;B[0]&&(Ik(C,qoa,2,B[1]),F++)}var D=A.dynamicContext;if(D){b:{var E=new lz,J=0;try{var K=D.screenOn;
void 0!==K&&(Uk(E,1,K),J++);var da=D.deviceRotation;void 0!==da&&(Vk(E,2,da),J++);var ta=D.networkType;void 0!==ta&&(Vk(E,3,ta),J++);var la=D.networkCoarseState;void 0!==la&&(Vk(E,4,la),J++);var O=D.chargingStatus;void 0!==O&&(S(E,5,sMa[O]),J++);var Z=D.isInForeground;void 0!==Z&&(Uk(E,6,Z),J++);var za=D.viewportHeightPixels;void 0!==za&&(Vk(E,7,za),J++);var xa=D.viewportWidthPixels;void 0!==xa&&(Vk(E,8,xa),J++);var ab=D.hasCoarsePointer;void 0!==ab&&(Uk(E,9,ab),J++);var Wa=D.hasFinePointer;void 0!==
Wa&&(Uk(E,10,Wa),J++);var zb=D.hasHoverSupport;void 0!==zb&&(Uk(E,11,zb),J++);var Rb=D.deviceFreeStorageMbytes;void 0!==Rb&&(Xk(E,12,Rb),J++);var Za=D.deviceStorageQuotaMbytes;void 0!==Za&&(Xk(E,13,Za),J++);var $b=D.deviceStorageUsageMbytes;void 0!==$b&&(Xk(E,14,$b),J++);var hc=D.processUptimeMs;void 0!==hc&&(Xk(E,15,hc),J++);var Jc=D.hasAppShell;void 0!==Jc&&(Uk(E,16,Jc),J++);var Yb=D.glVersion;void 0!==Yb&&(Q(E,17,Yb),J++);var vc=D.glRenderer;void 0!==vc&&(Q(E,18,vc),J++);var $c=D.srsDatapushBuildIds;
$c&&(tO(E.B.bind(E),$c,tMa),J++);var Rc=D.playerDatapushBuildIds;Rc&&(tO(E.j.bind(E),Rc,uMa),J++);var tc=D.creationContext;if(tc){c:{var Vb=new kz,Wb=0;try{var yd=tc.activeFrontendUploadId;void 0!==yd&&(Q(Vb,1,yd),Wb++);var pd=tc.inShortsCreation;void 0!==pd&&(Uk(Vb,2,pd),Wb++);var qd=tc.activeEffectLoggingIds;qd&&(tO(Vb.j.bind(Vb),qd,vMa),Wb++);var ac=tc.activePages;void 0!==ac&&(uO(Vb.B.bind(Vb),ac,wMa),Wb++);var Ec=[Wb===Object.keys(tc).length,Vb];break c}catch(ob){Y(ob);Ec=[!1,void 0];break c}}var Ib=
Ec;Ib[0]&&(Ik(E,kz,21,Ib[1]),J++)}var bd=D.kimonoContext;if(bd){c:{var zd=new ooa,Pb=0;try{var fe=bd.cobaltUserAgent;void 0!==fe&&(Q(zd,1,fe),Pb++);var Ud=bd.webAppVersion;void 0!==Ud&&(Q(zd,2,Ud),Pb++);var Vd=bd.cobaltVersion;void 0!==Vd&&(Q(zd,3,Vd),Pb++);var Ce=bd.webAppInterface;void 0!==Ce&&(S(zd,4,xMa[Ce]),Pb++);var De=bd.clientDocumentNonce;void 0!==De&&(Q(zd,5,De),Pb++);var Ld=bd.applicationState;void 0!==Ld&&(S(zd,6,yMa[Ld]),Pb++);var $e=[Pb===Object.keys(bd).length,zd];break c}catch(ob){Y(ob);
$e=[!1,void 0];break c}}var Oe=$e;Oe[0]&&(Ik(E,ooa,22,Oe[1]),J++)}var Md=[J===Object.keys(D).length,E];break b}catch(ob){Y(ob);Md=[!1,void 0];break b}Md=void 0}var Bf=Md;Bf[0]&&(Ik(C,lz,3,Bf[1]),F++)}var Nd=A.serializedPrimesMetric;void 0!==Nd&&(al(C,4,Nd),F++);var ge=A.serializedIosPrimesMetric;void 0!==ge&&(al(C,6,ge),F++);var rd=A.webMetric;if(rd){b:{var Hd=new soa,sd=0;try{var Od=rd.currentHeapKbytes;void 0!==Od&&(Vk(Hd,1,Od),sd++);var jg=rd.navigationCount;void 0!==jg&&(Vk(Hd,2,jg),sd++);var af=
[sd===Object.keys(rd).length,Hd];break b}catch(ob){Y(ob);af=[!1,void 0];break b}}var Qf=af;Qf[0]&&(Ik(C,soa,7,Qf[1]),F++)}var Xc=A.crashData;if(Xc){b:{var oc=new iz,Pe=0;try{var ih=Xc.stackTrace;void 0!==ih&&(Q(oc,1,ih),Pe++);var Zh=Xc.screenVeType;void 0!==Zh&&(Vk(oc,2,Zh),Pe++);var mh=Xc.compactStackTrace;if(mh){var Ki=EO(mh);Ki[0]&&(Ik(oc,Ey,3,Ki[1]),Pe++)}var pf=Xc.crashTimeMs;void 0!==pf&&(Xk(oc,4,pf),Pe++);var ff=Xc.clientError;if(ff){c:{var Fe=new hz,$h=0;try{var uc=ff.errorMetadata;if(uc){d:{var Fc=
new Yy,Gc=0;try{var Li=uc.exceptionCategory;void 0!==Li&&(S(Fc,1,zMa[Li]),Gc++);var Ff=uc.serviceTrackingData;if(Ff){e:{var pg=new coa,gf=0;try{var Dd=Ff.innertubeBuildChangelist;void 0!==Dd&&(Xk(pg,1,Dd),gf++);var Tf=Ff.innertubeBuildExperimentsSourceVersion;void 0!==Tf&&(Xk(pg,2,Tf),gf++);var ai=Ff.innertubeBuildLabel;void 0!==ai&&(Q(pg,3,ai),gf++);var qg=Ff.innertubeBuildTimestampSec;void 0!==qg&&(Xk(pg,4,qg),gf++);var Pg=Ff.innertubeBuildVariantsChecksum;void 0!==Pg&&(Q(pg,5,Pg),gf++);var rg=
Ff.innertubeJobName;void 0!==rg&&(Q(pg,6,rg),gf++);var Mi=[gf===Object.keys(Ff).length,pg];break e}catch(ob){Y(ob);Mi=[!1,void 0];break e}}var ke=Mi;ke[0]&&(Ik(Fc,coa,2,ke[1]),Gc++)}var sg=uc.pageUrl;void 0!==sg&&(Q(Fc,3,sg),Gc++);var tg=uc.kvPairs;tg&&(tO(Fc.j.bind(Fc),tg,AMa),Gc++);var bi=uc.experimentIds;bi&&(tO(Fc.B.bind(Fc),bi),Gc++);var Gf=uc.playerMetadata;if(Gf){e:{var ug=new Wy,nh=0;try{var Qg=Gf.error;void 0!==Qg&&(uO(ug.j.bind(ug),Qg,BMa),nh++);var oh=Gf.stackTrace;void 0!==oh&&(Q(ug,2,
oh),nh++);var te=[nh===Object.keys(Gf).length,ug];break e}catch(ob){Y(ob);te=[!1,void 0];break e}}var Se=te;Se[0]&&(Ik(Fc,Wy,6,Se[1]),Gc++)}var $d=uc.exceptionType;void 0!==$d&&(S(Fc,7,CMa[$d]),Gc++);var qj=uc.clientScreenNonce;void 0!==qj&&(Q(Fc,8,qj),Gc++);var hf=uc.blocksMethodExecutionInfo;if(hf){e:{var Ge=new boa,Uf=0;try{var Vf=hf.methodId;void 0!==Vf&&(Wk(Ge,1,Vf),Uf++);var Rg=hf.blockTypeId;void 0!==Rg&&(Wk(Ge,2,Rg),Uf++);var Qd=hf.methodType;void 0!==Qd&&(S(Ge,3,DMa[Qd]),Uf++);var vg=hf.requestSize;
void 0!==vg&&(Wk(Ge,4,vg),Uf++);var Hf=hf.responseSize;void 0!==Hf&&(Wk(Ge,5,Hf),Uf++);var ci=hf.statusCode;void 0!==ci&&(Wk(Ge,6,ci),Uf++);var hk=hf.containerId;void 0!==hk&&(Wk(Ge,7,hk),Uf++);var qm=hf.moduleIdentifier;void 0!==qm&&(Q(Ge,8,qm),Uf++);var ll=hf.datapushBuildId;void 0!==ll&&(Yk(Ge,9,ll),Uf++);var ml=hf.attribution;void 0!==ml&&(S(Ge,10,EMa[ml]),Uf++);var ik=[Uf===Object.keys(hf).length,Ge];break e}catch(ob){Y(ob);ik=[!1,void 0];break e}}var Ni=ik;Ni[0]&&(Ik(Fc,boa,9,Ni[1]),Gc++)}var jf=
uc.mediaEngineMetadata;if(jf){e:{var He=new g.Uy,ae=0;try{var ph=jf.client;void 0!==ph&&(He.wy(FMa[ph]),ae++);var wg=jf.mdeErrorType;void 0!==wg&&(S(He,2,GMa[wg]),ae++);var rm=jf.uploadId;void 0!==rm&&(Q(He,3,rm),ae++);var xg=jf.composition;xg&&(tO(He.X6.bind(He),xg,iMa),ae++);var di=jf.player;if(di){f:{var rj=new Sy,Sg=0;try{var qh=di.state;void 0!==qh&&(rj.Hc(HMa[qh]),Sg++);var sj=di.playbackPositionTimeMs;void 0!==sj&&(Xk(rj,2,sj),Sg++);var tj=[Sg===Object.keys(di).length,rj];break f}catch(ob){Y(ob);
tj=[!1,void 0];break f}}var rh=tj;rh[0]&&(Ik(He,Sy,5,rh[1]),ae++)}var uj=jf.exporter;if(uj){f:{var Oi=new Ny,sh=0;try{var vj=uj.settings;if(vj){g:{var yg=new My,th=0;try{var jk=vj.audioChannelCount;void 0!==jk&&(Vk(yg,1,jk),th++);var nl=vj.resolutionWidth;void 0!==nl&&(Vk(yg,2,nl),th++);var sm=vj.resolutionHeight;void 0!==sm&&(Vk(yg,3,sm),th++);var ei=[th===Object.keys(vj).length,yg];break g}catch(ob){Y(ob);ei=[!1,void 0];break g}}var Wf=ei;Wf[0]&&(Oi.qh(Wf[1]),sh++)}var qf=uj.state;void 0!==qf&&
(Oi.Hc(IMa[qf]),sh++);var Xf=uj.durationMs;void 0!==Xf&&(Yk(Oi,3,Xf),sh++);var zg=uj.progressMs;void 0!==zg&&(Yk(Oi,4,zg),sh++);var kk=[sh===Object.keys(uj).length,Oi];break f}catch(ob){Y(ob);kk=[!1,void 0];break f}kk=void 0}var wj=kk;wj[0]&&(Ik(He,Ny,6,wj[1]),ae++)}var ol=jf.projectId;void 0!==ol&&(Q(He,7,ol),ae++);var ic=jf.deviceInfo;if(ic){f:{var br=new Ly,lk=0;try{var pl=ic.audioOutputLatencyMs;void 0!==pl&&(Vk(br,1,pl),lk++);var mk=[lk===Object.keys(ic).length,br];break f}catch(ob){Y(ob);mk=
[!1,void 0];break f}}var Bn=mk;Bn[0]&&(Ik(He,Ly,8,Bn[1]),ae++)}var fi=jf.preprocessor;if(fi){f:{var xj=new g.Ty,tm=0;try{var um=fi.originalVideo;if(um){var it=lMa(um);it[0]&&(Ik(xj,Oy,1,it[1]),tm++)}var cr=fi.processedVideo;if(cr){var dr=lMa(cr);dr[0]&&(Ik(xj,Oy,2,dr[1]),tm++)}var Cn=[tm===Object.keys(fi).length,xj];break f}catch(ob){Y(ob);Cn=[!1,void 0];break f}Cn=void 0}var vm=Cn;vm[0]&&(Ik(He,g.Ty,9,vm[1]),ae++)}var nk=jf.clientSurface;void 0!==nk&&(S(He,10,JMa[nk]),ae++);var ql=[ae===Object.keys(jf).length,
He];break e}catch(ob){Y(ob);ql=[!1,void 0];break e}ql=void 0}var ok=ql;ok[0]&&(Ik(Fc,g.Uy,10,ok[1]),Gc++)}var uh=uc.cameraMetadata;if(uh){e:{var gi=new Ky,pk=0;try{var er=uh.uploadFrontendId;void 0!==er&&(Q(gi,1,er),pk++);var tp=uh.cameraApiClient;void 0!==tp&&(S(gi,2,KMa[tp]),pk++);var up=uh.cameraConfigs;up&&(tO(gi.j.bind(gi),up,mMa),pk++);var fr=uh.canFindCamera;void 0!==fr&&(Uk(gi,4,fr),pk++);var Dn=[pk===Object.keys(uh).length,gi];break e}catch(ob){Y(ob);Dn=[!1,void 0];break e}}var gr=Dn;gr[0]&&
(Ik(Fc,Ky,11,gr[1]),Gc++)}var Tg=uc.miniAppMetadata;if(Tg){e:{var le=new Vy,Te=0;try{var En=Tg.externalPostId;void 0!==En&&(Q(le,1,En),Te++);var Ug=Tg.postPlayNonce;void 0!==Ug&&(Q(le,2,Ug),Te++);var hi=Tg.localReleaseId;void 0!==hi&&(Vk(le,3,hi),Te++);var vh=Tg.source;void 0!==vh&&(S(le,4,LMa[vh]),Te++);var vp=Tg.sdkErrorType;void 0!==vp&&(S(le,5,MMa[vp]),Te++);var rl=Tg.sdkApi;void 0!==rl&&(S(le,6,NMa[rl]),Te++);var hr=Tg.sdkVersion;void 0!==hr&&(Q(le,7,hr),Te++);var Fn=Tg.rpcErrorCode;void 0!==
Fn&&(Vk(le,8,Fn),Te++);var wm=[Te===Object.keys(Tg).length,le];break e}catch(ob){Y(ob);wm=[!1,void 0];break e}}var Gn=wm;Gn[0]&&(Ik(Fc,Vy,12,Gn[1]),Gc++)}var ir=uc.appVersionCode;void 0!==ir&&(Vk(Fc,13,ir),Gc++);var ii=uc.hatsMetadata;if(ii){e:{var yj=new doa,qk=0;try{var sl=ii.hatsSessionId;void 0!==sl&&(Q(yj,1,sl),qk++);var xm=ii.csn;void 0!==xm&&(Q(yj,2,xm),qk++);var ym=ii.hatsTriggerId;void 0!==ym&&(Q(yj,3,ym),qk++);var wp=ii.hatsStatus;void 0!==wp&&(S(yj,4,OMa[wp]),qk++);var xp=[qk===Object.keys(ii).length,
yj];break e}catch(ob){Y(ob);xp=[!1,void 0];break e}}var yp=xp;yp[0]&&(Ik(Fc,doa,14,yp[1]),Gc++)}var Hn=uc.reelPlaybackError;if(Hn){e:{var Lc=new ioa,wh=0;try{var Yf=Hn.reelPlaybackContext;if(Yf){f:{var ji=new Xy,xh=0;try{var In=Yf.videoId;void 0!==In&&(ji.setVideoId(In),xh++);var jr=Yf.playlistId;void 0!==jr&&(Q(ji,2,jr),xh++);var tl=Yf.playlistIndex;void 0!==tl&&(Wk(ji,3,tl),xh++);var Jn=Yf.cpn;void 0!==Jn&&(Q(ji,4,Jn),xh++);var ul=Yf.playerType;void 0!==ul&&(S(ji,5,PMa[ul]),xh++);var zp=Yf.audioFmt;
void 0!==zp&&(Vk(ji,6,zp),xh++);var kr=Yf.videoFmt;void 0!==kr&&(Vk(ji,7,kr),xh++);var Ap=[xh===Object.keys(Yf).length,ji];break f}catch(ob){Y(ob);Ap=[!1,void 0];break f}}var zj=Ap;zj[0]&&(Ik(Lc,Xy,1,zj[1]),wh++)}var Pi=Hn.errorType;void 0!==Pi&&(S(Lc,2,QMa[Pi]),wh++);var rk=[wh===Object.keys(Hn).length,Lc];break e}catch(ob){Y(ob);rk=[!1,void 0];break e}rk=void 0}var vl=rk;vl[0]&&(Ik(Fc,ioa,15,vl[1]),Gc++)}var Kn=[Gc===Object.keys(uc).length,Fc];break d}catch(ob){Y(ob);Kn=[!1,void 0];break d}Kn=void 0}var Ln=
Kn;Ln[0]&&(Ik(Fe,Yy,1,Ln[1]),$h++)}var sk=ff.stackTrace;if(sk){d:{var Aj=new fz,tk=0;try{var Bp=sk.isObfuscated;void 0!==Bp&&(Uk(Aj,1,Bp),tk++);var wl=sk.androidStackInfo;if(wl){var lr=RMa(wl);lr[0]&&(Jk(Aj,Zy,2,DE,lr[1]),tk++)}var xl=sk.browserStackInfo;if(xl){e:{var yl=new $y,zl=0;try{var Cp=xl.stackTrace;void 0!==Cp&&(Q(yl,1,Cp),zl++);var uk=xl.lineNumber;void 0!==uk&&(Vk(yl,2,uk),zl++);var zm=xl.columnNumber;void 0!==zm&&(Vk(yl,3,zm),zl++);var Mn=xl.filename;void 0!==Mn&&(Q(yl,4,Mn),zl++);var Al=
[zl===Object.keys(xl).length,yl];break e}catch(ob){Y(ob);Al=[!1,void 0];break e}}var Nn=Al;Nn[0]&&(Jk(Aj,$y,3,DE,Nn[1]),tk++)}var On=sk.iosStackInfo;if(On){e:{var Pn=new joa,Qn=0;try{var Dp=On.stackTrace;void 0!==Dp&&(Q(Pn,1,Dp),Qn++);var yh=On.compactStackTrace;if(yh){var Ep=EO(yh);Ep[0]&&(Ik(Pn,Ey,2,Ep[1]),Qn++)}var vk=[Qn===Object.keys(On).length,Pn];break e}catch(ob){Y(ob);vk=[!1,void 0];break e}vk=void 0}var Ag=vk;Ag[0]&&(Jk(Aj,joa,4,DE,Ag[1]),tk++)}var Am=sk.multiLanguageStackInfo;if(Am){e:{var Vg=
new ez,Qi=0;try{var ki=Am.languageStackTraces;ki&&(tO(Vg.j.bind(Vg),ki,SMa),Qi++);var Bj=[Qi===Object.keys(Am).length,Vg];break e}catch(ob){Y(ob);Bj=[!1,void 0];break e}}var wk=Bj;wk[0]&&(Jk(Aj,ez,5,DE,wk[1]),tk++)}var Rn=[tk===Object.keys(sk).length,Aj];break d}catch(ob){Y(ob);Rn=[!1,void 0];break d}Rn=void 0}var Bl=Rn;Bl[0]&&(Ik(Fe,fz,2,Bl[1]),$h++)}var Ri=ff.logMessage;if(Ri){d:{var Si=new gz,xk=0;try{var Fp=Ri.message;void 0!==Fp&&(Q(Si,1,Fp),xk++);var yk=Ri.level;void 0!==yk&&(S(Si,2,TMa[yk]),
xk++);var zk=Ri.errorClassName;void 0!==zk&&(Q(Si,3,zk),xk++);var Cl=Ri.sourceMethodName;void 0!==Cl&&(Q(Si,4,Cl),xk++);var Dl=Ri.sampleWeight;void 0!==Dl&&(Vk(Si,6,Dl),xk++);var El=[xk===Object.keys(Ri).length,Si];break d}catch(ob){Y(ob);El=[!1,void 0];break d}}var Bm=El;Bm[0]&&(Ik(Fe,gz,3,Bm[1]),$h++)}var Gp=[$h===Object.keys(ff).length,Fe];break c}catch(ob){Y(ob);Gp=[!1,void 0];break c}Gp=void 0}var Hp=Gp;Hp[0]&&(Ik(oc,hz,5,Hp[1]),Pe++)}var Sn=[Pe===Object.keys(Xc).length,oc];break b}catch(ob){Y(ob);
Sn=[!1,void 0];break b}Sn=void 0}var Ip=Sn;Ip[0]&&(Ik(C,iz,9,Ip[1]),F++)}var Jp=A.delayedEventMetrics;Jp&&(tO(C.j.bind(C),Jp,XKa),F++);var Fl=A.iosBatteryMetric;if(Fl){b:{var Tn=new $na,Un=0;try{var Cm=Fl.sampleDurationMs;void 0!==Cm&&(Xk(Tn,1,Cm),Un++);var mr=Fl.startSample;if(mr){var Dm=UMa(mr);Dm[0]&&(Ik(Tn,Fy,2,Dm[1]),Un++)}var Kp=Fl.endSample;if(Kp){var Lp=UMa(Kp);Lp[0]&&(Ik(Tn,Fy,3,Lp[1]),Un++)}var Mp=[Un===Object.keys(Fl).length,Tn];break b}catch(ob){Y(ob);Mp=[!1,void 0];break b}Mp=void 0}var Np=
Mp;Np[0]&&(Ik(C,$na,11,Np[1]),F++)}var Em=A.androidBatteryMetric;if(Em){b:{var Gl=new Vna,Vn=0;try{var Wn=Em.sampleDurationMs;void 0!==Wn&&(Xk(Gl,1,Wn),Vn++);var Op=Em.startSample;if(Op){var Xn=VMa(Op);Xn[0]&&(Ik(Gl,Ay,2,Xn[1]),Vn++)}var nr=Em.endSample;if(nr){var Pp=VMa(nr);Pp[0]&&(Ik(Gl,Ay,3,Pp[1]),Vn++)}var Yn=[Vn===Object.keys(Em).length,Gl];break b}catch(ob){Y(ob);Yn=[!1,void 0];break b}Yn=void 0}var or=Yn;or[0]&&(Ik(C,Vna,12,or[1]),F++)}var me=A.webApiSupport;if(me){b:{var ue=new roa,Ie=0;try{var Zn=
me.intersectionObserverPresent;void 0!==Zn&&(Uk(ue,1,Zn),Ie++);var $n=me.indexedDbPresent;void 0!==$n&&(Uk(ue,2,$n),Ie++);var Fm=me.serviceWorkerPresent;void 0!==Fm&&(Uk(ue,3,Fm),Ie++);var ao=me.webSharePresent;void 0!==ao&&(Uk(ue,4,ao),Ie++);var Qp=me.fullScreenApiPresent;void 0!==Qp&&(Uk(ue,5,Qp),Ie++);var Rp=me.cacheStoragePresent;void 0!==Rp&&(Uk(ue,6,Rp),Ie++);var Sp=me.storageEstimatePresent;void 0!==Sp&&(Uk(ue,7,Sp),Ie++);var li=me.storagePersistPresent;void 0!==li&&(Uk(ue,8,li),Ie++);var mi=
me.webkitTemporaryStoragePresent;void 0!==mi&&(Uk(ue,9,mi),Ie++);var Cj=me.idb2Present;void 0!==Cj&&(Uk(ue,10,Cj),Ie++);var bo=me.promiseRejectionEventPresent;void 0!==bo&&(Uk(ue,11,bo),Ie++);var pr=me.subtleCryptoPresent;void 0!==pr&&(Uk(ue,12,pr),Ie++);var Gm=me.broadcastChannelPresent;void 0!==Gm&&(Uk(ue,13,Gm),Ie++);var co=me.webLocksApiPresent;void 0!==co&&(Uk(ue,14,co),Ie++);var eo=me.supportsP3Color;void 0!==eo&&(Uk(ue,15,eo),Ie++);var fo=me.supportsRec2020Color;void 0!==fo&&(Uk(ue,16,fo),
Ie++);var Ak=[Ie===Object.keys(me).length,ue];break b}catch(ob){Y(ob);Ak=[!1,void 0];break b}}var Hm=Ak;Hm[0]&&(Ik(C,roa,13,Hm[1]),F++)}var Ti=A.cpuProfiling;if(Ti){b:{var go=new Iy,ho=0;try{var qr=Ti.profilingSamples;if(qr){var rr=EO(qr);rr[0]&&(Ik(go,Ey,1,rr[1]),ho++)}var Ui=Ti.config;if(Ui){c:{var Hl=new aoa,Dj=0;try{var sr=Ui.profilingIntervalSec;void 0!==sr&&(Zk(Hl,1,sr),Dj++);var io=Ui.profilingDurationSec;void 0!==io&&(Zk(Hl,2,io),Dj++);var Tp=Ui.timerType;void 0!==Tp&&(S(Hl,3,WMa[Tp]),Dj++);
var jo=Ui.profilingStartTimeSec;void 0!==jo&&(Zk(Hl,4,jo),Dj++);var tr=Ui.fractionOfRunsToSample;void 0!==tr&&(Zk(Hl,5,tr),Dj++);var ko=[Dj===Object.keys(Ui).length,Hl];break c}catch(ob){Y(ob);ko=[!1,void 0];break c}}var Up=ko;Up[0]&&(go.setConfig(Up[1]),ho++)}var ni=[ho===Object.keys(Ti).length,go];break b}catch(ob){Y(ob);ni=[!1,void 0];break b}ni=void 0}var Il=ni;Il[0]&&(Ik(C,Iy,14,Il[1]),F++)}var Vi=A.stallStackTrace;if(Vi){var Vp=EO(Vi);Vp[0]&&(Ik(C,Ey,15,Vp[1]),F++)}var Wg=A.memoryUsage;if(Wg){b:{var Zf=
new nz,$f=0;try{var Jl=Wg.totalMemoryUsageBytes;void 0!==Jl&&(Xk(Zf,1,Jl),$f++);var ur=Wg.classMemoryUsage;ur&&(tO(Zf.j.bind(Zf),ur,XMa),$f++);var Ue=Wg.config;if(Ue){c:{var zh=new poa,rf=0;try{var ag=Ue.maxStartTimeSec;void 0!==ag&&(Xk(zh,1,ag),rf++);var Kl=Ue.durationTimeSec;void 0!==Kl&&(Xk(zh,2,Kl),rf++);var Bk=Ue.intervalSec;void 0!==Bk&&(Xk(zh,3,Bk),rf++);var vr=Ue.maxLogCount;void 0!==vr&&(Xk(zh,4,vr),rf++);var jt=Ue.fractionOfRunsToSample;void 0!==jt&&(Zk(zh,5,jt),rf++);var kt=[rf===Object.keys(Ue).length,
zh];break c}catch(ob){Y(ob);kt=[!1,void 0];break c}}var Wp=kt;Wp[0]&&(Zf.setConfig(Wp[1]),$f++)}var wr=Wg.processUptimeMs;void 0!==wr&&(Xk(Zf,4,wr),$f++);var Im=Wg.foregroundUptimeMs;void 0!==Im&&(Xk(Zf,8,Im),$f++);var lo=Wg.viewAllocation;lo&&(tO(Zf.C.bind(Zf),lo,XMa),$f++);var Ll=Wg.entityStoreCount;void 0!==Ll&&(Vk(Zf,6,Ll),$f++);var Ml=Wg.entityStoreBytes;void 0!==Ml&&(Xk(Zf,7,Ml),$f++);var Xp=Wg.emlTemplateStoreBytes;void 0!==Xp&&(Xk(Zf,10,Xp),$f++);var Yp=Wg.jsVmStatistics;Yp&&(tO(Zf.B.bind(Zf),
Yp,YMa),$f++);var Wi=[$f===Object.keys(Wg).length,Zf];break b}catch(ob){Y(ob);Wi=[!1,void 0];break b}Wi=void 0}var Zp=Wi;Zp[0]&&(Ik(C,nz,16,Zp[1]),F++)}var mo=A.networkEvents;mo&&(tO(C.B.bind(C),mo,ZMa),F++);var Nl=A.threadUtilization;if(Nl){b:{var Ck=new qz,Ol=0;try{var Pl=Nl.userJourney;void 0!==Pl&&(Q(Ck,1,Pl),Ol++);var no=Nl.type;void 0!==no&&(S(Ck,2,$Ma[no]),Ol++);var oo=Nl.threadPoolStats;oo&&(tO(Ck.j.bind(Ck),oo,aNa),Ol++);var $p=Nl.totalThreadCount;void 0!==$p&&(Vk(Ck,4,$p),Ol++);var Ql=Nl.statsGenerateDurationMs;
void 0!==Ql&&(Xk(Ck,5,Ql),Ol++);var Dk=[Ol===Object.keys(Nl).length,Ck];break b}catch(ob){Y(ob);Dk=[!1,void 0];break b}}var Rl=Dk;Rl[0]&&(Ik(C,qz,18,Rl[1]),F++)}var Ej=A.androidBackgroundTask;if(Ej){b:{var Ek=new Gy,Fk=0;try{var aq=Ej.tag;void 0!==aq&&(Q(Ek,1,aq),Fk++);var xr=Ej.isKnownTask;void 0!==xr&&(Uk(Ek,2,xr),Fk++);var lt=Ej.result;void 0!==lt&&(S(Ek,3,bNa[lt]),Fk++);var po=Ej.durationMs;void 0!==po&&(Xk(Ek,4,po),Fk++);var qo=[Fk===Object.keys(Ej).length,Ek];break b}catch(ob){Y(ob);qo=[!1,
void 0];break b}}var Jm=qo;Jm[0]&&(Ik(C,Gy,19,Jm[1]),F++)}var Xi=A.distributiveProfilingSpan;if(Xi){b:{var oi=new jz,Sl=0;try{var yr=Xi.spanId;void 0!==yr&&(S(oi,1,cNa[yr]),Sl++);var zr=Xi.sampleRate;void 0!==zr&&(Zk(oi,2,zr),Sl++);var Yi=Xi.spanDurationMs;void 0!==Yi&&(Xk(oi,3,Yi),Sl++);var Ar=Xi.sampleFailureCount;void 0!==Ar&&(Vk(oi,4,Ar),Sl++);var ro=Xi.sample;ro&&(tO(oi.Ri.bind(oi),ro,dNa),Sl++);var bq=[Sl===Object.keys(Xi).length,oi];break b}catch(ob){Y(ob);bq=[!1,void 0];break b}}var kv=bq;
kv[0]&&(Ik(C,jz,20,kv[1]),F++)}var cq=A.appExitInfo;if(cq){b:{var Zi=new Hy,Gk=0;try{var Tl=cq.reason;void 0!==Tl&&(S(Zi,1,eNa[Tl]),Gk++);var mt=cq.status;void 0!==mt&&(Vk(Zi,2,mt),Gk++);var lv=cq.importance;void 0!==lv&&(Vk(Zi,3,lv),Gk++);var Sx=cq.description;void 0!==Sx&&(Q(Zi,4,Sx),Gk++);var mv=[Gk===Object.keys(cq).length,Zi];break b}catch(ob){Y(ob);mv=[!1,void 0];break b}}var nv=mv;nv[0]&&(Ik(C,Hy,21,nv[1]),F++)}var ov=[F===Object.keys(A).length,C];break a}catch(ob){Y(ob);ov=[!1,void 0];break a}ov=
void 0}var nt=ov;nt[0]&&(Ik(b,rz,6,nt[1]),c++)}var Tx=a.detailedNetworkType;void 0!==Tx&&(S(b,7,FO[Tx]),c++);var Br=a.isAd;void 0!==Br&&(Uk(b,8,Br),c++);var ot=a.offlineModeType;void 0!==ot&&(S(b,9,fNa[ot]),c++);var Cr=a.storageFormat;void 0!==Cr&&(S(b,24,gNa[Cr]),c++);var Ux=a.offlineSourceVeType;void 0!==Ux&&(Vk(b,32,Ux),c++);var pt=a.listId;void 0!==pt&&(Q(b,10,pt),c++);var Dr=a.offlineabilityFormatType;void 0!==Dr&&(S(b,11,hNa[Dr]),c++);var qt=a.offlineAudioQuality;void 0!==qt&&(S(b,29,iNa[qt]),
c++);var Vx=a.softErrorCount;void 0!==Vx&&(Vk(b,12,Vx),c++);var pv=a.pendingStateFlags;void 0!==pv&&(Wk(b,13,pv),c++);var qv=a.unusedOfflineVideoPendingState;void 0!==qv&&(S(b,14,jNa[qv]),c++);var Wx=a.isRefresh;void 0!==Wx&&(Uk(b,15,Wx),c++);var rv=a.isNewPlayerResponse;void 0!==rv&&(Uk(b,16,rv),c++);var Xx=a.isOfflineShareable;void 0!==Xx&&(Uk(b,17,Xx),c++);var tv=a.hasContentVerificationSignature;void 0!==tv&&(Uk(b,18,tv),c++);var Yx=a.isOfflineInterleaving;void 0!==Yx&&(Uk(b,19,Yx),c++);var Pa=
a.blockSizeBytes;void 0!==Pa&&(Vk(b,25,Pa),c++);var iO=a.streamVerificationStrategy;void 0!==iO&&(S(b,26,GO[iO]),c++);var jO=a.streamVerificationFailedBlocks;jO&&(tO(b.j.bind(b),jO,kNa),c++);var FB=a.spacecastInfo;if(FB){a:{var GB=new $oa,IG=0;try{var HB=FB.applianceId;void 0!==HB&&(Q(GB,1,HB),IG++);var JG=FB.transferredFromCache;void 0!==JG&&(S(GB,2,lNa[JG]),IG++);var IB=[IG===Object.keys(FB).length,GB];break a}catch(ob){Y(ob);IB=[!1,void 0];break a}}var kO=IB;kO[0]&&(Ik(b,$oa,28,kO[1]),c++)}var KG=
a.transferType;void 0!==KG&&(S(b,33,mNa[KG]),c++);var lO=a.onlyDownloadOnWifi;void 0!==lO&&(Uk(b,34,lO),c++);var mO=a.appLifecycleStatus;void 0!==mO&&(S(b,35,nNa[mO]),c++);var LG=a.isDefaultDownloadToSdCard;void 0!==LG&&(Uk(b,36,LG),c++);var nO=a.serializedLoggingParams;void 0!==nO&&(al(b,39,nO),c++);var oO=a.transferServiceStartedFromBackground;void 0!==oO&&(Uk(b,40,oO),c++);var uv=a.transferFirstStarted;void 0!==uv&&(Uk(b,42,uv),c++);return[c===Object.keys(a).length,b]}catch(ob){return Y(ob),[!1,
void 0]}};
tMa=function(a){var b=new yna,c=0;try{var d=a.datapushBuild;if(d){var e=pNa(d);e[0]&&(Ik(b,Lx,1,e[1]),c++)}return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
pNa=function(a){var b=new Lx,c=0;try{var d=a.buildId;void 0!==d&&(Xk(b,1,d),c++);var e=a.clientExperimentId;void 0!==e&&(Vk(b,2,e),c++);var f=a.accessType;void 0!==f&&(S(b,3,qNa[f]),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
uMa=function(a){var b=new xna,c=0;try{var d=a.datapushBuild;if(d){var e=pNa(d);e[0]&&(Ik(b,Lx,1,e[1]),c++)}return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
vMa=function(a){var b=new moa,c=0;try{var d=a.assetLoggingId;void 0!==d&&(Q(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
EO=function(a){var b=new Ey,c=0;try{var d=a.stackTraces;d&&(tO(b.B.bind(b),d,rNa),c++);var e=a.allModules;e&&(tO(b.j.bind(b),e,sNa),c++);var f=a.appVersionCode;void 0!==f&&(Vk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
rNa=function(a){var b=new Dy,c=0;try{var d=a.mainThread;if(d){var e=tNa(d);e[0]&&(Ik(b,Cy,1,e[1]),c++)}var f=a.backgroundThreads;f&&(tO(b.j.bind(b),f,tNa),c++);var h=a.metaData;h&&(tO(b.B.bind(b),h,uNa),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
tNa=function(a){var b=new Cy,c=0;try{var d=a.stackFrames;d&&(tO(b.j.bind(b),d,vNa),c++);var e=a.androidStack;void 0!==e&&(Q(b,6,e),c++);var f=a.threadName;void 0!==f&&(Q(b,2,f),c++);var h=a.cpuUsage;void 0!==h&&(Zk(b,3,h),c++);var l=a.cpuTimeSec;void 0!==l&&(Xk(b,4,l),c++);var m=a.iosThreadInfo;if(m){a:{var n=new By;d=0;try{var p=m.state;void 0!==p&&(n.Hc(wNa[p]),d++);var q=m.flag;void 0!==q&&(S(n,2,xNa[q]),d++);var r=m.currentPriority;void 0!==r&&(Vk(n,3,r),d++);var t=m.priority;void 0!==t&&(Vk(n,
4,t),d++);var v=m.maxPriority;void 0!==v&&(Vk(n,5,v),d++);var w=m.isCrashedThread;void 0!==w&&(Uk(n,6,w),d++);var A=[d===Object.keys(m).length,n];break a}catch(C){Y(C);A=[!1,void 0];break a}}m=A;m[0]&&(Ik(b,By,5,m[1]),c++)}return[c===Object.keys(a).length,b]}catch(C){return Y(C),[!1,void 0]}};
vNa=function(a){var b=new Yna,c=0;try{var d=a.instructionOffset;void 0!==d&&(Xk(b,1,d),c++);var e=a.moduleIndex;void 0!==e&&(Vk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
uNa=function(a){var b=new Xna,c=0;try{var d=a.clientTimestampMs;void 0!==d&&(Xk(b,1,d),c++);var e=a.sampleTimeCostMs;void 0!==e&&(Zk(b,2,e),c++);var f=a.numberOfBustedFrames;void 0!==f&&(Vk(b,3,f),c++);var h=a.droppedFrameDurationMs;void 0!==h&&(Vk(b,4,h),c++);var l=a.deviceOrientation;void 0!==l&&(S(b,5,yNa[l]),c++);var m=a.processUptimeMs;void 0!==m&&(Xk(b,6,m),c++);var n=a.memoryUsageKbytes;void 0!==n&&(Xk(b,7,n),c++);var p=a.batteryPercentage;void 0!==p&&(Zk(b,8,p),c++);var q=a.exceptionName;
void 0!==q&&(Q(b,9,q),c++);var r=a.exceptionReason;void 0!==r&&(Q(b,10,r),c++);var t=a.signalNumber;void 0!==t&&(Vk(b,11,t),c++);var v=a.signalCode;void 0!==v&&(Vk(b,12,v),c++);return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
sNa=function(a){var b=new Wna,c=0;try{var d=a.moduleUuid;void 0!==d&&(al(b,1,d),c++);var e=a.moduleName;void 0!==e&&(Q(b,2,e),c++);var f=a.loadAddress;void 0!==f&&(Xk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
AMa=function(a){var b=new Jy,c=0;try{var d=a.key;void 0!==d&&(Q(b,1,d),c++);var e=a.value;void 0!==e&&(Q(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
RMa=function(a){var b=new Zy,c=0;try{var d=a.serializedThrowable;void 0!==d&&(al(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
SMa=function(a){var b=new koa,c=0;try{var d=a.jsStack;if(d){a:{var e=new dz,f=0;try{var h=d.stackTrace;h&&(tO(e.j.bind(e),h,zNa),f++);var l=d.moduleSetVersion;void 0!==l&&(Yk(e,4,l),f++);var m=[f===Object.keys(d).length,e];break a}catch(w){Y(w);m=[!1,void 0];break a}}d=m;d[0]&&(Jk(b,dz,1,ANa,d[1]),c++)}var n=a.javaStack;if(n){var p=RMa(n);p[0]&&(Jk(b,Zy,2,ANa,p[1]),c++)}var q=a.ccStack;if(q){a:{var r=new bz;n=0;try{var t=q.stackTrace;t&&(tO(r.j.bind(r),t,BNa),n++);var v=[n===Object.keys(q).length,
r];break a}catch(w){Y(w);v=[!1,void 0];break a}}q=v;q[0]&&(Jk(b,bz,3,ANa,q[1]),c++)}return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
zNa=function(a){var b=new cz,c=0;try{var d=a.functionName;void 0!==d&&(Q(b,1,d),c++);var e=a.source;void 0!==e&&(Q(b,2,e),c++);var f=a.lineNumber;void 0!==f&&(Vk(b,3,f),c++);var h=a.columnNumber;void 0!==h&&(Vk(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
BNa=function(a){var b=new az,c=0;try{var d=a.functionName;void 0!==d&&(Q(b,1,d),c++);var e=a.source;void 0!==e&&(Q(b,2,e),c++);var f=a.lineNumber;void 0!==f&&(Vk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
UMa=function(a){var b=new Fy,c=0;try{var d=a.batteryLevelMicros;void 0!==d&&(Vk(b,1,d),c++);var e=a.networkType;void 0!==e&&(S(b,2,FO[e]),c++);var f=a.screenBrightness;void 0!==f&&(Zk(b,3,f),c++);var h=a.isLowPowerMode;void 0!==h&&(Uk(b,4,h),c++);var l=a.isBackground;void 0!==l&&(Uk(b,5,l),c++);var m=a.isStateTransition;void 0!==m&&(Uk(b,6,m),c++);var n=a.observedBackgroundFetchMethodCallback;void 0!==n&&(Uk(b,7,n),c++);var p=a.observedBackgroundTaskDidExpire;void 0!==p&&(Uk(b,8,p),c++);return[c===
Object.keys(a).length,b]}catch(q){return Y(q),[!1,void 0]}};
VMa=function(a){var b=new Ay,c=0;try{var d=a.batteryLevelMicros;void 0!==d&&(Vk(b,1,d),c++);var e=a.networkType;void 0!==e&&(S(b,2,FO[e]),c++);var f=a.screenBrightness;void 0!==f&&(Vk(b,3,f),c++);var h=a.screenBrightnessMode;void 0!==h&&(S(b,4,CNa[h]),c++);var l=a.lowPowerMode;void 0!==l&&(S(b,5,DNa[l]),c++);var m=a.batteryHealth;void 0!==m&&(S(b,6,ENa[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
XMa=function(a){var b=new mz,c=0;try{var d=a.className;void 0!==d&&(Q(b,1,d),c++);var e=a.instanceNum;void 0!==e&&(Xk(b,2,e),c++);var f=a.instanceSizeBytes;void 0!==f&&(Xk(b,3,f),c++);var h=a.allocationNum;void 0!==h&&(Xk(b,4,h),c++);var l=a.deallocationNum;void 0!==l&&(Xk(b,5,l),c++);return[c===Object.keys(a).length,b]}catch(m){return Y(m),[!1,void 0]}};
YMa=function(a){var b=new Cna,c=0;try{var d=a.v8Stats;if(d){a:{var e=new Bna,f=0;try{var h=d.totalHeapSize;void 0!==h&&(Yk(e,1,h),f++);var l=d.totalHeapSizeExecutable;void 0!==l&&(Yk(e,2,l),f++);var m=d.totalPhysicalSize;void 0!==m&&(Yk(e,3,m),f++);var n=d.totalAvailableSize;void 0!==n&&(Yk(e,4,n),f++);var p=d.totalGlobalHandlesSize;void 0!==p&&(Yk(e,5,p),f++);var q=d.usedGlobalHandlesSize;void 0!==q&&(Yk(e,6,q),f++);var r=d.usedHeapSize;void 0!==r&&(Yk(e,7,r),f++);var t=d.heapSizeLimit;void 0!==
t&&(Yk(e,8,t),f++);var v=d.mallocedMemory;void 0!==v&&(Yk(e,9,v),f++);var w=d.externalMemory;void 0!==w&&(Yk(e,10,w),f++);var A=d.peakMallocedMemory;void 0!==A&&(Yk(e,11,A),f++);var C=d.numberOfNativeContexts;void 0!==C&&(Yk(e,12,C),f++);var F=d.numberOfDetachedContexts;void 0!==F&&(Yk(e,13,F),f++);var H=[f===Object.keys(d).length,e];break a}catch(aa){Y(aa);H=[!1,void 0];break a}}d=H;d[0]&&(Jk(b,Bna,1,FNa,d[1]),c++)}var M=a.quickjsStats;if(M){a:{var L=new Ana;d=0;try{var R=M.mallocSize;void 0!==R&&
(Yk(L,1,R),d++);var ba=M.mallocLimit;void 0!==ba&&(Yk(L,2,ba),d++);var ma=M.memoryUsedSize;void 0!==ma&&(Yk(L,3,ma),d++);var na=M.mallocCount;void 0!==na&&(Yk(L,4,na),d++);var ia=M.memoryUsedCount;void 0!==ia&&(Yk(L,5,ia),d++);var sa=[d===Object.keys(M).length,L];break a}catch(aa){Y(aa);sa=[!1,void 0];break a}}M=sa;M[0]&&(Jk(b,Ana,2,FNa,M[1]),c++)}return[c===Object.keys(a).length,b]}catch(aa){return Y(aa),[!1,void 0]}};
ZMa=function(a){var b=new pz,c=0;try{var d=a.index;void 0!==d&&(Xk(b,1,d),c++);var e=a.networkEventType;void 0!==e&&(S(b,2,GNa[e]),c++);var f=a.path;void 0!==f&&(Q(b,3,f),c++);var h=a.failureReason;void 0!==h&&(S(b,4,HNa[h]),c++);var l=a.startTimeMs;void 0!==l&&(Xk(b,5,l),c++);var m=a.totalDurationMs;void 0!==m&&(Xk(b,6,m),c++);var n=a.requestSize;void 0!==n&&(Xk(b,7,n),c++);var p=a.responseSize;void 0!==p&&(Xk(b,8,p),c++);var q=a.networkRequestAttempt;q&&(tO(b.j.bind(b),q,INa),c++);var r=a.httpMethod;
void 0!==r&&(S(b,10,JNa[r]),c++);return[c===Object.keys(a).length,b]}catch(t){return Y(t),[!1,void 0]}};
INa=function(a){var b=new oz,c=0;try{var d=a.failureReason;void 0!==d&&(S(b,1,HNa[d]),c++);var e=a.startTimeMs;void 0!==e&&(Xk(b,5,e),c++);var f=a.durationMs;void 0!==f&&(Xk(b,2,f),c++);var h=a.networkAvailable;void 0!==h&&(S(b,3,KNa[h]),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
aNa=function(a){var b=new toa,c=0;try{var d=a.threadPoolName;void 0!==d&&(Q(b,1,d),c++);var e=a.threadCount;void 0!==e&&(Vk(b,2,e),c++);var f=a.startedTaskCount;void 0!==f&&(Vk(b,3,f),c++);var h=a.finishedTaskCount;void 0!==h&&(Vk(b,4,h),c++);var l=a.runningTimeMs;void 0!==l&&(Xk(b,5,l),c++);var m=a.waitingTimeMs;void 0!==m&&(Xk(b,6,m),c++);var n=a.runCount;void 0!==n&&(Xk(b,7,n),c++);var p=a.runningPercent;void 0!==p&&(Vk(b,8,p),c++);return[c===Object.keys(a).length,b]}catch(q){return Y(q),[!1,void 0]}};
dNa=function(a){var b=new loa,c=0;try{var d=a.curveTimestampMs;void 0!==d&&(Xk(b,1,d),c++);var e=a.curveWeight;void 0!==e&&(Zk(b,2,e),c++);var f=a.realTimestampMs;void 0!==f&&(Xk(b,3,f),c++);var h=a.sampleCostUsec;void 0!==h&&(Xk(b,4,h),c++);var l=a.compactStackTraceSample;if(l){var m=EO(l);m[0]&&(Ik(b,Ey,5,m[1]),c++)}return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
kNa=function(a){var b=new apa,c=0;try{var d=a.itag;void 0!==d&&(Vk(b,1,d),c++);var e=a.startingByte;void 0!==e&&(Xk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
RNa=function(a){var b=new qA,c=0;try{var d=a.id;void 0!==d&&(Q(b,1,d),c++);var e=a.videoState;void 0!==e&&(S(b,2,LNa[e]),c++);var f=a.pendingStateFlags;void 0!==f&&(Wk(b,3,f),c++);var h=a.totalBytes;void 0!==h&&(Xk(b,21,h),c++);var l=a.downloadedBytes;void 0!==l&&(Xk(b,4,l),c++);var m=a.selectedVideoQuality;void 0!==m&&(S(b,5,hNa[m]),c++);var n=a.selectedOfflineMode;void 0!==n&&(S(b,6,fNa[n]),c++);var p=a.playerResponseSavedTimeMs;void 0!==p&&(Xk(b,7,p),c++);var q=a.offlineStateUpdateTimeMs;void 0!==
q&&(Xk(b,8,q),c++);var r=a.offlineStateExpiresInS;void 0!==r&&(Xk(b,9,r),c++);var t=a.durationInS;void 0!==t&&(Xk(b,10,t),c++);var v=a.isInPlaylist;void 0!==v&&(Uk(b,11,v),c++);var w=a.addedNetworkType;void 0!==w&&(S(b,12,FO[w]),c++);var A=a.downloadCompletedNetworkType;void 0!==A&&(S(b,13,FO[A]),c++);var C=a.captions;C&&(tO(b.j.bind(b),C,MNa),c++);var F=a.unusedOfflineVideoPendingState;void 0!==F&&(S(b,15,jNa[F]),c++);var H=a.lastPlaybackTimestampMs;void 0!==H&&(Xk(b,16,H),c++);var M=a.offlineSuspendedStates;
M&&(tO(b.B.bind(b),M,NNa),c++);var L=a.streamInLocalStorage;void 0!==L&&(Uk(b,18,L),c++);var R=a.streamInInternalStorage;void 0!==R&&(Uk(b,19,R),c++);var ba=a.storageIdStates;if(ba){a:{var ma=new bqa;d=0;try{var na=ba.storageId;void 0!==na&&(Wk(ma,1,na),d++);var ia=ba.storageIdSourceType;void 0!==ia&&(S(ma,2,ONa[ia]),d++);var sa=[d===Object.keys(ba).length,ma];break a}catch(za){Y(za);sa=[!1,void 0];break a}}ba=sa;ba[0]&&(Ik(b,bqa,20,ba[1]),c++)}var aa=a.cotn;void 0!==aa&&(Q(b,22,aa),c++);var U=a.additionalVideoClientState;
if(U){a:{var Ka=new Zpa;aa=0;try{var x=U.musicAppAdditionalVideoClientState;if(x){b:{var ca=new Ypa;ba=0;try{var Ma=x.episodePublishedTimeMs;void 0!==Ma&&(Xk(ca,1,Ma),ba++);var $a=[ba===Object.keys(x).length,ca];break b}catch(za){Y(za);$a=[!1,void 0];break b}}x=$a;x[0]&&(Ik(Ka,Ypa,1,x[1]),aa++)}var kb=[aa===Object.keys(U).length,Ka];break a}catch(za){Y(za);kb=[!1,void 0];break a}kb=void 0}U=kb;U[0]&&(Ik(b,Zpa,23,U[1]),c++)}var Qa=a.offlineVideoEntityMigrationState;if(Qa){a:{var Va=new pA;U=0;try{var jb=
Qa.isInOfflineStore;void 0!==jb&&(Uk(Va,1,jb),U++);var rb=Qa.isPlaybackDataEntityPresent;void 0!==rb&&(Uk(Va,2,rb),U++);var pb=Qa.wasPlaybackDataEntityUsedToFillVideoState;void 0!==pb&&(Uk(Va,3,pb),U++);var B=Qa.isTransferEntityPresent;void 0!==B&&(Uk(Va,4,B),U++);var D=Qa.wasTransferEntityUsedToFillVideoState;void 0!==D&&(Uk(Va,5,D),U++);var E=Qa.offlineStoreCaptionTrackCount;void 0!==E&&(Vk(Va,6,E),U++);var J=Qa.entityStoreCaptionTrackCount;void 0!==J&&(Vk(Va,7,J),U++);var K=Qa.isMetadataEntityPresent;
void 0!==K&&(Uk(Va,8,K),U++);var da=Qa.transferDiffFields;void 0!==da&&(uO(Va.j.bind(Va),da,PNa),U++);var ta=[U===Object.keys(Qa).length,Va];break a}catch(za){Y(za);ta=[!1,void 0];break a}}Qa=ta;Qa[0]&&(Ik(b,pA,24,Qa[1]),c++)}var la=a.lastProgressTimeMs;void 0!==la&&(Xk(b,25,la),c++);var O=a.initialProgressTimeMs;void 0!==O&&(Xk(b,26,O),c++);var Z=a.offlinePlaybackDisabledReason;void 0!==Z&&(S(b,27,QNa[Z]),c++);return[c===Object.keys(a).length,b]}catch(za){return Y(za),[!1,void 0]}};
MNa=function(a){var b=new $pa,c=0;try{var d=a.format;void 0!==d&&(Vk(b,1,d),c++);var e=a.isDownloaded;void 0!==e&&(Uk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
NNa=function(a){var b=new aqa,c=0;try{var d=a.totalDownloadedBytes;void 0!==d&&(Xk(b,1,d),c++);var e=a.totalSegmentCount;void 0!==e&&(Xk(b,2,e),c++);var f=a.backgroundTransitionCount;void 0!==f&&(Xk(b,3,f),c++);var h=a.totalDurationMs;void 0!==h&&(Xk(b,4,h),c++);var l=a.downloadErrorCount;void 0!==l&&(Vk(b,5,l),c++);var m=a.totalDownloadedSizePercent;void 0!==m&&(Wk(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
TNa=function(a){var b=new oA,c=0;try{var d=a.id;void 0!==d&&(Q(b,1,d),c++);var e=a.videoIds;e&&(tO(b.j.bind(b),e),c++);var f=a.videoCount;void 0!==f&&(Vk(b,3,f),c++);var h=a.successCount;void 0!==h&&(Vk(b,4,h),c++);var l=a.failCount;void 0!==l&&(Vk(b,5,l),c++);var m=a.pendingCount;void 0!==m&&(Vk(b,6,m),c++);var n=a.disabledCount;void 0!==n&&(Vk(b,7,n),c++);var p=a.deletedCount;void 0!==p&&(Vk(b,8,p),c++);var q=a.selectedVideoQuality;void 0!==q&&(S(b,9,hNa[q]),c++);var r=a.isPlaylistOwner;void 0!==
r&&(Uk(b,10,r),c++);var t=a.lastSyncTimeMs;void 0!==t&&(Xk(b,11,t),c++);var v=a.requestSource;void 0!==v&&(S(b,12,SNa[v]),c++);var w=a.additionalPlaylistClientState;if(w){a:{var A=new Xpa;d=0;try{var C=w.musicAppAdditionalPlaylistClientState;if(C){b:{var F=new Wpa;e=0;try{var H=C.isPodcastShow;void 0!==H&&(Uk(F,1,H),e++);var M=[e===Object.keys(C).length,F];break b}catch(R){Y(R);M=[!1,void 0];break b}}C=M;C[0]&&(Ik(A,Wpa,1,C[1]),d++)}var L=[d===Object.keys(w).length,A];break a}catch(R){Y(R);L=[!1,
void 0];break a}L=void 0}w=L;w[0]&&(Ik(b,Xpa,13,w[1]),c++)}return[c===Object.keys(a).length,b]}catch(R){return Y(R),[!1,void 0]}};
WNa=function(a){var b=new kA,c=0;try{var d=a.videoId;void 0!==d&&(b.setVideoId(d),c++);var e=a.itag;void 0!==e&&(Wk(b,6,e),c++);var f=a.failureReason;void 0!==f&&(S(b,2,UNa[f]),c++);var h=a.isCachedExternally;void 0!==h&&(Uk(b,3,h),c++);var l=a.previousFailureReason;void 0!==l&&(S(b,4,UNa[l]),c++);var m=a.previousFailureReasonTimestampMs;void 0!==m&&(Yk(b,5,m),c++);var n=a.streamVerificationStrategy;void 0!==n&&(S(b,7,GO[n]),c++);var p=a.blockSizeBytes;void 0!==p&&(Vk(b,8,p),c++);var q=a.streamVerificationFailedBlocks;
q&&(tO(b.j.bind(b),q,VNa),c++);var r=a.primaryVerificationStrategy;void 0!==r&&(S(b,10,GO[r]),c++);var t=a.secondaryVerificationStrategy;void 0!==t&&(S(b,11,GO[t]),c++);var v=a.secondaryFailureReason;void 0!==v&&(S(b,12,UNa[v]),c++);return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
VNa=function(a){var b=new Tpa,c=0;try{var d=a.itag;void 0!==d&&(Vk(b,1,d),c++);var e=a.startingByte;void 0!==e&&(Xk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
XNa=function(a){var b=new mA,c=0;try{var d=a.videoId;void 0!==d&&(b.setVideoId(d),c++);var e=a.surrogateVideoId;void 0!==e&&(Xk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
YNa=function(a){var b=new Upa,c=0;try{var d=a.externalVideoId;void 0!==d&&(Q(b,1,d),c++);var e=a.videoSid;void 0!==e&&(Xk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
fOa=function(a){var b=new my,c=0;try{var d=a.opportunityData;if(d){a:{var e=new Mna,f=0;try{var h=d.debugData;if(h){b:{var l=new iy,m=0;try{var n=h.slots;n&&(tO(l.j.bind(l),n,ZNa),m++);var p=h.associatedSlotId;void 0!==p&&(Q(l,2,p),m++);var q=[m===Object.keys(h).length,l];break b}catch(Wb){Y(Wb);q=[!1,void 0];break b}}h=q;h[0]&&(Ik(e,iy,2,h[1]),f++)}var r=d.opportunityType;void 0!==r&&(S(e,3,$Na[r]),f++);var t=[f===Object.keys(d).length,e];break a}catch(Wb){Y(Wb);t=[!1,void 0];break a}t=void 0}d=
t;d[0]&&(Ik(b,Mna,1,d[1]),c++)}var v=a.slotData;if(v){var w=ZNa(v);w[0]&&(Ik(b,hy,2,w[1]),c++)}var A=a.layoutData;if(A){a:{var C=new fy;v=0;try{var F=A.type;void 0!==F&&(S(C,2,aOa[F]),v++);var H=A.debugData;if(H){b:{var M=new ey;F=0;try{var L=H.layoutId;void 0!==L&&(Q(M,1,L),F++);var R=H.exitNormalTriggerData;R&&(tO(M.f7.bind(M),R,HO),F++);var ba=H.exitSkipTriggerData;ba&&(tO(M.g7.bind(M),ba,HO),F++);var ma=H.exitMuteTriggerData;ma&&(tO(M.e7.bind(M),ma,HO),F++);var na=H.exitUserInputSubmittedTriggerData;
na&&(tO(M.i7.bind(M),na,HO),F++);var ia=H.exitUserCancelledTriggerData;ia&&(tO(M.h7.bind(M),ia,HO),F++);var sa=[F===Object.keys(H).length,M];break b}catch(Wb){Y(Wb);sa=[!1,void 0];break b}}H=sa;H[0]&&(Ik(C,ey,3,H[1]),v++)}var aa=A.controlFlowManagerLayer;void 0!==aa&&(S(C,4,bOa[aa]),v++);var U=A.pingTriggerTypes;void 0!==U&&(uO(C.j.bind(C),U,IO),v++);var Ka=[v===Object.keys(A).length,C];break a}catch(Wb){Y(Wb);Ka=[!1,void 0];break a}Ka=void 0}A=Ka;A[0]&&(Ik(b,fy,3,A[1]),c++)}var x=a.triggerData;if(x){var ca=
HO(x);ca[0]&&(Ik(b,dy,4,ca[1]),c++)}var Ma=a.pingData;if(Ma){a:{var $a=new ly;x=0;try{var kb=Ma.sourceTriggerType;void 0!==kb&&(S($a,1,IO[kb]),x++);var Qa=Ma.debugData;Qa&&(tO($a.j.bind($a),Qa,cOa),x++);var Va=Ma.pingCount;void 0!==Va&&(Vk($a,3,Va),x++);var jb=Ma.pingDispatchStatus;void 0!==jb&&(S($a,4,dOa[jb]),x++);var rb=Ma.serializedAdPingMetadata;void 0!==rb&&(al($a,5,rb),x++);var pb=Ma.pingDebugData;if(pb){b:{var B=new ky;kb=0;try{var D=pb.substitutedMacros;void 0!==D&&(uO(B.j.bind(B),D,eOa),
kb++);var E=pb.unsubstitutedMacros;void 0!==E&&(uO(B.B.bind(B),E,eOa),kb++);var J=[kb===Object.keys(pb).length,B];break b}catch(Wb){Y(Wb);J=[!1,void 0];break b}}pb=J;pb[0]&&(Ik($a,ky,6,pb[1]),x++)}var K=Ma.pingIndex;void 0!==K&&(Vk($a,8,K),x++);var da=[x===Object.keys(Ma).length,$a];break a}catch(Wb){Y(Wb);da=[!1,void 0];break a}da=void 0}Ma=da;Ma[0]&&(Ik(b,ly,6,Ma[1]),c++)}var ta=a.externalContext;if(ta){a:{var la=new Jna;Ma=0;try{var O=ta.organicPlaybackContext;if(O){b:{var Z=new cy;da=0;try{var za=
O.contentCpn;void 0!==za&&(Q(Z,1,za),da++);var xa=O.isLivePlayback;void 0!==xa&&(Uk(Z,2,xa),da++);var ab=O.isOfflinePlayback;void 0!==ab&&(Uk(Z,3,ab),da++);var Wa=O.isMdxPlayback;void 0!==Wa&&(Uk(Z,4,Wa),da++);var zb=O.isDaiContent;void 0!==zb&&(Uk(Z,5,zb),da++);var Rb=O.isPrefetchedPlayback;void 0!==Rb&&(Uk(Z,6,Rb),da++);var Za=[da===Object.keys(O).length,Z];break b}catch(Wb){Y(Wb);Za=[!1,void 0];break b}}O=Za;O[0]&&(Ik(la,cy,1,O[1]),Ma++)}var $b=ta.html5ExperimentContext;if($b){b:{var hc=new Ina;
O=0;try{var Jc=$b.ytExperimentId;void 0!==Jc&&(Vk(hc,1,Jc),O++);var Yb=[O===Object.keys($b).length,hc];break b}catch(Wb){Y(Wb);Yb=[!1,void 0];break b}}$b=Yb;$b[0]&&(Ik(la,Ina,2,$b[1]),Ma++)}var vc=ta.adVideoPlaybackContext;if(vc){b:{var $c=new Hna;$b=0;try{var Rc=vc.adVideoCpn;void 0!==Rc&&(Q($c,1,Rc),$b++);var tc=[$b===Object.keys(vc).length,$c];break b}catch(Wb){Y(Wb);tc=[!1,void 0];break b}}vc=tc;vc[0]&&(Ik(la,Hna,3,vc[1]),Ma++)}var Vb=[Ma===Object.keys(ta).length,la];break a}catch(Wb){Y(Wb);Vb=
[!1,void 0];break a}Vb=void 0}ta=Vb;ta[0]&&(Ik(b,Jna,5,ta[1]),c++)}return[c===Object.keys(a).length,b]}catch(Wb){return Y(Wb),[!1,void 0]}};
ZNa=function(a){var b=new hy,c=0;try{var d=a.type;void 0!==d&&(S(b,2,gOa[d]),c++);var e=a.entryTriggerType;void 0!==e&&(S(b,6,IO[e]),c++);var f=a.slotPhysicalPosition;void 0!==f&&(Vk(b,8,f),c++);var h=a.debugData;if(h){a:{var l=new gy;d=0;try{var m=h.slotId;void 0!==m&&(Q(l,1,m),d++);var n=h.entryTriggerTypes;void 0!==n&&(uO(l.B.bind(l),n,IO),d++);var p=h.unscheduledDueToError;void 0!==p&&(Uk(l,3,p),d++);var q=h.entryTriggerData;q&&(tO(l.j.bind(l),q,HO),d++);var r=h.slotEntryTriggerData;if(r){var t=
HO(r);t[0]&&(Ik(l,dy,7,t[1]),d++)}var v=h.fulfillmentTriggerData;v&&(tO(l.D.bind(l),v,HO),d++);var w=h.expirationTriggerData;w&&(tO(l.C.bind(l),w,HO),d++);var A=[d===Object.keys(h).length,l];break a}catch(H){Y(H);A=[!1,void 0];break a}A=void 0}h=A;h[0]&&(Ik(b,gy,3,h[1]),c++)}var C=a.externallyManaged;void 0!==C&&(Uk(b,4,C),c++);var F=a.controlFlowManagerLayer;void 0!==F&&(S(b,5,bOa[F]),c++);return[c===Object.keys(a).length,b]}catch(H){return Y(H),[!1,void 0]}};
HO=function(a){var b=new dy,c=0;try{var d=a.type;void 0!==d&&(S(b,1,IO[d]),c++);var e=a.category;void 0!==e&&(S(b,2,hOa[e]),c++);var f=a.layoutIdEnteredTriggerData;if(f){a:{var h=new Kna;d=0;try{var l=f.enteredLayoutId;void 0!==l&&(Q(h,1,l),d++);var m=[d===Object.keys(f).length,h];break a}catch(w){Y(w);m=[!1,void 0];break a}}f=m;f[0]&&(Jk(b,Kna,3,iOa,f[1]),c++)}var n=a.triggerSourceData;if(n){a:{var p=new Lna;f=0;try{var q=n.associatedSlotId;void 0!==q&&(dk(p,1,jOa,cj(q)),f++);var r=n.associatedLayoutId;
void 0!==r&&(dk(p,2,jOa,cj(r)),f++);var t=[f===Object.keys(n).length,p];break a}catch(w){Y(w);t=[!1,void 0];break a}}n=t;n[0]&&(Jk(b,Lna,4,iOa,n[1]),c++)}var v=a.shouldOnlyTriggerOnce;void 0!==v&&(Uk(b,5,v),c++);return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
cOa=function(a){var b=new jy,c=0;try{var d=a.macros;void 0!==d&&(uO(b.j.bind(b),d,eOa),c++);var e=a.success;void 0!==e&&(Uk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
lOa=function(a){var b=new Ena,c=0;try{var d=a.cui;if(d){var e=new Dna;try{var f=[0===Object.keys(d).length,e]}catch(l){Y(l),f=[!1,void 0]}d=f;d[0]&&(Ik(b,Dna,1,d[1]),c++)}var h=a.step;void 0!==h&&(S(b,2,kOa[h]),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
mOa=function(a){var b=new yy,c=0;try{var d=a.startMs;void 0!==d&&(Zk(b,1,d),c++);var e=a.endMs;void 0!==e&&(Zk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
nOa=function(a){var b=new Nna,c=0;try{var d=a.externalVideoId;void 0!==d&&(Q(b,1,d),c++);var e=a.originalMediaDurationMs;void 0!==e&&(Xk(b,2,e),c++);var f=a.trimmedMediaDurationMs;void 0!==f&&(Xk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
oOa=function(a){var b=new Fz,c=0;try{var d=a.orchestrationActionId;void 0!==d&&(Q(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
pOa=function(a){var b=new Nz,c=0;try{var d=a.answerId;void 0!==d&&(Vk(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
sOa=function(a){var b=new Jz,c=0;try{var d=a.ypcCallerPage;void 0!==d&&(S(b,1,qOa[d]),c++);var e=a.useCase;void 0!==e&&(S(b,2,rOa[e]),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
xOa=function(a){var b=new Sz,c=0;try{var d=a.itemId;if(d){a:{var e=new ay,f=0;try{var h=d.type;void 0!==h&&(S(e,1,JO[h]),f++);var l=d.externalId;void 0!==l&&(Q(e,2,l),f++);var m=[f===Object.keys(d).length,e];break a}catch(C){Y(C);m=[!1,void 0];break a}}d=m;d[0]&&(Ik(b,ay,1,d[1]),c++)}var n=a.productType;void 0!==n&&(S(b,2,KO[n]),c++);var p=a.originatingDeviceInterface;void 0!==p&&(S(b,4,xMa[p]),c++);var q=a.alcLoggingParams;if(q){a:{var r=new upa;n=0;try{var t=q.purchaseOriginEntityType;void 0!==
t&&(S(r,1,tOa[t]),n++);var v=q.purchaseOriginPageType;void 0!==v&&(S(r,2,uOa[v]),n++);var w=q.purchaseOriginComponent;void 0!==w&&(S(r,3,vOa[w]),n++);var A=[n===Object.keys(q).length,r];break a}catch(C){Y(C);A=[!1,void 0];break a}}q=A;q[0]&&(Jk(b,upa,3,wOa,q[1]),c++)}return[c===Object.keys(a).length,b]}catch(C){return Y(C),[!1,void 0]}};
aPa=function(a){var b=new vz,c=0;try{var d=a.dimensions;if(d){a:{var e=new Coa,f=0;try{var h=d.csn;void 0!==h&&(Q(e,1,h),f++);var l=d.userExperienceId;void 0!==l&&(Vk(e,2,l),f++);var m=d.studio;if(m){b:{var n=new tz,p=0;try{var q=m.route;void 0!==q&&(Q(n,1,q),p++);var r=m.feature;void 0!==r&&(S(n,2,yOa[r]),p++);var t=m.topEntityType;void 0!==t&&(S(n,3,zOa[t]),p++);var v=m.availability;void 0!==v&&(S(n,4,AOa[v]),p++);var w=m.isChannelDelegation;void 0!==w&&(Uk(n,5,w),p++);var A=m.isArtistDelegation;
void 0!==A&&(Uk(n,6,A),p++);var C=m.environment;void 0!==C&&(S(n,7,BOa[C]),p++);var F=m.networkConnectionStatus;void 0!==F&&(S(n,8,COa[F]),p++);var H=[p===Object.keys(m).length,n];break b}catch(oc){Y(oc);H=[!1,void 0];break b}}var M=H;M[0]&&(Ik(e,tz,3,M[1]),f++)}var L=d.mweb;if(L){b:{var R=new zoa,ba=0;try{var ma=L.pageType;void 0!==ma&&(S(R,1,DOa[ma]),ba++);var na=L.navType;void 0!==na&&(S(R,2,EOa[na]),ba++);var ia=[ba===Object.keys(L).length,R];break b}catch(oc){Y(oc);ia=[!1,void 0];break b}}var sa=
ia;sa[0]&&(Ik(e,zoa,4,sa[1]),f++)}var aa=d.mainAppWeb;if(aa){b:{var U=new yoa,Ka=0;try{var x=aa.pageType;void 0!==x&&(S(U,1,FOa[x]),Ka++);var ca=aa.requestType;void 0!==ca&&(S(U,2,GOa[ca]),Ka++);var Ma=aa.isShellLoad;void 0!==Ma&&(Uk(U,3,Ma),Ka++);var $a=[Ka===Object.keys(aa).length,U];break b}catch(oc){Y(oc);$a=[!1,void 0];break b}}var kb=$a;kb[0]&&(Ik(e,yoa,5,kb[1]),f++)}var Qa=d.survivalSli;if(Qa){b:{var Va=new woa,jb=0;try{var rb=Qa.partitionMinute;void 0!==rb&&(Vk(Va,1,rb),jb++);var pb=Qa.survivalStatus;
void 0!==pb&&(S(Va,2,HOa[pb]),jb++);var B=Qa.survivalSessionType;void 0!==B&&(S(Va,3,IOa[B]),jb++);var D=[jb===Object.keys(Qa).length,Va];break b}catch(oc){Y(oc);D=[!1,void 0];break b}}var E=D;E[0]&&(Ik(e,woa,6,E[1]),f++)}var J=d.tvhtml5;if(J){b:{var K=new Aoa,da=0;try{var ta=J.authRefreshTokenFailureType;void 0!==ta&&(S(K,1,JOa[ta]),da++);var la=J.networkErrorEndpoint;void 0!==la&&(S(K,2,KOa[la]),da++);var O=J.networkErrorResponseCode;void 0!==O&&(Vk(K,3,O),da++);var Z=J.sessionSurvivalLengthMin;
void 0!==Z&&(Vk(K,4,Z),da++);var za=J.accountChangeType;void 0!==za&&(S(K,5,LOa[za]),da++);var xa=J.accountChangeTrigger;void 0!==xa&&(S(K,6,MOa[xa]),da++);var ab=J.cpn;void 0!==ab&&(Q(K,7,ab),da++);var Wa=J.sessionSurvivalDidUserAgentChange;void 0!==Wa&&(Uk(K,8,Wa),da++);var zb=J.adShownToPremiumUserCondition;void 0!==zb&&(S(K,9,NOa[zb]),da++);var Rb=J.identityType;void 0!==Rb&&(S(K,10,OOa[Rb]),da++);var Za=J.identityDelegationType;void 0!==Za&&(S(K,11,POa[Za]),da++);var $b=J.botguardServerEnvironment;
void 0!==$b&&(S(K,12,QOa[$b]),da++);var hc=J.accountEventTrigger;void 0!==hc&&(S(K,13,ROa[hc]),da++);var Jc=J.signInMethodType;void 0!==Jc&&(S(K,14,SOa[Jc]),da++);var Yb=J.accountEventErrorType;void 0!==Yb&&(S(K,15,TOa[Yb]),da++);var vc=J.hadRemoteDeviceConnected;void 0!==vc&&(Uk(K,16,vc),da++);var $c=J.hadVoiceInitiatedPlayback;void 0!==$c&&(Uk(K,17,$c),da++);var Rc=J.restartLengthMin;void 0!==Rc&&(Vk(K,18,Rc),da++);var tc=J.restartReason;void 0!==tc&&(S(K,19,UOa[tc]),da++);var Vb=J.numberOfPersonaAccountsDelta;
void 0!==Vb&&(Vk(K,20,Vb),da++);var Wb=J.accountEventCancellationType;void 0!==Wb&&(S(K,21,VOa[Wb]),da++);var yd=J.maxJsMemoryPerAppLifecycleBytes;void 0!==yd&&(Vk(K,22,yd),da++);var pd=J.appLifecycleLengthMin;void 0!==pd&&(Vk(K,23,pd),da++);var qd=[da===Object.keys(J).length,K];break b}catch(oc){Y(oc);qd=[!1,void 0];break b}}var ac=qd;ac[0]&&(Ik(e,Aoa,7,ac[1]),f++)}var Ec=d.unpluggedWeb;if(Ec){b:{var Ib=new Boa,bd=0;try{var zd=Ec.unpluggedWebEntitlementType;void 0!==zd&&(S(Ib,1,WOa[zd]),bd++);var Pb=
Ec.unpluggedWebPurchaseType;void 0!==Pb&&(S(Ib,2,XOa[Pb]),bd++);var fe=[bd===Object.keys(Ec).length,Ib];break b}catch(oc){Y(oc);fe=[!1,void 0];break b}}var Ud=fe;Ud[0]&&(Ik(e,Boa,8,Ud[1]),f++)}var Vd=d.logEventStatus;void 0!==Vd&&(Vk(e,9,Vd),f++);var Ce=d.kids;if(Ce){b:{var De=new xoa,Ld=0;try{var $e=Ce.userType;void 0!==$e&&(S(De,1,YOa[$e]),Ld++);var Oe=[Ld===Object.keys(Ce).length,De];break b}catch(oc){Y(oc);Oe=[!1,void 0];break b}}var Md=Oe;Md[0]&&(Ik(e,xoa,10,Md[1]),f++)}var Bf=d.screen;void 0!==
Bf&&(Vk(e,11,Bf),f++);var Nd=d.navigation;if(Nd){b:{var ge=new voa,rd=0;try{var Hd=Nd.destinationScreen;void 0!==Hd&&(Vk(ge,1,Hd),rd++);var sd=Nd.navType;void 0!==sd&&(S(ge,2,ZOa[sd]),rd++);var Od=[rd===Object.keys(Nd).length,ge];break b}catch(oc){Y(oc);Od=[!1,void 0];break b}}var jg=Od;jg[0]&&(Ik(e,voa,12,jg[1]),f++)}var af=[f===Object.keys(d).length,e];break a}catch(oc){Y(oc);af=[!1,void 0];break a}af=void 0}var Qf=af;Qf[0]&&(Ik(b,Coa,1,Qf[1]),c++)}var Xc=a.records;Xc&&(tO(b.j.bind(b),Xc,$Oa),c++);
return[c===Object.keys(a).length,b]}catch(oc){return Y(oc),[!1,void 0]}};
$Oa=function(a){var b=new uz,c=0;try{var d=a.name;void 0!==d&&(S(b,1,bPa[d]),c++);var e=a.status;void 0!==e&&(S(b,2,cPa[e]),c++);var f=a.state;void 0!==f&&(b.Hc(dPa[f]),c++);var h=a.sliId;void 0!==h&&(Q(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
LO=function(){this.C=new Set;this.B=new Set;this.D=new Map;this.client=void 0;this.csn=null};
MO=function(){LO.instance||(LO.instance=new LO);return LO.instance};
NO=function(){};
OO=function(){this.N=[];this.Z=[];this.j=[];this.ra=[];this.G=[];this.Y=[];this.C=new Map;this.K=new Map;this.B=new Set;this.Ca=new Map};
PO=function(){OO.instance||(OO.instance=new OO);return OO.instance};
QO=function(a,b,c,d){d=void 0===d?{}:d;g.BA(function(){ePa.includes(b)||(g.BE(new g.XB("createClientScreen() called with a non-page VE",b)),b=83769);d.isHistoryNavigation||(a.ra=[],a.j.push({rootVe:b,key:d.key||""}));a.N=[];a.Z=[];d.vX?fPa(a,b,c,d):gPa(a,b,c,d)})()};
hPa=function(a,b,c){c=void 0===c?0:c;g.BA(function(){b.then(function(d){a.B.has(c)&&a.D&&a.D();var e=g.xE(c),f=g.wE(c);if(e&&f){var h;(null==d?0:null==(h=d.response)?0:h.trackingParams)&&g.KE(a.client,e,f,g.vE(d.response.trackingParams));var l;(null==d?0:null==(l=d.playerResponse)?0:l.trackingParams)&&g.KE(a.client,e,f,g.vE(d.playerResponse.trackingParams))}})})()};
SO=function(a){var b=PO();g.BA(function(){var c=g.vE(a);RO(b,c);return c})()};
RO=function(a,b,c,d){d=void 0===d?0:d;g.BA(function(){if(a.B.has(d))return a.N.push([b,c]),!0;var e=g.xE(d),f=c||g.wE(d);if(e&&f){if(g.TA("combine_ve_grafts")){var h=a.C.get(f.toString());h?h.push(b):(a.K.set(f.toString(),f),a.C.set(f.toString(),[b]));a.qa||(a.qa=g.bC(0,function(){iPa(a,e)},1200))}else g.KE(a.client,e,f,b);
return!0}return!1})()};
jPa=function(a,b,c,d){d=void 0===d?0:d;var e=g.xE(d);d=b||g.wE(d);e&&d&&(a=a.client,b=IE({cttAuthInfo:yE(e)||void 0},e),g.TA("il_via_jspb")?(c=new dA,c.j(e),d=d.getAsJspb(),Ik(c,zz,2,d),"UNDEFINED_CSN"===e?ME("visualElementStateChanged",b,void 0,c):Gwa(c,b,a)):(c={csn:e,ve:d.getAsJson(),clientData:c},"UNDEFINED_CSN"===e?ME("visualElementStateChanged",b,c):a?pE("visualElementStateChanged",c,a,b):g.iC("visualElementStateChanged",c,b)))};
fPa=function(a,b,c,d){d=void 0===d?{}:d;a.B.add(d.layer||0);a.D=function(){gPa(a,b,c,d);var h=g.wE(d.layer);if(h){for(var l=g.u(a.N),m=l.next();!m.done;m=l.next())m=m.value,RO(a,m[0],m[1]||h,d.layer);h=g.u(a.Z);for(l=h.next();!l.done;l=h.next())l=l.value,jPa(a,l[0],l[1])}};
c||g.xE(d.layer)||a.D();if(d.vX)for(var e=g.u(d.vX),f=e.next();!f.done;f=e.next())hPa(a,f.value,d.layer);else g.AE(Error("Delayed screen needs a data promise."))};
gPa=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.xE(e);e=g.wE(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,n=g.xA("EVENT_ID");"UNDEFINED_CSN"===f&&n&&(m={servletData:{serializedServletEventId:n}});g.TA("combine_ve_grafts")&&f&&iPa(a,f);g.TA("no_client_ve_attach_unless_shown")&&h&&f&&Ixa(h,f);try{var p=
Gxa(a.client,b,l,d.rX,d.cttAuthInfo,m,d.implicitGestureType,d.loggingExpectations)}catch(t){txa(t,{SG:b,rootVe:e,Zqb:c,Vob:f,Yqb:l,rX:d.rX});g.AE(t);return}Wwa(p,b,d.layer,d.cttAuthInfo);f&&"UNDEFINED_CSN"!==f&&e&&!Twa(f)&&Lxa(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=p||"");g.ZG({clientScreenNonce:p});NO.instance||(NO.instance=new NO);g.BA(MO().j).bind(MO())();var q=g.wE(d.layer);f&&"UNDEFINED_CSN"!==f&&q&&(g.TA("web_mark_root_visible")||g.TA("music_web_mark_root_visible"))&&
g.OE(p,q);a.B.delete(d.layer||0);a.D=void 0;var r;null==(r=a.Ca.get(d.layer))||r.forEach(function(t,v){t?RO(a,v,t,d.layer):q&&RO(a,v,q,d.layer)});
kPa(a)};
kPa=function(a){for(var b=0;b<a.G.length;b++){var c=a.G[b];try{c()}catch(d){g.AE(d)}}for(b=a.G.length=0;b<a.Y.length;b++){c=a.Y[b];try{c()}catch(d){g.AE(d)}}};
iPa=function(a,b){if(void 0===b)for(var c=Rwa(),d=0;d<c.length;d++)void 0!==c[d]&&iPa(a,c[d]);else a.C.forEach(function(e,f){(f=a.K.get(f))&&g.Hxa(a.client,b,f,e)}),a.C.clear(),a.K.clear(),a.qa=void 0};
TO=function(){};
lPa=function(){TO.instance||(TO.instance=new TO);return TO.instance};
mPa=function(a,b,c){var d=new XMLHttpRequest;if(null==c?0:c.sB)d.onreadystatechange=function(f){c.sB(d,f)};
var e;d.open(null!=(e=b.method)?e:"GET",a,!0);d.responseType="text";d.withCredentials=!0;if(b.headers)for(a=g.u(Object.entries(b.headers)),b=a.next();!b.done;b=a.next())e=g.u(b.value),b=e.next().value,e=e.next().value,d.setRequestHeader(b,e);return d};
UO=function(){};
nPa=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."))})};
msa=function(a,b){var c=this;this.handleError=a;this.j=b;this.B=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.B=!0});
this.C=.2>=Math.random()};
pPa=function(a,b){UO.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:oPa(null==c?void 0:c.usage),deviceStorageQuotaMbytes:oPa(null==c?void 0:c.quota)});a.j("idbQuotaExceeded",c)})};
oPa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
rPa=function(){g.UB();return g.VB(0,192)?g.VB(0,190):!(g.TA("web_watch_cinematics_disabled_by_default")||g.TA("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&qPa())};
tPa=function(a){return!sPa||(0,g.wC)()-sPa>a};
vPa=function(a,b){uPa(a.program,b.mda)&&(bH("bg_i",void 0,"player_att"),g.VO.initialize(a,function(){bH("bg_l",void 0,"player_att");sPa=(0,g.wC)()},b.cspNonce))};
wPa=function(a){a=void 0===a?{}:a;return g.VO.invoke(a)};
uPa=function(a,b){return a?g.VO.isLoading()?!1:tPa(b):!1};
xPa=function(a){a=a.split("");WO.xX(a,62);WO.lp(a,2);WO.FW(a,50);WO.xX(a,1);WO.FW(a,26);WO.xX(a,11);return a.join("")};
g.yPa=function(a,b){return a.Ha+"timedtext_video?ref=player&v="+b.videoId};
g.XO=function(a,b){a.feature=b;return a};
g.zPa=function(a){var b=this;this.videoData=a;a={};this.j=(a.c1a=function(){var c=[];if(g.VO.isInitialized()){var d="";b.videoData&&b.videoData.er&&(d=b.videoData.er+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);bH("bg_v",void 0,"player_att");(d=wPa(d))?(bH("bg_s",void 0,"player_att"),c.push("r1a="+d)):(bH("bg_e",void 0,"player_att"),c.push("r1c=2"))}else bH("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.VO.getState());
return c.join("&")},a.c6a=function(c){return"r6a="+(Number(c.c)^oH())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.xA("CATSTAT",0)))},a);
this.videoData&&this.videoData.er?this.jr=FA(this.videoData.er):this.jr={}};
g.APa=function(a){if(a.videoData&&a.videoData.er){for(var b=[a.videoData.er],c=g.u(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,a.jr[d]&&a.j[d]&&(d=a.j[d](a.jr))&&b.push(d);return b.join("&")}return null};
g.BPa=function(a,b){vPa(a,{mda:g.xI(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})};
CPa=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
YO=function(a){a=void 0===a?2592E3:a;if(0<a&&!(Ura()>(0,g.wC)()-1E3*a))return 0;a=g.QB("yt-player-quality");if("string"===typeof a){if(a=g.$J[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
DPa=function(){var a=g.QB("yt-player-proxima-pref");return null==a?null:a};
EPa=function(){var a=g.QB("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};
FPa=function(){var a={values:{},Ir:{}};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};
GPa=function(a,b,c){c=void 0===c?!1:c;var d=ZO();0<+d[a]&&(b=Math.min(+d[a],b));d[a]!==b&&(d[a]=b,g.PB("yt-player-performance-cap",d,c?2592E3:604800))};
HPa=function(a,b){b=void 0===b?!0:b;var c=ZO();return b?+c[a]||8192:c[a]};
ZO=function(){return g.QB("yt-player-performance-cap")||{}};
IPa=function(){var a;return null!=(a=g.QB("yt-player-performance-cap-active-set"))?a:[]};
JPa=function(a){(void 0===a?0:a)?(a=IPa().filter(function(b){return b.startsWith("1")}),g.PB("yt-player-performance-cap-active-set",a,2592E3)):g.PB("yt-player-performance-cap-active-set",[],2592E3)};
KPa=function(a){g.PB("yt-player-watch-later-pending",a)};
LPa=function(){return!!g.QB("yt-player-headers-readable")};
MPa=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.NPa=function(){var a=g.QB("yt-player-caption-language-preferences");return a?a:[]};
SPa=function(a,b){eO(a,2,b.ut,OPa,3);eO(a,3,b.oQ,PPa,3);cO(a,4,b.onesieUstreamerConfig);cO(a,9,b.Xo);eO(a,10,b.oC,QPa,3);eO(a,15,b.reloadPlaybackParams,RPa,3)};
VPa=function(a,b){eO(a,1,b.formatId,$O,3);aO(a,2,b.startTimeMs);aO(a,3,b.durationMs);aO(a,4,b.Ym);aO(a,5,b.Ui);eO(a,9,b.Dob,TPa,3);eO(a,11,b.arb,UPa,1);eO(a,12,b.rL,UPa,1)};
WPa=function(a,b){dO(a,1,b.videoId);aO(a,2,b.lmt)};
TPa=function(a,b){if(b.wW)for(var c=0;c<b.wW.length;c++)eO(a,1,b.wW[c],WPa,3)};
$O=function(a,b){aO(a,1,b.itag);aO(a,2,b.lmt);dO(a,3,b.xtags)};
XPa=function(a){return{itag:RN(a,1),lmt:RN(a,2),xtags:UN(a,3)}};
UPa=function(a,b){aO(a,1,b.Sg);aO(a,2,b.Vz);aO(a,3,b.Ks)};
YPa=function(a){return{Sg:RN(a,1),Vz:RN(a,2),Ks:RN(a,3)}};
OPa=function(a,b){aO(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&($N(a,112),$N(a,c<<1^c>>31));aO(a,16,b.i$);aO(a,17,b.detailedNetworkType);aO(a,18,b.y7);aO(a,19,b.x7);aO(a,21,b.lea);aO(a,23,b.n7);aO(a,28,b.lS);aO(a,29,b.Cea);aO(a,34,b.visibility);c=b.playbackRate;if(void 0!==c){var d=new ArrayBuffer(4);(new Float32Array(d))[0]=c;c=(new Uint32Array(d))[0];if(void 0!==c)for($N(a,285),ZN(a,4),d=0;4>d;)a.view.setUint8(a.pos,c&255),c>>=8,a.pos+=1,d+=1}aO(a,36,b.a8);
eO(a,38,b.mediaCapabilities,ZPa,3);aO(a,39,b.Bea);aO(a,40,b.Dw);aO(a,44,b.playerState);bO(a,46,b.X7);aO(a,48,b.Mda);aO(a,50,b.nw);aO(a,51,b.Hy);aO(a,54,b.Bq);bO(a,56,b.M$);aO(a,57,b.D7);bO(a,58,b.Jo);aO(a,59,b.qj);aO(a,60,b.Ex);bO(a,61,b.isPrefetch);aO(a,62,b.Hz);cO(a,63,b.sabrLicenseConstraint);aO(a,64,b.k$);aO(a,66,b.j$);aO(a,67,b.Mqb);aO(a,68,b.YZ)};
ZPa=function(a,b){if(b.videoFormatCapabilities)for(var c=0;c<b.videoFormatCapabilities.length;c++)eO(a,1,b.videoFormatCapabilities[c],$Pa,1);if(b.audioFormatCapabilities)for(c=0;c<b.audioFormatCapabilities.length;c++)eO(a,2,b.audioFormatCapabilities[c],aQa,1);aO(a,5,b.hdrModeBitmask)};
$Pa=function(a,b){aO(a,1,b.videoCodec);aO(a,3,b.maxHeight);aO(a,4,b.maxWidth);aO(a,11,b.maxFramerate);aO(a,12,b.maxBitrateBps);bO(a,15,b.is10BitSupported)};
aQa=function(a,b){aO(a,1,b.audioCodec);aO(a,2,b.numChannels);aO(a,3,b.maxBitrateBps);aO(a,6,b.spatialCapabilityBitmask)};
QPa=function(a,b){eO(a,1,b.clientInfo,bQa,3);cO(a,2,b.rS);cO(a,3,b.playbackCookie);cO(a,4,b.Xo);if(b.UL)for(var c=0;c<b.UL.length;c++)eO(a,5,b.UL[c],cQa,3);if(b.yM)for(c=0;c<b.yM.length;c++)aO(a,6,b.yM[c]);dO(a,7,b.dea);eO(a,8,b.Nca,dQa,3)};
eQa=function(a,b){var c=b.code;void 0!==c&&($N(a,8),$N(a,c<<1^c>>31));dO(a,2,b.message)};
dQa=function(a,b){cO(a,1,b.CB);eO(a,2,b.crb,eQa,3)};
cQa=function(a,b){aO(a,1,b.type);cO(a,2,b.value)};
bQa=function(a,b){dO(a,12,b.deviceMake);dO(a,13,b.deviceModel);aO(a,16,b.clientName);dO(a,17,b.clientVersion);dO(a,18,b.osName);dO(a,19,b.osVersion)};
fQa=function(a,b){dO(a,1,b.name);dO(a,2,b.value)};
gQa=function(a,b){dO(a,1,b.url);if(b.fQ)for(var c=0;c<b.fQ.length;c++)eO(a,2,b.fQ[c],fQa,3);cO(a,3,b.postBody);bO(a,4,b.gda);bO(a,6,b.lC)};
PPa=function(a,b){cO(a,2,b.HX);cO(a,5,b.encryptedClientKey);cO(a,6,b.iv);cO(a,7,b.WY);bO(a,10,b.v1);bO(a,13,b.GX);bO(a,14,b.RO);cO(a,16,b.Qea);bO(a,17,b.b3)};
hQa=function(a){return{k0:RN(a,1),YY:RN(a,2),body:TN(a,4)}};
iQa=function(a){return{bitrate:RN(a,6),width:RN(a,7),height:RN(a,8),fps:RN(a,25),averageBitrate:RN(a,31),audioSampleRate:RN(a,45),audioChannels:RN(a,46)}};
RPa=function(a,b){dO(a,1,b.token)};
jQa=function(a){return{hj:RN(a,1),U0:RN(a,2)}};
nQa=function(a,b){eO(a,1,b.ut,OPa,3);if(b.ex)for(var c=0;c<b.ex.length;c++)eO(a,2,b.ex[c],$O,3);if(b.qd)for(c=0;c<b.qd.length;c++)eO(a,3,b.qd[c],VPa,3);cO(a,5,b.videoPlaybackUstreamerConfig);if(b.Ho)for(c=0;c<b.Ho.length;c++)eO(a,6,b.Ho[c],kQa,3);if(b.WG)for(c=0;c<b.WG.length;c++)eO(a,16,b.WG[c],$O,3);if(b.XG)for(c=0;c<b.XG.length;c++)eO(a,17,b.XG[c],$O,3);eO(a,19,b.oC,QPa,3);eO(a,21,b.Tm,lQa,3);aO(a,22,b.uK);aO(a,23,b.rK);if(b.mH)for(c=0;c<b.mH.length;c++)eO(a,1E3,b.mH[c],mQa,3)};
kQa=function(a,b){eO(a,1,b.formatId,$O,3);aO(a,2,b.Kj);aO(a,3,b.sequenceNumber);eO(a,4,b.pJ,UPa,1);aO(a,5,b.GZ)};
lQa=function(a,b){if(b.jI)for(var c=0;c<b.jI.length;c++)dO(a,1,b.jI[c]);cO(a,2,b.BW);dO(a,3,b.Ft);aO(a,4,b.O1);aO(a,5,b.e3);dO(a,6,b.f3)};
mQa=function(a,b){if(b.ex)for(var c=0;c<b.ex.length;c++)eO(a,1,b.ex[c],$O,3);if(b.qd)for(c=0;c<b.qd.length;c++)eO(a,2,b.qd[c],VPa,3);dO(a,3,b.clipId)};
g.oQa=function(a,b){eO(a,1,b.ut,OPa,3);cO(a,3,b.videoPlaybackUstreamerConfig);eO(a,5,b.oC,QPa,3);eO(a,6,b.Tm,lQa,3)};
rQa=function(a,b){dO(a,1,b.cpn);aO(a,2,b.sequenceNumber);dO(a,3,b.serializedWatchEndpointLoggingContext);if(b.decoderInfo)for(var c=0;c<b.decoderInfo.length;c++)eO(a,6,b.decoderInfo[c],pQa,3);dO(a,9,b.playerResponseCpn);aO(a,10,b.transitionStitchType);aO(a,12,b.timestampOffsetMsecs);aO(a,15,b.remoteControlMode);if(b.remoteConnectedDevices)for(c=0;c<b.remoteConnectedDevices.length;c++)eO(a,16,b.remoteConnectedDevices[c],qQa,3);cO(a,17,b.serializedHouseBrandPlayerServiceLoggingContext)};
pQa=function(a,b){aO(a,1,b.elapsedTimeMs);dO(a,3,b.videoDecoderName)};
qQa=function(a,b){aO(a,1,b.deviceInterface);dO(a,2,b.deviceVersion);bO(a,3,b.isSleeping)};
sQa=function(a){return{first:RN(a,1),wZ:RN(a,2)}};
tQa=function(a){return{itagDenylist:WN(a,1)}};
vQa=function(a){return{Lqb:XN(a,1,uQa)}};
uQa=function(a){return{conditions:WN(a,1),Pqb:RN(a,2)}};
yQa=function(a){return{Jca:RN(a,1),itag:UN(a,3),w0:VN(a,4,wQa),lmt:RN(a,5),jpb:RN(a,7),xtags:UN(a,15),G$:VN(a,23,xQa),RA:VN(a,34,tQa)}};
wQa=function(a){return{iv:TN(a,5),Y9:SN(a,7)}};
zQa=function(a){return{m7:WN(a,2),videoId:UN(a,3),fU:RN(a,4)}};
xQa=function(a){return{videoId:UN(a,2)}};
AQa=function(a){return{YJ:RN(a,3),ZJ:RN(a,4),Vca:SN(a,8),qqb:RN(a,10),Nqb:RN(a,12),Oqb:RN(a,13),Iqb:RN(a,14),Jqb:RN(a,15)}};
BQa=function(a){return{targetAudioReadaheadMs:RN(a,1),targetVideoReadaheadMs:RN(a,2),backoffTimeMs:RN(a,4),playbackCookie:TN(a,7),videoId:UN(a,8)}};
CQa=function(a){return{minBandwidthBytesPerSec:RN(a,1),minReadaheadMs:RN(a,2)}};
DQa=function(a){return{startMinReadaheadPolicy:XN(a,1,CQa),resumeMinReadaheadPolicy:XN(a,2,CQa)}};
EQa=function(a){return{YQ:RN(a,1),JK:RN(a,2),minReadaheadMs:RN(a,3)}};
FQa=function(a){return{z0:RN(a,1),items:XN(a,2,EQa),jq:RN(a,3)}};
GQa=function(a){return{token:UN(a,1),videoId:UN(a,2)}};
HQa=function(a){return{Lp:RN(a,1)}};
IQa=function(a){return{jda:UN(a,1),action:RN(a,2),m1:VN(a,3,HQa)}};
JQa=function(a){return{OS:RN(a,1),PS:RN(a,2),seekSource:RN(a,3)}};
LQa=function(a){return{q2:XN(a,1,KQa),fea:UN(a,2)}};
MQa=function(a){return{t3:UN(a,1),x0:RN(a,2),r$:RN(a,3),OZ:RN(a,4),PZ:RN(a,5),y0:RN(a,6)}};
NQa=function(a){return{yK:RN(a,1)}};
KQa=function(a){return{clipId:UN(a,1),Pq:VN(a,2,MQa),hR:VN(a,3,NQa)}};
OQa=function(a){return{type:RN(a,1),scope:RN(a,2),value:TN(a,3),sendByDefault:SN(a,4)}};
PQa=function(a){var b=[];a=g.u(a.split(","));for(var c=a.next();!c.done;c=a.next()){var d=c.value;d&&((c=d.startsWith("!"))&&(d=d.substring(1)),d=d.split("-"),3>d.length||b.push({R1:d[0],platform:d[1],deviceVersion:d[2],aZ:c}))}return b};
SQa=function(a){return PQa(a).map(function(b){return{deviceInterface:QQa[RQa[b.R1]]||0,deviceVersion:b.deviceVersion||"",isSleeping:b.aZ}})};
g.aP=function(a,b){this.id=a;this.qc=b;this.captionTracks=[];this.C=this.D=null;this.xtags="";this.G=!1;this.j=null;this.B="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";a=this.qc.id.split(".");1<a.length&&(this.G="2"===a[1])};
bP=function(a,b,c,d,e){this.B=a;this.j=b;this.C=c;this.reason=d;this.sb=void 0===e?0:e};
TQa=function(a,b){return a.B===b.B&&a.j===b.j&&a.C===b.C&&a.reason===b.reason&&(!cP||a.sb===b.sb)};
g.dP=function(a,b,c,d){return new bP(g.$J[a]||0,g.$J[b]||0,c,d)};
eP=function(a){if(cP&&a.sb)return!1;var b=g.$J.auto;return a.B===b&&a.j===b};
gP=function(a){return fP[a.j||a.B]||"auto"};
UQa=function(a,b){b=g.$J[b];return a.B<=b&&(!a.j||a.j>=b)};
hP=function(a){return"["+a.B+"-"+a.j+", override: "+(a.C+", reason: "+a.reason+"]")};
iP=function(a,b,c){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;null==c||c({ainfolen:this.j.length});b=g.u(this.j);for(var d=b.next();!d.done;d=b.next())if(d=d.value,!d.qc||a.has(d.qc.id)){var e=void 0,f=void 0,h=void 0;null==(h=c)||h({atkerr:!!d.qc,itag:d.itag,xtag:d.j,lang:(null==(e=d.qc)?void 0:e.name)||"",langid:(null==(f=d.qc)?void 0:f.id)||""})}else e=new g.aP(d.id,d.qc),a.add(d.qc.id),this.audioTracks.push(e);null==c||c({atklen:this.audioTracks.length})}};
VQa=function(){g.I.apply(this,arguments);this.j=null};
ZQa=function(a,b,c,d,e,f,h){if(a.j)return a.j;var l={},m=new Set,n={};if(jP(d)){for(var p in d.j)d.j.hasOwnProperty(p)&&(a=d.j[p],n[a.info.qb]=[a.info]);return n}p=WQa(b,d,l);f&&e({aftsrt:kP(p)});for(var q={},r=g.u(Object.keys(p)),t=r.next();!t.done;t=r.next()){t=t.value;for(var v=g.u(p[t]),w=v.next();!w.done;w=v.next()){w=w.value;var A=w.itag,C=void 0,F=t+"_"+((null==(C=w.video)?void 0:C.fps)||0);q.hasOwnProperty(F)?!0===q[F]?n[t].push(w):l[A]=q[F]:(C=lP(b,w,c,d.isLive,m),!0!==C?(h.add(t),l[A]=C,
"disablevp9hfr"===C&&(q[F]="disablevp9hfr")):(n[t]=n[t]||[],n[t].push(w),q[F]=!0))}}f&&e({bfflt:kP(n)});for(var H in n)n.hasOwnProperty(H)&&(d=H,n[d]&&n[d][0].Ag()&&(n[d]=n[d],n[d]=XQa(b,n[d],l),n[d]=YQa(n[d],l)));f&&e(l);b=g.u(m.values());for(d=b.next();!d.done;d=b.next())(d=c.C.get(d.value))&&--d.e1;f&&e({aftflt:kP(n)});a.j=g.Vc(n,function(M){return!!M.length});
return a.j};
aRa=function(a,b,c,d,e,f,h,l){l=void 0===l?!1:l;if(b.Qc&&h&&1<h.length&&!(0<b.qj||b.Y)){for(var m=b.B||!!e,n=m&&b.Nb?f:void 0,p=WQa(b,d),q=[],r=[],t={},v=0;v<h.length;v++){var w=h[v],A=d.N.get(w);if(A&&A.info){var C=A.info;A=C.qb;if(lP(b,C,c,d.isLive)){w=C.Ag()?q:r;C=g.u(p[A]);for(var F=C.next();!F.done;F=C.next()){F=F.value;var H=void 0,M=A+"_"+((null==(H=F.video)?void 0:H.fps)||0);t.hasOwnProperty(M)?!0===t[M]&&w.push(F):lP(b,F,c,d.isLive)&&(w.push(F),t[M]=!0)}}else m&&f({opfu:w})}}if(q.length&&
r.length)return m&&f({opfm:q[0].itag+","+r[0].itag}),aB(new iP(q,r,n))}return $Qa(a,b,c,d,e,f,l)};
$Qa=function(a,b,c,d,e,f,h){function l(C){return!!q[C]}
var m=b.B||!!e,n=m&&b.Nb?f:void 0,p=new Set,q=ZQa(a,b,c,d,f,m,p);mP(d)&&(q=bRa(c,q,e,m,f,b),m&&f({enflt:kP(q)}));b.rb=cRa(q);if(jP(d))return f=g.Db(Object.values(q),function(C){return!!C.length&&!!C[0].audio}),a=g.Db(Object.values(q),function(C){return!!C.length&&!!C[0].video}),f&&a||$A(),aB(new iP(a,f,n));
e=dRa(b);m&&f({audioPrefOrder:e.join("_")});a=[];if(b.Nd){e=g.Ot(e,l);for(var r=new Set,t=g.u(e),v=t.next();!v.done;v=t.next()){v=g.u(q[v.value]);for(var w=v.next();!w.done;w=v.next())w=w.value,w.qc&&!r.has(w.qc.id)&&(r.add(w.qc.id),a.push(w))}if(0===a.length){if(0===e.length)return m&&f({noaudio:1}),$A();a=q[e[0]]}}else{a=g.Db(e,l);if(!a)return m&&f({noaudio:1}),$A();a=q[a]}q["9"]&&q.h&&d.dc&&!b.Va&&(m&&f({dltvp9:1}),delete q["9"]);if(h){m&&f({bfsflt:kP(q),bfsflta:nP(c)});eRa(c,p);m&&f({bfsfltb:nP(c)});
for(var A in q)if(q.hasOwnProperty(A)&&(h=A,!("f"===h||0===b.Uf&&fRa.has(h))))for(p=g.u(q[h]),e=p.next();!e.done;e=p.next())e=e.value,b.Jd?gRa(c,h,e):hRa(c,h,e);m&&f({aftsflt:nP(c)})}h=q["1h"]?"1h":"1";c=q["9h"]?"9h":"9";e=q[h];r=q[c];e&&e.length&&(b.j.highestAv1Resolution=e[e.length-1].video.j);r&&r.length&&(b.j.highestVp9Resolution=r[r.length-1].video.j);A=[];p=[];if(b.ge&&e)A=e,p=[h],f({forceAv1:h});else if(b.Y&&!b.Jo)for(p=iRa(d)?q["1h"]||q["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],m&&f({newhybpref:p.join(".")}),
e=g.u(p),r=e.next();!r.done;r=e.next())A=A.concat(q[r.value]).filter(function(C){return C});
else 0<b.qj&&r&&e&&(p=[h,c],A=e.concat(r).filter(function(C){return C}));
if(A.length&&!b.Jo){oP(A,p);if(m){m=[];b=g.u(A);for(d=b.next();!d.done;d=b.next())m.push(d.value.itag);f({hbdfmt:m.join(".")})}return aB(new iP(A,a,n))}A=jRa(b);A=g.Db(A,l);if(!A){if(q[h])return f=q[h],oP(f),aB(new iP(f,a,n));m&&f({novideo:1});return $A()}b.Dc&&("1"===A||"1h"===A)&&q[c]&&(h=pP(q[A]),p=pP(q[c]),p>h?A=c:b.zd&&p===h&&kRa(q[c])&&(A=c));"9"===A&&q.h&&pP(q.h)>pP(q["9"])&&(A="h");b.Jb&&d.isLive&&"("===A&&q.H&&1440>pP(q["("])&&(A="H");m&&f({vfmly:lRa(A)});b=q[A];if(!b.length)return m&&f({novfmly:lRa(A)}),
$A();oP(b);return aB(new iP(b,a,n))};
cRa=function(a){var b=!(!a.mac3&&!a.MAC3),c=!(!a.meac3&&!a.MEAC3);return!(!a.m&&!a.M)||b||c};
kRa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.itag&&mRa.has(b.itag))return!0;return!1};
lRa=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
kP=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(lRa(d));d=g.u(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")};
bRa=function(a,b,c,d,e,f){var h={},l={};g.Uc(b,function(m,n){m=m.filter(function(p){var q=p.itag;if(!p.le)return l[q]="noenc",!1;if(f.Hb&&"(h"===p.qb&&f.Ab)return l[q]="lichdr",!1;if("("===p.qb||"(h"===p.qb){if(a.D&&c&&"widevine"===c.flavor){var r=p.mimeType+"; experimental=allowed";(r=!!p.le[c.flavor]&&!!c.j[r])||(l[q]=p.le[c.flavor]?"unspt":"noflv");return r}if(!qP(a,rP.CRYPTOBLOCKFORMAT)&&!a.Ha||a.qa)return l[q]=a.qa?"disvp":"vpsub",!1}return c&&p.le[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.le[c.flavor]?
"unspt":"noflv":"nosys",!1)});
m.length&&(h[n]=m)});
d&&Object.entries(l).length&&e(l);return h};
YQa=function(a,b){var c=bs(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}));
Yqa()&&(a=a.filter(function(d){if("299"!==d.itag)return!0;b[d.itag]="ps3hfr1080";return!1}));
return a};
XQa=function(a,b,c){return b=b.filter(function(d){if(d.video.j<=a.Sb)return!0;c[d.itag]="maxquality";return!1})};
WQa=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.N&&f.video&&f.video.j<a.N)c&&(c[f.itag]="min"+a.N);else{var h=f.qb;d[h]=d[h]||[];d[h].push(f)}}a=g.u(Object.keys(d));for(b=a.next();!b.done;b=a.next())oP(d[b.value]);return d};
pP=function(a){return bs(a,function(b,c){return Math.max(b,c.video.j)},0)};
lP=function(a,b,c,d,e){e=void 0===e?new Set:e;if(""===b.qb)return"unkn";if(("304"===b.itag||"266"===b.itag)&&a.Ha)return"blk2khfr";if(a.K&&b.video&&b.video.j>a.K)return"max"+a.K;if(a.gb&&"h"===b.qb&&b.video&&1080<b.video.j)return"blkhigh264";if("(h"===b.qb&&!c.K)return"enchdr";if((void 0===d?0:d)&&hK(b)&&!a.Sa)return"blk51live";if(("MAC3"===b.qb||"mac3"===b.qb)&&!a.D)return"blkac3";if(("MEAC3"===b.qb||"meac3"===b.qb)&&!a.G)return"blkeac3";if(("M"===b.qb||"m"===b.qb)&&!a.ra)return"blkaac51";if(("so"===
b.qb||"sa"===b.qb)&&!a.Ca)return"blkamb";if(!a.Hb&&b.le&&b.le.fairplay&&("("===b.qb||"(h"===b.qb||"A"===b.qb||"MEAC3"===b.qb))return"cbc";if("i"===b.qb&&!a.Kb)return"blkiamf";var f,h;if(a.eb&&("1"===b.qb||"1h"===b.qb)&&(null==(f=b.video)?0:f.j)&&(null==(h=b.video)?void 0:h.j)>a.eb)return"av1cap";if((d=c.C.get(b.qb))&&0<d.e1)return e.add(b.qb),"byerr";var l;if(null==(l=b.video)?0:32<l.fps){if(!c.Ca&&!qP(c,rP.FRAMERATE))return"capHfr";if(a.bb&&4320<=b.video.j)return"blk8khfr";if(fK(b)&&a.ud&&b.le&&
1440<=b.video.j)return"disablevp9hfr"}if(a.sb&&b.sb>a.sb)return"ratecap";a=nRa(c,b);return!0!==a?a:!0};
oP=function(a,b){b=void 0===b?[]:b;g.Ub(a,function(c,d){var e=d.sb-c.sb;if(!c.Ag()||!d.Ag())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.qb)+1,d=b.indexOf(d.qb)+1,f=0===c||0===d?d||-1:c-d);f||(f=e);return f})};
g.sP=function(a,b){this.B=a;this.D=void 0===b?!1:b;this.C=this.path=this.scheme="";this.j={};this.url=""};
uP=function(a){tP(a);return a.C};
vP=function(a){return a.B?a.B.startsWith("local"):"local"===a.scheme};
oRa=function(a){tP(a);return g.Yc(a.j,function(b){return null!==b})};
pRa=function(a){tP(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
wP=function(a,b){b=void 0===b?!1:b;tP(a);if("/videoplayback"!==a.path){var c=a.clone();c.set("playerfallback","1");return c}var d=a.Ke();c=new g.lq(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.nq(c,(0===d.indexOf("rr")?"rr":"r")+e+"---"+f[1]+a),c=new g.sP(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.nq(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.nq(c,"www.youtube.com"),d=c.toString()):(c=JCa(d),ZI(c)&&(d=c));c=new g.sP(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c};
tP=function(a){if(a.B){if(!ZI(a.B)&&!a.B.startsWith("local"))throw new g.XB("Untrusted URL",a.B);var b=g.uq(a.B);a.scheme=b.G;a.C=b.j+(null!=b.D?":"+b.D:"");var c=b.B;if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.slice(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.slice(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.slice(0,e),c=c.slice(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.j;a.j=qRa(c);Object.assign(a.j,
rRa(b.C.toString()));Object.assign(a.j,d);"index.m3u8"===a.j.file&&(delete a.j.file,a.path+="/file/index.m3u8");a.B="";a.url="";a.D&&(b=a.get("n"))&&(b=sRa[0](b),a.set("n",b),sRa.length||vma(""))}};
tRa=function(a){tP(a);var b=a.scheme+(a.scheme?"://":"//")+a.C+a.path;if(oRa(a)){var c=[];g.Uc(a.j,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
qRa=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&uRa(c,a[b],a[b+1]);return c};
rRa=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?uRa(b,d.slice(0,e),d.slice(e+1)):d&&(b[d]="")}return b};
uRa=function(a,b,c){if("cmo"===b){var d;0<=(d=c.indexOf("="))?(b="cmo="+c.slice(0,d),c=c.slice(d+1)):0<=(d=c.indexOf("%3D"))&&(b="cmo="+c.slice(0,d),c=c.slice(d+3))}a[b]=c};
xP=function(a){var b=g.V(a,vRa)||a.signatureCipher;a={JY:!1,YD:"",lH:"",s:""};if(!b)return a;b=FA(b);a.JY=!0;a.YD=b.url;a.lH=b.sp;a.s=b.s;return a};
yP=function(a,b,c,d,e,f,h,l,m){this.Pa=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.Yg=m;this.endTime=b+c;this.j=h||0;this.range=f||null;this.pending=l||!1;this.Yg=m||null};
g.zP=function(){this.segments=[];this.j=null;this.B=!0};
wRa=function(a,b){if(b>a.Ad())a.segments=[];else{var c=Cb(a.segments,function(d){return d.Pa>=b},a);
0<c&&a.segments.splice(0,c)}};
xRa=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.B=e)?0:8;this.dataOffset=this.offset+this.j};
AP=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b};
BP=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b};
CP=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
DP=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b};
EP=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};
yRa=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 JN(b)};
zRa=function(a){return new Uint8Array(a.data.buffer,a.offset+a.data.byteOffset,a.size)};
ARa=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
FP=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};
GP=function(a,b,c,d,e,f){this.startSecs=a;this.Bh=b;this.context=c;this.identifier=d;this.event=e;this.j=f};
IP=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.ej=HP(this,"Sequence-Number");this.G=HP(this,"Segment-Count");this.K=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=HP(this,"Ingestion-Walltime-Us")/1E6;this.j=(HP(this,"First-Frame-Time-Us")+HP(this,"First-Frame-Uncertainty-Us"))/1E6;this.Lj=HP(this,"Target-Duration-Us")/1E6;this.C="T"===this.data["Stream-Finished"];this.D="T"===this.data.Streamable;this.cryptoPeriodIndex=HP(this,"Crypto-Period-Index");
this.B=HP(this,"Crypto-Period-Seconds")};
CRa=function(a){return a.data["Cuepoint-Type"]?new GP(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",BRa[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):null};
DRa=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
HP=function(a,b){return Number(a.data[b])||0};
ERa=function(a){return a.data["Stitched-Video-Cpn"]?a.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
g.FRa=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
g.GRa=function(a){switch(a.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
HRa=function(a,b){this.j=a;this.duration=b};
IRa=function(a,b,c,d,e){this.B=e;this.j=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;this.crc=e.getUint32(4)};
JP=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};
JRa=function(a,b){var c=g.KP(a,0,1952868452);a=g.KP(a,0,1953658222);if(c&&a){c.skip(1);var d=AP(c)<<16|BP(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.j;var e=DP(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=AP(a)<<16|BP(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=DP(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=DP(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
MP=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.KP(a,0,1836476516))?g.LP(a):NaN};
KRa=function(a){var b=g.KP(a,0,1937011556);if(!b)return null;b=NP(a,b.dataOffset+8,1635148593)||NP(a,b.dataOffset+8,1635135537);if(!b)return null;var c=NP(a,b.dataOffset+78,1936995172),d=NP(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),AP(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=NP(a,d.dataOffset,1886547818)){var h=NP(a,d.dataOffset,1886546020),l=NP(a,d.dataOffset,2037673328);if(!l&&(l=NP(a,d.dataOffset,1836279920),
!l))return null;h&&(h.skip(4),c=CP(h)/65536,f=CP(h)/65536,e=CP(h)/65536);a=zRa(l);a=new DataView(a.buffer,a.byteOffset+8,a.byteLength-8);return new IRa(b,c,f,e,a)}return null};
NP=function(a,b,c){for(;OP(a,b);){var d=PP(a,b);if(d.type===c)return d;b+=d.size}return null};
g.KP=function(a,b,c){for(;OP(a,b);){var d=PP(a,b);if(d.type===c)return d;b=QP(d.type)?b+8:b+d.size}return null};
g.LRa=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};
PP=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new xRa(a,b,c,d)};
g.LP=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
MRa=function(a){a=new xRa(a.data,a.offset,a.size,a.type,a.B);var b=AP(a);a.skip(7);var c=DP(a);if(0===b){b=DP(a);var d=DP(a)}else b=EP(a),d=EP(a);a.skip(2);for(var e=BP(a),f=[],h=[],l=0;l<e;l++){var m=DP(a);f.push(m);h.push(DP(a));a.skip(4)}return{Ks:c,Z7:b,r8:d,kda:f,CT:h}};
OP=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};
QP=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
NRa=function(a){a.skip(4);return{Kda:yRa(a,0),value:yRa(a,0),Ks:DP(a),hrb:DP(a),cpb:DP(a),id:DP(a),g_:yRa(a),offset:a.offset}};
g.ORa=function(a){var b=NP(a,0,1701671783);if(!b)return null;var c=NRa(b),d=c.Kda;c=JP(c.g_);if(a=NP(a,b.offset+b.size,1701671783))if(a=NRa(a),a=JP(a.g_),c&&a){b=g.u(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new IP(c,d):null};
PRa=function(a,b){for(var c=NP(a,0,b);c;){var d=c;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);c=NP(a,c.offset+c.size,b)}};
g.RP=function(a,b){for(var c=0,d=[];OP(a,c);){var e=PP(a,c);e.type===b&&d.push(e);c=QP(e.type)?c+8:c+e.size}return d};
QRa=function(a,b){var c=g.KP(a,0,1937011556),d=g.KP(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.KP(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 ARa(a.byteLength+b);FP(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;FP(d,a,c.offset+16,c.size-16);FP(d,e,e.byteOffset+f.dataOffset+8,b);FP(d,a,c.offset+c.size,a.byteLength-
(c.offset+c.size));c=g.u([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.KP(a,0,e.value),d.data.setUint32(e.offset,e.size+b);a=g.KP(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
RRa=function(a){var b=g.KP(a,0,1937011556);if(!b)return null;var c=a.getUint32(b.dataOffset+12);if(1701733217!==c&&1701733238!==c)return null;b=NP(a,b.offset+24+(1701733217===c?28:78),1936289382);if(!b)return null;c=NP(a,b.offset+8,1935894637);if(!c||1667392371!==a.getUint32(c.offset+12))return null;b=NP(a,b.offset+8,1935894633);if(!b)return null;b=NP(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};
SP=function(a,b){this.j=a;this.pos=0;this.start=b||0};
TP=function(a){return a.pos>=a.j.byteLength};
YP=function(a,b,c){var d=new SP(c);if(!UP(d,a))return!1;d=VP(d);if(!WP(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=XP(d,!0);d=a+(d.start+d.pos-b)+e;d=9<d?SRa(d-9,8):SRa(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
URa=function(a){var b=new SP(a);b.ao();if(UP(b,[408125543,374648427,174,224]))b=VP(b);else return null;for(var c=a=null;!TP(b);){var d=XP(b,!1);if(21432===d)switch(ZP(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=VP(b):$P(b)}if(!c)return null;for(var e,f=d=b=null;!TP(c);)switch(XP(c,!1)){case 30321:if(3!==ZP(c))return null;break;case 30324:b=aQ(c);break;case 30323:f=aQ(c);break;case 30325:d=aQ(c);break;case 30322:e=XP(c,!0);e=TRa(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:$P(c)}return e?new IRa(a,b,f,d,e):null};
VP=function(a){var b=XP(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 SP(c,a.start+a.pos);a.pos+=b;return c};
ZP=function(a){for(var b=XP(a,!0),c=bQ(a),d=1;d<b;d++)c=256*c+bQ(a);return c};
aQ=function(a){var b=XP(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};
VRa=function(a){var b=XP(a,!0);return JN(TRa(a,b))};
bQ=function(a){return a.j.getUint8(a.pos++)};
XP=function(a,b){var c=bQ(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+bQ(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+bQ(a),d*=128;return b?c-d:c};
$P=function(a){var b=XP(a,!0);a.pos+=b};
WRa=function(a){if(!WP(a,440786851,!0))return null;var b=a.pos;XP(a,!1);var c=XP(a,!0)+a.pos-b;a.pos=b+c;if(!WP(a,408125543,!1))return null;XP(a,!0);if(!WP(a,357149030,!0))return null;var d=a.pos;XP(a,!1);var e=XP(a,!0)+a.pos-d;a.pos=d+e;if(!WP(a,374648427,!0))return null;var f=a.pos;XP(a,!1);var h=XP(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};
cQ=function(a){var b=a.pos;a.pos=0;var c=1E6;UP(a,[408125543,357149030,2807729])&&(c=ZP(a));a.pos=b;return c};
XRa=function(a,b){var c=a.pos;a.pos=0;if(160!==a.j.getUint8(a.pos)&&!dQ(a)||!WP(a,160))return a.pos=c,NaN;XP(a,!0);var d=a.pos;if(!WP(a,161))return a.pos=c,NaN;XP(a,!0);bQ(a);var e=bQ(a)<<8|bQ(a);a.pos=d;if(!WP(a,155))return a.pos=c,NaN;d=ZP(a);a.pos=c;return(e+d)*b/1E9};
dQ=function(a){if(!YRa(a)||!WP(a,524531317))return!1;XP(a,!0);return!0};
YRa=function(a){if(a.ao()){if(!WP(a,408125543))return!1;XP(a,!0)}return!0};
UP=function(a,b){for(var c=0;c<b.length;c++){if(!WP(a,b[c]))return!1;c!==b.length-1&&XP(a,!0)}return!0};
WP=function(a,b,c){c=void 0===c?!1:c;if(TP(a))return!1;for(var d=a.pos;XP(a,!1)!==b;)if($P(a),d=a.pos,TP(a))return!1;c&&(a.pos=d);return!0};
SRa=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};
TRa=function(a,b){var c=new Uint8Array(a.j.buffer,a.j.byteOffset+a.pos,b);a.pos+=b;return c};
eQ=function(a){this.base=a;this.j={};this.url=""};
ZRa=function(a,b){var c=b.indexOf("?");if(0<c){var d=rRa(b.substr(c+1));g.Uc(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=qRa(b);g.Uc(b,function(e,f){this.set(f,e)},a)};
$Ra=function(a){var b=a.base.Ke(),c=[];g.Uc(a.j,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=oRa(a.base)?"&":"?";return b+a+d};
aSa=function(a,b){var c=new g.sP(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Uc(a.j,function(d,e){c.set(e,null)});
return c};
bSa=function(){this.D=this.C=this.j=this.timedOut=this.started=this.G=this.B=0};
cSa=function(a){a.G=(0,g.wC)();a.started=0;a.timedOut=0;a.j=0};
dSa=function(a,b){var c=a.started+4*a.j;b&&(c+=a.C);c=Math.max(0,c-3);return Math.pow(1.6,c)};
fQ=function(a,b){a[b]||(a[b]=new bSa);return a[b]};
gQ=function(a){this.Z=this.K=this.G=this.B=0;this.N=!1;this.j=a;this.C=a.clone()};
fSa=function(a,b,c){a=b?eSa(a,c):a.j;return new eQ(a)};
eSa=function(a,b){b=b?b.Ql:!1;a.D||(a.D=wP(a.C,b));return a.D};
gSa=function(a,b,c){return uP(b?eSa(a,c):a.j)};
hSa=function(a,b,c){c=fQ(c,gSa(a,a.Oj(b,c),b));b=Math.max(a.G,c.timedOut)+b.zG*(a.B-a.G)+.25*a.K;b=3<b?1E3*Math.pow(1.6,b-3):0;return 0===b?!0:a.Z+b<(0,g.wC)()};
iSa=function(a,b,c){a.j.set(b,c);a.C.set(b,c);a.D&&a.D.set(b,c)};
jSa=function(a,b,c,d,e){++a.B;b&&++a.G;uP(c.base).startsWith("redirector.")&&(a.j=a.C.clone(),delete a.D,d.SF&&delete e[uP(a.j)])};
hQ=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.C=!1;this.K=0;this.D=this.B=null;this.info=b;this.resource=new gQ(a)};
iQ=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
jQ=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new iQ(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
kQ=function(a,b){return new iQ(a,a+b-1)};
kSa=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
lQ=function(a){if(!a)return new iQ(0,0);var b=Number(a.start);a=Number(a.end);if(!isNaN(b)&&!isNaN(a)&&(b=new iQ(b,a),0<b.length))return b};
mQ=function(a,b,c,d,e,f,h,l,m,n,p,q){d=void 0===d?"":d;this.type=a;this.j=b;this.range=c;this.source=d;this.Kj=p;this.clipId=void 0===q?"":q;this.N=[];this.G="";this.Pa=-1;this.Z=0;this.G=d;this.Pa=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.Tb=l||0;this.B=0<=m?m:this.range?this.range.length:NaN;this.Te=this.range?this.Tb+this.B===this.range.length:void 0===n?!!this.B:n;this.range?(this.C=this.startTime+this.duration*this.Tb/this.range.length,this.K=this.duration*this.B/this.range.length,
this.D=this.C+this.K):lSa(this)};
lSa=function(a){a.C=a.startTime;a.K=a.duration;a.D=a.C+a.K};
nQ=function(a){return a.Te&&a.j.index.rF(a.Pa)};
mSa=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Pa!==a.Pa);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Tb+b.B===a.Tb+a.B:d};
oQ=function(a){return 1===a.type||2===a.type};
pQ=function(a){return 3===a.type||6===a.type};
qQ=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.Tb+a.B===b.range.start+b.Tb:a.Pa===b.Pa?a.Tb+a.B===b.Tb:a.Pa+1===b.Pa&&0===b.Tb&&a.Te:!1};
nSa=function(a,b){return qQ(a,b)||1E-6>=Math.abs(a.D-b.C)||a.Pa+1===b.Pa&&0===b.Tb&&a.Te?!0:!1};
oSa=function(a){return a.Pa+(a.Te?1:0)};
pSa=function(a){1===a.length||g.as(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new iQ(a[0].range.start+a[0].Tb,b.range.start+b.Tb+b.B-1)};
qSa=function(a){for(var b=1;b<a.length;b++)if(!qQ(a[b-1],a[b]))return!1;return!0};
rSa=function(a){var b=0;a=g.u(a);for(var c=a.next();!c.done;c=a.next())b+=c.value.range.length;return b};
rQ=function(a){var b={};b.itag=a.j.info.itag;b.type=""+a.type;b.src=""+a.source;b.segsrc=a.G;b.seg=String(a.Pa);a.range&&(b.range=a.range.start+a.Tb+"-"+(a.range.start+a.Tb+a.B-1));b.time=a.C.toFixed(1)+"-"+(a.C+a.K).toFixed(1);b.off=String(a.Tb);b.len=String(a.B);a.Te&&(b.end="1");nQ(a)&&(b.eos="1");a.clipId&&(b.cid=a.clipId);return b};
sSa=function(a){return new mQ(a.type,a.j,a.range,"getEmptyStubBefore"+a.G,a.Pa,a.startTime,0,a.Tb,0)};
tSa=function(a){return new mQ(a.type,a.j,a.range,"getEmptyStubAfter"+a.G,a.Pa,a.startTime+a.duration,0,a.Tb+a.B,0)};
uSa=function(a,b,c,d){return new mQ(a.type,a.j,a.range,"reslice"+a.G,a.Pa,a.startTime,a.duration,b,c,d,a.Kj,a.clipId)};
vSa=function(a,b){return a.j!==b.j?!1:a.range&&b.range?a.range.start+a.Tb>=b.range.start+b.Tb&&a.range.start+a.Tb+a.B<=b.range.start+b.Tb+b.B:a.Pa===b.Pa&&a.Tb>=b.Tb&&(a.Tb+a.B<=b.Tb+b.B||b.Te)};
wSa=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.jg()?(a=a.j.TB(a),Ys(a,function(c){return wSa(c,b)})):a.Pa===b.Pa&&!!b.B&&b.Tb+b.B>a.Tb&&b.Tb+b.B<=a.Tb+a.B};
xSa=function(a,b){var c=b.Pa;a.G="updateWithSegmentInfo";a.Pa=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime+a.Z,a.duration=b.duration,lSa(a)};
sQ=function(a,b){var c=this;this.ib=a;this.D=this.j=null;this.G=this.gh=NaN;this.Oj=this.requestId=null;this.wd={eqb:function(){return c.range}};
this.resource=a[0].j.resource;this.B=b||"";this.ib[0].range&&0<this.ib[0].B&&(qSa(a)?(this.range=pSa(a),this.C=this.range.length):(this.range=this.ib[this.ib.length-1].range,this.C=rSa(a)))};
ySa=function(a){return!oQ(a.ib[a.ib.length-1])};
tQ=function(a){return 4===a.ib[a.ib.length-1].type};
g.zSa=function(a,b,c){c=null===a.Oj?a.resource.Oj(b,c,a.ib[0].type):a.Oj;if(a.j){b=c?wP(a.j,b.Ql):a.j;var d=new eQ(b);d.get("alr")||d.set("alr","yes");a.B&&ZRa(d,a.B)}else/http[s]?:\/\//.test(a.B)?d=new eQ(new g.sP(a.B)):(d=fSa(a.resource,c,b),a.B&&ZRa(d,a.B));(b=a.range)?d.set("range",b.toString()):a.ib[0].j.kx()&&1===a.ib.length&&a.ib[0].Tb&&d.set("range",a.ib[0].Tb+"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.gh)||d.set("headm",a.gh.toString());isNaN(a.G)||d.set("mffa",a.G+"ms");a.urlParams&&
g.Uc(a.urlParams,function(e,f){d.set(f,e)});
return d};
ASa=function(a){if(a.range)return a.C;a=a.ib[0];return Math.round(a.K*a.j.info.sb)};
BSa=function(a,b){return Math.max(0,a.ib[0].C-b)};
uQ=function(a,b,c,d,e,f){f=void 0===f?0:f;hQ.call(this,a,b,d,void 0);this.G=c;this.Lj=f;this.index=e||new g.zP};
CSa=function(a,b,c,d,e){this.Pa=a;this.startSecs=b;this.Bh=c;this.j=d||NaN;this.B=e||NaN};
vQ=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""};
wQ=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
DSa=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};
ESa=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
xQ=function(){this.j=[];this.B=null;this.K=0;this.C=[];this.G=!1;this.N="";this.D=-1};
FSa=function(a){var b=a.C;a.C=[];return b};
GSa=function(){this.D=[];this.j=null;this.B={};this.C={}};
KSa=function(a,b){var c=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.u(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=HSa(a):"AdaptationSet"===e.nodeName?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",f=ISa(a,e)):"Representation"===e.nodeName&&(e=e.getAttribute("id")||"",f=JSa(a,e));if(null==f)return;f.update(d);g.Mb(c,FSa(f))}g.Mb(a.D,c);xaa(a.D,function(h){return 1E3*h.startSecs+h.j})};
LSa=function(a){a.j&&(a.j.j=[]);g.Uc(a.B,function(b){b.j=[]});
g.Uc(a.C,function(b){b.j=[]})};
HSa=function(a){a.j||(a.j=new xQ);return a.j};
ISa=function(a,b){a.B[b]||(a.B[b]=new xQ);return a.B[b]};
JSa=function(a,b){a.C[b]||(a.C[b]=new xQ);return a.C[b]};
NSa=function(a){var b=void 0===a?{}:a;a=void 0===b.Lj?0:b.Lj;var c=void 0===b.An?!1:b.An;var d=void 0===b.qr?0:b.qr;var e=void 0===b.cf?0:b.cf;var f=void 0===b.Ih?Infinity:b.Ih;var h=void 0===b.aB?0:b.aB;b=void 0===b.Yd?!1:b.Yd;g.zP.call(this);this.Lr=this.Tp=-1;this.Mj=a;this.qr=d;this.An=c;this.cf=e;this.Ih=f;this.aB=h;(this.Yd=b)&&c&&MSa&&(this.B=!1)};
yQ=function(a,b){return Tb(a.segments,function(c){return b-c.Pa})};
zQ=function(a,b,c){c=void 0===c?{}:c;uQ.call(this,a,b,"",void 0,void 0,c.Lj||0);this.index=new NSa(c)};
AQ=function(a,b,c){hQ.call(this,a,b);this.G=c;this.index=new g.zP;this.index.B=!1};
OSa=function(a,b,c){var d=a.index.IJ(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.sb*f;return new sQ([new mQ(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)};
PSa=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.G;b=b.K.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 yP(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
BQ=function(a,b){this.info=a;this.j=b;this.B=null;this.D=this.C=-1;this.timestampOffset=0;this.K=!1;this.G=this.info.j.KA()&&!this.info.Tb;this.isLocked=!1};
CQ=function(a){return GKa(a.j)};
QSa=function(a,b){b=Math.min(b,a.info.B);var c=a.j.split(b),d=c.Zm;c=new BQ(new mQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Tb,b,!1,a.info.Kj,a.info.clipId),c.aK);c.D=a.D;c.C=a.C;b=new BQ(new mQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Tb+b,a.info.B-b,a.info.Te,a.info.Kj,a.info.clipId),d);b.D=a.D;b.C=a.C;return[c,b]};
DQ=function(a,b,c){var d;if(!(d=a.isLocked||b.isLocked||!qQ(a.info,b.info)||a.info.Te)){if(c=void 0===c?!1:c)c=a.j,d=b.j,c=!(d.j.length?CKa(c,d.j[0]):1);d=c}if(d)return null;c=new mQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Tb,a.info.B,a.info.Te,a.info.Kj,a.info.clipId);d=b.info;c.B+=d.B;c.range&&(c.K+=d.K);c.D=d.D;c.Te=d.Te;d=new BN;CN(d,a.j);CN(d,b.j);c=new BQ(c,d);c.B=b.B||a.B;c.C=-1!==a.C?a.C:b.C;c.D=-1!==a.D?a.D:b.D;return c};
RSa=function(a){g.iK(a.info.j.info)||a.info.j.info.Le();if(-1!==a.C)return a.C;if(a.B&&DRa(a.B))return a.C=DRa(a.B),a.C;if(g.iK(a.info.j.info)){var b=CQ(a);for(var c=a.info.j.j,d=NaN,e=NaN,f=0;OP(b,f);){var h=PP(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.LP(h):1952867444===h.type&&isNaN(d)&&(d=g.LRa(h));f=QP(h.type)?f+8:f+h.size}!e&&c&&(e=MP(c));b=d/e}else b=new SP(CQ(a)),c=a.G?b:new SP(new DataView(a.info.j.j.buffer)),d=cQ(c),c=b.pos,b.pos=0,dQ(b)?WP(b,231)?
(d=ZP(b)*d/1E9,b.pos=c,b=d):(b.pos=c,b=NaN):(b.pos=c,b=NaN);a.C=b||a.info.C;return a.C};
TSa=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=RSa(a)+b;SSa(a,c);a.timestampOffset=b};
SSa=function(a,b){g.iK(a.info.j.info)||a.info.j.info.Le();a.C=b;if(g.iK(a.info.j.info)){var c=CQ(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;OP(c,f);){var h=PP(c,f);isNaN(d)&&(1936286840===h.type?d=h.data.getUint32(h.dataOffset+8):1836476516===h.type&&(d=g.LP(h)));if(1952867444===h.type){!d&&a&&(d=MP(a));var l=g.LRa(h);isNaN(e)&&(e=Math.round(b*d)-l);var m=h;l+=e;if(m.data.getUint8(m.dataOffset)){var n=m.data;m=m.dataOffset+4;n.setUint32(m,Math.floor(l/4294967296));n.setUint32(m+4,l&4294967295)}else m.data.setUint32(m.dataOffset+
4,l)}f=QP(h.type)?f+8:f+h.size}return!0}c=new SP(CQ(a));a=a.G?c:new SP(new DataView(a.info.j.j.buffer));d=cQ(a);a=c.pos;c.pos=0;if(dQ(c)&&WP(c,231))if(e=XP(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};
EQ=function(a,b){b=void 0===b?!1:b;var c=USa(a);a=b?0:a.info.K;return c||a};
USa=function(a){g.iK(a.info.j.info)||a.info.j.info.Le();if(a.B&&6===a.info.type)return a.B.Lj;if(g.iK(a.info.j.info)){var b=CQ(a);var c=0;b=g.RP(b,1936286840);b=g.u(b);for(var d=b.next();!d.done;d=b.next())d=MRa(d.value),c+=d.CT[0]/d.Ks;c=c||NaN;if(!(0<=c))a:{c=CQ(a);b=a.info.j.j;for(var e=d=0,f=0;OP(c,d);){var h=PP(c,d);if(1836476516===h.type)e=g.LP(h);else if(1836019558===h.type){!e&&b&&(e=MP(b));if(!e){c=NaN;break a}var l=NP(h.data,h.dataOffset,1953653094),m=l;l=e;var n=NP(m.data,m.dataOffset,
1952868452);m=NP(m.data,m.dataOffset,1953658222);var p=CP(n);CP(n);p&2&&CP(n);n=p&8?CP(n):0;var q=CP(m),r=q&1;p=q&4;var t=q&256,v=q&512,w=q&1024;q&=2048;var A=DP(m);r&&CP(m);p&&CP(m);for(var C=r=0;C<A;C++){var F=t?CP(m):n;v&&CP(m);p&&0===C||!w||CP(m);q&&CP(m);r+=F}f+=r/l}d=QP(h.type)?d+8:d+h.size}c=f||NaN}c||g.BE(new g.XB("Missing duration while parsing bmff",a.info.Tc()))}else c=new SP(CQ(a)),a=a.G?c:new SP(new DataView(a.info.j.j.buffer)),c=XRa(c,cQ(a));return c};
VSa=function(a){var b=CQ(a);var c=(c=g.KP(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.j.j,c=(b=g.KP(b,0,1836476516))?g.LP(b):a?MP(a):NaN);return c};
WSa=function(a){return a.info.j.info.Le()&&160===GN(a.j,0)};
XSa=function(a){if(!a.B){g.iK(a.info.j.info)||a.info.j.info.Le();if(g.iK(a.info.j.info))var b=g.ORa(CQ(a));else{b=new SP(CQ(a));var c=b.pos;b.pos=0;var d=null,e=null;if(UP(b,[408125543,307544935]))for(var f=b.pos+XP(b,!0);b.pos<f;)if(29555!==XP(b,!1))$P(b);else for(var h=b.pos+XP(b,!0);b.pos<h;)if(26568!==XP(b,!1))$P(b);else for(var l=b.pos+XP(b,!0);b.pos<l;){var m=XP(b,!1);if(17543===m){if(m=VRa(b),m=JP(m))if(e)for(var n=g.u(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=VRa(b),d||(d=m)):$P(b)}b.pos=c;b=e?new IP(e,d):null}a.B=b}};
YSa=function(a){if(g.iK(a.info.j.info))PRa(CQ(a),1836019574),PRa(CQ(a),1718909296);else{var b=new SP(CQ(a));YRa(b);WP(b,524531317,!0);a.j=a.j.split(b.start+b.pos).Zm}a.G=!1};
ZSa=function(a){if(!a.K){if(g.iK(a.info.j.info)){var b=CQ(a);var c=NP(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=WRa(new SP(CQ(a)));b&&(a.info.j.j=b,a.K=!0)}};
g.$Sa=function(){this.count=0;this.j=1;this.B=!1;this.offsets=new Float64Array(128);this.Sg=new Float64Array(128)};
aTa=function(a,b){return b+1<a.count||a.B?a.offsets[b+1]-a.offsets[b]:-1};
bTa=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
FQ=function(a,b,c,d){hQ.call(this,a,b,c,d);var e=this;this.G=null;this.wd={SE:function(f,h,l,m){return e.SE(f,h,l,m)}};
this.index=new g.$Sa};
cTa=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};
eTa=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return dTa[a];return null};
g.GQ=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
gTa=function(a){return fTa(function(b,c){return g.YA(b,c,4,1E3)},a,{format:"RAW",
method:"GET",withCredentials:!0})};
g.hTa=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=JN(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
fTa=function(a,b,c){b.match(iTa);return a(b,c).then(function(d){var e=g.hTa(d.xhr);return e?fTa(a,e,c):d.xhr})};
IQ=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.UE.call(this);var d=this;this.sourceUrl=a;this.isLivePlayback=c;this.Wa=this.duration=0;this.isPremiere=this.Yd=this.C=this.isLiveHeadPlayable=this.isLive=this.B=!1;this.Ih=this.cf=0;this.isOtf=this.dc=!1;this.Ma=(0,g.wC)();this.qa=Infinity;this.j={};this.N=new Map;this.state=this.Bg=0;this.timeline=null;this.isManifestless=!1;this.ra=[];this.G=null;this.Ca=0;this.D="";this.Ha=NaN;this.vc=this.bb=this.Nb=this.timestampOffset=
this.K=0;this.Sa=this.Va=this.Y=!1;this.Ga=[];this.La={};this.wd={Bob:function(m){HQ(d,m)}};
var e;this.eb=null==(e=b)?void 0:e.fb("html5_use_network_error_code_enums");jTa=!!b&&b.fb("html5_modern_vp9_mime_type");var f;kTa=!(null==(f=b)||!f.fb("html5_enable_flush_during_seek"))&&g.hB();var h;lTa=!(null==(h=b)||!h.fb("html5_enable_reset_audio_decoder"))&&g.hB();var l;this.gb=!(null==(l=b)||!l.fb("html5_windowed_post_live_prevent_seek_to_max_sq"))};
mTa=function(a){return g.Yc(a.j,function(b){return!!b.info.video&&2160<=b.info.video.j})};
iRa=function(a){return g.Yc(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})};
mP=function(a){return g.Yc(a.j,function(b){return!!b.info.le})};
nTa=function(a){return g.Yc(a.j,function(b){return mK(b.info.mimeType)})};
oTa=function(a){return g.Yc(a.j,function(b){return b.info.video?"EQUIRECTANGULAR"===b.info.video.projectionType:!1})};
pTa=function(a){return g.Yc(a.j,function(b){return b.info.video?"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.info.video.projectionType:!1})};
qTa=function(a){return g.Yc(a.j,function(b){return b.info.video?"MESH"===b.info.video.projectionType:!1})};
rTa=function(a){return g.Yc(a.j,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
sTa=function(a){return bba(a.j,function(b){return b.info.video?b.gS():!0})};
jP=function(a){return g.Yc(a.j,function(b){return vP(b.resource.j)})};
HQ=function(a,b){a.j[b.info.id]=b;a.N.set(lK(b.info,a.dc),b)};
tTa=function(a,b){return(b.itag||"")+";"+((a.dc?0:b.lmt||0)||0)+";"+(b.xtags||"")};
JQ=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(AEa(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=uTa[a.stereoLayout]);var r=eTa(a)||void 0;if(null==n?0:n.primaries)var t=vTa[n.primaries]||void 0;h=new aK(h,e,l,p,q,void 0,m,r,t);d=wTa(d,h,dK[a.itag||""]);kTa&&(d+="; enableflushduringseek=true");lTa&&(d+="; enableresetaudiodecoder=true")}var v;if(zEa(d)){var w=
a.audioSampleRate;q=a.audioTrack;w=new ZJ(w?+w:void 0,a.audioChannels,a.spatialAudioType,a.isDrc,a.loudnessDb,a.trackAbsoluteLoudnessLkfs);q&&(t=q.displayName,e=q.id,q=q.audioIsDefault,t&&(v=new g.GQ(t,e||"",!!q)))}var A;a.captionTrack&&(m=a.captionTrack,q=m.displayName,t=m.vssId,e=m.languageCode,l=m.kind,m=m.id,q&&t&&e&&(A=new cTa(q,t,e,l,a.xtags,m)));q=Number(a.bitrate)/8;t=Number(a.contentLength);e=Number(a.lastModified);m=a.drmFamilies;l=a.type;c=c&&t?t/c:0;a=Number(a.approxDurationMs);if(b&&
m){var C={};m=g.u(m);for(n=m.next();!n.done;n=m.next())(n=xTa[n.value])&&(C[n]=b[n])}return new eK(f,d,{audio:w,video:h,qc:v,le:C,sb:q,jw:c,contentLength:t,lastModified:e,captionTrack:A,streamType:l,approxDurationMs:a})};
yTa=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(AEa(d)){var h=(a.size||"640x360").split("x");h=new aK(+h[0],+h[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=wTa(d,h,dK[a.itag]);kTa&&(d+="; enableflushduringseek=true");lTa&&(d+="; enableresetaudiodecoder=true")}var l;if(zEa(d)){var m=new ZJ(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(l=new g.GQ(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 cTa(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind,a.xtags,a.caption_id));f=Number(a.bitrate)/8;var p=Number(a.clen),q=Number(a.lmt);c=c&&p?p/c:0;if(b&&a.drm_families){var r={};for(var t=g.u(a.drm_families.split(",")),v=t.next();!v.done;v=t.next())v=v.value,r[v]=b[v]}return new eK(e,d,{audio:m,video:h,qc:l,le:r,sb:f,jw:c,contentLength:p,lastModified:q,captionTrack:n,
streamType:a.stream_type,approxDurationMs:Number(a.approx_duration_ms)})};
zTa=function(a){return Ys(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
ATa=function(a){return Ys(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
BTa=function(a,b){return a.timeline?Nb(a.timeline.D,b):a.ra.length?Nb(a.ra,b):[]};
KQ=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.sP(a,!0);a.set("alr","yes");c&&(c=xPa(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
FTa=function(a,b){var c=vQ(b,"id");c=c.replace(":",";");var d=vQ(b,"mimeType"),e=vQ(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(vQ(b,"bandwidth"))/8;var f=Number(wQ(b,"BaseURL").getAttribute(a.D+":contentLength")),h=a.duration&&f?f/a.duration:0;if(AEa(d)){var l=Number(vQ(b,"width"));var m=Number(vQ(b,"height")),n=Number(vQ(b,"frameRate")),p=CTa(vQ(b,a.D+":projectionType"));a:switch(vQ(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 aK(l,m,n,p,q)}if(zEa(d)){var r=Number(vQ(b,"audioSamplingRate"));var t=Number(vQ(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=DTa(vQ(b,a.D+":spatialAudioType"));r=new ZJ(r,t,m);a:{t=vQ(b,"lang")||"und";if(m=wQ(b,"Role"))if(p=vQ(m,"value")||"",g.dd(ETa,p)){m=t+"."+ETa[p];n="main"===p;a=vQ(b,a.D+":langName")||t+" - "+p;t=new g.GQ(a,m,n);break a}t=void 0}}if(b=wQ(b,"ContentProtection"))if("http://youtube.com/drm/2012/10/10"===b.getAttribute("schemeIdUri")){var v={};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&&(v[a]=m.trim()))}else v=void 0;return new eK(c,d,{audio:r,video:l,qc:t,le:v,sb:e,jw:h,contentLength:f})};
CTa=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"}};
DTa=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"}};
HTa=function(a,b){b=void 0===b?"":b;a.state=1;a.Ma=(0,g.wC)();return gTa(b||a.sourceUrl).then(function(c){if(!a.Na()){a.Bg=c.status;c=c.responseText;var d=new DOMParser;c=Oba(d,tma(c)).getElementsByTagName("MPD")[0];a.qa=1E3*DSa(vQ(c,"minimumUpdatePeriod"))||Infinity;b:{if(c.attributes){d=g.u(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,"http://youtube.com/yt/2012/10/10"===e.value){d=e.name.split(":")[1];break b}}d=""}a.D=d;a.isLive=Infinity>a.qa&&a.isLivePlayback;a.Wa=Number(vQ(c,
a.D+":earliestMediaSequence"))||0;if(d=Date.parse(ESa(vQ(c,a.D+":mpdResponseTime"))))a.Ca=((0,g.wC)()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.as(c.getElementsByTagName("Period"),a.Ica,a);a.state=2;a.publish("loaded");GTa(a)}return a}).Dl(function(c){if(c instanceof WA){var d=c.xhr;
a.Bg=d.status}a.state=3;a.publish("loaderror");return ig(d)})};
ITa=function(a,b,c){return HTa(new IQ(a,b,c),a)};
JTa=function(a){return a.isLive&&(0,g.wC)()-a.Ma>=a.qa};
KTa=function(a){a.G&&a.G.stop()};
GTa=function(a){var b=a.qa;isFinite(b)&&(JTa(a)?a.refresh():(b=Math.max(0,a.Ma+b-(0,g.wC)()),a.G||(a.G=new g.Iv(a.refresh,b,a),g.N(a,a.G)),a.G.start(b)))};
LTa=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.Ad()+1}return 0};
LQ=function(a){return a.Nb?a.Nb-(a.K||a.timestampOffset):0};
MQ=function(a){return a.bb?a.bb-(a.K||a.timestampOffset):0};
NQ=function(a){if(!isNaN(a.Ha))return a.Ha;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()&&!mK(b[c].info.mimeType)){b=0;for(c=d.Mn();c<=d.Ad();c++)b+=d.getDuration(c);b/=d.lA();b=.5*Math.round(b/.5);10<d.lA()&&(a.Ha=b);return b}if(a.isLive&&(d=b[c],d.Lj))return d.Lj}return NaN};
MTa=function(a,b){a=dba(a.j,function(d){return d.index.isLoaded()});
if(!a)return NaN;a=a.index;var c=a.Hi(b);return a.getStartTime(c)===b?b:c<a.Ad()?a.getStartTime(c+1):NaN};
NTa=function(a,b){if(!a.j["0"]){var c=new eK("0","fakesb",{video:new aK(0,0,0,void 0,void 0,"auto")});a.j["0"]=b?new uQ(new g.sP("http://www.youtube.com/videoplayback"),c,"fake"):new FQ(new g.sP("http://www.youtube.com/videoplayback"),c,new iQ(0,0),new iQ(0,0))}};
OQ=function(a,b,c){for(var d in a.j){var e=mK(a.j[d].info.mimeType)||a.j[d].info.Ag();if(c===e){e=a.j[d].index;var f=yQ(e,b);0<=f&&e.segments.splice(f,1)}}};
OTa=function(a){for(var b in a.j)mK(a.j[b].info.mimeType)||wRa(a.j[b].index,Infinity)};
PTa=function(a,b,c){for(var d in a.j){var e=a.j[d].index,f=b,h=c;e.An&&(f&&(e.Tp=Math.max(e.Tp,f)),h&&(e.Lr=Math.max(e.Lr||0,h)))}};
QTa=function(a){a.bb=0;a.Nb=0;a.vc=0};
PQ=function(a){return a.Va&&a.isManifestless?a.isLiveHeadPlayable:a.isLive};
wTa=function(a,b,c){null===QQ&&(QQ=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(jTa&&window.MediaSource&&void 0!==MediaSource.isTypeSupported)return QQ||"9"!==c&&"("!==c?QQ||"9h"!==c&&"(h"!==c||(a='video/webm; codecs="vp9.2"'):a='video/webm; codecs="vp9"',a;if(!QQ&&!RTa||'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.B&&(f="16"),"arib-std-b67"===b.B&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,h,"00"].join(".")+'"'};
g.RQ=function(a){this.tag=a};
TTa=function(a,b){STa.apply(null,[6,a,b].concat(g.qa(g.Ia.apply(2,arguments))))};
UTa=function(a,b){STa.apply(null,[5,a,b].concat(g.qa(g.Ia.apply(2,arguments))))};
STa=function(a,b,c){var d=g.Ia.apply(3,arguments),e=6===a?"ERROR":"WARNING",f="b"+c;g.AE(new (Function.prototype.bind.apply(g.XB,[null,f].concat(g.qa(d)))),e);d.unshift(f);d=d.join(", ");e=VTa.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){}VTa.set(b,f);e=f}a<e||("function"===typeof d&&(d=d()),console.log("plyr."+b,d))};
TQ=function(a,b,c,d){b=""+b+(49<c?"p60":32<c?"p48":"");if(!a.L("html5_gradual_perf_cap"))return HPa(b);a=HPa(b,!1);if(null!=a&&0<a)return a;a=SQ.get(b);if(null!=a&&0<a)return a;d=null==d?void 0:d.get(b);return null!=d&&0<d?d:8192};
WTa=function(a){this.Da=a;this.vc=this.Jo=this.Ma=this.G=this.D=this.ra=this.La=this.Wa=this.Ca=!1;this.N=this.K=0;this.gb=!1;this.Ha=!0;this.bb=!1;this.qj=0;this.Ga=!1;this.Sb=Infinity;this.PN=!1;this.Dc=!0;this.Va=this.Sa=!1;this.j={};this.B=this.Y=!1;this.Nb=this.Da.Bc();this.Jb=!1;this.Hb=this.Da.experiments.fb("html5_enable_vp9_fairplay");this.ge=this.Da.L("html5_force_av1_for_testing");this.eb=g.xI(this.Da.experiments,"html5_av1_ordinal_cap");this.ud=this.Da.L("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");
this.Qc=this.Da.L("html5_account_onesie_format_selection_during_format_filter");this.zd=this.Da.L("html5_prefer_hbr_vp9_over_av1");this.Uf=0;this.disableAv1=this.Ab=this.rb=!1;this.sb=g.xI(this.Da.experiments,"html5_max_byterate");this.Z=this.Da.L("html5_prefer_high_aac_by_default");this.Nd=this.Da.L("html5_prefer_language_over_codec");this.Kb=this.Da.L("html5_enable_iamf_audio");this.Jd=this.Da.experiments.fb("html5_allow_capability_merge")};
jRa=function(a){if(a.Wa)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Ga&&(b.unshift("1"),b.unshift("1h"));a.Jo&&b.unshift("h");a.qa&&(b=(XTa[a.qa]||[a.qa]).concat(b));return b};
dRa=function(a){var b=["o","a","A"];a.Z&&b.unshift("ah");1===a.Uf&&(a.ra&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.G&&(b=["meac3","MEAC3"].concat(b)));a.Ca&&(b=["so","sa"].concat(b));!a.vc||a.Ma||a.C||b.unshift("a");!a.Z&&a.La&&b.unshift("ah");a.C&&(b=(XTa[a.C]||[a.C]).concat(b));a.Kb&&b.unshift("i");return b};
YTa=function(a,b,c,d){b=void 0===b?{}:b;if(void 0===d?0:d)return b.disabled=1,0;if(qP(a.G,rP.AV1_CODECS)&&qP(a.G,rP.HEIGHT)&&qP(a.G,rP.BITRATE))return b.isCapabilityUsable=1,8192;try{var e=MPa();if(e)return b.localPref=e}catch(l){}d=1080;2>=navigator.hardwareConcurrency&&(d=480);b.coreCount=navigator.hardwareConcurrency;Xqa()&&(b.isArm=1,d=240);if(c){var f,h;if(e=null==(f=c.videoInfos.find(function(l){return gK(l)}))?void 0:null==(h=f.B)?void 0:h.powerEfficient)d=8192,b.isEfficient=1;
c=c.videoInfos[0].video;a=Math.min(TQ(a,"1",c.fps),TQ(a,"1",30));b.perfCap=a;d=Math.min(d,a);c.isHdr()&&!e&&(b.hdr=1,d*=.75)}else c=TQ(a,"1",30),b.perfCap30=c,d=Math.min(d,c),c=TQ(a,"1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d};
UQ=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.B=c;this.experiments=d;this.j={};this.Wa=this.keySystemAccess=null;this.Xv=this.Yv=-1;this.Sl=null;this.C=!!d&&d.fb("edge_nonprefixed_eme")};
WQ=function(a){return a.C?!1:!a.keySystemAccess&&!!VQ()&&"com.microsoft.playready"===a.keySystem};
XQ=function(a){return"com.microsoft.playready"===a.keySystem};
YQ=function(a){return!a.keySystemAccess&&!!VQ()&&"com.apple.fps.1_0"===a.keySystem};
ZQ=function(a){return"com.youtube.fairplay"===a.keySystem};
$Q=function(a){return"com.youtube.fairplay.sbdl"===a.keySystem};
g.aR=function(a){return"fairplay"===a.flavor};
VQ=function(){var a=window,b=a.MSMediaKeys;jB()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
ZTa=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.WJ&&!g.hB())return hw("45");if(g.NC||g.Ks)return a.fb("edge_nonprefixed_eme");if(g.bR)return hw("47");if(g.rC){if(a.fb("html5_enable_safari_fairplay"))return!1;if(a=g.xI(a,"html5_safari_desktop_eme_min_version"))return hw(a)}return!0};
aUa=function(a,b,c,d){var e=iB(),f=(c=e||c&&jB())?["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.qa(f),g.qa($Ta.playready)):[].concat(g.qa($Ta.playready),g.qa(f))};
cR=function(a,b,c,d,e){d=void 0===d?!1:d;g.I.call(this);this.Da=b;this.useCobaltWidevine=d;this.ma=e;this.B=[];this.C={};this.j={};this.callback=null;this.G=!1;this.D=[];this.initialize(a,!c)};
dUa=function(a,b){a.callback=b;a.D=[];ZTa(a.Da.experiments)?bUa(a):cUa(a)};
bUa=function(a){if(!a.Na())if(0===a.B.length)a.callback(a.D);else{var b=a.B[0],c=a.C[b],d=eUa(a,c);if(dR&&dR.keySystem===b&&dR.xda===JSON.stringify(d))a.ma("remksa",{re:!0}),fUa(a,c,dR.keySystemAccess);else{var e,f;a.ma("remksa",{re:!1,ok:null!=(f=null==(e=dR)?void 0:e.keySystem)?f:""});dR=void 0;(eR.isActive()?eR.Lo("emereq",function(){return navigator.requestMediaKeySystemAccess(b,d)}):navigator.requestMediaKeySystemAccess(b,d)).then(sO(function(h){fUa(a,c,h,d)}),sO(function(){a.G=!a.G&&"widevine"===
a.C[a.B[0]].flavor;
a.G||a.B.shift();bUa(a)}))}}};
fUa=function(a,b,c,d){if(!a.Na()){d&&(dR={keySystem:b.keySystem,keySystemAccess:c,xda:JSON.stringify(d)});b.keySystemAccess=c;if(XQ(b)){c=UJ();d=g.u(Object.keys(a.j[b.flavor]));for(var e=d.next();!e.done;e=d.next())e=e.value,b.j[e]=!!c.canPlayType(e)}else{c=b.keySystemAccess.getConfiguration();if(c.audioCapabilities)for(d=g.u(c.audioCapabilities),e=d.next();!e.done;e=d.next())gUa(a,b,e.value);if(c.videoCapabilities)for(c=g.u(c.videoCapabilities),d=c.next();!d.done;d=c.next())gUa(a,b,d.value)}a.D.push(b);
a.useCobaltWidevine||a.L("html5_enable_vp9_fairplay")&&$Q(b)?(a.B.shift(),bUa(a)):a.callback(a.D)}};
gUa=function(a,b,c){a.L("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
eUa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.L("html5_enable_vp9_fairplay")&&ZQ(b))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];XQ(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.u(Object.keys(a.j[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),h=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==
b.flavor||a.G?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.WJ&&g.fB("windows nt")&&!a.L("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),f=e,a.L("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),"MWEB"===g.fR(a.Da)&&(nB()||gB())&&(a.ma("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
cUa=function(a){if(VQ()&&g.rC)a.D.push(new UQ("fairplay","com.apple.fps.1_0","",a.Da.experiments));else{var b=hUa(),c=g.Db(a.B,function(d){var e=a.C[d],f=!1,h=!1,l;for(l in a.j[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
c&&a.D.push(a.C[c]);a.B=[]}a.callback(a.D)};
hUa=function(){var a=VQ();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=UJ();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
iUa=function(a){this.experiments=a;this.C=0;this.G=(this.D=this.experiments.fb("html5_consider_end_stall"))&&gR;this.B=this.experiments.fb("html5_measure_max_progress_handling");this.j=this.L("html5_use_media_for_elbow")};
jUa=function(a,b){this.j=void 0;this.experimentIds=a?a.split(","):[];this.flags=DA(b||"","&");a={};b=g.u(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a};
g.xI=function(a,b){return Number(a.flags[b])||0};
hR=function(a,b){return(a=a.flags[b])?a.toString():""};
kUa=function(a){if(a=a.flags.html5_web_po_experiment_ids)if(a=a.replace(/\[ *(.*?) *\]/,"$1"))return a.split(",").map(Number);return[]};
lUa=function(a){if(a.j)return a.j;if(1>=a.experimentIds.length)return a.j=a.experimentIds,a.j;var b=[].concat(g.qa(a.experimentIds)).map(function(d){return Number(d)});
b.sort();for(var c=b.length-1;0<c;--c)b[c]-=b[c-1];a.j=b.map(function(d){return d.toString()});
a.j.unshift("v1");return a.j};
nUa=function(a){return mUa.then(a)};
oUa=function(a,b,c){this.experiments=a;this.Ca=b;this.Ha=void 0===c?!1:c;this.Z=!!g.Xa("cast.receiver.platform.canDisplayType");this.N={};this.Y=!1;this.C=new Map;this.K=!0;this.B=this.D=!1;this.qa=this.experiments.fb("html5_disable_vp9_encrypted");this.j=new Map;this.ra=g.xI(this.experiments,"html5_max_vertical_resolution");a=g.Xa("cast.receiver.platform.getValue");this.G=!this.Z&&a&&a("max-video-resolution-vpx")||null};
nRa=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.Le()&&iB()&&a.experiments.fb("html5_appletv_disable_vp9"))return"dwebm";if(gK(b)&&a.Y)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(qP(a,rP.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.WJ?hw(53):g.bR&&hw(64)))return"dopus";
var f;if(a.ra&&(null==(f=b.video)?void 0:f.height)>a.ra)return"dvert";f=c;f=void 0===f?1:f;c={};b.video&&(b.video.width&&(c[rP.WIDTH.name]=b.video.width),b.video.height&&(c[rP.HEIGHT.name]=b.video.height),b.video.fps&&(c[rP.FRAMERATE.name]=b.video.fps*f),b.video.B&&(c[rP.EOTF.name]=b.video.B),b.sb&&(c[rP.BITRATE.name]=8*b.sb*f),"("===b.qb&&(c[rP.CRYPTOBLOCKFORMAT.name]="subsample"),"EQUIRECTANGULAR"===b.video.projectionType||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.video.projectionType||"MESH"===b.video.projectionType)&&
(c[rP.DECODETOTEXTURE.name]="true");b.audio&&b.audio.numChannels&&(c[rP.CHANNELS.name]=b.audio.numChannels);a.D&&fK(b)&&(c[rP.EXPERIMENTAL.name]="allowed");f=g.u(Object.keys(rP));for(var h=f.next();!h.done;h=f.next())if(h=rP[h.value],c[h.name]&&!(h===rP.EOTF&&0<b.mimeType.indexOf("vp09.02")||a.experiments.fb("html5_ignore_h264_framerate_cap")&&h===rP.FRAMERATE&&uEa(b)))if(qP(a,h))if(a.G){if(a.G[h.name]<c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];else if(vEa(b)&&h===rP.EOTF)return"dvp92";
a.Z&&b.video&&1080<b.video.j&&b.le&&(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.fb("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc"};
iR=function(){var a=gB()&&!hw(29),b=g.fB("google tv")&&g.fB("chrome")&&!hw(30);return a||b?!1:EEa()};
pUa=function(a,b,c){var d=480;b=g.u(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.video.j;1080>=f&&f>d&&!0===nRa(a,e,c)&&(d=f)}return d};
g.qUa=function(a,b){b=void 0===b?!1:b;return iR()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(UJ(),"application/x-mpegURL")?!0:!1};
sUa=function(a){rUa(function(){for(var b=g.u(Object.keys(rP)),c=b.next();!c.done;c=b.next())qP(a,rP[c.value])})};
qP=function(a,b){b.name in a.N||(a.N[b.name]=tUa(a,b));return a.N[b.name]};
tUa=function(a,b){if(a.G)return!!a.G[b.name];if(b===rP.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===rP.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.Yn);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.Yn)};
uUa=function(a){a.D||(a.D=!0,a.B=!0)};
vUa=function(a,b){var c=0;a.C.has(b)&&(c=a.C.get(b).p8);a.C.set(b,{p8:c+1,e1:Math.pow(2,c+1)});a.B=!0};
nP=function(a){for(var b=[],c=g.u(a.j.keys()),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.j.get(d);b.push(d+"_"+e.maxWidth+"_"+e.maxHeight)}return b.join(".")};
eRa=function(a,b){for(var c=new Map,d=g.u(a.j.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.split("_")[0];b.has(f)||c.set(e,a.j.get(e))}a.j=c};
gRa=function(a,b,c){var d,e=(null==(d=c.video)?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h={itag:c.itag,qb:b,Eh:f};if(f)h.numChannels=c.audio.numChannels;else{var l=c.video;h.maxWidth=null==l?void 0:l.width;h.maxHeight=null==l?void 0:l.height;h.maxFramerate=e;qP(a,rP.BITRATE)&&(h.maxBitrateBps=8*c.sb);h.kF=null==l?void 0:l.isHdr()}l=a.j.get(d);l?f||(c=Math.max(l.maxWidth||0,l.maxHeight||0)>Math.max(h.maxWidth||0,h.maxHeight||0)?l:h,b={itag:c.itag,qb:b,Eh:f,maxWidth:Math.max(l.maxWidth||0,h.maxWidth||
0),maxHeight:Math.max(l.maxHeight||0,h.maxHeight||0),maxFramerate:e,kF:c.kF},qP(a,rP.BITRATE)&&(b.maxBitrateBps=c.maxBitrateBps),a.j.set(d,b)):a.j.set(d,h)};
hRa=function(a,b,c){var d,e=(null==(d=c.video)?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h=a.j.get(d);a:{var l=a.j.get(d),m=!!c.audio;if(l){if(m){var n=!1;break a}var p;if(!m&&(null==(n=c.video)?0:n.height)&&l.maxHeight&&l.maxHeight>=(null==(p=c.video)?void 0:p.height)){n=!1;break a}}n=!0}n&&(n=c.itag,b=h?h:{itag:n,qb:b,Eh:f},f?b.numChannels=c.audio.numChannels:(f=c.video,b.maxWidth=null==f?void 0:f.width,b.maxHeight=null==f?void 0:f.height,b.maxFramerate=e,qP(a,rP.BITRATE)&&(b.maxBitrateBps=8*c.sb),
b.kF=null==f?void 0:f.isHdr()),a.j.set(d,b))};
jR=function(){g.UE.call(this);this.items={}};
lR=function(){g.wN.apply(this,arguments)};
mR=function(){g.xN.apply(this,arguments)};
nR=function(a,b){var c=a.NI(b);yN.call(this,a,c||b);this.Id=a;c&&this.Id.exports.free(c.byteOffset)};
wUa=function(a,b,c){this.encryptedClientKey=b;this.G=c;this.j=new Uint8Array(a.buffer,0,16);this.C=new Uint8Array(a.buffer,16)};
xUa=function(a){a.B||(a.B=new lR(a.j));return a.B};
oR=function(a){try{return Jg(a)}catch(b){return null}};
yUa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?oR(b.clientKey):null;var c=b.encryptedClientKey?oR(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.wC)():null;a&&c&&d&&(this.j=new wUa(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=oR(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
pR=function(a){this.j=this.B=0;this.alpha=Math.exp(Math.log(.5)/a)};
qR=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.B=0;this.C=!1;this.mm=!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.G=zUa(this);this.D=c;this.K=d};
zUa=function(a){for(var b=Array(a.j),c=0;c<a.j;c++)b[c]=c;return b};
rR=function(a,b){if(!a.C&&0===a.B)return 0;a.mm&&(g.Ub(a.G,function(c,d){return a.values[c]-a.values[d]}),a.mm=!1);
return a.values[a.G[Math.round(b*((a.C?a.j:a.B)-1))]]||0};
AUa=function(a,b,c){g.I.call(this);this.policy=a;this.Sa=b;this.fd=c;this.Y=this.Ma=0;this.Z=-1;this.qa=this.C=0;this.Ga=!1;this.interruptions=[];this.j=[{stamp:0,net:0,max:0}];this.Ha=this.D=(0,g.wC)();this.K=new qR(4,1,.6,.4);this.ra=new qR(4,1,.6,.4);this.G=new qR(20,1,.5,.4);this.B=a.D?new pR(a.j):new qR(a.j,20,.5,.4);this.Ca=new qR(5,1,.25);this.N=new qR(30,1,.5);a=g.QB("yt-player-bandwidth")||{};b=this.policy.B;0<a.byterate&&(b=a.byterate,this.Ga=!0);this.B.Ri(this.policy.G,b);0<a.delay&&this.K.Ri(1,
Math.min(a.delay,2));0<a.stall&&this.G.Ri(1,a.stall);0<a.init&&(this.Ha=Math.min(a.init,this.Ha));a.interruptions&&(this.j=this.j.concat(a.interruptions),16<this.j.length&&this.j.pop());this.Z=(0,g.wC)();0<this.policy.K&&(this.La=new g.Iv(this.Va,this.policy.K,this),g.N(this,this.La),this.La.start())};
sR=function(a,b,c,d){a.B.Ri(void 0===d?b:d,c/b);a.D=(0,g.wC)()};
BUa=function(a){a.C||(a.C=(0,g.wC)());a.policy.Z&&(a.D=(0,g.wC)())};
CUa=function(a,b){if(a.C){var c=b-a.C;if(1E3<c){var d=a.interruptions;d.push(Math.ceil(c));d.sort(function(e,f){return f-e});
16<d.length&&d.pop()}a.qa+=c}a.C=b};
tR=function(a,b,c,d,e,f){f=void 0===f?!1:f;a.Ca.Ri(b,c/b);a.D=(0,g.wC)();e||a.N.Ri(1,b-d);f||(a.C=0);-1<a.Z&&3E4<(0,g.wC)()-a.Z&&DUa(a)};
uR=function(a,b,c){b=Math.max(b,2048);a.G.Ri(1,c/b)};
vR=function(a){a=a.K.eh()+a.ra.eh()||0;a=isNaN(a)?.5:a;return a=Math.min(a,5)};
EUa=function(a,b,c){isNaN(c)||(a.Y+=c);isNaN(b)||(a.Ma+=b)};
FUa=function(a){a=a.B.eh();return 0<a?a:1};
wR=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=FUa(a);d=1/((a.G.eh()||0)*a.policy.Y+1/d);var e=a.Ca.eh();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+vR(a);c=d*Math.min(1,c/(d*b));a.policy.C||(a=((rR(a.N,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
GUa=function(a){var b={delay:vR(a),stall:a.G.eh()||0,byterate:FUa(a),init:a.Ha},c=a.j[0];c.stamp=36E5*Math.round(a.D/36E5);c.net=Math.ceil(a.qa);c.max=a.interruptions[0]||0;b.interruptions=a.j;return b};
DUa=function(a){g.PB("yt-player-bandwidth",GUa(a),2592E3);a.Z=(0,g.wC)();a.Ga=!0};
xR=function(a){return 4E3<=(0,g.wC)()-a.D};
HUa=function(a,b){b.Ms=a.Y;b.qv=a.Ma;b.bandwidthEstimate=wR(a);b.j={ttr:(1E3*a.K.eh()).toFixed(),ttm:(1E3*a.ra.eh()).toFixed(),d:vR(a).toFixed(2),st:(1E9*(a.G.eh()||0)).toFixed(2),bw:a.B.eh().toFixed(0),abw:a.Ca.eh().toFixed(0),v50:rR(a.N,.5).toFixed(2),v92:rR(a.N,.92).toFixed(2),v96:rR(a.N,.96).toFixed(2),v98:rR(a.N,.98).toFixed(2)};b=b.j;b["int"]=a.interruptions.join(".");b.intDur=Math.ceil(a.qa);b.intHist=a.j.map(function(c){return c.stamp+"_"+c.net+"_"+c.max}).join(".")};
IUa=function(a){this.experiments=a;this.j=17;this.Y=g.xI(this.experiments,"html5_stall_factor")||1;this.B=13E4;this.G=.5;this.C=this.D=!1;this.K=g.xI(this.experiments,"html5_check_for_idle_network_interval_ms");this.N=this.experiments.fb("html5_trigger_loader_when_idle_network");this.Z=this.experiments.fb("html5_sabr_fetch_on_idle_network_preloaded_players")};
KUa=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.I.call(this);var c=this;this.values=a;this.Ir=b;this.B={};this.C=this.j=0;this.D=new g.Iv(function(){JUa(c)},1E4);
g.N(this,this.D)};
MUa=function(a,b){LUa(a,b);return a.values[b]&&a.Ir[b]?a.values[b]/Math.pow(2,a.j/a.Ir[b]):0};
LUa=function(a,b){a.values[b]||(b=FPa(),a.values=b.values||{},a.Ir=b.halfLives||{},a.B=b.values?Object.assign({},b.values):{})};
JUa=function(a){var b=FPa();if(b.values){b=b.values;for(var c={},d=g.u(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.B[e]&&(a.values[e]+=b[e]-a.B[e]),c[e]=MUa(a,e);a.B=c}b=a.Ir;c={};c.values=a.B;c.halfLives=b;g.PB("yt-player-memory",c,2592E3)};
ZUa=function(a,b,c,d,e){g.I.call(this);this.webPlayerContextConfig=b;this.Nl=d;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.yj=this.sf=this.gb=this.uj=this.userDisplayName=this.userDisplayImage=this.Pi="";this.j={};this.Nb={};this.controlsType="0";this.Jd=NaN;this.rb=!1;this.Sf=(0,g.wC)();this.Kb=0;this.Pl=this.hp=!1;this.pn=!0;this.preferGapless=this.Ll=this.Rf=this.C=this.Ml=this.Qf=!1;this.uh=[];this.Wl=!0;this.Tf=!1;a=a?g.jd(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);
b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);b&&b.preferGapless&&(this.preferGapless=b.preferGapless);this.experiments=new jUa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:rB("",a.forced_experiments)||void 0;this.cspNonce=(null==b?0:b.cspNonce)?b.cspNonce:rB("",a.csp_nonce);yCa=this.L("web_player_deprecated_uvr_killswitch");try{var f=document.location.toString()}catch(R){f=""}this.uf=f;this.ancestorOrigins=
(d=window.location.ancestorOrigins)?Array.from(d):[];this.D=oB(!1,b?b.isEmbed:a.is_embed);if(b&&b.device){if(d=b.device,d.androidOsExperience&&(this.j.caoe=""+d.androidOsExperience),d.brand&&(this.j.cbrand=d.brand),d.browser&&(this.j.cbr=d.browser),d.browserVersion&&(this.j.cbrver=d.browserVersion),d.cobaltReleaseVehicle&&(this.j.ccrv=""+d.cobaltReleaseVehicle),this.j.c=d.interfaceName||"WEB",this.j.cver=d.interfaceVersion||"html5",d.interfaceTheme&&(this.j.ctheme=d.interfaceTheme),this.j.cplayer=
d.interfacePlayerType||"UNIPLAYER",d.model&&(this.j.cmodel=d.model),d.network&&(this.j.cnetwork=d.network),d.os&&(this.j.cos=d.os),d.osVersion&&(this.j.cosver=d.osVersion),d.platform&&(this.j.cplatform=d.platform),f=hR(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),"all"===f||"once"===f)d.chipset&&(this.Nb.cchip=d.chipset),d.cobaltAppVersion&&(this.Nb.ccappver=d.cobaltAppVersion),d.firmwareVersion&&(this.Nb.cfrmver=d.firmwareVersion),d.deviceYear&&(this.Nb.crqyear=d.deviceYear)}else this.j.c=
a.c||"web",this.j.cver=a.cver||"html5",this.j.cplayer="UNIPLAYER";this.loaderUrl=b?this.D||NUa(this)&&b.loaderUrl?b.loaderUrl||"":this.uf:this.D||NUa(this)&&a.loaderUrl?rB("",a.loaderUrl):this.uf;this.D&&g.Ua("yt.embedded_player.embed_url",this.loaderUrl);this.N=YI(this.loaderUrl,OUa,PUa);d=this.loaderUrl;var h=void 0===h?!1:h;this.wp=XI(YI(d,QUa,null),d,h,"Trusted Ad Domain URL");this.Dc=oB(!1,a.privembed);this.protocol=0===this.uf.indexOf("http:")?"http":"https";this.Ha=ACa((b?b.customBaseYoutubeUrl:
a.BASE_YT_URL)||"")||ACa(this.uf)||this.protocol+"://www.youtube.com/";h=b?b.eventLabel:a.el;d="detailpage";"adunit"===h?d=this.D?"embedded":"detailpage":"embedded"===h||this.N?d=pB(d,h,RUa):h&&(d="embedded");this.La=d;hva();h=null;d=b?b.playerStyle:a.ps;f=g.Fb(SUa,d);!d||f&&!this.N||(h=d);this.playerStyle=h;this.qa=(this.K=g.Fb(SUa,this.playerStyle))&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.vp=!this.qa;this.Sa=oB(!1,a.disableplaybackui);this.disablePaidContentOverlay=oB(!1,
null==b?void 0:b.disablePaidContentOverlay);this.disableSeek=oB(!1,null==b?void 0:b.disableSeek);this.enableSpeedOptions=(null==b?void 0:b.enableSpeedOptions)||(UJ().defaultPlaybackRate?yR||g.mB||zR?g.bR&&hw("20")||g.WJ&&hw("4")||g.AR&&hw("11")||ara():!(g.AR&&!g.fB("chrome")||yR||g.fB("android")||g.fB("silk")):!1);this.jp=oB(!1,a.enable_faster_speeds);this.B=oB("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.Wa=cra()||nB();this.tp=this.L("mweb_allow_background_playback")?
!1:this.B&&!this.K;this.Va=sEa();this.cq=g.TUa;var l;this.Ql=!!(null==b?0:null==(l=b.embedsHostFlags)?0:l.optOutApiDeprecation);var m;this.kp=!!(null==b?0:null==(m=b.embedsHostFlags)?0:m.allowPfpImaIntegration);this.pp=this.L("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var n;b?void 0!==b.hideInfo&&(n=!b.hideInfo):n=a.showinfo;this.hn=g.BR(this)&&!this.Ql||oB(!CR(this)&&!DR(this)&&!this.K,n);this.Rl=b?!!b.mobileIphoneSupportsInlinePlayback:oB(!1,a.playsinline);l=this.B&&UUa&&
null!=ER&&0<ER&&2.3>=ER;m=b?b.useNativeControls:a.use_native_controls;this.Z=g.BR(this)&&this.B;n=this.B&&!this.Z;m=g.FR(this)||!l&&oB(n,m)?"3":"1";n=b?b.controlsType:a.controls;this.controlsType="0"!==n&&0!==n?m:"0";this.Jl=this.B;this.color=pB("red",b?b.progressBarColor:a.color,VUa);this.Sp="3"===this.controlsType;this.vc=!this.D;this.jn=(m=!this.vc&&!DR(this)&&!this.qa&&!this.K&&!CR(this))&&!this.Sp&&"1"===this.controlsType;this.Nd=g.GR(this)&&m&&"0"===this.controlsType&&!this.jn;this.Aq=this.bq=
l;this.ud=("3"===this.controlsType||this.B||oB(!1,a.use_media_volume))&&!this.Z;this.qn=kB&&!g.Oc(601)?!1:!0;this.qp=this.D||!1;this.Qc=DR(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=rB("",b?b.widgetReferrer:a.widget_referrer);var p;b?b.disableCastApi&&(p=!1):p=a.enablecastapi;p=!this.N||oB(!0,p);l=!0;b&&b.disableMdxCast&&(l=!1);this.Bj=this.L("enable_cast_for_web_unplugged")&&g.HR(this)&&l||this.L("enable_cast_on_music_web")&&g.cG(this)&&l||p&&l&&"1"===
this.controlsType&&!this.B&&(DR(this)||g.GR(this)||g.IR(this));this.rq=!!window.document.pictureInPictureEnabled||rEa();p=b?!!b.supportsAutoplayOverride:oB(!1,a.autoplayoverride);this.wi=!(this.B&&!g.BR(this))&&!g.fB("nintendo wiiu")||p;this.Oi=(b?!!b.enableMutedAutoplay:oB(!1,a.mutedautoplay))&&!1;p=(DR(this)||CR(this))&&"blazer"===this.playerStyle;this.Ck=b?!!b.disableFullscreen:!oB(!0,a.fs);l=g.tB(g.JR(this))&&g.BR(this);this.Hb=!this.Ck&&(p||g.xB())&&!l;this.Kl=this.L("uniplayer_block_pip")&&
(gB()&&hw(58)&&!nB()||MC);p=g.BR(this)&&!this.Ql;var q;b?void 0!==b.disableRelatedVideos&&(q=!b.disableRelatedVideos):q=a.rel;this.zd=p||oB(!this.K,q);this.Xl=oB(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.Y=nB()&&0<ER&&4.4>=ER?"_top":"_blank";this.Ig=g.IR(this);this.Ok=oB("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":q="bl";break;case "gmail":q="gm";break;case "gac":q="ga";break;case "books":q="gb";break;case "docs":case "flix":q=
"gd";break;case "duo":q="gu";break;case "google-live":q="gl";break;case "google-one":q="go";break;case "play":q="gp";break;case "chat":q="hc";break;case "hangouts-meet":q="hm";break;case "photos-edu":case "picasaweb":q="pw";break;default:q="yt"}this.ra=q;this.Ca=rB("",b?b.authorizedUserIndex:a.authuser);this.Sb=g.BR(this)&&(this.Dc||!Rqa()||this.Wa);var r;b?void 0!==b.disableWatchLater&&(r=!b.disableWatchLater):r=a.showwatchlater;this.ge=((q=!this.Sb)||!!this.Ca&&q)&&oB(!this.qa,this.N?r:void 0);
this.tf=b?b.isMobileDevice||!!b.disableKeyboardControls:oB(!1,a.disablekb);this.loop=oB(!1,a.loop);this.pageId=rB("",b?b.initialDelegatedSessionId:a.pageid);this.gq=oB(!0,a.canplaylive);this.Ab=oB(!1,a.livemonitor);this.disableSharing=oB(this.K,b?b.disableSharing:a.ss);(r=b&&this.L("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)?(q=r.split("x"),2!==q.length?r=null:(r=Number(q[0]),q=Number(q[1]),r=isNaN(r)||isNaN(q)||0>=r*q?null:new g.Ke(r,q))):
r=null;this.un=r;this.mute=b?!!b.startMuted:oB(!1,a.mute);this.storeUserVolume=!this.mute&&oB("0"!==this.controlsType,b?b.storeUserVolume:a.store_user_volume);r=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:pB(void 0,r,KR);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":rB("",a.cc_lang_pref);r=pB(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,KR);"3"===this.controlsType&&2===r&&(r=3);this.Jb=r;this.sj=b?b.hl||"en_US":rB("en_US",
a.hl);this.region=b?b.contentRegion||"US":rB("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":rB("en",a.host_language);this.ip=!this.Dc&&Math.random()<g.xI(this.experiments,"web_player_api_logging_fraction");this.bb=!this.Dc;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(null==b||!b.deviceIsAudioOnly);this.Jd=qB(this.Jd,a.ismb);this.vp?(r=a.vss_host||"s.youtube.com","s.youtube.com"===r&&(r=LR(this.Ha)||"www.youtube.com")):r="video.google.com";this.vn=r;WUa(this,a,!0);this.Ma=new jR;g.N(this,
this.Ma);q=b?b.innertubeApiKey:rB("",a.innertube_api_key);p=b?b.innertubeApiVersion:rB("",a.innertube_api_version);r=b?b.innertubeContextClientVersion:rB("",a.innertube_context_client_version);q=g.xA("INNERTUBE_API_KEY")||q;p=g.xA("INNERTUBE_API_VERSION")||p;l=g.xA("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");m=g.fR(this);n="number"===typeof this.j.c?Number(this.j.c):Object.keys(xMa).indexOf(this.j.c);this.Ik={innertubeApiKey:q,innertubeApiVersion:p,gK:l,kQ:m,gZ:n,innertubeContextClientVersion:g.xA("INNERTUBE_CONTEXT_CLIENT_VERSION")||
r,mQ:this.hostLanguage,lQ:this.region,hZ:g.xA("INNERTUBE_HOST_OVERRIDE")||"",iZ:!!g.xA("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),nQ:!!g.xA("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.Sl=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.G=new oUa(this.experiments,this.L("html5_force_hfr_support")?!0:HI(this)||Yqa()||Zqa()||XUa(this),g.WJ&&g.Oc(56)||g.bR&&g.Oc(54)||this.L("html5_force_vp9_subsample_encryption_support")||XUa(this));r=this.Jd;q=new IUa(this.experiments);g.II(this)&&
(q.D=!0,q.G=.1);r&&(q.B=r/8);q.C=480<=YO();this.schedule=new AUa(q,new iUa(this.experiments),e);g.N(this,this.schedule);var t;this.enableSafetyMode=null!=(t=null==b?void 0:b.initialEnableSafetyMode)?t:oB(!1,a.enable_safety_mode);e=this.Sa?!1:DR(this)&&"blazer"!==this.playerStyle;var v;b?null!=b.disableAutonav&&(v=!b.disableAutonav):v=a.allow_autonav;this.je=oB(e,!this.qa&&v);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:oB(!1,a.send_visitor_id_header);var w;"docs"===this.playerStyle&&(b?w=b.disableNativeContextMenu:
w=a.disable_native_context_menu);this.disableNativeContextMenu=oB(!1,w);this.mp=HI(this)&&this.L("enable_skip_intro_button");this.embedConfig=rB("",b?b.serializedEmbedConfig:a.embed_config);this.Ga=hra(a,g.BR(this));this.C="EMBEDDED_PLAYER_MODE_PFL"===this.Ga;this.embedsErrorLinks=!(null==b||!b.embedsErrorLinks);this.Dk=oB(!1,a.full_window);var A;this.eb=!(null==(A=this.webPlayerContextConfig)?0:A.chromeless);var C;this.livingRoomAppMode=pB("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode||
(null==b?void 0:null==(C=b.device)?void 0:C.livingRoomAppMode),YUa);var F;v=qB(NaN,null==b?void 0:null==(F=b.device)?void 0:F.deviceYear);isNaN(v)||(this.deviceYear=v);this.transparentBackground=b?!!b.transparentBackground:oB(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:oB(!1,a.show_miniplayer_button);var H;g.BR(this)&&!(null==b?0:null==(H=b.embedsHostFlags)?0:H.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=b?!!b.externalFullscreen:
oB(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:oB(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;var M;this.pn=null!=(M=a.show_loop_video_toggle)?M:!0;this.Ip=1E-4>Math.random();this.Kk=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new yUa(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.playerCanaryStage=null==b?void 0:
b.canaryStage;this.Pf=new KUa;g.N(this,this.Pf);this.Ml=oB(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.xA("DATASYNC_ID");this.Ol=g.xA("LOGGED_IN",!1);this.xj=(null==b?void 0:b.allowWoffleManagement)||!1;this.Nk=this.Mk=Infinity;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;this.L("html5_high_res_logging_always")?this.Rf=!0:this.Rf=100*Math.random()<g.xI(this.experiments,"html5_high_res_logging_percent");var L;this.Ll=!!(null==b?0:null==(L=b.embedsHostFlags)?0:
L.allowRcat);this.Gj=!g.HR(this)&&!MR(this)};
g.JR=function(a){var b,c;if(!(null==(b=a.webPlayerContextConfig)?0:null==(c=b.embedsHostFlags)?0:c.enableLiteUx)||a.Dc||a.K||a.C||"EMBEDDED_PLAYER_MODE_PFP"===a.Ga)return"EMBEDDED_PLAYER_LITE_MODE_NONE";a=g.xI(a.experiments,"embeds_web_lite_mode");return void 0===a?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":0<=a&&a<$Ua.length?$Ua[a]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
WUa=function(a,b,c){c=void 0===c?!1:c;a.sf=rB(a.sf,b.video_id);a.gb=rB(a.gb,b.eventid);a.gb&&(LD=a.gb);for(var d=[],e=g.u(Object.keys(aVa)),f=e.next();!f.done;f=e.next()){f=aVa[f.value];var h=b[f];null!=h&&(h!==a.j[f]&&d.push(f),a.j[f]=h)}!c&&0<d.length&&a.Ip&&(d.sort(),g.BE(new g.XB("Player client parameters changed after startup",d)));a.userAge=qB(a.userAge,b.user_age);a.Pi=rB(a.Pi,b.user_display_email);a.userDisplayImage=rB(a.userDisplayImage,b.user_display_image);g.$I(a.userDisplayImage)||(a.userDisplayImage=
"");a.userDisplayName=rB(a.userDisplayName,b.user_display_name);a.uj=rB(a.uj,b.user_gender);a.csiPageType=rB(a.csiPageType,b.csi_page_type);a.csiServiceName=rB(a.csiServiceName,b.csi_service_name);a.Ok=oB(a.Ok,b.enablecsi);a.pageId=rB(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.Uf=b.living_room_session_po_token.toString())};
bVa=function(a,b){return!a.K&&gB()&&hw(55)&&"3"===a.controlsType&&!b};
g.NR=function(a){a=LR(a.Ha);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
OR=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
PR=function(a){return DR(a)&&!g.HR(a)};
g.FR=function(a){return a.L("html5_local_playsinline")?kB&&!g.Oc(602)&&!("playsInline"in UJ()):kB&&!a.Rl||g.fB("nintendo wiiu")?!0:!1};
g.fR=function(a){return a.j.c};
g.II=function(a){return/^TVHTML5/.test(g.fR(a))};
NUa=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===g.fR(a)};
XUa=function(a){return"CHROMECAST ULTRA/STEAK"===a.j.cmodel||"CHROMECAST/STEAK"===a.j.cmodel};
g.QR=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
HI=function(a){return/web/i.test(g.fR(a))};
g.RR=function(a){return"WEB"===g.fR(a).toUpperCase()};
MR=function(a){return"WEB_KIDS"===g.fR(a)};
g.HR=function(a){return"WEB_UNPLUGGED"===g.fR(a)};
SR=function(a){return"TVHTML5_UNPLUGGED"===g.fR(a)};
g.GI=function(a){return g.HR(a)||"TV_UNPLUGGED_CAST"===g.fR(a)||SR(a)};
g.cG=function(a){return"WEB_REMIX"===g.fR(a)};
g.TR=function(a){return"WEB_EMBEDDED_PLAYER"===g.fR(a)};
g.VR=function(a){return(a.deviceIsAudioOnly||!g.WJ||MC||"3"===a.controlsType?!1:g.mB?a.D&&g.Oc(51):!0)||(a.deviceIsAudioOnly||!g.bR||MC||"3"===a.controlsType?!1:g.mB?a.D&&g.Oc(48):g.Oc(38))||(a.deviceIsAudioOnly||!g.AR||MC||"3"===a.controlsType?!1:g.mB?a.D&&g.Oc(37):g.Oc(27))||!a.deviceIsAudioOnly&&g.UR&&!bra()&&g.Oc(11)||!a.deviceIsAudioOnly&&g.rC&&g.Oc("604.4")};
cVa=function(a){if(g.GR(a)&&UUa)return!1;if(g.bR){if(!g.Oc(47)||!g.Oc(52)&&g.Oc(51))return!1}else if(g.rC)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
WR=function(a){return!a.L("html5_disable_media_element_loop_on_tv")||!g.II(a)};
eVa=function(a,b){return a.enabledEngageTypes.has(b.toString())||dVa.includes(b)};
DR=function(a){return"detailpage"===a.La};
g.GR=function(a){return"embedded"===a.La};
YR=function(a){return"leanback"===a.La};
CR=function(a){return"adunit"===a.La||"gvn"===a.playerStyle};
g.IR=function(a){return"profilepage"===a.La};
g.BR=function(a){return a.D&&g.GR(a)&&!CR(a)&&!a.K};
fVa=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.BE(new g.XB("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.ZR=function(a){var b=g.NR(a);gVa.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
g.$R=function(a,b){b=void 0===b?"":b;if(a.L("enable_tectonic_player_oauth_callback")&&a.Nl){var c=new IK,d,e=a.Nl();e.signedOut?d="":e.token?d=e.token:e.pendingResult.then(function(f){e.signedOut?c.resolve(""):c.resolve(f.token)},function(f){g.BE(new g.XB("b189348328_oauth_callback_failed",{error:f}));
c.resolve(b)});
return void 0!==d?aB(d):new ZA(c)}return aB(b)};
LR=function(a){var b=g.wn(a);return(a=Number(g.vn(4,a))||null)?b+":"+a:b};
aS=function(a){this.j=a};
bS=function(a,b,c,d){if(c)return $A();c={};var e=UJ();b=g.u(b);for(var f=b.next();!f.done;f=b.next())if(f=f.value,a.canPlayType(e,f.getInfo().mimeType)||d){var h=f.j.video.quality;if(!c[h]||c[h].getInfo().Le())c[h]=f}a=[];c.auto&&a.push(c.auto);d=g.u(bK);for(e=d.next();!e.done;e=d.next())(e=c[e.value])&&a.push(e);return a.length?aB(a):$A()};
hVa=function(a,b,c,d,e){this.C=a;this.B=b;this.G=c;this.cpn=d;this.K=e;this.D=0;this.j=""};
iVa=function(a,b){a.C.some(function(c){var d;return(null==(d=c.qc)?void 0:d.getId())===b});
a.j=b};
jVa=function(a,b,c){a.cpn&&(b=g.to(b,{cpn:a.cpn}));c&&(b=g.to(b,{paired:c}));return b};
kVa=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
lVa=function(a){for(var b=[],c=[],d=g.u(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.D?b.push(e):c.push(e);b.sort(function(f,h){return h.bitrate-f.bitrate});
c.sort(function(f,h){return f.bitrate-h.bitrate});
a.B=b.concat(c)};
mVa=function(a){this.itag=a.itag;this.url=a.url;this.codecs=a.codecs;this.width=a.width;this.height=a.height;this.fps=a.fps;this.bitrate=a.bitrate;var b;this.B=(null==(b=a.audioItag)?void 0:b.split(","))||[];this.AC=a.AC;this.le=a.le||"";this.qc=a.qc;this.audioChannels=a.audioChannels;this.j=""};
nVa=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.u(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.GQ(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new mVa({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,AC:n?l[n]:void 0,le:f.drm_families,qc:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
cS=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.resource=null};
oVa=function(a,b){if(!(MC||jB()||iB()))return null;a=nVa(b,a.L("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.u(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.u(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.qc&&(f=h.qc.getId(),c[f]||(h=new g.aP(f,h.qc),c[f]=h,b.push(h)))}}return 0<b.length?b:null};
tVa=function(a,b,c,d,e,f,h){if(!(MC||jB()||iB()))return $A();var l={},m=pVa(c),n=nVa(c,a.L("html5_filter_fmp4_in_hls"),a.G.K,l);if(!n)return h({noplst:1}),$A();qVa(n);c={};var p=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var r=[],t=[],v=null,w="";d=d&&d.match(/hls_timedtext_playlist/)?new mVa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,qc:new g.GQ("English","en",!1)}):null;for(var A=g.u(Object.keys(n)),C=A.next();!C.done;C=A.next())if(C=C.value,!a.L("html5_disable_drm_hfr_1080")||
"383"!==C&&"373"!==C){C=g.u(n[C]);for(var F=C.next();!F.done;F=C.next())if(F=F.value,F.width){for(var H=g.u(F.B),M=H.next();!M.done;M=H.next())if(M=M.value,n[M]){F.j=M;break}F.j||(F.j=rVa(n,F));if(H=n[F.j])if(c.push(F),"fairplay"===F.le&&(q=p),M="","PQ"===F.AC?M="smpte2084":"HLG"===F.AC&&(M="arib-std-b67"),M&&(w=M),t.push(sVa(H,[F],d,f,F.itag,F.width,F.height,F.fps,m,void 0,void 0,q,M)),!v||F.width*F.height*F.fps>v.width*v.height*v.fps)v=F}else r.push(F)}else l[C]="disdrmhfr";t.reduce(function(L,
R){return R.getInfo().isEncrypted()&&L},!0)&&(q=p);
e=Math.max(e,0);p=v||{};n=void 0===p.fps?0:p.fps;v=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;A=a.L("html5_native_audio_track_switching");t.push(sVa(r,c,d,f,"93",v,p,n,m,"auto",e,q,w,A));Object.entries(l).length&&h(l);return bS(a.G,t,bVa(a,b),!1)};
sVa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){for(var v=0,w="",A=g.u(a),C=A.next();!C.done;C=A.next())C=C.value,w||(w=C.itag),C.audioChannels&&C.audioChannels>v&&(v=C.audioChannels,w=C.itag);e=new eK(e,"application/x-mpegURL",{audio:new ZJ(0,v),video:new aK(f,h,l,null,void 0,n,void 0,r),le:q,l_:w});a=new hVa(a,b,c?[c]:[],d,!!t);a.D=p?p:1369843;return new cS(e,a,m)};
pVa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN};
rVa=function(a,b){for(var c=g.u(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.le===b.le&&!e.audioChannels)return d}return""};
qVa=function(a){for(var b=new Set,c=g.u(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.u(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.u(c);for(c=b.next();!c.done;c=b.next())delete a[c.value]};
dS=function(a,b){this.j=a;this.B=b};
uVa=function(a,b,c,d){var e=[];c=g.u(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.sP(h.url,!0);if(h.s){var l=f,m=h.sp,n=xPa(decodeURIComponent(h.s));l.set(m,encodeURIComponent(n))}l=g.u(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=nK(h.type,h.quality,h.itag,h.width,h.height);e.push(new dS(h,f))}}return bS(a.G,e,bVa(a,b),!1)};
eS=function(a,b){this.j=a;this.B=b};
vVa=function(a,b,c){var d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=nK(e.type,"medium","0");d.push(new eS(f,e.url))}return bS(a.G,d,bVa(a,b),!1)};
wVa=function(a,b){var c=[],d=nK(b.type,"auto",b.itag);c.push(new eS(d,b.url));return bS(a.G,c,!1,!0)};
yVa=function(a){return a&&xVa[a]?xVa[a]:null};
zVa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.Xo=oR(a.ustreamerConfig)||void 0)};
AVa=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.j0=new zVa(b)};
g.fS=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=void 0===a.name?null:a.name;this.displayName=a.displayName||null;this.id=a.id||null;this.j=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null;this.xtags=a.xtags||"";this.captionId=a.captionId||""};
g.hS=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.gS(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.iS=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.BVa=function(a){var b=a.vssId;a.translationLanguage&&b&&(b="t"+b+"."+g.iS(a));return b};
g.gS=function(a){var b=[];if(a.displayName)b.push(a.displayName);else{var c=a.languageName||"";b.push(c);"asr"===a.kind&&-1===c.indexOf("(")&&b.push(" (Automatic Captions)");a.name&&b.push(" - "+a.name)}a.translationLanguage&&b.push(" >> "+a.translationLanguage.languageName);return b.join("")};
FVa=function(a,b,c,d){a||(a=b&&CVa.hasOwnProperty(b)&&DVa.hasOwnProperty(b)?DVa[b]+"_"+CVa[b]:void 0);b=a;if(!b)return null;a=b.match(EVa);if(!a||5!==a.length)return null;if(a=b.match(EVa)){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};
jS=function(a,b){for(var c={},d=g.u(Object.keys(GVa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.$I(f)&&(c[GVa[e]]=f)}return c};
kS=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url});
a.sort(function(l,m){return l.width-m.width||l.height-m.height});
for(var c=g.u(Object.keys(HVa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=HVa[e];for(var f=g.u(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=IVa(h.url);g.$I(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=IVa(a.url),g.$I(a)&&(b["maxresdefault.jpg"]=a));return b};
IVa=function(a){return a.startsWith("//")?"https:"+a:a};
lS=function(a){return a&&a.baseUrl||""};
mS=function(a){a=g.GA(a);for(var b=g.u(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a};
JVa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.er=b)};
MVa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.V(h,KVa);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.V(h,LVa))return Object.assign({is_yto_interstitial:!0},FA(h))});
d=g.u(d);for(var e=d.next();!e.done;e=d.next())switch(e=e.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:e,Vo:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Vo: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,
Vo:0===f?5:7})}}};
NVa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
OVa=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)};
PVa=function(a,b){null!=b?(a.Kp=b,a.If=!0):(a.Kp="",a.If=!1)};
nS=function(a,b){this.type=a||"";this.id=b||""};
g.QVa=function(a){return new nS(a.substr(0,2),a.substr(2))};
g.oS=function(a,b){this.Da=a;this.author="";this.oE=null;this.playlistLength=0;this.j=this.sessionData=null;this.Z={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=DA(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.Z=jS(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new nS("UU","PLAYER_"+c)).toString();break;default:if(a=
b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.QVa(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.pS=function(a,b){this.Da=a;this.gt=this.author="";this.oE=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.tx=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.gt=b.gt||"";if(a=b.endscreen_autoplay_session_data)this.oE=DA(a,"&");this.pE=b.pE;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.tx=b.tx||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=DA(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=jS(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
RVa=function(a){var b,c,d=null==(b=a.getWatchNextResponse())?void 0:null==(c=b.contents)?void 0:c.twoColumnWatchNextResults,e,f,h,l,m;a=null==(e=a.getWatchNextResponse())?void 0:null==(f=e.playerOverlays)?void 0:null==(h=f.playerOverlayRenderer)?void 0:null==(l=h.endScreen)?void 0:null==(m=l.watchNextEndScreenRenderer)?void 0:m.results;if(!a){var n,p;a=null==d?void 0:null==(n=d.endScreen)?void 0:null==(p=n.endScreen)?void 0:p.results}return a};
g.UVa=function(a){var b,c,d;a=g.V(null==(b=a.getWatchNextResponse())?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,SVa);return g.V(null==a?void 0:a.playerBar,TVa)};
VVa=function(a){this.j=a.playback_progress_0s_url;this.C=a.playback_progress_2s_url;this.B=a.playback_progress_10s_url};
WVa=function(){if(void 0===qS){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.tw(g.YB()+"::yt-player"))){qS=new eG(a);break a}qS=void 0}}return qS};
g.rS=function(){var a=WVa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
g.XVa=function(a){var b=WVa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
g.sS=function(a){return g.rS()[a]||0};
g.tS=function(a,b){var c=g.rS();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.XVa(c))};
g.uS=function(a){return g.G(function(b){return b.return(g.KC(YVa(),a))})};
cWa=function(a,b,c,d,e,f,h,l){var m,n,p,q,r,t;return g.G(function(v){switch(v.j){case 1:return m=g.sS(a),4===m?v.return(4):g.z(v,g.PC(),2);case 2:n=v.B;if(!n)throw g.sC("wiac");if(!l||void 0===h){v.Ia(3);break}return g.z(v,ZVa(l,h),4);case 4:h=v.B;case 3:return p=c.lastModified||"0",g.z(v,g.uS(n),5);case 5:return q=v.B,g.Ba(v,6),vS++,g.z(v,g.zC(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Pb:!0},function(w){if(void 0!==f&&void 0!==h){var A=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10,
"0");A=g.AC(w.objectStore("media"),h,A)}else A=g.uC.resolve(void 0);var C=$Va(a,b.Ag()),F=$Va(a,!b.Ag()),H={fmts:aWa(d),format:c||{}};C=g.AC(w.objectStore("index"),H,C);var M=-1===d.downloadedEndTime;H=M?w.objectStore("index").get(F):g.uC.resolve(void 0);var L={fmts:"music",format:{}};w=M&&e&&!b.Ag()?g.AC(w.objectStore("index"),L,F):g.uC.resolve(void 0);return g.uC.all([w,H,A,C]).then(function(R){R=g.u(R);R.next();R=R.next().value;vS--;var ba=g.sS(a);if(4!==ba&&M&&e||void 0!==R&&g.bWa(R.fmts))ba=
1,g.tS(a,ba);return ba})}),8);
case 8:return v.return(v.B);case 6:r=g.Da(v);vS--;t=g.sS(a);if(4===t)return v.return(t);g.tS(a,4);throw r;}})};
g.dWa=function(a){var b,c;return g.G(function(d){if(1==d.j)return g.z(d,g.PC(),2);if(3!=d.j){b=d.B;if(!b)throw g.sC("ri");return g.z(d,g.uS(b),3)}c=d.B;return d.return(g.zC(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:{}})})}))})};
fWa=function(a,b,c,d,e){var f,h,l;return g.G(function(m){if(1==m.j)return g.z(m,g.PC(),2);if(3!=m.j){f=m.B;if(!f)throw g.sC("rc");return g.z(m,g.uS(f),3)}h=m.B;l=g.zC(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)});
return e?m.return(l.then(function(n){if(void 0===n)throw Error("No data from indexDb");return eWa(e,n)}).catch(function(n){throw new g.XB("Error while reading chunk: "+n.name+", "+n.message);
})):m.return(l)})};
g.bWa=function(a){return a?"music"===a?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1};
$Va=function(a,b){return""+a+"|"+(b?"v":"a")};
aWa=function(a){var b={};return EA((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
hWa=function(a){var b={},c={};a=g.u(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.gWa)?(d=Number(f.pop()),isNaN(d)?c[e]="?":(f=f.join("|"),(e=b[f])?(f=e[e.length-1],d===f.end+1?f.end=d:e.push({start:d,end:d})):b[f]=[{start:d,end:d}])):c[e]="?"}a=g.u(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(h){return h.start+"-"+h.end}).join(",");
return c};
wS=function(a){g.UE.call(this);this.j=null;this.C=new ww;this.j=null;this.K=new Set;this.crossOrigin=a||""};
iWa=function(a,b,c){for(c=xS(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(yS(d,b))&&(d=g.zS(d,b)))return d;c--}return g.zS(a.levels[0],b)};
kWa=function(a,b,c){c=xS(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=yS(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.K.has(h)||(d.K.add(h),d.C.enqueue(f,{HZ:f,k_:e}))}jWa(a)};
jWa=function(a){if(!a.j&&!a.C.isEmpty()){var b=a.C.remove();a.j=lWa(a,b)}};
lWa=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.HZ].Ke(b.k_);c.onload=function(){var d=b.HZ,e=b.k_;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);jWa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.wJ()-1);e=[e,d];a.publish("l",e[0],e[1])};
return c};
g.AS=function(a,b,c,d){this.level=a;this.D=b;this.loaded=new Set;this.level=a;this.D=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.frameCount=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.j=Math.floor(Number(a[5]));this.C=a[6];this.signature=a[7];this.videoLength=d};
yS=function(a,b){return Math.floor(b/(a.columns*a.rows))};
g.zS=function(a,b){b>=a.oN()&&a.cz();var c=yS(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.cz()+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.Ke(c),column:b,columns:h,row:e,rows:d,NF:a.width*h,Bx:a.height*d}};
BS=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;wS.call(this,c);this.isLive=d;this.N=!!e;this.levels=this.B(a,b);this.D=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
mWa=function(a,b,c){return(a=a.levels[b])?a.gI(c):-1};
xS=function(a,b){var c=a.D.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.D.set(b,d),d;a.D.set(b,c-1);return c-1};
nWa=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.AS.call(this,a,b,c,0);this.B=null;this.G=d?2:0};
CS=function(a,b,c,d){BS.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].BV(c)};
oWa=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.to(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.ES=function(a,b){g.UE.call(this);this.Da=a;this.adModule=!1;this.adaptiveFormats="";this.mW=this.Ev=this.adQueryId=this.Dv=null;this.LC={start:NaN,end:NaN};this.ariaLabel="";this.cueRanges=this.le=null;this.TC=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.My=void 0;this.Nk=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Va="";this.QC=this.Fv=!1;this.mU=null;this.wi=this.Gj=this.gq=this.tF=
!1;this.D=null;this.QW=this.Kk=!1;this.Qf=NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=Infinity;this.r_=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.Ml=!1;this.sD=this.cycToken=null;this.author="";this.Ck=0;this.pn=!1;this.LH=null;this.zN=[];this.Ap=this.uD=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.Dc=this.Nd="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=
this.endSeconds=this.Hb=0;this.Sl=this.Wa=this.B=null;this.AD="";this.loading=!1;this.Jd=this.hn=0;this.oW=this.pipable=this.Eq=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.isLiveHeadPlayable=this.isLivePlayback=this.Ab=this.isPrivate=this.isListed=this.GD=this.Ig=this.mutedAutoplay=this.xl=!1;this.CF="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.ID=this.eb=this.Yd=!1;this.latencyClass="UNKNOWN";this.N0=this.jU=this.FD=this.qW=this.wD=this.enablePreroll=
this.u3=this.enableServerStitchedDai=this.Hf=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.Sb=0;this.reloadReason="";this.xE=this.lU=this.Oi=!1;this.keywords={};this.Jb="";this.jp=0;this.MA=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.Kl=null;this.Py=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.l1=this.paygated=!1;this.Km=[];this.jn=!1;this.Ga=[];this.oi=null;this.rW=this.racyCheckOk=
!1;this.NV={};this.isProximaLatencyEligible=!1;this.SG=0;this.C=null;this.autonavState=1;this.LW=null;this.shortDescription="";this.ra=this.cX=!1;this.zj=this.Kb=this.startSeconds=0;this.NA=this.yY=this.dB=DS;this.Gv=this.suggestions=null;this.Qy=this.Bv=void 0;this.isExternallyHostedPodcast=!1;this.Rl=null;this.ZC=!1;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.Sv=void 0;this.je=[];this.Dk=[];this.hlsFormats=this.Tf="";this.jz=this.Yz=this.Ik=this.ud=this.gb=this.tp=
this.iz=null;this.fn="vvt";this.Pi=!1;this.BN=null;this.PX="";this.Aq=NaN;this.wv=this.uC=this.cq=this.PB=this.MB=this.Wl=this.bq=this.EC=this.rq=this.DC="";this.Xl=null;this.pW=!1;this.N={};this.clipStart=0;this.clipEnd=Infinity;this.H1=!1;this.heartbeatToken="";this.J2=this.j2=NaN;this.Pf=this.ip=this.sj=this.s3=this.n3=!1;this.Ol=!0;this.Z={};this.captionTracks=[];this.WC=[];this.VY=0;this.YC=[];this.Iv=[];this.Hv=!1;this.rD={};this.Mk=new g.aP("und",new g.GQ("Default","und",!0));this.uF=0;this.K=
null;this.mp=[];this.zD=!1;this.nB=this.zd="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.Ma=this.SF=this.BD=this.playerResponse=this.vZ=this.mz=this.un=this.Bi=this.yD=this.NC=this.JC=null;this.Uv=!1;this.qa=null;this.isInlinePlaybackNoAd=this.Ok=this.vD=this.useCobaltWidevine=this.DW=this.HA=!1;this.IZ=!0;this.uf=this.uj=NaN;this.defraggedFromSubfragments=this.dF=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.sabrContextUpdates=new Map;this.zz="";this.i_=
!1;this.gatewayExperimentGroup="";this.NH=this.AN=this.Bj=!1;this.interstitials=[];this.If=this.HD=!1;this.Kp="";this.allowImaMonetization=!1;this.sU="";this.VC=!1;this.uh="";this.pp=[];this.zG=[];this.md="";this.vN=this.Y=this.r3=!1;this.Uf=0;this.Sp="";this.MH=this.yH=this.DD=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.wp=!1;this.Ql=this.ge=!0;this.errorDetail=this.userGenderAge="";this.tN=this.uN=this.getSharePanelCommand=
this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Hn=this.errorReason=this.errorCode=null;this.Rv=this.Jv="";this.qn=!1;this.Oy=[];this.vc=this.bb=this.Nb=this.Ih=this.cf=0;this.fetchType=null;this.OV=!0;this.transitionEndpointAtEndOfStream=void 0;this.UC=this.bX=-1;this.Pl=this.Sf=!1;this.sf=null;this.Sa="";this.vn=!1;this.watchUrl=null;this.kz=[];this.visibleOnLoadKeys=[];this.iW=[];this.inlineMetricEnabled=this.Ll=
!1;this.embedsRctn=this.embedsRct="";this.CD=NaN;this.LV=(0,g.wC)();this.zB=this.Ip=0;this.Xo=null;this.Rf=0;this.gW=this.xN=this.JD=!1;this.kW=0;this.kp={};this.Sf=this.L("web_new_autonav_countdown");this.Pl=this.L("web_new_big_thumbnail_endscreen");pWa(this,b);this.Tv=new VQa;g.N(this,this.Tv)};
g.HS=function(a,b,c){b&&b.cpn&&g.BE(new g.XB("CPN provided in VideoData update",{Rqb:b.cpn,Mg:a.clientPlaybackNonce,K9:c}));c?(sB(b),pWa(a,b),FS(a)&&GS(a)):(b=b||{},qWa(a,b),rWa(a,b),sWa(a,b),a.publish("dataupdated"))};
sWa=function(a,b){a.fflags=rB(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Va=aJ(c));a.Fv=oB(a.Fv,b.iv_ads_only);a.QC=oB(a.QC,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.e$=c;a.isPharma=oB(a.isPharma,b.is_pharma);a.author=rB(a.author,b.author);a.Nd=tWa(b.ttsurl)||a.Nd;a.pn=oB(a.pn,b.cc_asr);a.Dc=rB(a.Dc,b.channel_path);if(c=b.profile_picture)a.profilePicture=rB(a.profilePicture,c);a.videoCountText=rB(a.videoCountText,b.video_count_text);a.autonavState=pB(a.autonavState,b.autonav_state,
uWa);if(a.L("html5_enable_ssap_entity_id")){var d;c=!!b.cotn||!(null==(d=a.playerResponse)||!d.cotn);d=g.xI(a.Da.experiments,"html5_entity_id_simplified_preferred_record_size");a.playerResponse&&!c&&(a.clientPlaybackNonce=vWa(a,a.playerResponse,d)||a.clientPlaybackNonce);a.clientPlaybackNonce||(b.cpn&&a.QB("ssei","uhdc"),a.clientPlaybackNonce=rB(a.clientPlaybackNonce,b.cpn))}else a.clientPlaybackNonce=rB(a.clientPlaybackNonce,b.cpn);a.subscribed=oB(a.subscribed,b.subscribed);a.rawViewCount=qB(a.rawViewCount,
b.view_count);a.shortViewCount=rB(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=rB(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=rB(a.lengthText||"",b.lengthText);a.tx=rB(a.tx||"",b.tx);a.gt=rB(a.gt||"",b.gt);a.title=rB(a.title,b.title);a.subtitle=rB(a.subtitle,b.subtitle);a.expandedTitle=rB(a.expandedTitle,b.expanded_title);a.expandedSubtitle=rB(a.expandedSubtitle,b.expanded_subtitle);a.ariaLabel=rB(a.ariaLabel,b.aria_label);a.ypcPreview=rB(a.ypcPreview,b.ypc_preview);
a.CN=rB(a.CN,b.ypc_origin);a.Pi=oB(a.Pi,b.ypc_is_premiere_trailer);a.Sp=rB(a.Sp,b.ypc_clickwrap_message);a.paygated=oB(a.paygated,b.paygated);a.pW=oB(a.pW,b.requires_purchase);a.showShareButton=!oB(!a.showShareButton,b.ss);a.ge=oB(a.ge,b.showwatchlater);a.Ql=oB(a.Ql,b.shownotifybutton);a.wp=oB(a.wp,b.copy_share);if(d=b.el)a.eventLabel=d;if(d=b.keywords)a.keywords=wWa(d.split(","));if(d=b.rvs)a.suggestions=nqa(d).map(function(e){return e.playlist||e.list||e.api?new g.oS(a.Da,e):new g.pS(a.Da,e)});
a.contentCheckOk=oB(a.contentCheckOk,b.cco);a.racyCheckOk=oB(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=oB(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=rB(a.oauthToken,b.oauth_token);a.Jb=rB(a.Jb,b.kpt);a.visitorData=rB(a.visitorData,b.visitor_data);if(d=b.session_data)a.sessionData=DA(d,"&");a.Wv=rB(a.Wv,b.endscreen_ad_tracking_data);a.FX=oB(a.FX,b.wait_for_vast_info_cards_xml);a.XC=oB(a.XC,b.suppress_creator_endscreen);a.kU=oB(a.kU,b.is_trueview_action);a.zX=rB(a.zX,b.tracking_list);
a.Jv=rB(a.Jv,b.clip);a.Rv=rB(a.Rv,b.clipt);xWa(a,b)};
pWa=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.Hn=f);a.L("html5_enable_ssap_entity_id")||a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.ND(16));a.Ab=oB(a.Da.Ab,b.livemonitor);qWa(a,b);var h=b.raw_player_response;if(h)a.SF=h;else{var l=b.player_response;l&&(h=JSON.parse(l))}if(a.L("html5_enable_ssap_entity_id")){var m=
b.cached_load;m&&(a.Ap=oB(a.Ap,m));if(!a.clientPlaybackNonce){var n=b.cpn;n?(a.QB("ssei","shdc"),a.clientPlaybackNonce=n):a.clientPlaybackNonce=g.ND(16)}}h&&(a.playerResponse=h);if(a.playerResponse){var p=a.playerResponse.annotations;if(p)for(var q=g.u(p),r=q.next();!r.done;r=q.next()){var t=r.value.playerAnnotationsUrlsRenderer;if(t){t.adsOnly&&(a.Fv=!0);t.allowInPlaceSwitch&&(a.QC=!0);var v=t.loadPolicy;v&&(a.annotationsLoadPolicy=yWa[v]);var w=t.invideoUrl;w&&(a.Va=aJ(w));a.tF=!0;break}}var A=
a.playerResponse.attestation;A&&JVa(a,A);var C=a.playerResponse.cotn;C&&(a.cotn=C);var F=a.playerResponse.heartbeatParams;if(F){zWa(a)&&(a.H1=!0);var H=F.heartbeatToken;H&&(a.drmSessionId=F.drmSessionId||"",a.heartbeatToken=H,a.j2=Number(F.intervalMilliseconds),a.J2=Number(F.maxRetries),a.n3=!!F.softFailOnError,a.s3=!!F.useInnertubeHeartbeatsForDrm,a.gq=!0);a.heartbeatServerData=F.heartbeatServerData;var M;a.Ml=!(null==(M=F.heartbeatAttestationConfig)||!M.requiresAttestation)}var L=a.playerResponse.messages;
L&&NVa(a,L);var R=a.playerResponse.overlay;if(R){var ba=R.playerControlsOverlayRenderer;if(ba)if(PVa(a,ba.controlBgHtml),ba.mutedAutoplay){var ma=g.V(ba.mutedAutoplay,AWa);if(ma&&ma.endScreen){var na=g.V(ma.endScreen,BWa);na&&na.text&&(a.sU=g.eF(na.text))}}else a.mutedAutoplay=!1}var ia=a.playerResponse.playabilityStatus;if(ia){var sa=ia.backgroundability;sa&&sa.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var aa,U;if(null==(aa=ia.offlineability)?0:null==(U=aa.offlineabilityRenderer)?
0:U.offlineable)a.offlineable=!0;var Ka=ia.contextParams;Ka&&(a.contextParams=Ka);var x=ia.pictureInPicture;x&&x.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);ia.playableInEmbed&&(a.allowEmbed=!0);var ca=ia.ypcClickwrap;if(ca){var Ma=ca.playerLegacyDesktopYpcClickwrapRenderer,$a=ca.ypcRentalActivationRenderer;if(Ma)a.Sp=Ma.durationMessage||"",a.wi=!0;else if($a){var kb=$a.durationMessage;a.Sp=kb?g.eF(kb):"";a.wi=!0}}var Qa=ia.errorScreen;if(Qa){if(Qa.playerLegacyDesktopYpcTrailerRenderer){var Va=
Qa.playerLegacyDesktopYpcTrailerRenderer;a.wv=Va.trailerVideoId||"";var jb=Qa.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var rb=jb&&jb.ypcTrailerRenderer}else if(Qa.playerLegacyDesktopYpcOfferRenderer)Va=Qa.playerLegacyDesktopYpcOfferRenderer;else if(Qa.ypcTrailerRenderer){rb=Qa.ypcTrailerRenderer;var pb=rb.fullVideoMessage;a.bq=pb?g.eF(pb):"";var B,D;a.wv=(null==(B=g.V(rb,CWa))?void 0:null==(D=B.videoDetails)?void 0:D.videoId)||""}Va&&(a.cq=Va.itemTitle||"",Va.itemUrl&&(a.uC=Va.itemUrl),Va.itemBuyUrl&&
(a.MB=Va.itemBuyUrl),a.PB=Va.itemThumbnail||"",a.EC=Va.offerHeadline||"",a.rq=Va.offerDescription||"",a.Wl=Va.offerId||"",a.DC=Va.offerButtonText||"",a.BN=Va.offerButtonFormattedText||null,a.Aq=Va.overlayDurationMsec||NaN,a.bq=Va.fullVideoMessage||"",a.Gj=!0);if(rb){var E=g.V(rb,CWa);if(E)a.Xl={raw_player_response:E};else{var J=g.V(rb,DWa);a.Xl=J?FA(J):null}a.Gj=!0}}}var K=a.playerResponse.playbackTracking;if(K){var da=b,ta=lS(K.googleRemarketingUrl);ta&&(a.googleRemarketingUrl=ta);var la=lS(K.youtubeRemarketingUrl);
la&&(a.youtubeRemarketingUrl=la);var O=lS(K.ptrackingUrl);if(O){var Z=mS(O),za=Z.oid;za&&(a.uU=za);var xa=Z.pltype;xa&&(a.vU=xa);var ab=Z.ptchn;ab&&(a.tU=ab);var Wa=Z.ptk;Wa&&(a.lz=encodeURIComponent(Wa));var zb=Z.m;zb&&(a.Vv=zb)}var Rb=lS(K.qoeUrl);if(Rb){for(var Za=g.GA(Rb),$b=g.u(Object.keys(Za)),hc=$b.next();!hc.done;hc=$b.next()){var Jc=hc.value,Yb=Za[Jc];Za[Jc]=Array.isArray(Yb)?Yb.join(","):Yb}a.yX=Za;var vc=Za.cat;vc&&(a.L("html5_enable_qoe_cat_list")?a.pp=a.pp.concat(vc.split(",")):a.uh=
vc);var $c=Za.live;$c&&(a.CF=$c);var Rc=Za.drm_product;Rc&&(a.Nk=Rc)}var tc=lS(K.videostatsPlaybackUrl);if(tc){var Vb=mS(tc);a.rb=Vb;var Wb=Vb.adformat;if(Wb){da.adformat=Wb;var yd=a.U(),pd=FVa(Wb,a.nB,yd.D,yd.N);pd&&(a.adFormat=pd)}var qd=Vb.aqi;qd&&(da.ad_query_id=qd);var ac=Vb.autoplay;ac&&(a.xl="1"==ac,a.Eq="1"==ac);var Ec=Vb.autonav;Ec&&(a.isAutonav="1"==Ec);var Ib=Vb.delay;Ib&&(a.Hb=df(Ib));var bd=Vb.ei;bd&&(a.eventId=bd);"adunit"===Vb.el&&(a.xl=!0);var zd=Vb.feature;zd&&(a.qp=zd);var Pb=Vb.list;
Pb&&(a.playlistId=Pb);var fe=Vb.of;fe&&(a.KH=fe);var Ud=Vb.osid;Ud&&(a.osid=Ud);var Vd=Vb.referrer;Vd&&(a.referrer=Vd);var Ce=Vb.sdetail;Ce&&(a.pz=Ce);var De=Vb.sourceid;De&&(a.qFa=De);var Ld=Vb.ssrt;Ld&&(a.vp="1"==Ld);var $e=Vb.subscribed;$e&&(a.subscribed="1"==$e,a.N.subscribed=$e);var Oe=Vb.uga;Oe&&(a.userGenderAge=Oe);var Md=Vb.upt;Md&&(a.qA=Md);var Bf=Vb.vm;Bf&&(a.videoMetadata=Bf)}var Nd=lS(K.videostatsWatchtimeUrl);if(Nd){var ge=mS(Nd).ald;ge&&(a.Cv=ge)}if(a.L("html5_add_per_destination_base_query_for_video_stats_urls")){var rd=
{};if(tc){var Hd=mS(tc);rd.playback=Hd}if(Nd){var sd=mS(Nd);rd.watchtime=sd}var Od=lS(K.atrUrl);if(Od){var jg=mS(Od);rd.atr=jg}var af=lS(K.engageUrl);if(af){var Qf=mS(af);rd.engage=Qf}a.kp=rd}if(K.promotedPlaybackTracking){var Xc=K.promotedPlaybackTracking;Xc.startUrls&&(a.nz=Xc.startUrls);Xc.firstQuartileUrls&&(a.KC=Xc.firstQuartileUrls);Xc.secondQuartileUrls&&(a.MC=Xc.secondQuartileUrls);Xc.thirdQuartileUrls&&(a.OC=Xc.thirdQuartileUrls);Xc.completeUrls&&(a.IC=Xc.completeUrls);Xc.engagedViewUrls&&
(1<Xc.engagedViewUrls.length&&g.BE(new g.XB("There are more than one engaged_view_urls.")),a.xj=Xc.engagedViewUrls[0])}}var oc=a.playerResponse.playerCueRanges;oc&&0<oc.length&&(a.cueRanges=oc);var Pe=a.playerResponse.playerCueRangeSet;Pe&&g.EWa(a,Pe);a:{var ih=a.playerResponse.adPlacements;if(ih)for(var Zh=g.u(ih),mh=Zh.next();!mh.done;mh=Zh.next()){var Ki=void 0,pf=void 0,ff=null==(Ki=mh.value.adPlacementRenderer)?void 0:null==(pf=Ki.renderer)?void 0:pf.videoAdTrackingRenderer;if(ff){var Fe=ff;
break a}}Fe=null}var $h=Fe;K&&K.promotedPlaybackTracking&&$h&&g.BE(new g.XB("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));$h&&(a.l1=!0);var uc=a.playerResponse.playerAds;if(uc)for(var Fc=b,Gc=g.u(uc),Li=Gc.next();!Li.done;Li=Gc.next()){var Ff=Li.value;if(Ff){var pg=Ff.playerLegacyDesktopWatchAdsRenderer;if(pg){var gf=pg.playerAdParams;if(gf){"1"==gf.autoplay&&(a.xl=!0,a.Eq=!0);a.Ev=gf.encodedAdSafetyReason||null;void 0!==gf.showContentThumbnail&&(a.Ol=!!gf.showContentThumbnail);
Fc.enabled_engage_types=gf.enabledEngageTypes;break}}}}var Dd=a.playerResponse.playerConfig;if(Dd){var Tf=Dd.manifestlessWindowedLiveConfig;if(Tf){var ai=Number(Tf.minDvrSequence),qg=Number(Tf.maxDvrSequence),Pg=Number(Tf.minDvrMediaTimeMs),rg=Number(Tf.maxDvrMediaTimeMs),Mi=Number(Tf.startWalltimeMs);ai&&(a.cf=ai);Pg&&(a.bb=Pg/1E3);qg&&(a.Ih=qg);rg&&(a.Nb=rg/1E3);Mi&&(a.vc=Mi/1E3);(ai||Pg)&&(qg||rg)&&(a.eb=!0,a.isLivePlayback=!0,a.allowLiveDvr=!0,a.Yd=!1)}var ke=Dd.daiConfig;if(ke){if(ke.enableDai){a.Hf=
!0;var sg=ke.enableServerStitchedDai;sg&&(a.enableServerStitchedDai=sg);var tg=ke.enablePreroll;tg&&(a.enablePreroll=tg)}var bi;if("DAI_TYPE_SS_DISABLED"===ke.daiType||(null==(bi=ke.debugInfo)?0:bi.isDisabledUnpluggedChannel))a.FD=!0;"DAI_TYPE_CLIENT_STITCHED"===ke.daiType&&(a.u3=!0)}var Gf=Dd.audioConfig;if(Gf){var ug=Gf.loudnessDb;null!=ug&&(a.Qf=ug);var nh=Gf.trackAbsoluteLoudnessLkfs;null!=nh&&(a.r_=nh);var Qg=Gf.loudnessTargetLkfs;null!=Qg&&(a.loudnessTargetLkfs=Qg);Gf.audioMuted&&(a.Kk=!0);
Gf.muteOnStart&&(a.QW=!0);var oh=Gf.loudnessNormalizationConfig;if(oh){oh.applyStatefulNormalization&&(a.applyStatefulNormalization=!0);oh.preserveStatefulLoudnessTarget&&(a.preserveStatefulLoudnessTarget=!0);var te=oh.minimumLoudnessTargetLkfs;null!=te&&(a.minimumLoudnessTargetLkfs=te);var Se=oh.maxStatefulTimeThresholdSec;null!=Se&&(a.maxStatefulTimeThresholdSec=Se)}}var $d=Dd.playbackEndConfig;if($d){var qj=$d.endSeconds,hf=$d.limitedPlaybackDurationInSeconds;a.mutedAutoplay&&(qj&&(a.endSeconds=
qj),hf&&(a.limitedPlaybackDurationInSeconds=hf))}var Ge=Dd.fairPlayConfig;if(Ge){var Uf=Ge.certificate;Uf&&(a.Wa=oR(Uf));var Vf=Number(Ge.keyRotationPeriodMs);0<Vf&&(a.Yv=Vf);var Rg=Number(Ge.keyPrefetchMarginMs);0<Rg&&(a.Xv=Rg)}var Qd=Dd.playbackStartConfig;if(Qd){a.MH=Number(Qd.startSeconds);var vg=Qd.liveUtcStartSeconds,Hf=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds;vg&&!Hf&&(a.liveUtcStartSeconds=Number(vg));var ci=Qd.startPosition;if(ci){var hk=ci.utcTimeMillis;hk&&!Hf&&(a.liveUtcStartSeconds=
.001*Number(hk));var qm=ci.streamTimeMillis;qm&&(a.zj=.001*Number(qm))}a.progressBarStartPosition=Qd.progressBarStartPosition;a.progressBarEndPosition=Qd.progressBarEndPosition}else{var ll=Dd.skippableSegmentsConfig;if(ll){var ml=ll.introSkipDurationMs;ml&&(a.DD=Number(ml)/1E3);var ik=ll.outroSkipDurationMs;ik&&(a.yH=Number(ik)/1E3)}}var Ni=Dd.skippableIntroConfig;if(Ni){var jf=Number(Ni.startMs),He=Number(Ni.endMs);isNaN(jf)||isNaN(He)||(a.uj=jf,a.uf=He)}var ae=Dd.streamSelectionConfig;ae&&(a.Jd=
Number(ae.maxBitrate));var ph=Dd.vrConfig;ph&&(a.HA="1"==ph.partialSpherical);var wg=Dd.webDrmConfig;if(wg){wg.skipWidevine&&(a.DW=!0);var rm=wg.widevineServiceCert;rm&&(a.Sl=oR(rm));wg.useCobaltWidevine&&(a.useCobaltWidevine=!0);wg.startWithNoQualityConstraint&&(a.Ok=!0)}var xg=Dd.mediaCommonConfig;if(xg){var di=xg.dynamicReadaheadConfig;if(di){a.maxReadAheadMediaTimeMs=di.maxReadAheadMediaTimeMs||NaN;a.minReadAheadMediaTimeMs=di.minReadAheadMediaTimeMs||NaN;a.readAheadGrowthRateMs=di.readAheadGrowthRateMs||
NaN;var rj,Sg=null==xg?void 0:null==(rj=xg.mediaUstreamerRequestConfig)?void 0:rj.videoPlaybackUstreamerConfig;Sg&&(a.oi=oR(Sg));var qh=null==xg?void 0:xg.sabrContextUpdates;if(qh&&0<qh.length)for(var sj=g.u(qh),tj=sj.next();!tj.done;tj=sj.next()){var rh=tj.value;if(rh.type&&rh.value){var uj={type:rh.type,scope:rh.scope,value:oR(rh.value)||void 0,sendByDefault:rh.sendByDefault};a.sabrContextUpdates.set(rh.type,uj)}}}var Oi=xg.serverPlaybackStartConfig;Oi&&(a.serverPlaybackStartConfig=Oi);xg.useServerDrivenAbr&&
(a.xN=!0);var sh=xg.requestPipeliningConfig;sh&&(a.requestPipeliningConfig=sh)}var vj=Dd.inlinePlaybackConfig;vj&&(a.IZ=!!vj.showAudioControls);var yg=Dd.embeddedPlayerConfig;if(yg){a.embeddedPlayerConfig=yg;var th=yg.embeddedPlayerMode;if(th){var jk=a.U();jk.Ga=th;jk.C="EMBEDDED_PLAYER_MODE_PFL"===th}var nl=yg.permissions;nl&&(a.allowImaMonetization=!!nl.allowImaMonetization)}var sm=Dd.ssapConfig;sm&&(a.i_=sm.ssapPrerollEnabled||!1);var ei=Dd.webPlayerConfig;ei&&(ei.gatewayExperimentGroup&&(a.gatewayExperimentGroup=
ei.gatewayExperimentGroup),ei.isProximaEligible&&(a.isProximaLatencyEligible=!0))}var Wf=a.playerResponse.streamingData;if(Wf){var qf=Wf.adaptiveFormats;if(qf){var Xf=Wf.streamingUrlTemplate;if(a.L("enable_streaming_url_template")&&Xf)for(var zg=g.u(qf),kk=zg.next();!kk.done;kk=zg.next()){var wj=kk.value;!wj.url&&wj.distinctParams&&(wj.url=Xf+"&"+wj.distinctParams)}}var ol=Wf.formats;if(ol){for(var ic=[],br=g.u(ol),lk=br.next();!lk.done;lk=br.next()){var pl=lk.value;ic.push(pl.itag+"/"+pl.width+"x"+
pl.height)}a.AD=ic.join(",");ic=[];for(var mk=g.u(ol),Bn=mk.next();!Bn.done;Bn=mk.next()){var fi=Bn.value,xj={itag:fi.itag,type:fi.mimeType,quality:fi.quality},tm=fi.url;tm&&(xj.url=tm);var um=xP(fi),it=um.YD,cr=um.lH,dr=um.s;um.JY&&(xj.url=it,xj.sp=cr,xj.s=dr);ic.push(g.so(xj))}a.Tf=ic.join(",")}var Cn=Wf.hlsFormats;if(Cn){var vm=Dd||null,nk={};if(vm){var ql=vm.audioPairingConfig;if(ql&&ql.pairs)for(var ok=g.u(ql.pairs),uh=ok.next();!uh.done;uh=ok.next()){var gi=uh.value,pk=gi.videoItag;nk[pk]||
(nk[pk]=[]);nk[pk].push(gi.audioItag)}}for(var er={},tp=g.u(Cn),up=tp.next();!up.done;up=tp.next()){var fr=up.value;er[fr.itag]=fr.bitrate}for(var Dn=[],gr=g.u(Cn),Tg=gr.next();!Tg.done;Tg=gr.next()){var le=Tg.value,Te={itag:le.itag,type:le.mimeType,url:le.url,bitrate:le.bitrate,width:le.width,height:le.height,fps:le.fps},En=le.audioTrack;if(En){var Ug=En.displayName;Ug&&(Te.name=Ug,Te.audio_track_id=En.id,En.audioIsDefault&&(Te.is_default="1"))}if(le.drmFamilies){for(var hi=[],vh=g.u(le.drmFamilies),
vp=vh.next();!vp.done;vp=vh.next())hi.push(xTa[vp.value]);Te.drm_families=hi.join(",")}var rl=nk[le.itag];if(rl&&rl.length){Te.audio_itag=rl.join(",");var hr=er[rl[0]];hr&&(Te.bitrate+=hr)}var Fn=eTa(le);Fn&&(Te.eotf=Fn);le.audioChannels&&(Te.audio_channels=le.audioChannels);Dn.push(g.so(Te))}a.hlsFormats=Dn.join(",")}var wm=Wf.licenseInfos;if(wm&&0<wm.length){for(var Gn={},ir=g.u(wm),ii=ir.next();!ii.done;ii=ir.next()){var yj=ii.value,qk=yj.drmFamily,sl=yj.url;qk&&sl&&(Gn[xTa[qk]]=sl)}a.le=Gn}var xm=
Wf.drmParams;xm&&(a.drmParams=xm);var ym=Wf.dashManifestUrl;ym&&(a.Qc=g.to(ym,{cpn:a.clientPlaybackNonce}));var wp=Wf.hlsManifestUrl;wp&&(a.hlsvp=wp);var xp=Wf.probeUrl;xp&&(a.probeUrl=aJ(g.to(xp,{cpn:a.clientPlaybackNonce})));var yp=Wf.serverAbrStreamingUrl;yp&&(a.Nl=new g.sP(yp,!0))}var Hn=a.playerResponse.trackingParams;Hn&&(a.Ca=Hn);var Lc=a.playerResponse.videoDetails;if(Lc){var wh=b,Yf=Lc.videoId;Yf&&(a.videoId=Yf,wh.video_id||(wh.video_id=Yf));var ji=Lc.channelId;ji&&(a.N.uid=ji.substr(2));
var xh=Lc.title;xh&&(a.title=xh,wh.title||(wh.title=xh));var In=Lc.lengthSeconds;In&&(a.lengthSeconds=Number(In),wh.length_seconds||(wh.length_seconds=In));var jr=Lc.keywords;jr&&(a.keywords=wWa(jr));var tl=Lc.channelId;tl&&(a.Il=tl,wh.ucid||(wh.ucid=tl));var Jn=Lc.viewCount;Jn&&(a.rawViewCount=Number(Jn));var ul=Lc.author;ul&&(a.author=ul,wh.author||(wh.author=ul));var zp=Lc.shortDescription;zp&&(a.shortDescription=zp);var kr=Lc.isCrawlable;kr&&(a.isListed=kr);var Ap=Lc.musicVideoType;Ap&&(a.musicVideoType=
Ap);var zj=Lc.isLive;null!=zj&&(a.isLivePlayback=zj);if(zj||Lc.isUpcoming)a.isPremiere=!Lc.isLiveContent;var Pi=Lc.thumbnail;Pi&&(a.Z=kS(Pi));var rk=Lc.isExternallyHostedPodcast;rk&&(a.isExternallyHostedPodcast=rk);var vl=Lc.viewerLivestreamJoinPosition;if(null==vl?0:vl.utcTimeMillis)a.zB=df(vl.utcTimeMillis);var Kn=Dd||null,Ln=b;Lc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);Lc.isUpcoming&&(a.isUpcoming=!0);if(Lc.isPostLiveDvr){a.Yd=!0;var sk=Lc.latencyClass;sk&&(a.latencyClass=FWa[sk]||
"UNKNOWN");Lc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0)}else{var Aj=!1;if(a.Ab)a.allowLiveDvr=iR()?!0:lB&&5>IS?!1:!0,a.isLivePlayback=!0;else if(Lc.isLive){Ln.livestream="1";a.allowLiveDvr=Lc.isLiveDvrEnabled?iR()?!0:lB&&5>IS?!1:!0:!1;a.La=27;Lc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var tk=Lc.latencyClass;tk&&(a.latencyClass=FWa[tk]||"UNKNOWN");var Bp=Lc.liveChunkReadahead;Bp&&(a.liveChunkReadahead=Bp);var wl=Kn&&Kn.livePlayerConfig;if(wl){wl.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=
!0);wl.hasSubfragmentedWebm&&(a.dF=!0);wl.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var lr=wl.liveExperimentalContentId;lr&&(a.liveExperimentalContentId=Number(lr));var xl=wl.isLiveHeadPlayable;a.L("html5_live_head_playable")&&null!=xl&&(a.isLiveHeadPlayable=xl)}Aj=!0}else Lc.isUpcoming&&(Aj=!0);Aj&&(a.isLivePlayback=!0,Ln.adformat&&"8"!==Ln.adformat.split("_")[1]||a.Ga.push("heartbeat"),a.gq=!0)}var yl=Lc.isPrivate;void 0!==yl&&(a.isPrivate=oB(a.isPrivate,yl))}if(ia){var zl=Lc||
null,Cp=!1,uk=ia.errorScreen;Cp=uk&&(uk.playerLegacyDesktopYpcOfferRenderer||uk.playerLegacyDesktopYpcTrailerRenderer||uk.ypcTrailerRenderer)?!0:zl&&zl.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(ia.status);if(!Cp){a.errorCode=yVa(ia.errorCode)||"auth";var zm=uk&&uk.playerErrorMessageRenderer;if(zm){a.playerErrorMessageRenderer=zm;var Mn=zm.reason;Mn&&(a.errorReason=g.eF(Mn));var Al=zm.subreason;Al&&(a.Hn=g.eF(Al),a.gz=Al)}else a.errorReason=ia.reason||null;var Nn=ia.status;
if("LOGIN_REQUIRED"===Nn)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===Nn)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===Nn){var On=ia.errorScreen,Pn=On&&On.playerKavRenderer;a.errorDetail=Pn&&Pn.kavUrl?"4":"3"}else a.errorDetail=ia.isBlockedInRestrictedMode?"5":"0"}}var Qn=a.playerResponse.interstitialPods;Qn&&MVa(a,Qn);a.Va&&a.eventId&&(a.Va=IA(a.Va,{ei:a.eventId}));var Dp=a.playerResponse.captions;if(Dp&&Dp.playerCaptionsTracklistRenderer)a:{var yh=Dp.playerCaptionsTracklistRenderer;a.captionTracks=
[];if(yh.captionTracks)for(var Ep=g.u(yh.captionTracks),vk=Ep.next();!vk.done;vk=Ep.next()){var Ag=vk.value,Am=tWa(Ag.baseUrl);if(!Am)break a;var Vg={is_translateable:!!Ag.isTranslatable,languageCode:Ag.languageCode,languageName:Ag.name&&g.eF(Ag.name),url:Am,vss_id:Ag.vssId,kind:Ag.kind};Vg.name=Ag.trackName;Vg.displayName=Ag.name&&g.eF(Ag.name);a.captionTracks.push(new g.fS(Vg))}a.WC=yh.audioTracks||[];a.VY=yh.defaultAudioTrackIndex||0;a.Iv=[];if(yh.translationLanguages)for(var Qi=g.u(yh.translationLanguages),
ki=Qi.next();!ki.done;ki=Qi.next()){var Bj=ki.value,wk={};wk.languageCode=Bj.languageCode;wk.languageName=g.eF(Bj.languageName);if(Bj.translationSourceTrackIndices){wk.translationSourceTrackIndices=[];for(var Rn=g.u(Bj.translationSourceTrackIndices),Bl=Rn.next();!Bl.done;Bl=Rn.next())wk.translationSourceTrackIndices.push(Bl.value)}if(Bj.excludeAudioTrackIndices){wk.excludeAudioTrackIndices=[];for(var Ri=g.u(Bj.excludeAudioTrackIndices),Si=Ri.next();!Si.done;Si=Ri.next())wk.excludeAudioTrackIndices.push(Si.value)}a.Iv.push(wk)}a.YC=
[];if(yh.defaultTranslationSourceTrackIndices)for(var xk=g.u(yh.defaultTranslationSourceTrackIndices),Fp=xk.next();!Fp.done;Fp=xk.next())a.YC.push(Fp.value);a.Hv=!!yh.contribute&&!!yh.contribute.captionsMetadataRenderer}a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.MH=.001*Number(a.clipConfig.startTimeMs));a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&
OVa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var yk;a.compositeLiveIngestionOffsetToken=null==(yk=a.playerResponse.playbackTracking)?void 0:yk.compositeLiveIngestionOffsetToken;var zk;a.compositeLiveStatusToken=null==(zk=a.playerResponse.playbackTracking)?void 0:zk.compositeLiveStatusToken}rWa(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var Cl=b.hlsdvr;null!=Cl&&(a.allowLiveDvr="1"==Cl?iR()?!0:lB&&5>IS?!1:!0:!1);a.adQueryId=b.ad_query_id||null;a.Ev||(a.Ev=b.encoded_ad_safety_reason||
null);a.mW=b.agcid||null;a.JC=b.ad_id||null;a.NC=b.ad_sys||null;a.yD=b.encoded_ad_playback_context||null;a.Kk=oB(a.Kk,b.infringe||b.muted);a.Mca=b.authkey;a.f9=b.authuser;a.mutedAutoplay=oB(a.mutedAutoplay,b&&b.playmuted);a.VC=oB(a.VC,b&&b.mutedautoplay);var Dl=b.length_seconds;Dl&&(a.lengthSeconds="string"===typeof Dl?df(Dl):Dl);if(a.isAd()||a.jn||!g.tB(g.JR(a.Da)))a.endSeconds=qB(a.endSeconds,a.yH||b.end||b.endSeconds);else{var El=a.lengthSeconds;switch(g.JR(a.Da)){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":30<
El?a.limitedPlaybackDurationInSeconds=30:30>El&&10<El&&(a.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":a.limitedPlaybackDurationInSeconds=.2*El}}a.Ca=rB(a.Ca,b.itct);a.GD=oB(a.GD,b.noiba);a.ID=oB(a.ID,b.is_live_destination);a.isLivePlayback=oB(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.dc();b.isUpcoming&&(a.isUpcoming=oB(a.isUpcoming,b.isUpcoming));a.Yd=oB(a.Yd,b.post_live_playback);a.eb&&(a.Yd=!1);
a.isMdxPlayback=oB(a.isMdxPlayback,b.mdx);var Bm=b.mdx_control_mode;Bm&&(a.mdxControlMode="number"===typeof Bm?Bm:df(Bm));a.isInlinePlaybackNoAd=oB(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.Sb=qB(a.Sb,b.reload_count);a.reloadReason=rB(a.reloadReason,b.reload_reason);a.Ol=oB(a.Ol,b.show_content_thumbnail);a.xE=oB(a.xE,b.utpsa);a.ZC=oB(a.ZC,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.sD=b.tkn||null;var Gp=jS(b);0<Object.keys(Gp).length&&(a.Z=Gp);a.Ha=rB(a.Ha,b.vvt);a.mdxEnvironment=
rB(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.mfa=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=rB(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?qB(0,b.index):qB(a.playlistIndex,b.index));a.WV=b.pyv_view_beacon_url;a.eW=b.pyv_quartile25_beacon_url;a.hW=b.pyv_quartile50_beacon_url;
a.jW=b.pyv_quartile75_beacon_url;a.ZV=b.pyv_quartile100_beacon_url;var Hp=b.session_data;!a.lW&&Hp&&(a.lW=DA(Hp,"&").feature);a.isFling=1==qB(a.isFling?1:0,b.is_fling);a.vnd=qB(a.vnd,b.vnd);a.forceAdsUrl=rB(a.forceAdsUrl,b.force_ads_url);a.cj=rB(a.cj,b.ctrl);a.Ij=rB(a.Ij,b.ytr);a.ww=b.ytrcc;a.nW=b.ytrexp;a.RC=b.ytrext;a.zd=rB(a.zd,b.adformat);a.nB=rB(a.nB,b.attrib);a.slotPosition=qB(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.vp=oB(a.vp,b.ssrt);a.videoId=sB(b)||a.videoId;a.G=rB(a.G,b.vss_credentials_token);
a.fn=rB(a.fn,b.vss_credentials_token_type);a.Bj=oB(a.Bj,b.audio_only);a.AN=oB(a.AN,b.aac_high);a.NH=oB(a.NH,b.prefer_low_quality_audio);a.vN=oB(a.vN,b.uncap_inline_quality);a.L("html5_enable_qoe_cat_list")?b.qoe_cat&&(a.pp=a.pp.concat(b.qoe_cat.split(","))):a.uh=rB(a.uh,b.qoe_cat);a.qn=oB(a.qn,b.download_media);var Sn=b.prefer_gapless;var Ip=null!=Sn?oB(a.Y,Sn):a.Y?a.Y:a.Da.preferGapless&&a.Da.supportsGaplessShorts();a.Y=Ip;TJa(a.playerResponse)&&(a.adModule=!0,a.Ga.push("ad"));var Jp=b.adaptive_fmts;
Jp&&(a.adaptiveFormats=Jp,a.ma("adpfmts",{},!0));var Fl=b.allow_embed;Fl&&(a.allowEmbed="1"==Fl);var Tn=b.backgroundable;Tn&&(a.backgroundable="1"==Tn);var Un=b.autonav;Un&&(a.isAutonav="1"==Un);var Cm=b.autoplay;Cm&&(a.Eq="1"==Cm,a.xl="1"==Cm);var mr=b.iv_load_policy;mr&&(a.annotationsLoadPolicy=pB(a.annotationsLoadPolicy,mr,KR));var Dm=b.cc_lang_pref;Dm&&(a.captionsLanguagePreference=rB(Dm,a.captionsLanguagePreference));var Kp=b.cc_load_policy;Kp&&(a.LH=pB(a.LH,Kp,KR));var Lp;a.deviceCaptionsOn=
null!=(Lp=b.device_captions_on)?Lp:void 0;var Mp;a.uZ=null!=(Mp=b.device_captions_lang_pref)?Mp:"";var Np;a.zN=null!=(Np=b.viewer_selected_caption_langs)?Np:[];if(!a.L("html5_enable_ssap_entity_id")){var Em=b.cached_load;Em&&(a.Ap=oB(a.Ap,Em))}"0"==b.dash&&(a.uD=!0);var Gl=b.dashmpd;Gl&&(a.Qc=g.to(Gl,{cpn:a.clientPlaybackNonce}));var Vn=b.delay;Vn&&(a.Hb=df(Vn));var Wn=a.yH||b.end;void 0!=Wn&&(a.clipEnd=qB(a.clipEnd,Wn));var Op=b.fmt_list;Op&&(a.AD=Op);b.heartbeat_preroll&&a.Ga.push("heartbeat");
a.hn=-Math.floor(10*Math.random());a.Py=-Math.floor(40*Math.random());var Xn=b.is_listed;Xn&&(a.isListed=oB(a.isListed,Xn));var nr=b.is_private;nr&&(a.isPrivate=oB(a.isPrivate,nr));var Pp=b.is_dni;Pp&&(a.If=oB(a.If,Pp));var Yn=b.dni_color;Yn&&(a.Kp=rB(a.Kp,Yn));var or=b.pipable;or&&(a.pipable=oB(a.pipable,or));a.oW=a.pipable&&a.Da.rq;a.cX=a.oW&&!a.Da.showMiniplayerButton;var me=b.paid_content_overlay_duration_ms;me&&(a.paidContentOverlayDurationMs=df(me));var ue=b.paid_content_overlay_text;ue&&(a.paidContentOverlayText=
ue);var Ie=b.url_encoded_fmt_stream_map;Ie&&(a.Tf=Ie);var Zn=b.hls_formats;Zn&&(a.hlsFormats=Zn);var $n=b.hlsvp;$n&&(a.hlsvp=$n);var Fm=b.live_start_walltime;Fm&&(a.LF="number"===typeof Fm?Fm:df(Fm));var ao=b.live_manifest_duration;ao&&(a.Kl="number"===typeof ao?ao:df(ao));var Qp=b.player_params;Qp&&(a.playerParams=Qp);var Rp=b.partnerid;Rp&&(a.La=qB(a.La,Rp));var Sp=b.probe_url;Sp&&(a.probeUrl=aJ(g.to(Sp,{cpn:a.clientPlaybackNonce})));var li=b.pyv_billable_url;li&&ECa(li)&&(a.xj=li);var mi=b.pyv_conv_url;
mi&&ECa(mi)&&(a.XV=mi);xWa(a,b);0<a.startSeconds||(a.startSeconds=qB(a.startSeconds,a.MH||a.DD||b.start||b.startSeconds),a.Kb=a.startSeconds);if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var Cj=b.live_utc_start;if(null!=Cj)a.liveUtcStartSeconds=Number(Cj);else{var bo=a.startSeconds;bo&&isFinite(bo)&&1E9<bo&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var pr=b.utc_start_millis;pr&&(a.liveUtcStartSeconds=.001*Number(pr))}var Gm=b.stream_time_start_millis;
Gm&&(a.zj=.001*Number(Gm));var co=a.DD||b.start;void 0==co||"1"==b.resume||a.isLivePlayback||(a.clipStart=qB(a.clipStart,co));var eo=b.url_encoded_third_party_media;eo&&(a.Rl=nqa(eo));var fo=b.ypc_offer_button_formatted_text;if(fo){var Ak=JSON.parse(fo);a.BN=null!=Ak?Ak:null;a.PX=fo}var Hm=b.ypc_offer_button_text;Hm&&(a.DC=Hm);var Ti=b.ypc_offer_description;Ti&&(a.rq=Ti);var go=b.ypc_offer_headline;go&&(a.EC=go);var ho=b.ypc_full_video_message;ho&&(a.bq=ho);var qr=b.ypc_offer_id;qr&&(a.Wl=qr);var rr=
b.ypc_buy_url;rr&&(a.MB=rr);var Ui=b.ypc_item_thumbnail;Ui&&(a.PB=Ui);var Hl=b.ypc_item_title;Hl&&(a.cq=Hl);var Dj=b.ypc_item_url;Dj&&(a.uC=Dj);var sr=b.ypc_vid;sr&&(a.wv=sr);b.ypc_overlay_timeout&&(a.Aq=Number(b.ypc_overlay_timeout));var io=b.ypc_trailer_player_vars;io&&(a.Xl=FA(io));var Tp=b.ypc_original_itct;Tp&&(a.S3=Tp);a.Il=rB(a.Il,b.ucid);b.baseUrl&&(a.N.baseUrl=b.baseUrl);b.uid&&(a.N.uid=b.uid);b.oeid&&(a.N.oeid=b.oeid);b.ieid&&(a.N.ieid=b.ieid);b.ppe&&(a.N.ppe=b.ppe);b.engaged&&(a.N.engaged=
b.engaged);b.subscribed&&(a.N.subscribed=b.subscribed);a.N.focEnabled=oB(a.N.focEnabled,b.focEnabled);a.N.rmktEnabled=oB(a.N.rmktEnabled,b.rmktEnabled);a.Yz=b.storyboard_spec||null;a.jz=b.live_storyboard_spec||null;a.mU=b.iv_endscreen_url||null;a.tF=oB(a.tF,b.iv3_module);a.gq=oB(a.gq,b.ypc_license_checker_module);a.Gj=oB(a.Gj,b.ypc_module);a.wi=oB(a.wi,b.ypc_clickwrap_module);a.Gj&&a.Ga.push("ypc");a.wi&&a.Ga.push("ypc_clickwrap");a.NV={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};sWa(a,b);var jo=b.cotn;jo&&(a.cotn=jo);if(GWa(a))JS(a)&&(a.isLivePlayback&&a.Qc&&(a.sj=!0),a.Wa&&
(a.ip=!0));else if(HWa(a))a.sj=!0;else{var tr,ko,Up=(null==(tr=a.playerResponse)?void 0:null==(ko=tr.streamingData)?void 0:ko.adaptiveFormats)||[];if(0<Up.length)var ni=IWa(a,Up);else{var Il=a.adaptiveFormats;if(Il&&!JS(a)){KS(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(RTa=!0);var Vi=LS(Il),Vp=a.le,Wg=a.lengthSeconds,Zf=a.isLivePlayback,$f=a.Yd,Jl=a.Da,ur=zTa(Vi);if(Zf||$f){var Ue=new IQ("",null==Jl?void 0:Jl.experiments,!0);Ue.dc=!0;Ue.isManifestless=!0;Ue.B=!$f;Ue.isLive=!$f;Ue.Yd=$f;for(var zh=
g.u(Vi),rf=zh.next();!rf.done;rf=zh.next()){var ag=rf.value,Kl=yTa(ag,Vp),Bk=KQ(ag.url,ag.sp,ag.s),vr=Bk.get("id");vr&&vr.includes("%7E")&&(Ue.Y=!0);var jt=Number(ag.target_duration_sec)||5,kt=Number(ag.max_dvr_duration_sec)||14400,Wp=Number(Bk.get("mindsq")||Bk.get("min_sq")||"0"),wr=Number(Bk.get("maxdsq")||Bk.get("max_sq")||"0")||Infinity;Ue.cf=Ue.cf||Wp;Ue.Ih=Ue.Ih||wr;var Im=!mK(Kl.mimeType);Bk&&HQ(Ue,new zQ(Bk,Kl,{Lj:jt,An:Im,qr:kt,cf:Wp,Ih:wr,aB:300,Yd:$f}))}var lo=Ue}else{if("FORMAT_STREAM_TYPE_OTF"===
ur){var Ll=Wg;Ll=void 0===Ll?0:Ll;var Ml=new IQ("",null==Jl?void 0:Jl.experiments,!1);Ml.duration=Ll||0;for(var Xp=g.u(Vi),Yp=Xp.next();!Yp.done;Yp=Xp.next()){var Wi=Yp.value,Zp=yTa(Wi,Vp,Ml.duration),mo=KQ(Wi.url,Wi.sp,Wi.s);if(mo)if("FORMAT_STREAM_TYPE_OTF"===Zp.streamType)HQ(Ml,new AQ(mo,Zp,"sq/0"));else{var Nl=jQ(Wi.init),Ck=jQ(Wi.index);HQ(Ml,new FQ(mo,Zp,Nl,Ck))}}Ml.isOtf=!0;var Ol=Ml}else{var Pl=Wg;Pl=void 0===Pl?0:Pl;var no=new IQ("",null==Jl?void 0:Jl.experiments,!1);no.duration=Pl||0;for(var oo=
g.u(Vi),$p=oo.next();!$p.done;$p=oo.next()){var Ql=$p.value,Dk=yTa(Ql,Vp,no.duration),Rl=jQ(Ql.init),Ej=jQ(Ql.index),Ek=KQ(Ql.url,Ql.sp,Ql.s);Ek&&HQ(no,new FQ(Ek,Dk,Rl,Ej))}Ol=no}lo=Ol}var Fk=lo;if(0<Vi.length){var aq=Vi[0];if("hangouts-meet"===a.U().playerStyle&&aq.url){var xr=g.GA(aq.url);a.Ip=a.Ip||Number(xr.expire)}}var lt=a.isLivePlayback&&!a.Yd&&!a.eb&&!a.isPremiere;a.L("html5_live_head_playable")&&(!MS(a)&&lt&&a.ma("missingLiveHeadPlayable",{}),"yt"===a.Da.ra&&(Fk.Va=!0));Fk.Sa=NS(a);ni=Fk}else ni=
null;a.ma("pafmts",{isManifestFilled:!!ni})}if(ni){JWa(a,ni);var po=!0}else po=!1;po?a.enableServerStitchedDai=a.enableServerStitchedDai&&OS(a):!a.Qc||"yt"===a.Da.ra&&a.dc()&&a.L("drm_manifestless_unplugged")&&a.L("html5_deprecate_manifestful_fallback")||(a.sj=!0)}var qo=b.adpings;qo&&(a.Dv=qo?FA(qo):null);var Jm=b.feature;Jm&&(a.qp=Jm);var Xi=b.referrer;Xi&&(a.referrer=Xi);a.clientScreenNonce=rB(a.clientScreenNonce,b.csn);a.SG=qB(a.SG,b.root_ve_type);a.jp=qB(a.jp,b.kids_age_up_mode);void 0!=b.kids_app_info&&
(a.kidsAppInfo=b.kids_app_info);a.MA=oB(a.MA,b.upg_content_filter_mode);a.unpluggedFilterModeType=qB(a.unpluggedFilterModeType,b.unplugged_filter_mode_type);var oi=b.unplugged_location_info;oi&&(a.qa=oi);var Sl=b.unplugged_partner_opt_out;Sl&&(a.HC=rB("",Sl));a.Uv=oB(a.Uv,b.disable_watch_next);a.hp=rB(a.hp,b.internal_ip_override);a.HD=!!b.is_yto_interstitial;(a.interstitials.length||a.HD)&&a.Ga.push("yto");var yr=b.Km;yr&&(a.Km=yr);b.hM&&(a.hM=b.hM);var zr;a.Sa=null!=(zr=b.csi_timer)?zr:"";a.vn=!!b.force_gvi;
b.watchUrl&&(a.watchUrl=b.watchUrl);var Yi=b.watch_endpoint;a.L("html5_attach_watch_endpoint_ustreamer_config")&&Yi&&AVa(a,Yi);if(null==Yi?0:Yi.ustreamerConfig)a.Xo=oR(Yi.ustreamerConfig);var Ar,ro,bq=null==Yi?void 0:null==(Ar=Yi.loggingContext)?void 0:null==(ro=Ar.qoeLoggingContext)?void 0:ro.serializedContextData;bq&&(a.I3=bq);g.BR(a.Da)&&a.Da.Ll&&(a.embedsRct=rB(a.embedsRct,b.rct),a.embedsRctn=rB(a.embedsRctn,b.rctn));a.Ll=a.Ll||!!b.pause_at_start;b.default_active_source_video_id&&(a.defaultActiveSourceVideoId=
b.default_active_source_video_id)};
vWa=function(a,b,c){var d,e=null==(d=b.cpnInfo)?void 0:d.cpn;a.playerResponseCpn=null!=e?e:"";var f;return(null==(f=b.cacheMetadata)?0:f.isCacheHit)||a.Ap||!e?"":(KWa.has(e)?c="":(b=LWa.push(e),KWa.add(e),b>(null!=c?c:50)&&(c=LWa.shift())&&KWa.delete(c),c=e),e!==c&&a.QB("ssei","dcpn_"+e+"_"+c+"_"+a.clientPlaybackNonce),c)};
rWa=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.Ma=c;var e=a.Ma.playerCueRangeSet;e&&g.EWa(a,e);var f=a.Ma.playerOverlays;if(f){var h=f.playerOverlayRenderer;if(h){var l=h.autonavToggle;l&&(a.autoplaySwitchButtonRenderer=g.V(l,MWa),a.L("web_player_autonav_use_server_provided_state")&&NWa(a)&&(a.autonavState=a.autoplaySwitchButtonRenderer.enabled?2:1));var m=h.videoDetails;if(m){var n=m.embeddedPlayerOverlayVideoDetailsRenderer;var p=
m.playerOverlayVideoDetailsRenderer;p&&(p.title&&(b.title=g.eF(p.title)),p.subtitle&&(b.subtitle=g.eF(p.subtitle)))}g.GR(a.Da)&&(a.ge=!!h.addToMenu);OWa(a,h.shareButton);a.L("progress_bar_start_end_null_check_killswitch")?(a.progressBarStartPosition=h.startPosition,a.progressBarEndPosition=h.endPosition):h.startPosition&&h.endPosition&&(a.progressBarStartPosition=h.startPosition,a.progressBarEndPosition=h.endPosition);var q=h.gatedActionsOverlayRenderer;q&&(a.L9=g.V(q,PWa));var r,t,v,w=g.V(null==
(r=a.getWatchNextResponse())?void 0:null==(t=r.playerOverlays)?void 0:null==(v=t.playerOverlayRenderer)?void 0:v.infoPanel,QWa);if(w){a.CD=Number(null==w?void 0:w.durationMs)||NaN;if(null==w?0:w.infoPanelOverviewViewModel)a.tf=null==w?void 0:w.infoPanelOverviewViewModel;if(null==w?0:w.infoPanelDetailsViewModel)a.Jl=null==w?void 0:w.infoPanelDetailsViewModel}a.showSeekingControls=!!h.showSeekingControls}}var A,C,F=null==(A=a.getWatchNextResponse())?void 0:null==(C=A.contents)?void 0:C.twoColumnWatchNextResults;
if(F){var H=F.desktopOverlay&&g.V(F.desktopOverlay,RWa);H&&(H.suppressShareButton&&(a.showShareButton=!1),H.suppressWatchLaterButton&&(a.ge=!1))}n&&SWa(a,b,n);var M=qB(0,b.autoplay_count),L=a.getWatchNextResponse(),R,ba=null==(R=L.contents)?void 0:R.twoColumnWatchNextResults,ma,na,ia,sa=null==(ma=L.playerOverlays)?void 0:null==(na=ma.playerOverlayRenderer)?void 0:null==(ia=na.autoplay)?void 0:ia.playerOverlayAutoplayRenderer,aa=RVa(a),U,Ka=null==(U=L.contents)?void 0:U.singleColumnWatchNextResults;
if(Ka){var x;if((null==(x=Ka.autoplay)?0:x.autoplay)&&!Ka.playlist){var ca=Ka.autoplay.autoplay.sets,Ma={},$a=new g.pS(a.U()),kb=null,Qa;if(ca){for(var Va=g.u(ca),jb=Va.next();!jb.done;jb=Va.next()){var rb=jb.value.autoplayVideoRenderer;if(rb&&rb.compactVideoRenderer){kb=rb.compactVideoRenderer;break}}if(Qa=ca[0].autoplayVideo){var pb=Qa.clickTrackingParams;pb&&(Ma.itct=pb);Ma.autonav="1";Ma.playnext=String(M)}}else Ma.feature="related-auto";var B=g.V(Qa,g.PS);if(kb){$a.videoId=kb.videoId;var D=kb.shortBylineText;
D&&($a.author=g.eF(D));var E=kb.title;E&&($a.title=g.eF(E))}else null!=B&&B.videoId&&($a.videoId=B.videoId);$a.oE=Ma;a.suggestions=[];a.Gv=$a}}if(aa){for(var J=[],K=g.u(aa),da=K.next();!da.done;da=K.next()){var ta=da.value,la=void 0,O=null;if(ta.endScreenVideoRenderer){var Z=ta.endScreenVideoRenderer,za=Z.title;O=new g.pS(a.U());O.videoId=Z.videoId;O.lengthSeconds=Z.lengthInSeconds||0;var xa=Z.publishedTimeText;xa&&(O.publishedTimeText=g.eF(xa));var ab=Z.shortBylineText;ab&&(O.author=g.eF(ab));var Wa=
Z.shortViewCountText;Wa&&(O.shortViewCount=g.eF(Wa));if(za){O.title=g.eF(za);var zb=za.accessibility;if(zb){var Rb=zb.accessibilityData;Rb&&Rb.label&&(O.ariaLabel=Rb.label)}}var Za=Z.navigationEndpoint;if(Za){la=Za.clickTrackingParams;var $b=g.V(Za,g.PS),hc=g.V(Za,g.rF);$b?O.pE=$b:null!=hc&&(O.watchUrl=hc.url)}var Jc=Z.thumbnailOverlays;if(Jc)for(var Yb=g.u(Jc),vc=Yb.next();!vc.done;vc=Yb.next()){var $c=vc.value.thumbnailOverlayTimeStatusRenderer;if($c)if("LIVE"===$c.style){O.isLivePlayback=!0;break}else if("UPCOMING"===
$c.style){O.isUpcoming=!0;break}}O.Z=kS(Z.thumbnail)}else if(ta.endScreenPlaylistRenderer){var Rc=ta.endScreenPlaylistRenderer,tc=Rc.navigationEndpoint;if(!tc)continue;var Vb=g.V(tc,g.PS);if(!Vb)continue;var Wb=Vb.videoId;O=new g.oS(a.U());O.playlistId=Rc.playlistId;O.playlistLength=Number(Rc.videoCount)||0;O.j=Wb||null;O.videoId=Wb;var yd=Rc.title;yd&&(O.title=g.eF(yd));var pd=Rc.shortBylineText;pd&&(O.author=g.eF(pd));la=tc.clickTrackingParams;O.Z=kS(Rc.thumbnail)}O&&(la&&(O.sessionData={itct:la}),
J.push(O))}a.suggestions=J}if(sa){a.OV=!!sa.preferImmediateRedirect;a.Sf=a.Sf||!!sa.webShowNewAutonavCountdown;a.Pl=a.Pl||!!sa.webShowBigThumbnailEndscreen;if(a.Sf||a.Pl){var qd=ba||null,ac=new g.pS(a.U());ac.videoId=sa.videoId;var Ec=sa.videoTitle;if(Ec){ac.title=g.eF(Ec);var Ib=Ec.accessibility;if(Ib){var bd=Ib.accessibilityData;bd&&bd.label&&(ac.ariaLabel=bd.label)}}var zd=sa.byline;zd&&(ac.author=g.eF(zd));var Pb=sa.publishedTimeText;Pb&&(ac.publishedTimeText=g.eF(Pb));var fe=sa.shortViewCountText;
fe&&(ac.shortViewCount=g.eF(fe));var Ud=sa.thumbnailOverlays;if(Ud)for(var Vd=g.u(Ud),Ce=Vd.next();!Ce.done;Ce=Vd.next()){var De=Ce.value.thumbnailOverlayTimeStatusRenderer;if(De)if("LIVE"===De.style){ac.isLivePlayback=!0;break}else if("UPCOMING"===De.style){ac.isUpcoming=!0;break}else if("DEFAULT"===De.style&&De.text){ac.lengthText=g.eF(De.text);var Ld=De.text.accessibility;if(Ld){var $e=Ld.accessibilityData;$e&&$e.label&&(ac.tx=$e.label||"")}break}}ac.Z=kS(sa.background);var Oe=sa.nextButton;if(Oe){var Md=
Oe.buttonRenderer;if(Md){var Bf=Md.navigationEndpoint;if(Bf){var Nd=g.V(Bf,g.PS);Nd&&(ac.pE=Nd)}}}if(sa.topBadges){var ge=sa.topBadges[0];if(ge){var rd=g.V(ge,TWa);rd&&"BADGE_STYLE_TYPE_PREMIUM"===rd.style&&(ac.hM=!0)}}var Hd=sa.alternativeTitle;Hd&&(ac.gt=g.eF(Hd));var sd={autonav:"1",playnext:String(M)};ac.playlistId&&(sd.autoplay="1");if(qd){var Od,jg,af,Qf,Xc=null==(Od=qd.autoplay)?void 0:null==(jg=Od.autoplay)?void 0:null==(af=jg.sets)?void 0:null==(Qf=af[0])?void 0:Qf.autoplayVideo;if(Xc){var oc=
Xc.clickTrackingParams;oc&&(sd.itct=oc);var Pe=g.V(Xc,g.PS);Pe&&(ac.LW=Pe)}}else if(sa){var ih,Zh,mh,Ki=null==(ih=sa.nextButton)?void 0:null==(Zh=ih.buttonRenderer)?void 0:null==(mh=Zh.navigationEndpoint)?void 0:mh.clickTrackingParams;Ki&&(sd.itct=Ki)}sd.itct||(sd.feature="related-auto");ac.oE=sd;a.suggestions||(a.suggestions=[]);a.Gv=ac}null!=sa.countDownSecs&&(a.bX=1E3*sa.countDownSecs);null!=sa.countDownSecsForFullscreen&&(a.UC=0<=sa.countDownSecsForFullscreen?1E3*sa.countDownSecsForFullscreen:
-1);if(a.L("web_player_autonav_next_button_renderer")){var pf;a.Bda=null==(pf=sa.nextButton)?void 0:pf.buttonRenderer}var ff;a.ida=null==(ff=sa.cancelButton)?void 0:ff.buttonRenderer;a.L("web_autonav_color_transition")&&sa.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.V(sa.watchToWatchTransitionRenderer,UWa))}var Fe=RVa(a);if(Fe){var $h,uc,Fc,Gc=null==Fe?void 0:null==($h=Fe[0])?void 0:null==(uc=$h.endScreenVideoRenderer)?void 0:null==(Fc=uc.navigationEndpoint)?void 0:Fc.clickTrackingParams,
Li=g.QS(a);Gc&&Li&&(Li.sessionData={itct:Gc})}a.Ma.currentVideoThumbnail&&(a.Z=kS(a.Ma.currentVideoThumbnail));var Ff,pg,gf,Dd,Tf,ai=null==(Ff=a.Ma)?void 0:null==(pg=Ff.contents)?void 0:null==(gf=pg.twoColumnWatchNextResults)?void 0:null==(Dd=gf.results)?void 0:null==(Tf=Dd.results)?void 0:Tf.contents;if(ai&&ai[1]){var qg,Pg,rg,Mi,ke=null==(qg=ai[1].videoSecondaryInfoRenderer)?void 0:null==(Pg=qg.owner)?void 0:null==(rg=Pg.videoOwnerRenderer)?void 0:null==(Mi=rg.thumbnail)?void 0:Mi.thumbnails;ke&&
ke.length&&(a.profilePicture=ke[ke.length-1].url)}var sg=sB(b),tg,bi=null==(tg=a.getWatchNextResponse())?void 0:tg.onResponseReceivedEndpoints;if(bi)for(var Gf=g.u(bi),ug=Gf.next();!ug.done;ug=Gf.next()){var nh=ug.value;g.V(nh,RS)&&(a.nU=g.V(nh,RS));var Qg=g.V(nh,VWa),oh=void 0;if(null==(oh=Qg)?0:oh.entityKeys)a.kz=Qg.entityKeys||[],Qg.visibleOnLoadKeys&&(a.visibleOnLoadKeys=Qg.visibleOnLoadKeys)}if(a.L("web_key_moments_markers")){var te=g.SS.getState().entities,Se=g.hO("visibility_override","markersVisibilityOverrideEntity");
var $d=qO(te,"markersVisibilityOverrideEntity",Se);a.je=(null==$d?void 0:$d.videoId)===(a.videoId||sg)&&(null==$d?0:$d.visibilityOverrideMarkersKey)?$d.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.qa(a.je))}}};
NWa=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)};
WWa=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)};
VS=function(a){var b=a.Y;a.L("html5_gapless_unlimit_format_selection")&&TS(a)&&(b=!1);var c=!!a.j&&a.j.dc,d=a.Da,e=a.vQ(),f=US(a),h=a.AN,l=b,m=a.isOtf();b=a.PN();var n=a.Ab,p=a.Uf,q=XWa(a),r=new WTa(d);if(d.Bc()||d.L("html5_logging_format_selection"))r.B=!0;r.Wa=f;r.La=h&&d.N;r.Uf=p;g.fB("windows nt 5.1")&&!g.bR&&(r.Jo=!0);if(f=e)f=g.VR(d)?cVa(d):!1;f&&(r.Ca=!0);l&&(r.Jo=!0,r.vc=!0);m&&!d.L("html5_otf_prefer_vp9")&&(r.Jo=!0);"picasaweb"===d.playerStyle&&(m&&(r.Jo=!1),r.Ha=!1);n&&(r.Jo=!0);qP(d.G,
rP.CHANNELS)&&(d.L("html5_enable_aac51")&&(r.ra=!0),d.L("html5_enable_ac3")&&(r.D=!0),d.L("html5_enable_eac3")&&(r.G=!0),d.L("html5_enable_ac3_gapless")&&(r.Ma=!0));d.L("html5_block_8k_hfr")&&(r.bb=!0);r.K=g.xI(d.experiments,"html5_max_selectable_quality_ordinal");r.N=g.xI(d.experiments,"html5_min_selectable_quality_ordinal");zR&&(r.Sb=480);if(c||e)r.Ha=!1;r.gb=!1;r.disableAv1=q;c=YTa(d,r.j,void 0,r.disableAv1);0<c&&2160>c&&(zK()||d.L("html5_format_hybridization"))&&(r.j.supportsChangeType=+zK(),
r.qj=c);2160<=c&&(r.Ga=!0);MPa()&&(r.j.serveVp9OverAv1IfHigherRes=0,r.Dc=!1);r.PN=b;r.Va=g.NC||dra()&&!b?!1:!0;r.Y=d.L("html5_format_hybridization");r.Jb=d.L("html5_disable_encrypted_vp9_live_non_2k_4k");iB()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(r.D=!0,r.G=!0);a.Y&&a.isAd()&&(a.Bv&&(r.qa=a.Bv),a.Qy&&(r.C=a.Qy));r.Sa=a.isLivePlayback&&a.Xi()&&a.Da.L("html5_drm_live_audio_51");
r.Ab=a.vD;return a.sf=r};
XWa=function(a){return a.Da.L("html5_disable_av1")||a.L("html5_gapless_shorts_disable_av1")&&TS(a)?!0:!1};
ZWa=function(a){YG("drm_pb_s",void 0,a.Sa);a.Wa||a.j&&mP(a.j);var b={};a.j&&(b=ZQa(a.Tv,VS(a),a.Da.G,a.j,function(c){return a.publish("ctmp","fmtflt",c)},!0,new Set));
b=new cR(b,a.Da,a.DW,a.useCobaltWidevine?iB()?YWa(a):!1:!1,function(c,d){a.ma(c,d)});
g.N(a,b);a.ip=!1;a.loading=!0;dUa(b,function(c){YG("drm_pb_f",void 0,a.Sa);for(var d=g.u(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Wa=a.Wa;e.Yv=a.Yv;e.Xv=a.Xv;break;case "widevine":e.Sl=a.Sl}a.mp=c;if(0<a.mp.length&&(a.K=a.mp[0],a.Da.Bc())){c={};d=g.u(Object.entries(a.K.j));for(e=d.next();!e.done;e=d.next()){var f=g.u(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c[h]=f}a.ma("drmProbe",c)}GS(a)})};
IWa=function(a,b){if(0===b.length||JS(a))return null;KS(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(RTa=!0);var c=a.le;var d=a.lengthSeconds,e=a.isLivePlayback,f=a.Yd,h=a.Da,l=ATa(b);if(e||f){h=new IQ("",h.experiments,!0);h.B=!f;h.dc=!0;h.isManifestless=!0;h.isLive=!f;h.Yd=f;b=g.u(b);for(d=b.next();!d.done;d=b.next()){var m=d.value;d=JQ(m,c);e=xP(m);e=KQ(e.YD||m.url||"",e.lH,e.s);(l=e.get("id"))&&l.includes("%7E")&&(h.Y=!0);l=Number(m.targetDurationSec||5);m=Number(m.maxDvrDurationSec||14400);
var n=Number(e.get("mindsq")||e.get("min_sq")||"0"),p=Number(e.get("maxdsq")||e.get("max_sq")||"0")||Infinity;h.cf=h.cf||n;h.Ih=h.Ih||p;var q=!mK(d.mimeType);e&&HQ(h,new zQ(e,d,{Lj:l,An:q,qr:m,cf:n,Ih:p,aB:300,Yd:f}))}c=h}else if("FORMAT_STREAM_TYPE_OTF"===l){d=void 0===d?0:d;f=new IQ("",h.experiments,!1);f.duration=d||0;h=g.u(b);for(b=h.next();!b.done;b=h.next())b=b.value,d=JQ(b,c,f.duration),e=xP(b),(e=KQ(e.YD||b.url||"",e.lH,e.s))&&("FORMAT_STREAM_TYPE_OTF"===d.streamType?HQ(f,new AQ(e,d,"sq/0")):
HQ(f,new FQ(e,d,lQ(b.initRange),lQ(b.indexRange))));f.isOtf=!0;c=f}else{d=void 0===d?0:d;f=new IQ("",h.experiments,!1);f.duration=d||0;h=g.u(b);for(b=h.next();!b.done;b=h.next())l=b.value,b=JQ(l,c,f.duration),d=lQ(l.initRange),e=lQ(l.indexRange),m=xP(l),(l=KQ(m.YD||l.url||"",m.lH,m.s))&&HQ(f,new FQ(l,b,d,e));c=f}f=a.isLivePlayback&&!a.Yd&&!a.eb&&!a.isPremiere;a.L("html5_live_head_playable")&&(!MS(a)&&f&&a.ma("missingLiveHeadPlayable",{}),"yt"===a.Da.ra&&(c.Va=!0));c.Sa=NS(a);return c};
JS=function(a){return iB()?!YWa(a):jB()?!(!a.Wa||!a.L("html5_enable_safari_fairplay")):!1};
YWa=function(a){return a.L("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
g.EWa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.cueRangeSetIdentifier){var d=void 0;a.TC.set(c.cueRangeSetIdentifier,null!=(d=c.playerCueRanges)?d:[])}};
OS=function(a){return!(!a.j||!a.j.isManifestless)};
WS=function(a){return a.isLowLatencyLiveStream&&void 0!=a.j&&5<=NQ(a.j)};
GWa=function(a){return iB()&&YWa(a)?!1:JS(a)&&g.GI(a.Da)&&!a.isLivePlayback||!iR()||a.uD?!0:!1};
aXa=function(a){a.loading=!0;a.sj=!1;if(HWa(a))g.dWa(a.videoId).then(function(c){$Wa(a,c)}).then(function(){GS(a)});
else{ZI(a.Qc)||g.BE(new g.XB("DASH MPD Origin invalid: ",a.Qc));var b=a.Qc;b=g.to(b,{mpd_version:g.xI(a.Da.experiments,"dash_manifest_version")||4});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.to(b,{pacing:0}));ITa(b,a.Da.experiments,a.isLivePlayback).then(function(c){a.Na()||(JWa(a,c,!0),YG("mrc",void 0,a.Sa),GS(a))},function(c){a.Na()||(a.loading=!1,a.publish("dataloaderror",new RJ("manifest.net.retryexhausted",{backend:"manifest",
rc:c.status},1)))});
YG("mrs",void 0,a.Sa)}};
$Wa=function(a,b){var c=b.map(function(m){return m.itag}),d;
if(null!=(d=a.playerResponse)&&d.streamingData){d=[];for(var e=g.u(a.playerResponse.streamingData.adaptiveFormats),f=e.next(),h={};!f.done;h={Vi:void 0},f=e.next())if(h.Vi=f.value,a.L("html5_fix_multi_audio_offline_playback")){f=g.u(b);for(var l=f.next();!l.done;l=f.next())l=l.value,l.itag===h.Vi.itag&&l.xtags===h.Vi.xtags&&(h.Vi=Object.assign({},h.Vi),h.Vi.url=b.find(function(m){return function(n){return n.itag===m.Vi.itag}}(h)).url,h.Vi.signatureCipher="",d.push(h.Vi))}else c.includes(h.Vi.itag)&&
(h.Vi=Object.assign({},h.Vi),h.Vi.url=b.find(function(m){return function(n){return n.itag===m.Vi.itag}}(h)).url,h.Vi.signatureCipher="",d.push(h.Vi));
b=IWa(a,d);US(a)&&a.L("music_web_woffle")&&NTa(b,!1);JWa(a,b);a.ma("dlr",{})}else a.ma("offsdm",{cotn:a.SF?a.SF.cotn:"0",cpn:a.clientPlaybackNonce})};
XS=function(a){if(!a.isProximaLatencyEligible)return!1;var b=DPa();return null!=b?1===b:a.L("html5_enable_proxima")};
GS=function(a){a.Na()||(a.loading=!1,a.publish("dataloaded"))};
JWa=function(a,b,c){c=void 0===c?!1:c;a.j=b;g.N(a,b);b.cf=a.cf;b.Ih=a.Ih;b.bb=a.bb;b.Nb=a.Nb;b.vc=a.vc;a.Nl&&(b.Z=new gQ(a.Nl));(a.vQ()||g.YS(a))&&a.Ga.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.Kl=Number(d[d.indexOf("manifest_duration")+1]));b.B&&(b.subscribe("clienttemp",a.ma,a),c?b.subscribe("refresh",a.F_,a):b.subscribe("cuepointsadded",a.eX,a));mP(b)?a.ip=!0:dR=void 0;a.eb&&(b.C=a.eb,b.isLive=!0,a.isLivePlayback=!0);b.isPremiere=
a.isPremiere;b.isLiveHeadPlayable=a.isLiveHeadPlayable};
cXa=function(a,b){var c=b||GWa(a)||a.isExternallyHostedPodcast;if(!a.j||c)return a.ma("skipDash",{dm:!!a.j,air:b,dd:a.uD,mss:iR(),"3pp":a.isExternallyHostedPodcast}),$A();US(a)&&NTa(a.j,a.isLivePlayback);KS(a,"html5_enable_cobalt_experimental_vp9_decoder")&&uUa(a.Da.G);return aB().then(function(){return aRa(a.Tv,VS(a),a.Da.G,a.j,a.K,function(d){return a.publish("ctmp","fmtflt",d)},a.zG,NS(a)&&a.L("html5_enable_server_format_filter")).then(function(d){bXa(a,d);
a.Tv.j=null;/^av/.test(a.clientPlaybackNonce)&&a.sf&&a.ma("av1",a.sf.j)})})};
dXa=function(a,b){if(b&&a.hlsvp)return $A();if(a.hlsFormats){b=LS(a.hlsFormats);var c;if((null==(c=a.sf)?0:c.B)&&b){c=[];for(var d=g.u(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.ma("hlsfmt",{itags:c.join(".")})}a.iz=oVa(a.Da,b);c=a.clientPlaybackNonce;var f,h,l,m;return tVa(a.Da,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.Jd,c,function(n){return a.publish("ctmp","hlsflt",n)}).then(function(n){for(var p=
0,q=[],r=g.u(n),t=r.next();!t.done;t=r.next()){t=t.value;
var v=void 0;q.push(null==(v=t.getInfo())?void 0:v.itag);var w=v=void 0;(null==(v=t.getInfo())?void 0:null==(w=v.audio)?void 0:w.numChannels)>p&&(p=t.getInfo().audio.numChannels)}2<p&&a.ma("hlschl",{mn:p});var A;(null==(A=a.sf)?0:A.B)&&a.ma("hlsfmtaf",{itags:q.join(".")});var C;if(a.L("html5_enable_vp9_fairplay")&&(null==(C=a.K)?0:$Q(C)))for(a.ma("drm",{sbdlfbk:1}),p=g.u(a.mp),q=p.next();!q.done;q=p.next())if(q=q.value,ZQ(q)){a.K=q;break}ZS(a,n)})}return $A()};
eXa=function(a){if(a.isExternallyHostedPodcast&&a.Tf){var b=LS(a.Tf);if(!b[0])return $A();a.Q3=b[0];return wVa(a.Da,b[0]).then(function(c){ZS(a,c)})}return a.Rl&&a.lU?vVa(a.Da,a.isAd(),a.Rl).then(function(c){ZS(a,c)}):$A()};
gXa=function(a){if(a.isExternallyHostedPodcast)return $A();var b=LS(a.Tf,a.AD);if(a.hlsvp){var c=oWa(a.hlsvp,a.clientPlaybackNonce,a.Jd);b.push(c)}return uVa(a.Da,a.isAd(),b,fXa(a)).then(function(d){ZS(a,d)})};
bXa=function(a,b){a.C=b;if(a.C){b=g.u(a.C.videoInfos);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.containerType;0!==d&&(a.rD[d]=c.id)}}hXa(a);if(a.K&&a.C&&a.C.videoInfos&&!(0>=a.C.videoInfos.length)&&(b=jK(a.C.videoInfos[0]),b!=("fairplay"==a.K.flavor)))for(c=g.u(a.mp),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.K=d;break}};
ZS=function(a,b){a.ud=b;bXa(a,new iP(g.$r(a.ud,function(c){return c.getInfo()})))};
fXa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Da.j.c,cver:a.Da.j.cver};a.lz&&(b.ptk=a.lz,b.oid=a.uU,b.ptchn=a.tU,b.pltype=a.vU,a.Vv&&(b.m=a.Vv));return b};
g.$S=function(a){return JS(a)&&a.Wa?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.le||null};
jXa=function(a){var b=iXa(a);return b&&b.text?g.eF(b.text):a.paidContentOverlayText};
kXa=function(a){var b=iXa(a);return b&&b.durationMs?df(b.durationMs):a.paidContentOverlayDurationMs};
iXa=function(a){var b,c,d;return a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.V(null==(b=a.Ma)?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.playerDisclosure,lXa)||null};
aT=function(a){var b="";if(a.CF)return a.CF;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.eb?"window":"live");a.Yd&&(b="post");return b};
g.bT=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
mXa=function(a){return!!a.xj||!!a.OH||!!a.nz||!!a.oz||a.l1||a.N.focEnabled||a.N.rmktEnabled};
g.cT=function(a){return!!(a.Qc||a.Tf||a.Rl||a.hlsvp||a.Vw())};
FS=function(a){if(a.L("html5_onesie")&&a.errorCode)return!1;var b=g.Fb(a.Ga,"ypc");a.ypcPreview&&(b=!1);return a.ue()&&!a.loading&&(g.cT(a)||g.Fb(a.Ga,"heartbeat")||b)};
LS=function(a,b){a=nqa(a);var c={};if(b){b=g.u(b.split(","));for(var d=b.next();!d.done;d=b.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[d[1]]={width:d[2],height:d[3]})}b=g.u(a);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c[d.itag];e&&(d.width=e.width,d.height=e.height)}return a};
hXa=function(a){var b=a.getAvailableAudioTracks();b=b.concat(a.Mk);for(var c=0;c<a.WC.length;c++)for(var d=a.WC[c],e=0;e<b.length;e++){var f=b[e],h=f.qc.id==d.audioTrackId;if(f.qc.isDefault&&c==a.VY||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.C=a.captionTracks[d.defaultCaptionTrackIndex]);void 0!==d.forcedCaptionTrackIndex&&(f.j=a.captionTracks[d.forcedCaptionTrackIndex]);
f.B=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}};
OWa=function(a,b){a.showShareButton=!!b;var c,d,e=(null==(c=g.V(b,g.pM))?void 0:c.navigationEndpoint)||(null==(d=g.V(b,g.pM))?void 0:d.command);e&&(a.wp=!!g.V(e,nXa))};
qWa=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.Bi=c);if(a.Bi){a.embeddedPlayerConfig=a.Bi.embeddedPlayerConfig||null;if(c=a.Bi.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.Bi.embedPreview){c=c.thumbnailPreviewRenderer;PVa(a,c.controlBgHtml);if(d=c.defaultThumbnail)a.Z=
kS(d);a.L("embeds_web_enable_search_button")&&c.searchButton&&(d=g.V(c.searchButton,g.pM))&&(a.E3=g.V(d.navigationEndpoint,g.dT));(d=g.V(null==c?void 0:c.videoDetails,oXa))&&SWa(a,b,d);d=g.V(null==c?void 0:c.videoDetails,pXa);a.ge=!!c.addToWatchLaterButton;OWa(a,c.shareButton);if(null==d?0:d.musicVideoType)a.musicVideoType=d.musicVideoType;var e,f,h,l,m;if(d=g.V(null==(e=a.getEmbeddedPlayerResponse())?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.PS))AVa(a,d),a.videoId=d.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=df(c.videoDurationSeconds));c.webPlayerActionsPorting&&OVa(a,c.webPlayerActionsPorting);if(e=g.V(null==c?void 0:c.playlist,qXa)){a.jn=!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.eF(c.shortBylineText):"";var n=c.title?g.eF(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.If:!1,dni_color:l===h?a.Kp:""})}b={index:e.currentIndex,list:e.playlistId,playlist_length:e.totalVideos,video:f};e.titleText&&(b.title=g.eF(e.titleText));e.shortBylineText&&(b.author=g.eF(e.shortBylineText));a.vZ=b}var p,q,r;if(b=g.V(null==(p=a.getEmbeddedPlayerResponse())?void 0:null==(q=p.embedPreview)?void 0:null==(r=q.thumbnailPreviewRenderer)?
void 0:r.infoPanel,QWa)){a.CD=Number(null==b?void 0:b.durationMs)||NaN;if(null==b?0:b.infoPanelOverviewViewModel)a.tf=null==b?void 0:b.infoPanelOverviewViewModel;if(null==b?0:b.infoPanelDetailsViewModel)a.Jl=null==b?void 0:b.infoPanelDetailsViewModel}}if(a.Bi.previewPlayabilityStatus){if(a.mz=a.Bi.previewPlayabilityStatus,p=a.mz,!["OK","LIVE_STREAM_OFFLINE"].includes(p.status)){a.errorCode=yVa(p.errorCode);q=p.errorScreen;if(r=null==q?void 0:q.playerErrorMessageRenderer){a.xD=r;if(b=r.reason)a.errorReason=
g.eF(b);if(r=r.subreason)a.Hn=g.eF(r)}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 t;(null==q?0:null==(t=q.playerKavRenderer)?0:t.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=p.isBlockedInRestrictedMode?"5":"0"}}}else a.Bi.playabilityStatus&&(a.un=a.Bi.playabilityStatus,rXa(a)&&(a.errorDetail="0",a.un&&((t=a.un.embeddedPlayerErrorMessageRenderer)?
a.xD=g.V(t,sXa):a.errorReason=a.un.reason||null)));(t=a.Bi.attestation)&&JVa(a,t);(t=a.Bi.permissions)&&t.allowImaMonetization&&(a.allowImaMonetization=!0)}};
SWa=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.V(null==(e=g.V(null==c?void 0:c.channelThumbnailEndpoint,tXa))?void 0:e.urlEndpoint,g.rF))b.channel_path=d.url;if(e=c.collapsedRenderer)if(e=g.V(e,uXa)){if(d=e.title)b.title=g.eF(d);if(e=e.subtitle)b.subtitle=g.eF(e)}if(c=c.expandedRenderer)if(c=g.V(c,vXa)){if(e=c.title)b.expanded_title=g.eF(e);if(e=c.subtitle)b.expanded_subtitle=g.eF(e);if(c=c.subscribeButton)a.subscribeButtonRenderer=
g.V(c,g.eT),a.subscribeButtonRenderer&&(b.ucid=a.subscribeButtonRenderer.channelId,b.subscribed=a.subscribeButtonRenderer.subscribed,a.Ql=!!a.subscribeButtonRenderer.notificationPreferenceToggleButton,a.subscribeButtonRenderer.notificationPreferenceToggleButton&&a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.uN=b.toggledServiceEndpoint||null,a.tN=b.defaultServiceEndpoint||
null):(a.uN=b.defaultServiceEndpoint||null,a.tN=b.toggledServiceEndpoint||null)))}};
g.fT=function(a){return MS(a)&&!a.allowLiveDvr};
gT=function(a){return MS(a)&&a.allowLiveDvr};
MS=function(a){return a.L("html5_live_head_playable")&&OS(a)&&"yt"===a.Da.ra?a.isLiveHeadPlayable:a.isLivePlayback};
g.hT=function(a){return!!a.j&&oTa(a.j)};
g.iT=function(a){return!!a.j&&pTa(a.j)};
g.jT=function(a){return!!a.j&&qTa(a.j)};
g.YS=function(a){return!!a.j&&rTa(a.j)};
g.wXa=function(a){if(a.XC)return null;var b=a.mU;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.xXa=function(a){return a.XC?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.kT=function(a){return a.L("enable_wn_infocards")};
g.lT=function(a){var b,c,d,e;return(g.kT(a)?null==(b=a.Ma)?void 0:null==(c=b.cards)?void 0:c.cardCollectionRenderer:null==(d=a.playerResponse)?void 0:null==(e=d.cards)?void 0:e.cardCollectionRenderer)||null};
g.yXa=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.u(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};
mT=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.eventLabel||a.Da.La};
g.nT=function(a){return"shortspage"===mT(a)};
TS=function(a){return a.fk()&&a.U().supportsGaplessShorts()};
oT=function(a){if(a.isAd()&&a.videoId!=a.Da.sf)return a.Da.sf};
pT=function(a){return a.xl||"detailpage"==mT(a)||"shortspage"==mT(a)||a.mutedAutoplay};
zXa=function(a){var b=a.L("enable_cleanup_masthead_autoplay_hack_fix");return b&&"adunit"==mT(a)?a.Eq:pT(a)?"detailpage"==mT(a)||"shortspage"==mT(a)?a.isAutonav||0<a.Sb:b||"17_8"!==a.adFormat||a.isAutonav||g.TR(a.Da)||a.Eq?a.Ig?!1:a.Da.wi||a.Da.Oi||!g.BR(a.Da)?!b&&"adunit"==mT(a)&&a.xj?!1:!0:!1:!1:(a.Ig?0:a.Oi)&&g.BR(a.Da)?!0:!1};
g.qT=function(a){return a.oauthToken||a.Da.yj};
AXa=function(a){var b=1,c=g.xI(a.Da.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);var d;c=Infinity;if(a.L("html5_combine_format_loudness_and_video_target_loudness"))if(c=(null==(d=a.D)?void 0:d.audio.B)||a.r_){var e;d=c-(null!=(e=a.loudnessTargetLkfs)?e:0)}else d=a.Qf;else{var f;d=(null==(f=a.D)?void 0:f.audio.C)||a.Qf}if(a.L("html5_stateful_audio_normalization")){if(!isFinite(c))return b;c=Math.max(c,a.minimumLoudnessTargetLkfs);a.applyStatefulNormalization?(Date.now()-a.Da.Nk>1E3*a.maxStatefulTimeThresholdSec&&
(a.Da.Mk=Infinity,a.Da.Nk=Infinity),e=Math.min(a.loudnessTargetLkfs,a.Da.Mk)):e=Math.min(a.loudnessTargetLkfs,c);e=Math.min(e-c,0);a.preserveStatefulLoudnessTarget&&(a.Da.Mk=c+e,a=a.Da,c=Date.now(),a.Nk=c);return Math.min(1,Math.pow(10,e/20))||b}return Math.min(1,Math.pow(10,-d/20))||b};
US=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===g.fR(a.Da)&&"MUSIC"===a.Da.j.ctheme;a.Bj||!g.cG(a.Da)&&!c||!b.includes(a.musicVideoType)&&!a.isExternallyHostedPodcast||(a.Bj=!0);if(b=g.hB())b=/Starboard\/([0-9]+)/.exec(g.pc()),b=10>(b?parseInt(b[1],10):NaN);c=a.Da;c=("TVHTML5_CAST"===g.fR(c)||"TVHTML5"===g.fR(c)&&(c.j.cver.startsWith("6.20130725")||c.j.cver.startsWith("6.20130726")))&&"MUSIC"===a.Da.j.ctheme;var d;if(d=!a.Bj)c||(c=a.Da,c=
"TVHTML5"===g.fR(c)&&c.j.cver.startsWith("7")),d=c;d&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.L("cast_prefer_audio_only_for_atv_and_uploads")||a.L("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c||a.isExternallyHostedPodcast)&&(a.Bj=!0);return a.Da.deviceIsAudioOnly||a.Bj&&a.Da.N};
BXa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
rT=function(a){return!(!a.qn||!a.Da.N)&&a.Vw()};
CXa=function(a){return a.enablePreroll&&a.enableServerStitchedDai};
DXa=function(a){return a.L("html5_enable_sabr_from_watch_server")&&a.xN&&!a.Nl};
NS=function(a){if(a.N0||a.cotn||!a.j||a.j.isOtf||a.u3&&!a.L("html5_enable_sabr_csdai"))return!1;if(a.L("html5_use_sabr_requests_for_debugging"))return!0;if(a.L("html5_enable_sabr_from_watch_server"))return a.xN&&!!a.Nl;var b=!a.j.dc&&!a.Xi(),c=b&&gR&&a.L("html5_enable_sabr_vod_streaming_xhr");b=b&&!gR&&a.L("html5_enable_sabr_vod_non_streaming_xhr");var d=EXa(a),e=a.L("html5_enable_sabr_drm_vod_streaming_xhr")&&a.Xi()&&!a.j.dc&&gR&&("1"===a.Nk?!1:!0);(c=c||b||d||e)&&!a.Nl&&a.ma("sabr",{loc:"m"},!0);
return c&&!!a.Nl};
EXa=function(a){var b;if(!(b=a.dc()&&a.Xi()&&gR&&("1"===a.Nk?!1:!0)&&a.L("html5_sabr_live_drm_streaming_xhr"))){b=a.dc()&&!a.Xi()&&gR;var c=a.dc()&&"ULTRALOW"!==a.latencyClass&&!a.isLowLatencyLiveStream&&a.L("html5_sabr_live_normal_latency_streaming_xhr"),d=a.isLowLatencyLiveStream&&a.L("html5_sabr_live_low_latency_streaming_xhr"),e="ULTRALOW"===a.latencyClass&&a.L("html5_sabr_live_ultra_low_latency_streaming_xhr");b=b&&(c||d||e)}c=b;b=a.enableServerStitchedDai&&c&&a.L("html5_enable_sabr_ssdai_streaming_xhr");
c=!a.enableServerStitchedDai&&c;a=a.dc()&&!gR&&a.L("html5_enable_sabr_live_non_streaming_xhr");return b||c||a};
g.sT=function(a){return a.i_&&NS(a)};
HWa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.sS(b);return b&&!a.qn};
g.tT=function(a){if(!a.j||!a.B||!a.D)return!1;var b=a.j.j,c=!!b[a.B.id]&&vP(b[a.B.id].resource.j);b=!!b[a.D.id]&&vP(b[a.D.id].resource.j);return("0"===a.B.itag||c)&&b};
FXa=function(a){return a.mz?["OK","LIVE_STREAM_OFFLINE"].includes(a.mz.status):!0};
rXa=function(a){return(a=a.un)&&a.showError?a.showError:!1};
KS=function(a,b){return a.L(b)?!0:(a.fflags||"").includes(b+"=true")};
zWa=function(a){return a.L("html5_heartbeat_iff_heartbeat_params_filled")};
GXa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
xWa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.oz=new VVa(b));if(b=b.video_masthead_ad_quartile_urls)a.OH=b.quartile_0_url,a.TV=b.quartile_25_url,a.UV=b.quartile_50_url,a.VV=b.quartile_75_url,a.PV=b.quartile_100_url,a.nz=b.quartile_0_urls,a.KC=b.quartile_25_urls,a.MC=b.quartile_50_urls,a.OC=b.quartile_75_urls,a.IC=b.quartile_100_urls};
wWa=function(a){var b={};a=g.u(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0}return b};
tWa=function(a){if(a){if(ICa(a))return a;a=JCa(a);if(ICa(a,!0))return a}return""};
g.HXa=function(a){return a.captionsLanguagePreference||a.Da.captionsLanguagePreference||g.bT(a,"yt:cc_default_lang")||a.Da.sj};
uT=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())};
g.QS=function(a){var b;return a.Gv||(null==(b=a.suggestions)?void 0:b[0])||null};
IXa=function(a){var b={isSabr:NS(a)},c;if(a=null==(c=a.getHeartbeatResponse())?void 0:c.adBreakHeartbeatParams)b.adBreakHeartbeatParams=a;return b};
g.vT=function(a){return a.If&&a.Da.kp};
g.wT=function(a){var b,c;return!!(null==(b=a.embeddedPlayerConfig)?0:null==(c=b.embeddedPlayerFlags)?0:c.enableMusicUx)};
g.xT=function(a){var b=a.U(),c=g.JXa(b),d=a.Ca;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=mT(a);"leanback"===f?e="WATCH":b.L("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.Ab?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.jp)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:KXa[e]}});if(b=a.MA)d.unpluggedAppInfo=
{enableFilterMode:!0};(e=a.unpluggedFilterModeType)&&!b&&(d.unpluggedAppInfo={filterModeType:LXa[e]});if(b=a.qa)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.Pf&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=MXa[b];c.request=d;d=c.user||{};if(b=a.Ha)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.Jb)d.delegatePurchases={oauthToken:b},d.kidsParent={oauthToken:b};c.user=d;if(d=a.contextParams)c.activePlayers=[{playerContextParams:d}];
if(a=a.clientScreenNonce)c.clientScreenNonce=a;return c};
g.JXa=function(a){var b=g.jG(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.u(d);for(var f=d.next();!f.done;f=d.next())e.push(Number(f.value));c.experimentIds=e}if(e=a.homeGroupInfo)c.homeGroupInfo=JSON.parse(e);if(e=a.getPlayerType())c.playerType=e;if(e=a.j.ctheme)c.theme=e;if(e=a.livingRoomAppMode)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomAppMode:e});e=a.deviceYear;a.L("html5_propagate_device_year")&&e&&(c.tvAppInfo=Object.assign({},c.tvAppInfo,
{deviceYear:e}));if(e=a.livingRoomPoTokenId)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomPoTokenId:e});b.client=c;c=b.user||{};a.enableSafetyMode&&(c=Object.assign({},c,{enableSafetyMode:!0}));a.pageId&&(c=Object.assign({},c,{onBehalfOfUser:a.pageId}));b.user=c;if(a=a.Qc)b.thirdParty={embedUrl:a};return b};
RXa=function(a,b,c){var d=a.videoId,e=g.xT(a),f=a.U(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(QD()),referer:document.location.toString(),signatureTimestamp:19879};g.UB();a.isAutonav&&(h.autonav=!0);g.VB(0,141)&&(h.autonavState=g.VB(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.VB(0,66);zXa(a)&&(h.autoplay=!0);f.N&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.isFling&&(h.fling=!0);var l=a.forceAdsUrl;if(l){var m={},n=[];l=
l.split(",");l=g.u(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");3!==q.length||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.u(q);for(var r=q.next();!r.done;r=q.next()){var t=g.u(r.value.split("="));r=t.next().value;t=eaa(t);p[r]=t.join("=")}q=p.url;r=p.presetad;t=p.viralresponseurl;var v=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),r&&(m.presetAd=r),t&&(m.viralAdResponseUrl=t),v&&(m.viralCampaignId=
String(v));else if("video_ad"===p.adtype){var w={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=NXa[p.breaktype])w.breakType=p;q&&(w.url=q);r&&(w.presetAd=r);t&&(w.viralAdResponseUrl=t);v&&(w.viralCampaignId=String(v));n.push(w)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.LF;if(null!=m){m={startWalltime:String(m)};if(n=a.Kl)m.manifestDuration=String(n||14400);
h.liveContext=m}a.mutedAutoplay&&(h.mutedAutoplay=!0);if(a.Ig?0:a.Oi)h.splay=!0;m=a.vnd;5===m&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.ww)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Ij){n=a.RC;l=[];p=g.u(PQa(p));for(q=p.next();!q.done;q=p.next()){q=q.value;r=q.platform;q={applicationState:q.aZ?"INACTIVE":"ACTIVE",clientFormFactor:OXa[r]||"UNKNOWN_FORM_FACTOR",clientName:RQa[q.R1]||"UNKNOWN_INTERFACE",clientVersion:q.deviceVersion||"",platform:PXa[r]||"UNKNOWN_PLATFORM"};
r={};if(n){t=void 0;try{t=JSON.parse(n)}catch(A){g.BE(A)}t&&(r={params:[{key:"ms",value:t.ms}]},t.advertising_id&&(r.advertisingId=t.advertising_id),void 0!==t.limit_ad_tracking&&null!==t.limit_ad_tracking&&(r.limitAdTracking=t.limit_ad_tracking),q.osName=t.os_name,q.userAgent=t.user_agent,q.windowHeightPoints=t.window_height_points,q.windowWidthPoints=t.window_width_points)}l.push({adSignalsInfo:r,remoteClient:q})}m.remoteContexts=l}n=a.sourceContainerPlaylistId;l=a.serializedMdxMetadata;if(n||l)p=
{},n&&(p.mdxPlaybackContainerInfo={sourceContainerPlaylistId:n}),l&&(p.serializedMdxMetadata=l),m.mdxPlaybackSourceContext=p;h.mdxContext=m;m=b.width;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.BR(f)&&h&&(h.ancestorOrigins=f.ancestorOrigins);a.defaultActiveSourceVideoId&&(h.compositeVideoContext={defaultActiveSourceVideoId:a.defaultActiveSourceVideoId});if(f=f.getWebPlayerContextConfig())h.encryptedHostFlags=
f.encryptedHostFlags;d={videoId:d,context:e,playbackContext:{contentPlaybackContext:h}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&(d.racyCheckOk=!0);QXa&&0<a.startSeconds&&(d.startTimeSecs=a.startSeconds);e=a.U();if(h=e.embedConfig)d.serializedThirdPartyEmbedConfig=h;d.captionParams={};h=g.VB(g.UB(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.RR(e)&&
(d.captionParams.deviceCaptionsOn=null!=h?!h:!1);a.uZ&&(d.captionParams.deviceCaptionsLangPref=a.uZ);a.zN.length?d.captionParams.viewerSelectedCaptionLangs=a.zN:g.RR(e)&&(h=g.NPa(),null==h?0:h.length)&&(d.captionParams.viewerSelectedCaptionLangs=h);h="onesie"===a.fetchType&&a.L("html5_onesie_attach_po_token");f="onesie"!==a.fetchType&&a.L("html5_non_onesie_attach_po_token");if(h||f)a=a.U(),a.Uf&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.Uf);e.L("fetch_att_independently")&&
(d.attestationRequest={omitBotguardData:!0});e.L("html5_enable_sabr_from_watch_server")&&(d.playbackContext||(d.playbackContext={}),d.playbackContext.devicePlaybackCapabilities={supportXhr:gR});return d};
TXa=function(a,b){var c,d,e;return g.G(function(f){if(1==f.j)return c={context:g.JXa(a.U()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.mG(SXa),g.z(f,g.eH(b,c,d),2);e=f.B;return f.return(e)})};
UXa=function(a,b,c){tPa(g.xI(b.experiments,"bg_vm_reinit_threshold"))&&TXa(a,c).then(function(d){d&&(d=d.botguardData)&&g.BPa(d,b)},function(d){a.Na()||(d=TJ(d),a.ma("attf",d.details))})};
yT=function(a,b){g.I.call(this);this.app=a;this.state=b};
AT=function(a,b,c){a.state.Y[b]=function(){return c.apply(a,g.Ia.apply(0,arguments))};
a.state.B.hasOwnProperty(b)||zT(a,b,c);a.state.Z.add(b)};
BT=function(a,b,c){a.state.qa[b]=function(){return c.apply(a,g.Ia.apply(0,arguments))};
a.state.B.hasOwnProperty(b)||zT(a,b,c);a.state.Z.add(b)};
zT=function(a,b,c){a.state.B[b]=function(){return c.apply(a,g.Ia.apply(0,arguments))}};
g.CT=function(a,b,c){return a.state.B[b].apply(a.state.B,g.qa(c))};
DT=function(){g.iw.call(this);this.G=new Map};
VXa=function(){g.I.apply(this,arguments);this.element=null;this.Z=new Set;this.Y={};this.qa={};this.B={};this.K={};this.G=void 0;this.ra=new Set;this.C=new DT;this.j=new DT;this.D=new DT;this.N=new DT};
WXa=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 ET(a)};
ET=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b={};c=g.u(XXa);for(var d=c.next();!d.done;d=c.next())d=d.value,a[d]&&(b[d]=a[d]);return b};
YXa=function(a,b,c,d){if(g.db(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};
FT=function(a,b,c){yT.call(this,a,b);this.playerType=c};
$Xa=function(a){AT(a,"cueVideoById",a.K7);AT(a,"loadVideoById",a.n$);AT(a,"cueVideoByUrl",a.N7);AT(a,"loadVideoByUrl",a.q$);AT(a,"playVideo",a.Pca);AT(a,"pauseVideo",a.pauseVideo);AT(a,"stopVideo",a.nea);AT(a,"clearVideo",a.clearVideo);AT(a,"getVideoBytesLoaded",a.W8);AT(a,"getVideoBytesTotal",a.X8);AT(a,"getVideoLoadedFraction",a.wY);AT(a,"getVideoStartBytes",a.a9);AT(a,"cuePlaylist",a.cuePlaylist);AT(a,"loadPlaylist",a.m$);AT(a,"nextVideo",a.T$);AT(a,"previousVideo",a.cda);AT(a,"playVideoAt",a.Oca);
AT(a,"setShuffle",a.setShuffle);AT(a,"setLoop",a.setLoop);AT(a,"getPlaylist",a.T8);AT(a,"getPlaylistIndex",a.getPlaylistIndex);AT(a,"getPlaylistId",a.getPlaylistId);AT(a,"loadModule",a.KZ);AT(a,"unloadModule",a.N2);AT(a,"setOption",a.bT);AT(a,"getOption",a.M8);AT(a,"getOptions",a.AP);AT(a,"mute",a.S$);AT(a,"unMute",a.Nea);AT(a,"isMuted",a.isMuted);AT(a,"setVolume",a.bea);AT(a,"getVolume",a.getVolume);AT(a,"seekTo",a.Nda);AT(a,"getPlayerMode",a.getPlayerMode);AT(a,"getPlayerState",a.Q8);AT(a,"getAvailablePlaybackRates",
a.getAvailablePlaybackRates);AT(a,"getPlaybackQuality",function(){return a.getPlaybackQuality(1)});
AT(a,"setPlaybackQuality",a.Wda);AT(a,"getAvailableQualityLevels",a.A8);AT(a,"getCurrentTime",a.D8);AT(a,"getDuration",a.H8);AT(a,"addEventListener",a.c7);AT(a,"removeEventListener",a.pda);AT(a,"getDebugText",a.F8);AT(a,"getVideoData",function(){return ZXa(a)});
AT(a,"addCueRange",a.Y6);AT(a,"removeCueRange",a.removeCueRange);AT(a,"setSize",a.setSize);AT(a,"getApiInterface",a.getApiInterface);AT(a,"destroy",a.destroy);AT(a,"mutedAutoplay",a.mutedAutoplay);var b=a.app.U();b.K||(AT(a,"getVideoEmbedCode",a.getVideoEmbedCode),AT(a,"getVideoUrl",a.c9));AT(a,"getMediaReferenceTime",a.L8);AT(a,"getSize",a.getSize);AT(a,"setFauxFullscreen",a.Tda);b.K||AT(a,"logImaAdEvent",a.logImaAdEvent);AT(a,"preloadVideoById",a.Xca)};
aYa=function(a){var b=g.JR(a.app.U()),c,d=null==(c=a.app.getVideoData())?void 0:c.jn;a=g.GT(a.app);return g.tB(b)&&!d||a?!1:!0};
ZXa=function(a,b){var c={};if(b=g.HT(a.app,void 0===b?1:b)){b=b.getVideoData();if(b.isPrivate)return{};c.video_id=b.videoId;c.author=b.author;c.title=b.title;c.isPlayable=FXa(b);c.errorCode=b.errorCode;if(b.B&&b.B.video){c.video_quality=b.B.video.quality;b=b.B.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};
bYa=function(a,b,c){FT.call(this,a,b,c)};
gYa=function(a,b){var c={};if(a.app.U().qa){a=g.u(cYa);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);if(b=c.qoe_cat)a="","string"===typeof b&&0<b.length&&(a=b.split(",").filter(function(e){return dYa.includes(e)}).join(",")),c.qoe_cat=a;
eYa(c)}else for(a=g.u(fYa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
eYa=function(a){var b=a.raw_player_response;if(!b){var c=a.player_response;c&&(b=JSON.parse(c))}delete a.player_response;delete a.raw_player_response;b&&(a.raw_player_response={streamingData:b.streamingData})};
g.IT=function(a){return(a=hYa(a.app.yb()))?a.Di():null};
iYa=function(a,b,c){var d=a.app.Ye(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
kYa=function(a){var b=void 0===b?5:b;return a?jYa[a]||b:b};
g.JT=function(a,b,c,d){FT.call(this,a,b,d);c&&(lYa(this),a.U().N&&(BT(this,"addEventListener",this.d7),BT(this,"removeEventListener",this.qda),BT(this,"cueVideoByPlayerVars",this.M7),BT(this,"loadVideoByPlayerVars",this.p$),BT(this,"preloadVideoByPlayerVars",this.Zca),BT(this,"loadVideoById",this.MZ),BT(this,"loadVideoByUrl",this.NZ),BT(this,"playVideo",this.hS),BT(this,"loadPlaylist",this.loadPlaylist),BT(this,"nextVideo",this.nextVideo),BT(this,"previousVideo",this.previousVideo),BT(this,"playVideoAt",
this.playVideoAt),BT(this,"getVideoData",this.vY),BT(this,"seekBy",this.Lda),BT(this,"seekTo",this.Oda),BT(this,"showControls",this.showControls),BT(this,"hideControls",this.hideControls),BT(this,"cancelPlayback",this.cancelPlayback),BT(this,"getProgressState",this.getProgressState),BT(this,"isInline",this.isInline),BT(this,"setInline",this.setInline),BT(this,"setLoopVideo",this.setLoopVideo),BT(this,"getLoopVideo",this.getLoopVideo),BT(this,"getVideoContentRect",this.getVideoContentRect),BT(this,
"getVideoStats",this.b9),BT(this,"getCurrentTime",this.E8),BT(this,"getDuration",this.I8),BT(this,"getPlayerState",this.S8),BT(this,"getVideoLoadedFraction",this.Z8),BT(this,"mute",this.NK),BT(this,"unMute",this.xM),BT(this,"setVolume",this.cM),BT(this,"loadModule",this.loadModule),BT(this,"unloadModule",this.unloadModule),BT(this,"getOption",this.getOption),BT(this,"getOptions",this.getOptions),BT(this,"setOption",this.setOption),BT(this,"addCueRange",this.addCueRange),BT(this,"getDebugText",this.getDebugText),
BT(this,"getStoryboardFormat",this.getStoryboardFormat),BT(this,"toggleFullscreen",this.toggleFullscreen),BT(this,"isFullscreen",this.isFullscreen),BT(this,"getPlayerSize",this.getPlayerSize),BT(this,"toggleSubtitles",this.toggleSubtitles),BT(this,"setCenterCrop",this.setCenterCrop),BT(this,"setFauxFullscreen",this.setFauxFullscreen),BT(this,"setSizeStyle",this.setSizeStyle),BT(this,"handleGlobalKeyDown",this.handleGlobalKeyDown),BT(this,"handleGlobalKeyUp",this.handleGlobalKeyUp),BT(this,"wakeUpControls",
this.wakeUpControls)),$Xa(this))};
lYa=function(a){zT(a,"getInternalApiInterface",a.getInternalApiInterface);zT(a,"addEventListener",a.b7);zT(a,"removeEventListener",a.oda);zT(a,"cueVideoByPlayerVars",a.L7);zT(a,"loadVideoByPlayerVars",a.o$);zT(a,"preloadVideoByPlayerVars",a.Yca);zT(a,"getAdState",a.getAdState);zT(a,"sendAbandonmentPing",a.sendAbandonmentPing);zT(a,"setLoopRange",a.setLoopRange);zT(a,"getLoopRange",a.getLoopRange);zT(a,"setAutonavState",a.setAutonavState);zT(a,"seekTo",a.seekTo);zT(a,"seekBy",a.seekBy);zT(a,"seekToLiveHead",
a.seekToLiveHead);zT(a,"requestSeekToWallTimeSeconds",a.requestSeekToWallTimeSeconds);zT(a,"seekToStreamTime",a.seekToStreamTime);zT(a,"startSeekCsiAction",a.startSeekCsiAction);zT(a,"getStreamTimeOffset",a.getStreamTimeOffset);zT(a,"getVideoData",a.Y8);zT(a,"setInlinePreview",a.setInlinePreview);zT(a,"getAppState",a.getAppState);zT(a,"updateLastActiveTime",a.updateLastActiveTime);zT(a,"setBlackout",a.setBlackout);zT(a,"setUserEngagement",a.setUserEngagement);zT(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings);
zT(a,"getPresentingPlayerType",a.GJ);zT(a,"canPlayType",a.canPlayType);zT(a,"updatePlaylist",a.updatePlaylist);zT(a,"updateVideoData",a.updateVideoData);zT(a,"updateEnvironmentData",a.updateEnvironmentData);zT(a,"sendVideoStatsEngageEvent",a.Rda);zT(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);zT(a,"setSafetyMode",a.setSafetyMode);zT(a,"isAtLiveHead",function(b){return a.isAtLiveHead(void 0,b)});
zT(a,"getVideoAspectRatio",a.getVideoAspectRatio);zT(a,"getPreferredQuality",a.getPreferredQuality);zT(a,"getPlaybackQualityLabel",a.getPlaybackQualityLabel);zT(a,"setPlaybackQualityRange",a.setPlaybackQualityRange);zT(a,"onAdUxClicked",a.onAdUxClicked);zT(a,"getFeedbackProductData",a.getFeedbackProductData);zT(a,"getStoryboardFrame",a.getStoryboardFrame);zT(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);zT(a,"getStoryboardLevel",a.getStoryboardLevel);zT(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels);
zT(a,"getCaptionWindowContainerId",a.getCaptionWindowContainerId);zT(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);zT(a,"addCueRange",a.addCueRange);zT(a,"addUtcCueRange",a.addUtcCueRange);zT(a,"showAirplayPicker",a.showAirplayPicker);zT(a,"dispatchReduxAction",a.dispatchReduxAction);zT(a,"getPlayerResponse",a.O8);zT(a,"getWatchNextResponse",a.d9);zT(a,"getHeartbeatResponse",a.J8);zT(a,"changeMarkerVisibility",a.changeMarkerVisibility);zT(a,"getCurrentTime",a.getCurrentTime);zT(a,"getDuration",
a.getDuration);zT(a,"getPlayerState",a.getPlayerState);zT(a,"getPlayerStateObject",a.P8);zT(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);zT(a,"getProgressState",a.getProgressState);zT(a,"getVolume",a.getVolume);zT(a,"setVolume",a.cM);zT(a,"isMuted",a.isMuted);zT(a,"mute",a.NK);zT(a,"unMute",a.xM);zT(a,"loadModule",a.loadModule);zT(a,"unloadModule",a.unloadModule);zT(a,"getOption",a.getOption);zT(a,"getOptions",a.getOptions);zT(a,"setOption",a.setOption);zT(a,"loadVideoById",a.MZ);zT(a,"loadVideoByUrl",
a.NZ);zT(a,"playVideo",a.hS);zT(a,"loadPlaylist",a.loadPlaylist);zT(a,"nextVideo",a.nextVideo);zT(a,"previousVideo",a.previousVideo);zT(a,"playVideoAt",a.playVideoAt);zT(a,"getDebugText",a.getDebugText);zT(a,"getWebPlayerContextConfig",a.getWebPlayerContextConfig);zT(a,"notifyShortsAdSwipeEvent",a.notifyShortsAdSwipeEvent);zT(a,"getVideoContentRect",a.getVideoContentRect);zT(a,"setSqueezeback",a.setSqueezeback);zT(a,"setAutonav",a.setAutonav);zT(a,"isNotServable",a.isNotServable);zT(a,"channelSubscribed",
a.channelSubscribed);zT(a,"channelUnsubscribed",a.channelUnsubscribed);zT(a,"togglePictureInPicture",a.togglePictureInPicture);zT(a,"supportsGaplessAudio",a.supportsGaplessAudio);zT(a,"supportsGaplessShorts",a.supportsGaplessShorts);zT(a,"enqueueVideoByPlayerVars",function(b){return void a.enqueueVideoByPlayerVars(b)});
zT(a,"clearQueue",a.clearQueue);zT(a,"getAudioTrack",a.w8);zT(a,"setAudioTrack",a.setAudioTrack);zT(a,"getAvailableAudioTracks",a.z8);zT(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);zT(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);zT(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);zT(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);zT(a,"setMinimized",a.setMinimized);zT(a,"setOverlayVisibility",a.setOverlayVisibility);zT(a,"confirmYpcRental",a.confirmYpcRental);
zT(a,"toggleSubtitlesOn",a.toggleSubtitlesOn);zT(a,"isSubtitlesOn",a.isSubtitlesOn);zT(a,"queueNextVideo",a.queueNextVideo);zT(a,"handleExternalCall",a.handleExternalCall);zT(a,"logApiCall",a.logApiCall);zT(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);zT(a,"setScreenLayer",a.setScreenLayer);zT(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);zT(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);zT(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);zT(a,
"syncVolume",a.syncVolume);zT(a,"highlightSettingsMenuItem",a.highlightSettingsMenuItem);zT(a,"openSettingsMenuItem",a.openSettingsMenuItem);zT(a,"getEmbeddedPlayerResponse",a.getEmbeddedPlayerResponse);zT(a,"getVisibilityState",a.getVisibilityState);zT(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);zT(a,"setGlobalCrop",a.setGlobalCrop);zT(a,"setInternalSize",a.setInternalSize);zT(a,"setFauxFullscreen",a.setFauxFullscreen)};
nYa=function(a){a.state.G||(a.state.G={addEventListener:function(b,c){mYa(a,b,c)},
removeEventListener:function(b,c){c="string"===typeof c?b+c:b+String(g.fb(c));var d=a.state.K[c];d&&(a.state.j.unsubscribe(b,d),delete a.state.K[c])}});
return a.state.G};
mYa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.fb(c));if(!a.state.K[d]){var e=function(f){c({target:a.state.G,data:f})};
a.state.K[d]=e;a.state.j.subscribe(b,e)}};
LT=function(a,b,c){a=g.KT(a.Se(),b);return c?(c.addOnDisposeCallback(a),null):a};
g.MT=function(a,b,c){return a.app.U().tf?b:g.jJ("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c})};
oYa=function(a){a.Se().element.setAttribute("aria-live","polite")};
g.NT=function(a,b){g.JT.call(this,a,b,!1)};
g.OT=function(a){a=a.yb();var b=a.Fe.get("endscreen");return b&&b.Xu()?!0:a.fH()};
g.PT=function(a,b){3===a.getPresentingPlayerType()?a.publish("mdxautoplaycancel"):a.jb("onAutonavCancelled",b)};
g.RT=function(a){var b=QT(a.yb());return a.app.Ci&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.il()&&b.Rp()||!!a.getPlaylist()};
g.pYa=function(a,b,c){g.CT(a,"addEmbedsConversionTrackingParams",[b]);g.XO(b,c)};
g.TT=function(a){return(a=g.ST(a.yb()))?a.JJ():{}};
g.qYa=function(a){a=(a=a.getVideoData())&&a.B;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.UT=function(a,b,c){a=a.ob().element;var d=Tb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));Df(a,b,d);b.setAttribute("data-layer",String(c))};
g.VT=function(a){var b=a.U();if(!b.je)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay"))&&!uT(c);d=c.isLivePlayback&&(!b.L("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.L("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.il();var f=c.Ma&&c.Ma.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.If&&f;return!c.ypcPreview&&(!d||e)&&!g.Fb(c.Ga,"ypc")&&
!a&&(!g.BR(b)||f)};
rYa=function(a){a=g.HT(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||1080>b.B.video.j||b.r3)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.B.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.ma("iqss",{trigger:d},!0),!0):!1};
sYa=function(){TB.apply(this,arguments);this.requestHeaders={}};
WT=function(){tYa||(tYa=new sYa);return tYa};
XT=function(a,b){b?a.requestHeaders.Authorization="Bearer "+b:delete a.requestHeaders.Authorization};
g.ZT=function(a,b,c,d){d=void 0===d?!1:d;g.bF.call(this,b);var e=this;this.J=a;this.Ha=d;this.N=new g.YJ(this);this.qa=new g.FF(this,c,!0,void 0,void 0,function(){e.UX()});
g.N(this,this.N);g.N(this,this.qa)};
uYa=function(a){a.B&&(document.activeElement&&g.Jf(a.element,document.activeElement)&&a.B.focus(),a.B.setAttribute("aria-expanded","false"),a.B=void 0);g.MB(a.N);a.Y=void 0};
$T=function(a,b,c){a.gk()?a.Mb():a.rd(b,c)};
vYa=function(a,b,c,d){d=new g.W({I:"div",Ka:["ytp-linked-account-popup-button"],xa:d,X:{role:"button",tabindex:"0"}});b=new g.W({I:"div",S:"ytp-linked-account-popup",X:{role:"dialog","aria-modal":"true",tabindex:"-1"},V:[{I:"div",S:"ytp-linked-account-popup-title",xa:b},{I:"div",S:"ytp-linked-account-popup-description",xa:c},{I:"div",S:"ytp-linked-account-popup-buttons",V:[d]}]});g.ZT.call(this,a,{I:"div",S:"ytp-linked-account-popup-container",V:[b]},100);var e=this;this.dialog=b;g.N(this,this.dialog);
d.listen("click",function(){e.Mb()});
g.N(this,d);g.UT(this.J,this.element,4);this.hide()};
g.aU=function(a,b,c,d){g.bF.call(this,a);this.priority=b;c&&this.Gk(c);d&&this.Kd(d)};
g.bU=function(a,b,c,d){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;d=void 0===d?!1:d;b.push("ytp-menuitem");var e=a;"role"in e||(e.role="menuitem");c||(e=a,"tabindex"in e||(e.tabindex="0"));a={I:c?"a":"div",Ka:b,X:a,V:[{I:"div",S:"ytp-menuitem-icon",xa:"{{icon}}"},{I:"div",S:"ytp-menuitem-label",xa:"{{label}}"},{I:"div",S:"ytp-menuitem-content",xa:"{{content}}"}]};d&&a.V.push({I:"div",S:"ytp-menuitem-secondary-icon",xa:"{{secondaryIcon}}"});return a};
cU=function(a){g.aU.call(this,g.bU({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.J=a;this.B=this.j=!1;this.Cb=a.Pn();a.createServerVe(this.element,this,!0);this.T(this.J,"settingsMenuVisibilityChanged",function(c){b.Lc(c)});
this.T(this.J,"videodatachange",this.D);this.listen("click",this.onClick);this.D()};
dU=function(a){return a?g.eF(a):""};
eU=function(a){g.I.call(this);this.api=a};
fU=function(a){eU.call(this,a);var b=this;zT(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)});
zT(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)});
a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)});
a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new cU(b.api);g.N(b,b.menuItem)})};
wYa=function(a){this.api=a;this.j={}};
gU=function(a,b,c,d){b in a.j||(c=new g.cJ(c,d,{id:b,priority:2,namespace:"appad"}),a.api.hf([c],1),a.j[b]=c)};
xYa=function(a){eU.call(this,a);var b=this;this.events=new g.YJ(this);g.N(this,this.events);this.j=new wYa(this.api);this.events.T(this.api,"legacyadtrackingpingreset",function(){b.j.j={}});
this.events.T(this.api,"legacyadtrackingpingchange",function(c){var d=b.j;gU(d,"part2viewed",1,0x8000000000000);gU(d,"engagedview",Math.max(1,1E3*c.Hb),0x8000000000000);c.isLivePlayback||(c=1E3*c.lengthSeconds,gU(d,"videoplaytime25",.25*c,c),gU(d,"videoplaytime50",.5*c,c),gU(d,"videoplaytime75",.75*c,c),gU(d,"videoplaytime100",c,0x8000000000000),gU(d,"conversionview",c,0x8000000000000),gU(d,"videoplaybackstart",1,c),gU(d,"videoplayback2s",2E3,c),gU(d,"videoplayback10s",1E4,c))});
this.events.T(this.api,g.dJ("appad"),this.B);this.events.T(this.api,g.eJ("appad"),this.B)};
BYa=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.u(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d={CPN:a.api.getVideoData().clientPlaybackNonce};c=g.cv(c,d);d=void 0;d=void 0===d?!1:d;(d=XI(YI(c,yYa,null),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=void 0===d?!1:d,d=XI(YI(c,zYa,null),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=void 0===d?!1:d,d=XI(YI(c,AYa,null),c,d,"Nielsen OCR URL"));g.qD(c,void 0,d)}return!0};
hU=function(a,b){CYa(a,b).then(function(c){g.qD(b,void 0,void 0,c)})};
iU=function(a,b){b.forEach(function(c){hU(a,c)})};
CYa=function(a,b){return g.II(a.api.U())&&LA(b)&&KA(b)?g.$R(a.api.U(),g.qT(a.api.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):aB()};
DYa=function(a){eU.call(this,a);this.events=new g.YJ(a);g.N(this,this.events);this.events.T(a,"videoready",function(b){if(1===a.getPresentingPlayerType()){var c,d,e={playerDebugData:{pmlSignal:!!(null==(c=b.getPlayerResponse())?0:null==(d=c.adPlacements)?0:d.some(function(f){var h;return null==f?void 0:null==(h=f.adPlacementRenderer)?void 0:h.renderer})),
contentCpn:b.clientPlaybackNonce}};g.iC("adsClientStateChange",e)}})};
FYa=function(a){g.W.call(this,{I:"button",Ka:["ytp-button"],X:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},V:[{I:"div",S:"ytp-autonav-toggle-button-container",V:[{I:"div",S:"ytp-autonav-toggle-button",X:{"aria-checked":"true"}}]}]});this.J=a;this.B=[];this.j=!1;this.isChecked=!0;a.createClientVe(this.element,this,113681);this.T(a,"presentingplayerstatechange",this.qD);this.listen("click",this.onClick);this.J.U().L("web_player_autonav_toggle_always_listen")&&
EYa(this);LT(a,this.element,this);this.qD()};
EYa=function(a){a.B.push(a.T(a.J,"videodatachange",a.qD));a.B.push(a.T(a.J,"videoplayerreset",a.qD));a.B.push(a.T(a.J,"onPlaylistUpdate",a.qD));a.B.push(a.T(a.J,"autonavchange",a.CV))};
GYa=function(a){a.isChecked=a.isChecked;a.Fa("ytp-autonav-toggle-button").setAttribute("aria-checked",String(a.isChecked));var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.updateValue("title",b);a.updateValue("label",b);a.J.Th()};
HYa=function(a){return a.J.U().L("web_player_autonav_use_server_provided_state")&&NWa(a.Md())};
IYa=function(a){eU.call(this,a);var b=this;this.events=new g.YJ(a);g.N(this,this.events);this.events.T(a,"standardControlsInitialized",function(){var c=new FYa(a);g.N(b,c);a.wz(c)})};
jU=function(a,b){g.aU.call(this,g.bU({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{I:"div",S:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)};
kU=function(a,b){a.checked=b;a.element.setAttribute("aria-checked",String(a.checked))};
JYa=function(a){var b=!a.U().Ck&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.lU=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.XF(a))return a.preventDefault(),!0;b.pauseVideo();a=e.getAttribute("href");g.iza(a,d,!0);return!1};
g.mU=function(a,b,c){if(PR(b.U())&&2!==b.getPresentingPlayerType()){if(g.XF(c))return b.isFullscreen()&&!b.U().externalFullscreen&&b.toggleFullscreen(),c.preventDefault(),!0}else{var d=g.XF(c);d&&b.pauseVideo();g.iza(a,void 0,!0);d&&(g.gG(a),c.preventDefault())}return!1};
LYa=function(){var a=KYa.includes("en")?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};a.S="ytp-subtitles-button-icon";return a};
MYa=function(){return{I:"div",S:"ytp-spinner-container",V:[{I:"div",S:"ytp-spinner-rotator",V:[{I:"div",S:"ytp-spinner-left",V:[{I:"div",S:"ytp-spinner-circle"}]},{I:"div",S:"ytp-spinner-right",V:[{I:"div",S:"ytp-spinner-circle"}]}]}]}};
NYa=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
oU=function(a){var b=a.L("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";jU.call(this,b,g.nU.K3);var c=this;this.J=a;this.j=!1;this.B=new g.Iv(function(){g.Sv(c.element,"ytp-menuitem-highlighted")},0);
this.Cb=a.Pn();this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.C,this);this.listen(OYa,this.D);g.N(this,this.B)};
QYa=function(a){eU.call(this,a);var b=this;this.j=!1;a.addEventListener("settingsMenuInitialized",function(){PYa(b)});
a.addEventListener("highlightSettingsMenu",function(c){PYa(b);var d=b.menuItem;"menu_item_cinematic_lighting"===c&&(g.Qv(d.element,"ytp-menuitem-highlighted"),g.Qv(d.element,"ytp-menuitem-highlight-transition-enabled"),d.B.start())});
zT(a,"updateCinematicSettings",function(c){b.updateCinematicSettings(c)})};
PYa=function(a){a.menuItem||(a.menuItem=new oU(a.api),g.N(a,a.menuItem),a.menuItem.Ta(a.j))};
pU=function(a,b,c,d){jU.call(this,"Stable Volume",g.nU.C6);g.Qv(this.element,"ytp-drc-menu-item");this.Cb=a.Pn();this.C=b;this.j=c;this.hasDrcAudioTrack=d;a.addEventListener("videodatachange",this.onVideoDataChange.bind(this));a=1===this.j()&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",
fill:"white"}}]});this.subscribe("select",this.B,this);kU(this,a);this.Cb.Rc(this)};
qU=function(a){eU.call(this,a);var b=this;this.events=new g.YJ(a);g.N(this,this.events);a.L("html5_show_drc_toggle")&&a.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new pU(b.api,b.setDrcUserPreference.bind(b),b.getDrcUserPreference.bind(b),b.B.bind(b)),g.N(b,b.menuItem))});
zT(this.api,"setDrcUserPreference",function(d){b.setDrcUserPreference(d)});
zT(this.api,"getDrcUserPreference",function(){return b.getDrcUserPreference()});
zT(this.api,"hasDrcAudioTrack",function(){return b.B()});
var c;this.j=null!=(c=g.QB("yt-player-drc-pref"))?c:1;this.updateEnvironmentData()};
rU=function(a){eU.call(this,a);var b=this;this.j={};this.events=new g.YJ(a);g.N(this,this.events);this.events.T(a,"videodatachange",function(){b.onVideoDataChange()});
this.events.T(a,g.dJ("embargo"),function(c){b.api.Mo(!0);var d,e=null!=(d=b.j[c.id])?d:[];d=g.u(e);for(e=d.next();!e.done;e=d.next()){var f=e.value;b.api.hideControls();b.api.Mf("auth",2,"This video isn't available in your current playback area",QJ({embargoed:1,id:c.id,idx:c.B,start:c.start}));e=void 0;(f=null==(e=f.embargo)?void 0:e.onTrigger)&&b.api.jb("innertubeCommand",f)}})};
RYa=function(a,b){var c;return null==(c=b.onEnter)?void 0:c.some(a.B)};
SYa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0,e=Number(null==(d=c.playbackPosition)?void 0:d.utcTimeMillis)/1E3,f=void 0;d=e+Number(null==(f=c.duration)?void 0:f.seconds);f="embargo_"+e;a.api.addUtcCueRange(f,e,d,"embargo",!1);c.onEnter&&(a.j[f]=c.onEnter.filter(a.B))}};
TYa=function(a){eU.call(this,a);var b=this;this.j=[];this.events=new g.YJ(a);g.N(this,this.events);zT(a,"addEmbedsConversionTrackingParams",function(c){b.api.U().pp&&b.addEmbedsConversionTrackingParams(c)});
this.events.T(a,"veClickLogged",function(c){b.api.hasVe(c)&&(c=Pk(c.visualElement.getAsJspb(),2),b.j.push(c))})};
UYa=function(a){eU.call(this,a);var b=this;this.events=new g.YJ(a);g.N(this,this.events);this.events.T(a,"initialvideodatacreated",function(c){QO(PO(),16623);b.j=g.xE();var d=a.U().wi&&!c.Ig;if(pT(c)&&d){QO(PO(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.getWatchNextResponse()){var e,f=null==(e=c.getWatchNextResponse())?void 0:e.trackingParams;f&&SO(f)}if(c.getPlayerResponse()){var h;(c=null==(h=c.getPlayerResponse())?void 0:h.trackingParams)&&SO(c)}}else QO(PO(),
32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),c.getEmbeddedPlayerResponse()&&(h=null==(f=c.getEmbeddedPlayerResponse())?void 0:f.trackingParams)&&SO(h)});
this.events.T(a,"loadvideo",function(){QO(PO(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})});
this.events.T(a,"cuevideo",function(){QO(PO(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})});
this.events.T(a,"largeplaybuttonclicked",function(c){QO(PO(),27240,c.visualElement)});
this.events.T(a,"playlistnextbuttonclicked",function(c){QO(PO(),27240,c.visualElement)});
this.events.T(a,"playlistprevbuttonclicked",function(c){QO(PO(),27240,c.visualElement)});
this.events.T(a,"playlistautonextvideo",function(){QO(PO(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})};
sU=function(a){g.I.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.B=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];"undefined"===typeof e.isVisible?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.B.observe(a)};
VYa=function(a){return null==a.j?null:Math.round(100*a.j)/100};
tU=function(a){eU.call(this,a);var b=this;this.events=new g.YJ(a);g.N(this,this.events);this.events.T(a,"applicationInitialized",function(){WYa(b)})};
WYa=function(a){a.BC=new sU(a.api.getRootNode());g.N(a,a.BC);a.events.T(a.api,"videoStatsPingCreated",function(b){b.inview=a.Iw();b.size=a.Hw()})};
XYa=function(a){var b;return(null==(b=((null==a?void 0:a.messageRenderers)||[]).find(function(c){return!!c.timeCounterRenderer}))?void 0:b.timeCounterRenderer)||null};
uU=function(a){g.W.call(this,{I:"div",Ka:["ytp-player-content","ytp-iv-player-content"],V:[{I:"div",S:"ytp-free-preview-countdown-timer",V:[{I:"span",xa:"{{label}}"},{I:"span",S:"ytp-free-preview-countdown-timer-separator",xa:"\u2022"},{I:"span",xa:"{{duration}}"}]}]});this.api=a;this.j=null;this.C=this.B=0;this.T(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)};
ZYa=function(a,b){a.j||(a.B=b,a.C=(0,g.wC)(),a.j=new g.Hv(function(){YYa(a)},null),YYa(a))};
YYa=function(a){var b=Math,c=b.round,d=Math.min((0,g.wC)()-a.C,a.B);b=c.call(b,(a.B-d)/1E3);a.updateValue("duration",TKa({seconds:b}));0>=b&&a.j?$Ya(a):a.j&&a.j.start()};
$Ya=function(a){a.j&&(a.j.dispose(),a.j=null)};
aZa=function(a){eU.call(this,a);var b=this;this.events=new g.YJ(a);g.N(this,this.events);this.events.T(a,"basechromeinitialized",function(){b.j=new uU(a);g.N(b,b.j);g.UT(a,b.j.element,4);b.j.hide()})};
vU=function(a){g.W.call(this,{I:"button",Ka:["ytp-fullerscreen-edu-button","ytp-button"],V:[{I:"div",Ka:["ytp-fullerscreen-edu-text"],xa:"Scroll for details"},{I:"div",Ka:["ytp-fullerscreen-edu-chevron"],V:[{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],X:{"data-priority":"1"}});this.Ua=a;this.j=new g.FF(this,250,void 0,100);this.C=this.B=!1;a.createClientVe(this.element,this,61214);g.N(this,
this.j);this.T(a,"fullscreentoggled",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.listen("click",this.onClick);this.Ta()};
wU=function(a){eU.call(this,a);var b=this;this.events=new g.YJ(a);g.N(this,this.events);zT(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)});
zT(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)});
var c=a.U();a.L("external_fullscreen_with_edu")&&c.externalFullscreen&&PR(c)&&"1"===c.controlsType&&this.events.T(a,"standardControlsInitialized",function(){b.j=new vU(a);g.N(b,b.j);a.wz(b.j)})};
bZa=function(a){g.W.call(this,{I:"div",S:"ytp-gated-actions-overlay",V:[{I:"div",S:"ytp-gated-actions-overlay-background",V:[{I:"div",S:"ytp-gated-actions-overlay-background-overlay"}]},{I:"button",Ka:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],X:{"aria-label":"Close"},V:[g.iF()]},{I:"div",S:"ytp-gated-actions-overlay-bar",V:[{I:"div",S:"ytp-gated-actions-overlay-text-container",V:[{I:"div",S:"ytp-gated-actions-overlay-title",xa:"{{title}}"},{I:"div",S:"ytp-gated-actions-overlay-subtitle",
xa:"{{subtitle}}"}]},{I:"div",S:"ytp-gated-actions-overlay-button-container"}]}]});var b=this;this.api=a;this.background=this.Fa("ytp-gated-actions-overlay-background");this.B=this.Fa("ytp-gated-actions-overlay-button-container");this.j=[];this.T(this.Fa("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.jb("onCloseMiniplayer")});
this.hide()};
dZa=function(a,b){var c=0;c=0;for(var d={};c<b.length;d={sI:void 0},c++){var e=a.j[c],f=void 0,h=null==(f=e)?void 0:f.element;h||(h=new g.W({I:"button",S:"ytp-gated-actions-overlay-button",X:{tabindex:"0"},V:[{I:"div",S:"ytp-gated-actions-overlay-button-title",xa:"{{buttonText}}"}]}),g.N(a,h),h.Ja(a.B),e={element:h});d.sI=g.V(b[c],cZa);var l=f=void 0,m=void 0,n=(null==(f=d.sI)?void 0:f.title)||(null==(l=d.sI)?void 0:null==(m=l.titleFormatted)?void 0:m.content)||"";h.update({buttonText:n});e.listener&&
h.Pc(e.listener);e.listener=h.listen("click",function(p){return function(){var q,r=g.V(null==(q=p.sI)?void 0:q.onTap,EE);r&&a.api.jb("innertubeCommand",r)}}(d));
a.j[c]=e}for(;c<a.j.length;)a.j.pop().element.dispose()};
eZa=function(a){eU.call(this,a);var b=this;this.events=new g.YJ(a);g.N(this,this.events);this.j=new bZa(this.api);g.N(this,this.j);this.events.T(a,"videodatachange",function(){var c,d=null==(c=b.api.getVideoData())?void 0:c.L9;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.u(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;dZa(c,d.actionButtons||[]);c.show()}else c.hide()});
g.UT(this.api,this.j.element,4)};
fZa=function(a){eU.call(this,a);var b=a.U();b.Gj=!1;b.eb=!1;b.Wl=!1;BT(a,"resetSubtitlesUserSettings",function(){a.resetSubtitlesUserSettings()});
BT(a,"getSubtitlesUserSettings",function(){return a.getSubtitlesUserSettings()});
BT(a,"updateSubtitlesUserSettings",function(c){a.updateSubtitlesUserSettings(c)});
BT(a,"getCaptionTracks",function(){return a.getOption("captions","tracklist",{includeAsr:!0})});
BT(a,"getAvailableQualityLevels",function(){return a.getAvailableQualityLevels()});
BT(a,"getPreferredQuality",function(){return a.getPreferredQuality()});
BT(a,"getPlaybackQuality",function(){return a.getPlaybackQuality()});
BT(a,"setPlaybackQuality",function(c){a.setPlaybackQuality(c)})};
gZa=function(a){eU.call(this,a);a=a.U();a.uh.push("flix");a.eb=!1;a.Gj=!1};
xU=function(a){eU.call(this,a);var b=this;BT(this.api,"getSphericalProperties",function(){return b.getSphericalProperties()});
BT(this.api,"setSphericalProperties",function(){b.setSphericalProperties.apply(b,g.qa(g.Ia.apply(0,arguments)))});
AT(this.api,"getSphericalProperties",function(){return 2===b.api.getPresentingPlayerType()?{}:b.getSphericalProperties()});
AT(this.api,"setSphericalProperties",function(){var c=g.Ia.apply(0,arguments);2!==b.api.getPresentingPlayerType()&&b.setSphericalProperties.apply(b,g.qa(c))})};
hZa=function(a){eU.call(this,a);zT(a,"createClientVe",this.createClientVe.bind(this));zT(a,"createServerVe",this.createServerVe.bind(this));zT(a,"destroyVe",this.destroyVe.bind(this));zT(a,"hasVe",this.hasVe.bind(this));zT(a,"logClick",this.logClick.bind(this));zT(a,"logVisibility",this.logVisibility.bind(this));zT(a,"setTrackingParams",this.setTrackingParams.bind(this))};
yU=function(a){eU.call(this,a);var b=this;this.events=new g.YJ(a);g.N(this,this.events);zT(this.api,"seekToChapterWithAnimation",function(c){b.seekToChapterWithAnimation(c)});
zT(this.api,"seekToTimeWithAnimation",function(c,d){b.seekToTimeWithAnimation(c,d)});
zT(this.api,"setMacroMarkers",function(c){b.setMacroMarkers(a,c)})};
iZa=function(a,b,c){var d=1E3*a.api.getCurrentTime()<b?1:-1;a.api.HG(d,c);a.api.seekTo(b/1E3,void 0,void 0,void 0,3)};
lZa=function(a){eU.call(this,a);var b=this;this.events=new g.YJ(a);g.N(this,this.events);this.events.T(a,"videodatachange",function(){jZa(b)});
this.events.T(a,"presentingplayerstatechange",function(){kZa(b)})};
zU=function(a,b){navigator.mediaSession.setActionHandler(a,b)};
jZa=function(a){var b=a.api.getVideoData();if(null!=b&&b.ue()){var c=a.api.U(),d=[],e="";if(!c.qa){var f=mZa(a);g.cG(c)&&f?(d=nZa(f.thumbnailDetails),f.album&&(e=VKa(f.album))):d=[{src:b.fh("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}kZa(a);oZa(a);navigator.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.RT(a.api)&&(b=function(){a.api.nextVideo()},c=function(){a.api.previousVideo()});
zU("nexttrack",b);zU("previoustrack",c)}};
oZa=function(a){zU("play",function(){a.api.playVideo()});
zU("pause",function(){a.api.pauseVideo()});
zU("seekbackward",function(){a.api.seekBy(-5*a.api.getPlaybackRate())});
zU("seekforward",function(){a.api.seekBy(5*a.api.getPlaybackRate())})};
mZa=function(a){var b,c,d,e;return null==(b=a.api.getVideoData().getWatchNextResponse())?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:null==(e=d.browserMediaSession)?void 0:e.browserMediaSessionRenderer};
nZa=function(a){var b=[];if(!a||!a.thumbnails)return b;a=g.u(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.$I(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
kZa=function(a){a=a.api.getPlayerStateObject();a=a.isCued()||a.isError()?"none":a.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=a};
AU=function(a){eU.call(this,a);var b=this;this.B=new Map;this.C=this.j=void 0;this.compositeVideoState=null;this.events=new g.YJ(a);g.N(this,this.events);this.events.T(a,"modulecreated",function(c){var d;a:{var e,f,h,l=null==(e=b.api.getVideoData())?void 0:null==(f=e.getPlayerResponse())?void 0:null==(h=f.overlay)?void 0:h.playerControlsOverlayRenderer;if(l&&(e=g.V(l.compositeVideoOverlay,pZa),null==e?0:null==(d=e.sources)?0:d.length))for(d=g.u(null==e?void 0:e.sources),e=d.next();!e.done;e=d.next())if(e=
e.value,e.isActive){d=e;break a}d=void 0}"captions"===c&&void 0!==(null==d?void 0:d.topLeftCornerX)&&void 0!==(null==d?void 0:d.topLeftCornerY)&&void 0!==(null==d?void 0:d.width)&&void 0!==(null==d?void 0:d.height)&&b.api.zM({top:d.topLeftCornerY,right:1-d.topLeftCornerX-d.width,bottom:1-d.topLeftCornerY-d.height,left:d.topLeftCornerX})});
this.events.T(a,"videodatachange",function(c){var d=b.api.getVideoData();b.j=void 0;b.B.clear();b.api.nf("compositeembargo",1);var e=null==d?void 0:d.TC.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(null==e?0:e.length)?qZa(b,e.filter(function(f){return rZa(b,f)})):(null==d?0:d.cueRanges)&&qZa(b,d.cueRanges.filter(function(f){return rZa(b,f)}));
"dataupdated"===c&&(null==d?void 0:d.compositeLiveStatusToken)!==b.C&&(b.C=null==d?void 0:d.compositeLiveStatusToken,b.api.Wo())});
this.events.T(a,g.dJ("compositeembargo"),function(c){var d;if((null==(d=b.j)?void 0:d.id)!==c.id&&(b.api.Mo(!0),b.B.has(c.id))){var e=b.B.get(c.id);d=b.api.getVideoData();e=g.u(e);for(var f=e.next();!f.done;f=e.next()){var h=void 0;f=null==(h=f.value.compositeEmbargo)?void 0:h.embargoStatusToken;d.My!==f&&(d.My=f,b.api.Wo());sZa(b,c)}}});
this.events.T(a,g.eJ("compositeembargo"),function(c){var d;if((null==(d=b.j)?void 0:d.id)===c.id&&(b.api.Mo(!1),b.B.has(c.id))){if(c=b.api.getVideoData())c.My=void 0;b.api.Wo();sZa(b)}});
this.events.T(a,"heartbeatRequest",function(c){null!==b.compositeVideoState&&(c.playbackState||(c.playbackState={}),c.playbackState.compositeVideoState=b.compositeVideoState)});
this.events.T(a,"onPlaybackAudioChange",function(){b.api.Wo()});
zT(a,"setCompositeParam",function(c){b.compositeVideoState=c})};
sZa=function(a,b){var c;(null==(c=a.j)?void 0:c.id)!==(null==b?void 0:b.id)&&(a.j&&(a.B.delete(a.j.id),a.api.Oo([a.j],1)),a.j=b)};
qZa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=void 0;c=Number(null==(e=d.playbackRelativePosition)?void 0:e.utcTimeMs)/1E3;var f=void 0;e=c+Number(null==(f=d.duration)?void 0:f.seconds);f="composite_embargo_"+c;d.onEnter&&(d=d.onEnter.filter(a.D),d.length&&(a.B.set(f,d),a.api.addUtcCueRange(f,c,e,"compositeembargo",!1)))}};
rZa=function(a,b){var c;return null==(c=b.onEnter)?void 0:c.some(a.D)};
tZa=function(a){eU.call(this,a);zT(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));zT(this.api,"updateDownloadState",this.updateDownloadState.bind(this));zT(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));zT(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));zT(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));zT(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));zT(this.api,"setUpPositionSyncInterval",
this.setUpPositionSyncInterval.bind(this))};
BU=function(a){eU.call(this,a);var b=this;zT(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()});
zT(a,"getAvailableQualityDataAndMessaging",function(){return b.getAvailableQualityDataAndMessaging()})};
uZa=function(a,b,c){var d=[],e=b?156595:151874;a=g.u(a);for(var f=a.next();!f.done;f=a.next()){var h=f.value;f=h.video;h={formatId:h.id,qualityLabel:f.qualityLabel,quality:f.quality,isPlayable:b};if(f=c.get(f.qualityLabel))h.paygatedQualityDetails={paygatedIndicatorText:f.paygatedIndicatorText,endpoint:f.endpoint,veType:e,trackingParams:f.trackingParams};d.push(h)}return d};
vZa=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++}};
wZa=function(a){var b=new Set,c=new Map,d={};a=g.u(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.u(Object.values(d));for(a=d.next();!a.done;a=d.next())e=a.value,(a=e.quality)&&!b.has(a)&&(e.formatId=void 0),c.push(e);return c};
yZa=function(a){eU.call(this,a);var b=this;this.events=new g.YJ(a);g.N(this,this.events);this.events.T(a,"d6de4videobindingchange",function(c){xZa(b,c)})};
xZa=function(a,b){if(window.android&&window.android.webview){var c=g.xI(a.api.U().experiments,"html5_d6de4_cloud_project_number");window.android.webview.getExperimentalMediaIntegrityTokenProvider&&window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:c}).then(function(d){return d.requestToken(b)}).then(function(d){a.api.XS(d)}).catch(function(d){g.BE(d)})}};
CU=function(a){g.W.call(this,{I:"button",Ka:["ytp-pip-button","ytp-button"],X:{title:"{{title}}","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},V:[lya()]});var b=this;this.api=a;this.listen("click",this.onClick);var c=this.api.Am(),d=c.subscribe("visibilitystatechange",function(){b.Ta(c.du())});
this.addOnDisposeCallback(function(){c.Ph(d)});
LT(a,this.element,this);this.Ta(c.du())};
zZa=function(a){eU.call(this,a);var b=this;this.events=new g.YJ(a);g.N(this,this.events);this.events.T(a,"standardControlsInitialized",function(){b.createButton()})};
AZa=function(a){var b=a.api.getVideoData();g.aF(a.button,b.cX)};
BZa=function(a){eU.call(this,a);var b=this;this.events=new g.YJ(a);g.N(this,this.events);zT(this.api,"musicDisableUi",function(){g.Qv(b.api.getRootNode(),"ytp-player-in-bar-disable-ui")});
zT(this.api,"musicEnableUi",function(){g.Sv(b.api.getRootNode(),"ytp-player-in-bar-disable-ui")})};
FU=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?!1:c;g.W.call(this,{I:"div",S:"ytp-suggested-action"});var d=this;this.J=a;this.Hb=this.ra=this.Ca=this.G=this.D=this.Y=this.expanded=this.enabled=this.Wa=!1;this.gb=new g.Iv(function(){d.badge.element.style.width=""},200,this);
this.Sa=new g.Iv(function(){DU(d);EU(d)},200,this);
this.dismissButton=new g.W({I:"button",Ka:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.N(this,this.dismissButton);this.C=new g.W({I:"div",S:"ytp-suggested-action-badge-expanded-content-container",V:[{I:"label",S:"ytp-suggested-action-badge-title",xa:"{{badgeLabel}}"},this.dismissButton]});g.N(this,this.C);this.La=new g.W({I:"div",S:"ytp-suggested-action-badge-icon-container",V:[b?{I:"div",S:"ytp-suggested-action-badge-icon"}:""]});g.N(this,this.La);this.badge=new g.W({I:c?"div":
"button",Ka:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],V:[this.La,this.C]});g.N(this,this.badge);this.badge.Ja(this.element);this.qa=new g.FF(this.badge,250,!1,100);g.N(this,this.qa);this.bb=new g.FF(this.C,250,!1,100);g.N(this,this.bb);this.rb=new g.Hv(this.iea,null,this);g.N(this,this.rb);this.eb=new g.Hv(this.h8,null,this);g.N(this,this.eb);g.N(this,this.gb);g.N(this,this.Sa);this.J.createServerVe(this.badge.element,this.badge,!0);this.J.createServerVe(this.dismissButton.element,
this.dismissButton,!0);this.T(this.J,"onHideControls",function(){d.YK(!1)});
this.T(this.J,"onShowControls",function(){d.YK(!0)});
this.T(this.badge.element,"click",this.UF);this.T(this.dismissButton.element,"click",this.Ku);this.T(this.J,"pageTransition",this.EV);this.T(this.J,"appresize",this.Hl);this.T(this.J,"fullscreentoggled",this.Laa);this.T(this.J,"cardstatechange",this.saa);this.T(this.J,"annotationvisibility",this.Tea,this);this.T(this.J,"offlineslatestatechange",this.Uea,this)};
DU=function(a){g.Uv(a.badge.element,"ytp-suggested-action-badge-with-controls",a.Ca||!a.Y)};
EU=function(a,b){var c=a.eM();a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.rb.stop(),a.eb.stop(),a.gb.stop(),a.rb.start()):(g.aF(a.C,a.expanded),g.Uv(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),a.CK())};
CZa=function(a){var b=a.text||"",c=g.tf("ytp-suggested-action-badge-title",a.element);c&&g.Kf(c,b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Va?a.Va:"")};
GU=function(a,b,c,d,e,f){var h={I:"div",S:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={I:"div",S:"ytp-panel-header",V:[{I:"div",Ka:["ytp-panel-back-button-container"],V:[{X:{"aria-label":"Back to previous menu"},I:"button",Ka:["ytp-button",l]}]},{I:"span",Ka:[m],V:[c]}]};if(e){var p="ytp-panel-options";n.V.push({I:"button",Ka:["ytp-button",p],V:[d]})}h.V=[n]}d=!1;f&&(f={I:"div",S:"ytp-panel-footer",V:[f]},d=!0,h.V?h.V.push(f):h.V=[f]);g.bF.call(this,h);this.content=
b;d&&h.V?b.Ja(this.element,h.V.length-1):b.Ja(this.element);this.PY=!1;this.OY=d;c&&(c=this.Fa(l),m=this.Fa(m),this.T(c,"click",this.x_),this.T(m,"click",this.x_),this.PY=!0,e&&(p=this.Fa(p),this.T(p,"click",e)));b.subscribe("size-change",this.C_,this);this.T(a,"fullscreentoggled",this.C_);this.J=a};
g.HU=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.bF({I:"div",S:"ytp-panel-menu",X:h});GU.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.N(this,this.menuItems)};
g.IU=function(a){for(var b=g.u(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.JR,a);a.items=[];g.Cf(a.menuItems.element);a.menuItems.publish("size-change")};
DZa=function(a,b){return b.priority-a.priority};
g.JU=function(a,b){g.ZT.call(this,a,{I:"div",Ka:["ytp-popup",b||""]},100,!0);this.j=[];this.K=this.G=null;this.maxHeight=this.maxWidth=0;this.size=new g.Ke(0,0);this.listen("keydown",this.R5)};
EZa=function(a){var b=a.j[a.j.length-1];if(b){g.Ts(a.element,a.maxWidth||"100%",a.maxHeight||"100%");g.Is(b.element,"width","");g.Is(b.element,"height","");g.Is(b.element,"maxWidth","100%");g.Is(b.element,"maxHeight","100%");g.Is(b.content.element,"height","");var c=g.Us(b.element);c.width+=1;c.height+=1;g.Is(b.element,"width",c.width+"px");g.Is(b.element,"height",c.height+"px");g.Is(b.element,"maxWidth","");g.Is(b.element,"maxHeight","");var d=0;b.PY&&(d=b.Fa("ytp-panel-header"),d=g.Us(d).height);
var e=0;b.OY&&(e=b.Fa("ytp-panel-footer"),g.Is(e,"width",c.width+"px"),e=g.Us(e).height);g.Is(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.Is(b.element,"width",c.width+"px")));a.size=c}};
g.KU=function(a,b){var c=a.j[a.j.length-1];a.j.push(b);FZa(a,c,b)};
g.LU=function(a){if(!(1>=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];FZa(a,b,c,!0)}};
FZa=function(a,b,c,d){GZa(a);b&&(b.unsubscribe("size-change",a.wC,a),b.unsubscribe("back",a.aj,a));c.subscribe("size-change",a.wC,a);c.subscribe("back",a.aj,a);if(a.Gb){g.Qv(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ja(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;EZa(a);g.Ts(a.element,e);a.G=new g.Iv(function(){HZa(a,b,c,d)},20,a);
a.G.start()}else c.Ja(a.element),b&&b.detach()};
HZa=function(a,b,c,d){a.G.dispose();a.G=null;g.Qv(a.element,"ytp-popup-animating");d?(g.Qv(b.element,"ytp-panel-animate-forward"),g.Sv(c.element,"ytp-panel-animate-back")):(g.Qv(b.element,"ytp-panel-animate-back"),g.Sv(c.element,"ytp-panel-animate-forward"));g.Ts(a.element,a.size);a.K=new g.Iv(function(){g.Sv(a.element,"ytp-popup-animating");b.detach();g.Tv(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.K.dispose();a.K=null},250,a);
a.K.start()};
GZa=function(a){a.G&&g.Kv(a.G);a.K&&g.Kv(a.K)};
MU=function(a){g.JU.call(this,a,"ytp-shopping-product-menu");this.Pe=new g.HU(this.J);g.N(this,this.Pe);this.hide();g.KU(this,this.Pe);g.UT(this.J,this.element,4)};
JZa=function(a,b,c){var d,e=null==b?void 0:null==(d=b.text)?void 0:d.simpleText;e&&(c=IZa(a,c,e,null==b?void 0:b.icon,null==b?void 0:b.secondaryIcon),b.navigationEndpoint&&c.listen("click",function(){a.J.jb("innertubeCommand",b.navigationEndpoint);a.hide()},a))};
KZa=function(a,b,c){var d,e=null==b?void 0:null==(d=b.text)?void 0:d.simpleText;e&&IZa(a,c,e,null==b?void 0:b.icon).listen("click",function(){var f;"HIDE"===(null==b?void 0:null==(f=b.icon)?void 0:f.iconType)?a.J.publish("featuredproductdismissed"):b.serviceEndpoint&&a.J.jb("innertubeCommand",b.serviceEndpoint);a.hide()},a)};
IZa=function(a,b,c,d,e){b=new g.aU(g.bU({},[],!1,!!e),b,c);e&&b.updateValue("secondaryIcon",LZa(e));b.setIcon(LZa(d));g.N(a,b);a.Pe.Rc(b,!0);return b};
LZa=function(a){if(!a)return null;switch(a.iconType){case "ACCOUNT_CIRCLE":return{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z",
fill:"#fff"}}]};case "FLAG":return{I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return cya();case "HIDE":return{I:"svg",X:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"g",V:[{I:"path",X:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]};
case "OPEN_IN_NEW":return kF()}};
NU=function(a){FU.call(this,a,!1,!0);this.B=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Y=!0;this.overflowButton=new g.W({I:"button",Ka:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.N(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.W({I:"img",S:"ytp-suggested-action-badge-img",X:{src:"{{url}}"}});this.thumbnailImage.hide();
g.N(this,this.thumbnailImage);this.thumbnailIcon=new g.W({I:"div",S:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.N(this,this.thumbnailIcon);this.banner=new g.W({I:"a",S:"ytp-suggested-action-container",V:[this.thumbnailImage,this.thumbnailIcon,{I:"div",S:"ytp-suggested-action-details",V:[{I:"text",S:"ytp-suggested-action-title",xa:"{{title}}"},{I:"text",S:"ytp-suggested-action-subtitle",xa:"{{subtitle}}"},{I:"text",S:"ytp-suggested-action-metadata-text",xa:"{{metadata}}"}]},this.dismissButton,
this.overflowButton]});g.N(this,this.banner);this.banner.Ja(this.C.element);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,g.dJ("suggested_action_view_model"),this.Jaa);this.T(this.J,g.eJ("suggested_action_view_model"),this.Kaa);this.T(this.overflowButton.element,"click",this.S5);this.T(a,"featuredproductdismissed",this.Ku);this.J.createServerVe(this.banner.element,this.banner,!0)};
MZa=function(a){a.isInitialized&&(a.enabled=a.isVisible,a.ra=a.isVisible,EU(a),a.Hl(),g.aF(a.thumbnailImage,a.isVisible),a.shouldHideDismissButton||g.aF(a.dismissButton,a.isVisible),a.shouldShowOverflowButton&&g.aF(a.overflowButton,a.isVisible))};
OU=function(){NU.apply(this,arguments)};
NZa=function(a){eU.call(this,a);this.j=new OU(this.api);g.N(this,this.j);g.UT(this.api,this.j.element,4)};
g.PU=function(a,b,c,d,e,f,h){g.aU.call(this,g.bU({"aria-haspopup":"true"}),b,a);this.Cb=d;this.N=!1;this.C=null;this.options={};this.B=new g.HU(c,void 0,a,e,f,h);g.N(this,this.B);this.listen("keydown",this.T5);this.listen("click",this.open)};
OZa=function(a){if(a.C){var b=a.options[a.C];b.element.getAttribute("aria-checked");b.element.setAttribute("aria-checked","false");a.C=null}};
g.QU=function(a,b){g.IU(a.B);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.C;l&&(d=!0);h&&h.priority===-e?(a.options[f].Gk(a.Sk(f,!0)),delete a.options[f]):h=a.cO(f,-e,l);c[f]=h;a.B.Rc(h,!0)}d||(a.C=null);b=g.u(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
RU=function(a,b){g.PU.call(this,"Sleep timer",g.nU.SLEEP_TIMER,a,b);this.J=a;this.j={};a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",
fill:"#fff"}}]});this.Ta()};
PZa=function(a){var b="Off;10 minutes;15 minutes;20 minutes;30 minutes;45 minutes;60 minutes;End of video".split(";");a.J.getPlaylistId()&&b.push("End of playlist");return b};
QZa=function(a){eU.call(this,a);var b=this;a.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new RU(b.api,b.api.Pn()),g.N(b,b.menuItem))});
a.addEventListener("openSettingsMenuItem",function(c){"menu_item_sleep_timer"===c&&b.menuItem.open()});
zT(a,"resetSleepTimerMenuSettings",function(){b.resetSleepTimerMenuSettings()})};
g.TU=function(a,b,c,d,e){b=void 0===b?!1:b;d=void 0===d?!1:d;e=void 0===e?!1:e;g.UE.call(this);this.Y=e;this.N=!1;this.D=new KB(this);this.G=this.K=null;this.C=this.B=!1;g.N(this,this.D);this.target=a;this.j=b;this.Z=c||a;this.N=d;b&&(g.Pc&&this.target.setAttribute("draggable","true"),e||(this.target.style.touchAction="none"));SU(this)};
UU=function(a){g.MB(a.D,!a.j)};
SU=function(a){a.G=null;a.K=null;a.T(VU("over"),a.Cx);a.T("touchstart",a.qN);a.j&&a.T(VU("down"),a.P$)};
RZa=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier===a.K)return d}return null};
VU=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
SZa=function(a,b){g.W.call(this,{I:"div",Ka:["ytp-overlay","ytp-speedmaster-overlay"],V:[{I:"div",S:"ytp-speedmaster-user-edu",V:[{I:"div",S:"ytp-speedmaster-label",xa:b},{I:"div",S:"ytp-speedmaster-icon",xa:"{{icon}}"}]}]});this.J=a;this.j=this.Fa("ytp-speedmaster-user-edu");this.updateValue("icon",bya());g.Qv(this.j,"ytp-speedmaster-has-icon");this.J.createClientVe(this.j,this,173040,!0);this.Wh()};
XU=function(a){eU.call(this,a);var b=this;this.D=this.C=!1;this.Sa=g.xI(this.api.U().experiments,"speedmaster_touch_activation_ms")||500;this.Ca=g.xI(this.api.U().experiments,"speedmaster_cancellation_movement_dp")||10;this.Ma=g.xI(this.api.U().experiments,"speedmaster_playback_rate")||2;this.B=new g.YJ(a);g.N(this,this.B);this.Y="2x";this.speedmasterUserEdu=new SZa(a,this.Y);g.N(this,this.speedmasterUserEdu);g.UT(this.api,this.speedmasterUserEdu.element,4);this.j=new g.TU(this.api.ob().Nz,!0,null,
!1,!0);g.N(this,this.j);this.delay=new g.Iv(this.Ga,this.Sa,this);g.N(this,this.delay);this.B.T(a,"videodatachange",function(){WU(b)},this);
this.B.T(a,"presentingplayerstatechange",function(){WU(b)},this);
this.B.T(a,"autonavvisibility",function(){WU(b)},this);
this.api.Am().subscribe("visibilitystatechange",function(){WU(b)});
this.B.T(a,"rootnodemousedown",function(c){b.N=c});
this.L("web_speedmaster_spacebar_control")&&(this.B.T(a,"keyboardserviceglobalkeydown",function(c,d){b.qa=d;TZa(b,c,!0)},this),this.B.T(a,"keyboardserviceglobalkeyup",function(c){TZa(b,c,!1)},this))};
YU=function(a){a.delay.stop();a.j.unsubscribe("dragmove",a.K,a);a.j.unsubscribe("dragend",a.G,a);a.C&&(a.C=!1,a.speedmasterUserEdu.Wh(),a.api.setPlaybackRate(a.Ha),a.api.showControls(),a.La&&a.api.pauseVideo())};
TZa=function(a,b,c){c?32!==b.keyCode||b.repeat||a.C||!a.D||g.Jv(a.delay):YU(a)};
WU=function(a){var b,c;var d=!!a.Y&&!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.Gf()&&2!==a.api.getPresentingPlayerType()&&!g.MF(a.api.getPlayerStateObject(),2)&&!(null==(c=g.IT(a.api))?0:c.Pg())&&!a.api.bd()&&UZa(a.api.Am());a.D!==d&&(a.D=d,a.D?a.j.subscribe("dragstart",a.ra,a):(a.j.unsubscribe("dragstart",a.ra,a),a.j.unsubscribe("dragmove",a.K,a),a.j.unsubscribe("dragend",a.G,a),YU(a)))};
VZa=function(a){eU.call(this,a);var b=this;this.events=new g.YJ(a);g.N(this,this.events);zT(this.api,"addPlayerResponseForAssociation",function(c){b.api.addPlayerResponseForAssociation(c)});
zT(this.api,"finishSegmentByCpn",function(c,d){return b.api.finishSegmentByCpn(c,d)});
this.events.T(a,"modulecreated",function(c){if("ad"===c&&(c=b.api.getVideoData(1))&&(c=c.getPlayerResponse())){var d;c=null!=(d=c.adPlacements)?d:[];d=g.u(c);for(var e=d.next();!e.done;e=d.next()){var f=c=void 0,h=void 0;if(e=null==(c=e.value.adPlacementRenderer)?void 0:null==(f=c.renderer)?void 0:null==(h=f.instreamVideoAdRenderer)?void 0:h.playerVars)c=FA(e),b.api.addPlayerResponseForAssociation({playerVars:c})}}});
this.events.T(a,"videodatachange",function(c,d){b.onVideoDataChange(c,d)})};
ZU=function(a,b,c){g.Ab.call(this,b,a);this.j=c};
g.$U=function(a){JK.call(this);var b=this;this.j=a;this.G={};this.listener=function(c){b.dispatchEvent(new ZU(b,c.type,c))}};
aV=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.B=this.j=a-1};
WZa=function(a){return a.data[a.j]||0};
bV=function(a){g.I.call(this);this.C=a;this.j=new Map;this.B=new g.Iv(this.sample,250,this);g.N(this,this.B);this.start()};
cV=function(a,b){if(null==(a=a.j.get(b)))a=void 0;else{a=a.buffer;for(b=[];a.B!==a.j;)a.B=(a.B+1)%a.data.length,b.push(a.data[a.B]);a=b}return a||[]};
dV=function(a,b){var c;return(null==(c=a.j.get(b))?void 0:WZa(c.buffer))||0};
XZa=function(a){this.j=a;this.OA=NaN;this.buffer=new aV(100)};
$Za=function(a){var b=a.Zc(),c=a.getVideoData(),d=a.Je(),e=d.Ib(),f=a.U(),h=b.YE(),l=b.zT,m=8*dV(l,"bandwidth")/1024,n=dV(l,"networkactivity")/1024,p=dV(l,"bufferhealth");if(b.Ae){var q=b.videoData.useInnertubeDrmService()?"IT/":"";q+=b.Ae.j.getInfo()+"/"+gP(b.Mw());q+="/"+b.Ae.getInfo()}else q="";var r=q,t=b.getPlayerState().state.toString(16),v=d.getCurrentTime().toFixed(2),w=qK(d.Ch(),",",3);q="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(q+=c.FD?"DS":"SS");q+="DAI, ";var A=YZa(b);A&&(q+=
A)}var C;(null==(C=a.getVideoData(1))?0:g.sT(C))?(q+="SSAP, ",(C=YZa(b))&&(q+=C)):NS(c)&&(q+="SABR, ");if(c.fetchType){switch(c.fetchType){case "onesie":C="o";break;case "gp":C="gp";break;default:C="gvi"}q+="vd:"+C+", "}f.Id&&(q=f.Id.Wp?q+"wa, ":q+"w, ");q+="s:"+t+" t:"+v+" b:"+w+" ";d.isSeeking()&&(q+="S");d.isPaused()&&(q+="P");d.isEnded()&&(q+="E");a.isOrchestrationLeader()&&(q+=" L");(d=b.ME())&&(q+=" l:"+d.toFixed());d=b.getCurrentTime();f=c.LC;d&&d>f.start&&d<f.end&&(q+=" as");d=q;q=g.BA(VG)("_start",
void 0);f=[];t=g.u(["pl_i","vir","or_p","orfb","pbs"]);for(v=t.next();!v.done;v=t.next())v=v.value,(w=g.BA(VG)(v,void 0))&&q&&(w-=q,f.push(v+":"+Math.round(w)));q=f.join(" ");f=g.QR();t=g.TT(a).S9;v=c.C&&!c.C.j?"display:none":"";if((w=c.clientPlaybackNonce)&&16==w.length){w+="AAAA";C=0;A="";for(var F=0;20>F;F++)if(C=(C<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(w.charAt(F)),4==F%5){for(var H="",M=0;6>M;M++)H="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(C&31)+H,C>>=
5;A+=H}w=A.substr(0,4)+" "+A.substr(4,4)+" "+A.substr(8,4)+" "+(A.substr(12,4)+" "+A.substr(16,4))}else w="";m={video_id_and_cpn:String(c.videoId)+" / "+w,codecs:"",dims_and_frames:"",bandwidth_kbps:m.toFixed(0)+" Kbps",buffer_health_seconds:p.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:r?"":"display:none",drm:r,debug_info:d,extra_debug_info:"",bandwidth_style:v,network_activity_style:v,network_activity_bytes:n.toFixed(0)+" KB",shader_info:t,shader_info_style:t?"":"display:none",playback_categories:""};
n=e.clientWidth+"x"+e.clientHeight+(1<f?"*"+f.toFixed(2):"");p="-";h.totalVideoFrames&&(p=(h.droppedVideoFrames||0)+" dropped of "+h.totalVideoFrames);m.dims_and_frames=n+" / "+p;a=a.getVolume();h=AXa(c);var L;n=(null==(L=c.D)?0:L.audio.j)?"DRC":Math.round(a*h)+"%";L=Math.round(a)+"% / "+n;a=c.Qf.toFixed(1);isFinite(Number(a))&&(L+=" (content loudness "+a+"dB)");m.volume=L;m.resolution=e.videoWidth+"x"+e.videoHeight;if(L=c.B)if(e=L.video)a=e.fps,1<a&&(m.resolution+="@"+a),(a=g.eV(b))&&a.video&&(m.resolution+=
" / "+a.video.width+"x"+a.video.height,1<a.video.fps&&(m.resolution+="@"+a.video.fps)),m.codecs=ZZa(L),!c.D||L.audio&&L.video?L.l_&&(m.codecs+=" / "+L.l_+"A"):m.codecs+=" / "+ZZa(c.D),e.B||e.primaries?(L=e.B||"unknown","smpte2084"===L?L+=" (PQ)":"arib-std-b67"===L&&(L+=" (HLG)"),m.color=L+" / "+(e.primaries||"unknown"),m.color_style=""):m.color_style="display:none";e=c.isLivePlayback;L=c.Yd;m.live_mode_style=e||L?"":"display:none";m.live_latency_style=e?"":"display:none";if(L)m.live_mode="Post-Live"+
(OS(c)?" Manifestless":"");else if(e){L=dV(l,"livelatency");m.live_latency_secs=L.toFixed(2)+"s";e=OS(c)?"Manifestless, ":"";c.eb&&(e+="Windowed, ");a="Uncertain";if(0<=L&&120>L)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;(L=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+L.sequence);m.live_mode=e}b.isGapless()&&(m.playback_categories+="Gapless ");m.playback_categories_style=m.playback_categories?"":"display:none";m.bandwidth_samples=cV(l,"bandwidth");m.network_activity_samples=cV(l,"networkactivity");m.live_latency_samples=cV(l,"livelatency");m.buffer_health_samples=cV(l,"bufferhealth");b=g.tT(c);if(c.cotn||b)m.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+
b;m.cotn_and_local_media_style=m.cotn_and_local_media?"":"display:none";KS(c,"web_player_release_debug")?(m.release_name="youtube.player.web_20240604_00_RC00",m.release_style=""):m.release_style="display:none";m.debug_info&&0<q.length&&60>=m.debug_info.length+q.length?m.debug_info+=" "+q:m.extra_debug_info=q;m.extra_debug_info_style=m.extra_debug_info&&0<m.extra_debug_info.length?"":"display:none";return m};
ZZa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.itag+")":a.itag};
fV=function(a,b,c,d,e){g.W.call(this,{I:"div",S:"ytp-horizonchart"});this.K=b;this.sampleCount=c;this.D=d;this.G=e;this.index=0;this.heightPx=-1;this.C=this.B=null;this.j=Math.round(a/c);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.K+"em"};
gV=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.yf("CANVAS"),a.B=c.getContext("2d")}catch(l){}if(a.B){var d=a.j*a.sampleCount;a.C=c;a.C.width=d;a.C.style.width=d+"px";a.element.appendChild(a.C)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.j*=4,c=0;c<a.sampleCount;c++)d=g.yf("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.B&&(c=1<(window.devicePixelRatio||1)?2:1,a.C.height=a.heightPx*c,a.C.style.height=
a.heightPx+"px",a.B.scale(1,c)));b=g.u(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.D.length&&c.D[d+1]<f;)d++;f=Math.min(1,(f-c.D[d])/(c.D[d+1]-c.D[d]));if(c.B)c.B.fillStyle=c.G[d],c.B.fillRect(e*c.j,0,c.j,c.heightPx),c.B.fillStyle=c.G[d+1],c.B.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.G[d+1];e.style.borderTop=
"solid "+(c.heightPx-f)+"px "+c.G[d]}a.index=(a.index+1)%a.sampleCount}b=a.index;a.B?a.B.clearRect(b*a.j,0,a.j,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
hV=function(a){var b=null;b={I:"button",Ka:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],X:{title:"close"},xa:"[X]"};g.W.call(this,{I:"div",Ka:["html5-video-info-panel","ytp-sfn"],V:[b,{I:"div",Ka:["html5-video-info-panel-content","ytp-sfn-content"],V:[{I:"div",V:[{I:"div",xa:"Video ID / sCPN"},{I:"span",xa:"{{video_id_and_cpn}}",S:"ytp-sfn-cpn"}]},{I:"div",V:[{I:"div",xa:"Viewport / Frames"},{I:"span",xa:"{{dims_and_frames}}"}]},{I:"div",V:[{I:"div",xa:"Current / Optimal Res"},{I:"span",
xa:"{{resolution}}"}]},{I:"div",V:[{I:"div",xa:"Volume / Normalized"},{I:"span",xa:"{{volume}}"}]},{I:"div",V:[{I:"div",xa:"Codecs"},{I:"span",xa:"{{codecs}}"}]},{I:"div",X:{style:"{{shader_info_style}}"},V:[{I:"div",xa:"Shader Info"},{I:"span",xa:"{{shader_info}}"}]},{I:"div",X:{style:"{{color_style}}"},V:[{I:"div",xa:"Color"},{I:"span",xa:"{{color}}"}]},{I:"div",X:{style:"{{drm_style}}"},V:[{I:"div",xa:"Protected"},{I:"span",xa:"{{drm}}"}]},{I:"div",X:{style:"{{bandwidth_style}}"},V:[{I:"div",xa:"Connection Speed"},
{I:"span",V:[{I:"span",xa:"{{bandwidth_chart}}"},{I:"span",xa:"{{bandwidth_kbps}}"}]}]},{I:"div",X:{style:"{{network_activity_style}}"},V:[{I:"div",xa:"Network Activity"},{I:"span",V:[{I:"span",xa:"{{network_activity_chart}}"},{I:"span",xa:"{{network_activity_bytes}}"}]}]},{I:"div",V:[{I:"div",xa:"Buffer Health"},{I:"span",V:[{I:"span",xa:"{{buffer_health_chart}}"},{I:"span",xa:"{{buffer_health_seconds}}"}]}]},{I:"div",X:{style:"{{live_latency_style}}"},V:[{I:"div",xa:"Live Latency"},{I:"span",V:[{I:"span",
xa:"{{live_latency_chart}}"},{I:"span",xa:"{{live_latency_secs}}"}]}]},{I:"div",X:{style:"{{live_mode_style}}"},V:[{I:"div",xa:"Live Mode"},{I:"span",xa:"{{live_mode}}"}]},{I:"div",X:{style:"{{playback_categories_style}}"},V:[{I:"div",xa:"Playback Categories"},{I:"span",xa:"{{playback_categories}}"}]},{I:"div",V:[{I:"div",xa:"Mystery Text"},{I:"span",xa:"{{debug_info}}"}]},{I:"div",X:{style:"{{extra_debug_info_style}}"},V:[{I:"div",xa:""},{I:"span",V:[{I:"span",xa:"{{extra_debug_info}}"}]}]},{I:"div",
V:[{I:"div",xa:"Date"},{I:"span",xa:"{{date}}"}]},{I:"div",X:{style:"{{cotn_and_local_media_style}}"},V:[{I:"div",xa:"COTN / Local Media"},{I:"span",xa:"{{cotn_and_local_media}}"}]},{I:"div",X:{style:"{{release_style}}"},V:[{I:"div",xa:"Player Release"},{I:"span",xa:"{{release_name}}"}]}]}]});this.Ua=a;this.position=0;this.G=!0;b?(a=this.Fa("ytp-sfn-close"),this.T(a,"click",this.hide)):this.T(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.Y={};this.j=new fV(300,1,150,a,b);g.N(this,this.j);this.updateValue("bandwidth_chart",this.j);this.C=new fV(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.N(this,this.C);this.updateValue("live_latency_chart",this.C);this.B=new fV(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.N(this,this.B);this.updateValue("buffer_health_chart",this.B);this.K=new fV(300,1,150,c,b);g.N(this,this.K);this.updateValue("network_activity_chart",
this.K);this.delay=new g.Iv(this.Ta,500,this);g.N(this,this.delay);this.D=new g.Iv(this.N,2E4,this);g.N(this,this.D)};
c_a=function(a){eU.call(this,a);var b=this;zT(a,"getStatsForNerds",function(){return $Za(b.api)});
AT(a,"showVideoInfo",function(){a_a(b,!0)});
AT(a,"hideVideoInfo",function(){a_a(b,!1)});
AT(a,"isVideoInfoVisible",function(){return b_a(b)})};
a_a=function(a,b){var c=b_a(a);a.j||(a.j=new hV(a.api),g.N(a,a.j),g.UT(a.api,a.j.element,4));g.aF(a.j,b);var d=QT(a.api.yb());d&&d.loaded&&c!==b&&d.IT();b&&a.api.ma("sfn",{},!0)};
b_a=function(a){var b;return!(null==(b=a.j)||!b.Gb)};
iV=function(){g.I.call(this);this.B=null;this.startTime=this.duration=0;this.delay=new g.Hv(this.j,null,this);g.N(this,this.delay)};
d_a=function(a,b){if("path"===b.I)return b.X.d;if(b.V)for(var c=0;c<b.V.length;c++){var d=b.V[c];if(d&&"string"!==typeof d&&(d=d_a(a,d)))return d}};
h_a=function(a,b,c){c=d_a(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=XE();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=e_a(e),m=e_a(c);f_a(a,function(n){d.setAttribute("d",g_a(l,m,n))},200)};
f_a=function(a,b,c){a.B=b;a.startTime=(0,g.wC)();a.duration=c;a.j()};
e_a=function(a){var b=[];a=a.match(i_a);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};
g_a=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};
jV=function(a){g.W.call(this,{I:"button",Ka:["ytp-size-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"t","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}"},xa:"{{icon}}"});this.api=a;this.hk=null;this.transition=new iV;g.N(this,this.transition);this.T(a,"sizestylechange",this.Ta);this.T(a,"fullscreentoggled",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);a.createClientVe(this.element,this,139116);this.Ta();this.listen("click",this.onClick);LT(a,this.element,
this)};
j_a=function(a){eU.call(this,a);var b=this;this.events=new g.YJ(a);g.N(this,this.events);this.events.T(a,"standardControlsInitialized",function(){b.button=new jV(a);g.N(b,b.button);a.wz(b.button)})};
k_a=function(a){eU.call(this,a);var b=this;AT(this.api,"getPlaybackRate",function(){return b.api.getPlaybackRate()});
AT(this.api,"setPlaybackRate",function(c){"number"===typeof c&&b.api.setPlaybackRate(c)})};
kV=function(a){function b(e){e="https://jnn-pa.googleapis.com"+e;return c?g.xq(e,"$httpHeaders",d):e}
var c=void 0===c?!1:c;this.dj=a;this.j={};var d={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw","Content-Type":"application/json+protobuf"};this.j={method:"POST",format:"RAW",postBodyFormat:"JSPB",headers:c?{}:d};this.B=b("/$rpc/google.internal.waa.v1.Waa/Create");this.C=b("/$rpc/google.internal.waa.v1.Waa/GenerateIT")};
lV=function(a){eU.call(this,a);var b=this;this.useLivingRoomPoToken=!1;this.Ob=null;this.D=!1;this.B=null;var c=a.U().getWebPlayerContextConfig();this.events=new g.YJ(a);g.N(this,this.events);this.events.T(a,"spsumpstatuschange",function(d){b.hj=d.hj;a.U().Bc()&&b.api.ma("sps",{status:b.hj||""});if(b.L("html5_handle_sps_status"))if(1===b.hj)b.api.bH(0);else if(2===b.hj||3===b.hj)if(b.D&&!b.B&&l_a(b),3===b.hj){var e=b.api.KJ();e++;var f;d=null!=(f=d.U0)?f:Infinity;if(e<d){b.api.cB(!0);var h;null==
(h=b.B)||h.then(function(){b.api.cB(!1)});
b.api.bH(e)}else b.api.Mf("ump.spsrejectfailure",1,"HTML5_SPS_UMP_STATUS_REJECTED")}});
this.events.T(a,"spsumpreject",function(d,e){d&&b.D&&!b.B&&l_a(b);if(e){var f;null==(f=b.B)||f.then(function(){var h,l=null==(h=g.HT(b.api.app))?void 0:h.ya;l&&l.cB(!1)})}});
this.useLivingRoomPoToken=!(null==c||!c.useLivingRoomPoToken);a.addEventListener("csiinitialized",function(){b.Ob=a.Ei();var d=(b.L("html5_generate_session_po_token")||b.L("html5_generate_content_po_token"))&&!b.useLivingRoomPoToken;try{d&&(b.Ob.Li("pot_isc"),m_a(b),b.L("html5_webpo_idle_priority_job")?g.bC(g.dC(),function(){n_a(b)}):n_a(b))}catch(e){e instanceof Error&&g.BE(e)}});
a.cT(this)};
o_a=function(a,b){var c=hR(b.experiments,"html5_web_po_request_key");return c?c:g.II(b)?a.L("html5_po_token_enable_webpo_experimental")?"UE0a2bupPZ6aUyyLkkEY":"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"};
m_a=function(a){function b(l){g.BE(l)}
function c(l){(l=p_a[l])&&a.Ob.Li(l)}
var d=a.api.U(),e=o_a(a,d);try{var f=a.L("html5_po_token_enable_webpo_experimental")?new kV(e):cha(e),h=kUa(d.experiments);a.j=new Wq({dj:e,onEvent:c,onError:b,Zz:f,qw:h,AR:function(){a.api.ma("itr",{})}});
g.N(a,a.j)}catch(l){l instanceof Error&&g.BE(l)}};
n_a=function(a){var b=a.api.U();a.Ob.Li("pot_ist");var c;null==(c=a.j)||c.start();a.L("html5_generate_content_po_token")||(mV(a),l_a(a),b=g.xI(b.experiments,"html5_session_po_token_interval_time_ms")||0,0<b&&(a.C=g.QA(function(){mV(a)},b)),a.D=!0)};
mV=function(a){var b,c,d,e;g.G(function(f){if(!a.L("html5_generate_session_po_token")||a.useLivingRoomPoToken)return f.return();b=a.api.U();c=g.xA("EOM_VISITOR_DATA")||g.xA("VISITOR_DATA");d=b.Ol?b.datasyncId:c;e=hR(b.experiments,"html5_mock_content_binding_for_session_token")||b.livingRoomPoTokenId||d;b.Uf=q_a(a,e);g.Aa(f)})};
q_a=function(a,b){if(!a.j)return"";try{var c=a.j.isReady();a.Ob.Li(c?"pot_cms":"pot_csms");var d=a.j;b={Ct:b,ir:{wI:b,y$:150,TN:!0,BT:!0}};if(b.ir&&!d.cache){var e=Math.min(b.ir.y$,150);if(!(150<e))try{d.cache=new lga(e,d.logger)}catch(n){d.reportError(new Ro(22,"GBJ:init",n))}}var f={Ct:b.Ct,eJ:b.eJ,K$:!0,L$:!0};if(b.ir){var h=b.ir;f.ir={wI:h.wI,TN:h.TN,BT:h.BT}}a:{try{if(d.Na())throw new Ro(21,"BNT:disposed");var l=qga(d,f)||rga(d,f)||sga(d,f);break a}catch(n){if(!f.L$)throw n;l=tga(d,n);break a}l=
void 0}a.Ob.Li(c?"pot_cmf":"pot_csmf");if(c&&a.L("html5_handle_sps_status")){var m;null==(m=a.B)||m.resolve();a.B=null}return l}catch(n){return g.BE(n),""}};
l_a=function(a){a.j&&(a.L("html5_handle_sps_status")&&(a.B=new IK),a.j.ready().then(function(){a.Ob.Li("pot_if");mV(a)}))};
r_a=function(a){eU.call(this,a);var b=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.YJ(a);g.N(this,this.events);this.events.T(a,"heartbeatRequest",function(c){if(b.freePreviewUsageDetails.length||null!==b.freePreviewWatchedDuration)c.heartbeatRequestParams||(c.heartbeatRequestParams={}),c.heartbeatRequestParams.unpluggedParams||(c.heartbeatRequestParams.unpluggedParams={}),0<b.freePreviewUsageDetails.length?c.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails=
b.freePreviewUsageDetails:c.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+b.freePreviewWatchedDuration}});
zT(a,"setFreePreviewWatchedDuration",function(c){b.freePreviewWatchedDuration=c});
zT(a,"setFreePreviewUsageDetails",function(c){b.freePreviewUsageDetails=c})};
nV=function(a){g.I.call(this);this.features=[];var b=this.j,c=new hZa(a),d=new fU(a),e=new BU(a),f=new lV(a);var h=g.GI(a.U())?void 0:new rU(a);var l=new AU(a),m=new c_a(a),n=new k_a(a),p=new xU(a);var q=g.GI(a.U())?new r_a(a):void 0;var r=a.L("html5_enable_ssap")?new VZa(a):void 0;var t=a.L("web_cinematic_watch_settings")&&null!=(t=a.U().getWebPlayerContextConfig())&&t.cinematicSettingsAvailable?new QYa(a):void 0;var v=new wU(a);var w=a.L("enable_courses_player_overlay_purchase")?new eZa(a):void 0;
var A=g.RR(a.U())?new aZa(a):void 0;var C=new TYa(a);var F=a.U().D?new UYa(a):void 0;var H=a.L("web_player_move_autonav_toggle")&&a.U().je?new IYa(a):void 0;var M=g.RR(a.U())?new yU(a):void 0;var L=a.L("web_enable_speedmaster")&&g.RR(a.U())?new XU(a):void 0;var R=a.U().Dk?void 0:new j_a(a);var ba=a.L("report_pml_debug_signal")?new DYa(a):void 0;var ma=new tZa(a),na=new zZa(a);var ia=a.L("enable_web_player_player_in_bar_feature")&&g.cG(a.U())?new BZa(a):void 0;var sa="flix"===a.U().playerStyle?new gZa(a):
void 0;var aa=navigator.mediaSession&&window.MediaMetadata&&a.U().Gj?new lZa(a):void 0;var U=a.L("html5_enable_drc")&&!a.U().K?new qU(a):void 0;var Ka=new xYa(a);var x=a.U();var ca=x.K&&"apps-elements"===(null==(ca=x.getWebPlayerContextConfig())?void 0:ca.houseBrandEnvironment)?new fZa(a):void 0;x=g.RR(a.U())?new NZa(a):void 0;var Ma=a.L("html5_enable_d6de4")?new yZa(a):void 0;var $a=g.RR(a.U())&&a.L("web_sleep_timer")?new QZa(a):void 0;a=a.L("html5_enable_embedded_player_visibility_signals")&&a.L("web_player_embeds_visibility_as_feature")&&
g.BR(a.U())?new tU(a):void 0;b.call(this,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,C,F,H,M,L,R,ba,ma,na,ia,sa,aa,U,Ka,ca,x,Ma,$a,a)};
oV=function(){this.B=this.j=NaN};
s_a=function(a,b){this.W=a;this.timerName="";this.C=!1;this.B=NaN;this.D=new oV;this.j=b||null;this.C=!1};
t_a=function(a,b,c){var d=g.GR(b.Da)&&!b.Da.K;if(b.Da.Ok&&(DR(b.Da)||"shortspage"===b.Da.La||YR(b.Da)||d)&&!a.C){a.C=!0;a.K=b.clientPlaybackNonce;g.xA("TIMING_ACTION")||wA("TIMING_ACTION",a.W.csiPageType);a.W.csiServiceName&&wA("CSI_SERVICE_NAME",a.W.csiServiceName);if(a.j){d=a.j.Ei();for(var e=g.u(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,YG(f,d[f],a.timerName);d=g.BA(Xza)(a.j.SI);g.ZG(d,a.timerName);d=a.j;d.B={};d.SI={}}g.ZG({playerInfo:{visibilityState:g.BA(Tza)()},playerType:"LATENCY_PLAYER_HTML5"},
a.timerName);a.G!==b.clientPlaybackNonce||Number.isNaN(a.B)||(aH("_start",a.timerName)?c=g.BA(VG)("_start",a.timerName)+a.B:g.BE(new g.XB("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!aH("pbs",a.timerName)&&a.tick("pbs",c)}};
u_a=function(a,b,c,d,e,f,h){a=(a===c?"video":"ad")+"_to_"+(b===c?"video":"ad");if("video_to_ad"!==a||null!=h&&h.ra){h="ad_to_video"===a?h:e;c=null==h?void 0:h.TI;var l={};if(null==e?0:e.G)l.cttAuthInfo={token:e.G,videoId:e.videoId};l.startTime=null!=f?f:d;$G(a,l);var m,n,p;e={targetVideoId:null!=(m=null==e?void 0:e.videoId)?m:"empty_video",targetCpn:b,adVideoId:null!=(n=null==h?void 0:h.videoId)?n:"empty_video",adClientPlaybackNonce:null!=(p=null==c?void 0:c.cpn)?p:null==h?void 0:h.clientPlaybackNonce};
c&&(e.adBreakType=c.adBreakType,e.adType=c.adType);g.ZG(e,a);YG("pbs",d,a)}};
pV=function(a){hAa();gAa();a.timerName=""};
v_a=function(a){if(a.j){var b=a.j;b.B={};b.SI={}}a.C=!1;a.G=void 0;a.B=NaN};
w_a=function(a,b){g.UE.call(this);this.Da=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.j=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.B=0;if(a=b.session_data)this.sessionData=DA(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 nS("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.QVa(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.u(a);for(c=a.next();!c.done;c=a.next())(c=
c.value)&&this.items.push({video_id:c});this.length=this.items.length;if(a=b.video)this.items=a.slice(0),this.loaded=!0}this.setShuffle(!!b.shuffle);if(a=b.suggestedQuality)this.quality=a;this.Z=jS(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
x_a=function(a){return!!(a.playlist||a.list||a.api)};
y_a=function(a){var b=a.index+1;return b>=a.length?0:b};
z_a=function(a){var b=a.index-1;return 0>b?a.length-1:b};
g.qV=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.ES(a.Da,b),g.N(a,e),e.jn=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
A_a=function(a,b){a.index=g.ze(b,0,a.length-1);a.startSeconds=0};
B_a=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.qV(a);a.items=[];for(var d=g.u(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(b=b.index)?a.index=b:a.findIndex(c);a.setShuffle(!1);a.loaded=!0;a.B++;a.j&&a.j()}};
E_a=function(a,b){var c,d,e,f,h,l,m;return g.G(function(n){if(1==n.j){c=g.nH();var p=a.U(),q={context:g.xT(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}};if(p.L("embeds_web_enable_havs_getembeddedplayer")){var r=p.getWebPlayerContextConfig();if(null==r?0:r.encryptedHostFlags)q.playbackContext.contentPlaybackContext.encryptedHostFlags=r.encryptedHostFlags;if(null==r?0:r.hideInfo)q.playerParams={showinfo:!1}}p=p.embedConfig;r=b.docid||b.video_id||b.videoId||b.id;if(!r){r=
b.raw_embedded_player_response;if(!r){var t=b.embedded_player_response;t&&(r=JSON.parse(t))}if(r){var v,w,A,C,F,H;r=(null==(H=g.V(null==(v=r)?void 0:null==(w=v.embedPreview)?void 0:null==(A=w.thumbnailPreviewRenderer)?void 0:null==(C=A.playButton)?void 0:null==(F=C.buttonRenderer)?void 0:F.navigationEndpoint,g.PS))?void 0:H.videoId)||null}else r=null}v=(v=r)?v:void 0;w=a.playlistId?a.playlistId:b.list;A=b.listType;if(w){var M;"user_uploads"===A?M={username:w}:M={playlistId:w};C_a(p,v,b,M);q.playlistRequest=
M}else b.playlist?(M={templistVideoIds:b.playlist.toString().split(",")},C_a(p,v,b,M),q.playlistRequest=M):v&&(M={videoId:v},p&&(M.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=M);d=q;e=g.mG(D_a);g.Ba(n,2);return g.z(n,g.eH(c,d,e),4)}if(2!=n.j)return f=n.B,h=a.U(),b.raw_embedded_player_response=f,h.Ga=hra(b,g.BR(h)),h.C="EMBEDDED_PLAYER_MODE_PFL"===h.Ga,f&&(l=f,l.trackingParams&&SO(l.trackingParams)),n.return(new g.ES(h,b));m=g.Da(n);m instanceof Error||(m=Error("b259802748"));g.AE(m);return n.return(a)})};
C_a=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.sV=function(a,b){rV.get(a);rV.set(a,b)};
g.tV=function(a){g.UE.call(this);this.loaded=!1;this.player=a};
F_a=function(){this.B=[];this.j=[]};
g.uV=function(a,b){return b?a.j.concat(a.B):a.j};
g.vV=function(a,b){switch(b.kind){case "asr":G_a(b,a.B);break;default:G_a(b,a.j)}};
G_a=function(a,b){g.Db(b,function(c){return c?a.toString()===c.toString():!1})||b.push(a)};
g.wV=function(a){g.I.call(this);this.W=a;this.B=new F_a;this.D=[];this.N=[]};
g.xV=function(a,b,c){g.wV.call(this,a);this.audioTrack=c;this.j=null;this.C=!1;this.D=b.Iv;this.N=b.YC;this.C=g.nT(b)};
H_a=function(){this.lj=!1};
I_a=function(a){var b=void 0===a?{}:a;a=void 0===b.hasSubfragmentedFmp4?!1:b.hasSubfragmentedFmp4;b=void 0===b.dF?!1:b.dF;var c=new H_a;c.lj=a||b;return c};
g.J_a=function(a){this.Da=a;this.N=new H_a;this.Oy=this.My=!1;this.wp=2;this.Ca=20971520;this.bb=8388608;this.ra=120;this.ud=62914560;this.cq=g.xI(this.Da.experiments,"html5_min_readbehind_secs");this.xD=g.xI(this.Da.experiments,"html5_min_readbehind_cap_secs");this.Bj=this.Da.L("html5_offline_reset_media_stream_on_unresumable_slices");this.sb=NaN;this.Fv=this.Ll=this.Yv=2;this.Dk=1024*yV(this,"html5_request_size_min_kb",64);this.Ma=2097152;this.mz=yV(this,"html5_bypass_contention_secs");this.Ev=
1048576;this.Rl=!1;this.Ck=yV(this,"html5_repredict_interval_ms",1800);this.tD=yV(this,"html5_head_miss_secs",5);this.zD=yV(this,"html5_min_upgrade_health_secs",10);this.rb=15;this.Tf=1;this.Z=1.15;this.Y=1.05;this.Nl=1;this.yD=yV(this,"html5_min_seconds_between_format_selections",8);this.rD=yV(this,"html5_max_buffer_health_for_downgrade_secs",15);this.Qs=gR;this.Kn=this.Qc=!1;this.yj=6;this.B=!1;this.zj=g.xI(this.Da.experiments,"html5_min_startup_buffered_media_duration_secs");this.Py=g.xI(this.Da.experiments,
"html5_post_interrupt_readahead");this.zz=this.Da.L("html5_disable_classic_alr");this.Bv=g.xI(this.Da.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.Wv=100;this.Pi=10;this.BD=6;this.Tv=yV(this,"html5_ssdai_failure_retry_limit",3);this.Ql=this.Da.experiments.fb("html5_clone_original_for_fallback_location");this.Oi=!1;this.Nb=g.xI(this.Da.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.Mk=g.xI(this.Da.experiments,"html5_subsegment_readahead_timeout_secs");this.OC=
g.xI(this.Da.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.Kk=g.xI(this.Da.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.RC=g.xI(this.Da.experiments,"html5_subsegment_readahead_min_load_speed");this.Vv=g.xI(this.Da.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.TC=g.xI(this.Da.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.uj=yV(this,"html5_hopeless_secs",15);this.pp=1;this.zd=!1;this.KH=this.Da.L("html5_restrict_streaming_xhr_on_sqless_requests");
this.uD=g.xI(this.Da.experiments,"html5_max_headm_for_streaming_xhr");this.GD=this.Da.L("html5_pipeline_manifestless_allow_nonstreaming");this.xE=this.Da.L("html5_prefer_server_bwe3");this.UC=this.Da.L("html5_last_slice_transition");this.KC=this.Da.L("html5_store_xhr_headers_readable");this.Rv=this.Qf=this.Xj=!1;this.tp=g.xI(this.Da.experiments,"html5_max_drift_per_track_secs");this.gq=this.Da.L("html5_no_placeholder_rollbacks");this.MC=this.Da.L("html5_subsegment_readahead_enable_mffa");this.uf=
this.Da.L("html5_allow_video_keyframe_without_audio");this.FD=this.Da.L("html5_enable_vp9_fairplay");this.gb=!0;this.tf=this.Va=this.Dc=!1;this.pn=!0;this.Gv=!1;this.D="";this.dB=1048576;this.sf=[];this.MB=this.Da.L("html5_woffle_resume");this.Kl=this.Da.L("html5_abs_buffer_health");this.QC=this.Da.L("html5_interruption_resets_seeked_time");this.vD=g.xI(this.Da.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.La=!1;this.hp=this.Da.L("html5_explicitly_dispose_xhr");this.Cv=!1;
this.Ml=!this.Da.L("html5_encourage_array_coalescing");this.Pl=!1;this.yH=this.Da.L("html5_restart_on_unexpected_detach");this.qj=0;this.Ab="";this.HC=this.Da.L("html5_filter_non_efficient_formats_for_safari");this.Da.L("html5_format_hybridization");this.gz=this.Da.L("html5_abort_before_separate_init");this.MH=ara();this.IC=this.Da.L("html5_serialize_server_stitched_ad_request");this.nz=this.Da.L("html5_skip_buffer_check_seek_to_head");this.je=!1;this.lz=this.Da.L("html5_attach_po_token_to_bandaid");
this.Ip=g.xI(this.Da.experiments,"html5_max_redirect_response_length")||8192;this.Ik=this.Da.L("html5_rewrite_timestamps_for_webm");this.Jb=this.Da.L("html5_only_media_duration_for_discontinuities");this.zG=g.xI(this.Da.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Da.L("html5_onesie_live");this.VC=this.Da.L("html5_onesie_premieres");this.zB=this.Da.L("html5_drop_onesie_for_live_mode_mismatch");this.CD=g.xI(this.Da.experiments,"html5_onesie_live_ttl_secs")||8;this.Aq=g.xI(this.Da.experiments,
"html5_attach_num_random_bytes_to_bandaid");this.DD=g.xI(this.Da.experiments,"html5_onesie_request_timeout_ms")||3E3;this.j=!1;this.Pf=this.Da.L("html5_apply_ssap_slice_info_adjustment");this.EC=this.Da.L("html5_enable_sabr_host_fallback");this.qa=!1;this.MA=this.Da.L("html5_disable_ssap_append_pause");this.NC=this.Da.L("html5_sabr_ignore_changetype_exception");this.jn=this.Da.L("html5_init_source_buffer_after_metadata");this.LC=this.Da.L("html5_gapless_fallback_on_append_error");this.Xv=!1;this.Ga=
this.Da.L("html5_ssdai_use_post_for_media")&&this.Da.L("gab_return_sabr_ssdai_config");this.XC=this.Da.L("html5_use_post_for_media");this.vc=this.Da.L("html5_use_live_ump_heartbeat");this.Ok=this.Da.L("html5_use_sps_ump_part");this.ZC=this.Da.L("html5_sabr_use_sps_ump_part");this.wi=this.Da.L("html5_enable_sps_non_fatal_logs");this.NH=this.Da.L("html5_enable_sps_rebuffer_logs");this.useUmp=this.Da.L("html5_use_ump");this.Wa=this.Ha=!1;this.JD=this.Da.Tf;this.SF=this.Da.L("html5_reset_primary_stats_on_redirector_failure");
this.uF=this.Da.L("html5_remap_to_original_host_when_redirected");this.Sl=this.Ig=this.C=!1;this.Uf=this.Da.L("html5_enable_sabr_format_selection");this.qA=this.Da.L("html5_disable_sabr_fallback_on_player_exception");this.qn=this.Da.L("html5_sabr_support_quality_constraints");this.CF=this.Da.L("html5_sabr_remove_all_quality_constraints");this.oz=this.Da.L("html5_iterative_seeking_buffered_time");this.Jl=this.Da.L("html5_use_network_error_code_enums");this.Yz=this.Da.L("html5_disable_overlapping_requests");
this.G=!1;this.enableServerDrivenRequestCancellation=this.Da.L("html5_enable_server_driven_request_cancellation");this.LH=this.Da.L("html5_enable_sabr_request_timing");this.un=this.Da.L("html5_enable_server_format_filter");this.nB=this.Da.L("html5_drc_edit_sync_workaround");this.PB=this.Da.L("html5_enable_lawnmower");this.uC=this.Da.L("html5_enable_lawnmower_messaging");this.Sf=this.Da.Bc()?g.xI(this.Da.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.OH=this.Da.L("html5_sabr_fix_empty_video_format_for_audio_only");
this.SC=g.xI(this.Da.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.rq=g.xI(this.Da.experiments,"html5_normal_latency_mffa_ms")||NaN;this.AD=g.xI(this.Da.experiments,"html5_mffa_ms_proxima_override")||this.rq;this.YC=this.Da.L("html5_live_defrag_only_h264_playbacks");this.WC=this.Da.L("html5_live_defrag_only_h264_formats");this.tF=this.Da.L("html5_record_now");this.uh=!1;this.Xl=g.xI(this.Da.experiments,"html5_drm_byterate_soft_cap");this.hn=g.xI(this.Da.experiments,"html5_drm_live_byterate_soft_cap");
this.kp=this.Dv=!1;this.eb=this.Da.L("html5_sabr_log_request_creation");this.Hb=this.Da.L("html5_sabr_report_request_cancellation_info");this.Rf=this.wv=this.Uv=!1;this.Sv=this.Da.L("html5_spoof_4k");this.bq=yV(this,"html5_min_media_duration_for_cabr_slice");this.wD=this.Ml?0:yV(this,"html5_min_media_duration_for_append_prop");this.LF=this.Da.L("html5_remove_defrag_without_frame_level_streaming");this.Jd=!0;this.pz=this.Da.L("html5_consume_all_buffered_bytes_one_poll");this.NA=this.Da.L("html5_disable_urgent_adaptation");
this.kz=this.Da.L("html5_apply_constraints_in_client_for_sabr");this.Jv=this.Da.L("html5_send_video_playback_ustreamer_config");this.qp=yV(this,"html5_max_discontinuity_rewrite_count");this.vp=yV(this,"html5_max_drift_seconds");this.jp=yV(this,"html5_fixed_media_duration_for_request");this.Iv=this.Da.L("html5_sabr_use_init_selected_audio");this.Ol=this.Da.L("html5_use_init_selected_audio");this.Sa=!1;this.Nd=yV(this,"html5_sabr_request_limit_per_period");this.vn=this.Gj=this.K=this.Hv=this.Nk=!1;
this.Kb=this.Da.L("html5_sabr_live_partial_segment");this.ge=this.Da.L("html5_sabr_dispose_media_objects");this.Wl=!1;this.jz=this.Da.L("html5_account_for_underrun_advance_in_sabr");this.ip=this.Da.L("html5_fix_underrun_advance_with_buffer_tracking_in_sabr");this.sj=this.Da.L("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.mp=this.Da.L("html5_log_post_size");this.Qy=this.xj=!1;this.DC=this.Da.L("html5_enable_d6de4");this.iz=this.Da.L("html5_account_for_delayed_buffer_range_creation");this.Sp=
g.xI(this.Da.experiments,"html5_micro_discontinuity_threshold_ms_in_buffer_timeline");this.sD=this.Da.L("html5_ssap_keep_only_ssap_eos_check");this.Da.L("html5_high_res_seek_logging");this.Sb=this.Da.L("html5_update_buffer_timeline_until_update_end");this.JC=this.Da.L("html5_fix_underrun_advance_with_media_element_tracking")};
K_a=function(a,b,c){c=void 0===c?!1:c;1080<b.video.j&&!a.My&&(a.Ca=36700160,a.bb=5242880,a.Ma=Math.max(4194304,a.Ma),a.My=!0);2160<b.video.j&&!a.Oy&&(a.Ca=104857600,a.sb=13107200,a.Oy=!0);0!==g.xI(a.Da.experiments,"html5_samsung_kant_limit_max_bitrate")?b.isEncrypted()&&g.hB()&&g.fB("samsung")&&(g.fB("kant")||g.fB("muse"))&&(a.sb=g.xI(a.Da.experiments,"html5_samsung_kant_limit_max_bitrate")):b.isEncrypted()&&g.hB()&&g.fB("kant")&&(a.sb=1310720);0!==a.Xl&&b.isEncrypted()&&(a.sb=a.Xl);0!==a.hn&&b.isEncrypted()&&
c&&(a.sb=a.hn);b.sb&&(a.Ev=Math.max(a.Dk,Math.min(a.Ma,5*b.sb)))};
zV=function(a){return a.C&&a.Uf};
AV=function(a){return a.C&&a.Ig&&a.playbackStartPolicy};
L_a=function(a,b,c,d){a.Ig&&(a.playbackStartPolicy=b,a.ID=c,a.HD=d)};
yV=function(a,b,c){return g.xI(a.Da.experiments,b)||(void 0===c?0:c)};
g.M_a=function(a,b){return mK(a.info.mimeType)?b?a.info.itag===b:!0:!1};
g.N_a=function(a,b){if(null!=a.j&&g.GI(b.U())&&!a.j.isManifestless&&null!=a.j.j.rawcc)return!0;if(!a.dc())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.M_a(c,"386")});
a=!!a.j&&!a.j.isManifestless&&nTa(a.j);return b||a};
g.BV=function(a,b,c,d,e,f){g.wV.call(this,a);this.videoId=c;this.bZ=e;this.eventId=f;this.G={};this.j=null;a=d||g.GA(b).hl||"";a=a.split("_").join("-");this.C=HA(b,{hl:a})};
O_a=function(a,b,c){for(var d=null,e={yA:0};e.yA<a.length;e={Ew:void 0,yA:e.yA},e.yA++)if(e.Ew=a[e.yA],e.Ew.condition()){var f=function(h){return function(){try{if(h.Ew.condition()){var l=h.Ew.func();return b?l.then(function(m){if(!b(m))throw Error("verification failed");return m}):l}}catch(m){return Promise.reject(m)}return Promise.reject()}}(e);
d?d=d.then(void 0,f):d=f();d=d.then(void 0,function(h){return function(l){if(l){if(h.Ew.onFailure)h.Ew.onFailure(l);c&&c(h.yA,h.Ew,l)}throw l;}}(e))}return d};
P_a=function(a,b){return{yz:a.yz&&b.yz,Id:a.Id&&b.Id,sync:a.sync&&b.sync,streaming:a.streaming&&b.streaming}};
CV=function(a,b){var c=Q_a;this.path=a;this.C=b;this.D=c;this.capabilities={yz:!!this.C,Id:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly}};
T_a=function(a){var b=R_a;return b.instantiate(a?P_a(b.capabilities,a):b.capabilities,new S_a)};
U_a=function(a){if(a.B)return a.B;a.B=fetch(a.path).then(function(b){return b.arrayBuffer()}).then(function(b){a.B=Promise.resolve(b);
return b}).then(void 0,function(b){g.BE(Error("wasm module fetch failure",{cause:b}));
a.B=void 0;throw b;});
return a.B};
V_a=function(a,b){if(!b.Id)return Promise.reject(Error("wasm unavailable"));if(a.j)return a.j;a.j=a.compile(b).then(function(c){a.j=Promise.resolve(c);return c},function(c){g.BE(Error("wasm module compile failure",{cause:c}));
a.j=void 0;throw c;});
return a.j};
W_a=function(){};
X_a=function(){};
S_a=function(){this.env=new W_a;this.wasi_snapshot_preview1=new X_a};
Q_a=function(a,b){b._initialize();a=Math.floor(256*Math.random());var c=Math.floor(256*Math.random()),d=0;try{d=b.malloc(16);(new Uint8Array(b.memory.buffer,d,16)).fill(a);if(b.sentinel(d,16,c)!==16*c%256)return!1;for(var e=new Uint8Array(b.memory.buffer,d,16),f=0;16>f;f++)if(e[f]!==(a+c)%256)return!1;return!0}finally{0!==d&&b.free(d)}};
DV=function(a,b){this.instance=a;this.Wp=b;this.exports=this.instance.exports};
Z_a=function(a,b,c){c=void 0===c?!1:c;var d=EV.Hs();return Y_a(a,b,{yz:c,Id:!0,sync:!0,streaming:!0}).then(function(e){EV.yr(e.Wp?"winitjs":"winit",d);return e})};
Y_a=function(a,b,c){R_a||(R_a=new CV(a,b));return T_a(c).then(function(d){return new DV(d.instance,d.Wp)})};
$_a=function(a,b){g.I.call(this);var c=this;this.J=a;this.j=b;this.SI={};this.B={};this.C=null;this.K=this.J.L("web_player_defer_modules");this.D=new Set;this.G=new g.YJ(this);this.wd={jqb:function(){return c.j}};
this.Fe=new Map;g.N(this,this.G);this.G.T(a,"videodatachange",this.onVideoDataChange)};
g.FV=function(a){return a.Fe.get("captions")};
f0a=function(a,b){switch(b){case "ad":return a0a(a);case "annotations_module":return a.J.bd()?a=!1:(b=a.J,a=b.U(),b=b.getVideoData(),a=a.C||b.kU||"3"===a.controlsType?!1:a.Ma.isEmpty()&&"annotation-editor"!==a.playerStyle&&"live-dashboard"!==a.playerStyle?!!b.Va||!!g.lT(b)||!!g.yXa(b):!0),a;case "asmjs":return a.J.U().L("html5_allow_asmjs");case "creatorendscreen":return b0a(a);case "embed":return g.BR(a.J.U());case "endscreen":return g.c0a(a);case "heartbeat":return a.jT();case "inline_preview":return a.J.U().showInlinePreviewUi;
case "kids":return MR(a.J.U());case "remote":return a.J.U().Bj;case "miniplayer":return a.J.U().showMiniplayerUiWhenMinimized;case "offline":return a.J.U().xj;case "captions":return d0a(a);case "unplugged":return g.HR(a.J.U());case "ux":return a.J.U().eb;case "webgl":return e0a(a);case "ypc":return a.fH();case "ypc_clickwrap":return a=a.J.getVideoData(),a.wi&&!a.HD;case "yto":return!!a.J.getVideoData().Ga.includes("yto");default:return g.AE(Error("Module descriptor "+b+" does not match")),!1}};
GV=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var h=a.Fe.get(b);if(!h||d)if(e||(e=function(){GV(a,b,c,d)}),f||(f=function(){a.J.Eg(b)}),h=h||g0a(a,b,f0a(a,b),e,f))a.Fe.set(b,h),h.create(),a.J.publish("modulecreated",b),c&&a.J.Rm("onApiChange")};
i0a=function(a){var b=void 0===b?!1:b;var c,d,e,f,h;return g.G(function(l){if(1==l.j)return(c=a.Fe.get("asmjs"))&&!b?l.return(c):null!=(d=rV.get("asmjs"))?(e=d,l.Ia(2)):g.z(l,new Promise(function(m,n){h0a(a,"asmjs",function(){var p=rV.get("asmjs");p?m(p):n("cannot load module asmjs")},n)}),3);
2!=l.j&&(e=l.B);f=e;if(!f)return l.return(Promise.reject("cannot load module asmjs"));h=new f(a.J);a.Fe.set("asmjs",h);h.create();return l.return(h)})};
l0a=function(a){j0a(a)&&a.DO();k0a(a)&&(GV(a,"captions",!0),GV(a,"endscreen"),a.OI(),GV(a,"creatorendscreen",!0))};
k0a=function(a){var b=a.J.getVideoData(),c=a.K&&!b.isInlinePlaybackNoAd;a.J.L("html5_defer_modules_on_ads_only")&&!b.isAd()&&(c=!1);return c};
j0a=function(a){a=a.J.getVideoData();var b;if(b=a.L("web_player_defer_ad")){if(g.Fb(a.Ga,"ad")||mXa(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.u(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};
d0a=function(a){var b=a.J.getVideoData();return!!b.Nd||!!b.captionTracks.length||g.N_a(b,a.J)};
g.c0a=function(a){var b=a.J.U();if(b.C||YR(b)||b.K||!b.zd&&!b.Ig)return!1;var c=a.J.getPresentingPlayerType();if(2===c)return!1;if(3===c)return b.L("desktop_enable_autoplay");a=a.J.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay");c=a.isLivePlayback&&(!b.L("allow_live_autoplay")||!c);b=a.isLivePlayback&&b.L("allow_live_autoplay_on_mweb");return!c||b};
g.ST=function(a){return a.Fe.get("webgl")};
e0a=function(a){var b=a.J.getVideoData();a=a.J.U();var c=g.$qa(),d=a.L("enable_spherical_kabuki"),e=g.VR(a);if(g.jT(b))return c||d||e;if(g.hT(b))return e||c||d;if(g.iT(b))return e||c||!1;if(g.YS(b))return e||!1;c=b.B&&b.B.video&&b.B.video.isHdr();return e&&!g.$S(b)&&!c&&a.L("enable_webgl_noop")};
a0a=function(a){if(a.J.U().C)return!1;a=a.J.getVideoData(1);var b=a.getPlayerResponse();if(b){var c=b.adPlacements;if(c)for(var d=0;d<c.length;d++)if(c[d].adPlacementRenderer)return!0;if(b.adSlots)return!0}return g.sT(a)?!0:!1};
b0a=function(a){if(a.J.bd())return!1;a=a.J;var b=a.U();if(b.C||"3"===b.controlsType)return!1;if("creator-endscreen-editor"===b.playerStyle)return!0;a=a.getVideoData();return!!a&&(!!g.wXa(a)||!!g.xXa(a))};
g0a=function(a,b,c,d,e){try{if(c){var f=rV.get(b);if(f)return new f(a.J);h0a(a,b,d,e)}else a.J.Eg(b)}catch(h){a.J.Eg(b),g.AE(h)}return null};
HV=function(a,b,c){if(a.J.U().L("html5_dispose_modules_in_order"))for(var d=g.u(m0a),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Fe.get(e);f&&(c||f.Wm(b))&&(g.vb(f),a.Fe.delete(e))}else for(d=g.u(a.Fe),e=d.next();!e.done;e=d.next())f=g.u(e.value),e=f.next().value,(f=f.next().value)&&(c||f.Wm(b))&&(g.vb(f),a.Fe.delete(e))};
IV=function(a){return a.Fe.get("ad")};
n0a=function(a){if(MR(a.J.U()))return a.Fe.get("kids")};
QT=function(a){if(a.J.U().Bj)return a.Fe.get("remote")};
g.JV=function(a){if(g.HR(a.J.U()))return a.Fe.get("unplugged")};
hYa=function(a){if(a.J.U().eb)return a.Fe.get("ux")};
KV=function(a){if(a.J.U().xj)return a.Fe.get("offline")};
g.LV=function(a){return a.Fe.get("annotations_module")};
o0a=function(a){return a.Fe.get("creatorendscreen")};
q0a=function(a,b){var c,d;return g.G(function(e){c=a.j.startsWith("https://")?a.j+"lib.wasm":a.j.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";d=function(f){var h=a.Fe.get("asmjs");return h?Promise.resolve(h.jZ(f)):p0a(a).then(function(l){return l.jZ(f)})};
return e.return(Z_a(c,d,b))})};
p0a=function(a){var b,c;return g.G(function(d){if(1==d.j)return g.z(d,i0a(a),2);c=b=d.B;return d.return(c)})};
h0a=function(a,b,c,d){if(a.j){var e=r0a[b];s0a(a,a.j+e,function(){a.D.add(e);c.call(a)},d)}};
s0a=function(a,b,c,d){function e(){a.Na()||d.call(a)}
function f(){a.Na()||c.call(a)}
for(var h=g.nf("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.yf("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(w){Of(f);q&&q.apply(window,[w])};
var r=m.onerror;m.onerror=function(w){if(.01>Math.random()){var A=new g.XB("Unable to load player module",b,document.location&&document.location.origin);g.AE(A)}Of(e);r&&r(w)};
var t=m,v=t.onreadystatechange;t.onreadystatechange=function(w){switch(t.readyState){case "loaded":case "complete":Of(f)}v&&v(w)};
l&&((h=a.J.U().cspNonce)&&m.setAttribute("nonce",h),g.We(m,g.uma(b)),h=g.nf("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),a.addOnDisposeCallback(function(){m.parentNode&&m.parentNode.removeChild(m)}))};
t0a=function(a,b,c,d,e){g.UE.call(this);var f=this;this.target=a;this.BI=b;this.B=0;this.K=!1;this.D=new g.Ee(NaN,NaN);this.j=new g.YJ(this);this.Ca=this.C=this.N=null;g.N(this,this.j);b=d||e?4E3:3E3;this.Y=new g.Iv(function(){MV(f,1,!1)},b,this);
g.N(this,this.Y);this.qa=new g.Iv(function(){MV(f,2,!1)},b,this);
g.N(this,this.qa);this.ra=new g.Iv(function(){MV(f,512,!1)},b,this);
g.N(this,this.ra);this.Ha=3E3;d||(this.C=this.j.T(a,"mouseover",this.Cx),this.j.T(a,"mousemove",this.V5),this.j.T(a,"mouseleave",this.Q$));Js?this.j.T(a,"keypress",this.g$):this.j.T(a,"focusin",this.s8);this.G=this.j.T(a,"mousedown",this.HV);this.Z=this.j.T(a,"touchstart",this.IV,void 0,!0);MV(this,640,!0)};
u0a=function(a){MV(a,4,!1);a.N&&(a.j.Pc(a.N),a.N=null,a.C=a.j.T(a.target,"mouseover",a.Cx));a.C&&(a.j.Pc(a.C),a.C=a.j.T(a.target,"mouseover",a.Cx))};
MV=function(a,b,c){a.Na();var d=!a.B;c?(a.B|=b,b&1&&a.Y.start(),b&2&&a.qa.start()):(a.B&=~b,b&1&&a.Y.stop(),b&2&&a.qa.stop(),b&512&&a.ra.stop());a.B&512&&!(a.B&128)&&g.Jv(a.ra,a.Ha);b=!a.B;d!==b&&a.publish("autohideupdate",b)};
g.OV=function(a){g.W.call(this,{I:"button",Ka:["ytp-large-play-button","ytp-button"],X:{"aria-label":"Play",title:"Play"},V:["{{largePlayButtonChildren}}"]});this.api=a;this.T(a,"videodatachange",this.Ta);this.T(a,"basechromeinitialized",this.Sea);a=this.api.U();a.Z&&NV&&(this.listen("click",this.j9,this),this.listen("touchstart",this.bda,this));g.GR(a)&&g.Qv(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.Ta()};
g.PV=function(a){var b=a.U(),c=["ytp-cued-thumbnail-overlay"];b.K&&c.push("ytp-exp-contain-thumbnail");b.L("web_player_show_frame_zero_when_cued")&&c.push("ytp-exp-frame0");g.W.call(this,{I:"div",Ka:c,V:[{I:"div",S:"ytp-cued-thumbnail-overlay-image"}]});b=this.Fa("ytp-cued-thumbnail-overlay");c=new g.OV(a);g.N(this,c);c.Ja(b);this.D=new g.YJ(this);g.N(this,this.D);this.api=a;this.G=this.Fa("ytp-cued-thumbnail-overlay-image");this.C=c;this.B=new g.FF(this,250);g.N(this,this.B);this.j=new g.Iv(this.Ta,
0,this);g.N(this,this.j);this.Ta();this.T(a,"appresize",this.jc);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"ypcStateChanged",this.Hca);DR(a.U())&&this.T(a,"videoplayerreset",this.onReset)};
v0a=function(a){if(!a.api.L("web_player_show_frame_zero_when_cued"))return!1;var b=a.api.getCurrentTime();a=a.api.getPlayerStateObject();a=g.MF(a,64)&&g.MF(a,1);return 0===b&&a};
g.QV=function(a){g.W.call(this,{I:"div",Ka:["ytp-error"],X:{role:"alert"},V:[{I:"div",S:"ytp-error-content",V:[{I:"div",S:"ytp-error-icon-container",V:[{I:"svg",X:{fill:"#fff",viewBox:"0 0 48 48"},V:[{I:"path",X:{d:"M0 0h48v48H0V0z",fill:"none"}},{I:"path",X:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{I:"div",S:"ytp-error-content-wrap",
V:[{I:"div",S:"ytp-error-content-wrap-reason",xa:"{{content}}"},{I:"div",S:"ytp-error-content-wrap-subreason",xa:"{{subreason}}"}]}]}]});this.api=a;this.keys=[];this.C=!1;a.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.Gb)};
g.RV=function(a){a=a.split(w0a);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({I:"br"}),b.push(d[e]);c<a.length&&b.push({I:"a",X:{href:a[c],target:a[c+1]},xa:a[c+2]})}return{I:"span",V:b}};
TV=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.U().D);var l=a.api.getVideoData();b=g.jJ(g.SV[b]||"",d?{CPN:l.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({I:"h2",xa:f});d.push(b[0]);h&&d.push({I:"br"});d.push({I:"a",X:{href:c,target:e?"_blank":null},S:"ytp-error-link",xa:b[2]});a.C=!0;d.push(b[4]);return{I:"span",V:d}};
x0a=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.T(c[d],"click",b);a.keys.push(e)}};
y0a=function(a){for(var b=0;b<a.keys.length;b++)a.Pc(a.keys[b]);a.keys=[]};
z0a=function(a){g.W.call(this,{I:"div",S:"ytp-paid-content-overlay",X:{"aria-live":"assertive","aria-atomic":"true"}});this.J=a;this.videoId=null;this.C=!1;this.innertubeCommand=this.De=this.j=null;var b=a.U();a.L("enable_new_paid_product_placement")&&!g.TR(b)?(this.B=new g.W({I:"a",S:"ytp-paid-content-overlay-link",X:{href:"{{href}}",target:"_blank"},V:[{I:"div",S:"ytp-paid-content-overlay-icon",xa:"{{icon}}"},{I:"div",S:"ytp-paid-content-overlay-text",xa:"{{text}}"},{I:"div",S:"ytp-paid-content-overlay-chevron",
xa:"{{chevron}}"}]}),this.T(this.B.element,"click",this.onClick)):this.B=new g.W({I:"div",Ka:["ytp-button","ytp-paid-content-overlay-text"],xa:"{{text}}"});this.D=new g.FF(this.B,250,!1,100);g.N(this,this.B);this.B.Ja(this.element);g.N(this,this.D);this.J.createServerVe(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Y5)};
B0a=function(a,b){var c=jXa(b),d=kXa(b);b.wi&&a.J.Un()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.Lv(a.j),a.videoId=b.videoId,a.C=!!d,a.C&&c&&A0a(a,d,c,b)):c&&d&&A0a(a,d,c,b))};
A0a=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.Iv(a.Mb,b,a);g.N(a,a.j);d=iXa(d);b=null==d?void 0:d.navigationEndpoint;var e;d=null==d?void 0:null==(e=d.icon)?void 0:e.iconType;var f;e=null==(f=g.V(b,g.rF))?void 0:f.url;a.J.setTrackingParams(a.element,(null==b?void 0:b.clickTrackingParams)||null);b&&!e?(a.innertubeCommand=b,e="#!"):a.innertubeCommand=null;var h;a.B.update({href:null!=(h=e)?h:"#",text:c,icon:"MONEY_HAND"===d?{I:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},
V:[{I:"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:e||a.innertubeCommand?g.hF():null})};
C0a=function(a,b){a.j&&(g.MF(b,8)&&a.C?(a.C=!1,a.rd(),a.j.start()):(g.MF(b,2)||g.MF(b,64))&&a.videoId&&(a.videoId=null))};
UV=function(a){g.W.call(this,{I:"div",S:"ytp-spinner",V:[MYa(),{I:"div",S:"ytp-spinner-message",xa:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Fa("ytp-spinner-message");this.j=new g.Iv(this.show,500,this);g.N(this,this.j);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.B);this.Hc(a.getPlayerStateObject())};
VV=function(a){var b=[{I:"div",Ka:["ytp-unmute-icon"],V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{I:"div",Ka:["ytp-unmute-text"],xa:"Tap to unmute"}];b.push({I:"div",Ka:["ytp-unmute-box"],V:[]});g.ZT.call(this,a,{I:"button",Ka:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],V:[{I:"div",S:"ytp-unmute-inner",V:b}]},100);this.j=this.clicked=!1;this.api=a;this.api.createClientVe(this.element,this,51663);this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.T(a,"presentingplayerstatechange",this.vk);this.listen("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&
!g.BR(this.api.U());g.aF(this,a);a&&D0a(this);this.C=a};
D0a=function(a){a.j||(a.j=!0,a.api.logVisibility(a.element,!0))};
g.WV=function(a){g.YJ.call(this);var b=this;this.api=a;this.UQ=!1;this.Zn=null;this.BO=!1;this.yg=null;this.CO=this.qM=!1;this.OT=this.PT=null;this.BZ=NaN;this.NT=this.kE=!1;this.RF=0;this.GN=[];this.bS=!1;this.fK={height:0,width:0};this.P1=480;this.kfa=["ytp-player-content","html5-endscreen","ytp-overlay"];this.LK={zA:!1};var c=a.U(),d=a.ob();this.fK=a.getPlayerSize();this.KW=new g.Iv(this.mR,0,this);g.N(this,this.KW);this.En=new g.PV(a);g.N(this,this.En);g.UT(a,this.En.element,4);if(E0a(this)){var e=
new UV(a);g.N(this,e);e=e.element;g.UT(a,e,4)}var f=a.getVideoData();this.Jg=new t0a(d,function(l){return b.BI(l)},f,c.Jl,!1);
g.N(this,this.Jg);this.Jg.subscribe("autohideupdate",this.pB,this);if(!c.disablePaidContentOverlay){var h=new z0a(a);g.N(this,h);g.UT(a,h.element,4)}this.ST=new VV(a);g.N(this,this.ST);g.UT(this.api,this.ST.element,2);this.cQ=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.nM=new g.Iv(this.Ls,200,this);g.N(this,this.nM);this.AF=f.videoId;this.Z0=new g.Iv(function(){b.RF=0},350);
g.N(this,this.Z0);this.aJ=new g.Iv(function(){b.NT||F0a(b)},350,this);
g.N(this,this.aJ);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.Qv(f,"ytp-color-white")}this.T(a,"appresize",this.jc);this.T(a,"presentingplayerstatechange",this.vk);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.uba);this.T(a,"autonavvisibility",function(){b.Nq()});
this.T(a,"sizestylechange",function(){b.Nq()});
this.T(d,"click",this.Sba,this);this.T(d,"dblclick",this.Tba,this);this.T(d,"mousedown",this.Wba,this);c.Hb&&(this.T(d,"gesturechange",this.Uba,this),this.T(d,"gestureend",this.Vba,this));this.PF=[d.Nz];this.En&&this.PF.push(this.En.element);e&&this.PF.push(e)};
G0a=function(a,b){if(!b)return!1;var c=a.api.Je();if(c.Qv()&&(c=c.Ib())&&g.Jf(c,b))return c.controls;for(c=0;c<a.PF.length;c++)if(g.Jf(a.PF[c],b))return!1;c=g.u(a.kfa);for(var d=c.next();!d.done;d=c.next())if(g.Pv(b,d.value))return!1;return b===a.api.getRootNode()?!1:!0};
H0a=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.ob().bK||!1)&&a.api.U().B&&NV&&11<=IS;a=a.api.U().Z&&NV;return!(!b&&!a)};
XV=function(a,b){return!a.api.isInline()&&!G0a(a,EB(b))&&g.XF(b)};
F0a=function(a){a.Jg.tv();if(a.qM&&a.CO)a.CO=!1;else if(!a.api.U().Sa&&!a.vr()){var b=a.api.getPlayerStateObject();g.MF(b,2)&&g.OT(a.api)||a.gH(b);!a.api.U().Hb||b.isCued()||g.MF(b,1024)?a.Ls():a.nM.isActive()?(a.dQ(),a.nM.stop()):a.nM.start()}};
I0a=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.XF(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.getPlayerStateObject(),!g.MF(b,4)||g.MF(b,8)||g.MF(b,2)||a.Ls(),!0):!1};
J0a=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
E0a=function(a){a=gB()&&67<=Vqa()&&!a.api.U().Z;return!g.fB("tizen")&&!zR&&!a&&!0};
YV=function(a,b){b=void 0===b?2:b;g.UE.call(this);this.api=a;this.j=null;this.Ed=new KB(this);g.N(this,this.Ed);this.B=bza;this.Ed.T(this.api,"presentingplayerstatechange",this.Z5);this.j=this.Ed.T(this.api,"progresssync",this.Sc);this.Vo=b;1===this.Vo&&this.Sc()};
g.ZV=function(a){g.W.call(this,{I:"div",V:[{I:"div",S:"ytp-bezel-text-wrapper",V:[{I:"div",S:"ytp-bezel-text",xa:"{{title}}"}]},{I:"div",S:"ytp-bezel",X:{role:"status","aria-label":"{{label}}"},V:[{I:"div",S:"ytp-bezel-icon",xa:"{{icon}}"}]}]});this.J=a;this.B=new g.Iv(this.show,10,this);this.j=new g.Iv(this.hide,500,this);g.N(this,this.B);g.N(this,this.j);this.hide()};
aW=function(a,b,c){if(0>=b){c=rya();b="muted";var d=0}else c=c?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";$V(a,c,b,d+"%")};
K0a=function(a,b){b=b?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:bya();var c=a.J.getPlaybackRate(),d=g.jJ("Speed is $RATE",{RATE:String(c)});$V(a,b,d,c+"x")};
L0a=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";$V(a,LYa(),b)};
$V=function(a,b,c,d){d=void 0===d?"":d;a.updateValue("label",void 0===c?"":c);a.updateValue("icon",b);g.Lv(a.j);a.B.start();a.updateValue("title",d);g.Uv(a.element,"ytp-bezel-text-hide",!d)};
M0a=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-button","ytp-cards-button"],X:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.BR(a.U()))},V:[{I:"span",S:"ytp-cards-button-icon-default",V:[{I:"div",S:"ytp-cards-button-icon",V:[a.U().L("player_new_info_card_format")?eya():{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{I:"div",S:"ytp-cards-button-title",xa:"Info"}]},{I:"span",S:"ytp-cards-button-icon-shopping",V:[{I:"div",S:"ytp-cards-button-icon",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",S:"ytp-svg-shadow",X:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{I:"path",S:"ytp-svg-fill",X:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{I:"path",S:"ytp-svg-shadow-fill",X:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{I:"div",
S:"ytp-cards-button-title",xa:"Shopping"}]}]});this.J=a;this.C=b;this.j=null;this.B=new g.FF(this,250,!0,100);g.N(this,this.B);g.Uv(this.C,"ytp-show-cards-title",g.BR(a.U()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.Qaa);this.cH(!0)};
N0a=function(a,b){g.W.call(this,{I:"div",S:"ytp-cards-teaser",V:[{I:"div",S:"ytp-cards-teaser-box"},{I:"div",S:"ytp-cards-teaser-text",V:a.U().L("player_new_info_card_format")?[{I:"button",S:"ytp-cards-teaser-info-icon",X:{"aria-label":"Show cards","aria-haspopup":"true"},V:[eya()]},{I:"span",S:"ytp-cards-teaser-label",xa:"{{text}}"},{I:"button",S:"ytp-cards-teaser-close-button",X:{"aria-label":"Close"},V:[g.iF()]}]:[{I:"span",S:"ytp-cards-teaser-label",xa:"{{text}}"}]}]});var c=this;this.J=a;this.Xg=
b;this.D=new g.FF(this,250,!1,250);this.j=null;this.N=new g.Iv(this.eba,300,this);this.K=new g.Iv(this.dba,2E3,this);this.G=[];this.B=null;this.Y=new g.Iv(function(){c.element.style.margin="0"},250);
this.onClickCommand=this.C=null;g.N(this,this.D);g.N(this,this.N);g.N(this,this.K);g.N(this,this.Y);a.U().L("player_new_info_card_format")?(g.Qv(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Fa("ytp-cards-teaser-close-button"),"click",this.a6),this.T(this.Fa("ytp-cards-teaser-info-icon"),"click",this.DT),this.T(this.Fa("ytp-cards-teaser-label"),"click",this.DT)):this.listen("click",this.DT);this.T(b.element,"mouseover",this.KV);this.T(b.element,"mouseout",this.JV);this.T(a,"cardsteasershow",
this.rca);this.T(a,"cardsteaserhide",this.Mb);this.T(a,"cardstatechange",this.P2);this.T(a,"presentingplayerstatechange",this.P2);this.T(a,"appresize",this.rN);this.T(a,"onShowControls",this.rN);this.T(a,"onHideControls",this.w7);this.listen("mouseenter",this.b6)};
O0a=function(a){g.W.call(this,{I:"button",Ka:[bW.BUTTON,bW.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{I:"div",S:bW.TITLE_NOTIFICATIONS_ON,X:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},V:[g.iya()]},{I:"div",S:bW.TITLE_NOTIFICATIONS_OFF,X:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},V:[{I:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"path",X:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});
this.api=a;this.j=!1;a.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")};
P0a=function(a,b){a.j=b;a.element.classList.toggle(bW.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.uN:c.tN)?(a=a.api.wm())?dH(a,b):g.AE(Error("No innertube service available when updating notification preferences.")):g.AE(Error("No update preferences command available.")):g.AE(Error("No video data when updating notification preferences."))};
R0a=function(a,b,c){var d=void 0===d?800:d;var e=void 0===e?600:e;a=Q0a(a,b);if(a=g.Qe(a,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes"))Tua(function(){c()}),a.moveTo((screen.width-d)/2,(screen.height-e)/2)};
Q0a=function(a,b){var c=document.location.protocol;return Cfa(c+"//"+a+"/signin?context=popup","feature",b,"next",c+"//"+location.hostname+"/post_login")};
g.cW=function(a,b,c,d,e,f,h,l,m,n,p,q){a=a.charAt(0)+a.substring(1).toLowerCase();c=c.charAt(0)+c.substring(1).toLowerCase();if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var r=p.U(),t=r.userDisplayName&&g.GR(r);g.W.call(this,{I:"div",Ka:["ytp-button","ytp-sb"],V:[{I:"div",S:"ytp-sb-subscribe",X:t?{title:g.jJ("Subscribe as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":fVa(r),"data-tooltip-opaque":String(g.BR(r)),tabindex:"0",role:"button"}:
{"aria-label":"Subscribe to channel"},V:[{I:"div",S:"ytp-sb-text",V:[{I:"div",S:"ytp-sb-icon"},a]},b?{I:"div",S:"ytp-sb-count",xa:b}:""]},{I:"div",S:"ytp-sb-unsubscribe",X:t?{title:g.jJ("Subscribed as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":fVa(r),"data-tooltip-opaque":String(g.BR(r)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},V:[{I:"div",S:"ytp-sb-text",V:[{I:"div",S:"ytp-sb-icon"},c]},d?{I:"div",S:"ytp-sb-count",
xa:d}:""]}],X:{"aria-live":"polite"}});var v=this;this.channelId=h;this.J=p;this.C=q;var w=this.Fa("ytp-sb-subscribe"),A=this.Fa("ytp-sb-unsubscribe");f&&g.Qv(this.element,"ytp-sb-classic");if(e){l?this.j():this.B();var C=function(){if(r.Ca){var H=v.channelId;if(m||n){var M={c:H};var L;g.VO.isInitialized()&&(L=wPa(M));M=L||"";if(L=p.getVideoData())if(L=L.subscribeCommand){var R=p.wm();R?(dH(R,L,{botguardResponse:M,feature:m}),p.jb("SUBSCRIBE",H)):g.AE(Error("No innertube service available when updating subscriptions."))}else g.AE(Error("No subscribe command in videoData."));
else g.AE(Error("No video data available when updating subscription."))}A.focus();A.removeAttribute("aria-hidden");w.setAttribute("aria-hidden","true")}else R0a(g.NR(v.J.U()),"sb_button",v.D)},F=function(){var H=v.channelId;
if(m||n){var M=p.getVideoData();dH(p.wm(),M.unsubscribeCommand,{feature:m});p.jb("UNSUBSCRIBE",H)}w.focus();w.removeAttribute("aria-hidden");A.setAttribute("aria-hidden","true")};
this.T(w,"click",C);this.T(A,"click",F);this.T(w,"keypress",function(H){13===H.keyCode&&C(H)});
this.T(A,"keypress",function(H){13===H.keyCode&&F(H)});
this.T(p,"SUBSCRIBE",this.j);this.T(p,"UNSUBSCRIBE",this.B);this.C&&t&&(oYa(p),LT(p,w,this),LT(p,A,this))}else g.Qv(w,"ytp-sb-disabled"),g.Qv(A,"ytp-sb-disabled")};
U0a=function(a){g.W.call(this,{I:"div",S:"ytp-title-channel",V:[{I:"div",S:"ytp-title-beacon"},{I:"a",S:"ytp-title-channel-logo",X:{href:"{{channelLink}}",target:a.U().Y,role:"link","aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-title-expanded-overlay",X:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{I:"div",S:"ytp-title-expanded-heading",V:[{I:"div",S:"ytp-title-expanded-title",V:[{I:"a",xa:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.U().Y,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
tabIndex:"{{channelTitleFocusable}}"}}]},{I:"div",S:"ytp-title-expanded-subtitle",xa:"{{expandedSubtitle}}",X:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var b=this;this.api=a;this.channel=this.Fa("ytp-title-channel");this.B=this.Fa("ytp-title-channel-logo");this.channelName=this.Fa("ytp-title-expanded-title");this.G=this.Fa("ytp-title-expanded-overlay");this.C=this.j=this.subscribeButton=null;this.D=!1;a.createClientVe(this.B,this,36925);a.createClientVe(this.channelName,this,
37220);g.BR(this.api.U())&&S0a(this);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Qe(T0a(b));c.preventDefault()});
this.T(this.B,"click",this.vaa);this.Ta()};
V0a=function(a){if(!a.api.U().Sb){var b=a.api.getVideoData(),c=new g.cW("Subscribe",null,"Subscribed",null,!0,!1,b.Il,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)});
a.subscribeButton=c;g.N(a,a.subscribeButton);a.subscribeButton.Ja(a.G);a.subscribeButton.hide();var e=new O0a(a.api);a.j=e;g.N(a,e);e.Ja(a.G);e.hide();a.T(a.api,"SUBSCRIBE",function(){b.Ql&&(e.show(),a.api.logVisibility(e.element,!0))});
a.T(a.api,"UNSUBSCRIBE",function(){b.Ql&&(e.hide(),a.api.logVisibility(e.element,!1),P0a(e,!1))})}};
S0a=function(a){var b=a.api.U();V0a(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.B||b.Wa||(a.T(a.channel,"mouseenter",a.XO),a.T(a.channel,"mouseleave",a.uO),a.T(a.channel,"focusin",a.XO),a.T(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||a.uO()}));
a.C=new g.Iv(function(){a.isExpanded()&&(a.api.logVisibility(a.channelName,!1),a.subscribeButton&&(a.subscribeButton.hide(),a.api.logVisibility(a.subscribeButton.element,!1)),a.j&&(a.j.hide(),a.api.logVisibility(a.j.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.N(a,a.C);a.T(a.channel,W0a,function(){X0a(a)});
a.T(a.api,"onHideControls",a.GS);a.T(a.api,"appresize",a.GS);a.T(a.api,"fullscreentoggled",a.GS)};
X0a=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
Y0a=function(a){var b=a.api.getPlayerSize();return g.BR(a.api.U())&&524<=b.width};
T0a=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.ZR(b)+c.Dc;if(!g.BR(b))return c;b={};g.CT(a.api,"addEmbedsConversionTrackingParams",[b]);g.XO(b,"emb_ch_name_ex");return g.to(c,b)};
dW=function(a){var b=g.bU({"aria-haspopup":"true"});g.aU.call(this,b,a);this.listen("keydown",this.j)};
eW=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
Z0a=function(a,b){g.W.call(this,{I:"div",S:"ytp-user-info-panel",X:{"aria-label":"User info"},V:a.U().Ca&&!a.L("embeds_web_always_enable_signed_out_state")?[{I:"div",S:"ytp-user-info-panel-icon",xa:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",S:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable}}",role:"text"},xa:"{{watchingAsUsername}}"},{I:"div",S:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable2}}",role:"text"},xa:"{{watchingAsEmail}}"}]}]:[{I:"div",S:"ytp-user-info-panel-icon",
xa:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",V:[{I:"text",X:{tabIndex:"{{userInfoFocusable}}"},xa:"Signed out"}]},{I:"div",S:"ytp-user-info-panel-login",V:[{I:"a",X:{tabIndex:"{{userInfoFocusable2}}",role:"button"},xa:a.U().Sb?"":"Sign in on YouTube"}]}]}]});this.Ua=a;this.j=b;a.U().Ca||a.U().Sb||(a=this.Fa("ytp-user-info-panel-login"),this.T(a,"click",this.d6));this.closeButton=new g.W({I:"button",Ka:["ytp-collapse","ytp-button"],X:{title:"Close"},V:[g.lF()]});this.closeButton.Ja(this.element);
g.N(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.c6);this.Ta()};
a1a=function(a,b,c){g.HU.call(this,a);this.Cb=b;this.ke=c;this.getVideoUrl=new dW(6);this.Sn=new dW(5);this.Ln=new dW(4);this.pc=new dW(3);this.JG=new g.aU(g.bU({href:"{{href}}",target:this.J.U().Y},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.aU(g.bU(),1,"Stats for nerds");this.Oz=new g.bF({I:"div",Ka:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},xa:"{{text}}"});this.nX=new GU(this.J,this.Oz);this.EH=this.Yt=null;g.BR(this.J.U())&&(this.closeButton=
new g.W({I:"button",Ka:["ytp-collapse","ytp-button"],X:{title:"Close"},V:[g.lF()]}),g.N(this,this.closeButton),this.closeButton.Ja(this.element),this.closeButton.listen("click",this.z7,this));g.BR(this.J.U())&&(this.Cl=new g.aU(g.bU(),8,"Account"),g.N(this,this.Cl),this.Rc(this.Cl,!0),this.Cl.listen("click",this.hca,this),a.createClientVe(this.Cl.element,this.Cl,137682));this.J.U().pn&&(this.rl=new jU("Loop",7),g.N(this,this.rl),this.Rc(this.rl,!0),this.rl.listen("click",this.Xaa,this),a.createClientVe(this.rl.element,
this.rl,28661));g.N(this,this.getVideoUrl);this.Rc(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.Oaa,this);a.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.N(this,this.Sn);this.Rc(this.Sn,!0);this.Sn.listen("click",this.Paa,this);a.createClientVe(this.Sn.element,this.Sn,28660);g.N(this,this.Ln);this.Rc(this.Ln,!0);this.Ln.listen("click",this.Naa,this);a.createClientVe(this.Ln.element,this.Ln,28658);g.N(this,this.pc);this.Rc(this.pc,!0);this.pc.listen("click",this.Maa,
this);g.N(this,this.JG);this.Rc(this.JG,!0);this.JG.listen("click",this.Oba,this);g.N(this,this.showVideoInfo);this.Rc(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.ica,this);g.N(this,this.Oz);this.Oz.listen("click",this.Aaa,this);g.N(this,this.nX);b=document.queryCommandSupported&&document.queryCommandSupported("copy");43<=Saa("Chromium")&&(b=!0);40>=Saa("Firefox")&&(b=!1);b&&(this.Yt=new g.W({I:"textarea",S:"ytp-html5-clipboard",X:{readonly:"",tabindex:"-1"}}),g.N(this,this.Yt),
this.Yt.Ja(this.element));var d;null==(d=this.Cl)||d.setIcon(kya());var e;null==(e=this.rl)||e.setIcon({I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.pc.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z",
fill:"white","fill-rule":"evenodd"}}]});this.JG.setIcon(cya());this.showVideoInfo.setIcon(dya());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);$0a(this);this.dH(this.J.getVideoData())};
fW=function(a,b){var c=!1;if(a.Yt){var d=a.Yt.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Cb.Mb():(a.Oz.Kd(b,"text"),g.KU(a.Cb,a.nX),NYa(a.Oz.element),a.Yt&&(a.Yt=null,$0a(a)));return c};
$0a=function(a){var b=!!a.Yt;a.pc.Gk(b?"Copy debug info":"Get debug info");eW(a.pc,!b);a.Ln.Gk(b?"Copy embed code":"Get embed code");eW(a.Ln,!b);a.getVideoUrl.Gk(b?"Copy video URL":"Get video URL");eW(a.getVideoUrl,!b);a.Sn.Gk(b?"Copy video URL at current time":"Get video URL at current time");eW(a.Sn,!b);a.Ln.setIcon(b?$xa():null);a.getVideoUrl.setIcon(b?jF():null);a.Sn.setIcon(b?jF():null)};
b1a=function(a){return g.BR(a.J.U())?a.Cl:a.rl};
d1a=function(a,b){g.JU.call(this,a);this.ke=b;this.D=new g.YJ(this);this.ra=new g.Iv(this.wca,1E3,this);this.Ca=this.C=null;g.N(this,this.D);g.N(this,this.ra);a.createClientVe(this.element,this,28656);g.Qv(this.element,"ytp-contextmenu");c1a(this);this.hide()};
c1a=function(a){g.MB(a.D);var b=a.J.U();"gvn"===b.playerStyle||b.B||b.Wa||(b=a.J.ob(),a.D.T(b,"contextmenu",a.yaa),a.D.T(b,"touchstart",a.f6,null,!0),a.D.T(b,"touchmove",a.e0,null,!0),a.D.T(b,"touchend",a.e0,null,!0))};
e1a=function(a){a.J.isFullscreen()?g.UT(a.J,a.element,10):a.Ja(document.body)};
gW=function(a,b,c){c=void 0===c?240:c;g.W.call(this,{I:"button",Ka:["ytp-button","ytp-copylink-button"],X:{title:"{{title-attr}}","data-tooltip-opaque":String(g.BR(a.U()))},V:[{I:"div",S:"ytp-copylink-icon",xa:"{{icon}}"},{I:"div",S:"ytp-copylink-title",xa:"Copy link",X:{"aria-hidden":"true"}}]});this.api=a;this.Oe=b;this.j=c;this.visible=!1;this.tooltip=this.Oe.Se();b=a.U();this.tooltip.element.setAttribute("aria-live","polite");g.Uv(this.element,"ytp-show-copylink-title",g.BR(b));a.createClientVe(this.element,
this,86570);this.listen("click",this.onClick);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.T(a,"appresize",this.Ta);this.Ta();this.addOnDisposeCallback(g.KT(this.tooltip,this.element))};
f1a=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=a.api.ob().getPlayerSize().width;b=b.C;return!!c.videoId&&d>=a.j&&c.wp&&!g.vT(c)&&!a.api.bd()&&!b};
g1a=function(a){a.updateValue("icon",Wxa());if(a.api.U().B)a.tooltip.hH(a.element,"Link copied to clipboard");else{a.updateValue("title-attr","Link copied to clipboard");a.tooltip.Th();a.tooltip.hH(a.element);var b=a.listen("mouseleave",function(){a.Pc(b);a.Ta();a.tooltip.im()})}};
h1a=function(a,b){return g.G(function(c){if(1==c.j)return g.Ba(c,2),g.z(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.Da(c);var d=c.return,e=!1,f=g.yf("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(MC){var l=window.getSelection();l.removeAllRanges();var m=document.createRange();m.selectNodeContents(f);l.addRange(m);f.setSelectionRange(0,b.length)}else f.select();try{e=document.execCommand("copy")}catch(n){}h.removeChild(f);
return d.call(c,e)})};
hW=function(a){g.W.call(this,{I:"div",S:"ytp-doubletap-ui-legacy",V:[{I:"div",S:"ytp-doubletap-fast-forward-ve"},{I:"div",S:"ytp-doubletap-rewind-ve"},{I:"div",S:"ytp-doubletap-static-circle",V:[{I:"div",S:"ytp-doubletap-ripple"}]},{I:"div",S:"ytp-doubletap-overlay-a11y"},{I:"div",S:"ytp-doubletap-seek-info-container",V:[{I:"div",S:"ytp-doubletap-arrows-container",V:[{I:"span",S:"ytp-doubletap-base-arrow"},{I:"span",S:"ytp-doubletap-base-arrow"},{I:"span",S:"ytp-doubletap-base-arrow"}]},{I:"div",
S:"ytp-doubletap-tooltip",V:[{I:"div",S:"ytp-chapter-seek-text-legacy",xa:"{{seekText}}"},{I:"div",S:"ytp-doubletap-tooltip-label",xa:"{{seekTime}}"}]}]}]});this.J=a;this.D=new g.Iv(this.show,10,this);this.B=new g.Iv(this.hide,700,this);this.K=this.C=0;this.G=!1;this.j=this.Fa("ytp-doubletap-static-circle");g.N(this,this.D);g.N(this,this.B);this.hide();this.N=this.Fa("ytp-doubletap-fast-forward-ve");this.Y=this.Fa("ytp-doubletap-rewind-ve");this.J.createClientVe(this.N,this,28240);this.J.createClientVe(this.Y,
this,28239);this.J.logVisibility(this.N,!0);this.J.logVisibility(this.Y,!0);this.G=a.L("web_show_cumulative_seek_time")};
iW=function(a,b,c){a.C=b===a.K?a.C+c:c;a.K=b;var d=a.J.ob().getPlayerSize();a.G?a.B.stop():g.Lv(a.B);a.D.start();a.element.setAttribute("data-side",-1===b?"back":"forward");g.Qv(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";i1a(a,a.G?a.C:c)};
j1a=function(a,b,c){g.Lv(a.B);a.D.start();switch(b){case -1:b="back";break;case 1:b="forward";break;default:b=""}a.element.setAttribute("data-side",b);a.j.style.width="0";a.j.style.height="0";g.Qv(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","")};
i1a=function(a,b){b=g.jJ("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)};
k1a=function(a){FU.call(this,a,!1,!0);this.Ha=[];this.Nb=[];this.Y=!0;this.badge.element.classList.add("ytp-featured-product");this.Ga=new g.W({I:"div",S:"ytp-featured-product-open-in-new"});g.N(this,this.Ga);this.countdownTimer=new g.W({I:"text",S:"ytp-featured-product-countdown",xa:"{{content}}"});this.countdownTimer.hide();g.N(this,this.countdownTimer);this.B=new g.W({I:"div",S:"ytp-featured-product-trending",V:[{I:"div",S:"ytp-featured-product-trending-icon"},{I:"text",S:"ytp-featured-product-trending-text",
xa:"{{trendingOffer}}"}]});this.B.hide();g.N(this,this.B);this.overflowButton=new g.W({I:"button",Ka:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.N(this,this.overflowButton);this.infoButton=new g.W({I:"button",Ka:["ytp-featured-product-info-icon","ytp-button"]});this.infoButton.hide();g.N(this,this.infoButton);this.N=new g.W({I:"text",S:"ytp-featured-product-exclusive-countdown",xa:"{{content}}",X:{id:"exclusiveCountdown","aria-hidden":"true"}});
this.N.hide();g.N(this,this.N);this.K=new g.W({I:"div",S:"ytp-featured-product-exclusive-container",X:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},V:[{I:"div",S:"ytp-featured-product-exclusive-badge-container",V:[{I:"div",S:"ytp-featured-product-exclusive-badge",V:[{I:"text",S:"ytp-featured-product-exclusive-badge-text",xa:"{{exclusive}}",X:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.N]});this.K.hide();g.N(this,this.K);this.banner=new g.W({I:"a",S:"ytp-featured-product-container",
V:[{I:"div",S:"ytp-featured-product-thumbnail",V:[{I:"img",X:{src:"{{thumbnail}}"}},this.Ga]},{I:"div",S:"ytp-featured-product-details",V:[{I:"text",S:"ytp-featured-product-title",xa:"{{title}}"},this.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{I:"div",S:"ytp-featured-product-price-container",X:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price-when-promotion-text-enabled",xa:"{{price}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-promotion-text",
xa:"{{promotionText}}",X:{"aria-hidden":"true"}}]}:{I:"div",X:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price",xa:"{{price}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-sales-original-price",xa:"{{salesOriginalPrice}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-price-drop-reference-price",xa:"{{priceDropReferencePrice}}",X:{"aria-hidden":"true"}}]},this.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{I:"div",
S:"ytp-featured-product-when-promotion-text-enabled",V:[{I:"text",S:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",xa:"{{affiliateDisclaimer}}"},this.B,{I:"text",S:"ytp-featured-product-vendor-when-promotion-text-enabled",xa:"{{vendor}}"}]}:{I:"div",V:[{I:"text",S:"ytp-featured-product-affiliate-disclaimer",xa:"{{affiliateDisclaimer}}"},this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.K:null,this.B,{I:"text",S:"ytp-featured-product-vendor",
xa:"{{vendor}}"},this.countdownTimer]}]},this.infoButton,this.dismissButton,this.overflowButton]});g.N(this,this.banner);this.banner.Ja(this.C.element);this.T(this.J,g.dJ("featured_product"),this.Uda);this.T(this.J,g.eJ("featured_product"),this.SB);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.infoButton.element,"click",this.Raa);this.T(this.overflowButton.element,"click",this.g6);this.T(a,"featuredproductdismissed",this.Ku)};
l1a=function(a){var b,c;a=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData;var d,e,f;return(null==a||!a.affiliateDisclaimer)&&(null==a?0:null==(d=a.exclusivesData)?0:d.exclusiveOfferLabelText)&&(null==a?0:null==(e=a.exclusivesData)?0:e.expirationTimestampMs)&&(null==a?0:null==(f=a.exclusivesData)?0:f.exclusiveOfferCountdownText)?!0:!1};
n1a=function(a){var b,c,d,e,f=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:null==(d=c.itemData)?void 0:null==(e=d.exclusivesData)?void 0:e.expirationTimestampMs;b=(Number(f)-Date.now())/1E3;if(0<b){if(604800>b){var h,l,m,n;c=null==(h=a.j)?void 0:null==(l=h.bannerData)?void 0:null==(m=l.itemData)?void 0:null==(n=m.exclusivesData)?void 0:n.exclusiveOfferCountdownText;if(void 0!==c)for(h=Date.now(),l=g.u(c),m=l.next();!m.done;m=l.next())if(m=m.value,void 0!==m&&void 0!==m.text&&(n=Number(m.textDisplayStartTimestampMs),
!isNaN(n)&&h>=n)){m.insertCountdown?(b=m.text.replace(/\$0/,String(TKa({seconds:b}))),a.N.Kd(b)):a.N.Kd(m.text);a.N.show();break}}var p,q,r,t;a.K.update({exclusive:null==(p=a.j)?void 0:null==(q=p.bannerData)?void 0:null==(r=q.itemData)?void 0:null==(t=r.exclusivesData)?void 0:t.exclusiveOfferLabelText});a.K.show();jW(a);var v;null==(v=a.Sb)||v.start()}else m1a(a)};
m1a=function(a){var b;null==(b=a.Sb)||b.stop();a.N.hide();a.K.hide();kW(a)};
o1a=function(a){var b,c,d=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData;return a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(null==d||!d.priceReplacementText)&&(null==d?0:d.promotionText)?null==d?void 0:d.promotionText.content:null};
p1a=function(a){var b,c,d=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData,e,f;if(!(null!=d&&d.priceReplacementText||a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(null==d?0:null==(e=d.dealsData)?0:null==(f=e.sales)?0:f.originalPrice)){var h,l;return null==d?void 0:null==(h=d.dealsData)?void 0:null==(l=h.sales)?void 0:l.originalPrice}return null};
q1a=function(a){var b,c,d=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData,e,f,h,l;if(!((null==d?0:d.priceReplacementText)||a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(null==d?0:null==(e=d.dealsData)?0:null==(f=e.sales)?0:f.originalPrice))&&(null==d?0:null==(h=d.dealsData)?0:null==(l=h.priceDrop)?0:l.referencePrice)){var m,n;return null==d?void 0:null==(m=d.dealsData)?void 0:null==(n=m.priceDrop)?void 0:n.referencePrice}return null};
r1a=function(a){var b,c,d=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData;if(null==d?0:d.priceReplacementText)return null==d?void 0:d.priceReplacementText;if((null==d?0:d.promotionText)&&a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var e;return(null==d?void 0:d.price)+" "+(null==d?void 0:null==(e=d.promotionText)?void 0:e.content)}var f,h;if(null==d?0:null==(f=d.dealsData)?0:null==(h=f.sales)?0:h.originalPrice){var l,m;return null==d?void 0:null==(l=
d.dealsData)?void 0:null==(m=l.sales)?void 0:m.salesPriceAccessibilityLabel}var n,p;if(null==d?0:null==(n=d.dealsData)?0:null==(p=n.priceDrop)?0:p.referencePrice){var q,r;return(null==d?void 0:d.price)+" "+(null==d?void 0:null==(q=d.dealsData)?void 0:null==(r=q.priceDrop)?void 0:r.referencePrice)}return null==d?void 0:d.price};
s1a=function(a){if(a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var b,c,d;return a.B.Gb?null:null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:null==(d=c.itemData)?void 0:d.vendorName}var e,f,h,l,m,n;return a.B.Gb||a.K.Gb||(null==(e=a.j)?0:null==(f=e.bannerData)?0:null==(h=f.itemData)?0:h.affiliateDisclaimer)?null:null==(l=a.j)?void 0:null==(m=l.bannerData)?void 0:null==(n=m.itemData)?void 0:n.vendorName};
u1a=function(a,b){lW(a);if(b){var c=g.SS.getState().entities;c=qO(c,"featuredProductsEntity",b);if(null!=c&&c.productsData){b=[];c=g.u(c.productsData);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;if(null!=(e=d)&&e.identifier&&d.featuredSegments){a.Ha.push(d);var f=void 0;e=g.u(null==(f=d)?void 0:f.featuredSegments);for(f=e.next();!f.done;f=e.next()){var h=f.value;f=t1a(h.startTimeSec);void 0!==f&&(h=t1a(h.endTimeSec),b.push(new g.cJ(1E3*f,void 0===h?0x7ffffffffffff:1E3*h,{id:d.identifier,
namespace:"featured_product"})))}}}a.J.hf(b)}}};
kW=function(a){if(a.trendingOfferEntityKey){var b=g.SS.getState().entities;if(b=qO(b,"trendingOfferEntity",a.trendingOfferEntityKey)){var c,d,e;b.encodedSkuId!==(null==(c=a.j)?void 0:null==(d=c.bannerData)?void 0:null==(e=d.itemData)?void 0:e.encodedOfferSkuId)?jW(a):(a.B.update({trendingOffer:b.shortLabel+" \u2022 "+b.countLabel}),a.B.show(),a.banner.update({vendor:s1a(a)}))}else jW(a)}else jW(a)};
jW=function(a){a.B.hide();a.banner.update({vendor:s1a(a)})};
lW=function(a){a.Ha=[];a.SB();a.J.nf("featured_product")};
v1a=function(a){var b,c,d,e,f=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:null==(d=c.itemData)?void 0:null==(e=d.hiddenProductOptions)?void 0:e.dropTimestampMs;b=(Number(f)-Date.now())/1E3;a.countdownTimer.Kd(TKa({seconds:b}));if(0<b){var h;null==(h=a.Kb)||h.start()}};
w1a=function(a){var b;null==(b=a.Kb)||b.stop();a.countdownTimer.hide()};
t1a=function(a){if(void 0!==a&&""!==a.trim()&&(a=Math.trunc(Number(a.trim())),!(isNaN(a)||0>a)))return a};
B1a=function(a,b,c){g.W.call(this,{I:"div",Ka:["ytp-info-panel-action-item"],V:[{I:"div",S:"ytp-info-panel-action-item-disclaimer",xa:"{{disclaimer}}"},{I:"a",Ka:["ytp-info-panel-action-item-button","ytp-button"],X:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{I:"div",S:"ytp-info-panel-action-item-icon",xa:"{{icon}}"},{I:"div",S:"ytp-info-panel-action-item-label",xa:"{{label}}"}]}]});this.J=a;this.j=c;this.disclaimer=this.Fa("ytp-info-panel-action-item-disclaimer");this.button=
this.Fa("ytp-info-panel-action-item-button");this.ue=!1;this.J.createServerVe(this.element,this,!0);this.listen("click",this.onClick);a="";c=g.V(null==b?void 0:b.onTap,EE);var d=g.V(c,g.rF);this.ue=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.ue=!0,g.Me(this.button,g.je(a))):(d=g.V(c,x1a))&&!this.j?((a=d.phoneNumbers)&&0<a.length?(a="sms:"+a[0],d.messageText&&(a+="?&body="+encodeURI(d.messageText))):a="",this.ue=!0,g.Me(this.button,g.je(a,[y1a]))):(c=g.V(c,z1a))&&!this.j&&(a=c.phoneNumber?
"tel:"+c.phoneNumber:"",this.ue=!0,g.Me(this.button,g.je(a,[A1a])));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:kF(),disclaimer:c})}else{this.disclaimer.style.display="none";var h;this.update({label:null==(h=b.bodyText)?void 0:h.content,icon:kF()})}this.J.setTrackingParams(this.element,b.trackingParams||null);this.ue&&(this.B={externalLinkData:{url:a}})};
C1a=function(a,b){var c=XE();g.ZT.call(this,a,{I:"div",S:"ytp-info-panel-detail-skrim",V:[{I:"div",S:"ytp-info-panel-detail",X:{role:"dialog",id:c},V:[{I:"div",S:"ytp-info-panel-detail-header",V:[{I:"div",S:"ytp-info-panel-detail-title",xa:"{{title}}"},{I:"button",Ka:["ytp-info-panel-detail-close","ytp-button"],X:{"aria-label":"Close"},V:[g.iF()]}]},{I:"div",S:"ytp-info-panel-detail-body",xa:"{{body}}"},{I:"div",S:"ytp-info-panel-detail-items"}]}]},250);this.j=b;this.items=this.Fa("ytp-info-panel-detail-items");
this.C=new g.YJ(this);this.itemData=[];this.D=c;b=this.Fa("ytp-info-panel-detail-close");this.T(b,"click",this.Mb);b=this.Fa("ytp-info-panel-detail-skrim");this.T(b,"click",this.Mb);b=this.Fa("ytp-info-panel-detail");this.T(b,"click",function(d){d.stopPropagation()});
g.N(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",a.getVideoData());this.hide()};
D1a=function(a,b){a=g.u(a.itemData);for(var c=a.next();!c.done;c=a.next())c=c.value,c.J.logVisibility(c.element,b)};
G1a=function(a,b){g.W.call(this,{I:"div",S:"ytp-info-panel-preview",X:{"aria-live":"assertive","aria-atomic":"true","aria-owns":b.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.BR(a.U()))},V:[{I:"div",S:"ytp-info-panel-preview-text",xa:"{{text}}"},{I:"div",S:"ytp-info-panel-preview-chevron",xa:"{{chevron}}"}]});var c=this;this.J=a;this.De=this.j=this.videoId=null;this.D=this.showControls=this.B=!1;this.T(this.element,"click",function(){a.logClick(c.element);a.vr();$T(b)});
this.C=new g.FF(this,250,!1,100);g.N(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.k6);this.T(this.J,"paidcontentoverlayvisibilitychange",this.D_);this.T(this.J,"infopaneldetailvisibilitychange",this.D_);var d=a.getVideoData()||{};E1a(d)&&F1a(this,d);this.T(a,"onShowControls",this.j6);this.T(a,"onHideControls",this.i6)};
F1a=function(a,b){if(!b.wi||!a.J.Un()){var c=b.CD||1E4,d=E1a(b);a.j?b.videoId&&b.videoId!==a.videoId&&(g.Lv(a.j),a.videoId=b.videoId,d?(H1a(a,c,b),a.rd()):(a.Mb(),a.j.dispose(),a.j=null)):d&&(b.videoId&&(a.videoId=b.videoId),H1a(a,c,b),a.rd())}};
E1a=function(a){var b,c,d,e;return!!(null==(b=a.tf)?0:null==(c=b.title)?0:c.content)||!!(null==(d=a.tf)?0:null==(e=d.bodyText)?0:e.content)};
H1a=function(a,b,c){a.j&&a.j.dispose();a.j=new g.Iv(a.Yda,b,a);g.N(a,a.j);var d;b=(null==(d=c.tf)?void 0:d.trackingParams)||null;a.J.setTrackingParams(a.element,b);var e;var f,h;if(null==c?0:null==(f=c.tf)?0:null==(h=f.title)?0:h.content){var l;d=null==(e=c.tf)?void 0:null==(l=e.title)?void 0:l.content;var m,n;if(null==(m=c.tf)?0:null==(n=m.bodyText)?0:n.content)d+=" \u2022 ";e=d}else e="";var p,q;c=(null==(p=c.tf)?void 0:null==(q=p.bodyText)?void 0:q.content)||"";a.update({text:e+c,chevron:g.hF()})};
I1a=function(a,b){a.j&&(g.MF(b,8)?(a.B=!0,a.rd(),a.j.start()):(g.MF(b,2)||g.MF(b,64))&&a.videoId&&(a.videoId=null))};
mW=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
nW=function(a,b){var c=0;a=g.u(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1};
J1a=function(a,b){for(var c=0,d=g.u(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b<e.timeRangeStartMillis)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};
K1a=function(a,b){b=nW(a,b)+1;return b<a.length?b:-1};
L1a=function(a,b){return nW(a,b)-1};
M1a=function(a,b){return new g.cJ(a,b,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+a})};
O1a=function(a,b,c,d,e,f,h,l){g.YJ.call(this);var m=this;this.api=a;this.contextMenu=c;this.Jg=d;this.ke=e;this.j=f;this.K=h;this.progressBar=l;this.G=new g.Iv(function(){N1a(m,!1)},1E3);
this.B="";this.C={eK:!1};this.D=!1;g.N(this,this.G);this.T(b,"mousedown",function(){oW(m,!1)});
this.T(c.element,"mousedown",function(){oW(m,!1)});
this.T(b,"keydown",this.EY);this.T(c.element,"keydown",this.EY);this.T(b,"keyup",this.FY);this.T(c.element,"keyup",this.FY)};
oW=function(a,b){a.D=b;g.Uv(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.Uv(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
qW=function(a,b,c,d){var e=g.FV(a.api.yb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.pW.length;h++){var l=g.pW[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);N1a(a,!0);a.G.start()}};
N1a=function(a,b){g.FV(a.api.yb())&&a.api.setOption("captions","sampleSubtitles",b)};
g.rW=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-button","ytp-overflow-button"],X:{title:"More","aria-haspopup":"true","aria-owns":b.element.id},V:[{I:"div",S:"ytp-overflow-icon",V:[{I:"svg",X:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},V:[{I:"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 c=this;this.J=a;this.ai=b;this.j=this.visible=!1;a.createClientVe(this.element,
this,16499);this.T(a,"videoplayerreset",this.Ta);this.T(a,"appresize",this.Ta);this.T(a,"fullscreentoggled",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.Ta();LT(a,this.element,this);this.listen("click",function(){a.logClick(c.element);$T(b,c.element,!1)});
this.T(b.closeButton,"click",function(){c.focus()})};
P1a=function(a){g.ZT.call(this,a,{I:"div",S:"ytp-overflow-panel",X:{id:XE(),role:"dialog"},V:[{I:"div",S:"ytp-overflow-panel-content",V:[{I:"div",S:"ytp-overflow-panel-action-buttons",xa:"{{buttons}}"}]},{I:"button",Ka:["ytp-overflow-panel-close","ytp-button"],X:{title:"Close"},V:[g.iF()]}]},250);this.actionButtons=[];this.j=this.Fa("ytp-overflow-panel-content");this.closeButton=this.Fa("ytp-overflow-panel-close");this.T(this.closeButton,"click",this.Mb);LT(a,this.closeButton,this);this.listen("click",
this.i4);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
Q1a=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.updateValue("buttons",a.actionButtons))};
R1a=function(a,b){a=g.u(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.Lc(b)};
S1a=function(a,b,c){var d=g.qV(b,c),e=d.fh("default.jpg");g.W.call(this,{I:"a",Ka:["ytp-video-menu-item","ytp-button"],X:{role:"menuitemradio","aria-label":d.title,href:a.U().getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},V:[{I:"div",S:"ytp-video-menu-item-index",xa:String(c+1)},{I:"div",S:"ytp-video-menu-item-now-playing",xa:"\u25b6"},{I:"div",S:"ytp-video-menu-item-thumbnail",X:{style:e?"background-image: url("+e+");":void 0}},{I:"div",S:"ytp-video-menu-item-title",xa:d.title},{I:"div",
S:"ytp-video-menu-item-author",xa:d.author}]});this.api=a;this.index=c;this.listen("click",this.onClick)};
T1a=function(a){g.ZT.call(this,a,{I:"div",S:"ytp-playlist-menu",X:{role:"dialog",id:XE()},V:[{I:"div",S:"ytp-playlist-menu-header",V:[{I:"div",S:"ytp-playlist-menu-title",V:[a.U().C?{I:"span",S:"ytp-playlist-menu-title-name",xa:"{{title}}"}:{I:"a",S:"ytp-playlist-menu-title-name",X:{href:"{{playlisturl}}"},xa:"{{title}}"},{I:"button",Ka:["ytp-playlist-menu-close","ytp-button"],X:{"aria-label":"Close"},V:[g.iF()]}]},{I:"div",S:"ytp-playlist-menu-subtitle",xa:"{{subtitle}}"}]},{I:"div",S:"ytp-playlist-menu-items",
X:{role:"menu"}}]},250);this.api=a;this.D=this.selected=this.G=this.playlist=null;this.items=this.Fa("ytp-playlist-menu-items");this.C=new g.YJ(this);this.j=[];var b=this.Fa("ytp-playlist-menu-close");this.T(b,"click",this.Mb);b=this.Fa("ytp-playlist-menu-title-name");a.U().C||(this.D=this.T(b,"click",this.vca));g.N(this,this.C);this.hide()};
sW=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-playlist-menu-button","ytp-button"],X:{title:"{{title}}","aria-owns":String(b.element.id),"aria-haspopup":"true","aria-label":"Playlist"},V:[{I:"div",S:"ytp-playlist-menu-button-icon",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!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"}}]}]},{I:"div",S:"ytp-playlist-menu-button-text",xa:"{{text}}"}]});var c=this;this.api=a;this.playlist=null;this.visible=!1;a.createClientVe(this.element,this,70344);this.T(a,"videodatachange",this.j);this.T(a,"videoplayerreset",this.j);this.T(a,"onPlaylistUpdate",this.j);this.T(a,"presentingplayerstatechange",this.Ta);this.T(a,"appresize",this.Ta);this.hide();this.j();LT(a,this.element,this);this.listen("click",function(){a.logClick(c.element);$T(b,c.element,!1)})};
U1a=function(a,b){g.W.call(this,{I:"div",S:"ytp-promotooltip-wrapper",V:[{I:"div",S:"ytp-promotooltip-container",V:[{I:"div",S:"ytp-promotooltip-content",V:[{I:"div",S:"ytp-promotooltip-title",xa:"{{title}}"},{I:"div",S:"ytp-promotooltip-details",xa:"{{details}}"}]},{I:"div",S:"ytp-promotooltip-buttons",V:[{I:"div",S:"ytp-promotooltip-dismiss-button",xa:"{{dismissButtonText}}",X:{tabindex:"0"}},{I:"div",S:"ytp-promotooltip-accept-button",xa:"{{acceptButtonText}}",X:{tabindex:"0","aria-haspopup":"true"}}]}]},
{I:"div",S:"ytp-promotooltip-pointer"}]});var c=this;this.tooltipRenderer=a;this.J=b;this.targetElement=this.B=null;this.title=this.Fa("ytp-promotooltip-title");this.details=this.Fa("ytp-promotooltip-details");this.acceptButton=this.Fa("ytp-promotooltip-accept-button");this.dismissButton=this.Fa("ytp-promotooltip-dismiss-button");this.j=this.D=!1;this.C=!0;this.Y=this.G=this.N=this.K=!1;this.wd={YG:function(d){c.YG(d)}};
g.aF(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.j=!!a)this.J.createServerVe(this.element,this,!0),this.J.setTrackingParams(this.element,a);this.T(b,"onShowControls",this.l4);this.T(b,"onHideControls",this.j4);this.T(b,"resize",this.jc);this.T(this.acceptButton,"click",this.X$);this.T(this.dismissButton,"click",this.Eaa);this.T(document,"click",this.m4)};
V1a=function(a){var b=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');b=0<b.length?b[0]:null;var c=g.tf("ytp-chrome-bottom"),d=g.tf("ytp-ad-module");a.C=!(null==c||!c.contains(b));a.K=!(null==d||!d.contains(b));a.N=!(null==b||!b.hasAttribute("data-tooltip-target-fixed"));return b};
Y1a=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.Vs(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.YE({I:"span",S:"ytp-promotooltip-details-icon",
V:[W1a[a.tooltipRenderer.targetId]]});g.N(a,h);for(var l=[],m=g.u(d),n=m.next();!n.done;n=m.next())n=new g.YE({I:"span",S:"ytp-promotooltip-details-component",xa:n.value}),g.N(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.Cf(a.details),e=g.u(f),f=e.next();!f.done;f=e.next())a.details.appendChild(f.value);
else a.update({details:f});e=!0}}g.Vs(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,r;(null==(p=g.V(e,g.pM))?0:null==(q=p.text)?0:null==(r=q.runs)?0:r.length)&&g.V(e,g.pM).text.runs[0].text&&(a.update({acceptButtonText:g.V(e,g.pM).text.runs[0].text.toString()}),f=!0);g.Vs(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var t,v,w;(null==(t=g.V(p,g.pM))?0:null==(v=t.text)?0:null==(w=v.runs)?0:w.length)&&g.V(p,g.pM).text.runs[0].text&&(a.update({dismissButtonText:g.V(p,g.pM).text.runs[0].text.toString()}),
q=!0);g.Vs(a.dismissButton,q)}c&&(a.B=c);a.targetElement=V1a(a);a.G=!1;a.J.U().L("web_player_hide_nitrate_promo_tooltip")||g.aF(a,!0);X1a(a);a.Gb&&!a.Y&&(a.Y=!0,a.wd.YG(0));a.j&&a.J.logVisibility(a.element,a.Gb)}};
tW=function(a){g.aF(a,!1);a.j&&a.J.logVisibility(a.element,a.Gb)};
Z1a=function(a){var b,c,d,e=(null==(b=g.V(a.acceptButton,g.pM))?void 0:null==(c=b.text)?void 0:null==(d=c.runs)?void 0:d.length)&&!!g.V(a.acceptButton,g.pM).text.runs[0].text,f,h,l;b=(null==(f=g.V(a.dismissButton,g.pM))?void 0:null==(h=f.text)?void 0:null==(l=h.runs)?void 0:l.length)&&!!g.V(a.dismissButton,g.pM).text.runs[0].text;return e||b};
X1a=function(a){var b;if(!(b=!a.targetElement)){b=a.targetElement;var c=window.getComputedStyle(b);b="none"===c.display||"hidden"===c.visibility||"true"===b.getAttribute("aria-hidden")}if(b||a.J.isMinimized())g.aF(a,!1);else if(b=g.Us(a.targetElement),b.width&&b.height){a.J.Yx(a.element,a.targetElement);var d=a.J.ob().getPlayerSize().height;c=g.Us(a.Fa("ytp-promotooltip-container")).height;a.C?a.element.style.top=d-c-b.height-12+"px":a.N||(d=a.J.Rn().height-c-b.height-12,a.element.style.top=d+"px");
d=a.Fa("ytp-promotooltip-pointer");var e=g.Ss(a.targetElement,a.J.getRootNode()),f=Number(a.element.style.left.replace(/[^\d\.]/g,""));a=a.J.isFullscreen()?18:12;d.style.left=e.x-f+b.width/2-a+"px";d.style.top=c+"px"}else g.aF(a,!1)};
uW=function(a){g.W.call(this,{I:"button",Ka:["ytp-replay-button","ytp-button"],X:{title:"Replay"},V:[g.oya()]});this.J=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Hc(a.getPlayerStateObject());LT(this.J,this.element,this)};
vW=function(a,b){b=void 0===b?240:b;g.W.call(this,{I:"button",Ka:["ytp-button","ytp-search-button"],X:{title:"Search","data-tooltip-opaque":String(g.BR(a.U()))},V:[{I:"div",S:"ytp-search-icon",xa:"{{icon}}"},{I:"div",S:"ytp-search-title",xa:"Search"}]});this.api=a;this.B=b;this.visible=!1;this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",S:"ytp-svg-fill",X:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]});
a.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.j();this.T(a,"appresize",this.j);this.T(a,"videodatachange",this.j);LT(a,this.element,this)};
g.wW=function(a,b,c,d){d=void 0===d?240:d;g.W.call(this,{I:"button",Ka:["ytp-button","ytp-share-button"],X:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.BR(a.U()))},V:[{I:"div",S:"ytp-share-icon",xa:"{{icon}}"},{I:"div",S:"ytp-share-title",xa:"Share"}]});this.api=a;this.Oe=b;this.B=c;this.C=d;this.visible=!1;this.tooltip=this.Oe.Se();this.j=!1;a.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.T(a,"videodatachange",this.Ta);
this.T(a,"videoplayerreset",this.Ta);this.T(a,"appresize",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.Ta();this.addOnDisposeCallback(g.KT(this.tooltip,this.element))};
$1a=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=g.BR(b)&&g.RT(a.api)&&g.MF(a.api.getPlayerStateObject(),128);b=b.C||b.disableSharing&&2!==a.api.getPresentingPlayerType()||!c.showShareButton||c.wp||d||g.vT(c)||a.j;d=a.api.ob().getPlayerSize().width;return!!c.videoId&&d>=a.C&&!b};
a2a=function(a,b){"InvalidStateError"!==b.name&&"AbortError"!==b.name&&("NotAllowedError"===b.name?(a.Oe.vr(),$T(a.B,a.element,!1)):g.AE(b))};
c2a=function(a,b){var c=XE(),d=a.U();c={I:"div",S:"ytp-share-panel",X:{id:XE(),role:"dialog","aria-labelledby":c},V:[{I:"div",S:"ytp-share-panel-inner-content",V:[{I:"div",S:"ytp-share-panel-title",X:{id:c},xa:"Share"},{I:"a",Ka:["ytp-share-panel-link","ytp-no-contextmenu"],X:{href:"{{link}}",target:d.Y,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},xa:"{{linkText}}"},{I:"label",S:"ytp-share-panel-include-playlist",V:[{I:"input",S:"ytp-share-panel-include-playlist-checkbox",X:{type:"checkbox",
checked:"true"}},"Include playlist"]},{I:"div",S:"ytp-share-panel-loading-spinner",V:[MYa()]},{I:"div",S:"ytp-share-panel-service-buttons",xa:"{{buttons}}"},{I:"div",S:"ytp-share-panel-error",xa:"An error occurred while retrieving sharing information. Please try again later."}]},{I:"button",Ka:["ytp-share-panel-close","ytp-button"],X:{title:"Close"},V:[g.iF()]}]};g.ZT.call(this,a,c,250);var e=this;this.moreButton=null;this.api=a;this.tooltip=b.Se();this.C=[];this.G=this.Fa("ytp-share-panel-inner-content");
this.closeButton=this.Fa("ytp-share-panel-close");this.T(this.closeButton,"click",this.Mb);this.addOnDisposeCallback(g.KT(this.tooltip,this.closeButton));this.D=this.Fa("ytp-share-panel-include-playlist-checkbox");this.T(this.D,"click",this.Ta);this.j=this.Fa("ytp-share-panel-link");this.addOnDisposeCallback(g.KT(this.tooltip,this.j));this.api.createClientVe(this.j,this,164503);this.T(this.j,"click",function(f){f.preventDefault();e.api.logClick(e.j);var h=e.api.getVideoUrl(!0,!0,!1,!1);h=b2a(e,h);
g.mU(h,e.api,f)&&e.api.jb("SHARE_CLICKED")});
this.listen("click",this.n4);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.v$);this.hide()};
e2a=function(a,b){d2a(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={vx:void 0,Um:void 0},f++){e.vx=c[f];a:switch(e.vx.img||e.vx.iconId){case "facebook":var h={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":h={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};break a;default:h=null}if(h){var l=e.vx.sname||e.vx.serviceName;e.Um=new g.W({I:"a",Ka:["ytp-share-panel-service-button","ytp-button"],X:{href:e.vx.url,target:"_blank",title:l},V:[h]});e.Um.listen("click",function(p){return function(q){var r=p.vx.url;if(g.XF(q)){var t=void 0===t?{}:t;t.target=t.target||"YouTube";t.width=t.width||"600";t.height=t.height||"600";var v=t;v||(v={});t=window;var w=r instanceof g.ce?r:g.je("undefined"!=typeof r.href?r.href:String(r));var A=void 0!==self.crossOriginIsolated,
C="strict-origin-when-cross-origin";window.Request&&(C=(new Request("/")).referrerPolicy);var F="unsafe-url"===C;C=v.noreferrer;if(A&&C){if(F)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");C=!1}r=v.target||r.target;A=[];for(var H in v)switch(H){case "width":case "height":case "top":case "left":A.push(H+"="+v[H]);break;case "target":case "noopener":case "noreferrer":break;default:A.push(H+"="+(v[H]?1:0))}H=A.join(",");Ic()&&
t.navigator&&t.navigator.standalone&&r&&"_self"!=r?(v=g.yf("A"),v.href=Lba(w),v.target=r,C&&(v.rel="noreferrer"),w=document.createEvent("MouseEvent"),w.initMouseEvent("click",!0,!0,t,1),v.dispatchEvent(w),t={}):C?(t=Mba("",t,r,H),w=g.de(w),t&&(t.opener=null,""===w&&(w="javascript:''"),w=se('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Ze(w)+'">'),(v=t.document)&&v.write&&(v.write(g.re(w)),v.close()))):((t=Mba(w,t,r,H))&&v.noopener&&(t.opener=null),t&&v.noreferrer&&
(t.opener=null));t&&(t.opener||(t.opener=window),t.focus());q.preventDefault()}}}(e));
e.Um.addOnDisposeCallback(g.KT(a.tooltip,e.Um.element));"Facebook"===l?a.api.createClientVe(e.Um.element,e.Um,164504):"Twitter"===l&&a.api.createClientVe(e.Um.element,e.Um,164505);a.T(e.Um.element,"click",function(p){return function(){a.api.logClick(p.Um.element)}}(e));
a.api.logVisibility(e.Um.element,!0);a.C.push(e.Um);d++}}var m=b.more||b.moreLink,n=new g.W({I:"a",Ka:["ytp-share-panel-service-button","ytp-button"],V:[{I:"span",S:"ytp-share-panel-service-button-more",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z",
fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],X:{href:m,target:"_blank",title:"More"}});n.listen("click",function(p){var q=m;a.api.logClick(a.moreButton.element);q=b2a(a,q);g.mU(q,a.api,p)&&a.api.jb("SHARE_CLICKED")});
n.addOnDisposeCallback(g.KT(a.tooltip,n.element));a.api.createClientVe(n.element,n,164506);a.T(n.element,"click",function(){a.api.logClick(n.element)});
a.api.logVisibility(n.element,!0);a.C.push(n);a.moreButton=n;a.updateValue("buttons",a.C)};
b2a=function(a,b){var c={};g.BR(a.api.U())&&(g.CT(a.api,"addEmbedsConversionTrackingParams",[c]),b=g.to(b,g.XO(c,"emb_share")));return b};
d2a=function(a){for(var b=g.u(a.C),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.vb(c);a.C=[]};
xW=function(a){return void 0===a||void 0===a.startSec||void 0===a.endSec?!1:!0};
f2a=function(a,b){a.startSec+=b;a.endSec+=b};
h2a=function(a){FU.call(this,a);this.B=this.j=this.isContentForward=this.N=!1;g2a(this);this.T(this.J,"changeProductsInVideoVisibility",this.wba);this.T(this.J,"videodatachange",this.onVideoDataChange)};
i2a=function(a){a.K&&a.La.element.removeChild(a.K.element);a.K=void 0};
k2a=function(a,b){return b.map(function(c){var d,e;if((c=null==(d=g.V(c,j2a))?void 0:null==(e=d.thumbnail)?void 0:e.thumbnails)&&0!==c.length)return c[0].url}).filter(function(c){return void 0!==c}).map(function(c){c=new g.W({I:"img",
S:"ytp-suggested-action-product-thumbnail",X:{alt:"",src:c}});g.N(a,c);return c})};
l2a=function(a,b){a.isContentForward=b;g.Uv(a.badge.element,"ytp-suggested-action-badge-content-forward",b)};
yW=function(a){var b=a.isContentForward&&!a.eM();g.Uv(a.badge.element,"ytp-suggested-action-badge-preview-collapsed",b&&a.j);g.Uv(a.badge.element,"ytp-suggested-action-badge-preview-expanded",b&&a.B)};
zW=function(a,b,c){return new g.cJ(1E3*a,1E3*b,{priority:9,namespace:c})};
m2a=function(a){a.J.nf("shopping_overlay_visible");a.J.nf("shopping_overlay_preview_collapsed");a.J.nf("shopping_overlay_preview_expanded");a.J.nf("shopping_overlay_expanded")};
g2a=function(a){a.T(a.J,g.dJ("shopping_overlay_visible"),function(){a.Kf(!0)});
a.T(a.J,g.eJ("shopping_overlay_visible"),function(){a.Kf(!1)});
a.T(a.J,g.dJ("shopping_overlay_expanded"),function(){a.ra=!0;EU(a)});
a.T(a.J,g.eJ("shopping_overlay_expanded"),function(){a.ra=!1;EU(a)});
a.T(a.J,g.dJ("shopping_overlay_preview_collapsed"),function(){a.j=!0;yW(a)});
a.T(a.J,g.eJ("shopping_overlay_preview_collapsed"),function(){a.j=!1;yW(a)});
a.T(a.J,g.dJ("shopping_overlay_preview_expanded"),function(){a.B=!0;yW(a)});
a.T(a.J,g.eJ("shopping_overlay_preview_expanded"),function(){a.B=!1;yW(a)})};
p2a=function(a){g.W.call(this,{I:"div",S:"ytp-shorts-title-channel",V:[{I:"a",S:"ytp-shorts-title-channel-logo",X:{href:"{{channelLink}}",target:a.U().Y,"aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-shorts-title-expanded-heading",V:[{I:"div",S:"ytp-shorts-title-expanded-title",V:[{I:"a",xa:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.U().Y,tabIndex:"0"}}]}]}]});var b=this;this.api=a;this.j=this.Fa("ytp-shorts-title-channel-logo");this.channelName=this.Fa("ytp-shorts-title-expanded-title");
this.subscribeButton=null;a.createClientVe(this.j,this,36925);this.T(this.j,"click",function(c){b.api.logClick(b.j);g.Qe(n2a(b));c.preventDefault()});
a.createClientVe(this.channelName,this,37220);this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Qe(n2a(b));c.preventDefault()});
o2a(this);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.Ta()};
o2a=function(a){if(!a.api.U().Sb){var b=a.api.getVideoData(),c=new g.cW("Subscribe",null,"Subscribed",null,!0,!1,b.Il,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)});
a.subscribeButton=c;g.N(a,a.subscribeButton);a.subscribeButton.Ja(a.element)}};
n2a=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.ZR(b)+c.Dc;if(!g.BR(b))return c;b={};g.CT(a.api,"addEmbedsConversionTrackingParams",[b]);g.XO(b,"emb_ch_name_ex");return g.to(c,b)};
AW=function(a){g.ZT.call(this,a,{I:"button",Ka:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{I:"div",S:"ytp-skip-intro-button-text",xa:"Skip Intro"}]},100);var b=this;this.C=!1;this.j=new g.Iv(function(){b.hide()},5E3);
this.uf=this.uj=NaN;g.N(this,this.j);this.K=function(){b.show()};
this.G=function(){b.hide()};
this.D=function(){var c=b.J.getCurrentTime();c>b.uj/1E3&&c<b.uf/1E3&&b.show()};
this.T(this.J,"videodatachange",function(c,d){b.Ut(c,d)});
this.T(this.element,"click",function(){b.J.seekTo(b.uf/1E3)});
this.hide()};
BW=function(a){g.W.call(this,{I:"button",Ka:["ytp-airplay-button","ytp-button"],X:{title:"AirPlay","data-priority":"9"},xa:"{{icon}}"});this.J=a;this.listen("click",this.onClick);this.T(a,"airplayactivechange",this.Ta);this.T(a,"airplayavailabilitychange",this.Ta);this.Ta();LT(a,this.element,this)};
r2a=function(a){g.W.call(this,{I:"div",S:"ytp-gradient-bottom"});this.canvas=g.yf("CANVAS");this.j=this.canvas.getContext("2d");this.B=NaN;this.canvas.width=1;q2a(this,a.ob().getPlayerSize().height)};
q2a=function(a,b){if(a.j){b=Math.floor(.4*b);b=Math.max(b,47);var c=b+2;if(a.B!==c){a.B=c;a.canvas.height=c;a.j.clearRect(0,0,1,c);var d=a.j.createLinearGradient(0,2,0,2+b),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.canvas.toDataURL()+")"}catch(f){}}}};
CW=function(a,b,c,d){g.W.call(this,{I:"div",S:"ytp-chapter-container",V:[{I:"button",Ka:["ytp-chapter-title","ytp-button"],V:[{I:"span",X:{"aria-hidden":"true"},S:"ytp-chapter-title-prefix",xa:"\u2022"},{I:"div",S:"ytp-chapter-title-content",xa:"{{title}}",X:{"aria-label":"{{ariaLabel}}",title:d}},{I:"div",S:"ytp-chapter-title-chevron",V:[{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"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.J=a;this.D=b;this.G="";this.currentIndex=0;this.B=void 0;this.C=!0;this.Y=this.Fa("ytp-chapter-container");this.j=this.Fa("ytp-chapter-title");this.qa=this.Fa("ytp-chapter-title-content");this.updateVideoData("newdata",this.J.getVideoData());this.T(a,"videodatachange",this.updateVideoData);this.T(this.Y,"click",this.onClick);this.T(a,g.dJ(c),this.Sc);this.T(a,"onLoopRangeChange",this.Sc);this.T(a,"innertubeCommand",this.onClickCommand);(a=this.J.L("web_disable_channels_chapter_entrypoint")&&
g.IR(this.J.U()))&&g.Uv(this.j,"ytp-profile-page",!0);this.J.L("web_fitted_chapter_button_killswitch")||g.Uv(this.j,"fitted-chapter-button",!0);g.BR(this.J.U())||a||LT(this.J,this.qa,this)};
DW=function(a,b){CW.call(this,a,b,"chapterCueRange","View chapter")};
s2a=function(a,b,c,d,e){var f=b.Bx/b.rows,h=Math.min(c/(b.NF/b.columns),d/f),l=b.NF*h,m=b.Bx*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,r=-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 "+r+"px/"+l+"px "+m+"px"};
t2a=function(a){return a.L("web_big_boards")?a.isMinimized()?a.L("web_big_boards_enable_in_miniplayer"):a.isInline()?a.L("web_big_boards_enable_in_inline"):!0:!1};
EW=function(a,b){g.W.call(this,{I:"div",S:"ytp-storyboard-framepreview",V:[{I:"div",S:"ytp-storyboard-framepreview-timestamp",xa:"{{timestamp}}"},{I:"div",S:"ytp-storyboard-framepreview-img"}]});this.api=a;this.D=this.Fa("ytp-storyboard-framepreview-img");this.B=null;this.C=NaN;this.events=new g.YJ(this);this.j=new g.FF(this,100);g.N(this,this.events);g.N(this,this.j);this.T(this.api,"presentingplayerstatechange",this.G);b&&this.T(this.element,"click",function(){b.Fw()});
t2a(this.api)&&g.Qv(this.element,"ytp-storyboard-framepreview-big-boards")};
u2a=function(a,b){var c=!!a.B;a.B=b;a.B?(c||(a.events.T(a.api,"videodatachange",function(){u2a(a,a.api.dk())}),a.events.T(a.api,"progresssync",a.Cg),a.events.T(a.api,"appresize",a.K)),a.C=NaN,v2a(a),a.j.show(200)):(c&&g.MB(a.events),a.j.hide(),a.j.stop())};
v2a=function(a){var b=a.B,c=a.api.getCurrentTime(),d=a.api.ob().getPlayerSize(),e=xS(b,d.width);e=mWa(b,e,c);a.update({timestamp:g.WF(c)});e!==a.C&&(a.C=e,kWa(b,e,d.width),b=iWa(b,e,d.width),s2a(a.D,b,d.width,d.height))};
w2a=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-fullscreen-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"10","data-title-no-tooltip":"{{data-title-no-tooltip}}"},xa:"{{icon}}"});this.J=a;this.Oe=b;this.message=null;this.j=g.KT(this.Oe.Se(),this.element);this.B=new g.Iv(this.r7,2E3,this);g.N(this,this.B);this.T(a,"fullscreentoggled",this.Vm);this.T(a,"presentingplayerstatechange",this.Ta);this.T(a,"resize",this.Ta);this.listen("click",this.onClick);g.xB()&&
(b=this.J.ob(),this.T(b,Ara(),this.yR),this.T(b,zra(document),this.Ox));a.U().Hb||a.U().Z||this.disable();a.createClientVe(this.element,this,139117);this.Ta();this.Vm(a.isFullscreen())};
FW=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-button","ytp-jump-button"],X:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[0<b?{I:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Ka:["ytp-circle-arrow","ytp-svg-fill"],X:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}},
{I:"text",Ka:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"7.05",y:"15.05"}}]}:{I:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Ka:["ytp-circle-arrow","ytp-svg-fill"],X:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}},
{I:"text",Ka:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"6.5",y:"15"}}]}]});var c=this;this.J=a;this.j=b;this.B=new g.Iv(function(){c.C?(c.C=!1,c.B.start()):c.element.classList.remove("ytp-jump-spin","backwards")},250);
this.C=!1;(b=0<b)?this.J.createClientVe(this.element,this,36843):this.J.createClientVe(this.element,this,36844);var d=g.jJ(b?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.j).toString()});this.update({title:d,"data-title-no-tooltip":d,"aria-keyshortcuts":b?"\u2192":"\u2190"});this.D=this.element.querySelector(".ytp-jump-button-text");this.D.textContent=Math.abs(this.j).toString();this.listen("click",this.onClick,this);LT(a,this.element,
this)};
x2a=function(a,b){b?a.element.classList.add("ytp-jump-button-enabled"):a.element.classList.remove("ytp-jump-button-enabled");a.J.logVisibility(a.element,b);a.J.Th()};
GW=function(a,b){CW.call(this,a,b,"timedMarkerCueRange","View key moments");this.T(a,g.eJ("timedMarkerCueRange"),this.Sc);this.T(a,"updatemarkervisibility",this.updateVideoData)};
y2a=function(a){var b,c=null==(b=a.J.getVideoData())?void 0:b.je;if(c)for(a=a.D.Ma,c=g.u(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}};
HW=function(a){g.W.call(this,{I:"button",Ka:["ytp-miniplayer-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"5","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},V:[lya()]});this.J=a;this.visible=!1;this.listen("click",this.onClick);this.T(a,"fullscreentoggled",this.Ta);this.updateValue("title",g.MT(a,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});LT(a,this.element,this);a.createClientVe(this.element,
this,62946);this.Ta()};
z2a=function(a,b,c){c=void 0===c?!1:c;g.W.call(this,{I:"button",Ka:["ytp-mute-button","ytp-button"],X:a.U().Va?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}"}:{"aria-disabled":"true","aria-haspopup":"true"},xa:"{{icon}}"});this.J=a;this.Ga=c;this.j=null;this.D=this.Y=this.G=this.ra=NaN;this.Ca=this.K=null;this.C=[];this.B=[];this.visible=!1;this.N=null;c=this.J.U();this.updateValue("icon",rya());this.tooltip=b.Se();this.j=new g.YE({I:"svg",X:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",X:{id:"ytp-svg-volume-animation-mask"},V:[{I:"path",X:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{I:"path",X:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{I:"path",S:"ytp-svg-volume-animation-mover",X:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{I:"clipPath",X:{id:"ytp-svg-volume-animation-slash-mask"},V:[{I:"path",S:"ytp-svg-volume-animation-mover",X:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},
{I:"path",Ic:!0,Ka:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],X:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{I:"path",Ic:!0,Ka:["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.N(this,this.j);this.K=this.j.Fa("ytp-svg-volume-animation-speaker");
this.Ca=this.K.getAttribute("d");this.C=g.sf("ytp-svg-volume-animation-mover",this.j.element);this.B=g.sf("ytp-svg-volume-animation-hider",this.j.element);this.Ha=new iV;g.N(this,this.Ha);this.qa=new iV;g.N(this,this.qa);this.listen("click",this.fba);this.T(a,"appresize",this.wU);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;c.Va?this.addOnDisposeCallback(g.KT(b.Se(),this.element)):(b="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),
d=new g.ZT(a,{I:"span",Ka:["ytp-popup","ytp-generic-popup"],X:{tabindex:"0"},V:[b[0],{I:"a",X:{href:"https://support.google.com/youtube/?p=noaudio",target:c.Y},xa:b[2]},b[4]]},100,!0),g.N(this,d),d.hide(),d.subscribe("show",function(e){a.nE(d,e)}),g.UT(a,d.element,4));
this.message=d;a.createClientVe(this.element,this,28662);this.wU(a.ob().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
C2a=function(a,b){a.ra=b;var c=a.Ca;b&&(c+=g_a(A2a,B2a,b));a.K.setAttribute("d",c)};
D2a=function(a,b){a.Y=b;for(var c=20*b,d=0;d<a.C.length;d++)a.C[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=rya():e=a.j;for(c=0;c<a.B.length;c++){d=a.B[c];var f=void 0;if(null==(f=d)?0:f.style)d.style.display=0===b?"none":""}e!==a.N&&(a.updateValue("icon",e),a.N=e)};
g.IW=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-play-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},xa:"{{icon}}"});this.J=a;this.j=null;this.transition=new iV;this.tooltip=b.Se();g.N(this,this.transition);a.createClientVe(this.element,this,36842);a.logVisibility(this.element,!0);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"videodatachange",this.onVideoDataChange);
this.Hc(a.getPlayerStateObject());this.listen("click",this.Ls,this);this.addOnDisposeCallback(g.KT(b.Se(),this.element))};
E2a=function(a){switch(a){case 1:return mya();case 2:return jya();case 3:return g.oya();case 4:return qya();default:return null}};
g.JW=function(a,b,c){g.W.call(this,{I:"a",Ka:[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}}"},V:[c?hya():nya()]});var d=this;this.J=a;this.j=c;this.playlist=this.videoData=null;this.K=
!1;this.D=this.G=this.B=null;this.C=!1;this.tooltip=b.Se();c?a.createClientVe(this.element,this,6193):a.createClientVe(this.element,this,6194);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"onPlaylistUpdate",this.onVideoDataChange);this.T(a,"onLoopRangeChange",this.onVideoDataChange);this.j||this.T(a,"appresize",this.LM);this.T(a,"mdxpreviousnextchange",function(){F2a(d);d.LM()});
this.onVideoDataChange()};
G2a=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
X2a=function(a){return!!a.playlist&&!a.j&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.J.getCurrentTime()&&2!==a.J.getPresentingPlayerType()};
Y2a=function(a){var b=QT(a.J.yb());return b?a.j?b.il():b.Rp():!1};
F2a=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.il();c=g.RT(a.J)&&(!a.j||c);var d=a.j&&g.VT(a.J),e=Y2a(a),f=a.j&&5===a.J.getPresentingPlayerType(),h=g.MT(a.J,"Next","SHIFT+n"),l=g.MT(a.J,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.C)b.title="Replay";else if(c){var m=null;a.playlist&&(m=g.qV(a.playlist,a.j?y_a(a.playlist):z_a(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;
b.url=a.J.U().getVideoUrl(m.videoId,n?n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.WF(m.lengthSeconds):null;b.preview=m.fh("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.QS(m))b.url=l.bl(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.WF(l.lengthSeconds):
null,b.preview=l.fh("mqdefault.jpg");b.title=h;b["data-title-no-tooltip"]="Next";b["aria-keyshortcuts"]="SHIFT+n"}b.disabled=!d&&!c&&!e&&!f;a.update(b);a.K=!!b.url;d||c||a.C||e||f?a.B||(a.B=g.KT(a.tooltip,a.element),a.G=a.listen("click",a.onClick,a)):a.B&&(a.B(),a.B=null,a.Pc(a.G),a.G=null);a.tooltip.Th()};
$2a=function(a,b){g.W.call(this,{I:"div",S:"ytp-fine-scrubbing",V:[{I:"div",S:"ytp-fine-scrubbing-draggable",V:[{I:"div",S:"ytp-fine-scrubbing-thumbnails",X:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{I:"div",X:{"aria-hidden":"true"},S:"ytp-fine-scrubbing-cursor"},{I:"div",S:"ytp-fine-scrubbing-seek-time",X:{"aria-hidden":"true"},
xa:"{{seekTime}}"},{I:"div",S:"ytp-fine-scrubbing-play",V:[mya()],X:{title:"Play from this position",role:"button"}},{I:"div",S:"ytp-fine-scrubbing-dismiss",V:[g.iF()],X:{title:"Exit precise seeking",role:"button"}}]});var c=this;this.api=a;this.G=this.Fa("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Fa("ytp-fine-scrubbing-dismiss");this.Ca=this.Fa("ytp-fine-scrubbing-draggable");this.playButton=this.Fa("ytp-fine-scrubbing-play");this.thumbnails=[];this.B=[];this.Ma=this.j=0;this.La=void 0;
this.qa=NaN;this.Sa=this.Y=this.C=this.N=0;this.D=[];this.interval=this.frameCount=0;this.K=160;this.scale=1;this.Va=0;this.isEnabled=this.Ga=!1;Z2a(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.KT(b,this.dismissButton));this.addOnDisposeCallback(g.KT(b,this.playButton));this.Ha=new g.TU(this.Ca,!0);this.Ha.subscribe("dragstart",this.OM,this);this.Ha.subscribe("dragmove",this.MM,this);this.Ha.subscribe("dragend",this.p4,this);this.T(a,"SEEK_COMPLETE",this.uB);a.L("web_fix_fine_scrubbing_false_play")&&
this.T(a,"rootnodemousedown",function(d){c.ra=d});
this.G.addEventListener("keydown",function(){});
g.N(this,this.Ha);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.G,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)};
Z2a=function(a,b){var c=g.WF(b),d=g.jJ("Seek to $PROGRESS",{PROGRESS:g.WF(b,!0)});a.update({ariamin:0,ariamax:Math.floor(a.api.getDuration()),arianow:Math.floor(b),arianowtext:d,seekTime:c})};
a3a=function(a){a.qa=NaN;a.Y=0;a.N=a.C};
d3a=function(a){var b=a.api.dk();if(b){var c=90*a.scale,d=xS(b,160*a.scale);if(b=b.levels[d]){a.K=b.width;if(!a.D.length){d=[];for(var e=yS(b,b.cz()),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.Ke(l),column:0,columns:p,row:n,rows:m,NF:b.width*p,Bx:b.height*m};d.push(q);h-=p;if(1>=h)break}a.D=d;a.frameCount=b.wJ();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>a.D.length;)d=
void 0,null==(d=a.thumbnails.pop())||d.dispose();for(;a.thumbnails.length<a.D.length;)d=new b3a,a.thumbnails.push(d),d.Ja(a.G),g.N(a,d);for(d=0;d<a.D.length;d++)e=a.thumbnails[d].element,f=a.D[d],h=a.K*a.scale,l=f.Bx/f.rows,m=c/l,e.style.background="url("+f.url+") 0 "+-f.row*f.Bx/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";KW(a,a.api.getCurrentTime());for(c=a.api.getVideoData().Dk;a.B.length>c.length;)d=void 0,null==(d=a.B.pop())||d.dispose();
for(;a.B.length<c.length;)d=new c3a,a.B.push(new c3a),g.N(a,d);for(d=0;d<c.length;d++)e=c[d],a.B[d].update({chapterTitle:e.title}),e=Math.round(e.startTime/b.j),f=Math.floor(e/b.rows),g.Is(a.B[d].element,"transform","translateX("+e%b.rows*a.K*a.scale+"px)"),f<a.thumbnails.length&&a.thumbnails[f]&&a.B[d].Ja(a.thumbnails[f].element);a.Ga=!0}}};
KW=function(a,b){a.ra&&(a.ra.zA=!0);a.update({seekTime:g.WF(b)});var c=a.K*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.ze(b,e3a(a),a.j/2);a.N=b;a.C=a.N;g.Is(a.Ca,"transform","translateX("+(a.N-a.j/2)+"px)");g.Is(a.Ca,"padding","0px "+a.j/2+"px");g.Is(a.G,"position","relative")};
f3a=function(a,b){var c=a.K*a.scale;b-=a.j/2;return b>-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval};
e3a=function(a){return-((a.G.offsetWidth||(a.frameCount-1)*a.K*a.scale)-a.j/2)};
b3a=function(){g.W.call(this,{I:"div",S:"ytp-fine-scrubbing-thumbnail"})};
c3a=function(){g.W.call(this,{I:"div",S:"ytp-fine-scrubbing-chapter-title",V:[{I:"div",S:"ytp-fine-scrubbing-chapter-title-content",xa:"{{chapterTitle}}"}]})};
g3a=function(a){g.W.call(this,{I:"div",S:"ytp-heat-map-chapter",V:[{I:"svg",S:"ytp-heat-map-svg",X:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",X:{id:"{{id}}"},V:[{I:"path",S:"ytp-heat-map-path",X:{d:"",fill:"white"}}]}]},{I:"rect",S:"ytp-heat-map-graph",X:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-hover",X:{"clip-path":"url(#hm_1)",fill:"white",
"fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-play",X:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.K=this.Fa("ytp-heat-map-svg");this.C=this.Fa("ytp-heat-map-path");this.G=this.Fa("ytp-heat-map-graph");this.D=this.Fa("ytp-heat-map-play");this.B=this.Fa("ytp-heat-map-hover");this.ue=!1;this.j=60;a=""+g.fb(this);this.update({id:a});a="url(#"+a+")";this.G.setAttribute("clip-path",a);this.D.setAttribute("clip-path",a);this.B.setAttribute("clip-path",
a);this.api.L("web_heat_map_v2")&&g.Qv(this.api.getRootNode(),"ytp-heat-map-v2")};
h3a=function(a,b){0<b&&(a.j=b,a.K.style.height=a.j+"px")};
LW=function(){g.W.call(this,{I:"div",S:"ytp-chapter-hover-container",V:[{I:"div",S:"ytp-progress-bar-padding"},{I:"div",S:"ytp-progress-list",V:[{I:"div",Ka:["ytp-play-progress","ytp-swatch-background-color"]},{I:"div",S:"ytp-progress-linear-live-buffer"},{I:"div",S:"ytp-load-progress"},{I:"div",S:"ytp-hover-progress"},{I:"div",S:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.D=this.Fa("ytp-progress-linear-live-buffer");this.C=this.Fa("ytp-ad-progress-list");
this.G=this.Fa("ytp-load-progress");this.K=this.Fa("ytp-play-progress");this.B=this.Fa("ytp-hover-progress");this.j=this.Fa("ytp-chapter-hover-container")};
MW=function(a,b){g.Is(a.j,"width",b)};
i3a=function(a,b){g.Is(a.j,"margin-right",b+"px")};
j3a=function(){this.B=this.position=this.C=this.j=this.D=this.width=NaN};
k3a=function(){g.W.call(this,{I:"div",S:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.OW=function(a,b){g.bF.call(this,{I:"div",S:"ytp-progress-bar-container",X:{"aria-disabled":"true"},V:[{I:"div",Ka:["ytp-heat-map-container"],V:[{I:"div",S:"ytp-heat-map-edu"}]},{I:"div",Ka:["ytp-progress-bar"],X:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},V:[{I:"div",S:"ytp-chapters-container"},{I:"div",S:"ytp-timed-markers-container"},{I:"div",S:"ytp-clip-start-exclude"},
{I:"div",S:"ytp-clip-end-exclude"},{I:"div",S:"ytp-scrubber-container",V:[{I:"div",Ka:["ytp-scrubber-button","ytp-swatch-background-color"],V:[{I:"div",S:"ytp-scrubber-pull-indicator"}]}]}]},{I:"div",Ka:["ytp-fine-scrubbing-container"],V:[{I:"div",S:"ytp-fine-scrubbing-edu"}]},{I:"div",S:"ytp-bound-time-left",xa:"{{boundTimeLeft}}"},{I:"div",S:"ytp-bound-time-right",xa:"{{boundTimeRight}}"},{I:"div",S:"ytp-clip-start",X:{title:"{{clipstarttitle}}"},xa:"{{clipstarticon}}"},{I:"div",S:"ytp-clip-end",
X:{title:"{{clipendtitle}}"},xa:"{{clipendicon}}"}]});this.api=a;this.uf=!1;this.Tf=this.Va=this.N=this.Sf=0;this.Nd=null;this.La={};this.Nb={};this.clipEnd=Infinity;this.Hb=this.Fa("ytp-clip-end");this.Dc=new g.TU(this.Hb,!0);this.vc=this.Fa("ytp-clip-end-exclude");this.Qc=this.Fa("ytp-clip-start-exclude");this.clipStart=0;this.Kb=this.Fa("ytp-clip-start");this.Jd=new g.TU(this.Kb,!0);this.qa=this.gb=0;this.progressBar=this.Fa("ytp-progress-bar");this.Ab={};this.Ma={};this.Sb=this.Fa("ytp-chapters-container");
this.Rf=this.Fa("ytp-timed-markers-container");this.j=[];this.K=[];this.sf={};this.Pf=null;this.Wa=-1;this.rb=this.Ca=0;this.Y=null;this.Uf=this.Fa("ytp-scrubber-button");this.Ig=this.Fa("ytp-scrubber-container");this.bb=new g.Ee;this.uh=new j3a;this.C=new ZF(0,0);this.Bb=null;this.D=this.tf=!1;this.Qf=null;this.ra=this.Fa("ytp-heat-map-container");this.zd=this.Fa("ytp-heat-map-edu");this.G=[];this.heatMarkersDecorations=[];this.eb=this.Fa("ytp-fine-scrubbing-container");this.ud=this.Fa("ytp-fine-scrubbing-edu");
this.B=void 0;this.Ha=this.ge=this.Ga=!1;this.tooltip=b.Se();this.addOnDisposeCallback(g.KT(this.tooltip,this.Hb));g.N(this,this.Dc);this.Dc.subscribe("hoverstart",this.A_,this);this.Dc.subscribe("hoverend",this.z_,this);this.T(this.Hb,"click",this.LL);this.addOnDisposeCallback(g.KT(this.tooltip,this.Kb));g.N(this,this.Jd);this.Jd.subscribe("hoverstart",this.A_,this);this.Jd.subscribe("hoverend",this.z_,this);this.T(this.Kb,"click",this.LL);l3a(this);this.T(a,"resize",this.jc);this.T(a,"presentingplayerstatechange",
this.s9);this.T(a,"videodatachange",this.Ut);this.T(a,"videoplayerreset",this.r9);this.T(a,"cuerangesadded",this.Wea);this.T(a,"cuerangesremoved",this.rda);this.T(a,"onLoopRangeChange",this.xU);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.dJ("timedMarkerCueRange"),this.uca);this.T(a,"updatemarkervisibility",this.R2);this.updateVideoData(a.getVideoData(),!0);this.xU(a.getLoopRange());NW(this)&&!this.B&&(this.B=new $2a(this.api,this.tooltip),a=g.Rs(this.element).x||0,this.B.jc(a,this.N),
this.B.Ja(this.eb),g.N(this,this.B),this.T(this.B.dismissButton,"click",this.Fw),this.T(this.B.playButton,"click",this.aP),this.T(this.B.element,"dblclick",this.aP));this.api.createClientVe(this.ra,this,139609,!0);this.api.createClientVe(this.zd,this,140127,!0);this.api.createClientVe(this.ud,this,151179,!0);this.api.L("web_modern_miniplayer")&&(this.element.hidden=!0)};
l3a=function(a){if(0===a.j.length){var b=new LW;a.j.push(b);g.N(a,b);b.Ja(a.Sb,0)}for(;1<a.j.length;)a.j.pop().dispose();MW(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""};
m3a=function(a){var b=void 0===b?NaN:b;var c=new g3a(a.api);a.G.push(c);g.N(a,c);c.Ja(a.ra);0<=b&&(c.element.style.width=b+"px")};
n3a=function(a){for(;a.K.length;)a.K.pop().dispose()};
p3a=function(a){var b,c,d,e,f;return null==(f=g.V(null==(e=g.V(null==(b=a.getWatchNextResponse())?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,SVa))?void 0:e.playerBar,o3a))?void 0:f.chapters};
q3a=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.cJ(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.nf("chapterCueRange");a.api.hf(c)};
y3a=function(a,b){var c,d=null==(c=a.Ab[b])?void 0:c.chapters;d&&(r3a(a,d),a.api.getVideoData().Dk=a.j,q3a(a));var e;if((c=null==(e=a.Ab[b])?void 0:e.markers)&&"HEATSEEKER"!==b){n3a(a);e=g.u(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new k3a,d=g.V(d,g.s3a)){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;t3a(a,c)}u3a(a,
a.K);e=a.K;c=a.sf;d=[];for(f=0;f<e.length;f++)!isNaN(e[f].timeRangeStartMillis)&&e[f].onActiveCommand&&(h=M1a(e[f].timeRangeStartMillis,f===e.length-1?Infinity:e[f+1].timeRangeStartMillis),d.push(h),c[h.id]=e[f].onActiveCommand);a.api.hf(d)}var l;if(b=g.V(null==(l=a.Ab[b])?void 0:l.heatmap,v3a)){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;d===a.G.length&&
m3a(a);f=[];c&&f.push(c);for(var q=g.u(l),r=q.next();!r.done;r=q.next()){r=r.value;var t=void 0,v=void 0,w=null!=(v=null==(t=g.V(r,w3a))?void 0:t.timeRangeStartMillis)?v:-1;w>=h&&w<=p&&f.push(r)}0<m&&(a.ra.style.height=m+"px");h=a.G[d];p=f;r=e;v=m;w=0===d;w=void 0===w?!1:w;h3a(h,v);q=p;t=h.j;w=void 0===w?!1:w;var A=1E3/q.length,C=[];C.push({x:0,y:100});for(var F=0;F<q.length;F++){var H=void 0,M=(null==(H=g.V(q[F],w3a))?void 0:H.heatMarkerIntensityScoreNormalized)||0;H=(F+.5)*A;M=100-g.ze(100*M,r/
t*100,v/t*100);0!==F||w||C.push({x:0,y:M});C.push({x:H,y:M});F===q.length-1&&C.push({x:1E3,y:M})}C.push({x:1E3,y:100});q=C;p=0===p.length?"":RAa(q);h.C.setAttribute("d",p);h.ue=""!==p;g.Uv(h.api.getRootNode(),"ytp-heat-map",h.ue);g.Uv(h.api.getRootNode(),"ytp-heat-map-played_bar",h.api.L("web_player_heat_map_played_bar")&&""!==p);0<f.length&&(c=f[f.length-1])}g.PW(a);l=[];b=g.u(b.heatMarkersDecorations||[]);for(e=b.next();!e.done;e=b.next())if(e=g.V(e.value,x3a))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.eF(m):""});a.heatMarkersDecorations=l}};
t3a=function(a,b){a.K.push(b);g.N(a,b);b.Ja(a.Rf,a.Rf.children.length)};
u3a=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=QW(a,c.timeRangeStartMillis/(1E3*a.C.j),RW(a));g.Is(c.element,"transform","translateX("+d+"px) scaleX(0.6)")}};
r3a=function(a,b){var c=0,d=!1;b=g.u(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(g.V(e,z3a)){e=g.V(e,z3a);var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;f.title=h?g.eF(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 LW,a.j.push(f),g.N(a,f),f.Ja(a.Sb,a.Sb.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.PW(a);SW(a)};
g.PW=function(a){a.Ca=a.j.length-1;a.rb=0;A3a(a,!0)&&A3a(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){i3a(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;MW(a.j[d],e+"px");break}a.j[c].width=0;MW(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,MW(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,MW(a.j[c],d+"px"));c=0;if(a.G.length===a.j.length)for(b=0;b<
a.G.length;b++)d=a.j[b].width,a.G[b].element.style.width=d+"px",a.G[b].element.style.left=c+"px",c+=d+(a.D?3:2)};
A3a=function(a,b){var c=0,d=!1,e=a.j.length,f=1E3*a.C.j;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.N){for(var h=a.N-(a.D?3:2)*a.Ca,l=0===a.rb?3:h*a.rb,m=g.u(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,i3a(a.j[c],a.D?3:2));g.Uv(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,r=p.j[q-1];void 0!==r&&0<r.width?
r.width+=n:q<p.j.length-1&&(p.j[q+1].width+=n);i3a(p.j[q],0);b&&(a.Ca--,m/f>a.rb&&(a.rb=m/f),d=!0)}c++}}return d};
SW=function(a){if(a.N){var b=a.api.getProgressState(),c=a.api.getVideoData();if(!(c&&c.enableServerStitchedDai&&c.enablePreroll)||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:uT(d))&&b.airingStart&&b.airingEnd?B3a(a,b.airingStart,b.airingEnd):B3a(a,b.seekableStart,b.seekableEnd);d=$F(c,b.loaded,0);b=$F(c,b.current,0);var e=a.C.B!==c.B||a.C.j!==c.j;a.C=c;TW(a,b,d);e&&C3a(a);D3a(a)}}};
B3a=function(a,b,c){return E3a(a)?new ZF(Math.max(b,a.Bb.startTimeMs/1E3),Math.min(c,a.Bb.endTimeMs/1E3)):new ZF(b,c)};
F3a=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[nW(a.j,b.startTimeMs)],g.Uv(b.j,"ytp-repeating-chapter",!1)),a.Bb&&(b=a.j[nW(a.j,a.Bb.startTimeMs)],g.Uv(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.Uv(d.j,"ytp-exp-chapter-hover-container",!a.Bb)})};
VW=function(a,b){var c=dza(a.C,b.B);if(1<a.j.length){c=UW(a,b.C,!0);for(var d=0,e=0;e<c;e++)0<a.j[e].width&&(d+=a.j[e].width,d+=a.D?3:2);c=(a.j[c].startTime+(b.C-d)/a.j[c].width*((c===a.j.length-1?1E3*a.C.j:a.j[c+1].startTime)-a.j[c].startTime))/1E3||0}return c};
G3a=function(a,b,c){return c>=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.C.j*(a.N-(a.D?3:2)*a.Ca)};
C3a=function(a){a.Uf.style.removeProperty("height");for(var b=g.u(Object.keys(a.La)),c=b.next();!c.done;c=b.next())H3a(a,c.value);WW(a);TW(a,a.qa,a.gb)};
RW=function(a){var b=a.bb.x;b=g.ze(b,0,a.N);a.uh.update(b,a.N);return a.uh};
YW=function(a){return(a.D?135:90)-XW(a)};
XW=function(a){var b=48,c=a.api.U();a.D?b=54:g.BR(c)&&!c.B&&(b=40);return b};
TW=function(a,b,c){a.qa=b;a.gb=c;var d=RW(a),e=a.C.j,f=dza(a.C,a.qa),h=g.jJ("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.WF(f,!0),DURATION:g.WF(e,!0)}),l=nW(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.C.B),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.Bb&&2!==a.api.getPresentingPlayerType()&&(e=a.Bb.startTimeMs/1E3,f=a.Bb.endTimeMs/1E3);e=$F(a.C,e,0);l=$F(a.C,f,1);h=a.api.getVideoData();f=g.ze(b,e,l);c=(null==h?0:g.tT(h))?1:g.ze(c,
e,l);b=QW(a,b,d);g.Is(a.Ig,"transform","translateX("+b+"px)");ZW(a,d,e,f,"PLAY_PROGRESS");(null==h?0:uT(h))?(b=a.api.getProgressState().seekableEnd)&&ZW(a,d,f,$F(a.C,b),"LIVE_BUFFER"):ZW(a,d,e,c,"LOAD_PROGRESS");if(a.api.L("web_player_heat_map_played_bar")){var m;null!=(m=a.G[0])&&m.D.setAttribute("width",(100*f).toFixed(2)+"%")}};
ZW=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Ca*(a.D?3:2),l=c*h;c=UW(a,l);var m=d*h;h=UW(a,m);"HOVER_PROGRESS"===e&&(h=UW(a,b.j*d,!0),m=b.j*d-I3a(a,b.j*d)*(a.D?3:2));d=Math.max(l-J3a(a,c),0);for(l=c;l<f;l++)a.j[l].Ib(e).style.left=c===l?d+"px":"0";b=QW(a,a.qa,b);for(f=c;f<h;f++){l=a.j[f].Ib(e);var n=a.j[f].width,p=f===c?n-d:n;$W(a,l,p,n);K3a(a,l,p,n,f,b,e)}f=a.j[h].width;m=g.ze(m-J3a(a,h),0,f);c===h&&(m-=d);d=a.j[h].Ib(e);$W(a,d,m,f);K3a(a,d,m,f,h,b,e);m=a.j.length;for(h+=1;h<m;h++)L3a(a,h,e);
for(h=0;h<c;h++)L3a(a,h,e)};
J3a=function(a,b){if(b>=a.j.length)return a.N;for(var c=0,d=0;d<b;)c+=a.j[d].width,d++;return c};
L3a=function(a,b,c){c=a.j[b].Ib(c);$W(a,c,0,a.j[b].width)};
K3a=function(a,b,c,d,e,f,h){a.api.L("enable_cairo_refresh_signature_moments_web")&&"PLAY_PROGRESS"===h&&(c=!d||a.api.U().B?1:c/d,0<a.Qc.clientWidth||0<a.vc.clientWidth?(f=b.clientWidth/c,a=-1*a.Qc.clientWidth/c):(f/=c,a=-1*a.j[e].element.offsetLeft/c),g.Is(b,"background-size",f+"px"),g.Is(b,"background-position-x",a+"px"))};
$W=function(a,b,c,d,e){e||a.api.U().B?b.style.width=c+"px":g.Is(b,"transform","scalex("+(d?c/d:0)+")")};
UW=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=I3a(a,b)*(a.D?3:2));c=g.u(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};
QW=function(a,b,c){for(var d=b*a.C.j*1E3,e=-1,f=g.u(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.j-(a.D?3:2)*a.Ca)+(a.D?3:2)*(0>e?0:e)+c.D};
I3a=function(a,b){for(var c=a.j.length,d=0,e=g.u(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.D?3:2,d++;else break;return d===c?c-1:d};
g.M3a=function(a,b,c,d){var e=a.N!==c,f=a.D!==d;a.Sf=b;a.N=c;a.D=d;NW(a)&&null!=(b=a.B)&&(b.scale=d?1.5:1);C3a(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.PW(a);a.B&&f&&NW(a)&&(a.B.isEnabled&&(c=a.D?135:90,d=c-XW(a),a.eb.style.height=c+"px",g.Is(a.ra,"transform","translateY("+-d+"px)"),g.Is(a.progressBar,"transform","translateY("+-d+"px)")),d3a(a.B))};
WW=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.C.B,f=0<a.C.j&&d<a.C.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.Uv(a.element,"ytp-loop-range-enabled",b);g.Uv(a.element,"ytp-clip-start-enabled",e);g.Uv(a.element,"ytp-clip-end-enabled",f);b=e?$F(a.C,c,0):0;d=f?$F(a.C,d,1):1;a.Kb.style.left=Math.round(1E3*b)/10+"%";a.Hb.style.left=
Math.round(1E3*d)/10+"%";a.Qc.style.width=Math.round(1E3*b)/10+"%";a.vc.style.left=Math.round(1E3*d)/10+"%";a.vc.style.width=Math.round(1E3*(1-d))/10+"%"};
D3a=function(a){var b;if(null==(b=a.api.getVideoData())||!uT(b)){b=RW(a);ZW(a,b,a.qa,Math.max(b.B,a.qa),"HOVER_PROGRESS");for(var c=UW(a,b.j*a.qa,!0),d=UW(a,b.C,!0),e=c;e<=d;e++)g.Uv(a.j[e].B,"ytp-hover-progress-light",b.B>a.qa);g.Uv(a.Uf,"ytp-scrubber-button-hover",c===d&&1<a.j.length);if(a.api.L("web_player_heat_map_played_bar")){var f;null!=(f=a.G[0])&&f.B.setAttribute("width",(100*b.B).toFixed(2)+"%")}}};
H3a=function(a,b){var c=a.La[b];b=a.Nb[b];var d=RW(a),e=$F(a.C,c.start/1E3,0),f=MCa(c,a.D)/d.width;var h=$F(a.C,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.ze(e,0,h-f));h=Math.min(h,e+f);c.color&&(b.style.background=c.color);c=e;b.style.left=Math.max(c*d.j+d.D,0)+"px";$W(a,b,g.ze((h-c)*d.j+d.D,0,d.width),d.width,!0)};
N3a=function(a,b){var c=b.getId();a.La[c]===b&&(g.Ef(a.Nb[c]),delete a.La[c],delete a.Nb[c])};
NW=function(a){var b;return!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.isMinimized()&&!a.api.isInline()};
aX=function(a){a.B&&(a.B.disable(),a.Va=0,a.ra.style.removeProperty("transform"),a.progressBar.style.removeProperty("transform"),a.eb.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
O3a=function(a,b){var c=b/YW(a)*XW(a);g.Is(a.progressBar,"transform","translateY("+-b+"px)");g.Is(a.ra,"transform","translateY("+-b+"px)");g.Is(a.eb,"transform","translateY("+c+"px)");a.eb.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=XW(a)-c+"px")};
P3a=function(a,b){b?a.Y||(a.element.removeAttribute("aria-disabled"),a.Y=new g.TU(a.progressBar,!0),a.Y.subscribe("hovermove",a.zba,a),a.Y.subscribe("hoverend",a.yba,a),a.Y.subscribe("dragstart",a.xba,a),a.Y.subscribe("dragmove",a.Bba,a),a.Y.subscribe("dragend",a.Aba,a),a.Qf=a.listen("keydown",a.r4)):a.Y&&(a.element.setAttribute("aria-disabled","true"),a.Pc(a.Qf),a.Y.cancel(),a.Y.dispose(),a.Y=null)};
E3a=function(a){var b;return!(null==(b=a.Bb)||!b.postId)&&2!==a.api.getPresentingPlayerType()};
bX=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-remote-button","ytp-button"],X:{title:"Play on TV","aria-haspopup":"true","data-priority":"8"},xa:"{{icon}}"});this.J=a;this.Cb=b;this.j=null;this.T(a,"onMdxReceiversChange",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.T(a,"appresize",this.Ta);a.createClientVe(this.element,this,139118);this.Ta();this.listen("click",this.B,this);LT(a,this.element,this)};
cX=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-button","ytp-settings-button"],X:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":XE(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},V:[g.pya()]});this.J=a;this.Cb=b;this.B=!0;this.listen("click",this.C);this.T(a,"onPlaybackQualityChange",this.updateBadge);this.T(a,"videodatachange",this.updateBadge);this.T(a,"webglsettingschanged",this.updateBadge);this.T(a,"appresize",this.j);LT(a,this.element,this);this.J.createClientVe(this.element,
this,28663);this.updateBadge();this.j(a.ob().getPlayerSize())};
Q3a=function(a,b){a.B=!!b;a.j(a.J.ob().getPlayerSize())};
dX=function(a,b){jU.call(this,"Annotations",g.nU.y3);this.J=a;this.Cb=b;this.j=!1;a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7             M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7             M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z             M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z",
fill:"white"}}]});this.T(a,"videodatachange",this.Ta);this.T(a,"onApiChange",this.Ta);this.subscribe("select",this.onSelect,this);this.Ta()};
eX=function(a,b){g.PU.call(this,"Audio track",g.nU.AUDIO,a,b);this.J=a;this.tracks={};this.countLabel=new g.W({I:"div",V:[{I:"span",xa:"Audio track"},{I:"span",S:"ytp-menuitem-label-count",xa:"{{content}}"}]});a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z            M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z            M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z            M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z            M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z",
fill:"white"}}]});g.N(this,this.countLabel);this.Gk(this.countLabel);this.T(a,"videodatachange",this.Ta);this.T(a,"onPlaybackAudioChange",this.Ta);this.Ta()};
fX=function(a,b){jU.call(this,"Autoplay",g.nU.D3);this.J=a;this.Cb=b;this.j=!1;this.C=[];this.T(a,"presentingplayerstatechange",this.B);this.subscribe("select",this.onSelect,this);a.createClientVe(this.element,this,113682);this.B()};
R3a=function(a,b){g.aU.call(this,g.bU({"aria-haspopup":"false"}),0,"More options");this.J=a;this.Cb=b;this.T(this.element,"click",this.onClick);this.Cb.Rc(this)};
S3a=function(a,b){var c;g.RR(a.U())&&(c={I:"div",S:"ytp-panel-footer-content",V:[{I:"span",xa:"Adjust download quality from your "},{I:"a",S:"ytp-panel-footer-content-link",xa:"Settings",X:{href:"/account_downloads"}}]});g.PU.call(this,"Quality",g.nU.x6,a,b,void 0,void 0,c);this.J=a;this.Ca={};this.Y={};this.D={};this.Ha=new Set;this.j=this.G=!1;this.K="unknown";this.qa="";this.ra=new g.vD;g.N(this,this.ra);this.G=this.J.L("web_player_use_new_api_for_quality_pullback");this.j=this.J.L("web_player_enable_premium_hbr_playback_cap");
a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z            M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.Qv(this.B.element,"ytp-quality-menu");this.T(a,"videodatachange",this.aD);this.T(a,"videoplayerreset",this.aD);this.T(a,"onPlaybackQualityChange",this.yU);this.aD();a.createClientVe(this.element,this,137721)};
U3a=function(a,b,c){var d=a.Ca[b],e=g.$J[b];return T3a(a,d?d.qualityLabel:e?e+"p":"Auto",b,c)};
V3a=function(a,b,c,d,e){var f=(b=a.j?a.D[b]:a.Y[b])&&b.quality,h=b&&b.qualityLabel;h=h?h:"Auto";d&&(h="("+h);a=T3a(a,h,f||"",e);d&&a.V.push(")");(d=(d=b&&b.paygatedQualityDetails)&&d.paygatedIndicatorText)&&c&&a.V.push({I:"div",S:"ytp-premium-label",xa:d});return a};
T3a=function(a,b,c,d){b={I:"span",Ka:d,V:[b]};var e;d="ytp-swatch-color";if(a.G||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.V.push(" "),b.V.push({I:"sup",S:d,xa:e}));return b};
gX=function(a,b,c,d){g.W.call(this,{I:"div",S:"ytp-input-slider-section",V:[{I:"input",S:"ytp-input-slider",X:{type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]});this.D=a;this.K=b;this.N=c;this.initialValue=d;this.B=this.Fa("ytp-input-slider");this.j=d?d:a;this.init();this.T(this.B,"input",this.G)};
X3a=function(a,b){a.updateValue("slidervalue",a.j);a.B.valueAsNumber=a.j;W3a(a,b)};
W3a=function(a,b){a.B.style.setProperty("--yt-slider-shape-gradient-percent",(b-a.D)/(a.K-a.D)*100+"%")};
hX=function(a){gX.call(this,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],.05,a.getPlaybackRate());this.J=a;this.C=g.yf("P");this.qa=pba(this.Y,this);g.Qv(this.B,"ytp-speedslider");g.Qv(this.C,"ytp-speedslider-text");a=this.C;var b=this.B;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);Y3a(this);this.T(this.J,"onPlaybackRateChange",this.updateValues)};
Y3a=function(a){a.C.textContent=a.j+"x"};
iX=function(a,b,c,d,e,f,h){g.W.call(this,{I:"div",S:"ytp-slider-section",X:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{I:"div",S:"ytp-slider",V:[{I:"div",S:"ytp-slider-handle"}]}]});this.N=a;this.Y=b;this.B=c;this.C=d;this.qa=e;this.Ga=f;this.range=this.C-this.B;this.La=this.Fa("ytp-slider-section");this.D=this.Fa("ytp-slider");this.ra=this.Fa("ytp-slider-handle");this.K=new g.TU(this.D,
!0);this.j=h?h:c;g.N(this,this.K);this.K.subscribe("dragmove",this.t4,this);this.T(this.element,"keydown",this.u4);this.T(this.element,"wheel",this.s4);this.init()};
jX=function(a){iX.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.J=a;this.G=g.yf("P");this.Ha=pba(this.Ca,this);g.Qv(this.D,"ytp-speedslider");g.Qv(this.G,"ytp-speedslider-text");a=this.G;var b=this.D;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);Z3a(this);this.T(this.J,"onPlaybackRateChange",this.updateValues)};
Z3a=function(a){a.G.textContent=$3a(a,a.j)+"x"};
$3a=function(a,b){a=Number(g.ze(b,a.B,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))};
a4a=function(a){g.bF.call(this,{I:"div",S:"ytp-speedslider-component"});a.L("web_settings_use_input_slider")?this.j=new hX(a):this.j=new jX(a);g.N(this,this.j);this.element.appendChild(this.j.element)};
b4a=function(a){var b=new a4a(a);GU.call(this,a,b,"Custom");g.N(this,b)};
c4a=function(a,b){var c=new b4a(a);g.PU.call(this,"Playback speed",g.nU.B6,a,b,kX(a)?void 0:"Custom",kX(a)?void 0:function(){g.KU(b,c)});
a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z            M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z            M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z            M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z            M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z",
fill:"white"}}]});g.N(this,c);this.J=a;this.K=null;kX(a)?(this.j=g.jJ("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.J.getPlaybackRate().toString()}),this.D=this.J.getPlaybackRate()):this.D=this.j=null;this.G=this.J.getAvailablePlaybackRates();this.T(a,"presentingplayerstatechange",this.Ta);this.Ta()};
e4a=function(a,b){var c=d4a(b);a.options[c]?a.ri(c):b===a.D&&a.j&&(a.ri(a.j),a.Kd(b.toString()))};
g4a=function(a){g.QU(a,a.G.map(d4a));a.j=null;a.D=null;var b=a.J.getPlaybackRate();if(!a.G.includes(b)||kX(a.J))f4a(a,b),g.PU.prototype.xg.call(a,a.j)};
f4a=function(a,b){a.D=b;a.j=g.jJ("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.G.map(d4a);b.unshift(a.j);g.QU(a,b)};
d4a=function(a){return a.toString()};
kX=function(a){return a.L("web_settings_menu_surface_custom_playback")};
i4a=function(a,b,c,d){var e=new g.HU(b,void 0,"Video Override");g.PU.call(this,d.text||"",a,b,c,"Video Override",function(){g.KU(c,e)});
var f=this;g.Qv(this.element,"ytp-subtitles-options-menu-item");this.K=d.option.toString();a=d.options;this.settings=g.cc(a,this.zU,this);this.G=e;g.N(this,this.G);b=new g.aU({I:"div",S:"ytp-menuitemtitle",xa:"Allow for a different caption style if specified by the video."},0);g.N(this,b);this.G.Rc(b,!0);this.D=new g.aU({I:"div",S:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",xa:"On"}]},-1);g.N(this,this.D);this.G.Rc(this.D,!0);this.T(this.D.element,"click",
function(){h4a(f,!0)});
this.j=new g.aU({I:"div",S:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",xa:"Off"}]},-2);g.N(this,this.j);this.G.Rc(this.j,!0);this.T(this.j.element,"click",function(){h4a(f,!1)});
g.QU(this,g.$r(a,this.zU))};
h4a=function(a,b){a.publish("settingChange",a.K+"Override",!b);a.Cb.aj()};
lX=function(a,b){g.HU.call(this,a,void 0,"Options");var c=this;this.Gu={};for(var d=0;d<g.pW.length;d++){var e=g.pW[d],f=new i4a(-d,a,b,e);g.N(this,f);f.subscribe("settingChange",this.wk,this);this.Gu[e.option.toString()]=f;this.Rc(f,!0)}a=new g.aU(g.bU(),-g.pW.length,"Reset");g.N(this,a);a.listen("click",function(){c.wk("reset",!0)});
this.Rc(a,!0)};
mX=function(a,b){g.PU.call(this,"Auto-translate",0,a,b);this.J=a;this.languages={};a.createClientVe(this.element,this,127301);a.logVisibility(this.element,!0)};
j4a=function(a,b){a.languages=g.cc(b,a.j,a);g.QU(a,g.$r(b,a.j))};
l4a=function(a,b){var c=new lX(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.RR(a.U())&&(e={I:"div",S:"ytp-panel-footer-content",V:[{I:"span",xa:d[0]},{I:"a",S:"ytp-panel-footer-content-link",xa:"Settings",X:{href:"/account_playback"}},{I:"span",xa:d[1]}]});g.PU.call(this,"Subtitles/CC",g.nU.SUBTITLES,a,b,"Options",function(){g.KU(b,c)},e);
var f=this;this.J=a;this.Cb=b;this.tracks={};this.K=new g.Iv(function(){k4a(f,!1)},3E3);
g.N(this,this.K);this.countLabel=new g.W({I:"div",V:[{I:"span",xa:"Subtitles/CC"},{I:"span",S:"ytp-menuitem-label-count",xa:"{{content}}"}]});g.N(this,this.countLabel);this.Gk(this.countLabel);a.L("web_settings_menu_icons")&&this.setIcon(KYa.includes("en")?{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"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"}}]}:{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]});this.j=new mX(a,b);g.N(this,this.j);this.j.subscribe("select",this.v4,this);this.G=c;g.N(this,this.G);this.G.subscribe("settingChange",this.wk,this);b.subscribe("show",this.gca,this);this.T(a,"videodatachange",this.Ta);this.T(a,"onApiChange",this.Ta);this.T(a,"onCaptionsTrackListChanged",
this.Ta);this.T(a,"captionschanged",this.Ta);a.createClientVe(this.element,this,127300);this.Ta()};
m4a=function(a){return Object.values(a.tracks).find(function(b){return"en"===b.languageCode&&"asr"===b.kind})};
nX=function(a,b){a.J.setOption("captions","track",b)};
k4a=function(a,b){a.J.setOption("captions","sampleSubtitles",b)};
n4a=function(a){g.JU.call(this,a,"ytp-settings-menu");var b=this;this.Pe=new g.HU(this.J);this.sS=this.settingsButton=null;this.isInitialized=this.pL=!1;g.N(this,this.Pe);this.hide();g.KU(this,this.Pe);a.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(c){b.Kf(c)});
this.T(a,"highlightSettingsMenu",function(){b.pL=!0;b.rd()});
this.J.L("web_player_enable_open_menu_item_from_command")&&this.T(a,"openSettingsMenuItem",function(c){if(c&&(b.pL=!0,b.rd(),"menu_item_video_quality_advanced"===c)){var d;null==(d=b.sS)||d.open()}})};
o4a=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-controls")};
oX=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-subtitles-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"3","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[LYa()]});this.J=a;this.tooltip=b.Se();this.T(a,"videodatachange",this.Ta);this.T(a,"appresize",this.Ta);this.T(a,"promotooltipacceptbuttonclicked",this.j);this.T(a,"onApiChange",this.Ta);this.T(a,"onCaptionsTrackListChanged",this.Ta);this.T(a,"captionschanged",this.Ta);
this.J.createClientVe(this.element,this,127299);this.Ta();this.listen("click",this.onClick);this.addOnDisposeCallback(g.KT(b.Se(),this.element))};
p4a=function(a){return null!=g.FV(a.J.yb())?g.FV(a.J.yb()).nT()?!!a.J.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1};
g.qX=function(a,b,c){c=void 0===c?350:c;g.W.call(this,{I:"div",Ka:["ytp-time-display","notranslate"],V:[{I:"span",S:"ytp-time-clip-icon",xa:"{{clipicon}}"},{I:"span",V:[{I:"span",S:"ytp-time-current",xa:"{{currenttime}}"},{I:"span",S:"ytp-time-separator",xa:" / "},{I:"span",S:"ytp-time-duration",xa:"{{duration}}"}]},{I:"span",S:"ytp-clip-watch-full-video-button-separator",xa:"\u2022"},{I:"span",S:"ytp-clip-watch-full-video-button",xa:"{{watchfullvideo}}"}]});this.api=a;this.N=c;this.liveBadge=new g.W({I:"button",
Ka:["ytp-live-badge","ytp-button"],X:{disabled:"true"},xa:"{{content}}"});this.j=null;this.lF=this.B=!1;this.K=this.G=null;this.isPremiere=!1;this.Bb=this.D=this.C=null;this.Y=this.Fa("ytp-clip-watch-full-video-button");this.liveBadge.Kd("Live");g.N(this,this.liveBadge);this.liveBadge.Ja(this.element);this.tooltip=b.Se();this.listen("click",this.onClick);this.T(this.Y,"click",this.Dca);this.T(a,"presentingplayerstatechange",this.Sc);this.T(a,"appresize",this.Sc);this.T(a,"onLoopRangeChange",this.onLoopRangeChange);
this.T(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.Sc();a=a.getLoopRange();b=this.Bb!==a;this.Bb=a;b&&pX(this);this.api.L("web_modern_miniplayer")&&(this.element.hidden=!0)};
pX=function(a){a.updateValue("clipicon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"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.lF&&!a.B?a.updateValue("watchfullvideo","Watch live stream"):a.updateValue("watchfullvideo","Watch full video");g.Uv(a.element,"ytp-clip",rX(a));g.Uv(a.element,"ytp-live",sX(a))};
sX=function(a){var b=a.api.U().L("enable_linear_program_progress");return a.lF&&!rX(a)&&(!b||!a.B)};
rX=function(a){return!!a.Bb&&!!a.Bb.postId&&2!==a.api.getPresentingPlayerType()&&(!a.Bb.type||"clips"===a.Bb.type)};
r4a=function(a,b){g.W.call(this,{I:"div",S:"ytp-volume-panel",X:{title:"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{I:"div",S:"ytp-volume-slider",V:[{I:"div",S:"ytp-volume-slider-handle"}]}]});var c=this;this.api=a;this.K=b;this.Im=!1;this.Y=this.volume=0;this.G=null;this.B=this.j=this.isDragging=!1;this.K=b;this.C=a.Fh();this.N=this.Fa("ytp-volume-slider");this.qa=this.Fa("ytp-volume-slider-handle");
this.D=new g.TU(this.N,!0);g.N(this,this.D);this.D.subscribe("dragstart",this.lca,this);this.D.subscribe("dragmove",this.x4,this);this.D.subscribe("dragend",this.kca,this);this.T(a,"onVolumeChange",this.onVolumeChange);this.T(a,"appresize",this.AU);this.T(a,"fullscreentoggled",this.Ox);this.T(a,"onShowControls",this.fX);this.T(a,"onHideControls",this.fX);this.T(this.element,"keydown",this.y4);this.T(this.element,"focus",function(){tX(c,c.j,c.isDragging,!0,c.api.Im())});
this.T(this.element,"blur",function(){tX(c,c.j,c.isDragging,!1,c.api.Im())});
this.AU(a.ob().getPlayerSize());q4a(this,a.getVolume(),a.isMuted());LT(a,this.element,this)};
q4a=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.qa.style.left=(a.C?60:40)*c+"px";a.volume=b};
s4a=function(a,b){g.Uv(a.element,"ytp-volume-control-hover",b);tX(a,b,a.isDragging,a.B,a.api.Im())};
tX=function(a,b,c,d,e){var f=a.j||a.isDragging||a.B||a.Im;a.j=b;a.isDragging=c;a.B=d;a.Im=e;b=a.j||a.isDragging||a.B||a.Im;f!==b&&(b?a.G=a.T(a.element,"wheel",a.w4):(a.Pc(a.G),a.G=null),g.Uv(a.K,"ytp-volume-slider-active",b))};
uX=function(a,b){var c=a.U(),d=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];c.C&&d.push("no-link");var e={title:"{{title}}",target:c.Y,"data-priority":"4","data-sessionlink":"feature=player-button"};c.C||(e.href="{{url}}");g.W.call(this,{I:"a",Ka:d,X:e,xa:"{{logoSvg}}"});this.j=null;this.api=a;this.visible=!1;c.C||(this.j=this.listen("click",this.onClick));this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.onVideoDataChange);this.T(a,"onLoopRangeChange",
this.onVideoDataChange);this.T(a,"appresize",this.jc);this.onVideoDataChange();c.C||this.addOnDisposeCallback(g.KT(b.Se(),this.element));this.jc()};
t4a=function(a,b,c){g.YJ.call(this);var d=this;this.J=a;this.Oe=b;this.Jg=c;this.gb=NaN;this.Wa=this.bb=null;this.B=new n4a(this.J);this.progressBar=new g.OW(this.J,this.Oe);this.qa=this.Y=this.G=null;this.Ca=new g.qX(this.J,this.Oe);this.Va=this.playButton=this.D=this.K=this.Sa=this.La=null;this.eb=new w2a(this.J,this.Oe);this.Z=new g.Hv(this.z4,null,this);this.ra=null;c=a.U();this.Jg.subscribe("autohideupdate",this.pB,this);var e=!a.getPlayerStateObject().isCued(),f;a.U().L("html5_player_dynamic_bottom_gradient")?
this.Wa=f=new r2a(a):f=new g.W({I:"div",S:"ytp-gradient-bottom"});g.N(this,f);g.UT(a,f.element,9);this.Ga=new g.FF(f,250,e,100);g.N(this,this.Ga);this.C=new g.W({I:"div",S:"ytp-chrome-bottom",V:[{I:"div",S:"ytp-chrome-controls"}]});g.N(this,this.C);g.UT(a,this.C.element,9);this.Ha=new g.FF(this.C,250,e,100);g.N(this,this.Ha);this.Ma=this.C.element.children[0];g.N(this,this.B);g.UT(a,this.B.element,6);this.B.subscribe("show",function(l){d.J.cH(!l);a.aT(d.B,l)});
g.N(this,this.progressBar);this.progressBar.Ja(this.C.element,0);e=new EW(a,b);g.N(this,e);g.UT(a,e.element,4);e=new g.YE({I:"div",S:"ytp-left-controls"});g.N(this,e);e.Ja(this.Ma);f=new g.JW(a,b,!1);g.N(this,f);f.Ja(e.element);a.L("web_render_jump_buttons")&&(this.Y=new FW(a,g.xI(a.U().experiments,"web_jump_button_backward_amount")||-10),g.N(this,this.Y),this.Y.Ja(e.element));c.Sa||(this.playButton=new g.IW(a,b),g.N(this,this.playButton),this.playButton.Ja(e.element));a.L("web_render_jump_buttons")&&
(this.qa=new FW(a,g.xI(a.U().experiments,"web_jump_button_forward_amount")||10),g.N(this,this.qa),this.qa.Ja(e.element));f=new g.JW(a,b,!0);g.N(this,f);f.Ja(e.element);f=new g.W({I:"span",S:"ytp-volume-area"});g.N(this,f);f.Ja(e.element);if(!c.ud&&(this.G=new z2a(a,b),g.N(this,this.G),this.G.Ja(f.element),c.Va&&!c.Z)){var h=new r4a(a,this.C.element);this.Va=h;g.N(this,h);h.Ja(f.element);f=new g.TU(f.element);g.N(this,f);f.subscribe("hoverstart",function(){var l;null==(l=d.Va)||s4a(l,!0)});
f=new g.TU(e.element);g.N(this,f);f.subscribe("hoverend",function(){var l;null==(l=d.Va)||s4a(l,!1)})}g.N(this,this.Ca);
this.Ca.Ja(e.element);this.j=new g.YE({I:"div",S:"ytp-right-controls"});g.N(this,this.j);this.La=new DW(a,this.progressBar);g.N(this,this.La);this.La.Ja(e.element);c.L("web_key_moments_markers")&&(this.Sa=new GW(a,this.progressBar),g.N(this,this.Sa),this.Sa.Ja(e.element));this.j.Ja(this.Ma);e=new oX(a,b);g.N(this,e);e.Ja(this.j.element);e=new cX(a,this.B);g.N(this,e);o4a(this.B,e);e.Ja(this.j.element);e=a.getVideoData();if(c.jn||e.If&&"1"===c.controlsType)this.K=new uX(a,b),g.N(this,this.K),this.K.Ja(this.j.element);
c.showMiniplayerButton&&(this.D=new HW(a),g.N(this,this.D),this.D.Ja(this.j.element));c.Bj&&(b=new bX(a,this.B),g.N(this,b),b.Ja(this.j.element));c.Sl&&(b=new BW(a),g.N(this,b),b.Ja(this.j.element));g.N(this,this.eb);this.eb.Ja(this.j.element);g.N(this,this.Z);this.T(a,"appresize",this.jc);this.T(a,"fullscreentoggled",this.jc);this.T(a,"presentingplayerstatechange",this.bU);this.T(a,"videodatachange",this.onVideoDataChange);this.jc()};
u4a=function(a,b){a.J.getPlayerStateObject().isCued()||b?b&&(a.Ha.hide(),a.Ga.hide(),a.G&&a.G.Lc(!1),a.K&&a.K.Lc(!1),a.D&&a.D.Lc(!1),a.J.im(a.Ib())):b||(a.Ha.show(),a.Ga.show(),a.G&&a.G.Lc(!0),a.K&&a.K.Lc(!0),a.D&&a.D.Lc(!0),a.pB())};
w4a=function(a){var b=a.J.ob().getPlayerSize().width;return Math.max(b-2*v4a(a),100)};
v4a=function(a){var b=a.J.Fh(),c=a.J.getVideoData().If,d=0;a.J.Fh()&&a.J.bd()&&(d=(a.J.ob().getPlayerSize().width-a.J.getVideoContentRect().width)/2);return 12*(c?0:b?2:1)+d};
x4a=function(a){var b=a.J.Fh()?72:50;a=a.J.U();g.RR(a)&&(b=62,g.GR(a)&&(b=54));return b};
y4a=function(a){FU.call(this,a,!1);var b=this;this.suggestedActions={};this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,g.dJ("suggested_action_button_visible"),function(c){c=c.id;b.text=c;CZa(b);b.onClickCommand=b.suggestedActions[c];b.enabled=!0;b.Kf()});
this.T(this.J,g.eJ("suggested_action_button_visible"),function(c){b.enabled=!1;b.Kf();b.J.removeCueRange(c.id)})};
z4a=function(a){a.suggestedActions={};a.J.nf("suggested_action_button_visible")};
wX=function(a){g.W.call(this,{I:"div",S:vX.TITLE,V:[{I:"div",S:vX.TEXT,V:[{I:"a",Ka:[vX.LINK,vX.SESSIONLINK],X:{target:a.U().Y,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},xa:"{{title}}"},{I:"div",S:vX.SUBTEXT,V:["{{subtextElement}}"]}]}]});this.api=a;this.j=null;this.link=this.Fa(vX.LINK);a.createClientVe(this.element,this,23851);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.Ta()};
A4a=function(a){a.updateValue("channelLink","");a.updateValue("channelName","");g.GR(a.api.U())?a.updateValue("channelTitleFocusable","0"):a.updateValue("channelTitleFocusable","-1")};
g.xX=function(a,b){g.W.call(this,{I:"div",V:[{I:"div",S:"ytp-tooltip-text-wrapper",X:{"aria-hidden":"{{ariaHidden}}"},V:[{I:"div",S:"ytp-tooltip-edu",V:[{I:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"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"}}]},{I:"span",xa:"{{eduText}}"}]},{I:"div",S:"ytp-tooltip-image"},{I:"div",S:"ytp-tooltip-title",V:[{I:"span",xa:"{{title}}"}]},{I:"span",S:"ytp-tooltip-text",xa:"{{text}}"}]},
{I:"div",S:"ytp-tooltip-bg",V:[{I:"div",S:"ytp-tooltip-duration",xa:"{{duration}}"}]}]});var c=this;this.api=a;this.Va=b;this.env=this.api.U();this.Ma=this.env.B;this.bg=this.Fa("ytp-tooltip-bg");this.Sa=this.Fa("ytp-tooltip-edu");this.image=this.Fa("ytp-tooltip-image");this.text=this.Fa("ytp-tooltip-text");this.title=this.Fa("ytp-tooltip-title");this.ra=function(d){(d=d.relatedTarget)&&g.Jf(c.j,d)||c.Wh()};
this.G=function(d){3===c.type&&c.Wh();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.G),d.addEventListener("mouseout",c.ra),d.removeEventListener("focus",c.G),d.addEventListener("blur",c.ra),B4a(c,d,2))};
this.Ha=function(){c.Wh()};
this.j=null;this.K=new g.FF(this,100);this.type=null;this.qa=!1;this.B=null;this.D=NaN;this.C="";this.BU=this.api.ob().getPlayerSize().width;this.Y=!0;this.scale=1;this.N=160;this.Ca=90;this.Ga=new g.Iv(this.l$,250,this);this.La=new g.Iv(this.Wh,5E3,this);g.N(this,this.K);g.N(this,this.Ga);g.N(this,this.La);yR&&(a=this.Fa("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"));t2a(this.api)&&(this.N=243,this.Ca=141,g.Qv(this.api.getRootNode(),"ytp-bigboards"))};
g.KT=function(a,b){if(a.Ma)return function(){};
b.addEventListener("mouseover",a.G);b.addEventListener("focus",a.G);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.j===b&&a.Wh();b.removeEventListener("mouseover",a.G);b.removeEventListener("focus",a.G)}};
B4a=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.XB("showElementTooltip called with non-element.",b.toString()),g.AE(a);else{isNaN(a.D)||(a.D=NaN,a.bg.style.background="");a.j=b;a.qa=!!d;d?a.C=d:(a.C=b.getAttribute("title"),b.removeAttribute("title"));g.Ov(a.element,"ytp-tooltip");g.Qv(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.Uv(a.element,"ytp-tooltip-image-enabled",
!!e);b=b.getAttribute("data-tooltip-opaque");g.Uv(a.element,"ytp-tooltip-opaque",!!b);a.type=c;a.api.addEventListener("appresize",a.Ha);a.Y&&(C4a(a),a.K.show(0))}};
C4a=function(a){if(a.j){var b=a.j.getAttribute("data-tooltip-text");if(a.C&&a.j.getAttribute("aria-label")!==a.C)var c=a.C;var d=a.j.getAttribute("aria-keyshortcuts"),e=a.j.getAttribute("data-title-no-tooltip");d&&e&&(c=g.jJ("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:e,SHORTCUT_KEY:d}));c&&a.j.setAttribute("aria-label",c);if(b&&!a.qa){d=a.j;a.updateValue("text",b);c=d.getAttribute("data-duration");a.update({title:a.C,duration:c});d=d.getAttribute("data-preview");e=a.N*a.scale;var f=
a.Ca*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.Rv(a.element,["ytp-text-detail","ytp-preview"]);g.Uv(a.element,"ytp-has-duration",!!c)}else a.updateValue("text",a.C),g.Tv(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);D4a(a,!!b)}};
D4a=function(a,b,c,d){var e=Math.min(a.BU,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Va.Yx(a.element,a.j,c,1===a.type,d);a.element.style.top?g.Qv(a.element,"ytp-bottom"):a.element.style.bottom&&g.Qv(a.element,"ytp-top");3===a.type&&a.La.start()};
E4a=function(a,b){g.Uv(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.D)){a.D=b;b=a.N*a.scale;var c=a.Ca*a.scale,d=iWa(a.B,a.D,b);s2a(a.bg,d,b,c,!0);a.Ga.start()}};
F4a=function(a){var b=a.j;3===a.type&&a.La.stop();a.api.removeEventListener("appresize",a.Ha);a.qa||b.setAttribute("title",a.C);a.C="";a.j=null};
H4a=function(a){g.W.call(this,{I:"button",Ka:["ytp-watch-later-button","ytp-button"],X:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.BR(a.U()))},V:[{I:"div",S:"ytp-watch-later-icon",xa:"{{icon}}"},{I:"div",S:"ytp-watch-later-title",xa:"Watch later"}]});this.J=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;oYa(a);a.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.T(a,"videoplayerreset",this.onReset);this.T(a,"appresize",
this.cD);this.T(a,"videodatachange",this.cD);this.T(a,"presentingplayerstatechange",this.cD);this.cD();a=this.J.U();var b=g.QB("yt-player-watch-later-pending");a.D&&b?(KPa(),G4a(this)):this.Ta(2);g.Uv(this.element,"ytp-show-watch-later-title",g.BR(a));LT(this.J,this.element,this)};
I4a=function(a){var b=a.J.getPlayerSize(),c=a.J.U(),d=a.J.getVideoData(),e=g.BR(c)&&g.RT(a.J)&&g.MF(a.J.getPlayerStateObject(),128),f=c.C;return c.ge&&240<=b.width&&!d.isAd()&&d.ge&&!e&&!g.vT(d)&&!a.J.bd()&&!f};
J4a=function(a,b){R0a(g.NR(a.J.U()),"wl_button",function(){KPa({videoId:b});window.location.reload()})};
G4a=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ta(3);var b=a.J.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.J.wm(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Ta(2);a.J.U().N&&a.J.jb("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
a.isRequestPending=!1;a.Ta(1);a.J.U().B&&a.J.hH(a.element);a.J.U().N&&a.J.jb("WATCH_LATER_VIDEO_ADDED")};
dH(c,b).then(d,function(){a.isRequestPending=!1;a.Ta(4,"An error occurred. Please try again later.");a.J.U().N&&a.J.jb("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}};
K4a=function(a,b){if(b!==a.icon){switch(b){case 3:var c=MYa();break;case 1:c=Wxa();break;case 2:c={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:c={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",
Ic:!0,X:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.updateValue("icon",c);a.icon=b}};
g.yX=function(){g.WV.apply(this,arguments);this.iK=(this.Pr=g.BR(this.api.U()))&&(this.api.U().B||nB()||cra());this.pO=48;this.qO=69;this.bE=this.Bi=null;this.Iu=[];this.oM=this.ji=this.pM=this.Bw=this.ke=null;this.vH=[];this.contextMenu=this.Fg=this.overflowButton=this.ai=this.Xg=this.searchButton=this.Dn=this.shareButton=this.Yo=this.Tg=this.title=this.channelAvatar=this.EB=this.tooltip=null;this.XN=!1;this.wG=this.qx=this.vE=this.wE=null;this.aS=this.UQ=this.BO=!1};
L4a=function(a){var b=a.api.U(),c=g.MF(a.api.getPlayerStateObject(),128);return b.D&&c&&!a.api.isFullscreen()};
M4a=function(a){if(a.Pg()&&!a.api.bd()&&a.ai){var b=a.api.L("web_player_hide_overflow_button_if_empty_menu");!a.Yo||b&&!I4a(a.Yo)||Q1a(a.ai,a.Yo);!a.shareButton||b&&!$1a(a.shareButton)||Q1a(a.ai,a.shareButton);!a.Dn||b&&!f1a(a.Dn)||Q1a(a.ai,a.Dn)}else{if(a.ai){b=a.ai;for(var c=g.u(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}a.searchButton&&!g.Jf(a.Tg.element,a.searchButton.element)&&a.searchButton.Ja(a.Tg.element);a.Yo&&!g.Jf(a.Tg.element,a.Yo.element)&&a.Yo.Ja(a.Tg.element);
a.shareButton&&!g.Jf(a.Tg.element,a.shareButton.element)&&a.shareButton.Ja(a.Tg.element);a.Dn&&!g.Jf(a.Tg.element,a.Dn.element)&&a.Dn.Ja(a.Tg.element)}};
N4a=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Ms(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=N4a(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};
O4a=function(a,b,c){if(a.api.U().L("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.wG){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-tc-m2"!==(null==(l=d.promoConfig)?void 0:l.promoId)}e=b}e&&(a.wG=new U1a(d,a.api),g.N(a,a.wG),g.UT(a.api,a.wG.element,
9));var m;null==(m=a.wG)||Y1a(m,d,c)}}};
g.zX=function(a){g.tV.call(this,a);this.chrome=null;this.load()};
AX=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.wC)()-f).toFixed(),shost:g.wn(a),trigger:b};P4a(h,a);c&&c(h);d&&!l&&d(new RJ("pathprobe.net",h))}
var f=(0,g.wC)();g.VA(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
P4a=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(),Q4a&&(a.perqsa=b.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))};
BX=function(a){g.I.call(this);var b=this;this.W=a;this.j=new Map;this.D=[];this.B=this.W.experiments.fb("html5_onesie_trusted_hosts_for_all")||!tN();this.Y=g.xI(this.W.experiments,"html5_onesie_prewarm_interval_ms");this.Z=new g.Iv(this.N,this.Y,this);this.K=-1;this.wd={Opb:function(){return b.j},
Upb:function(){return b.G},
Ppb:function(){return R4a}};
g.N(this,this.Z);S4a(this,g.QB("yt-player-bandaid-host"));this.G=this.load();this.Y&&this.G.then(function(){b.N()})};
S4a=function(a,b){var c=null==b?void 0:b.primary;a.C(0,c);c=c?T4a(c):void 0;a.C(2,c);a.C(1,null==b?void 0:b.secondary)};
CX=function(a,b){return new g.sP("https://"+b+a.W.Kk.baseUrl)};
U4a=function(a,b){a="https://"+uP(b.location)+"/initplayback?c="+g.fR(a.W)+"&owc=1";AX(a,"pw",function(c){c.ht=b.j})};
DX=function(a,b,c,d){AX("https://"+b+"/videoplayback?probe=1",c,function(e){!d.L("html5_onesie_host_racing")||d.videoData.isLivePlayback||d.L("html5_onesie_probe_ec_hosts")||d.jK||d.UP();a.D.push(e)},function(e){a.D.push(e.details)})};
T4a=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
W4a=function(a,b){var c,d,e,f,h,l,m,n;return g.G(function(p){if(1==p.j){c=CX(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.z(p,XA(c.Ke(),d),2)}e=p.B;if(200!==e.xhr.status||!e.xhr.responseText)return p.return(Promise.reject(new g.XB("b204258371_no_host",c.Ke(),e.xhr.status)));f=new g.sP(e.xhr.responseText);
h=uP(f);l=f.get("ms");m=CX(a,h);n=f.get("mm");m.set("ms",l);m.set("mm",n);return h&&V4a(h)?2!==b||EX(h)?p.return(m):p.return(Promise.reject(new g.XB("b204258371_untrusted",h,l))):p.return(Promise.reject(new g.XB("b204258371_invalid",h,l)))})};
X4a=function(a){var b=a.D;a.D=[];return b};
V4a=function(a){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(a)};
EX=function(a){var b=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(a)&&!b.test(a)};
Y4a=function(a,b){this.location=a;this.j=b};
Z4a=function(){for(var a=FX.length;4>a;a++){var b=g.yf("VIDEO");b.load();FX.push(new g.$U(b))}};
$4a=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return{msg:"player-error"};var h=f.C;if(b.Vf()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};(d=b.Je())&&d.isView()&&(d=d.mediaElement);if(d&&12<d.Qw().length&&g.$S(e))return{msg:"played-ranges"};if(!e.C)return null;if(!h)return{msg:"no-pvd-formats"};if(!e.C.j||!h.j)return{msg:"non-dash"};d=h.videoInfos[0];var l=e.C.videoInfos[0];a.G&&TS(f)&&(d=b.FE(),l=
c.FE());if(!d||!l)return{msg:"no-video-info"};if(a.C&&(gK(d)||gK(l)))return{msg:"av1"};b=a.B&&f.fk()&&zK();if(l.containerType!==d.containerType)if(b)f.ma("sgap",{ierr:"container"});else return{msg:"container"};if(g.$S(f)&&g.$S(e))return{msg:"content-protection"};h=h.j[0];e=e.C.j[0];c=h.audio;var m=e.audio;if(c.sampleRate!==m.sampleRate&&!g.WJ)if(b)f.ma("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:h.itag,cr:c.sampleRate,ni:e.itag,nr:m.sampleRate};return(c.numChannels||2)!==(m.numChannels||
2)?{msg:"channel-count"}:a.D&&f.fk()&&d.video.fps!==l.video.fps?{msg:"fps"}:null};
a5a=function(a,b,c){var d=a.getVideoData(),e=b.getVideoData();if(!d.U().supportsGaplessShorts())return{nq:"env"};if(d.xl||e.xl)return{nq:"autoplay"};if(!d.Y)return{nq:"client"};if(!c.j&&!a.po())return{nq:"no-empty"};a=$4a(c,a,b,Infinity);return null!=a?{nq:a.msg}:null};
GX=function(a){g.I.call(this);this.app=a;this.D=this.C=this.tb=this.j=null;this.B=1;this.events=new g.YJ(this);this.events.T(this.app.Ua,g.eJ("gaplessshortslooprange"),this.N);g.N(this,this.events)};
b5a=function(){this.j=this.C=this.G=this.D=this.B=!1};
c5a=function(a){var b=new b5a;b.B=a.L("h5_gapless_support_types_diff");b.D=a.L("h5_gapless_error_on_fps_diff");b.G=a.L("html5_gapless_use_format_info_fix");b.C=a.L("html5_gapless_disable_on_av1");b.j=a.L("html5_gapless_one_queued_player_only");return b};
g.HX=function(a,b,c,d){d=void 0===d?!1:d;JK.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d};
d5a=function(a,b,c,d,e,f){f=void 0===f?0:f;g.I.call(this);var h=this;this.policy=a;this.j=b;this.B=c;this.fd=e;this.G=f;this.D=this.C=null;this.currentVideoDuration=this.K=-1;this.N=!1;this.Kq=new IK;this.cn=d-1E3*b.Mc();this.Kq.then(void 0,function(){});
this.timeout=new g.Iv(function(){h.Dg("timeout")},1E4);
g.N(this,this.timeout);this.Z=isFinite(d);this.status={status:0,error:null}};
j5a=function(a){var b,c,d,e,f,h,l,m,n,p;return g.G(function(q){if(1==q.j){if(a.Na())return q.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.IX.Hs();return g.z(q,a.Kq,2)}g.IX.yr("gtfta",b);c=a.j.Je();if(c.isEnded())return a.Dg("ended_in_finishTransition"),q.return(Promise.reject(Error(a.status.error||"")));if(!a.D||!CK(a.D))return a.Dg("next_mse_closed"),q.return(Promise.reject(Error(a.status.error||"")));if(a.B.Er()!==a.D)return a.Dg("next_mse_mismatch"),q.return(Promise.reject(Error(a.status.error||
"")));d=e5a(a);e=d.p_;f=d.tX;h=d.n_;a.j.Jj(!1,!0);l=f5a(c,e,h,!a.B.getVideoData().isAd());a.B.setMediaElement(l);m=a.j.QE();a.fd.U().L("html5_mse_reuse_dropped_frames_fix")&&m&&a.B.aH(m.IB,m.JB);a.Z&&(a.B.seekTo(a.B.getCurrentTime()+.001,{Zw:!0,KT:3,yd:"gapless_pseudo"}),l.play()||aB());n=c.pc();n.cpn=a.j.getVideoData().clientPlaybackNonce;n.st=""+e;n.et=""+h;a.B.ma("gapless",n);a.j.ma("gaplessTo",{cpn:a.B.getVideoData().clientPlaybackNonce});p=a.j.getPlayerType()===a.B.getPlayerType();g5a(a.j,f,
!1,p,a.B.getVideoData().clientPlaybackNonce);g5a(a.B,a.B.getCurrentTime(),!0,p,a.j.getVideoData().clientPlaybackNonce);a.B.yT=!0;a.fd.U().L("html5_gapless_monitor_pbs")&&1===a.G&&h5a(a.B);g.dg(function(){!a.B.getVideoData().ra&&a.B.getPlayerState().isOrWillBePlaying()&&i5a(a.B)});
JX(a,6);a.dispose();return q.return(Promise.resolve())})};
o5a=function(a){if(a.B.getVideoData().C){var b=a.fd.U().L("html5_gapless_suspend_next_loader")&&1===a.G;k5a(a.B,a.D,b,l5a(a));JX(a,3);m5a(a);var c=n5a(a);b=c.iT;c=c.I1;b.subscribe("updateend",a.Sy,a);c.subscribe("updateend",a.Sy,a);a.Sy(b);a.Sy(c)}};
m5a=function(a){a.j.unsubscribe("internalvideodatachange",a.Bn,a);a.B.unsubscribe("internalvideodatachange",a.Bn,a);a.fd.U().L("html5_gapless_use_format_info_fix")&&(a.j.unsubscribe("internalvideoformatchange",a.Bn,a),a.B.unsubscribe("internalvideoformatchange",a.Bn,a));a.j.unsubscribe("mediasourceattached",a.Bn,a);a.B.unsubscribe("statechange",a.CU,a)};
f5a=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.HX(a,b,c,d)};
JX=function(a,b){b<=a.status.status||(a.status={status:b,error:null},5===b&&a.Kq.resolve())};
l5a=function(a){return a.fd.U().L("html5_gapless_no_clear_buffer_timeline")&&1===a.G&&NS(a.j.getVideoData())};
e5a=function(a){var b=a.j.Je();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:KX(a.j,!0);c=Math.min(a.cn/1E3,c)+b;var d=a.Z?100:0;a=c-a.B.Vf()+d;return{O7:b,p_:a,tX:c,n_:Infinity}};
n5a=function(a){return{iT:a.C.j.Gd,I1:a.C.B.Gd}};
q5a=function(a){g.I.call(this);var b=this;this.app=a;this.G=this.B=this.j=null;this.Z=!1;this.D=null;this.N=c5a(this.app.U());this.C=null;this.K=function(){g.dg(function(){p5a(b)})}};
r5a=function(a,b,c,d,e){d=void 0===d?0:d;e=void 0===e?0:e;a.po()||LX(a);a.D=new IK;a.j=b;var f=c,h=0===e;h=void 0===h?!0:h;var l=a.app.Zc(),m=l.getVideoData().isLivePlayback?Infinity:1E3*KX(l,!0);f>m&&(f=m-200,a.Z=!0);h&&l.getCurrentTime()>=f/1E3?a.K():(a.B=l,h&&(h=f,f=a.B,a.app.Ua.addEventListener(g.dJ("vqueued"),a.K),h=isFinite(h)||h/1E3>f.getDuration()?h:0x8000000000000,a.G=new g.cJ(h,0x8000000000000,{namespace:"vqueued"}),f.addCueRange(a.G)));h=d/=1E3;f=b.getVideoData().j;d&&f&&a.B&&(l=d,m=0,
b.getVideoData().isLivePlayback&&(h=Math.min(c/1E3,KX(a.B,!0)),m=Math.max(0,h-a.B.getCurrentTime()),l=Math.min(d,KX(b)+m)),h=MTa(f,l)||d,h!==d&&a.j.ma("qvaln",{st:d,at:h,rm:m,ct:l}));b=h;d=a.j;d.getVideoData().Pf=!0;d.getVideoData().Y=!0;g.MX(d,!0);f={};a.B&&(f=g.KM(a.B.wc().provider),h=a.B.getVideoData().clientPlaybackNonce,f={crt:(1E3*f).toFixed(),cpn:h});d.ma("queued",f);0!==b&&d.seekTo(b+.01,{Zw:!0,KT:3,yd:"videoqueuer_queued"});a.C=new d5a(a.N,a.app.Zc(),a.j,c,a.app,e);c=a.C;Infinity!==c.status.status&&
(JX(c,1),c.j.subscribe("internalvideodatachange",c.Bn,c),c.B.subscribe("internalvideodatachange",c.Bn,c),c.fd.U().L("html5_gapless_use_format_info_fix")&&(c.j.subscribe("internalvideoformatchange",c.Bn,c),c.B.subscribe("internalvideoformatchange",c.Bn,c)),c.j.subscribe("mediasourceattached",c.Bn,c),c.B.subscribe("statechange",c.CU,c),c.j.subscribe("newelementrequired",c.J_,c),c.Bn());return a.D};
p5a=function(a){var b,c,d,e,f;g.G(function(h){switch(h.j){case 1:if(a.Na()||!a.D||!a.j)return h.return();a.Z&&NX(a.app.Zc(),!0,!1);b=null;if(!a.C){h.Ia(2);break}g.Ba(h,3);return g.z(h,j5a(a.C),5);case 5:g.Ca(h,2);break;case 3:b=c=g.Da(h);case 2:if(!a.j)return h.return();g.IX.Lo("vqsp",function(){OX(a.app,a.j)});
d=a.j.Je();a.app.U().L("html5_gapless_seek_on_negative_time")&&d&&-.01>d.getCurrentTime()&&a.j.seekTo(0);g.IX.Lo("vqpv",function(){a.app.playVideo()});
b&&(a.j?s5a(a.j,b.message):null==(e=a.B)||e.ma("gapsp",{}));f=a.D;LX(a);f&&f.resolve();return h.return(Promise.resolve())}})};
LX=function(a,b){b=void 0===b?!1:b;if(a.B){if(a.G){var c=a.B;a.app.Ua.removeEventListener(g.dJ("vqueued"),a.K);c.removeCueRange(a.G)}a.B=null;a.G=null}a.C&&(6!==a.C.status.status&&(c=a.C,Infinity!==c.status.status&&1!==c.G&&c.Dg("Canceled")),a.C=null);a.D=null;a.j&&!b&&a.j!==g.HT(a.app,1)&&a.j!==a.app.Zc()&&a.j.dispose();a.j&&b&&PX(a.j);a.j=null;a.Z=!1};
t5a=function(a){var b;return(null==(b=a.C)?void 0:b.currentVideoDuration)||-1};
u5a=function(a,b,c){if(a.po())return"qie";if(null==a.j||a.j.Na()||null==a.j.getVideoData())return"qpd";if(b.videoId!==a.j.qe())return"vinm";if(0>=t5a(a))return"ivd";if(1!==c)return"upt";var d;null==(d=a.C)?a=void 0:5!==d.getStatus().status?a="niss":null!=$4a(d.policy,d.j,d.B,d.cn)?a="pge":(c=n5a(d),b=c.iT,a=g.xI(d.fd.U().experiments,"html5_shorts_gapless_next_buffer_in_seconds"),d=d.K+a,c=sK(c.I1.He(),d),b=sK(b.He(),d),a=!(0<a)||c&&b?null:"neb");return null!=a?a:null};
v5a=function(){var a=xra();return!(!a||"visible"===a)};
x5a=function(a){var b=w5a();b&&document.addEventListener(b,a,!1)};
y5a=function(a){var b=w5a();b&&document.removeEventListener(b,a,!1)};
w5a=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[wra+"VisibilityState"])return"";a=wra+"visibilitychange"}return a};
z5a=function(){g.UE.call(this);var a=this;this.fullscreen=0;this.D=this.C=this.pictureInPicture=this.j=this.B=this.inline=!1;this.G=function(){a.Kf()};
x5a(this.G);this.K=this.getVisibilityState(this.Xh(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.du(),this.EA(),this.LA(),this.hk())};
UZa=function(a){return!(a.isMinimized()||a.isInline()||a.isBackground()||a.du()||a.EA()||a.LA()||a.hk())};
QX=function(a,b){g.I.call(this);var c=this;this.policy=a;this.ib=b;this.B=0;this.j=null;this.zf=[];this.C=null;this.wd={Qn:function(){return c.ib}};
1===this.ib.length||g.as(this.ib,function(d){return!!d.range})};
RX=function(a,b,c){a.j&&(CN(a.j,b),b=a.j,a.j=null);for(var d=0,e=0,f=g.u(a.ib),h=f.next();!h.done;h=f.next())if(h=h.value,h.range&&d+h.B<=a.B)d+=h.B;else{if(oQ(h)&&!c&&a.B+b.totalLength-e<d+h.B){a.j=b.split(e).Zm;break}a:{var l=a;var m=h,n=a.B-d,p=b.totalLength-e;m.range&&(p=Math.min(m.B-n,p));m=uSa(m,m.Tb+n,p,m.range?m.Tb+n+p===m.range.length:!!c);n=DN(b,e,p);m=new BQ(m,n);if(l.policy.useUmp&&l.zf.length&&(n=DQ(l.zf[l.zf.length-1],m))){l.zf[l.zf.length-1]=n;l=p;break a}l.zf.push(m);l=p}a.B+=l;e+=
l;d+=h.B;if(e===b.totalLength)break}};
SX=function(a){g.I.call(this);this.D=a;this.logger=new g.RQ("onesie");this.Xc=new Map;this.B=this.j=!1;this.bf=this.manifest=null;this.C=!1};
A5a=function(a,b,c){a.Xc.get(b).Cg=c};
UX=function(a,b){a.Xc.has(b)&&(TX?a.Xc.get(b).Aj.clear():a.Xc.get(b).zf=new BN,B5a(a,b),a.B=!0)};
C5a=function(a){for(var b=g.u(a.Xc),c=b.next();!c.done;c=b.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;d.LD||UX(a,c)}};
D5a=function(a,b){b=a.Xc.get(b);if(!b)return 0;a=0;if(0<b.ib.length){b=g.u(b.ib);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.MF.length)for(c=g.u(b.MF),d=c.next();!d.done;d=c.next())a+=d.value.zs||0;return a+b.dZ};
E5a=function(a,b){if(TX){var c=0;a=a.Xc.get(b);if(null==a||!a.Aj)return 0;a=g.u(a.Aj.values());for(b=a.next();!b.done;b=a.next())c+=b.value.data.totalLength;return c}return(null==(c=a.Xc.get(b))?void 0:c.zf.totalLength)||0};
VX=function(a,b){a=a.Xc.get(b);if(TX){if(null==a||!a.LD)return!1;b=0<a.Aj.size;return 0<a.Ax.length||b}return!(null==a||!a.LD)&&!(null==a||!a.zf.totalLength)};
F5a=function(a,b){var c=a.Xc.get(b),d=D5a(a,b),e=!d&&!!c.bytesReceived;if(TX){var f;if(null==(f=a.manifest)?0:f.dc){a=g.u(c.Aj.values());for(b=a.next();!b.done;b=a.next())if(!b.value.jx)return!1;return e}}else if(f=a.gx(b),e&&a.j&&void 0!==f)return f;return(e||c.bytesReceived===d)&&c.Bz+E5a(a,b)===c.bytesReceived};
G5a=function(a,b,c){a.Xc.set(b,{zf:new BN,Bz:0,bytesReceived:0,dZ:0,pS:!1,Og:!1,gx:!1,Eh:c,RS:[],ib:[],MF:[],LD:!1,Aj:new Map,kH:new Map,Ax:[]});a.logger.debug(function(){return"[initStream] formatId: "+b})};
H5a=function(a,b,c,d){c.ib.push.apply(c.ib,g.qa(d));if(TX){c.kH.has(b)||c.kH.set(b,[]);var e;(e=c.kH.get(b)).push.apply(e,g.qa(d))}else if(c.cg)for(a=g.u(d),b=a.next();!b.done;b=a.next())c.cg.ib.push(b.value);else{c.cg=new QX(a.bf,[].concat(g.qa(c.ib)));var f;(null==(f=a.bf)?0:f.ge)&&g.N(a,c.cg)}};
I5a=function(a,b,c){var d,e=null==(d=a.manifest)?void 0:d.N.get(b);if(!e)return[];if(c.ao){var f;return(null==(f=e.Ow(0,c.clipId))?void 0:f.ib)||[]}if(e.Gm()){var h=c.startMs;d=c.durationMs;f=1E3;var l;if((null==(l=a.bf)?0:l.C)&&c.timeRange){var m;h=null!=(m=c.timeRange.Sg)?m:-1;var n;d=null!=(n=c.timeRange.Vz)?n:-1;var p;f=null!=(p=c.timeRange.Ks)?p:-1}if(0>c.ZB||0>c.Dq||0>d||0>h||0>c.zs||0>f)return UX(a,b),[];a=kQ(c.ZB,c.zs);b=c.TK||0;return[new mQ(3,e,a,"makeSliceInfosMediaBytes",c.Dq-1,h/f,d/
f,b,a.length-b,void 0,c.Kj,c.clipId)]}if(0>c.Dq)return UX(a,b),[];var q;return(null==(q=a.manifest)?0:q.dc)?(b=e.Lj,l=b*e.info.sb,a=(null==(h=a.bf)?0:h.Kb)?c.TK:void 0,[new mQ(3,e,void 0,"makeSliceInfosMediaBytes",c.Dq,void 0,b,a,l,!0,c.Kj,c.clipId)]):[]};
J5a=function(a,b,c){a.manifest=b;a.bf=c;b=g.u(a.Xc);for(c=b.next();!c.done;c=b.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;for(var e=g.u(d.RS),f=e.next();!f.done;f=e.next()){f=f.value;var h=I5a(a,c,f);H5a(a,f.Up,d,h)}}};
K5a=function(a,b,c,d){a.logger.debug(function(){return"[addStreamData] formatId: "+c+",headerId: "+b+" bytes: "+d.totalLength});
(a=a.Xc.get(c))&&!a.Og&&(TX?(a.Aj.has(b)||a.Aj.set(b,{data:new BN,uI:0,jx:!1}),CN(a.Aj.get(b).data,d)):CN(a.zf,d),a.bytesReceived+=d.totalLength,a.pS=!0)};
B5a=function(a,b){a.logger.debug(function(){return"[closeStream] formatId: "+b});
var c=a.Xc.get(b);c&&!c.Og&&(c.Og=!0,c.Cg&&c.Cg(),L5a(a)&&a.D.v_())};
L5a=function(a){a=g.u(a.Xc.values());for(var b=a.next();!b.done;b=a.next())if(!b.value.Og)return!1;return!0};
WX=function(a,b){var c,d;null==(c=window.h5vcc)||null==(d=c.settings)||d.set(a,b)};
M5a=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.qa(new Uint8Array(c))));a.close()}return b};
R5a=function(a){var b=a.experiments,c=b.fb.bind(b);N5a=c("html5_use_async_stopVideo");O5a=c("html5_pause_for_async_stopVideo");P5a=c("html5_not_reset_media_source");SEa=c("html5_rebase_video_to_ad_timeline");DK=c("html5_not_reset_media_source");Q5a=c("html5_not_reset_media_source");DEa=c("html5_retain_source_buffer_appends_for_debugging");c("html5_mediastream_applies_timestamp_offset")&&(XX=!0);var d=g.xI(b,"html5_cobalt_override_quic");d&&WX("QUIC",+(0<d));c("html5_cobalt_enable_min_processor_cnt_to_offload_algo")&&
WX("MediaSource.MinimumProcessorCountToOffloadAlgorithm",g.xI(b,"html5_cobalt_min_processor_cnt_to_offload_algo"));(d=c("html5_cobalt_async_redn"))&&WX("MediaSource.EnableAsynchronousReduction",+d);if(d=g.xI(b,"html5_cobalt_max_size_for_immed_job"))WX("MediaSource.MaxSizeForImmediateJob",d),WX("MediaSource.MinSizeForImmediateJob",d);(d=c("html5_cobalt_enable_fetch_buffer_pool"))&&WX("XHR.EnableFetchBufferPool",+d);(d=g.xI(b,"html5_cobalt_default_buffer_size_in_bytes"))&&WX("XHR.DefaultFetchBufferSize",
d);(d=c("html5_cobalt_enable_try_lock_for_progress_check"))&&WX("XHR.EnableTryLockForProgressCheck",+d);(d=g.xI(b,"html5_max_source_buffer_append_size_in_bytes"))&&WX("MediaSource.MaxSourceBufferAppendSizeInBytes",d);(d=g.xI(b,"html5_cobalt_audio_write_ahead_ms"))&&WX("Media.AudioWriteDurationLocal",d);(d=c("html5_cobalt_enable_avoid_copying_array_buffer"))&&WX("MediaSource.EnableAvoidCopyingArrayBuffer",+d);(d=c("html5_cobalt_enable_decode_to_texture"))&&WX("Media.PlayerConfiguration.DecodeToTexturePreferred",
d?1:0);(d=c("html5_cobalt_enable_media_element_buffered_range"))&&WX("MediaElement.EnableUsingMediaSourceBufferedRange",+d);Error.stackTraceLimit=50;var e=g.xI(b,"html5_idle_rate_limit_ms");e&&Object.defineProperty(window,"requestIdleCallback",{value:function(f){return window.setTimeout(f,e)}});
sUa(a.G);TX=c("html5_use_ump_request_slicer");Q4a=c("html5_record_now");c("html5_disable_streaming_xhr")&&(gR=!1);c("html5_pr_start_secs")&&(QXa=!0);g.xI(a.experiments,"html5_byterate_soft_cap_mweb")&&(cP=!0);c("html5_use_non_active_broadcast_for_post_live")&&(MSa=!0)};
YX=function(a,b,c,d,e){e=void 0===e?[]:e;g.I.call(this);this.W=a;this.lc=b;this.C=c;this.segments=e;this.j=void 0;this.B=new Map;e.length&&(this.j=e[0])};
S5a=function(a){if(!(2>a.segments.length)){var b=a.segments.shift();if(b){var c=b.j,d=[];if(c.size){c=g.u(c.values());for(var e=c.next();!e.done;e=c.next()){e=g.u(e.value);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var h=g.u(f.segments),l=h.next();!l.done;l=h.next())(l=ZX(l.value))&&d.push(l);f.removeAll()}}}(c=ZX(b))&&d.push(c);d=g.u(d);for(c=d.next();!c.done;c=d.next())a.B.delete(c.value);b.dispose()}}};
$X=function(a,b,c,d){if(!a.j||b>c)return!1;b=new YX(a.W,b,c,a.j,d);d=g.u(d);for(c=d.next();!c.done;c=d.next()){c=c.value;var e=ZX(c);e&&e!==ZX(a.j)&&a.B.set(e,[c])}a=a.j;a.j.has(b.Xe())?a.j.get(b.Xe()).push(b):a.j.set(b.Xe(),[b]);return!0};
aY=function(a,b){return a.B.get(b)};
T5a=function(a,b,c){a.B.set(b,c)};
bY=function(a,b,c,d,e,f){return new U5a(c,c+(d||0),!d,b,a,e,f)};
U5a=function(a,b,c,d,e,f,h){g.I.call(this);this.lc=a;this.B=b;this.C=c;this.type=d;this.D=e;this.videoData=f;this.yK=h;this.j=new Map;hXa(f)};
ZX=function(a){return a.videoData.clientPlaybackNonce};
V5a=function(a){if(a.j.size)for(var b=g.u(a.j.values()),c=b.next();!c.done;c=b.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())d.value.dispose()}a.j.clear()};
W5a=function(a){this.end=this.start=a};
g.cY=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.W=b;this.ea=c;this.Ga=new Map;this.eb=new Map;this.La=new Map;this.B=new Map;this.C=[];this.G=[];this.D=new Map;this.Sb=new Map;this.Y=new Map;this.Nb=NaN;this.Ab=this.bb=this.Kb=null;this.Hb=new g.Iv(function(){X5a(d,d.Nb,d.Kb||void 0)});
this.events=new g.YJ(this);this.Jb=15E3;this.Z=new g.Iv(function(){d.Ca=!0;var e=d.ea,f=d.Jb;e.ma("sdai",{aftimeout:f});e.Rd(new RJ("ad.fetchtimeout",{timeout:f}));Y5a(d);d.ZE(!1)},this.Jb);
this.Ca=!1;this.K=new Map;this.rb=[];this.ra=null;this.je=new Set;this.Ha=[];this.vc=[];this.zd=[];this.Jd=[];this.j=void 0;this.Wa=0;this.Sa=!0;this.qa=!1;this.Ma=[];this.ud=new Set;this.Nd=new Set;this.ge=new Set;this.lm=0;this.gb=new Set;this.Qc=0;this.Fn=this.Dc=!1;this.Wb=this.N="";this.wd={opb:function(){return d.B},
Apb:function(){return d.C},
ppb:function(){return d.D},
i8:function(e){d.onCueRangeEnter(d.B.get(e))},
ipb:function(e){d.onCueRangeExit(d.B.get(e))},
trb:function(e,f){d.B.set(e,f)},
vrb:function(e){d.Wb=e},
EE:function(){return d.EE()}};
this.ea.getPlayerType();Z5a(this.ea,this);this.Va=this.W.Bc();g.N(this,this.Hb);g.N(this,this.events);g.N(this,this.Z);this.events.T(this.api,g.dJ("serverstitchedcuerange"),this.onCueRangeEnter);this.events.T(this.api,g.eJ("serverstitchedcuerange"),this.onCueRangeExit)};
c6a=function(a,b,c,d,e,f,h,l){var m=$5a(a,f,f+e);a.Ca&&a.ea.ma("sdai",{adaftto:1});a.Fn&&a.ea.ma("sdai",{adfbk:1,enter:f,len:e,aid:l});var n=a.ea;h=void 0===h?f+e:h;f===h&&!e&&a.W.L("html5_allow_zero_duration_ads_on_timeline")&&a.ea.ma("sdai",{attl0d:1});f>h&&dY(a,{reason:"enterTime_greater_than_return",lc:f,Vd:h});var p=1E3*n.Dd();f<p&&dY(a,{reason:"enterTime_less_than_minSeekableTime",enterMs:f,minSkMs:p},a.W.L("html5_report_ssdai_timeline_error_as_fatal"));n=1E3*n.getDuration();h>n&&dY(a,{reason:"parent_return_greater_than_content_duration",
Vd:h,Xqb:n});n=null;p=g.Sb(a.G,{Vd:f},function(q,r){return q.Vd-r.Vd});
0<=p&&(n=a.G[p],n.Vd>f&&a6a(a,b.video_id||"",f,h,n));if(m&&n)for(p=0;p<a.Ha.length;p++){if(a.Ha[p].identifier===m.identifier){a.Ha.splice(p,1);break}}else if(m)return a.ea.ma("sdai",{rejectAttl:1}),l&&!Ys(a.Jd,function(q){return q===l})&&(a.ea.ma("sdai",{rejectAdBreakAttl:1}),a.Jd.push(l)),eY(a),"";
m="ss_childplayback_"+b6a++;a.W.L("html5_enable_ssap_entity_id")?(b=new g.ES(a.W,b),p=b.clientPlaybackNonce):(b.cpn||(b.cpn=g.ND(16)),p=b.cpn,b=new g.ES(a.W,b));b.md=m;c={md:m,playerType:d,durationMs:e,lc:f,Vd:h,cpn:p,videoData:b,errorCount:0,ssdaiAdsConfig:c};g.Zb(a.G,c,function(q,r){return q.lc===r.lc?q.durationMs-r.durationMs:q.lc-r.lc});
a.D.set(p,c);a.Sb.set(m,c);a.ea.ma("sdai",{attlDone:h-f,acpn:p});l?c.Zl=l:n?c.Zl=n.Zl:c.Zl=c.cpn;if(f=c.Zl)(d=a.Y.get(f))?(d.push(c),g.Ub(d,function(q,r){return q.lc-r.lc})):a.Y.set(f,[c]);
a.Z.isActive()&&(a.Ca=!1,a.Z.stop(),Y5a(a),a.ZE(!0));return m};
fY=function(a,b,c){return{ssvc:b,cpn:(null==c?void 0:c.cpn)||"",vid:(null==c?void 0:c.videoData.videoId)||"",ct:(a.ea.getCurrentTime()||0).toFixed(3),cmt:(a.ea.Vf()||0).toFixed(3)}};
hY=function(a,b,c){var d=a.qa,e=a.EE(),f=a.N;a.N="";var h=b.Ug-c.Ug;.5<Math.abs(h)&&a.ea.ma("sdai",{ttdtb:1,delta:h,cpn:e.cpn,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f});a.api.L("html5_ssdai_enable_media_end_cue_range")&&a.api.Ly();if(b.isAd&&c.isAd){e=!!f;if(b.adCpn&&c.adCpn){var l=a.D.get(b.adCpn);var m=a.D.get(c.adCpn)}e?a.ea.ma("sdai",{igtransskip:1,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f}):d6a(a,m,l,c.Ug,b.Ug,d,e)}else if(!b.isAd&&c.isAd){a.Wb=e.cpn;a.api.publish("serverstitchedvideochange");
l=fY(a,"a2c");a.ea.ma("sdai",l);a.lm=0;if(l=c.Wd)a.Wa=l.end;var n;c.adCpn&&(n=a.D.get(c.adCpn));n&&gY(a.ea,n,e,c.Ug,b.Ug,d,!!f)}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.D.get(b.adCpn));p&&(a.Wa=0,a.Wb=p.cpn,a.api.publish("serverstitchedvideochange",p.md,p.Yq),n=fY(a,"c2a",p),a.ea.ma("sdai",n),a.lm=1,gY(a.ea,e,p,c.Ug,b.Ug,d,!!f))}};
e6a=function(a,b,c){c=1E3*(b+(void 0===c?0:c));var d=g.Sb(a.G,{lc:c},function(e,f){return e.lc-f.lc});
d=0>d?-1*(d+2):d;return 0<=d&&(a=a.G[d],a.Vd>=c)?{Cn:a,Ju:b}:{Cn:void 0,Ju:b}};
iY=function(a,b){var c="";(b=f6a(a,b))&&(c=b.getId());return c?a.D.get(c):void 0};
f6a=function(a,b){if(a.api.L("html5_ssdai_enable_media_end_cue_range")&&a.Wb){var c=a.B.get(a.Wb);if(c&&c.start-200<=b&&c.end+200>=b)return c}a=g.u(a.B.values());for(c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
X5a=function(a,b,c){var d=a.Ab||a.api.Zc().getPlayerState();jY(a,!0);a.ea.seekTo(b,c);a=a.api.Zc();b=a.getPlayerState();d.isOrWillBePlaying()&&!b.isOrWillBePlaying()?a.playVideo():d.isPaused()&&!b.isPaused()&&a.pauseVideo()};
jY=function(a,b){a.Nb=NaN;a.Kb=null;a.Hb.stop();a.bb&&b&&g6a(a.bb);a.Ab=null;a.bb=null};
h6a=function(a){var b=void 0===b?-1:b;var c=void 0===c?Infinity:c;for(var d=[],e=g.u(a.G),f=e.next();!f.done;f=e.next())f=f.value,(f.lc<b||f.Vd>c)&&d.push(f);a.G=d;d=g.u(a.B.values());for(e=d.next();!e.done;e=d.next())e=e.value,e.start>=b&&e.end<=c&&(a.ea.removeCueRange(e),a.B.delete(e.getId()),a.ea.ma("sdai",{rmAdCR:1}));d=e6a(a,b/1E3);b=d.Cn;d=d.Ju;if(b&&(d=1E3*d-b.lc,e=b.lc+d,b.durationMs=d,b.Vd=e,d=a.B.get(b.cpn))){e=g.u(a.C);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start=
b.lc+b.durationMs:f.end===d.start&&(f.end=b.lc);d.start=b.lc;d.end=b.lc+b.durationMs}if(b=e6a(a,c/1E3).Cn){var h;d="playback_timelinePlaybackId_"+b.md+"_video_id_"+(null==(h=b.videoData)?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.lc+"_parentReturnTimeMs_"+b.Vd;a.iq("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
i6a=function(a){a.Ga.clear();a.eb.clear();a.La.clear();a.B.clear();a.C=[];a.G=[];a.D.clear();a.Sb.clear();a.Y.clear();a.K.clear();a.rb=[];a.ra=null;a.je.clear();a.Ha=[];a.vc=[];a.zd=[];a.Jd=[];a.Ma=[];a.ud.clear();a.Nd.clear();a.ge.clear();a.gb.clear();a.Ca=!1;a.j=void 0;a.Wa=0;a.Sa=!0;a.qa=!1;a.lm=0;a.Qc=0;a.Dc=!1;a.Fn=!1;a.N="";a.Z.isActive()&&eY(a)};
k6a=function(a,b,c,d,e,f){if(!a.Fn)if(!a.W.L("html5_ssdai_use_media_time")&&g.j6a(a,c))a.Va&&a.ea.ma("sdai",{gdu:"undec",seg:c,itag:e});else if(b=kY(a,b,c,d,f),!(a.ea.getVideoData().jo()&&(null==b?0:b.JA)))return b};
kY=function(a,b,c,d,e){var f;a.W.L("html5_ssdai_use_media_time")||(f=a.K.get(c));if(!f){if(f=lY(a,b))return f;var h=mY(a,c-1,null!=d?d:2);if(e)return a.ea.ma("sdai",{misscue:e,sq:c,type:d,prevsstate:null==h?void 0:h.sz,prevrecord:a.K.has(c-1)}),a.W.L("html5_ssdai_use_media_time")?lY(a,b-5):a.K.get(c-1);if(2===(null==h?void 0:h.sz)&&(a.ea.ma("sdai",{adnf:1,sq:c,type:d,prevrecord:a.K.has(c-1)}),!a.W.L("html5_ssdai_use_media_time")))return a.K.get(c-1)}return f};
lY=function(a,b){b+=a.St();if(a.W.L("html5_lifa_overdecorate_fix"))a:{var c=1;c=void 0===c?0:c;var d=1E3*b;a=g.u(a.G);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.Yq?1E3*e.Yq:e.lc;if(d>=e.lc-1E3*c&&d<=f+e.durationMs+1E3*c){b={Cn:e,Ju:b};break a}}b={Cn:void 0,Ju:b}}else b=e6a(a,b,1);return b.Cn};
l6a=function(a){if(a.Ma.length)for(var b=g.u(a.Ma),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);b=g.u(a.B.values());for(c=b.next();!c.done;c=b.next())a.ea.removeCueRange(c.value);b=g.u(a.C);for(c=b.next();!c.done;c=b.next())a.ea.removeCueRange(c.value);a.B.clear();a.C=[];a.Ga.clear();a.eb.clear();a.La.clear();a.j||(a.Sa=!0)};
d6a=function(a,b,c,d,e,f,h){if(b&&c){a.Wb=c.cpn;a.api.publish("serverstitchedvideochange",c.md,c.Yq);var l=fY(a,"a2a",c);a.ea.ma("sdai",l);a.lm++;gY(a.ea,b,c,d||0,e||0,!!f,!!h)}else a.ea.ma("sdai",{misspbkonadtrans:1,enter:(null==c?void 0:c.cpn)||"",exit:(null==b?void 0:b.cpn)||"",seek:f,skip:h})};
mY=function(a,b,c){if(1===c){if(a.Ga.has(b))return a.Ga.get(b)}else{if(2===c&&a.eb.has(b))return a.eb.get(b);if(3===c&&a.La.has(b))return a.La.get(b)}};
n6a=function(a,b,c,d){if(d)for(d=0;d<a.C.length;){var e=a.C[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;m6a(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.ea.removeCueRange(e);if(a.Ma.includes(e))a.onCueRangeExit(e);a.C.splice(d,1);continue}d++}else m6a(a,b,c)};
m6a=function(a,b,c){b=a.RI(b,c);c=!0;g.Zb(a.C,b,function(h,l){return h.start-l.start});
for(var d=0;d<a.C.length;){if(0<d){var e=a.C[d],f=a.C[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.ea.removeCueRange(e):c=!1;a.C.splice(d,1);continue}}d++}if(c)for(a.ea.addCueRange(b),b=a.ea.rE("serverstitchedcuerange",36E5),b=g.u(b),c=b.next();!c.done;c=b.next())a.B.delete(c.value.getId())};
nY=function(a,b,c){if(void 0===c||!c){c=g.u(a.rb);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.rb.push(new W5a(b))}};
g.j6a=function(a,b){a=g.u(a.rb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
a6a=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",Sqb:b,lc:c,Vd:d,gpb:e.md,hpb:(null==(f=e.videoData)?void 0:f.videoId)||"",dpb:e.durationMs,epb:e.lc,fpb:e.Vd};dY(a,b)};
dY=function(a,b,c){a=a.ea;a.ma("timelineerror",b);b=new RJ("dai.timelineerror",b);c?a.Mf("dai.timelineerror",1,"RETRYABLE_ERROR",QJ(b.details)):a.Rd(b)};
o6a=function(a,b){var c=[];a=a.Y.get(b);if(!a)return[];a=g.u(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
p6a=function(a,b,c){var d=0;a=a.Y.get(c);if(!a)return-1;a=g.u(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
q6a=function(a,b){var c=[];a=a.Y.get(b);if(!a)return[];a=g.u(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=null==(b=d.value.videoData)?void 0:b.videoId)&&c.push(d);return c};
r6a=function(a,b){var c=0;a=a.Y.get(b);if(!a)return 0;a=g.u(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.Vd!==b.lc&&c++;return c};
s6a=function(a,b,c){var d=!1;if(c&&(c=a.Y.get(c))){c=g.u(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Vd!==e.lc&&(e=e.cpn,b===e&&(d=!0),d&&!a.Nd.has(e)&&(a.ea.ma("sdai",{decoratedAd:e}),a.Nd.add(e)))}};
Y5a=function(a){a.Va&&a.ea.ma("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Qc)+"_isTimeout_"+a.Ca})};
$5a=function(a,b,c){if(a.Ha.length)for(var d=g.u(a.Ha),e=d.next(),f={};!e.done;f={Rz:void 0},e=d.next()){f.Rz=e.value;e=1E3*f.Rz.startSecs;var h=1E3*f.Rz.Bh+e;if(b>e&&b<h||c>e&&c<h)return Ys(a.zd,function(l){return function(m){return m.identifier===l.Rz.identifier}}(f))||(a.ea.ma("sdai",{adskip:b}),a.zd.push(f.Rz)),f.Rz}};
eY=function(a){a.Ca=!1;a.Z.isActive()&&Y5a(a);a.Z.stop();a.ZE(!1)};
v6a=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.timeline=b;this.ea=c;this.Gp=new Map;this.Ti=new Map;this.wH=new Map;this.events=new g.YJ(this);this.lm=0;this.tK=this.Wb="";this.qG=[];this.qk=new Set;this.QK=new g.Iv(function(){d.api.playVideo(1);d.api.ma("ssap",{nve:""+d.Wb});t6a(d,4)},3E4);
this.Ey="";this.jH=new Set;this.L1=!0;this.sM=new Map;this.xL=new Set;this.WX=!1;this.Gw="";this.rZ=!1;this.yZ="";this.wd={Cpb:function(){return d.Ti},
i8:function(e){if(e=d.Ti.get(e))d.onCueRangeEnter(e)}};
this.ea.getPlayerType();u6a(this);this.events.T(this.api,g.dJ("ssap"),this.onCueRangeEnter);this.events.T(this.api,"internalAbandon",this.ZF);g.N(this,this.QK);this.kT=this.api.U().L("html5_enable_ssap_gapful_switch");this.Pda=g.xI(a.U().experiments,"html5_ssap_segment_end_media_threshold_ms")||200};
w6a=function(a,b,c,d){for(var e=a.ea.kA(),f=g.u(d),h=f.next();!h.done;h=f.next()){var l=h.value;l.C||((h=ZX(l),l=l.getVideoData(),h&&l&&e.QI(h,l,2),l)?h||(l=void 0,a.api.ma("ssap",{macac:h,maccc:null==(l=a.timeline.j)?void 0:ZX(l)})):(l=void 0,a.api.ma("ssap",{mvac:h,mvcc:null==(l=a.timeline.j)?void 0:ZX(l)})))}return $X(a.timeline,b,c,d)};
y6a=function(a){var b=a.ea.Vf();return(b=oY(a,b))?x6a(a,b.Fi()/1E3):!1};
x6a=function(a,b){if(a.qk.has(a.Wb))return!1;var c=0,d=0,e=aY(a.timeline,a.Wb);if(null==e?0:e.length)for(e=g.u(e),e=e.next();!e.done;e=e.next()){d=e.value;c=d.Xe();d=d.Fi();break}if(0<d&&d>1E3*b+a.Pda)return!1;if(d=z6a(a,c)){b=!1;c=void 0;d=g.u(d.segments);for(e=d.next();!e.done;e=d.next()){e=e.value;if(b){c=e;break}ZX(e)===a.Wb&&(b=!0)}d=void 0;if(c)d=ZX(c);else if(b){var f;d=null==(f=a.timeline.j)?void 0:ZX(f)}if(d)return a.finishSegmentByCpn(a.Wb,d,2,void 0),!0;var h;a.api.ma("ssap",{mfnc:1,mfncc:null==
(h=a.timeline.j)?void 0:ZX(h)})}return!1};
pY=function(a,b){a=aY(a.timeline,b);return(null==a?0:a.length)?a[0].Xe():0};
qY=function(a,b){if(!a.timeline.j)return{clipId:"",wl:0};if(b=oY(a,b,!1))return{clipId:ZX(b)||"",wl:b.Xe()};a.api.ma("ssap",{mci:1});return{clipId:"",wl:0}};
rY=function(a){var b=a.timeline.j;if(!b)return 0;a=0;if(0===b.j.size)return(b.Fi()-b.Xe())/1E3;b=b.j.values();b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,a+=(d.Fi()-d.Xe())/1E3}return a};
B6a=function(a,b){b*=1E3;return a.api.L("html5_ssap_get_current_time_refactor")?(a=A6a(a,b))?a.Xe():0:(a=oY(a,b))?a.Xe():0};
C6a=function(a,b){return(a=oY(a,1E3*b))?(a.Fi()-a.Xe())/1E3:0};
A6a=function(a,b){if(a=aY(a.timeline,a.Wb)){a=g.u(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.Xe()<=b&&c.Fi()>=b)return c}};
D6a=function(a){var b=a.ea.getVideoData();a.Wb&&(a=a.Gp.get(a.Wb))&&(b=a);return b};
z6a=function(a,b,c){c=void 0===c?!1:c;var d=a.timeline.j;if(d){d=d.j;var e=Array.from(d.keys());g.Ub(e);b=g.Sb(e,b);b=d.get(e[0>b?-1*(b+2):b]);if(a.api.L("html5_ssap_ignore_non_video_only_child_timeline")&&!c&&b){c=g.u(b);for(b=c.next();!b.done;b=c.next())if(b=b.value,b.Xe()!==b.Fi())return b;return a.timeline}return b&&0<b.length?b[b.length-1]:void 0}};
oY=function(a,b,c){c=void 0===c?!1:c;var d=z6a(a,b,c);if(d){var e=d.segments;if(e.length){for(var f=g.u(e),h=f.next();!h.done;h=f.next())if(h=h.value,h.Xe()<=b&&h.Fi()>b)return h;if(a.api.L("html5_ssap_ignore_non_video_only_child_timeline")&&c&&d.Xe()===d.Fi())return e[0]}}else a.api.ma("ssap",{ctnf:1})};
t6a=function(a,b){var c;if(a.Ey)for(c=a.qG.shift();c&&c!==a.Ey;)c=a.qG.shift();else c=a.qG.shift();if(c)return a.qk.has(c)?E6a(a,c):3===b&&(a.QK.stop(),a.api.playVideo(1)),a.wH.set(a.Wb,b),a.api.ma("ssap",{onvftn:1}),F6a(a,c),!1;a.api.ma("ssap",{onvftv:1});a.QK.stop();return!0};
E6a=function(a,b){b=aY(a.timeline,b);if(null==b?0:b.length)a.api.pauseVideo(),a.QK.start(b[0].yK)};
F6a=function(a,b){var c=a.ea.getVideoData(),d=c.clientPlaybackNonce,e=a.Wb,f=!1;if(""===e)e=d,f=!0;else if(void 0===e){var h=a.ea.kA().Mg;h&&a.timeline.B.has(h)&&(e=h);a.api.ma("ssap",{mcc:e+";"+b});a.ea.Rd(new RJ("ssap.timelineerror",{e:"missing_current_cpn",pcpn:e,ccpn:b}))}if(e===b)f&&c&&G6a(a,c,f);else{h=a.wH.get(e);if(!f&&3!==h){var l=a.api.Ly(a.Wb);a.api.ma("ssap",{nmec:l,cpc:a.Wb,ec:b})}a.Wb=b;H6a(a);b=aY(a.timeline,a.Wb);if(null==b?0:b.length){l=b[0];b=l.getType();e!==d&&(a.tK=e,c=a.Gp.get(e));
h?a.wH.delete(e):h=f?1:2;a:{var m=a.Wb;if(!a.Ti.has(m))for(var n=g.u(a.Ti),p=n.next();!p.done;p=n.next()){var q=g.u(p.value);p=q.next().value;q=q.next().value;if(q.getId().includes(m)){m=p;break a}}}p=m;n=a.api.U().L("html5_ssap_insert_su_before_nonvideo")&&p!==a.Wb;q=a.ea.kA();if(q.Mg!==p){var r=q.wc(q.Mg);m=q.wc(p);q.Mg=p;m!==r&&(r.qoe&&(p=r.qoe,p.provider.W.Bc()&&p.ma("ssap",{qoesus:"1",vid:p.provider.videoData.videoId}),n&&(n=g.KM(p.provider),I6a(p,n,"SU")),isNaN(p.K)||g.SA(p.K)),m.resume())}n=
a.ea.getCurrentTime();m=Math.max(0,n-pY(a,e)/1E3);n=Math.max(0,n-pY(a,a.Wb)/1E3);p=3===h;l=l.getVideoData();q=a.ea.kA();r=e;var t=a.Wb,v=a.ea.getPlayerState();if(r!==t){var w=q.wc(r),A=q.wc(t),C,F=r===(null==(C=w.getVideoData())?void 0:C.clientPlaybackNonce),H;C=t===(null==(H=A.getVideoData())?void 0:H.clientPlaybackNonce);var M;H=F?(null==(M=w.getVideoData())?void 0:M.videoId)||"":"nvd";var L;M=C?(null==(L=A.getVideoData())?void 0:L.videoId)||"":"nvd";F&&null!=(L=w.qoe)&&(sY(L,4,p?4:0,t,M,m),L.reportStats());
C&&(tY(A),null!=(L=A.qoe)&&(sY(L,4,p?5:1,r,H,n),L.reportStats()),J6a(A,new g.LF(v,A.De)),K6a(A));L6a(q,r)}var R;u_a(e,a.Wb,d,(0,g.wC)(),l,null!=(R=a.sM.get(e))?R:(0,g.wC)(),c);a.sM.delete(e);f?c=void 0:c||a.api.ma("ssap",{pvdm:e+";"+a.Wb,pvdmc:a.Wb===d?"1":"0"});a.api.ma("ssap",{tpac:e+";"+a.Wb,tpcc:d,tpv:(null==l?0:l.ue())?"1":"0"},!1,1);a.api.publish("videodatachange","newdata",l,b,c,h);a.qk.delete(e);a.Ey="";l&&1===b?G6a(a,l):a.ea.ma("ssap",{nis:a.Wb});2===b?a.lm++:a.lm=0}}};
G6a=function(a,b,c){c=void 0===c?!1:c;if(b.startSeconds&&a.L1){var d=b.startSeconds;b=aY(a.timeline,b.clientPlaybackNonce);if(null==b?0:b.length)d+=b[0].Xe()/1E3,a.api.L("htm5_ssap_ignore_initial_seek_if_too_big")&&d>=a.vP()||(a.ea.seekTo(d,{sT:!0}),a.L1=!1,a.ea.ma("ssap",{is:a.Wb,co:c?"1":"0",tse:d.toFixed()}))}};
M6a=function(a,b,c){b=aY(a.timeline,b);if(null==b?0:b.length)if(b=z6a(a,b[0].Xe())){b=g.u(b.segments);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(ZX(d)===c)break;if(d=ZX(d))a.Ti.delete(d),(d=a.Ti.get(d))&&a.ea.removeCueRange(d)}}};
N6a=function(a,b,c){oY(a,b)||a.ea.ma("ssap",{ilgsk:b.toFixed(),mep:c?"1":"0",tl:uY(a)})};
H6a=function(a){var b=a.Wb,c=a.Gp.get(b)||a.ea.getVideoData();c&&(a=a.ea.getCurrentTime()-pY(a,b)/1E3,c.Ck=0<a?a:0)};
O6a=function(a,b){b=b||a.Wb;var c=a.Gp.get(b);return c?c.Ck:b!==a.ea.getVideoData().clientPlaybackNonce?0:a.ea.getVideoData().Ck};
uY=function(a){var b=a.Wb;b||(b=a.ea.getVideoData().clientPlaybackNonce);var c,d,e=Array.from(null!=(d=null==(c=a.timeline.j)?void 0:c.j.values())?d:[]);c=[];if(null==e?0:e.length)for(d=g.u(e),e=d.next();!e.done;e=d.next())if(e=e.value,e.length&&e[0]&&(e=e[0].segments,e.length)){e=g.u(e);for(var f=e.next();!f.done;f=e.next()){var h=f.value;f="st."+h.Xe()+";";f+="et."+h.Fi()+";";var l=ZX(h);l&&(f+="cpn."+l+";",f+="a."+(b===l?1:0)+";");if(h=h.getVideoData())l=void 0,f+="vid."+(null!=(l=h.videoId)?l:
"nvd");c.push(f)}}return(c.length?c.join(","):"empty."+b)+";cpcpn."+a.Mp()};
u6a=function(a){a.ea.GG(Array.from(a.Ti.values()));a.Ti.clear()};
Q6a=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.W=b;this.j=c;this.K=new Map;this.B=[];this.C=this.N=null;this.qa=NaN;this.G=this.D=this.Y=null;this.Z=new g.Iv(function(){P6a(d,d.qa,d.Y||void 0)});
this.ra=[];this.Ca=new g.Iv(function(){var e=d.ra.pop();if(e){var f=e.md,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.ra.length&&g.Jv(d.Ca,4500))}});
this.events=new g.YJ(this);c.getPlayerType();g.N(this,this.Z);g.N(this,this.Ca);g.N(this,this.events);this.events.T(this.api,g.dJ("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.vk)};
U6a=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 vY(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.Dd();if(e<n)return vY(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.Mc(),vY(a,m,h,l),"";n=null;for(var p=g.u(a.B),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.lc&&e<q.Vd)return vY(a,"overlappingEnter",h,l),"";if(f<=q.Vd&&f>q.lc)return vY(a,"overlappingReturn",h,l),"";if(f===q.lc)return vY(a,"outOfOrder",h,l),"";e===q.Vd&&(n=q)}h="cs_childplayback_"+R6a++;l={Wd:wY(d,!0),cn:Infinity,target:null};var r={md:h,playerVars:b,playerType:c,durationMs:d,lc:e,Vd:f,Ht:l};a.B=a.B.concat(r).sort(function(w,A){return w.lc-A.lc});
n?S6a(a,n,{Wd:wY(n.durationMs,!0),cn:n.Ht.cn,target:r}):(b={Wd:wY(e,!1),cn:e,target:r},a.K.set(b.Wd,b),m.addCueRange(b.Wd));b=!0;if(a.j===a.api.Zc()&&(m=1E3*m.getCurrentTime(),m>=r.lc&&m<r.Vd)){var t=a.api.Zc().getPlayerState(),v=m-r.lc;Of(function(){T6a(a,r,v/1E3,{},t)});
b=!1}b&&(a.ra.unshift(r),g.Jv(a.Ca,0));return h};
wY=function(a,b){return new g.cJ(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
V6a=function(a,b,c,d){a.C=d;a.api.hJ(a.j,c,b)};
W6a=function(a,b,c,d){a.C=d;d=b.md;var e=b.playerVars,f=b.playerType;a.N=b;e&&(a.W.L("html5_enable_ssap_entity_id")&&(e.cached_load=!0),a.api.enqueueVideoByPlayerVars(e,f,c,d))};
S6a=function(a,b,c){var d=b.Ht;b.Ht=c;xY(a,b)&&(c=a.api.Zc(),d.Wd===a.C&&yY(a),c.removeCueRange(d.Wd),c.addCueRange(b.Ht.Wd))};
yY=function(a){a.N=null;a.C=null;a.api.po()||a.api.clearQueue()};
X6a=function(a,b){xY(a,b)||vY(a,"childPlaybackIsNotPresenting");return b.Vd===b.lc+b.durationMs?(a=a.api.Zc(),b.lc+1E3*a.getCurrentTime()):b.Vd};
Y6a=function(a,b){var c=0;a=g.u(a.B);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.lc/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{Cn:d,Ju:b-e};c=f-d.Vd/1E3}return{Cn:null,Ju:b-c}};
P6a=function(a,b,c){c=void 0===c?{}:c;var d=a.G||a.api.Zc().getPlayerState();zY(a,!0);b=isFinite(b)?b:a.j.Nn();var e=Y6a(a,b);b=e.Cn;e=e.Ju;var f=b&&!xY(a,b)||!b&&a.j!==a.api.Zc(),h=1E3*e;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||yY(a);b?T6a(a,b,e,c,d):Z6a(a,e,c,d)};
Z6a=function(a,b,c,d){var e=a.j,f=a.api.Zc();e!==f&&a.api.py();e.seekTo(b,Object.assign({},{yd:"application_timelinemanager"},c));$6a(a,d)};
T6a=function(a,b,c,d,e){var f=xY(a,b);if(!f){b.playerVars.prefer_gapless=!0;a.W.L("html5_enable_ssap_entity_id")&&(b.playerVars.cached_load=!0);var h=new g.ES(a.W,b.playerVars);h.md=b.md;a.api.Cu(h,b.playerType)}h=a.api.Zc();f||h.addCueRange(b.Ht.Wd);h.seekTo(c,Object.assign({},{yd:"application_timelinemanager"},d));$6a(a,e)};
$6a=function(a,b){a=a.api.Zc();var c=a.getPlayerState();b.isOrWillBePlaying()&&!c.isOrWillBePlaying()?a.playVideo():b.isPaused()&&!c.isPaused()&&a.pauseVideo()};
zY=function(a,b){a.qa=NaN;a.Y=null;a.Z.stop();a.D&&b&&g6a(a.D);a.G=null;a.D=null};
xY=function(a,b){a=a.api.Zc();return!!a&&a.getVideoData().md===b.md};
a7a=function(a){var b=a.B.find(function(e){return xY(a,e)});
if(b){var c=a.api.Zc();yY(a);var d=new g.LK(8);b=X6a(a,b)/1E3;Z6a(a,b,{},d);c.ma("forceParentTransition",{childPlayback:1});a.j.ma("forceParentTransition",{parentPlayback:1})}};
c7a=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.u(a.K),h=f.next();!h.done;h=f.next()){var l=g.u(h.value);h=l.next().value;l=l.next().value;l.cn>=d&&l.target&&l.target.Vd<=e&&(a.j.removeCueRange(h),a.K.delete(h))}d=b;e=c;f=[];h=g.u(a.B);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.lc>=d&&l.Vd<=e){var m=a;m.N===l&&yY(m);xY(m,l)&&m.api.py()}else f.push(l);a.B=f;d=Y6a(a,b/1E3);b=d.Cn;d=d.Ju;b&&(d*=1E3,b7a(a,b,d,b.Vd===b.lc+b.durationMs?b.lc+d:b.Vd));(b=Y6a(a,c/1E3).Cn)&&
vY(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.md+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.lc+" parentReturnTimeMs="+b.Vd+"}.Child playbacks can only have duration updated not their start."))};
b7a=function(a,b,c,d){b.durationMs=c;b.Vd=d;d={Wd:wY(c,!0),cn:c,target:null};S6a(a,b,d);xY(a,b)&&1E3*a.api.Zc().getCurrentTime()>c&&(b=X6a(a,b)/1E3,c=a.api.Zc().getPlayerState(),Z6a(a,b,{},c))};
vY=function(a,b,c,d){a.j.ma("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
e7a=function(a){a&&"web"!==a&&d7a.includes(a)};
CY=function(a,b){g.I.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.j=new g.Iv(function(){AY(c);BY(c)});
g.N(this,this.j)};
f7a=function(a){AY(a);return a.data.map(function(b){return b.value})};
AY=function(a){var b=(0,g.wC)();a.data.forEach(function(c){c.expire<b&&DY(a,c,!0)});
a.data=g.Ot(a.data,function(c){return!(c.expire<b)})};
DY=function(a,b,c){c&&a.B&&a.B(b.value)};
BY=function(a){a.j.stop();var b=Infinity;for(var c=g.u(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))};
EY=function(){g.I.call(this);this.j=new CY(5,null);g.N(this,this.j);this.B=new CY(15,null);g.N(this,this.B)};
g7a=function(a,b){return b?!!a.j.get(b):!1};
h7a=function(a,b){a.dataset.version=b};
k7a=function(a){g.W.call(this,{I:"div",Ka:["html5-video-player"],X:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},V:[{I:"div",S:g.FY.VIDEO_CONTAINER,X:{"data-layer":"0"}}]});var b=this;this.app=a;this.Nz=this.Fa(g.FY.VIDEO_CONTAINER);this.HB=new g.Fs(0,0,0,0);this.Fc=null;this.DL=new g.Fs(0,0,0,0);this.MP=this.XQ=this.WQ=NaN;this.bK=this.AL=this.mS=this.aX=!1;this.zO=NaN;this.CQ=!1;this.JF=null;this.wR=function(){b.element.focus({preventScroll:!0})};
this.hL=function(){b.app.Ua.publish("playerUnderlayVisibilityChange","visible");b.Fc.classList.remove(g.FY.VIDEO_CONTAINER_TRANSITIONING);b.Fc.removeEventListener(OYa,b.hL);b.Fc.removeEventListener("transitioncancel",b.hL)};
var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,h,l){c.apply(b.element,[f,h,l])};
this.removeEventListener=function(f,h,l){d.apply(b.element,[f,h,l])};
var e=a.U();e.transparentBackground&&this.Zs("ytp-transparent");"0"===e.controlsType&&this.Zs("ytp-hide-controls");g.Qv(this.element,"ytp-exp-bottom-control-flexbox");g.Qv(this.element,"ytp-modern-caption");e.L("enable_new_paid_product_placement")&&!g.TR(e)&&g.Qv(this.element,"ytp-exp-ppp-update");e.L("html5_enable_ssap")&&g.Qv(this.element,"ytp-ssap");e.L("enable_cairo_refresh_web")&&g.Qv(this.element,"ytp-cairo-refresh");e.L("enable_cairo_refresh_signature_moments_web")&&g.Qv(this.element,"ytp-cairo-refresh-signature-moments");
h7a(this.element,i7a(a));this.K1=!1;this.uE=new g.Ke(NaN,NaN);j7a(this);this.T(a.Ua,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
j7a=function(a){function b(){a.Fc&&GY(a);HY(a)!==a.CQ&&a.resize()}
function c(h,l){a.Ut(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.DL=new g.Fs(0,0,0,0);a.HB=new g.Fs(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);a.addOnDisposeCallback(function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
m7a=function(a){var b=g.HT(a.app),c=b=b?b.getVideoData():null;if(null==b?0:g.sT(b))c=a.app.Ua.getVideoData();if(c){if(g.hT(c)||g.iT(c)||g.jT(c))return 16/9;if(WWa(c)&&c.C.j)return a=c.C.videoInfos[0].video,l7a(a.width,a.height)}return(a=a.Fc)?l7a(a.videoWidth,a.videoHeight):16/9};
n7a=function(a,b,c,d){var e=c,f=l7a(b.width,b.height);a.aX?e=c<f?Infinity:0:isNaN(a.MP)?isNaN(a.XQ)||(e=a.XQ):e=a.MP;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};
l7a=function(a,b){return 1>Math.abs(o7a*b-a)||1>Math.abs(o7a/a-b)?o7a:a/b};
HY=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.HT(a.app);if(!b||b.Un())return!1;a=a.app.Ua.getPlayerStateObject();b=!g.MF(a,2)||b&&b.getVideoData().Y;var c=g.MF(a,1024);return a&&b&&!c&&!a.isCued()};
GY=function(a){var b="3"===a.app.U().controlsType&&!a.bK&&HY(a)&&!a.app.jB||!1;a.Fc.controls=b;a.Fc.tabIndex=b?0:-1;b?a.Fc.removeEventListener("focus",a.wR):a.Fc.addEventListener("focus",a.wR)};
p7a=function(a){var b=a.Vh(),c=1,d=!1,e=n7a(a,b,a.getVideoAspectRatio()),f=a.app.U(),h=f.L("enable_desktop_player_underlay"),l=bra(),m=g.xI(f.experiments,"player_underlay_min_player_width");m=h&&a.mS&&a.getPlayerSize().width>m;if(HY(a)){var n=m7a(a);var p=isNaN(n)||g.NC||IY&&g.rC||m;MC&&!g.Oc(601)?n=e.aspectRatio:p=p||"3"===f.controlsType;p?m?(p=f.L("place_shrunken_video_on_left_of_player"),n=.02*a.getPlayerSize().width,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.Fs(p,0,b.width,b.height)):p=new g.Fs(0,
0,b.width,b.height):(c=e.aspectRatio/n,p=new g.Fs((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.rC&&(n=p.width-b.height*n,0<n&&(p.width+=n,p.height+=n)));g.Uv(a.element,"ytp-fit-cover-video",1>Math.max(p.width-e.width,p.height-e.height));if(l||a.K1)a.Fc.style.display="";a.CQ=!0}else{p=-b.height;MC?p*=window.devicePixelRatio:g.UR&&(p-=window.screen.height);p=new g.Fs(0,p,b.width,b.height);if(l||a.K1)a.Fc.style.display="none";a.CQ=!1}Gs(a.DL,p)||(a.DL=p,g.HR(f)?(a.Fc.style.setProperty("width",
p.width+"px","important"),a.Fc.style.setProperty("height",p.height+"px","important")):g.Ts(a.Fc,p.getSize()),d=new g.Ee(p.left,p.top),g.Ps(a.Fc,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Fs((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Gs(a.HB,b)||(a.HB=b,d=!0);g.Is(a.Fc,"transform",1===c?"":"scaleX("+c+")");h&&m!==a.AL&&(m&&(a.Fc.addEventListener(OYa,a.hL),a.Fc.addEventListener("transitioncancel",a.hL),a.Fc.classList.add(g.FY.VIDEO_CONTAINER_TRANSITIONING)),a.AL=m,a.app.Ua.publish("playerUnderlayVisibilityChange",
a.AL?"transitioning":"hidden"));return d};
q7a=function(){this.csn=g.xE();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.j=new Set;this.B=new Set};
r7a=function(a){if(a.csn!==g.xE())if("UNDEFINED_CSN"===a.csn)a.csn=g.xE();else{var b=g.xE(),c=g.wE();if(b&&c){a.csn=b;for(var d=g.u(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&b&&c&&(g.TA("combine_ve_grafts")?RO(PO(),e,c):g.BA(g.KE)(void 0,b,c,e))}if(b)for(a=g.u(a.j),c=a.next();!c.done;c=a.next())(c=c.value.visualElement)&&c.isClientVe()&&g.OE(b,c)}};
s7a=function(a,b){this.Nc=a;this.policy=b;this.playbackRate=1};
t7a=function(a,b){var c=Math.min(2.5,vR(a.Nc));a=JY(a);return b-c*a};
v7a=function(a,b,c,d,e){e=void 0===e?!1:e;if(a.policy.jp)return Math.ceil(a.policy.jp*b);a.policy.Kl&&(d=Math.abs(d));d/=a.playbackRate;var f=1/wR(a.Nc);c=Math.max(.9*(d-3),vR(a.Nc)+2048*f)/f*.8/(b+c);c=Math.min(c,d);0<a.policy.uj&&e&&(c=Math.max(c,a.policy.uj));return u7a(a,c,b)};
u7a=function(a,b,c){return Math.ceil(Math.max(Math.max(a.policy.Dk,a.policy.Fv*c),Math.min(Math.min(a.policy.Ma,31*c),Math.ceil(b*c))))||a.policy.Dk};
w7a=function(a,b,c){c=v7a(a,b.j.info.sb,c.j.info.sb,0);var d=vR(a.Nc)+c/wR(a.Nc);return Math.max(d,d+a.policy.zD-c/b.j.info.sb)};
JY=function(a){return wR(a.Nc,!a.policy.Kn,a.policy.Ev)};
KY=function(a){return JY(a)/a.playbackRate};
x7a=function(a,b,c){var d=a.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],e=a.policy.playbackStartPolicy.startMinReadaheadPolicy||[];a=Infinity;b=g.u(b&&0<d.length?d:e);for(d=b.next();!d.done;d=b.next())d=d.value,e=d.minReadaheadMs||0,c<(d.minBandwidthBytesPerSec||0)||a>e&&(a=e);return Infinity>a?a/1E3:a};
y7a=function(a,b,c,d){var e=this;this.N=a;this.manifest=b;this.policy=c;this.logger=d;this.yB=[];this.qd=[];this.C=-1;this.Rb=null;this.G=this.timestampOffset=0;this.Wc=null;this.j=100;this.wd={wP:function(f){return e.wP(f)}};
this.D=b.dc?0:1;0<=this.policy.Sp&&(this.j=this.policy.Sp)};
C7a=function(a,b,c,d,e){if(!e.info.Te){if(0===c.length)c.push(e);else{var f;(a=null==(f=c.pop())?void 0:DQ(f,e))?c.push(a):c.push(e)}return d}var h;(c=null==(h=c.pop())?void 0:DQ(h,e))||(c=e);if(a.policy.Kb&&c.info.Tb)return a.logger&&a.logger({incompleteSegment:c.info.Tc()}),d;h=a.wP(c);d=h.formatId;e=h.Pa;f=h.clipId;c=h.Y7;h=h.startTimeMs;!a.policy.Pf&&a.policy.j&&a.Wc&&(f=pY(a.Wc,f),h+=f);d={formatId:d,startTimeMs:h,durationMs:c,Ym:e,Ui:e,Vx:h,Ux:c};e=z7a(b,d.startTimeMs);(c=0<=e?b[e]:null)&&A7a(a,
c,d)?d=c:(e+=1,b.splice(e,0,d));c=0;for(f=e+1;f<b.length;f++){h=a;var l=b[f],m=d,n=l.startTimeMs+l.durationMs,p=m.startTimeMs+m.durationMs;p>=n+h.j?h=!0:p+h.j<l.startTimeMs?h=!1:B7a(h,l.formatId,m.formatId)?(m.durationMs=n-m.startTimeMs,m.Ux=m.durationMs,m.Ui=l.Ui,h=!0):(l.startTimeMs=p,l.Vx=p,l.Ym=m.Ui+1,h=!1);if(!h)break;c++}c&&b.splice(e+1,c);return e};
z7a=function(a,b){a=g.Sb(a,{startTimeMs:b},function(c,d){return c.startTimeMs-d.startTimeMs});
return 0<=a?a:-a-2};
D7a=function(a,b){if(a.Rb){var c=a.Rb.He();if(0!==c.length){if(a.policy.iz&&a.B&&b){var d=a.B,e=d.info.C;!sK(c,e)&&0<d.info.K&&5E3>(0,g.wC)()-a.G&&(a.logger&&a.logger({dend:d.info.Tc()}),c=BEa(c,e,e+.01))}d=[];for(var f=e=0;e<c.length&&f<a.qd.length;){var h=c.start(e),l=c.end(e),m=a.qd[f].startTimeMs/1E3,n=(a.qd[f].startTimeMs+a.qd[f].durationMs)/1E3;if(m<=l&&n>=h){var p=0;if(a.Wc){var q=qY(a.Wc,1E3*m);q&&(p=q.wl/1E3)}q=Object.assign({},a.qd[f]);var r=a.qd[f].formatId;r=a.manifest.N.get(r.itag+";"+
(r.lmt||0)+";"+r.xtags);h=Math.max(m,h);var t=r.index.Hi(h+a.j/1E3-p),v=r.index.getStartTime(t)+p,w=t+ +(Math.abs(v-h)>a.j/1E3),A=w+a.D;w=1E3*(r.index.getStartTime(w)+p);if(a.policy.Nk){var C=Math.abs(h-v)>a.j/1E3,F=r.index.HE(t)+p;m=v>=m&&F<=n;C&&m&&d.push({formatId:q.formatId,startTimeMs:1E3*v,durationMs:w-1E3*v,Ym:t,Ui:t,Vx:1E3*v,Ux:w-1E3*v,rL:{Sg:1E3*h,Vz:w-1E3*h,Ks:1E3}})}a.policy.Nk||!a.policy.Hv||f!==a.C||b?(q.Ym=A,q.startTimeMs=w):(a.logger&&a.logger({pEvict:"1",og:q.startTimeMs,adj:1E3*v}),
q.Ym=t+a.D,q.startTimeMs=1E3*v);q.Vx=q.startTimeMs;m=void 0;h=(null==(m=a.B)?void 0:m.info.duration)||11;f===a.C&&l<n&&n-l<=1.01*h&&(l=n);m=Math.min(n,l);h=r.index.Hi(m-a.j/1E3-p);t=a.policy;(t.j||t.Da.L("html5_sabr_include_tail_media_chunk"))&&r.index.Vn(h+1)&&r.index.HE(h+1)+p<=m&&(h+=1);t=r.index.HE(h)+p;h-=+(Math.abs(t-m)>a.j/1E3);m=h+a.D;p=1E3*(r.index.HE(h)+p);q.Ui=m;q.durationMs=p-q.startTimeMs;q.Ux=q.durationMs;q.Ym<=q.Ui&&d.push(q)}n<l?f+=1:e+=1}a.qd=d}}};
E7a=function(a){var b=[],c=[].concat(g.qa(a.yB));a.qd.forEach(function(h){b.push(Object.assign({},h))});
for(var d=a.C,e=g.u(a.N.oY()),f=e.next();!f.done;f=e.next())d=C7a(a,b,c,d,f.value);b.forEach(function(h){h.startTimeMs&&(h.startTimeMs+=1E3*a.timestampOffset,h.Vx&&(h.Vx+=1E3*a.timestampOffset))});
return{qd:b,yB:c}};
A7a=function(a,b,c){var d=b.startTimeMs+b.durationMs,e=c.startTimeMs+c.durationMs;if(c.startTimeMs-d>a.j)return!1;if(B7a(a,b.formatId,c.formatId))return b.durationMs=Math.max(d,e)-b.startTimeMs,b.Ux=b.durationMs,b.Ui=Math.max(b.Ui,c.Ui),!0;if(Math.abs(b.startTimeMs-c.startTimeMs)<=a.j){if(b.durationMs>c.durationMs+a.j){a=b.formatId;var f=b.Ym,h=b.Ui;b.formatId=c.formatId;b.durationMs=c.durationMs;b.Ym=c.Ym;b.Ux=c.durationMs;b.Ui=c.Ui;c.formatId=a;c.startTimeMs=e;c.Vx=e;c.durationMs=d-e;c.Ux=c.durationMs;
c.Ym=f;c.Ui=h;return!1}b.formatId=c.formatId;return!0}d>c.startTimeMs&&(b.durationMs=c.startTimeMs-b.startTimeMs,b.Ux=b.durationMs);return!1};
B7a=function(a,b,c){return b.itag!==c.itag||b.xtags!==c.xtags?!1:a.manifest.dc||b.lmt===c.lmt};
F7a=function(a,b,c){if(a.logger){for(var d=[],e=0;e<b.length;e++){var f=b[e],h=void 0;if(null==(h=f.rL)?0:h.Sg){var l=h=void 0,m=void 0;d.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_st."+(f.startTimeMs+"_psst.")+((null==(l=f.rL)?void 0:l.Sg)+"_psd.")+(null==(m=f.rL)?void 0:m.Vz))}h=void 0;d.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_st."+(f.startTimeMs+"_e."+(f.startTimeMs+f.durationMs)+"_d."+f.durationMs)+("_sn."+f.Ym)+("_en."+f.Ui))}a.logger({p:""+c,br:d.join(";")})}};
G7a=function(a){a.qd=[];a.yB=[];a.C=-1;a.B=void 0};
H7a=function(a,b){if(a.Rb){var c=a.Rb.He();if(b=tK(c,b))a.K=b}};
LY=function(a,b,c,d,e){this.ya=a;this.manifest=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.j=0;this.G=!1;this.B=this.manifest.isManifestless&&!this.manifest.Yd;this.D=null;this.C=0};
I7a=function(a,b,c){if(!a.policy.G){a=b.j.index;var d=b.B.Pa;a.Vn(d)||c&&c.Pa===d?(b.G=!a.Vn(d),b.qa=!a.Vn(d)):(b.G=!0,b.qa=!0)}};
K7a=function(a,b,c,d,e){var f=a.policy.Kb?e:void 0;if(!b.j.jg()){if(!(f=0===c||!!b.C.length&&b.C[0]instanceof MY))a:{if(b.C.length&&(f=b.C[0],f instanceof NY&&f.rh&&f.oi)){f=!0;break a}f=!1}f||a.policy.C||OY(b);return c}var h=PY(b,c);if(!isNaN(h))return h;if(a.ya.yQ(1E3*c))return c;e.vF||(b.Wk(),a.ya.PG(!0));return d&&(a=tK(d.He(),c),!isNaN(a))?(QY(b,a+J7a,f),c):QY(b,c,f)};
N7a=function(a,b,c,d){if(a.policy.G)!d||!a.B&&a.policy.gb||g.dg(function(){RY(a)});
else{if(a.isSeeking()&&a.j){var e=L7a(a,b,c);if(-1!==e){a.videoTrack.G=!1;a.audioTrack.G=!1;a.B=!0;a.C=0;g.dg(function(){a.ya.ma("seekreason",{reason:"behindMinSq",tgt:e});M7a(a,e)});
return}}c?a.videoTrack.qa=!1:a.audioTrack.qa=!1;var f=a.policy.nz||!a.B;0<=PY(a.videoTrack,a.j)&&0<=PY(a.audioTrack,a.j)&&f?((a.videoTrack.G||a.audioTrack.G)&&a.ya.ma("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.G=!1,a.audioTrack.G=!1):d&&g.dg(function(){if(a.B||!a.policy.gb)RY(a);else{var h=b.startTime,l=b.duration;if(!a.policy.G){var m=c?a.videoTrack.G:a.audioTrack.G,n=-1!==a.videoTrack.K&&-1!==a.audioTrack.K,p=a.j>=h&&a.j<h+l+.1,q=!a.videoTrack.qa&&!a.audioTrack.qa,r=a.policy.oz&&
PY(a.videoTrack,h)&&PY(a.audioTrack,h);m&&n&&q&&(p||r?((c?a.videoTrack:a.audioTrack).G=!1,a.videoTrack.G||a.audioTrack.G||(a.ya.ma("iterativeSeeking",{status:"done",target:h,originalTime:h+a.ya.Mc(),count:a.seekCount}),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.ya.ma("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.j,actual:h,duration:l,isVideo:c}),a.seek(a.j,{})):(a.ya.ma("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.j,actual:h}),a.seekCount=0,a.videoTrack.G=
!1,a.audioTrack.G=!1,SY(a.ya,h+.1,{Zw:!0,yd:"chunkSelectorSynchronizeMedia",Zq:!0})))}}})}};
L7a=function(a,b,c){if(!a.isSeeking())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.Hi(a.j);return(c.Vn(a.manifest.cf)||b.Pa===a.manifest.cf)&&d<a.manifest.cf?a.manifest.Dd():-1};
M7a=function(a,b,c){a.B&&-1!==a.videoTrack.K&&-1!==a.audioTrack.K&&(a.B=!1,a.j=b,SY(a.ya,b+.1,{Zw:!0,yd:"chunkSelectorSynchronize",Zq:!0,seekSource:c}))};
RY=function(a){var b=-1!==a.videoTrack.K,c=-1!==a.audioTrack.K;if(!b||!c)if(b=!b&&TY(a.videoTrack),c=!c&&TY(a.audioTrack),b||c){c=b?a.videoTrack:a.audioTrack;b=b?a.audioTrack:a.videoTrack;c.K=TY(c).info.Pa;if(a.policy.G){var d;b.K=(null==(d=TY(b))?void 0:d.info.Pa)||b.K}if(-1!==b.K){var e=Math.max(b.j.index.getStartTime(b.K),c.j.index.getStartTime(c.K));MQ(a.manifest)&&432E3<Math.abs(e-MQ(a.manifest))&&QTa(a.manifest);a.C&&(e=a.C,a.C=0);g.dg(function(){a.policy.G||M7a(a,e,102)});
a.ya.ma("initManifestlessSync",{st:e,ost:e+a.ya.Mc(),a:a.audioTrack.K,v:a.videoTrack.K});a.D&&(a.D.resolve(e+.1),a.D=null);a.policy.G&&M7a(a,e,102)}}};
VY=function(a,b){var c=this;this.Fb=a;this.requestNumber=++O7a;this.j=this.now();this.qa=this.Z=NaN;this.Y=this.j;this.B=this.Nb=this.K=0;this.D=this.j;this.Sa=this.Ha=this.Va=this.Dc=this.vc=this.Ca=this.Ma=this.C=0;this.N=void 0;this.eb=0;this.G=this.isActive=!1;this.Hb=this.rb=0;this.wd={Aqb:function(){return c.Ep}};
this.Nc=b.Nc;this.snapshot=GUa(this.Nc);this.policy=this.Nc.Sa;this.lr=!!b.lr;this.Tu=b.Tu;b.dJ&&(UY||(UY=JKa("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.")),this.N=new Uint8Array(2048));var d;this.Ep=null!=(d=b.Ep)?d:!1;BUa(this.Nc)};
P7a=function(a){a.Va=Math.max(a.Va,a.K-a.vc);a.Ha=Math.max(a.Ha,a.Y-a.Dc);a.Ca=0};
WY=function(a,b,c){CUa(a.Nc,b);if(a.N){if(a.eb+20>a.N.length){var d=new Uint8Array(2*a.N.length);d.set(a.N);a.N=d}Q7a(a,Math.ceil(b)-Math.ceil(a.Y));Q7a(a,Math.max(0,Math.ceil(c/1024)-Math.ceil(a.K/1024)))}d=b-a.Y;var e=c-a.K;a.Nb=e;a.Sa=Math.max(a.Sa,e/(d+.01)*1E3);a.Y=b;a.K=c;a.Ca&&c>a.Ca&&P7a(a)};
Q7a=function(a,b){for(;31<b;)a.N[a.eb++]=UY[(b&31)+32],b>>=5;a.N[a.eb++]=UY[b]};
R7a=function(a){return a.N?g.LN(a.N.subarray(0,a.eb)):""};
S7a=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
XY=function(a,b){VY.call(this,a,b);this.Ab=this.Kb=!1;this.Ga=this.ra=Infinity;this.La=NaN;this.Jb=!1;this.bb=NaN;this.Sb=0;this.Xz=b.Xz||1;this.ZR=b.ZR||this.Xz;this.vl=b.vl;this.Pa=b.Pa;this.gh=b.gh;T7a(this);this.AS(this.j);this.Wa=(this.bb-this.j)/1E3};
U7a=function(a,b,c){a.lr||(b=Math.max(b,.01),sR(a.Nc,b,c,b))};
V7a=function(a,b){return b?a.lK()&&!a.policy.j?!0:2048<=b||a.policy.j&&a.G:!1};
W7a=function(a){return(a.D-a.j)/1E3};
T7a=function(a){a.La=a.j+1E3*a.snapshot.delay;a.Jb=!1};
Z7a=function(a,b){if(a.vl&&void 0!==a.Pa&&void 0!==a.gh){var c=Math,d=c.min,e=a.ra;var f=a.vl;var h=a.j;if(X7a(f,a.Pa))f=b;else{var l=0;f.lj&&(l=.2);f=h+1E3*(f.Mj+l)}a.ra=d.call(c,e,f);c=Math;d=c.min;e=a.Ga;f=a.vl;h=a.j;l=Y7a(f,a.Pa,a.gh);2!==l&&(b=l?b:h+1E3*f.Mj,f.lj&&(b+=1E3*f.Mj));a.Ga=d.call(c,e,b);a.ra<=a.j?T7a(a):(a.La=a.ra,a.Jb=!0)}};
$7a=function(a,b){if(b+1<=a.totalLength){var c=GN(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=GN(a,b++);else if(2===c)c=GN(a,b++),a=GN(a,b++),a=(c&63)+64*a;else if(3===c){c=GN(a,b++);var d=GN(a,b++);a=GN(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=GN(a,b++);d=GN(a,b++);var e=GN(a,b++);a=GN(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),EKa(a,c,4)?a=FKa(a).getUint32(c-a.C,!0):(d=GN(a,c+2)+256*GN(a,c+3),a=GN(a,c)+256*(GN(a,c+
1)+256*d)),b+=5;return[a,b]};
YY=function(a){this.Fb=a;this.j=new BN};
ZY=function(a,b){this.info=a;this.callback=b;this.state=1;this.AB=this.aQ=!1;this.cg=null};
a8a=function(a){return g.as(a.info.ib,function(b){return 3===b.type})};
b8a=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.Fb=c;this.status=0;this.j=new BN;this.B=0;this.Na=this.D=this.C=!1;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.u(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.xhr.setRequestHeader(c,a[c]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return e.sB()};
this.xhr.onload=function(){return e.onDone()};
this.xhr.onerror=function(){return e.onError()};
this.xhr.fetch(function(f){e.j.append(f);e.B+=f.length;f=(0,g.wC)();e.Fb.hs(f,e.B)},function(){},d.body||null)};
c8a=function(a,b){this.B=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
ZVa=function(a,b){var c,d,e;return g.G(function(f){if(1==f.j){if(!b)return f.return(b);c=$Y.Hs();d=new g.wN(a.B);return g.z(f,d.encrypt(b,a.j),2)}e=f.B;$Y.yr("woe",c,Math.ceil(b.byteLength/16));return f.return(e)})};
eWa=function(a,b){var c,d,e;return g.G(function(f){if(1==f.j){if(!b)return f.return(b);c=$Y.Hs();d=new g.wN(a.B);return g.z(f,d.decrypt(b,a.j),2)}e=f.B;$Y.yr("wod",c,Math.ceil(b.byteLength/16));return f.return(e)})};
d8a=function(a,b){var c=this;this.j=a;this.Fb=b;this.loaded=this.status=0;this.error="";a=jQ(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.B=new BN;this.XB().then(function(){c.Fb.Fo()},function(d){c.error=""+d||"unknown_err";
c.Fb.Fo()})};
f8a=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.Fb=c;this.N=d;this.status=0;this.response=void 0;this.B=0;this.G=this.K=!1;this.errorMessage="";this.Y=function(f){if(f)if(e.status=f.status,f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.C=f.body.getReader(),e.Na()?e.C.cancel().catch(function(){}):(e.responseHeaders=f.headers,e.Fb.Pu(),e8a(e));
else e.onDone();else e.onError(Error("null_response"))};
this.Z=function(f){var h=(0,g.wC)();e.Na()||(f.done?(e.C=void 0,e.onDone()):(f=f.value,e.B+=f.length,e.j.append(f),e8a(e),e.Fb.hs(h,e.B)))};
this.onError=function(f){e.errorMessage=String(f);e.K=!0;e.onDone()};
this.j=new BN;this.D=window.AbortController?new AbortController:void 0;this.start(a)};
e8a=function(a){a.C.read().then(a.Z,a.onError).then(void 0,nsa)};
g8a=function(a,b,c){var d=this;c=void 0===c?{}:c;this.Fb=b;this.B=this.status=0;this.Na=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.u(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(f){d.sB(f)};
a=sO(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",sO(function(f){d.Cg(f)}),!1)};
aZ=function(a,b,c,d,e){if(vP(a.base))return new d8a(a,c);a=a.Ke();return d?CPa()?new b8a(a,b,c,e):new f8a(a,b,c,e):new g8a(a,c,e)};
bZ=function(a,b,c,d,e,f,h,l,m){m=void 0===m?!1:m;g.I.call(this);this.Fb=a;this.policy=b;this.Zd=c;this.resource=d;this.timing=e;this.logger=f;this.C=h;this.Tx=l;this.G=m;this.lastError=null;this.j=0;this.D=!1;this.B=new g.Iv(this.uda,this.policy.Ck,this)};
h8a=function(a){a.resource.Z=(0,g.wC)();a=cZ(a);a.B=(0,g.wC)();a.started+=1};
i8a=function(a,b,c){a.timing.iR((0,g.wC)(),b,c);b=a.resource;b.B=0;b.G=0;b.K=0;cSa(cZ(a));if(null!=(b=a.Tx)&&(a=a.Zd.base,!((0,g.wC)()<b.K+3E5||vP(a))&&(c=uP(a))&&V4a(c)&&b.B===EX(c))){var d;pRa(a)&&(d=uP(wP(a)));g.PB("yt-player-bandaid-host",{primary:c,secondary:d},864E3);b.K=(0,g.wC)();S4a(b,{primary:c,secondary:d})}};
dZ=function(a){if("ump.spsrejectfailure"===a.lastError)a.timing.G||jSa(a.resource,!1,a.Zd,a.policy,a.C);else{if("net.timeout"===a.lastError)a.timing.SK((0,g.wC)());else{var b=a.timing;WY(b,(0,g.wC)(),b.K)}if("net.nocontent"===a.lastError)++a.resource.K;else{if((b="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)&&!vP(a.Zd.base)){var c=cZ(a);c.timedOut+=1}else c=cZ(a),c.j+=1;a.timing.G||jSa(a.resource,b,a.Zd,a.policy,a.C)}}a.Fb.Hc(5)};
eZ=function(a,b,c,d,e){if(400<=b)return a.lastError="net.badstatus",!0;if(!(c||void 0!==d&&d)){a.lastError=204===b?"net.nocontent":"net.connect";if(void 0===e?0:e)a.lastError="ump.spsrejectfailure";return!0}return!1};
cZ=function(a){return fQ(a.C,uP(a.Zd.base))};
j8a=function(a){var b=a.timing.Sq();b.shost=uP(a.Zd.base);return b};
m8a=function(a,b){b=void 0===b?!1:b;var c=dK[a],d=k8a[c],e=l8a[a];if(!e||!d)return null;b=new aK(b?e.height:e.width,b?e.width:e.height,e.fps);d=wTa(d,b,c);return new eK(a,d,{video:b,sb:e.bitrate/8})};
o8a=function(a){var b=k8a[dK[a]],c=n8a[a];return c&&b?new eK(a,b,{audio:new ZJ(c.audioSampleRate,c.numChannels)}):null};
p8a=function(a){var b="";if(!a)return b;a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b+=c.videoCodec+"_"+c.maxWidth+"_"+c.maxHeight+"_"+c.maxFramerate+"_"+c.is10BitSupported+"_"+c.maxBitrateBps+";";return b};
q8a=function(a,b){return(null==a?void 0:a.maxWidth)>(null==b?void 0:b.maxWidth)||(null==a?void 0:a.maxHeight)>(null==b?void 0:b.maxHeight)};
r8a=function(a,b){for(var c=g.u(b.keys()),d=c.next();!d.done;d=c.next())if(d=b.get(d.value),0!==d.length){g.Ub(d,function(l,m){return m.maxFramerate-l.maxFramerate});
for(var e=[d[0]],f=0,h=1;h<d.length;h++)q8a(d[h],e[f])&&(e.push(d[h]),f++);a=a.concat(e)}return a};
t8a=function(a,b){var c=[];b=g.u(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=s8a[d]||0;a.j&&e>a.j||c.push(d)}return c};
x8a=function(a,b,c){var d=u8a[a]||[];c.L("html5_shorts_onesie_mismatched_fix")&&(d=v8a[a]||[]);b.push.apply(b,g.qa(d));c.L("html5_early_media_for_drm")&&b.push.apply(b,g.qa(w8a[a]||[]))};
D8a=function(a,b){var c=VS(a),d=a.U(),e=d.G;d=d.L("html5_shorts_onesie_mismatched_fix");var f=a.fk();if(d){if(!e.B){if(f&&fZ)return fZ;if(gZ)return gZ}}else if(gZ&&!e.B)return gZ;var h=[],l=[],m={},n=hZ.concat(y8a);d&&(n=hZ.concat(z8a));a.L("html5_early_media_for_drm")&&(n=n.concat(A8a),a.L("allow_vp9_1080p_mq_enc")&&n.push(B8a));var p=[].concat(g.qa(C8a));c.Z&&(p[0]=["141"]);n=g.u(n);for(var q=n.next();!q.done;q=n.next()){var r=!1;q=g.u(q.value);for(var t=q.next();!t.done;t=q.next()){t=t.value;var v=
m8a(t,f&&d);if(v&&v.video&&!(gK(v)&&!c.Ga&&v.video.j>c.qj)){var w=g.xI(a.U().experiments,"html5_drm_byterate_soft_cap");0<w&&xEa(v)&&v.sb>w||(r?(h.push(t),x8a(t,h,a)):(v=lP(c,v,e),!0===v?(r=!0,h.push(t),x8a(t,h,a)):m[t]=v))}}}p=g.u(p);for(n=p.next();!n.done;n=p.next())for(n=g.u(n.value),r=n.next();!r.done;r=n.next())if(r=r.value,(q=o8a(r))&&q.audio&&(a.L("html5_onesie_51_audio")||!wEa(q)&&!hK(q)))if(q=lP(c,q,e),!0===q){l.push(r);x8a(r,l,a);break}else m[r]=q;c.B&&b("orfmts",m);if(d)return e.B&&(e.B=
!1,fZ=gZ=void 0),f?fZ={video:h,audio:l}:gZ={video:h,audio:l};gZ={video:h,audio:l};e.B=!1;return gZ};
H8a=function(a,b){var c={},d=a.ea,e=a.Da,f=d.getVideoData(),h=YO(0),l=d.getPlayerSize(),m=d.getVisibilityState();h&&(c.i$=h,c.lastManualDirection=EPa(),h=Ura()||0,0<h&&(h=(e.L("html5_use_date_now_for_local_storage")?Date.now():(0,g.wC)())-h,e.L("html5_use_date_now_for_local_storage")?0<h&&(c.timeSinceLastManualFormatSelectionMs=h):c.timeSinceLastManualFormatSelectionMs=h));c.lea=YO();h=e.L("html5_use_streamer_bandwidth_for_low_latency_live")&&f.isLowLatencyLiveStream;if(e.schedule.Ga&&!h){var n;h=
e.L("html5_disable_bandwidth_cofactors_for_sabr_live")?!(null==(n=a.bf)||!n.Kn):!1;c.n7=wR(e.schedule,!h)}n=g.QR();var p=g.$J.medium,q=Math.floor(16*p/9);h=f.fk()?p:q;p=f.fk()?q:p;c.y7=Math.max(l.width*n,h);c.x7=Math.max(l.height*n,p);c.visibility=m;c.Bea=QD();c.a8=1E3*g.KM(d.wc().provider);e.L("html5_sabr_support_quality_constraints")&&a.Hz&&(c.Hz=a.Hz);e.L("html5_enable_sabr_drm_hd720p")&&a.sabrLicenseConstraint&&(c.sabrLicenseConstraint=a.sabrLicenseConstraint);if(e.L("html5_enable_platform_backpressure_with_sabr")){if(c.Dw=
3,a.KG||(c.Dw^=1),!a.NG||US(f))c.Dw^=2}else{if(e.L("html5_onesie_media_capabilities")||e.L("html5_enable_server_format_filter"))c.Dw=3;e.L("html5_onesie_audio_only_playback")&&US(f)&&(c.Dw=1)}l=f.sf?f.sf:VS(f);if(e.L("html5_onesie_media_capabilities")){m=e.G;n=[];h=[];p=e.L("html5_shorts_onesie_mismatched_fix");q=f.fk();var r=hZ.concat(y8a);p&&(r=hZ.concat(z8a));e.L("html5_early_media_for_drm")&&(r=r.concat(A8a),e.L("allow_vp9_1080p_mq_enc")&&r.push(B8a));var t=[].concat(g.qa(C8a));l.Z&&(t[0]=["141"]);
r=g.u(r);for(var v=r.next();!v.done;v=r.next()){v=g.u(v.value);for(var w=v.next();!w.done;w=v.next()){w=w.value;var A=m8a(w,q&&p);if(A&&A.video){var C=g.xI(e.experiments,"html5_drm_byterate_soft_cap");if(!(0<C&&xEa(A)&&A.sb>C)&&!0===lP(l,A,m)){n.push({videoCodec:E8a[dK[w]],maxWidth:A.video.width,maxHeight:A.video.height,maxFramerate:A.video.fps});break}}}}p=g.u(t);for(q=p.next();!q.done;q=p.next())for(q=g.u(q.value),t=q.next();!t.done;t=q.next())if(t=t.value,(r=o8a(t))&&r.audio&&(e.L("html5_onesie_51_audio")||
!wEa(r)&&!hK(r))&&!0===lP(l,r,m)){h.push({audioCodec:F8a[dK[t]],numChannels:r.audio.numChannels});break}c.mediaCapabilities={videoFormatCapabilities:n,audioFormatCapabilities:h}}var F;if(null==(F=a.bf)?0:F.C&&F.un){h=e.G;b&&b("ssap",{clientCapabilities:nP(h)});F=[];m=[];n=new Map;if((p=h.j)&&0<p.size)for(p=g.u(p.values()),q=p.next();!q.done;q=p.next())t=q.value,t.Eh?m.push({audioCodec:F8a[t.qb],numChannels:t.numChannels,spatialCapabilityBitmask:G8a[t.qb]}):(r=E8a[t.qb],q={videoCodec:r,maxWidth:t.maxWidth||
0,maxHeight:t.maxHeight||0,maxFramerate:t.maxFramerate||0,is10BitSupported:t.kF||!1},t.maxBitrateBps&&(q.maxBitrateBps=t.maxBitrateBps,v=m8a(t.itag),w=void 0,(null==(w=v)?0:w.video)&&!0===lP(l,v,h)&&(v=8*v.sb,v>q.maxBitrateBps&&(q.maxBitrateBps=v))),t=r+"_"+t.kF,r=n.get(t)||[],r.push(q),n.set(t,r));F=r8a(F,n);if(b){h="";if(n)for(p=g.u(n.keys()),q=p.next();!q.done;q=p.next())q=q.value,h+=q+"-"+p8a(n.get(q))+";";n=h;h=p8a(F);p="";if(m)for(q=g.u(m),t=q.next();!t.done;t=q.next())t=t.value,p+=t.audioCodec+
"_"+t.numChannels+"_"+t.maxBitrateBps+"_"+t.spatialCapabilityBitmask+";";b("ssap",{vfcm:n,vfcam:h,afcam:p})}c.mediaCapabilities={videoFormatCapabilities:F,audioFormatCapabilities:m,hdrModeBitmask:3}}var H;if(null==(H=a.bf)?0:H.C){c.Jo=l.Jo;var M;c.qj=null==(M=a.bf)?void 0:M.qj}e.Tf&&(c.X7=e.Tf);c.lS=a.dE;if(e.L("html5_fix_time_since_last_seek_reporting")?void 0!==a.eq:a.eq)c.Cea=(0,g.wC)()-a.eq;a.isPrefetch&&e.L("html5_report_prefetch_requests")&&(c.isPrefetch=!0);gR||(c.M$=!0);b=1E3*vR(e.schedule);
0<b&&(c.D7=b);var L;(null==(L=a.bf)?0:L.Dv)&&a.Ex&&Infinity>a.Ex&&(c.Ex=a.Ex);d=d.getPlaybackRate();1!==d&&(c.playbackRate=d);var R;(null==(R=a.bf)?0:R.Hb)&&a.Bq&&(c.nw=a.nw,c.Hy=a.Hy,c.Bq=a.Bq);f.isProximaLatencyEligible&&(e.L("html5_sabr_enable_proxima_user_preference")&&1===DPa()&&(c.k$=1),e.L("html5_sabr_force_proxima")&&(c.j$=1),a=g.xI(e.experiments,"html5_sabr_force_max_network_interruption_duration_ms"),0<a?c.YZ=a:e.L("html5_sabr_enable_max_network_interruption_duration")&&(c.YZ=e.schedule.interruptions[0]||
0));return c};
iZ=function(a,b,c,d,e,f){var h={};b&&(h.Nca={CB:b});if(!a)return h;h.playbackCookie=null==c?void 0:c.playbackCookie;e&&(h.rS=e);h.yM=[];h.UL=[];if(g.sT(a)&&0<a.sabrContextUpdates.size)for(b=g.u(a.sabrContextUpdates.values()),c=b.next();!c.done;c=b.next())I8a(h,c.value,d);NS(a)&&!g.sT(a)&&a.L("html5_enable_sabr_request_pipelining")&&f&&I8a(h,f,d);a.zz&&(h.dea=a.zz);d=a.U().j;h.clientInfo={clientName:J8a[d.c.toUpperCase()]||0};d.cbrand&&(h.clientInfo.deviceMake=d.cbrand);d.cmodel&&(h.clientInfo.deviceModel=
d.cmodel);d.cver&&(h.clientInfo.clientVersion=d.cver);d.cos&&(h.clientInfo.osName=d.cos);d.cosver&&(h.clientInfo.osVersion=d.cosver);a.Xo&&(h.Xo=a.Xo);return h};
I8a=function(a,b,c){var d=b.type||0;(null==c?0:c.has(d))?a.UL.push(b):a.yM.push(d)};
NY=function(a,b,c,d,e,f){var h=void 0===f?{}:f;var l=void 0===h.sG?[]:h.sG;var m=void 0===h.oH?!1:h.oH;var n=void 0===h.mw?0:h.mw;var p=void 0===h.poToken?"":h.poToken;var q=void 0===h.Tx?void 0:h.Tx;var r=void 0===h.BG?"":h.BG;var t=void 0===h.rh?0:h.rh;var v=void 0===h.oi?new Uint8Array(0):h.oi;var w=void 0===h.kM?!1:h.kM;f=void 0===h.jq?0:h.jq;h=void 0===h.CB?void 0:h.CB;ZY.call(this,b,e);var A=this;this.policy=a;this.logger=new g.RQ("dash/request");this.Iz=this.Bg=0;this.w1=!1;this.Lr=this.Tp=
null;this.RY=!1;this.oi=this.rh=null;this.wM=this.K2=!1;this.vI=null;this.jq=this.Lp=0;this.ou=!1;this.wd={Hc:function(F){A.Hc(F)},
hqb:function(){return A.cg},
Drb:function(F){A.cg=F},
Crb:function(F){A.Bg=F},
Brb:function(F){A.Cd.lastError=F},
LP:function(){return A.xhr}};
this.timing=new XY(this,c);this.oH=m;this.rh=t;this.oi=v;this.Zd=g.zSa(this.info,this.policy,d);this.Zd.set("rn",this.Op().toString());this.Zd.set("rbuf",(1E3*n).toFixed().toString());this.oH&&this.Zd.set("smb","1");this.policy.lz&&p&&this.Zd.set("pot",p);r&&this.Zd.set("bbs",r);this.policy.useUmp&&!vP(this.Zd.base)&&(this.Fl=new YY(this),this.Zd.set("ump","1"),this.Zd.set("srfvp","1"));if(a=this.policy.Qs?this.policy.KH&&!isNaN(this.info.gh)&&this.info.gh>this.policy.uD?!1:!0:!1)b=null,this.policy.WC&&
this.policy.Xj?b=[1]:w&&(b=[]),null!=b&&(this.policy.LF&&b.push(2),this.Zd.set("defsel",b.join(",")));this.Cd=new bZ(this,this.policy,this.Zd,this.info.resource,this.timing,this.logger,d,q);this.sG=l||null;this.AB=K8a(this);h8a(this.Cd);d=void 0;if(this.policy.XC||this.Fl||this.policy.Ga)d={method:"POST"},l=(0,g.jZ)([120,0]),q={},this.policy.DC&&h&&(h=iZ(void 0,h),q.oC=h),this.policy.Jv&&this.oi&&(q.videoPlaybackUstreamerConfig=this.oi),this.policy.Ga&&(h=this.info.D)&&Object.assign(q,h),0<Object.keys(q).length?
d.body=g.fO(q,g.oQa):d.body=l;if(this.rh&&this.oi){this.Zd.set("iwts","1");d={method:"POST"};h={Mda:1E3*this.rh};var C;l=null==(C=this.info.D)?void 0:C.Tm;C=g.fO({ut:h,Tm:l||void 0,videoPlaybackUstreamerConfig:this.oi},g.oQa);d.body=C}try{this.xhr=aZ(this.Zd,this.policy.N,this.timing,a,d),this.Cd.B.start(),f&&(this.Hu=new g.Iv(this.b_,f,this),this.Hu.start(f+1E3*(this.timing.Nc.K.eh()||0))),this.policy.tF&&S7a(this.timing,this.Ke()),this.logger.debug(function(){return"Sent, itag="+A.Zd.get("itag")+
" seg="+A.info.ib[0].Pa+" range="+A.Zd.get("range")+" time="+Math.round(A.info.ib[0].C)+"-"+Math.round(g.Bb(A.info.ib).D)+" rtp="+(A.timing.HJ()-Date.now()).toFixed(0)}),g.dg(function(){})}catch(F){L8a(this,F,!0)}};
K8a=function(a){if(!(tQ(a.info)&&a.info.Ep()&&a.policy.zd&&a.sG)||2<=a.info.resource.B||0<YO()||!LPa())return!1;var b=a.Zd.get("aitags");if(!b)return!1;b=Ye(b).split(",");for(var c=[],d=g.u(a.sG),e=d.next();!e.done;e=d.next())e=e.value,g.Fb(b,e)&&c.push(e);if(!c.length)return!1;a.Zd.set("altitags",g.Xe(c.join(",")));return!0};
L8a=function(a,b,c){c=void 0===c?!1:c;g.AE(b);a.Cd.lastError="player.exception";a.errorMessage=b.name+"_"+b.message;c?g.dg(function(){dZ(a.Cd)}):dZ(a.Cd)};
M8a=function(a){if(a.policy.zz)return!1;var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.DE();c=!c||c<=a.policy.Ip;return(!a.xhr.pC()||!b||-1!==b.indexOf("text/plain"))&&c};
N8a=function(a,b){var c=JN(b);return ZI(c)?(a.logger.debug(function(){return"Redirecting to "+c}),c):""};
O8a=function(a,b){a.timing.G=!0;if(a.policy.vc){var c;null==(c=a.Hu)||c.stop()}RX(a.cg,b,!1)};
P8a=function(a,b){a.info=b;if(a.cg){var c=a.cg;b=b.ib;(b.length!==c.ib.length||b.length<c.zf.length)&&UTa("dash/request",260511119,""+b.length,""+c.ib.length,""+c.zf.length);c.ib=b;for(var d=b[0].range,e=new BN,f=0;f<c.zf.length;f++)CN(e,c.zf[f].j);for(f=0;f<c.zf.length;f++){c.zf[f].info=b[f];var h=b[f].range;c.zf[f].j=DN(e,h.start-d.start,h.length)}}a.AB=!1};
Q8a=function(a){a.Lp&&(a.xhr.status=a.Lp,a.Bg=a.Lp)};
kZ=function(a){this.B={};this.logger=new g.RQ(a)};
R8a=function(a){return a.itag+";"+(a.lmt||0)+";"+(a.xtags||"")};
lZ=function(a,b){VY.call(this,a,b);this.Ga=!0;this.ra=!1;this.Wa=this.La=0;this.bb=NaN};
S8a=function(a){kZ.call(this,"sabr");this.Fb=a};
mZ=function(a,b,c,d,e,f,h,l){g.I.call(this);this.policy=a;this.info=b;this.manifest=c;this.Fb=e;this.c_=l;this.logger=new g.RQ("sabr");this.Fl=new YY(this);this.Hda=new S8a(this);this.Yf=new SX(this);this.state=1;this.n1=!1;this.CS=0;this.clipId="";this.Wu=this.ej=-1;this.X0=0;this.ou=this.GW=!1;this.policy.LH?this.Fd=new lZ(this,f):this.Fd=new XY(this,f);e=this.policy;e=fSa(b.resource,T8a(b,e,d),e);b.nu()&&e.set("probe","1");this.Zd=e;this.Zd.set("rn",""+this.Op());J5a(this.Yf,c,a);this.Cd=new bZ(this,
this.policy,this.Zd,b.resource,this.Fd,this.logger,d,h,this.policy.enableServerDrivenRequestCancellation);h8a(this.Cd);var m;if(null==(m=this.policy)?0:m.ge)g.N(this,this.Yf),g.N(this,this.Cd);a=b.B;b={method:"POST",body:a};this.policy.mp&&a&&(this.X0=a.length);try{this.xhr=aZ(this.Zd,this.policy.N,this.Fd,gR,b),this.Cd.B.start()}catch(n){g.BE(n)}};
U8a=function(a,b){var c=-1,d=-1,e=-1,f;if(null==(f=a.BS)?0:f.items)for(a=g.u(a.BS.items),f=a.next();!f.done;f=a.next())f=f.value,b<f.YQ||f.YQ<c||(c=f.YQ,d=f.JK,e=f.minReadaheadMs);return{h$:c,JK:d,ZQ:e}};
V8a=function(a){this.j=a;this.Y=this.Ma=this.N=this.Ga=this.D=this.G=this.K=this.Ha=this.Z=this.La=this.ra=this.Ca=this.qa=0;this.ticks={}};
nZ=function(a){a.qa||(a.qa=(0,g.wC)(),aL("mb_s",a.qa,a.j))};
W8a=function(a){a.Ca||(a.Ca=(0,g.wC)(),aL("ovfs_rp",a.Ca,a.j))};
X8a=function(a){a.ra||(a.ra=(0,g.wC)(),aL("oafs_rp",a.ra,a.j))};
Y8a=function(a){a.G||(a.G=(0,g.wC)(),aL("vda",a.G,a.j),a.D&&fC(g.dC(),4))};
Z8a=function(a){a.D||(a.D=(0,g.wC)(),aL("ada",a.D,a.j),a.G&&fC(g.dC(),4))};
$8a=function(a){a.Ga||(a.Ga=(0,g.wC)(),aL("vis_a",a.Ga,a.j))};
a9a=function(a){a.N||(a.N=(0,g.wC)(),aL("ais_a",a.N,a.j))};
b9a=function(a){a.Ma||(a.Ma=(0,g.wC)(),aL("vrb_f",a.Ma,a.j))};
c9a=function(a){a.Y||(a.Y=(0,g.wC)(),aL("arb_f",a.Y,a.j))};
d9a=function(a,b,c){var d=b instanceof mZ&&!a.C&&!a.B,e=!a.C&&(null==c?void 0:c.info.video);c=!a.B&&(null==c?void 0:c.info.audio);3===b.state?((e||d)&&a.tick("vrr"),(c||d)&&a.tick("arr")):4===b.state?e?(a.C=b.Ke(),fC(g.dC(),4)):c&&(a.B=b.Ke()):b instanceof NY&&b.lx()&&e&&fC(g.dC(),4)};
e9a=function(a){return!!a.B&&!!a.C};
f9a=function(a,b,c,d,e,f){g.UE.call(this);var h=this;this.ya=a;this.manifest=b;this.policy=c;this.Y=d;this.Ca=e;this.ra=this.j=null;this.G=this.K=NaN;this.Z=0;this.qa=NaN;this.N=null;this.Ha=new Map;this.C=this.D=NaN;this.wd={lqb:function(){return h.B}};
this.B=f?1:0};
oZ=function(a,b,c){b.startSecs+=isNaN(a.Z)?0:a.Z;a=a.manifest;a.ra.push(b);a.publish("cuepointsadded",c)};
h9a=function(a,b,c){if(0!==a.B&&c&&b.ib[0].Ag()){var d=b.ib[0].Pa,e=b.ib[0].C;b=b.Xp();g9a(a,d,e,b,c)}};
g9a=function(a,b,c,d,e){var f;b!==(null==(f=a.j)?void 0:f.Pa)||1===a.B||d||"predictStart"===a.j.Yg.event||a.ma("sdai",{undecevt:1,sq:b,evt:a.j.Yg.event});b>a.G&&(a.G=NaN,a.K=NaN);if(a.j&&a.j.Pa===b){d=a.j;f=d.Yg;var h=e.Lu(f);a.ma("sdai",{onqevt:f.event,sq:b,gab:h});if(h)"predictStart"!==f.event?d.cF?pZ(a,4,"cue"):(a.G=b,a.K=c,a.ma("sdai",{joinad:a.B,sg:a.G,st:a.K.toFixed(3)}),a.qa=Date.now(),pZ(a,2,"join"),e.QJ(d.Yg)):(a.policy.K?(a.C=Math.floor(c-f.j/1E3),a.ma("sdai",{onpred:c,est:a.C})):(a.D=b+
Math.max(Math.ceil(-f.j/5E3),1),a.ma("sdai",{onpred:b,est:a.D})),a.qa=Date.now(),pZ(a,3,"predict"),e.QJ(d.Yg));else if(1===a.B){var l;(null==(l=a.N)?0:l.PO(c))?(i9a(a.ya,c,c,b),pZ(a,4,"sk2had")):pZ(a,5,"nogab")}else"predictStart"===f.event&&(a.policy.K&&0<a.C?(b=Math.floor(c-f.j/1E3),a.C!==b&&a.ma("sdai",{updateSt:b,old:a.C}),a.C=b):0<a.D&&(b+=Math.max(Math.ceil(-f.j/5E3),1),a.D!==b&&(a.ma("sdai",{updateSt:b,old:a.D}),a.D=b)))}else 1===a.B&&pZ(a,5,"noad")};
j9a=function(a,b,c){return(0>c||c===a.G)&&!isNaN(a.K)?a.K:b};
k9a=function(a,b){if(a.j){var c=a.j.Yg.Bh-(b.startTime+a.Z-a.j.Yg.startSecs);0>=c||(c=new GP(a.j.Yg.startSecs-(isNaN(a.Z)?0:a.Z),c,a.j.Yg.context,a.j.Yg.identifier,"stop",a.j.Yg.j+1E3*b.duration),a.ma("cuepointdiscontinuity",{segNum:b.Pa}),oZ(a,c,b.Pa))}};
pZ=function(a,b,c){a.B!==b&&(a.ma("sdai",{setsst:b,old:a.B,r:c}),a.B=b)};
qZ=function(a,b,c,d){(void 0===d?0:d)?pZ(a,1,"sk2h"):0<b&&5<=Math.abs(b-c)&&4===a.B&&pZ(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))};
rZ=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
sZ=function(a,b,c){this.j=a;this.reason=b;this.token=c;this.videoId=void 0};
tZ=function(a,b,c){g.I.call(this);this.policy=a;this.D=b;this.ma=c;this.C=new Map;this.G=0;this.K=!1;this.j="";this.B=!1};
uZ=function(a,b,c){if(void 0===c?0:c)a.K=!0;++a.G;c=6E4*Math.pow(2,a.G);c=(0,g.wC)()+c;a.C.set(b.info.id,c)};
vZ=function(a){for(var b=g.u(a.C.entries()),c=b.next();!c.done;c=b.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;d<(0,g.wC)()&&a.C.delete(c)}return a.C};
l9a=function(a){return a.K&&0<vZ(a).size};
wZ=function(a,b){a.j!==b&&(a.j=b,a.B=!0)};
m9a=function(a,b){if(b){(a.policy.Ol||a.policy.Iv)&&a.ma("iaudio",{id:b});var c=g.Db(a.D.j,function(d){return d.id===b})}c||(c=g.Db(a.D.j,function(d){var e;
return!(null==(e=d.qc)||!e.isDefault)}));
return c};
n9a=function(a,b,c,d,e,f){var h=this;f=void 0===f?[]:f;this.ya=a;this.Ca=b;this.policy=c;this.manifest=d;this.K=e;this.gb=f;this.logger=new g.RQ("dash/abr");this.j=DS;this.C=this.N=null;this.Y=-1;this.Ma=!1;this.nextVideo=this.B=null;this.D=[];this.Va=new Set;this.La={};this.bb=new pR(1);this.Z=0;this.Wa=this.ra=this.qa=!1;this.Ha=0;this.eb=!1;this.Ga=new Set;this.Sa=!1;this.wd={q1:function(){xZ(h)}};
this.G=new tZ(this.policy,e,function(l,m){h.ya.ma(l,m)})};
s9a=function(a,b,c){yZ(a,b);o9a(a,c);a.N=a.B;p9a(a);q9a(a);a.C=a.nextVideo;a.N=a.B;return r9a(a)};
v9a=function(a,b){if(t9a(a,b))return null;if("m"===b.reason&&b.isLocked())return a.logger.debug(function(){return"User sets constraint to: "+hP(b)}),yZ(a,b),a.Z=a.D.length-1,xZ(a),zZ(a),a.ra=a.ra||a.C!==a.nextVideo,a.C=a.nextVideo,new rZ(a.B,a.C,b.reason);
"r"===b.reason&&(a.Y=-1);yZ(a,b);zZ(a);if("r"===b.reason&&a.nextVideo===a.C)return new rZ(a.B,a.nextVideo,b.reason);u9a(a);return null};
w9a=function(a,b,c){a.B=a.manifest.j[b];a.N=a.B;return new rZ(a.N,a.C,c?"t":"m")};
x9a=function(a,b){if(b.info.video){if(a.C!==b)return a.C=b,r9a(a)}else a.Wa=a.N!==b,a.N=b;return null};
y9a=function(a,b){if(b.j.info.video&&b.Te){var c=(b.Tb+b.B)/b.duration,d=b.j.info.sb;c&&d&&(a.bb.Ri(1,c/d),a.policy.B&&1.5<c/d&&a.ya.ma("overshoot",{sq:b.Pa,br:c,max:d}))}};
AZ=function(a,b,c){uZ(a.G,b,void 0===c?!1:c);a.Y=-1;yZ(a,a.j)};
BZ=function(a,b){return new rZ(a.N,a.C,b||a.j.reason)};
u9a=function(a){if(a.C&&a.nextVideo&&CZ(a,a.C.info)<CZ(a,a.nextVideo.info)){var b=a.j.reason;a.qa=a.qa||"r"===b||"u"===b||"v"===b}};
r9a=function(a){a.Ma?a.Ma=!1:a.Y=(0,g.wC)();a.qa=!1;a.Sa=!1;return new rZ(a.N,a.C,a.j.reason)};
z9a=function(a,b){var c={};b=g.u(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&&gK(f)&&f.video.j>a.policy.qj,l=e<=a.policy.qj?gK(d):fK(d);if(!f||h||l)c[e]=d}return c};
yZ=function(a,b){a.j=b;var c=a.K.videoInfos;if(!a.j.isLocked()){var d=(0,g.wC)();c=g.Ot(c,function(r){if(r.sb>this.policy.sb)return!1;var t=this.manifest.j[r.id];return vZ(this.G).get(r.id)>d?!1:4<t.resource.B||4<t.K?(this.logger.debug(function(){return"Remove "+oK(r)+"; 4 load failures"}),!1):this.Ga.has(+r.itag)?!1:!0},a);
l9a(a.G)&&(c=g.Ot(c,function(r){return 854>=r.video.width&&480>=r.video.height}))}c.length||(c=a.K.videoInfos);
var e=g.Ot(c,b.D,b);if(a.j.isLocked()&&a.G.j){var f=g.Db(c,function(r){return r.id===a.G.j});
f?e=[f]:wZ(a.G,"")}f="m"===b.reason||"s"===b.reason;a.policy.HC&&IY&&g.rC&&(!f||1080>b.j)&&(e=e.filter(function(r){return r.video&&(!r.B||r.B.powerEfficient)}));
if(0<e.length)if(zK()){var h=z9a(a,e);e=e.filter(function(r){return!!r&&!!r.video&&r.qb===h[r.video.j].qb})}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(r){return!!r&&!!r.video&&r.video.j===n});
var p=z9a(a,b)[n].qb;e=e.filter(function(r){return!!r&&!!r.video&&r.qb===p})}}e.length||(e=[c[0]]);
e.sort(function(r,t){return CZ(a,r)-CZ(a,t)});
c={};for(b=1;b<e.length;c={YN:void 0,EN:void 0},b++)c.EN=e[b-1],c.YN=e[b],c.EN.video.width>c.YN.video.width?(g.Gb(e,b),b--):CZ(a,c.EN)*a.policy.Z>CZ(a,c.YN)&&(g.Gb(e,b-1),b--);var q=e[e.length-1];a.eb=!!a.C&&!!a.C.info&&a.C.info.qb!==q.qb;a.logger.debug(function(){return"Constraint: "+hP(a.j)+", "+e.length+" fmts selectable, max selectable fmt: "+oK(q)});
a.D=e;a.Va.clear();c=!1;for(b=0;b<e.length;b++)c?a.Va.add(e[b].itag):1080<=e[b].video.j&&(c=!0);K_a(a.policy,q,a.manifest.dc)};
o9a=function(a,b){if(a.policy.Ol){var c=m9a(a.G,b);b||c||(c=A9a(a));c=c||a.K.j[0]}else b?a.B=a.manifest.j[b]:(c=g.Db(a.K.j,function(d){return!!d.qc&&d.qc.isDefault}))||(c=A9a(a)),c=c||a.K.j[0];
a.B=a.manifest.j[c.id];xZ(a)};
B9a=function(a,b){for(var c=0;c+1<a.D.length&&"tiny"===a.D[c].video.quality;)c++;var d=KY(a.Ca)/a.policy.Z;return CZ(a,b.info)+CZ(a,a.D[c])>d};
xZ=function(a){if(!a.B||!a.policy.D&&!a.B.info.qc){var b=a.K.j;a.B&&(b=b.filter(function(d){return d.audio.j===a.B.info.audio.j}),b.length||(b=a.K.j));
a.B=a.manifest.j[b[0].id];if(1<b.length){var c=!1;if(c=a.policy.Dc?!0:a.j.isLocked()?240>a.j.j:B9a(a,a.B))a.B=a.manifest.j[g.Bb(b).id]}}};
zZ=function(a){if(!a.nextVideo||!a.policy.D)if(a.j.isLocked())a.nextVideo=360>=a.j.j?a.manifest.j[a.D[0].id]:a.manifest.j[g.Bb(a.D).id],a.logger.debug(function(){return"Select max fmt: "+oK(a.nextVideo.info)});
else{for(var b=Math.min(a.Z,a.D.length-1),c=KY(a.Ca),d=CZ(a,a.B.info),e=c/a.policy.Y-d;0<b&&!(CZ(a,a.D[b])<=e);b--);for(var f=c/a.policy.Z-d;b<a.D.length-1&&!(CZ(a,a.D[b+1])>=f);b++);a.nextVideo=a.manifest.j[a.D[b].id];a.Z!==b&&a.logger.info(function(){return"Adapt to: "+oK(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+f.toFixed(0)+", constraint: "+hP(a.j)});
a.Z=b}};
p9a=function(a){var b=a.policy.Y,c=KY(a.Ca),d=c/b-CZ(a,a.B.info);b=g.Eb(a.D,function(e){return CZ(this,e)<d},a);
0>b&&(b=0);a.Z=b;a.nextVideo=a.manifest.j[a.D[b].id];a.logger.info(function(){return"Initial selected fmt: "+oK(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
q9a=function(a){if(a.gb.length){var b=a.gb,c=function(d,e){if("f"===d.info.qb||b.includes(lK(d.info,a.manifest.dc)))return d;for(var f={},h=0;h<e.length;f={dP:void 0,HT:void 0},h++){var l=a.manifest.j[e[h].id];if(b.includes(lK(l.info,a.manifest.dc))){var m=d.info.qb,n=l.info.qb;if(m===n||zK()){if(d.info.j!==l.info.j)return a.ya.ma("ombifa",{mismatch:"xtag",f:d.info.id,t:l.info.id}),d;f.dP=d.info.itag;f.HT=l.info.itag;a.ya.ma("ombifa",{f:f.dP,t:f.HT});a.logger.info(function(p){return function(){return"Initial format selection changed from "+
p.dP+" to "+p.HT+" based on prefetched media."}}(f));
a.Ma=!0;return l}a.ya.ma("ombifa",{mismatch:"efficient",fc:m,tc:n})}}a.ya.ma("ombifa",{mismatch:"unselectable",fmts:b.join(".")});return d};
a.nextVideo=c(a.nextVideo,a.K.videoInfos);a.B=c(a.B,a.K.j)}};
CZ=function(a,b){if(!a.La[b.id]){var c=a.manifest.j[b.id].index.iY(a.Ha,15);c=b.jw&&a.C&&a.C.index.isLoaded()?c||b.jw:c||b.sb;a.La[b.id]=c}c=a.La[b.id];a.Va.has(b.itag)&&(c*=1.5);return c*=Math.max(1,a.bb.eh()||0)};
C9a=function(a,b){a=dba(a.manifest.j,function(c){return c.info.itag===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
D9a=function(a){var b=[];if("m"===a.j.reason||"s"===a.j.reason)return b;if(sTa(a.manifest)){for(var c=Math.max(0,a.Z-2);c<a.Z&&c<a.D.length;c++)b.push(a.D[c].itag);b.reverse()}return b};
t9a=function(a,b){var c;return TQa(a.j,b)&&(!a.G.j||!a.j.isLocked()||(null==(c=a.nextVideo)?void 0:c.info.id)===a.G.j)};
A9a=function(a){var b=g.Db(a.K.j,function(d){return d.audio.j}),c=g.Db(a.K.j,function(d){return!d.audio.j});
if(!b)return null;if(!a.policy.JD)return c;a.policy.nB&&b&&(a.ya.ma("drcwr",{d:b.itag,dd:b.approxDurationMs,nd:c?c.itag:"",ndd:(null==c?0:c.approxDurationMs)?c.approxDurationMs:""}),c&&1E3<Math.abs(c.approxDurationMs-b.approxDurationMs)&&(b=c));return b};
E9a=function(a){var b=void 0===a?{}:a;a=void 0===b.lj?!1:b.lj;var c=void 0===b.Xj?!1:b.Xj;b=void 0===b.Qs?!1:b.Qs;return a?b?3:2:c?-1:1};
G9a=function(a,b,c){var d=this;this.policy=a;this.j=b;this.Ha=c;this.D=this.B=0;this.Jf=null;this.qa=new Set;this.Y=[];this.indexRange=this.initRange=null;this.Z=new IK;this.ra=this.Ca=!1;this.wd={bqb:function(){return d.C},
ypb:function(){return d.chunkSize},
rpb:function(){return d.N},
qpb:function(){return d.K}};
(b=F9a(this))?(this.chunkSize=b.csz,this.C=Math.floor(b.clen/b.csz),this.N=b.ck,this.K=b.civ):(this.chunkSize=a.dB,this.C=0,this.N=g.ND(16),this.K=g.ND(16));this.G=new Uint8Array(this.chunkSize);this.N&&this.K&&(this.crypto=new c8a(this.N,this.K))};
F9a=function(a){if(a.policy.sf&&a.policy.MB)for(var b=g.u(a.policy.sf),c=b.next(),d={};!c.done;d={tO:void 0,HO:void 0},c=b.next())if(c=g.GA(c.value),d.tO=+c.clen,d.HO=+c.csz,0<d.tO&&0<d.HO&&a.policy.D===c.docid&&a.j.info.id===c.fmtid&&a.j.info.lastModified===+c.lmt)return a={},a.clen=d.tO,a.csz=d.HO,a.ck=c.ck,a.civ=c.civ,a};
DZ=function(a){return!!a.Jf&&nQ(a.Jf)};
L9a=function(a,b){if(!DZ(a)&&!a.Na()){if(!(a.Ca||(a.Ca=!0,0<a.C))){var c=H9a(a);c=cWa(a.policy.D,a.j.info,EZ(a),c,a.policy.Wa);I9a(a,c)}if(1===b.info.type){if(a.Jf){FZ(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=kQ(0,b.j.totalLength)}else if(2===b.info.type)a.Jf&&1===a.Jf.type||FZ(a,Error("Woffle: Index before init")),a.indexRange=kQ(a.initRange.end+1,b.j.totalLength);else if(3===b.info.type){if(!a.Jf){FZ(a,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(3===a.Jf.type&&!qQ(a.Jf,b.info)&&(a.Y=[],b.info.Pa!==oSa(a.Jf)||0!==b.info.Tb))return;if(b.info.Te){c=g.u(a.Y);for(var d=c.next();!d.done;d=c.next())J9a(a,d.value);a.Y=[]}else{a.Y.push(b);a.Jf=b.info;return}}else{FZ(a,Error("Woffle: Unexpected slice type"));return}a.Jf=b.info;J9a(a,b);K9a(a)}};
J9a=function(a,b){var c=0,d=EN(b.j);if(a.D<a.C){c=a.C*a.chunkSize;var e,f=((null==(e=b.info.range)?void 0:e.start)||0)+b.info.Tb;c-=f;if(c>=d.length)return;if(0>c)throw Error("Missing data");a.D=a.C;a.B=0}for(e={};c<d.length;e={GM:void 0})if(e.GM=Math.min(d.length-c,a.G.byteLength-a.B),f=new Uint8Array(d.buffer,d.byteOffset+c,e.GM),a.G.set(f,a.B),a.B+=e.GM,c+=e.GM,a.B===a.G.length){if(b.info===a.Jf&&DZ(a)&&c===d.length)break;e=H9a(a);e=cWa(a.policy.D,a.j.info,EZ(a),e,a.policy.Wa,a.D,a.G,a.crypto);
a.qa.add(e);I9a(a,e);a.Na()||(e=H9a(a),a.Ha(EZ(a),void 0!==e?(e.downloadedEndTime||0)*e.averageByteRate:e.maxKnownEndTime*e.averageByteRate,e.maxKnownEndTime*e.averageByteRate));a.G=new Uint8Array(a.chunkSize);a.B=0;a.D+=1}};
K9a=function(a){if(DZ(a))if(a.Jf&&a.indexRange)if(a.B){var b=new Uint8Array(a.G.buffer,0,a.B),c=M9a(a),d=a.policy.D;Promise.all(a.qa).then(function(){var e=cWa(d,a.Jf.j.info,EZ(a,!0),c,a.policy.Wa,a.D,b,a.crypto);I9a(a,e,!0)})}else FZ(a,new GZ("Woffle: Expect always re-mark currentChunkOffset at EOS"));
else FZ(a,new GZ("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
H9a=function(a){return{downloadedEndTime:Math.round(a.Jf?a.Jf.D:0),maxKnownEndTime:Math.round(a.j.index.Pt()),averageByteRate:Math.round(a.j.info.jw)}};
M9a=function(a){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(a.j.index.Pt()),averageByteRate:Math.round(a.j.info.jw)}};
EZ=function(a,b){void 0===b||!b||a.indexRange&&a.initRange&&a.Jf||FZ(a,new GZ("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));b={lmt:a.j.info.lastModified,docid:a.policy.D,fmtid:a.j.info.id,type:a.j.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.D*a.chunkSize+a.B};a.crypto&&(b.ck=a.N,b.civ=a.K);var c="local://localhost/videoplayback?"+EA(b),d,e;b={itag:+a.j.info.itag,mimeType:a.j.info.mimeType,bitrate:8*a.j.info.sb,lastModified:String(a.j.info.lastModified),initRange:null==
(d=a.initRange)?void 0:kSa(d),indexRange:null==(e=a.indexRange)?void 0:kSa(e),url:c};if(d=a.j.info.j)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};
I9a=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){a.qa.delete(b);(c||4===d)&&a.Z.resolve(d)},function(d){a.Z.reject(d)})};
FZ=function(a,b){4!==g.sS(a.policy.D)&&(g.tS(a.policy.D,4),g.BE(b),a.Z.reject(new GZ(b.message)))};
GZ=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};
N9a=function(a){a=g.RP(a,1886614376);for(var b=g.u(a),c=b.next();!c.done;c=b.next());return g.$r(a,function(d){return zRa(d)})};
O9a=function(a){var b=bs(a,function(e,f){return e+f.length},0);
b=new Uint8Array(b);var c=0;a=g.u(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b.set(d,c),c+=d.length;return b};
P9a=function(a,b,c,d,e,f){this.ids=a;this.j=b;this.B=c;this.D=d;this.C=e;this.sz=f};
HZ=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.j=this.cryptoPeriodIndex=NaN;this.C=[];this.Le=!1;this.B=null;if("webm"===(null==b?void 0:b.toLowerCase())||16===a.length)this.Le=!0};
R9a=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=Q9a(b.subarray(c+f,c+f+l));if(null!==m){var n=m;break a}}catch(p){}}c+=e}n=null;break a}catch(p){n=null;break a}n=void 0}if(null!=n)for(b=Fi(Lj(n,7)),null==b||a.Le||(a.cryptoPeriodIndex=b),b=Fi(Lj(n,10)),null!=b&&0<b&&!a.Le&&(a.j=b),n=Wj(n,
2,Ij(n.oa)&34?oea:pea,2),n=g.u(n),b=n.next();!b.done;b=n.next())a.C.push(g.Hg(Zg(b.value),4))};
S9a=function(a){return isNaN(a.cryptoPeriodIndex)?g.Hg(a.initData):""+a.cryptoPeriodIndex};
IZ=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;var e=void 0===d.vG?void 0:d.vG;d=void 0===d.cK?!1:d.cK;this.videoId=a;this.status=b;this.videoDuration=c;this.vG=e;this.cK=d};
T9a=function(a,b,c,d,e){this.videoId=a;this.cP=b;this.B=c;this.bytesDownloaded=d;this.j=e};
JZ=function(a){this.j=a;this.offset=0};
U9a=function(a){if(a.offset>=a.j.totalLength)throw Error();return GN(a.j,a.offset++)};
V9a=function(a,b){b=void 0===b?!1:b;var c=U9a(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=U9a(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+U9a(a),d*=128;return b?c:c-d};
W9a=function(a){try{var b=V9a(a,!0),c=V9a(a,!1);return{id:b,size:c}}catch(d){return{id:-1,size:-1}}};
X9a=function(a){for(var b=new JZ(a),c=-1,d=0,e=0;!d||!e;){var f=W9a(b),h=f.id;f=f.size;if(0>h)return;if(176===h){if(2!==f)return;d=b.ym()}else if(186===h){if(2!==f)return;e=b.ym()}374648427===h?c=b.ym()+f:408125543!==h&&174!==h&&224!==h&&b.skip(f)}b=FN(a,0,c);c=new DataView(b.buffer);c.setUint16(d,3840);c.setUint16(e,2160);d=new BN([b]);CN(d,a);return d};
Z9a=function(a,b,c){var d=this;this.ya=a;this.policy=b;this.K=c;this.logger=new g.RQ("dash");this.B=[];this.j=null;this.Ca=-1;this.Y=0;this.Ga=NaN;this.qa=0;this.C=NaN;this.Z=this.Ma=0;this.Wa=-1;this.La=this.G=this.D=this.Ha=null;this.bb=this.Va=NaN;this.N=this.ra=this.eb=this.gb=null;this.rb=!1;this.Sa=this.timestampOffset=0;this.wd={oY:function(){return d.B}};
if(this.policy.D){var e=this.K,f=this.policy.D;this.policy.Wa&&a.ma("atv",{ap:this.policy.Wa});this.N=new G9a(this.policy,e,function(h,l,m){KZ(a,new IZ(d.policy.D,2,{vG:new T9a(f,h,e.info,l,m)}))});
this.N.Z.promise.then(function(h){d.N=null;1===h?KZ(a,new IZ(d.policy.D,h)):d.ya.ma("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
h instanceof GZ&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.ya.ma("offlinenwerr",{em:l}),Y9a(d),KZ(a,new IZ(d.policy.D,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.ya.ma("dldbwerr",{em:l}),Y9a(d),KZ(a,new IZ(d.policy.D,4,{cK:!0})))})}};
$9a=function(a){return a.B.length?a.B[0]:null};
g$a=function(a,b,c,d){d=void 0===d?0:d;if(a.G){var e=a.G.Tb+a.G.B;if(0<c.info.Tb)if(c.info.Pa===a.G.Pa&&c.info.Tb<e){if(c.info.Tb+c.info.B<=e)return;c=QSa(c,e-c.info.Tb)[1]}else if(0<=c.info.Pa&&0<=a.G.Pa&&!qQ(a.G,c.info))throw new g.XB("improper_continuation",a.G.Tc(),c.info.Tc());e=a.G;var f=c.info;(e.Pa!==f.Pa&&f.Pa!==e.Pa+1||e.type!==f.type?0:qQ(e,f)||(1E-6>=Math.abs(e.C-f.C)&&e.Pa===f.Pa?0:nSa(e,f)))||a$a(a,"d")}else if(0<c.info.Tb)throw new g.XB("continuation_of_null",c.info.Tc());a.G=c.info;
a.K=c.info.j;if(0===c.info.Tb){if(a.j)if(!a.ya.isOffline()||a.policy.Bj)a.ya.ma("slice_not_fully_processed",{buffered:a.j.info.Tc(),push:c.info.Tc()});else throw new g.XB("slice_not_fully_processed",a.j.info.Tc(),c.info.Tc());LZ(a);a.Ma=d}else{if(a.Ma&&d&&a.Ma!==d)throw a=new g.XB("lmt_mismatch",c.info.Pa,a.Ma,d),a.level="WARNING",a;!c.info.j.Gm()&&a.D&&(d=c.info,e=a.D.ej,d.G="updateWithEmsg",d.Pa=e)}if(a.j){d=DQ(a.j,c);if(!d)throw new g.XB("failed_to_merge",a.j.info.Tc(),c.info.Tc());a.j=d}else a.j=
c;a:{c=g.iK(a.j.info.j.info);if(3!==a.j.info.type){if(!a.j.info.Te)break a;6===a.j.info.type?b$a(a,b,a.j):c$a(a,a.j);a.j=null}for(;a.j;){d=a.j.j.totalLength;if(0>=a.Ca&&0===a.Y){var h=a.j.j;e=f=-1;if(c){for(var l=0;l+8<h.totalLength;){var m=HKa(h,l),n=HKa(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 JZ(h);for(m=l=!1;;){n=h.ym();var p=W9a(h),q=p.id;p=p.size;if(!(0<q))break;if(408125543!==q)if(524531317===q)l=!0,0<=p&&(e=h.ym()+p,m=!0);else{if(l&&(160===
q||163===q)&&(0>f&&(f=n),m))break;163===q&&(f=Math.max(0,f),e=h.ym()+p);if(160===q){0>f&&(e=f=h.ym()+p);break}h.skip(p)}}0>f&&(e=-1)}if(0>f)break;a.Ca=f;a.Y=e-f}if(a.Ca>d)break;a.Ca?(d=d$a(a,a.Ca),d.G&&e$a(a,d),b$a(a,b,d),f$a(a,d),a.Ca=0):a.Y&&(d=d$a(a,0>a.Y?Infinity:a.Y),a.Y-=d.j.totalLength,f$a(a,d))}}a.j&&a.j.info.Te&&(f$a(a,a.j),a.j=null)};
c$a=function(a,b){!b.info.j.Gm()&&0===b.info.Tb&&(g.iK(b.info.j.info)||b.info.j.info.Le())&&XSa(b);if(1===b.info.type)try{e$a(a,b),h$a(a,b)}catch(e){g.AE(e);var c=rQ(b.info);c.hms="1";a.ya.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.QP(b);a.N&&L9a(a.N,b);if(c.jg()&&a.policy.C)a:{a=a.ya.manifest;b=b.info.clipId;c=kK(c.info,a.dc);if(b){var d=tTa(a,c);if(a.La[d])break a;a.La[d]=b}a.Ga.push(c)}};
Y9a=function(a){var b;null==(b=a.N)||b.dispose();a.N=null};
i$a=function(a){var b=a.B.reduce(function(c,d){return c+d.j.totalLength},0);
a.j&&(b+=a.j.j.totalLength);return b};
j$a=function(a){if(a.ra&&!a.policy.gq){var b=a.ya;b.manifest.isManifestless&&OQ(b.manifest,a.ra.Pa,!!a.K.info.video)}a.ra=null;a.D=null;a.G=a.gb;a.C=a.G?a.C-a.qa:NaN;LZ(a)};
d$a=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=QSa(c,b);a.j=c[1];return c[0]};
e$a=function(a,b){var c=CQ(b);if(vEa(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new SP(c);UP(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;fK(d)&&!vEa(d)&&(d=CQ(b),(new SP(d)).ao(),YP([408125543,374648427,174,224],21936,d));b.info.j.info.Ag()&&(d=b.info.j,d.info&&d.info.video&&"MESH"===d.info.video.projectionType&&!d.B&&(g.iK(d.info)?d.B=KRa(c):d.info.Le()&&(d.B=URa(c))));b.info.j.info.Le()&&
b.info.Ag()&&(c=CQ(b),(new SP(c)).ao(),YP([408125543,374648427,174,224],30320,c)&&YP([408125543,374648427,174,224],21432,c));if(a.policy.MH&&b.info.j.info.Le()){c=CQ(b);var e=new SP(c);if(UP(e,[408125543,374648427,174,29637])){d=XP(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.Eh()&&g.iK(b.info.j.info)){d=CQ(b);c=g.KP(d,0,1701606260);f=g.KP(d,0,1836476516);if(c&&f){c.skip(2);var h=BP(c),l=DP(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(EP(c)),e.push(EP(c)),
m.push(BP(c)),n.push(BP(c));else for(h=0;h<l;++h)d.push(CP(c)),e.push(CP(c)),m.push(BP(c)),n.push(BP(c));c=g.LP(f);c=new HRa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.iK(b.info.j.info))for(d=CQ(b),e=g.KP(d,0,1701082227);e;)f=e,f.type=1936419184,f.data.setUint32(f.offset+4,1936419184),e=g.KP(d,e.offset+e.size,1701082227);a.rb=!0;b.info.j.D=c}}b.info.j.Gm()||b.info.j.j||b.info.j.indexRange||ZSa(b)};
b$a=function(a,b,c){if(c.info.j.Gm()){if(a.rb&&k$a(c)&&(b=CQ(c),b=g.KP(b,0,1953658222))){b.skip(1);var d=AP(b)<<16|BP(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=DP(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=DP(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.Ha&&!!a.Ha.K.D)if(b=c.info.Ag())b=VSa(c),h=a.Ha,XX?(l=1/b,b=MZ(a,b)>=MZ(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&k$a(c)&&(b=a.Ha,XX?(l=VSa(c),h=1/l,l=MZ(a,l),b=MZ(b)+h-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,JRa(CQ(c),b))}else{h=!1;a.D||(XSa(c),c.B&&(a.D=c.B,h=!0,f=c.info,d=c.B.ej,f.G="updateWithEmsg",f.Pa=d,f=c.B,f.C&&(a.K.index.B=!f.C),f=c.info.j.info,d=CQ(c),g.iK(f)?PRa(d,1701671783):f.Le()&&YP([408125543],307544935,d)));a:if((f=EQ(c,a.policy.Jb))&&WSa(c))l=l$a(a,c),a.Z+=l,f-=l,a.qa+=f,a.C=a.policy.Ik?a.C+f:NaN;else{if(a.policy.Rv){if(d=m=a.ya.Zq(RSa(c),1),0<=a.C&&6!==c.info.type){if(a.policy.Ik&&isNaN(a.Va)){g.BE(new g.XB("Missing duration while processing previous chunk",
c.info.Tc()));a.ya.isOffline()&&!a.policy.Bj||m$a(a,c,d);a$a(a,"m");break a}var n=m-a.C,p=n-a.Z,q=c.info.Pa,r=a.La?a.La.Pa:-1,t=a.bb,v=a.Va,w=a.policy.tp&&n>a.policy.tp,A=10<Math.abs(p),C=1E-7>Math.abs(a.C-d);if(1E-4<Math.abs(p)){a.Sa+=1;var F=null==(e=a.D)?void 0:ERa(e);e={audio:""+ +a.Eh(),sq:q.toFixed(),sliceStart:m,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:v,totalDrift:(1E3*n).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+ +(w||A)};if(null==F?0:F.length)e.adCpn=F[0];a.ya.handleError("qoe.avsync",
e);a.Wa=q}w||A||C||(d=a.C);e=l$a(a,c,m);f-=e;a.Z=n+e;a.policy.B&&(p&&!C||e)&&(n=null==(l=a.D)?void 0:ERa(l),a.ya.ma("discontinuityRewrite",{adCpn:(null==n?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Pa,originalStartTime:m,rewrittenStartTime:d,startTimeAdjustment:d-m,segDrift:(1E3*p).toFixed(),originalDuration:f+e,rewrittenDuration:f,durationAdjustment:e}))}}else d=isNaN(a.C)?c.info.startTime:a.C;m$a(a,c,d)&&(a.qa+=f,a.C=d+f,a.policy.qp&&a.Sa>=a.policy.qp&&(a.Sa=0,a.ya.Po({resetForRewrites:"count"})),
a.policy.vp&&a.Z>a.policy.vp&&a.ya.Po({resetForRewrites:"threshold"}))}a.La=c.info;a.Va=USa(c);0<=c.C&&(a.bb=c.C);if(h&&a.D){h=n$a(a,!0);xSa(c.info,h);a.j&&xSa(a.j.info,h);b=g.u(b);for(l=b.next();!l.done;l=b.next())l=l.value,e=void 0,a.policy.G&&l.Pa!==(null==(e=a.D)?void 0:e.ej)||xSa(l,h);(c.info.Te||a.j&&a.j.info.Te)&&6!==c.info.type||(a.ra=h,b=a.ya,b.manifest.isManifestless&&o$a(b,h,null,!!a.K.info.video),a.policy.je||p$a(a))}}h$a(a,c);a.timestampOffset&&TSa(c,a.timestampOffset)};
f$a=function(a,b){if(b.info.Te){a.gb=b.info;if(a.D){var c=a.D,d=n$a(a,!1),e=null;if(a.D.cF()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=ERa(c),h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.u(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m=g.u(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n=
m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}l=[];if(c.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.u(c.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),n=m.next();!n.done;n=m.next())l.push((Number(n.value)||0)/1E6);e=new P9a(e,f,h,l,g.FRa(c),g.GRa(c))}a.ya.IR(a.K,d,e);a.ra||a.policy.je||p$a(a);a.ra=null}LZ(a)}a.N&&L9a(a.N,b);if(c=a.Io())if(c=DQ(c,b,a.policy.Ml)){a.B.pop();a.B.push(c);return}a.B.push(b)};
LZ=function(a){a.j=null;a.Ca=-1;a.Y=0;a.D=null;a.Ga=NaN;a.qa=0;a.ra=null};
a$a=function(a,b){b={rst4disc:b,cd:a.Z.toFixed(3),sq:a.La?a.La.Pa:-1};a.C=NaN;a.Z=0;a.Wa=-1;a.La=null;a.bb=NaN;a.Va=NaN;a.eb=null;a.ya.ma("mdstm",b)};
h$a=function(a,b){if(a.K.info.le){if(b.info.j.info.Le()){var c=new SP(CQ(b));if(UP(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=XP(c,!0);c=16!==d?null:TRa(c,d)}else c=null;d="webm"}else b.info.N=N9a(CQ(b)),c=O9a(b.info.N),d="cenc";c&&c.length&&(c=new HZ(c,d),a.policy.FD&&g.iK(b.info.j.info)&&(d=RRa(CQ(b)))&&(c.B=d),c.Le=b.info.j.info.Le(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),b.B&&b.B.B&&(c.j=b.B.B),a.ya.Qx(c))}};
p$a=function(a){var b=a.D,c=CRa(b);c&&(c.startSecs+=a.Ga,a.ya.HR(a.K,c,b.ej,b.cF()))};
n$a=function(a,b){var c,d=a.D;if(c=CRa(d))c.startSecs+=a.Ga;return new yP(d.ej,a.Ga,b?d.Lj:a.qa,d.ingestionTime,"sq/"+d.ej,void 0,void 0,b,c)};
m$a=function(a,b,c){if(!SSa(b,c))return b=rQ(b.info),b.smst="1",a.ya.handleError("fmt.unparseable",b||{},1),!1;isNaN(a.Ga)&&(a.Ga=c);return!0};
l$a=function(a,b,c){var d=0;if(b.info.j.info.Le()&&!WSa(b))return 0;if(a.Ha&&!a.Eh()){var e=0;c&&g.iK(b.info.j.info)?e=c-a.C:b.info.j.info.Le()&&(e=a.Z);var f=b.info.Pa;c=EQ(b,a.policy.Jb);var h=a.Ha;var l=h.Wa;h=h.Z;var m=.02<Math.abs(h-e);if((f===l||f>l&&f>a.Wa)&&m){d=Math.max(.95,Math.min(1.05,(c-(h-e))/c));if(g.iK(b.info.j.info))JRa(CQ(b),d);else if(b.info.j.info.Le()&&(f=e-h,!g.iK(b.info.j.info)&&(b.info.j.info.Le(),d=new SP(CQ(b)),l=b.G?d:new SP(new DataView(b.info.j.j.buffer)),EQ(b,!0)))){var n=
1E3*f,p=cQ(l);l=d.pos;d.pos=0;if(160===d.j.getUint8(d.pos)||dQ(d))if(WP(d,160))if(XP(d,!0),WP(d,155)){if(f=d.pos,m=XP(d,!0),d.pos=f,n=1E9*n/p,p=ZP(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=EQ(b,a.policy.Jb);d=c-d}d&&b.info.j.info.Le()&&a.ya.ma("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+d,audioDrift:h})}return d};
k$a=function(a){return a.info.j.Gm()&&a.info.Pa===a.info.j.index.Ad()};
MZ=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.K.D&&b&&(b+=a.K.D.j);return b+a.getDuration()};
q$a=function(a,b){0>b||(a.B.forEach(function(c){TSa(c,b)}),a.timestampOffset=b)};
MY=function(a,b,c,d,e){ZY.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.Yf=d;this.lastError=null;this.j=new g.Iv(function(){f.isComplete()||(f.lastError="net.timeout",f.Hc(5))},this.policy.DD);
this.Cg=function(){f.Na()||(f.Yf.Xc.has(f.formatId)?(f.isComplete()||f.j.start(),VX(f.Yf,f.formatId)&&f.mB(2),f.Yf.Og(f.formatId)&&(F5a(f.Yf,f.formatId)?f.Hc(4):(f.lastError="net.closed",f.Hc(5)))):(f.lastError="player.exception",f.Hc(5)))};
this.j.start();A5a(this.Yf,this.formatId,this.Cg);g.dg(this.Cg)};
NZ=function(a,b,c,d){g.I.call(this);var e=this;this.ya=a;this.policy=b;this.j=c;this.timing=d;this.logger=new g.RQ("dash");this.C=[];this.ra=[];this.B=this.Rb=null;this.Ga=!1;this.La=this.Ma=0;this.K=-1;this.qa=!1;this.Ca=-1;this.Ha=null;this.Y=NaN;this.wd={xP:function(){return e.D},
aqb:function(){return e.C},
vpb:function(){return e.N}};
this.D=new Z9a(a,b,c);this.policy.C&&(this.N=new y7a(this.D,this.ya.getManifest(),this.policy,function(f){e.policy.kp&&e.ya.ma("buftl",f)}));
this.sb=c.info.sb;this.Z=c.FA();this.isManifestless=c.FA();this.G=this.Z;g.N(this,this.Ha)};
OZ=function(a,b,c){c=void 0===c?!1:c;b&&XX&&q$a(a.D,b.JP());if(!c){var d;null==(d=a.N)||G7a(d)}a.Rb=b;null!=(b=a.N)&&(b.Rb=a.Rb)};
PZ=function(a){var b=a.Rb&&a.Rb.gA();if(a.policy.Xv){if(null==(a=a.N))a=void 0;else{var c;a=null==(c=a.B)?void 0:c.info}return a||null}return b};
r$a=function(a){for(var b={},c=0;c<a.ra.length;c++)b["r"+c]=a.ra[c];return b};
s$a=function(a,b){isNaN(a.Y)||a.ya.ma("aswr",{sq:b.info.ib[0].Pa,id:b.info.ib[0].j.info.itag,xtag:b.info.ib[0].j.info.j,ep:Date.now()-a.Y});a.C.push(b);a.B=g.Bb(b.info.ib);a.ra.push(b.Tc());4<a.ra.length&&a.ra.shift()};
t$a=function(a,b){if(b.yl()){var c=b.Hk();c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.B&&b instanceof MY&&a.ya.ma("omblss",{s:d.info.Tc()}),QZ(a,b.info.ib,d,b.GP())}};
QZ=function(a,b,c,d){d=void 0===d?0:d;isNaN(a.Y)||(a.ya.ma("aswm",{sq:b[0].Pa,id:b[0].j.info.itag,xtag:b[0].j.info.j,ep:Date.now()-a.Y}),a.Y=NaN);switch(c.info.type){case 1:case 2:u$a(a,c);break;case 4:var e=c.info.j,f=e.zV(c),h;(null==(h=a.B)?0:4===h.type)&&vSa(c.info,a.B)&&(a.B=e.TB(a.B).pop());c=g.u(f);for(e=c.next();!e.done;e=c.next())QZ(a,b,e.value,d);break;case 3:c.info.j.info.video?(e=a.timing,e.Ha||(e.Ha=(0,g.wC)(),aL("fvb_r",e.Ha,e.j))):(e=a.timing,e.K||(e.K=(0,g.wC)(),aL("fab_r",e.K,e.j)));
g$a(a.D,b,c,d);a.policy.C&&v$a(a);break;case 6:g$a(a.D,b,c,d),a.B=c.info}};
u$a=function(a,b){if(1===b.info.type)if(b.info.j.info.video){var c=a.timing;c.La||(c.La=(0,g.wC)(),aL("vis_r",c.La,c.j))}else c=a.timing,c.Z||(c.Z=(0,g.wC)(),aL("ais_r",c.Z,c.j));c$a(a.D,b);a=a.ya;a.videoTrack.j.jg()&&a.audioTrack.j.jg()&&a.policy.C&&!a.manifest.dc&&(b=a.audioTrack.getDuration(),c=a.videoTrack.getDuration(),1<Math.abs(b-c)&&a.ma("trBug",{af:""+kK(a.audioTrack.j.info,!1),vf:""+kK(a.videoTrack.j.info,!1),a:""+b,v:""+c}))};
TY=function(a){return $9a(a.D)};
v$a=function(a){a.C.length?a.B=g.Bb(g.Bb(a.C).info.ib):a.D.B.length?a.B=a.D.Io().info:a.B=PZ(a)};
RZ=function(a,b){var c={qd:[],Ho:[]},d;if(null==(a=a.N))a=void 0;else{F7a(a,a.qd,"og");D7a(a,b);F7a(a,a.qd,"trim");var e=E7a(a);b=e.qd;e=e.yB;for(var f=[],h=0;h<e.length;h++){var l=e[h];f.push({formatId:kK(l.info.j.info,a.manifest.dc),Kj:l.info.Kj,sequenceNumber:l.info.Pa+a.D,pJ:{Sg:1E3*((a.policy.Sa&&-1!==l.C?l.C:l.info.startTime)+a.timestampOffset),Vz:1E3*(a.policy.Sa&&-1!==l.D?l.D:l.info.duration),Ks:1E3},GZ:l.info.B})}a={qd:b,Ho:f}}return null!=(d=a)?d:c};
w$a=function(a){var b;if(null==(b=a.N))var c=void 0;else a:{var d=a.ya.gg(),e;a=(null==(e=b.B)?void 0:e.info.D)||0;var f;if((null==(f=b.B)?0:f.info.clipId)&&d&&(b=pY(d,null==(c=b.B)?void 0:c.info.clipId))){c=a+b/1E3;break a}c=a}return c};
x$a=function(a){var b;return null==(b=a.N)?void 0:b.K};
PY=function(a,b,c){c=void 0===c?!1:c;if(a.Rb){var d=a.Rb.He(),e=tK(d,b),f=NaN,h=PZ(a);h&&(f=tK(d,h.j.index.getStartTime(h.Pa)));if(e===f&&a.B&&a.B.B&&y$a(z$a(a),0))return b}a=A$a(a,b,c);return 0<=a?a:NaN};
QY=function(a,b,c){a.j.jg();var d=A$a(a,b);if(0<=d)return d;if(null!=(d=a.N)){var e=b;d.policy.Kb&&null!=c&&c.vF||(d.yB=[]);D7a(d,!0);d.C=z7a(d.qd,1E3*e)}c=Math;d=c.min;e=a.D;if(e.N)if(e=e.N,e.Jf&&3===e.Jf.type)e=e.Jf.startTime;else if(0<e.C){var f=e.j.index;f=g.Sb(f.offsets.subarray(0,f.count),e.C*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.j){var h,l;c=null==(h=a.ya.gg())?void 0:null==(l=qY(h,b))?void 0:l.clipId;a.B=a.j.Fr(b,
void 0,c).ib[0]}else a.B=a.j.Fr(b).ib[0];SZ(a)&&a.Rb&&a.Rb.abort();a.La=0;return a.B.startTime};
B$a=function(a){a.Z=!0;a.G=!0;a.K=-1;QY(a,Infinity)};
TZ=function(a){for(var b=0,c=g.u(a.C),d=c.next();!d.done;d=c.next())b+=ASa(d.value.info);return b+=i$a(a.D)};
VZ=function(a,b){b=void 0===b?!1:b;var c=a.ya.getCurrentTime(),d=a.D.Io(),e=(null==d?void 0:d.info.D)||0;a.policy.xj&&(null==d?0:d.info.j.FA())&&!d.info.Te&&(e=d.info.C);if(a.policy.j&&d&&d.info.clipId){var f,h=((null==(f=a.ya.gg())?void 0:pY(f,d.info.clipId))||0)/1E3;e+=h}if(!a.Rb)return a.policy.C&&b&&!isNaN(c)&&d?e-c:0;if((f=PZ(a))&&UZ(a,f))return f.D;f=a.Rb.He(!0);return b&&d?(b=0,a.policy.C&&(b=vK(f,e+.02)),b+e-c):vK(f,c)};
C$a=function(a,b){if(a.C.length){if(a.C[0].info.ib[0].startTime<=b)return;OY(a)}for(var c=a.D,d=c.B.length-1;0<=d;d--)c.B[d].info.startTime>b&&c.B.pop();v$a(a);a.B&&b<a.B.startTime&&(a.La=0,a.j.jg()?a.B=a.j.Fr(b,!0).ib[0]:a.B=null)};
D$a=function(a,b,c,d){OY(a);for(var e=a.D,f=null,h=e.B.length-1;0<=h;h--){var l=e.B[h];l.info.Pa>=b&&(e.B.pop(),e.C-=EQ(l,e.policy.Jb),f=l.info)}f&&(e.G=0<e.B.length?e.B[e.B.length-1].info:e.eb,0!==e.B.length||e.G||a$a(e,"r"));e.ya.ma("mdstm",{rollbk:1,itag:f?f.j.info.itag:"",popped:f?f.Pa:-1,sq:b,lastslc:e.G?e.G.Pa:-1,lastfraget:e.C.toFixed(3)});d>c?QY(a,d):a.B=a.j.Ws(b-1,!1).ib[0]};
XZ=function(a,b){var c;for(c=0;c<a.C.length&&b!==a.C[c];c++);if(c===a.C.length)WZ(a,b);else{for(;c<a.C.length;)WZ(a,a.C.pop());var d=E$a(a);d&&d.j.kx()&&Ys(b.info.ib,function(e){return wSa(e,d)})?(a.B=d,a.policy.B&&a.ya.ma("cer",{lsr:"lsp",
lsp:d.Tc()})):(pQ(b.info.ib[0])?(a.B=b.cg&&b.cg.C?tSa(b.cg.C):sSa(b.info.ib[0]),a.policy.B&&a.ya.ma("cer",{lsr:a.B.Tc(),lsp:null==d?void 0:d.Tc()})):(a.B=null,a.policy.B&&a.ya.ma("cer",{lsr:"null",lsp:null==d?void 0:d.Tc()})),a.ya.isOffline()&&!a.policy.Bj||WZ(a,b,!0))}};
UZ=function(a,b){if(!b)return!1;if(a.policy.j){var c;if((a=null==(c=a.ya.gg())?void 0:c.ea.getVideoData().clientPlaybackNonce)&&b.clipId!==a)return!1}return nQ(b)};
SZ=function(a){var b;!(b="f"===a.j.info.qb)&&(b=a.policy.D)&&(b=a.D,b=!!b.N&&DZ(b.N));if(b)return!0;b=PZ(a);if(!b)return!1;var c=UZ(a,b)&&b.Te;return a.isManifestless&&0<a.Ca?c||b.Pa>=a.Ca:c};
YZ=function(a){var b;return SZ(a)||UZ(a,null==(b=a.D.Io())?void 0:b.info)};
z$a=function(a){var b=[],c=PZ(a);c&&b.push(c);b=g.Kb(b,a.D.Qn());c=g.u(a.C);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e=g.u(d.info.ib),f=e.next(),h={};!f.done;h={MG:void 0},f=e.next())h.MG=f.value,d.aQ&&(b=g.Ot(b,function(l){return function(m){return!vSa(m,l.MG)}}(h))),(pQ(h.MG)||4===h.MG.type)&&b.push(h.MG)}a.B&&!mSa(a.B,g.Bb(b),a.B.j.Gm())&&b.push(a.B);
return b};
y$a=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!nSa(a[b-1],a[b]))return!1;return!0};
A$a=function(a,b,c){c=void 0===c?!1:c;if(!a.B||!a.B.B)return NaN;a=z$a(a);a:{b+=.02;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:y$a(a,c?b:0)?a[b].startTime:NaN};
ZZ=function(a){return!(!a.B||a.B.j===a.j)};
F$a=function(a){return ZZ(a)&&a.j.jg()&&a.B.j.info.sb<a.j.info.sb};
G$a=function(a,b,c){if(a.policy.xj)return VZ(a,!0)<c;var d=E$a(a);return d&&!UZ(a,d)?d.D>b&&d.D<b+c:!1};
E$a=function(a){var b=a.D.Io();return b?b.info:PZ(a)};
H$a=function(a){return(a=E$a(a))?a.Pa:-1};
OY=function(a){for(var b=g.u(a.C),c=b.next();!c.done;c=b.next())WZ(a,c.value);a.C=[];a.B=null};
I$a=function(a,b,c){b.aQ&&((void 0===c?0:c)||!b.info.ib[0].j.kx())&&(a.logger.debug(function(){return"Rolling back request with segNum "+b.info.ib[0].Pa}),j$a(a.D))};
WZ=function(a,b,c){I$a(a,b,void 0===c?!1:c);b.dispose()};
J$a=function(a){return!!a.B&&-1!==a.B.Pa&&a.B.Pa<a.j.index.Mn()};
K$a=function(a){var b=a.B;b&&-1===b.Pa&&(a=a.D.Io())&&pQ(a.info)&&(a=a.info.Pa,b.G="updateLastSliceRequested",b.Pa=a)};
L$a=function(a){return Ys(a.C,function(b){return b.AB})};
M$a=function(a,b){a.B&&(a.B.j=b)};
$Z=function(a){var b=TY(a),c=a.ya.gg();if(a=b&&c&&!a.policy.MA&&b.info.clipId){a:if(b=b.info.clipId,c.kT&&c.Gw&&c.Gw!==b)c=!1;else{if(b=c.Ti.get(b))if(b=b.getId().split(","),1<b.length)for(a=0;a<b.length;a++){var d=a<b.length-1?b[a+1]:"";if(c.qk.has(b[a])){c=b[a]===c.Wb&&!c.qk.has(d);break a}}c=!0}a=!c}return a?!0:!1};
N$a=function(a){return a.Rb?a.Rb.sF():!1};
O$a=function(a,b){var c=TY(a);return c&&6!==c.info.type?!!(1===b.B||2===b.B||0!==b.B&&a===b.Ca&&c.info.Pa>H$a(b.Y)):!1};
P$a=function(a){var b=PZ(a),c,d=null==(c=a.Rb)?void 0:c.He();c=NaN;b&&d&&SZ(a)&&(c=tK(d,(b.C+b.D)/2));return!isNaN(c)};
Q$a=function(a){var b=void 0===a?{}:a;a=b.Xj;var c=b.lj;var d=b.Mj;var e=b.Ad;b=b.Kw;this.Xj=a;this.lj=c;this.Mj=d;this.Ad=e;this.Kw=b};
X7a=function(a,b){if(0>b)return!0;var c=a.Ad();return b<c||b===c&&!a.Xj||b===c&&(a=a.Kw())&&b===a.Pa?!0:!1};
Y7a=function(a,b,c){if(!X7a(a,b))return 0;if(!a.lj||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.Ad();return b<c||b===c&&(a=a.Kw())&&b===a.Pa&&!a.pending?2:1};
a_=function(a,b,c){g.I.call(this);this.ya=a;this.policy=b;this.Nc=c;this.delay=new g.Iv(this.C,this.policy.Sf,this);this.B=0;this.j=!1;g.N(this,this.delay)};
R$a=function(a,b){vP(b.j)||(a.resource=b,a.B=0,g.Jv(a.delay))};
S$a=function(a,b,c,d,e){var f=this;this.ya=a;this.policy=b;this.Nc=c;this.resource=d;this.Oj=e;this.done=!1;this.size=Math.ceil(Math.min(1E5,.1*wR(this.Nc)));this.timing=new XY(this,{Nc:this.Nc,Xz:this.size,lr:!0,Tu:function(){},
dJ:this.policy.B});this.onTimeout=function(){f.done||(f.done=!0,f.onError("net.timeout"))};
a=fSa(this.resource,this.Oj,this.policy).base.clone();tP(a);"/videogoodput"!==a.path&&(a.path="/videogoodput",a.url="");this.location=new eQ(a);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=aZ(this.location,this.policy.N,this.timing,this.policy.Qs,{});setTimeout(this.onTimeout,1E4)};
T$a=function(a,b,c){var d=a.Pw();if(a.isComplete()||!d||a.info.resource.Oj(b,c)||2>d)return 0;a=fQ(c,gSa(a.info.resource,!0,b));return a.j||a.timedOut||a.started?0:2};
U$a=function(a,b,c){if(!(b.Bv&&a.isComplete()&&a.canRetry()&&a.info.resource.Oj(b,c)))return 0;a=fQ(c,gSa(a.info.resource,!1,b));return a.B+b.Bv*dSa(a,!0)>(0,g.wC)()?0:1};
b_=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){t=void 0===t?null:t;g.I.call(this);var v=this;this.ya=a;this.policy=b;this.videoTrack=c;this.audioTrack=d;this.D=e;this.j=f;this.timing=h;this.G=l;this.schedule=m;this.manifest=n;this.C=p;this.Y=q;this.kM=r;this.oi=t;this.qa=!1;this.BG="";this.vl=null;this.gh=NaN;this.ra=!1;this.B=null;this.rh=this.Z=NaN;this.jq=this.K=0;this.logger=new g.RQ("dash");this.wd={zQ:function(w,A){return v.zQ(w,A)}};
0<this.policy.Aq&&(this.BG=g.ND(this.policy.Aq));this.policy.Sf&&(this.N=new a_(this.ya,this.policy,this.schedule),g.N(this,this.N))};
Y$a=function(a,b,c){var d=b.B?b.B.j.resource:b.j.resource;var e=a.D,f;(f=!a.policy.uF)||(f=uP(d.j)===uP(d.C));f?d=!1:(e=fQ(e,uP(d.C)),f=6E4*Math.pow(e.D,1.6),(0,g.wC)()<e.B+f?d=!1:(e.B=(0,g.wC)(),e.D+=1,d.j=d.C.clone(),d=!0));d&&a.ya.ma("hostch",{},!0);if(V$a(a,b,c)){if(b.Z)a.manifest.isLive?(c=a.manifest.cf&&a.manifest.C?b.j.Ws(a.manifest.cf,!1):b.j.Fr(Infinity),c.gh=a.gh):c=b.j.Ws(0,!1),a.Y?0===c.gh&&(c.G=a.Y.Z):c.G=a.Z;else if(d=b.B,d.j.jg()){e=d.D-a.ya.getCurrentTime();var h=!d.range||0===d.B&&
0===d.Tb?0:d.range.length-(d.Tb+d.B);f=d.j;a.zQ(b,e)&&0===h&&(a.manifest.isManifestless?f=b.j:(f=d.startTime+W$a,d.B&&(f+=d.duration),QY(b,f),d=b.B,f=d.j));f.Gm()?(h=a.C,e=v7a(a.G,f.info.sb,c.j.info.sb,e,0<h.D.length&&0===h.Z&&a.ya.Zp),c=d,f=ZZ(b),d=c.j.bz(c,e),(e=d.C)&&1<d.ib.length&&(f||d.resource.B||d.ib[0].j!==c.j?d=c.j.bz(c,d.ib[0].B):(f=d.ib[d.ib.length-1],h=f.B/e,!f.Te&&.4>h&&(d=c.j.bz(c,e-f.B)))),c=d):(0>d.Pa&&(c=rQ(d),c.pr=""+b.C.length,a.ya.isSeeking()&&(c.sk="1"),c.snss=d.G,a.ya.ma("nosq",
c)),c=f.oD(d));if(a.policy.Ha)for(d=g.u(c.ib),e=d.next();!e.done;e=d.next())e.value.type=6}else d.j.Gm()?(c=v7a(a.G,b.j.info.sb,c.j.info.sb,0),c=d.j.bz(d,c)):c=d.j.oD(d);if(a.B){var l=c.ib[0].j.info.id;d=a.j;e=c.ib[0].Pa;d=0>e&&!isNaN(d.G)?d.G:e;e=j9a(a.j,c.ib[0].C,d);var m=b===a.audioTrack?1:2;h=c.ib[0].j.info.qb;f=l.split(";")[0];a:{var n=a.j;if(n.j){var p=n.j.Yg.event;if(n.j.Pa===d){n="predictStart"===p?void 0:n.j.Yg.event;break a}if(n.j.Pa===d-1){n="start"===p||"continue"===p?p:void 0;break a}}n=
void 0}if(a.policy.Ga&&0!==a.j.B){var q=a.B.OJ(e,d,l,m,h,n);0>d&&2===m&&qZ(a.j,0,0,!0);if(q){var r;l=(null==(r=q.Tm)?void 0:r.Ft)||"";var t;r=(null==(t=q.Tm)?void 0:t.O1)||-1;a.ya.ma("sdai",{ssdaiinfo:"1",ds:l,skipsq:r,itag:f,f:h,sg:d,st:e.toFixed(3)});c.D=q}}else if(t=a.B.cA(e,d,l,m,h,n),0>d&&2===m&&qZ(a.j,0,0,!0),t){r={dec_sq:d,itag:f,st:e.toFixed(3)};if(a.policy.IC&&b.isRequestPending(d-1)){a.ya.ma("sdai",{wt_daistate_on_sg:d-1});return}a.ya.ma("sdai",r);t&&(c.j=new g.sP(t));a.policy.B&&(t=c.resource.EJ("id")||
"",r=(null==(q=c.j)?void 0:q.get("id"))||"",t!==r&&a.ya.ma("stmidmismatch",{cid:t,aid:r}))}else 5!==a.j.B&&a.ya.ma("sdai",{nodec_sq:d,itag:f,st:e.toFixed(3)})}a.policy.Pl&&-1!==c.ib[0].Pa&&c.ib[0].Pa<a.manifest.cf&&(c=b.j.Ws(a.manifest.cf,!1));s$a(b,X$a(a,c));nZ(a.timing);var v;null==(v=a.N)||R$a(v,c.resource)}};
V$a=function(a,b,c){if(a.policy.uh&&a.policy.Ok)return!1;var d;var e=a.j,f=(null==(d=b.B)?void 0:d.Pa)||-1;3===e.B&&f+1>=e.D?(e.ma("sdai",{haltrq:f+1,est:e.D}),d=!1):d=2!==e.B;if(!d||!hSa(b.B?b.B.j.resource:b.j.resource,a.policy,a.D)||a.ya.isSuspended&&(!xR(a.schedule)||a.ya.YI))return!1;if(a.policy.D&&5<=vS)return g.Jv(a.ya.HF),!1;if(a.manifest.isManifestless){if(0<b.C.length&&b.B&&-1===b.B.Pa||b.C.length>=a.policy.pp||!a.policy.GD&&0<b.C.length&&!a.policy.N.lj)return!1;if(b.Z)return!a.manifest.isLive||
!isNaN(a.gh)}if(L$a(b))return a.logger.debug("Pending request with server-selectable format found"),!1;if(!b.B){if(!b.j.jg())return!1;QY(b,a.ya.getCurrentTime())}if(TY(b)&&(b.Io()!==TY(b)||a.ya.isSuspended))return!1;e=(d=a.policy.mz)&&!b.C.length&&VZ(b,!0)<Math.min(d,VZ(c));d=b.C.length+c.C.length;f=!a.policy.Yz&&((b.C.length?b.C[0].lx():!1)||(c.C.length?c.C[0].lx():!1)||a.manifest.isLive);(e||f)&&--d;if(d+1>=a.policy.wp)return!1;d=b.B;if(!d)return!0;4===d.type&&d.j.jg()&&(b.B=g.Bb(d.j.TB(d)),d=b.B);
if(!nQ(d)&&!d.j.Vs(d))return!1;f=a.manifest.Yd||a.manifest.C;if(a.manifest.isManifestless&&f){f=b.j.index.Ad();var h=c.j.index.Ad();f=Math.min(f,h);if(0<b.j.index.xJ()&&0<f&&d.Pa>=f)return b.Ca=f,c.Ca=f,!1}if(d.j.info.audio&&4===d.type||nQ(d))return!1;f=!b.G&&!c.G;if(e=!e)e=d.D,e=!!(c.B&&!UZ(c,c.B)&&c.B.D<e);h=b===a.videoTrack&&a.policy.Ha;return e&&(!a.manifest.isManifestless||c.B&&c.B.D&&d.D)&&f&&!h||a.policy.gb&&!b.G&&c.G?!1:pQ(d)&&d.D>Z$a(a,b)?(Z$a(a,b),!1):(a=b.Rb)&&a.isLocked()?!1:!0};
Z$a=function(a,b){var c=a.j;c=c.j?c.j.Yg:null;if(a.policy.Ha&&c)return c.startSecs+c.Bh+15;b=c_(a.ya,b);0<a.policy.rb&&(c=((0,g.wC)()-a.ya.eq)/1E3,b=Math.min(b,a.policy.rb+a.policy.Tf*c));c=a.ya.getCurrentTime()+b;return a.policy.Py&&(b=$$a(a.ya)+a.policy.Py,b<c)?(a.ya.ma("mrl",{ori:c,mod:b},!0),a.policy.QC&&(a=a.ya,c=(0,g.wC)(),a.eq=c),b):c};
aab=function(a,b,c){if(0!==c){a:if(b=b.info,c=2===c,b.j)b=null;else{var d=b.ib[0];if(b.range)var e=kQ(b.range.start,Math.min(4096,b.C));else{if(b.B&&0<=b.B.indexOf("/range/")||"1"===b.resource.EJ("defrag")||"1"===b.resource.EJ("otf")){b=null;break a}e=kQ(0,4096)}e=new sQ([new mQ(5,d.j,e,"createProbeRequestInfo"+d.G,d.Pa)],b.B);e.Oj=c;e.j=b.j;b=e}b&&X$a(a,b)}};
X$a=function(a,b){a.ya.SJ(b);var c=ASa(b),d=bab(a.ya);c={Nc:a.schedule,Xz:c,ZR:t7a(a.G,c),Ep:oQ(b.ib[0]),lr:vP(b.resource.j),dJ:a.policy.B,Tu:function(e,f){a.ya.EG(e,f)}};
a.vl&&(c.Pa=b.ib[0].Pa,c.gh=b.gh,c.vl=a.vl);d={mw:BSa(b,a.ya.getCurrentTime()),sG:a.policy.zd&&tQ(b)&&b.ib[0].j.info.video?D9a(a.C):void 0,oH:a.policy.Ha,poToken:a.ya.FJ(),Tx:a.ya.mA(),BG:a.BG,rh:isNaN(a.rh)?null:a.rh,oi:a.oi,kM:a.kM,jq:a.jq,CB:d};return new NY(a.policy,b,c,a.D,function(e,f){try{a:{var h=e.info.ib[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.Pw()||!(!a.ya.Qa||a.ya.isSuspended||3<VZ(l))){var m=T$a(e,a.policy,a.D);1===m&&(a.ra=!0);aab(a,e,m);if(e.isComplete()||
e.Na()&&3>f){if(a.policy.B){var n=e.timing.Sq();n.rst=e.state;n.strm=e.xhr.pC();n.cncl=e.xhr&&e.Cd.D?1:0;a.ya.ma("rqs",n)}e.w1&&a.ya.ma("sbwe3",{},!0)}if(!a.Na()&&2<=e.state){d9a(a.timing,e,h);var p=a.ya;a.rh&&e.vI&&p&&(a.rh=NaN,a.ya.eT(e.vI),a.ya.sO(),a.ya.ma("cabrUtcSeek",{mediaTimeSeconds:e.vI}));e.YB&&(0<e.Lp&&a.ya.ma("sError",{errorHttpResponseCode:e.Lp.toString()}),a.rh&&e.YB&&!e.YB.action&&(a.ya.BK(a.rh),a.rh=NaN,a.ya.ma("cabrUtcSeekFallback",{targetUtcTimeSeconds:a.rh})));a.policy.Ok&&e.hj&&
a.ya.Nm(e.hj);a.policy.vc&&(a.jq=e.jq);if(3===e.state){XZ(l,e);tQ(e.info)&&d_(a,l,h,!0);if(a.B){var q=e.info.cA();q&&a.B.fl(e.info.ib[0].Pa,h.info.id,q,e.info.ib[0].startTime)}a.ya.mf()}else if(e.isComplete()&&5===e.info.ib[0].type){if(4!==e.state)e.Fm()&&a.ya.handleError(e.dh(),e.Br());else{var r=(e.info.ib[0].j.info.video?a.videoTrack:a.audioTrack).C[0]||null;r&&r instanceof NY&&r.Pw()&&r.xH(!0)}e.dispose()}else{e.Fm()||cab(a,e);var t;(null==(t=e.RA)?0:t.itagDenylist)&&a.ya.aL(e.RA.itagDenylist);
if(4===e.state)dab(a,e),a.j&&h9a(a.j,e.info,a.B);else if(a.policy.Qs&&e.yl()&&!e.isComplete()&&!dab(a,e)&&!e.Fm())break a;e.Fm()&&(eab(a,e),isNaN(a.rh)||(a.ya.BK(a.rh),a.rh=NaN));a.ya.mf();var v=U$a(e,a.policy,a.D);aab(a,e,v)}}}}}catch(w){f=a.qa?1:0,a.qa=!0,e=SJ(f),f=TJ(w,f),a.ya.handleError(f.errorCode,f.details,f.severity),e||a.ya.Wk()}},d)};
cab=function(a,b){if(b.AB&&2<=b.state&&3!==b.state){var c=b.xhr.getResponseHeader("X-Response-Itag");if(c){a.logger.debug(function(){return"Applying streamer-selected format "+c});
var d=C9a(a.C,c),e=b.info.C;e&&(e-=d.yP(),d.C=!0,b.info.ib[0].j.C=!1,P8a(b,d.Ow(e)),e_(a.ya,a.videoTrack,d),M$a(a.videoTrack,d),a.ya.VR(d.info.video.quality),(e=b.GP())&&d.info.lastModified&&d.info.lastModified!==+e&&XZ(a.videoTrack,b))}else b.AB=!1}};
eab=function(a,b){var c=b.info.ib[0].j,d=b.dh();if(vP(c.resource.j)){var e=g.Ig(b.wf(),3);a.ya.ma("dldbrerr",{em:e||"none"})}e=b.info.ib[0].Pa;var f=j9a(a.j,b.info.ib[0].C,e);"net.badstatus"===d&&(a.K+=1);if(b.canRetry()&&fab(a.ya)){if(!(b.info.resource.B>=a.policy.Tv&&a.B&&b.info.Xp()&&"net.badstatus"===d&&a.B.iE(f,e))){e=(c.info.video&&1<c.resource.B||410===b.Bg||500===b.Bg||503===b.Bg)&&!(0<vZ(a.C.G).size)&&!vP(c.resource.j);f=b.Br();var h=c.info.video?a.videoTrack:a.audioTrack;e&&(f.stun="1");
a.ya.handleError(d,f);a.Na()||(e&&(a.logger.debug(function(){return"Stunning format "+c.info.id}),AZ(a.C,c)),XZ(h,b),a.ya.mf())}}else h=1,a.B&&b.info.Xp()&&"net.badstatus"===d&&a.B.iE(f,e)&&(h=0),a.manifest.isLive&&"net.badstatus"===b.dh()&&a.K<=2*a.policy.Pi?(OTa(a.manifest),a.manifest.Yd||a.manifest.isPremiere?SY(a.ya,0,{yd:"badStatusWorkaround"}):a.manifest.C?SY(a.ya,a.manifest.bb,{yd:"badStatusWorkaround",
Zq:!0}):f_(a.ya)):a.ya.handleError(d,b.Br(),h)};
dab=function(a,b){if(a.policy.useUmp&&b.Na())return!1;try{var c=b.info.ib[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.manifest.isManifestless&&d){a.K=0;d.Z&&(b.Na(),b.isComplete()||b.yl(),d.Z=!1);b.kP()&&a.ya.II.Ri(1,b.kP());var e=b.xJ(),f=b.fY();PTa(a.manifest,e,f)}if(b.info.Ep()&&!ySa(b.info))for(var h=g.u(b.Hk()),l=h.next();!l.done;l=h.next())u$a(d,l.value);for(a.ya.getCurrentTime();d.C.length&&4===d.C[0].state;){var m=d.C.shift();t$a(d,m);d.Ma=m.aY()}d.C.length&&t$a(d,d.C[0]);var n=!!TY(d);
n&&b instanceof MY&&(c.info.Eh()?X8a(a.timing):W8a(a.timing));return n}catch(p){b=b.Br();b.origin="hrhs";a:{a=a.ya;c=p;if(c instanceof Error){b.msg||(b.msg=""+c.message);b.name||(b.name=""+c.name);if(c instanceof g.XB&&c.args)for(d=g.u(Object.entries(c.args)),e=d.next();!e.done;e=d.next())f=g.u(e.value),e=f.next().value,f=f.next().value,b["arg"+e]=""+f;g.BE(c);if("WARNING"===c.level){a.ea.Po(b);break a}}a.handleError("fmt.unplayable",b,1)}return!1}};
gab=function(a){var b=a.videoTrack.j.index;a.vl=new Q$a({Xj:a.policy.Xj,lj:a.policy.N.lj,Mj:b.Mj,Ad:function(){return b.Ad()},
Kw:function(){return b.Kw()}})};
d_=function(a,b,c,d){if(!(c.jg()||c.KA()||c.C||!hSa(c.resource,a.policy,a.D)||"f"===c.info.qb||a.policy.C)){if(d){d=a.G;var e=c.info;d=u7a(d,e.video?d.policy.Yv:d.policy.Ll,e.sb)}else d=0;d=c.Ow(d);a=X$a(a,d);ySa(d)&&s$a(b,a);c.C=!0}};
g_=function(a,b,c,d,e,f,h,l){g.I.call(this);var m=this;this.ya=a;this.bf=b;this.videoTrack=c;this.audioTrack=d;this.manifest=e;this.N=f;this.isAudioOnly=h;this.Ca=l;this.B=DS;this.ra=!1;this.logger=new g.RQ("sabr");this.qa=this.Y=!1;this.videoInfos=this.G=this.N.videoInfos;this.D=this.Z=this.N.j;this.j=new tZ(b,f,function(n,p){m.ya.ma(n,p)});
hab(this);this.bf.OH&&this.isAudioOnly&&iab(this,this.manifest.j["0"])};
jab=function(a,b){var c=[];b=g.u(b);for(var d=b.next();!d.done;d=b.next())c.push(kK(d.value,a.manifest.dc));return c};
iab=function(a,b,c){b!==a.C&&(a.C&&(a.ra=!0),a.C=b,a.ZK(b,a.videoTrack,c))};
nab=function(a,b){a.logger.debug("setConstraint: "+hP(b));a.bf.j&&(a.qa="m"===b.reason||"l"===b.reason?!0:!1);"m"===b.reason?b.isLocked()&&kab(a,b.j):lab(a,b)?mab(a,b.B,b.j):a.videoInfos=a.G;a.B=b};
lab=function(a,b){return a.bf.qn&&"b"===b.reason||a.bf.CF?!1:a.bf.kz?!0:"l"===b.reason||"b"===b.reason||"o"===b.reason};
oab=function(a,b){return b.isLocked()&&a.j.B||void 0===a.B?!1:TQa(b,a.B)};
pab=function(a,b){var c,d=null==(c=a.C)?void 0:c.info.video.j;return a.ra?!0:a.C?b!==d?!0:!a.j.B||a.bf.sj&&a.j.j===a.C.info.itag?!1:!0:!1};
kab=function(a,b){var c=a.j.j;if(c){a.videoInfos=a.G;var d=g.Db(a.videoInfos,function(e){return e.id===c});
d&&d.video.j===b?a.videoInfos=[d]:(d=a.videoInfos.map(function(e){return e.id}),a.ya.ma("sabrpf",{pfid:""+c,
vfids:""+d.join(".")}),mab(a,b,b),wZ(a.j,""))}else mab(a,b,b)};
mab=function(a,b,c){a.videoInfos=a.G;a.videoInfos=g.Ot(a.videoInfos,function(d){return d.video.j>=b&&d.video.j<=c})};
hab=function(a){var b=null;if(b=a.bf.Iv?m9a(a.j,a.Ca):g.Db(a.Z,function(c){var d;return!(null==(d=c.qc)||!d.isDefault)}))a.D=[b]};
qab=function(a,b){return a.map(function(c){return lK(c,b)})};
rab=function(a){var b;if(null==(b=a.B)?0:b.isLocked())return a.videoInfos;var c=vZ(a.j);b=g.Ot(a.videoInfos,function(d){return d.sb>a.bf.sb?!1:!c.has(d.id)});
l9a(a.j)&&(b=g.Ot(b,function(d){return 854>=d.video.width&&480>=d.video.height}));
return b};
sab=function(a,b,c){var d=a.manifest,e=a.ea.getVideoData(),f=g.sT(e),h=H8a({Da:e.U(),ea:a.ea,dE:a.dE,bf:a.bf,eq:a.eq,Ex:a.Ex,nw:a.nw,Hy:a.Hy,Bq:a.Bq,isPrefetch:a.isPrefetch,KG:a.KG,NG:a.NG,Hz:a.Hz,sabrLicenseConstraint:e.sabrLicenseConstraint},c),l=iZ(e,a.CB,a.nextRequestPolicy,a.ek,a.rS,a.vda),m=a.WG,n=a.XG;if(void 0===n&&void 0===m){var p;n=d.dc;n=(m=null==(p=a.dO)?void 0:p.video)?[kK(m.info,n)]:[];var q;p=d.dc;m=(m=null==(q=a.dO)?void 0:q.audio)?[kK(m.info,p)]:[]}if(e.oi)var r=e.oi;e={ut:h,Ho:a.Ho,
WG:m,XG:n,videoPlaybackUstreamerConfig:r,oC:l};a.Tm&&(e.Tm=a.Tm);if(f&&b){f=new Map;var t=g.u(d.Ga);for(h=t.next();!h.done;h=t.next())h=h.value,(l=d.La[tTa(d,h)]||"")?(f.has(l)||f.set(l,[]),f.get(l).push(h)):c&&c("ssap",{nocid4fmt:(h.itag||"")+"_"+(h.lmt||0)+"_"+(h.xtags||"")});d=new Map;t=g.u(a.qd);for(h=t.next();!h.done;h=t.next())h=h.value,l=h.startTimeMs||0,q=void 0,r=null==(q=b)?void 0:qY(q,l),q=r.clipId,r=r.wl,q?(d.has(q)||(n=f.get(q)||[],d.set(q,{clipId:q,qd:[],ex:n})),0!==r&&(h.startTimeMs=
l-r),d.get(q).qd.push(h)):c&&(q=void 0,c("ssap",{nocid4range:"1",fmt:(null==(q=h.formatId)?void 0:q.itag)||"",st:l.toFixed(3),d:(h.durationMs||0).toFixed(3),timeline:uY(b)}));e.mH=[];d=g.u(d.entries());for(f=d.next();!f.done;f=d.next())f=g.u(f.value),f.next(),f=f.next().value,e.mH.push(f);if(a.qd.length&&!e.mH.length){if(c){e="";a=g.u(a.qd);for(d=a.next();!d.done;d=a.next())d=d.value,h=t=f=void 0,e+="fmt."+((null==(f=d.formatId)?void 0:f.itag)||"")+"_"+((null==(t=d.formatId)?void 0:t.lmt)||0)+"_"+
((null==(h=d.formatId)?void 0:h.xtags)||"")+";st."+(d.startTimeMs||0).toFixed(3)+";d."+(d.durationMs||0).toFixed(3)+";";c("ssap",{nobfrange:"1",br:e,timeline:uY(b)})}return}a.uK&&(e.uK=a.uK);a.rK&&(e.rK=a.rK)}else e.qd=a.qd,e.ex=d.Ga,f&&0<(null==(t=a.qd)?void 0:t.length)&&!b&&c&&c("ssap",{bldmistlm:"1"});return e};
h_=function(a,b,c){var d=this;this.requestType=a;this.resource=b;this.Fb=c;this.B=null;this.wd={zqb:function(){var e;return null==(e=d.data)?void 0:e.isPrefetch}}};
tab=function(a,b,c){if(a.nu())return!0;a.data=b;a.j=sab(b,c,function(d,e){var f;null==(f=a.Fb)||f.ql(d,e)});
if(!a.j)return!1;a.B=g.fO(a.j,nQa);return!0};
T8a=function(a,b,c){void 0===a.Oj&&(a.Oj=a.resource.Oj(b,c));return a.Oj};
uab=function(a){var b,c;return(null==(b=a.j)?void 0:null==(c=b.ut)?void 0:c.lS)||0};
vab=function(a){var b={},c=[],d=[];if(!a.data)return b;for(var e=0;e<a.data.qd.length;e++){var f=a.data.qd[e],h=void 0;c.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_st."+(f.startTimeMs+"_e."+(f.startTimeMs+f.durationMs)+"_d."+f.durationMs)+("_sn."+f.Ym)+("_en."+f.Ui))}for(e=0;e<a.data.Ho.length;e++){f=a.data.Ho[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.Kj||NaN)+"_lb."+f.GZ+"_tr.s_"+(null==(l=f.pJ)?void 0:l.Sg)+"_d_"+
(null==(m=f.pJ)?void 0:m.Vz)+"_t_"+(null==(n=f.pJ)?void 0:n.Ks))}b.ptime=uab(a);b.rtype=a.requestType;b.brl=c.join(";");b.ps=d.join(";");return b};
i_=function(a,b){g.I.call(this);this.j=a;this.Id=b;this.iv=(0,g.jZ)(MD(16))};
wab=function(a,b){var c;return g.G(function(d){(0,g.wC)();c=xUa(a.j);return d.return(c.encrypt(b,a.iv))})};
xab=function(a,b){var c;return g.G(function(d){(0,g.wC)();var e=a.j;e.D||(e.D=new wKa(e.C));c=e.D;return d.return(zKa(c,b,a.iv))})};
yab=function(a,b,c){var d;return g.G(function(e){(0,g.wC)();d=xUa(a.j);return e.return(d.decrypt(b,c))})};
zab=function(a){if(a.B)return a.B;if(a.Id){var b=new nR(a.Id,a.j.j);g.N(a,b);a.B=b}else a.B=new mR(a.j.j);return a.B};
Aab=function(a){this.Om=a;this.B=!1;this.j=[]};
k_=function(a){for(;a.j.length&&!a.j[0].isEncrypted;){var b=a.j.shift(),c=b.videoId,d=b.Up,e=b.formatId,f=b.buffer;b=b.v8;if(f)b=void 0,null==(b=j_(a.Om.pd,c))||K5a(b,d,e,f);else if(b)a.Om.pd.mq(c,d,e);else if(d=a.Om,d.j[e].KY=!0,c=j_(d.pd,c),null==c?0:c.Xc.has(e))null==c||B5a(c,e)}};
g.Dab=function(a){this.data=a;this.j=0;this.D=!1;this.C=0;this.error=!1;this.register=this.B=0;if(0===l_.length){l_.length=288;l_.fill(8);for(a=144;280>a;a++)l_[a]=255>=a?9:7;Bab.length=32;Bab.fill(5);m_.length=286;m_.fill(0);for(a=261;285>a;a++)m_[a]=Math.floor((a-261)/4);n_[257]=3;for(a=258;285>a;a++){var b=n_[a-1];b+=1<<m_[a-1];n_[a]=b}n_[285]=258;for(a=0;30>a;a++)Cab[a]=3>=a?0:Math.floor((a-2)/2);for(a=o_[0]=1;30>a;a++)b=o_[a-1],b+=1<<Cab[a-1],o_[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.output=new Uint8Array(a)};
g.Jab=function(a){for(;!a.D&&!a.error;){var b=a;b.D=!!p_(b,1);switch(p_(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=p_(b,5)+257;var f=p_(b,5)+1;for(var h=p_(b,4)+4,l=0;l<h;l++)d[Eab[l]]=p_(b,3);d=Fab(d);for(h=e+f;c.length<h;){l=Gab(b,d);switch(l){case 16:l=c[c.length-1];var m=p_(b,2)+3;break;case 17:l=0;m=p_(b,3)+3;break;case 18:l=0;m=p_(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,Hab(b,c,f));break;case 1:Hab(b,l_,Bab);break;case 0:Iab(b,
b.j&7);c=p_(b,16);e=p_(b,16);65535!==(c^e)&&(b.error=!0);b.output.set(b.data.subarray(b.B,b.B+c),b.C);b.B+=c;b.C+=c;break;default:b.error=!0}a.C>a.output.length&&(a.output=new Uint8Array(2*a.C),a.C=0,a.B=0,a.D=!1,a.j=0,a.register=0)}a.output.length!==a.C&&(a.output=a.output.subarray(0,a.C));return a.error?new Uint8Array(0):a.output};
Hab=function(a,b,c){b=Fab(b);c=Fab(c);for(var d=a.data,e=a.output,f=a.C,h=a.register,l=a.j,m=a.B;;){if(15>l){if(m>d.length){a.error=!0;break}h|=(d[m+1]<<8)+d[m]<<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.B=m,256<n){h=n_[n];h+=p_(a,m_[n]);m=Gab(a,c);l=o_[m];l+=p_(a,Cab[m]);if(Kab&&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.B}else break}a.C=f};
Gab=function(a,b){if(7>a.j){var c=a.data,d=a.B;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<<a.j;a.B+=2;a.j+=16}c=b[a.register&127];if(0<=c)return Iab(a,c&15),c>>4;for(Iab(a,7);0>c;)c=b[p_(a,1)-c];return c>>4};
p_=function(a,b){for(;a.j<b;){if(a.B>=a.data.length)return a.error=!0,0;a.register|=a.data[a.B++]<<a.j;a.j+=8}var c=a.register&(1<<b)-1;a.register>>=b;a.j-=b;return c};
Iab=function(a,b){a.j-=b;a.register>>=b};
Fab=function(a){for(var b=[],c=g.u(a),d=c.next();!d.done;d=c.next())d=d.value,b[d]||(b[d]=0),b[d]++;var e=b[0]=0;c=[];var f=0;d=0;for(var h=1;h<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};
Lab=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t;return g.G(function(v){switch(v.j){case 1:if(b)try{c=b.exports.malloc(a.length);(new Uint8Array(b.exports.memory.buffer,c,a.length)).set(a);d=b.exports.getInflatedSize(c,a.length);e=b.exports.malloc(d);if(f=EV.Lo(b.Wp?"gza":"gzw",function(){return b.exports.inflateGzip(c,a.length,e)}))throw Error("inflateGzip="+f);
h=new Uint8Array(d);h.set(new Uint8Array(b.exports.memory.buffer,e,d));b.exports.free(e);b.exports.free(c);return v.return(h)}catch(w){g.AE(w)}if(!("DecompressionStream"in window))return EV.isActive()?v.return(EV.Lo("gzj",function(){return g.Jab(new g.Dab(a))})):v.return(g.Jab(new g.Dab(a)));
l=new DecompressionStream("gzip");m=l.writable.getWriter();m.write(a);m.close();n=l.readable.getReader();p=new BN([]);if(EV.isActive())return v.return(EV.Lo("gzn",function(){var w,A,C;return g.G(function(F){if(1==F.j)return g.z(F,n.read(),5);if(4!=F.j){w=F.B;A=w.value;if(C=w.done)return F.Ia(4);p.append(A);return F.Ia(1)}return F.return(EN(p))})}));
case 2:return g.z(v,n.read(),5);case 5:q=v.B;r=q.value;if(t=q.done){v.Ia(4);break}p.append(r);v.Ia(2);break;case 4:return v.return(EN(p))}})};
Mab=function(a){kZ.call(this,"onesie");this.pd=a;this.j={};this.D=!0;this.C=null;this.queue=new Aab(this);this.G={}};
Nab=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.B&&(b.j.length=0);b=g.u(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.j[c];if(!d.KY){var e=a.queue;e.j.push({videoId:d.videoId,formatId:c,isEncrypted:!1});e.B||k_(e)}}};
Pab=function(a,b){var c=b.totalLength,d=!1;switch(a.C){case 0:a.LR(b,a.D).then(function(f){var h=a.pd;h.Sd("oprr");h.playerResponse=f;h.TQ||(h.OG=!1);q_(h)},function(f){a.pd.vj(f)});
break;case 2:a.Sd("ormk");b=EN(b);var e;a.queue.decrypt(b,!Oab(a.pd),null==(e=a.pd.U())?void 0:e.Id);break;default:d=!0}a.pd.Cm&&a.pd.ma("ombup","id.11;pt."+a.C+";len."+c+(d?";ignored.1":""));a.C=null};
Qab=function(a){return new Promise(function(b){setTimeout(b,a)})};
Rab=function(a,b){var c=hR(b.W.experiments,"debug_bandaid_hostname");if(c)b=CX(b,c);else{var d;b=null==(d=b.j.get(0))?void 0:d.location.clone()}if((d=b)&&a.videoId){b=oR(a.videoId);a=[];if(b)for(b=g.u(b),c=b.next();!c.done;c=b.next())a.push(c.value.toString(16).padStart(2,"0"));d.set("id",a.join(""));return d}};
Sab=function(a,b,c){c=void 0===c?0:c;var d,e;return g.G(function(f){if(1==f.j)return d=[],d.push(b.load()),0<c&&d.push(Qab(c)),g.z(f,Promise.race(d),2);e=Rab(a,b);return f.return(e)})};
Uab=function(a,b,c,d){d=void 0===d?!1:d;a.set("cpn",b.clientPlaybackNonce);a.set("opr","1");var e=b.U();a.set("por","1");tN()||a.set("onem","1");0<b.startSeconds&&a.set("osts",""+b.startSeconds);d||(e.L("html5_onesie_disable_partial_segments")&&a.set("oses","1"),b=e.L("html5_gapless_onesie_no_media_bytes")&&TS(b)&&b.Pf,c&&!b?(b=c.audio,a.set("pvi",c.video.join(",")),e.L("html5_onesie_disable_audio_bytes")||a.set("pai",b.join(",")),gR||a.set("osh","1")):(a.set("oad","0"),a.set("ovd","0"),a.set("oaad",
"0"),a.set("oavd","0")))};
Vab=function(a,b,c,d,e){e=void 0===e?!1:e;var f=b.Ik,h="https://youtubei.googleapis.com/youtubei/"+f.innertubeApiVersion+"/player";f.nQ&&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.pc()});g.xA("EOM_VISITOR_DATA")?f.push({name:"X-Goog-EOM-Visitor-Id",value:g.xA("EOM_VISITOR_DATA")}):(c=c.visitorData||g.xA("VISITOR_DATA"))&&f.push({name:"X-Goog-Visitor-Id",value:c});(b=hR(b.experiments,
"debug_sherlog_username"))&&f.push({name:"X-Youtube-Sherlog-Username",value:b});a=JKa(JSON.stringify(a));return{url:h,fQ:f,postBody:a,gda:e,lC:e}};
Xab=function(a,b,c,d,e,f){var h=g.fO(a,gQa,a.lC?void 0:c.Id),l={encryptedClientKey:b.j.encryptedClientKey,v1:!0,GX:!0,RO:Wab(c,!!a.lC),b3:c.experiments.fb("html5_use_jsonformatter_to_parse_player_response")};if(a.lC)l.Qea=h;else{a=b.encrypt(h);var m;a=(null==(m=c.Id)?void 0:m.dR(a))||a;m=l.HX=a;(0,g.wC)();m=vKa(new uKa(b.j.C),m,b.iv);l.WY=m;l.iv=b.iv}b=d.getVideoData();c=H8a({Da:c,ea:d,dE:1E3*b.startSeconds,KG:!0,NG:!0});return{oQ:l,ut:c,onesieUstreamerConfig:e,Xo:f,oC:iZ(b)}};
Yab=function(a,b,c){var d,e,f;return g.G(function(h){if(1==h.j)return d=g.fO(b,gQa),g.z(h,wab(c,d),2);if(3!=h.j)return e=h.B,g.z(h,xab(c,e),3);f=h.B;return h.return({HX:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,WY:f,v1:!0,GX:!0,RO:Wab(a,!!b.lC),b3:a.experiments.fb("html5_use_jsonformatter_to_parse_player_response")})})};
Zab=function(a,b,c,d,e,f){var h,l,m;return g.G(function(n){if(1==n.j)return g.z(n,Yab(c,a,b),2);h=n.B;l=d.getVideoData();m=H8a({Da:c,ea:d,dE:1E3*l.startSeconds,KG:!0,NG:!0});return n.return({oQ:h,ut:m,onesieUstreamerConfig:e,Xo:f,oC:iZ(l)})})};
Wab=function(a,b){a=wR(a.schedule,!0);b=b||!!tN()&&1572864<a;return"DecompressionStream"in window||!b};
s_=function(a,b){g.I.call(this);var c=this;this.ea=a;this.playerRequest=b;this.W=this.ea.U();this.videoData=this.ea.getVideoData();this.logger=new g.RQ("onesie");this.Cm=this.W.Bc();this.JO=this.W.Kk;this.lG=new i_(this.JO.j,this.W.Id);this.xhr=null;this.state=1;this.Kq=new IK;this.QY=!1;this.playerResponse="";this.Fl=new YY(this);this.Om=new Mab(this);this.DH=this.W.L("html5_onesie_check_timeout");this.nO=new g.Iv(this.s7,500,this);this.mG=new g.Iv(this.UP,1E4,this);this.kL=new g.Iv(function(){if(!c.isComplete()){var d=
r_(c);c.vj(new RJ("net.timeout",d))}},g.xI(this.W.experiments,"html5_onesie_request_timeout_ms"));
this.h0=new g.Iv(this.D$,2E3,this);this.Qu="";this.jK=this.mZ=!1;this.tA=this.ea.mA();this.WR="";this.OG=this.L("html5_onesie_wait_for_media_availability");this.enableCompression=this.TQ=this.DA=!1;this.pH=[];this.Wu=this.ej=-1;g.N(this.videoData,this);g.N(this,this.nO);g.N(this,this.mG);g.N(this,this.h0);g.N(this,this.lG);a=iR();gR&&a&&!this.W.L("html5_disable_onesie_media_bytes")&&(this.Zf=new Map);this.VX=new Map;this.o_=new Map;this.Y0=new Map};
j_=function(a,b){var c;return null==(c=a.Zf)?void 0:c.get(b)};
$ab=function(a,b,c){var d;return g.G(function(e){if(1==e.j)return a.Sd("oprd_s"),Oab(a)?g.z(e,yab(a.lG,b,c),3):(d=a.lG.decrypt(b,c),e.Ia(2));2!=e.j&&(d=e.B);a.Sd("oprd_c");return e.return(d)})};
abb=function(a){return a.L("html5_onesie_host_probing")||a.Cm?gR:!1};
q_=function(a){if(!a.playerResponse)return!1;if(a.DA)return!0;var b=a.videoData.L("html5_onesie_audio_only_playback")&&US(a.videoData);if(a.Zf&&a.OG){if(!a.Zf.has(a.Qu))return!1;var c=a.Zf.get(a.Qu),d;if(d=c){d=!1;for(var e=g.u(c.Xc.keys()),f=e.next();!f.done;f=e.next())if(f=c.Xc.get(f.value))for(var h=g.u(f.MF),l=h.next();!l.done;l=h.next())0<l.value.zs&&(f.Eh?d=!0:b=!0);d=!(b&&d)}if(d)return!1}a.Sd("ofr");a.Kq.resolve(a.playerResponse);if(!a.DH){var m;null==(m=a.kL)||m.start();a.mG.start()}return a.DA=
!0};
cbb=function(a){if(a.Zf&&!a.L("html5_onesie_media_capabilities")){a.Sd("ogsf_s");var b=D8a(a.ea.getVideoData(),function(d,e){a.ma(d,e)}),c=bbb(a.ea);
b.video=t8a(c,b.video);a.Sd("ogsf_c");if(b.video.length)return b;a.ma("ombspf","l."+c.B+";u."+c.j+";o."+c.C+";r."+c.reason)}};
Oab=function(a,b){return a.L("html5_onesie_sync_request_encryption")||(null==b?0:b.lC)||g.TR(a.W)&&a.L("html5_embed_onesie_use_sync_encryption")?!1:!!tN()};
r_=function(a){if(!a.Fd)return{};var b=a.Fd.Sq();b.d=R7a(a.Fd);b.shost=a.s1;b.ty="o";return b};
dbb=function(a,b){var c,d;(d=null==(a=null==(c=a.Zf)?void 0:c.get(b)))||(b=a.C?!1:a.C=!0,d=!b);return!d};
ebb=function(a,b,c,d,e,f,h,l,m,n,p){g.I.call(this);var q=this;this.ea=a;this.ya=b;this.policy=c;this.audioTrack=d;this.videoTrack=e;this.manifest=f;this.Nc=h;this.ra=l;this.D=m;this.timing=n;this.Z=p;this.j=[];this.G={};this.La=this.Ma=!1;this.ek=new Set;this.C=this.Ga=this.Y=this.Bq=0;this.K=null;this.wd={gqb:function(){return q.j},
Dpb:function(){return q.G},
Pob:function(){q.j.length=0},
Rpb:function(){return q.ek},
Npb:function(){return q.Y},
zrb:function(r){q.Y=r},
Erb:function(r){q.C=r}};
this.videoData=this.ea.getVideoData();this.policy.Sf&&(this.Ha=new a_(this.ya,this.policy,this.Nc),g.N(this,this.Ha))};
hbb=function(a,b){b=void 0===b?!1:b;if(fbb(a,b)){a.policy.eb&&a.ya.ma("sabrcrq",{create:1});var c=new h_(0,a.manifest.Z,a);0<a.policy.Nd&&a.C++;b=gbb(a,c,b);a.j.push(b);var d;null==(d=a.Ha)||R$a(d,a.manifest.Z)}};
kbb=function(a,b){var c=RZ(a.audioTrack,a.ya.isSeeking()),d=RZ(a.videoTrack,a.ya.isSeeking()),e=[].concat(g.qa(c.qd),g.qa(d.qd)),f=[].concat(g.qa(c.Ho),g.qa(d.Ho)),h,l=(null==(h=a.ya)?void 0:h.qF())&&(gT(a.videoData)||g.fT(a.videoData));h=a.policy.G&&l;l=a.ya.getCurrentTime()||0;l=ibb(a,l);var m=a.ya.Mc()||0;h=h?Number.MAX_SAFE_INTEGER:Math.ceil(1E3*(l+m));l=!t_(a,a.audioTrack);m=!t_(a,a.videoTrack);var n=oR(a.ya.FJ()),p=bab(a.ya),q,r,t=a.ea,v=a.manifest,w=a.B,A=a.ek,C=a.policy,F=a.ya.eq,H=1E3*$$a(a.ya),
M=null==(q=a.Ca)?void 0:q.nw;q=null==(r=a.Ca)?void 0:r.Hy;var L;r=Number(null==(L=a.D.C)?void 0:L.info.itag)||0;var R;L=Number(null==(R=a.D.K)?void 0:R.info.itag)||0;b={ea:t,manifest:v,qd:e,Ho:f,dE:h,nextRequestPolicy:w,ek:A,bf:C,eq:F,Ex:H,nw:M,Hy:q,Bq:a.Bq,isPrefetch:b||a.ya.isSuspended,KG:l,NG:m,rS:n,uK:r,rK:L,CB:p};a.policy.Uf?(e=a.D,e=e.bf.j&&!e.Y?[]:jab(e,e.D),b.WG=e,e=a.D,e.bf.j&&!e.qa?e=[]:(f=rab(e),0===f.length&&(f=e.G),e=jab(e,f)),b.XG=e):(a.SJ(a.videoTrack.j),a.SJ(a.audioTrack.j),b.dO=BZ(a.ra));
a.policy.qn&&(e=a.ea.hP().t0,b.Hz=e.j);if(a.policy.K){c=jbb(a,c.qd,d.qd);var ba;if(d=null==(ba=a.K)?void 0:ba.HP(c))b.Tm=d}a.policy.qa&&0<a.j.length&&a.j[0].gO()&&(b.vda=a.j[0].EP());return b};
ibb=function(a,b){if(a.policy.JC){if(a.ya.isSeeking())return b;var c=a.ea.Je();if(!c)return b;c=c.Ch();if(0===c.length||sK(c,b))return b;for(var d=b,e=Infinity,f=0;f<c.length;f++)if(!(c.start(f)>b)){var h=b-c.end(f);h<e&&(e=h,d=c.end(f))}d!==b&&a.ya.ma("sundrn",{bre:d,lt:b});return d}a.ya.Zp&&(a.policy.ip?(c=x$a(a.videoTrack),d=x$a(a.audioTrack)):a.policy.jz&&(c=w$a(a.videoTrack),d=w$a(a.audioTrack)),f=e=b,void 0!==c&&(e=c),void 0!==d&&(f=d),e<b||f<b)&&(a.ya.ma("sundrn",{vet:e,aet:f,lt:b}),b=Math.min(e,
f));return b};
jbb=function(a,b,c){var d=a.ya.getCurrentTime()||0;b=lbb(a,b,d);a=lbb(a,c,d);return Math.min(b,a)};
lbb=function(a,b,c){a=a.ya.Mc()||0;b=g.u(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=e.startTimeMs?e.startTimeMs/1E3-a:0;e=d+(e.durationMs?e.durationMs/1E3:0);if(d<=c&&c<=e)return e}return c};
fbb=function(a,b){if(0<a.policy.Nd){var c=Math.floor((0,g.wC)()/1E4);if(c===a.Ga){if(a.C>=a.policy.Nd){if(a.C===a.policy.Nd){var d={reason:"toomanyrequests"};d.limit=a.C;a.ya.handleError("player.exception",d);a.C+=1}return!1}}else a.Ga=c,a.C=0}b=!b&&!xR(a.Nc);if(a.ya.isSuspended&&(a.ya.YI||b)||a.qa&&(0,g.wC)()<a.qa)return!1;if(0<a.j.length)return a.policy.qa&&1===a.j.length&&a.j[0].gO()?!0:!1;if(null==(d=a.manifest.Z)||!hSa(d,a.policy,a.G))return!1;d=a.policy.sD&&a.policy.j&&a.ya.gg();if(YZ(a.audioTrack)&&
YZ(a.videoTrack)&&!d)return!1;if(a.policy.j&&a.N&&!a.ya.gg())return a.ql("ssap",{pauseontlm:1}),!1;if(a.policy.wv&&t_(a,a.audioTrack)&&t_(a,a.videoTrack))return a.policy.B&&a.ya.ma("sabrHeap",{a:""+TZ(a.audioTrack),v:""+TZ(a.videoTrack)}),!1;if(d=a.policy.K)d=!1,2===a.Z.B?d=!0:3===a.Z.B&&(b=jbb(a,RZ(a.audioTrack,a.ya.isSeeking()).qd,RZ(a.videoTrack,a.ya.isSeeking()).qd),c=a.Z,b>=c.C?(c.ma("sdai",{haltrq:b,est:c.C}),b=!0):b=!1,b&&(d=!0)),d&&a.policy.eb&&a.ya.ma("sabrcrq",{waitad:1});if(d)return!1;
if(!a.B)return a.policy.eb&&a.ya.ma("sabrcrq",{nopolicy:1}),!0;if(!a.B.targetAudioReadaheadMs||!a.B.targetVideoReadaheadMs)return a.policy.eb&&a.ya.ma("sabrcrq",{noreadahead:1}),!0;if(a.policy.G&&a.ya.qF())return a.policy.eb&&a.ya.ma("sabrcrq",{seekToHead:1}),!0;d=Math.min(1E3*c_(a.ya,a.audioTrack),a.B.targetAudioReadaheadMs);b=Math.min(1E3*c_(a.ya,a.videoTrack),a.B.targetVideoReadaheadMs);var e=Math.min(d,b);c=1E3*VZ(a.audioTrack,!0);var f=1E3*VZ(a.videoTrack,!0);var h=c>e;e=f>e;if((!h||!e)&&a.policy.B&&
a.policy.Rf){var l=a.ya.pc();l.car=c;l.vac=f;l.mar=d;l.mvr=b;l.tar=a.B.targetAudioReadaheadMs;l.tvr=a.B.targetVideoReadaheadMs;a.ya.ma("sabrrnm",l)}!(d=h&&e)&&(d=a.policy.j)&&(a=a.ya,a.Qa&&a.Qa.j&&a.Qa.B&&a.zb&&!PQ(a.manifest)?(d=a.getCurrentTime(),c=a.Qa.j.He(),b=a.Qa.B.He(),c=c?tK(c,d):d,d=b?tK(b,d):d,d=Math.min(c,d),isNaN(d)?d=!1:(a=rY(a.zb),d=d>=a-.01)):d=!1);return d?!1:!0};
gbb=function(a,b,c){var d={Nc:a.Nc,Tu:function(m,n){a.ea.EG(m,n)},
Ep:a.policy.Wl,dJ:a.policy.B},e=T8a(b,a.policy,a.G)?2:1;e!==a.Y&&(a.Y=e,mbb(a));c=kbb(a,c);if((a.policy.j||a.policy.qa)&&a.policy.B&&c.ek){for(var f=e="",h=g.u(c.ek),l=h.next();!l.done;l=h.next())l=l.value,a.videoData.sabrContextUpdates.has(l)?e+="_"+l:f+="_"+l;a.ya.ma("sabrbldrqs",{ctxts:e,misctxts:f})}tab(b,c,a.ya.gg())||!a.policy.j&&!a.policy.qa||a.ya.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);d=new mZ(a.policy,b,a.manifest,a.G,a,d,a.ya.mA(),a.policy.Pf?a.ya.gg():void 0);
nZ(a.timing);a.policy.eb&&a.ya.ma("sabrcrq",{rn:d.Op(),probe:b.nu()});return d};
u_=function(a,b){if(!b.Na()&&!a.Na()){if(a.policy.B&&b.isComplete()&&b instanceof mZ){var c=a.ya,d=c.ma;var e=Object.assign(b.Fd.Sq(),{rst:b.state,strm:b.xhr.pC(),d:R7a(b.Fd),cncl:b.xhr&&b.Cd.D?1:0});b.policy.mp&&(e.rqb=b.X0);e=Object.assign(vab(b.info),e);d.call(c,"rqs",e)}if(b.isComplete()&&b.nu())b.dispose();else{if(b.sZ())b instanceof mZ&&d9a(a.timing,b),mbb(a),nbb(a);else if(b.Fm())b instanceof s_?a.j.pop():(c=1,b.canRetry()&&fab(a.ya)&&(obb(a,b),c=0),a.ya.handleError(b.dh(),b.Br(),c));else{if(a.ya.isSuspended&&
!b.isComplete())return;nbb(a);if(a.policy.K&&(e=b.Op(),a.Sa!==e)){d=b.tY();c=d.ej;var f=d.Wu;d=d.Xp;!a.K||0>f||(a.Sa=e,e=j9a(a.Z,f,c),f=a.ya.Mc()||0,g9a(a.Z,c,e/1E3-f,d,a.K))}}b.Na()||b instanceof s_||(b.isComplete()?c=U$a(b,a.policy,a.G):(c=T$a(b,a.policy,a.G),1===c&&(a.Ma=!0)),0!==c&&(b=new h_(1,b.info.resource),b.Oj=2===c,gbb(a,b)))}}a.ya.mf()};
nbb=function(a){for(;a.j.length&&a.j[0].SY(a.qe());){var b=a.j.shift();pbb(a,b);a.policy.ge&&b instanceof mZ&&b.dispose()}a.j.length&&pbb(a,a.j[0])};
pbb=function(a,b){if(a.policy.Uf){var c=new Set(b.zr(a.qe()));c=g.u(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;if(!(d=!(b instanceof s_))){var f=a.D,h=f.manifest.dc;d=qab(f.D,h);f=qab(f.videoInfos,h);d=d.includes(e)||f.includes(e)}if(d&&(d=b.Qn(e,a.qe()),b.yl(e,a.qe()))){e=b.Hk(e,a.qe());if(a.policy.j&&(f=d[0].j.info,(h=a.ya.gg())&&f)){var l=b.YX();l!==h.ea.getVideoData().clientPlaybackNonce&&(h=aY(h.timeline,l))&&(h=h[0].getVideoData())&&(f.Eh()?h.D=f:h.B=f)}e=g.u(e);for(f=e.next();!f.done;f=
e.next()){f=f.value;a.policy.B&&b instanceof s_&&a.ya.ma("omblss",{s:f.info.Tc()});h=f.info.j.info.Eh();var m=f.info.j;if(h){l=void 0;var n=a.D,p=null==(l=b.CP(a.qe()))?void 0:l.token;m!==n.K&&(n.K=m,n.ZK(m,n.audioTrack,p))}else l=void 0,iab(a.D,m,null==(l=b.CP(a.qe()))?void 0:l.token);l=h?a.audioTrack:a.videoTrack;b instanceof s_&&(l.Z=!1,b instanceof s_&&(h?X8a(a.timing):W8a(a.timing)));QZ(l,d,f)}}}}else for(d=b.XX()||BZ(a.ra),c=new Set(b.zr(a.qe())),a.policy.j?e=c:e=[(null==(f=d.video)?void 0:
lK(f.info,a.manifest.dc))||"",(null==(h=d.audio)?void 0:lK(h.info,a.manifest.dc))||""],d=g.u(e),e=d.next();!e.done;e=d.next())if(e=e.value,c.has(e)&&b.yl(e,a.qe()))for(f=b.Hk(e,a.qe()),f=g.u(f),h=f.next();!h.done;h=f.next())h=h.value,a.policy.B&&b instanceof s_&&a.ya.ma("omblss",{s:h.info.Tc()}),l=b.Qn(e,a.qe()),m=(n=h.info.j.info.Eh())?a.audioTrack:a.videoTrack,b instanceof s_&&(m.Z=!1,b instanceof s_&&(n?X8a(a.timing):W8a(a.timing))),QZ(m,l,h)};
obb=function(a,b){a.policy.qa?a.j.splice(a.j.indexOf(b)).forEach(function(c){c.dispose()}):(a.j.pop(),null==b||b.dispose())};
qbb=function(a,b){for(var c=[],d=0;d<a.j.length;d++)b&&a.j[d]instanceof s_?c.push(a.j[d]):a.j[d].dispose();a.j=c};
rbb=function(a,b,c){var d=c.vt,e=c.version;e=void 0===e?"":e;if(b.GT===e)b=!0;else{var f=!1,h=b.timeline.j;if(h&&h.getVideoData()){if(b.api.L("html5_ssap_clear_timeline_before_update")){var l=b.timeline,m;null==(m=l.j)||V5a(m);l.B.clear()}l=[];m=h.getVideoData();var n=ZX(h),p=new Map;h=[];var q=[],r=0,t=0,v=0,w=[];d=g.u(d);for(var A=d.next();!A.done;A=d.next()){var C=A.value,F=C.clipId;if(F){if(C.Pq){v=C.Pq.OZ||0;var H=C.Pq.PZ||1;A=Number(((C.Pq.x0||0)/(C.Pq.y0||1)*1E3).toFixed(0));var M=Number((v/
H*1E3).toFixed(0));v=H=A+M}else A=v,M=0,H=A,b.jH.has(F)||b.qk.add(F);var L=void 0,R=null!=(L=p.get(F))?L:0;L=!1;if(b.GT)if(b.api.L("html5_ssap_clear_timeline_before_update")){var ba=b.Ti.get(F);ba&&(ba.start=A,ba.end=H,L=!0)}else{var ma=b,na=F;ba=A;var ia=H,sa=aY(ma.timeline,na);if(null!=sa&&sa.length){R<sa.length&&(sa[R].lc=ba,sa[R].B=ia);if(ma=ma.Ti.get(na))ma.start=ba,ma.end=ia;ba=!0}else ba=!1;if(ba){p.set(F,R+1);f=!0;continue}}w.push(F);!L&&C.Pq&&(w=b.RI(A,H,w.join(",")),b.Ti.set(F,w),h.push(w),
w=[]);ba=L=void 0;if((null==(L=C.Pq)?void 0:L.t3)===(null==(ba=m)?void 0:ba.videoId)){C=void 0;F!==(null==(C=m)?void 0:C.clientPlaybackNonce)&&(C=void 0,b.api.ma("ssap",{cnm:1,cid:F,cpn:null==(C=m)?void 0:C.clientPlaybackNonce}));if(b.api.L("html5_ssap_clear_timeline_before_update"))m&&(m.Rf=A),F=bY(b.timeline,1,A,M,m),l.push(F),A=$X(b.timeline,A,H,[F]),f=f||A;else if(C=[],m&&(m.Rf=A,L=void 0,C=null!=(L=aY(b.timeline,F))?L:[]),!b.GT&&C.length&&0===R){f=C[0];f.lc=A;f.B=H;C=void 0;M=null==(C=b.timeline.j)?
void 0:C.j;L=void 0;if((C=null==(L=M)?void 0:L.get(0))&&M)for(L=0;L<C.length;L++)if(ba=C[L],ba.Xe()!==ba.Fi()){ba.lc=A;ba.C=H;C.splice(L,1);M.has(A)?M.get(A).push(ba):M.set(A,[ba]);break}l.push(f);p.set(F,R+1);f=!0}else F=bY(b.timeline,1,A,M,m),l.push(F),A=$X(b.timeline,A,H,[F]),f=f||A;q.length&&(q=w6a(b,r||0,t,q),f=f||q);t=r=H;q=[]}else L=b.Gp.get(F),ba=void 0,R=null!=(ba=L)?ba:new g.ES(b.api.U(),{cpn:F}),R.JD=!0,b.qk.has(F)&&b.Gp.set(F,R),r=Math.min(A,r),t=Math.max(H,t),b.api.ma("ssap",{e:A,d:M,
c:F,p:L?1:0}),R.Rf=A,H=void 0,A=bY(b.timeline,2,A,M,R,null==(H=C.hR)?void 0:H.yK),q.push(A),b.kT&&C.Pq&&!b.WX&&(b.api.ma("ssap",{reloada:F}),b.Gw=F)}else b.api.ma("ssap",{cm:1})}q.length&&(m=w6a(b,r||0,t,q),f=f||m);n&&l.length&&(T5a(b.timeline,n,l),b.api.L("html5_ssap_clear_timeline_before_update")&&(l=l[l.length-1].Fi(),null!=(m=b.timeline.j)&&(m.B=l)));h.length&&b.ea.vz(h);if(f){b.GT=e;h=b.ea.Zk();e=[];h=g.u(h);for(l=h.next();!l.done;l=h.next()){l=l.value;if(l.C){m=pY(b,l.C);if(m===l.wl)continue;
l.start=l.start-l.wl+m;l.end=l.end-l.wl+m;l.wl=m;e.push(l)}l=b.ea.Ah;0>=e.length||l.Na()||(l=l.j,l.array.sort(l.j))}b.api.ma("ssap",{tu:uY(b)});e=IV(b.api.yb());b.api.ma("ssap",{am:e?1:0})}else b.api.ma("ssap",{tnu:1});b=!0}else b.api.ma("ssap",{htsm:h?0:1}),b=!1}b?a.videoData.zz=c.version||"":a.ya.ma("ssap",{v:c.version,tlnu:1})};
mbb=function(a){a.ek.clear();if(0<a.videoData.sabrContextUpdates.size)for(var b=g.u(a.videoData.sabrContextUpdates.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;(null==(d=a.videoData.sabrContextUpdates.get(c))?0:d.sendByDefault)&&a.ek.add(c)}if(a.policy.qa&&a.j.length)for(b=g.u(a.j),c=b.next();!c.done;c=b.next())(c=c.value.EP())&&c.type&&c.sendByDefault&&a.ek.add(c.type)};
sbb=function(a){a.policy.Hb&&(a.Ca=void 0,a.Bq=0)};
tbb=function(a,b){if(b.Fm()||b.Na()){var c=a.ya,d=c.ma,e=b.state;a=a.qe();var f,h;if(null==(b=null==(f=b.Zf)?void 0:f.get(a)))b=void 0;else{f=0;a=b.zr();for(var l=0;l<a.length;l++){var m=void 0;f+=(null==(m=b.Xc.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.pH.push(a),b.W.L("html5_onesie_notify_request_progress_on_subscription")&&u_(a,b),nZ(a.timing)};
t_=function(a,b){return!a.ya.yp&&TY(b)&&(b.Io()!==TY(b)||a.ya.isSuspended)};
ubb=function(a){var b="";a=g.u(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;b+=".cid."+c.clipId;if(c.Pq){var d=c.Pq;b+=".vid."+d.t3+(".pst."+d.x0)+(".ps."+d.y0)+(".lst."+d.r$)+(".ld."+d.OZ)+(".ls."+d.PZ)}c.hR&&(b+=".nonv."+c.hR.yK)}return b};
vbb=function(a,b,c,d,e){this.ya=a;this.policy=b;this.schedule=c;this.Iz=d;this.Y=e;this.qa=NaN;this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1;this.Z=NaN};
wbb=function(a,b,c,d,e,f){return b.Oi&&b.uf&&3===c?new vbb(a,b,d,e,f):null};
xbb=function(a,b){if(a.policy.MC){var c=b.info.sb,d=wR(a.schedule);b=b.index.Mj;c=Math.max(1,d/c);a.Z=Math.round(1E3*Math.max(((c-1)*b+a.policy.Nb)/c,b-a.policy.Mk))}};
Abb=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.K,f=e>=a.policy.Vv,h=!1;if(f){var l=0;!isNaN(b)&&b>a.G&&(l=b-a.G,a.G=b);l/e<a.policy.RC&&(h=!0);a.K=c}c=d>=a.policy.Mk&&!a.C;if(!f&&!c&&ybb(a,b))return NaN;c&&(a.C=!0);a:{d=h;c=(0,g.wC)()/1E3-(a.Iz.eh()||0)-a.N.j-a.policy.Nb;f=a.B.startTime;c=f+c;if(d){if(isNaN(b)){v_(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.Kk;d<c&&(c=d)}else a.C&&(d=c+a.policy.Nb-a.qa+a.policy.TC,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.Kk))),c=d);f=c=Math.max(c,
f)}a.j=f;if(isNaN(a.j))return a.clear(),NaN;if(!h&&ybb(a,b))return zbb(a,b),NaN;if(a.j<=a.B.startTime)return v_(a,NaN,"y",b),a.clear(),NaN;if(!a.Y(a.j,!1))return!zbb(a,b)&&h&&(v_(a,NaN,"t",b),a.clear()),NaN;h=a.j;v_(a,h,"s",b);a.clear();return h};
zbb=function(a,b){return a.Y(a.j,!0)?!1:(v_(a,NaN,"ns",b),a.clear(),!0)};
ybb=function(a,b){return isNaN(b)?!0:isNaN(a.j)?!1:b<a.j+(a.C?a.policy.Kk:a.policy.OC)};
v_=function(a,b,c,d){var e=a.D.Br();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=(0,g.wC)().toFixed(0);e.ssr_f=(1E3*a.N.j).toFixed(0);e.ssr_fa=a.C?"1":"0";e.ssr_o=(1E3*a.Iz.eh()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.B.j.index;b.Vn(a.B.Pa,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.B.Pa)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.B.Pa)).toFixed(0));a.ya.ma("ssr",e)};
Bbb=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.x_=function(a,b,c,d,e,f,h,l,m,n){l=void 0===l?!1:l;g.I.call(this);var p=this;this.ea=a;this.schedule=b;this.policy=c;this.manifest=d;this.Ca=m;this.Dc=n;this.timing=new V8a(this.Dc);this.Y=new s7a(this.schedule,this.policy);this.Qa=null;this.Ab=new g.Iv(this.mf,0,this);this.HF=new g.Iv(this.mf,1E3,this);this.vc=new g.Iv(this.mf,void 0,this);this.bb=new g.Iv(this.mf,1E4,this);this.Nb=new g.Iv(this.Uca,250,this);this.Z=this.currentTime=NaN;this.La=this.yp=0;this.Zp=this.YI=this.isSuspended=!1;this.Va=
"";this.II=new pR(5);this.Qc={};this.timestampOffset=NaN;this.Jb=!1;this.gb=0;this.N=null;this.Ha=NaN;this.rb=this.Ma=!1;this.Hb=(0,g.wC)();this.logger=new g.RQ("dash");this.eq=0;this.Wa=!1;this.eb=0;this.Sb=Infinity;this.Sa=0;this.wd={getAudioTrack:function(){return p.audioTrack},
getManifest:function(){return p.manifest},
kqb:function(){return p.qa},
mf:function(){p.mf()},
GB:function(){p.yp=0;p.GB()},
frb:function(H){return w_(p,p.videoTrack,p.Qa.B,H)}};
a=m&&m.zr();m&&(J5a(m,this.manifest,this.policy),this.Ha=Date.now());this.j=new n9a(this,this.Y,c,this.manifest,e,a);c=s9a(this.j,f,h&&h.id);this.audioTrack=new NZ(this,this.policy,c.audio,this.timing);this.videoTrack=new NZ(this,this.policy,c.video,this.timing);this.videoTrack.D.Ha=this.audioTrack.xP();this.Ga={updateend:this.A4,error:this.haa};g.N(this,this.Ab);g.N(this,this.HF);g.N(this,this.vc);g.N(this,this.bb);c=this.policy.YC&&this.policy.Xj?!uEa(this.videoTrack.j.info):!1;this.Kb=E9a({lj:this.policy.N.lj||
c,Xj:this.policy.Xj&&!c,Qs:this.policy.Qs});this.K=wbb(this,this.policy,this.Kb,this.schedule,this.II,function(H,M){return Cbb(p,H,M)});
this.C=new f9a(this,this.manifest,this.policy,this.videoTrack,this.audioTrack,l);this.B=new LY(this,this.manifest,this.videoTrack,this.audioTrack,this.policy);l=this.policy.Jv?this.ea.getVideoData().oi:null;this.G=new b_(this,this.policy,this.videoTrack,this.audioTrack,this.Qc,this.C,this.timing,this.Y,this.schedule,this.manifest,this.j,this.K,c,l);g.N(this,this.G);this.D=new g_(this,this.policy,this.videoTrack,this.audioTrack,this.manifest,e,US(this.ea.getVideoData()),null==h?void 0:h.id);g.N(this,
this.D);nab(this.D,f);this.qa=new ebb(this.ea,this,this.policy,this.audioTrack,this.videoTrack,this.manifest,this.schedule,this.j,this.D,this.timing,this.C);g.N(this,this.qa);this.ra=this.ea.fd.Fu.Zz;var q,r;if(null==(q=this.ra)?0:null==(r=q.RA)?0:r.itagDenylist){var t;this.aL(null==(t=this.ra)?void 0:t.RA.itagDenylist)}var v;if(null==(v=this.ra)?0:v.playbackStartPolicy){var w,A;L_a(this.policy,null==(w=this.ra)?void 0:w.playbackStartPolicy,3,null==(A=this.ra)?void 0:A.Op())}if(this.policy.Rf){e=
this.qe();var C;(f=e?null==(C=this.ra)?void 0:C.o_.get(e):void 0)&&this.qa.qq(f)}if(!this.manifest.Y){var F;C=null==(F=this.ra)?void 0:F.JZ;(null==C?0:C.YJ)&&(null==C?0:C.ZJ)&&this.manifest.dc&&PTa(this.manifest,C.YJ,C.ZJ)}this.logger.debug("Created")};
Dbb=function(a,b){var c=lK(b.j.info,a.manifest.dc),d,e=(null==(d=a.Ca)?void 0:d.Qn(c))||[];if(0===e.length)return a.ma("ombmsi",{}),!1;a:{e=new sQ(e);d=a.currentTime;e=g.u(e.ib);for(var f=e.next();!f.done;f=e.next())if(f=f.value,3===f.type&&d>=f.C&&d<=f.D){d=!0;break a}d=!1}if(!d)return a.ma("ostmf",{ct:a.currentTime,a:b.j.info.Eh()}),!1;null!=(a=a.Ca)&&(a.Xc.get(c).LD=!0);return!0};
Ebb=function(a){if(!a.manifest.dc)return!0;var b=a.ea.getVideoData();if(b.L("html5_skip_live_preroll_onesie")&&y_(a.ea)||b.L("html5_skip_live_preroll_onesie_post_live")&&y_(a.ea)&&(b.Yd||b.isPremiere))return a.ma("ombpa",{}),!1;var c,d;if(a.policy.zB&&!!(null==(c=a.ra)?0:null==(d=c.JZ)?0:d.Vca)!==a.manifest.Yd)return a.ma("ombplmm",{}),!1;c=b.Kb||b.liveUtcStartSeconds||b.zj;if(a.manifest.Yd&&c)return a.ma("ombplst",{}),!1;if(a.manifest.Y)return a.ma("ombab",{}),!1;c=Date.now();if(PQ(a.manifest)&&
!isNaN(a.Ha)&&c-a.Ha>1E3*a.policy.CD)return a.ma("ombttl",{}),!1;if(!(a=a.manifest.cf&&a.manifest.C||!a.policy.VC&&a.manifest.isPremiere||XS(b))&&(a=b.L("html5_disable_onesie_media_for_mosaic"))){var e;a=!(null==(e=b.playerResponse)||!e.compositePlayabilityStatus)}return a||b.L("html5_disable_onesie_media_for_ssdai")&&b.isDaiEnabled()&&b.enableServerStitchedDai?!1:!0};
Fbb=function(a,b){var c=b.j,d=a.manifest.dc;if(Ebb(a))if(a.Ca&&a.Ca.Xc.has(lK(c.info,d))){if(d=lK(c.info,d),Dbb(a,b)){var e=new sQ(a.Ca.Qn(d)),f=function(h){try{if(h.Fm())a.handleError(h.dh(),h.Br()),XZ(b,h),tQ(h.info)&&d_(a.G,b,c,!0),a.mf();else if(dab(a.G,h)){var l;null==(l=a.C)||h9a(l,h.info,a.N);a.mf()}}catch(m){h=TJ(m),a.handleError(h.errorCode,h.details,h.severity),a.Wk()}};
c.C=!0;ySa(e)&&(s$a(b,new MY(a.policy,d,e,a.Ca,f)),nZ(a.timing))}}else a.ma("ombfmt",{})};
z_=function(a,b){b=b||a.videoTrack&&a.videoTrack.B&&a.videoTrack.B.startTime||a.currentTime;var c=e_,d=a.videoTrack,e=a.j;b=e.nextVideo&&e.nextVideo.index.Hi(b)||0;e.Ha!==b&&(e.La={},e.Ha=b,yZ(e,e.j));b=!e.j.isLocked()&&-1<e.Y&&(0,g.wC)()-e.Y<1E3*e.policy.yD;var f=e.nextVideo&&3*CZ(e,e.nextVideo.info)<KY(e.Ca);if(!b||f)xZ(e),zZ(e),e.ra=e.ra||e.nextVideo!==e.C;e.nextVideo&&!e.nextVideo.index.isLoaded()&&(e.Ha=-1);c(a,d,e.nextVideo);e_(a,a.audioTrack,a.j.B)};
A_=function(a,b){a.YI=b;a.policy.Ha||(a.logger.debug("Suspended."),a.isSuspended=!0,a.policy.Uv&&(a.HF.stop(),a.Ab.stop()))};
i9a=function(a,b,c,d){a.policy.K&&a.PG(!1);D$a(a.videoTrack,d,c,b);D$a(a.audioTrack,d,c,b);OQ(a.manifest,d,!0);OQ(a.manifest,d,!1);a.ma("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})};
Gbb=function(a){a.logger.debug("Rebuffering.");a.Zp=!0;if(a.policy.La&&a.Qa){var b,c,d,e;a.ma("lr_rb",{c:a.currentTime,s:a.isSeeking(),ab:qK(a.Qa.j.He()),ala:null==(b=PZ(a.audioTrack))?void 0:b.Tc(),alr:null==(c=a.audioTrack.B)?void 0:c.Tc(),vb:qK(a.Qa.B.He()),vla:null==(d=PZ(a.videoTrack))?void 0:d.Tc(),vlr:null==(e=a.videoTrack.B)?void 0:e.Tc()})}a.policy.NH&&0!==a.ea.KJ()&&a.ma("sps_rebuffer",{c:a.currentTime})};
Hbb=function(a){a.policy.Va=!1;try{a.GB()}catch(b){g.AE(b)}};
Kbb=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;a.policy.Ha&&(a.logger.debug("disable updateMetadataWithoutMediaSource"),a.policy.Ga&&a.ma("loader",{setsmb:0}),a.Wk(),a.policy.Ha=!1);a.logger.debug("attaching media source");Ibb(a,d);if(zV(a.policy)&&!zK()&&a.policy.jn)a.ma("ssap",{delaysb:1}),a.Qa=b;else{if(!GK(b)){var e=TY(a.videoTrack);e=e?e.info.j:a.videoTrack.j;var f=TY(a.audioTrack);f=f?f.info.j:a.audioTrack.j;a.policy.j&&a.ma("ssap",{initsb:1,v:e.info.id,vf:e.info.qb,a:f.info.id,af:f.info.qb});
HEa(b,e.info,f.info,a.policy.Ab)}Jbb(a,b,c,d);try{a.mf()}catch(h){g.AE(h)}}};
Jbb=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;OZ(a.videoTrack,b.B||null,d);OZ(a.audioTrack,b.j||null,d);a.Qa=b;a.Qa.G=!0;c||a.resume();g.VE(b.j,a.Ga,a);g.VE(b.B,a.Ga,a)};
Ibb=function(a,b){b=void 0===b?!1:b;a.Qa&&a.Qa.j&&a.Qa.B&&(WE(a.Qa.j,a.Ga,a),WE(a.Qa.B,a.Ga,a));OZ(a.audioTrack,null,b);OZ(a.videoTrack,null,b);a.Qa&&(a.Qa.G=!1);a.Qa=null};
Lbb=function(a){a.Qa&&a.Qa.Og()&&(a.Tz(),a.policy.yH&&a.handleError("fmt.unplayable",{unexpected:1},1))};
Nbb=function(a,b){if(!a.Na())if(zV(a.policy)){if(!oab(a.D,b)){var c=a.D.B;nab(a.D,b);var d=!1;d=b.isLocked()&&"m"===b.reason&&pab(a.D,b.j);var e=a.policy.Qf&&"l"===b.reason;c=c.j>b.j&&"b"===b.reason;d||e||c?(a.ea.Po({reattachOnConstraint:d?"u":e?"drm":"perf",lo:b.B,up:b.j}),a.policy.sj||(a.D.j.B=!1)):(a.policy.sj&&(a.D.j.B=!1),B_(a))}}else if(!t9a(a.j,b)&&a.videoTrack){a.logger.debug(function(){return"Setting constraint: r="+b.reason+" u="+b.j});
c=a.j.j;Mbb(a,v9a(a.j,b));z_(a);d=b.isLocked()&&"m"===b.reason&&a.j.ra;e=a.policy.Qf&&"l"===b.reason&&ZZ(a.videoTrack);c=c.j>b.j&&"b"===b.reason;var f=a.j.eb&&!zK();d||e||c||f?a.ea.Po({reattachOnConstraint:d?"u":e?"drm":f?"codec":"perf"}):B_(a)}};
Obb=function(a,b,c){if((!a.Qa||CK(a.Qa)&&!a.policy.Rl)&&!a.B.isSeeking()&&(zV(a.policy)||ZZ(b)&&b.j.jg()&&a.j.qa)){var d=a.currentTime+w7a(a.Y,b,c);a.logger.debug(function(){return"Clearing back to "+d.toFixed(3)});
C$a(b,d)}};
Mbb=function(a,b){b&&(a.logger.debug(function(){return"Logging new format: "+oK(b.video.info)}),Pbb(a.ea,new sZ(b.video,b.reason)));
if(a.j.Wa){var c=BZ(a.j,"a");a.ea.Px(new sZ(c.audio,c.reason))}};
bab=function(a){a=a.ea;a=a.videoData.videoId?a.videoData.ffa:void 0;if(a)return oR(a)||void 0};
B_=function(a){g.Jv(a.Ab)};
Qbb=function(a,b){var c=(0,g.wC)()-b,d=1E3*VZ(a.audioTrack,!0),e=1E3*VZ(a.videoTrack,!0);a.logger.debug(function(){return"Appends paused for "+c});
if(a.policy.B&&(a.ma("apdpe",{dur:c.toFixed(),abuf:d.toFixed(),vbuf:e.toFixed()}),AV(a.policy))){var f=KY(a.Y);a.ma("sdps",{ct:b,ah:d.toFixed(),vh:e.toFixed(),mr:x7a(a.Y,a.Zp,f),bw:f.toFixed(),js:a.isSeeking(),re:+a.Zp,ps:(a.policy.ID||"").toString(),rn:(a.policy.HD||"").toString()})}};
Rbb=function(a){if(a.policy.j&&$Z(a.videoTrack)&&$Z(a.audioTrack))return"ssap";if(L$a(a.videoTrack))return a.logger.debug("Pausing appends for server-selectable format"),"ssf";if(a.policy.Sb&&N$a(a.videoTrack)&&N$a(a.audioTrack))return"updateEnd";if(YZ(a.audioTrack)||YZ(a.videoTrack)&&"f"!==a.videoTrack.j.info.qb)return"";if(a.B.isSeeking()){var b=a.Y;var c=a.videoTrack;var d=a.audioTrack;if(b.policy.C){var e=b.policy.zj;AV(b.policy)&&(e=x7a(b,!1,KY(b)));b=e;c=VZ(d,!0)>=b&&VZ(c,!0)>=b}else c.C.length||
d.C.length?(e=c.j.info.sb+d.j.info.sb,e=10*(1-KY(b)/e),b=Math.max(e,b.policy.zj),c=VZ(d,!0)>=b&&VZ(c,!0)>=b):c=!0;if(!c)return"abr";c=a.videoTrack;if(0<c.C.length&&1===c.D.B.length&&$9a(c.D).info.K<c.Ma)return"seek"}if(a.policy.K&&a.policy.Gj&&(O$a(a.videoTrack,a.C)||O$a(a.audioTrack,a.C)))return"ssdai";c=!a.policy.yj||10>a.currentTime;a.policy.vn||(c=c||360<a.videoTrack.j.info.video.j);d=AV(a.policy)&&a.policy.Sl;if(!a.Zp||!d&&c)return"";c=a.policy.yj;AV(a.policy)&&(c=x7a(a.Y,a.Zp,KY(a.Y)));c=G$a(a.videoTrack,
a.currentTime,c)||G$a(a.audioTrack,a.currentTime,c);return AV(a.policy)?c?"mbnm":"":(0<a.videoTrack.C.length||0<a.audioTrack.C.length||V$a(a.G,a.videoTrack,a.audioTrack)||V$a(a.G,a.audioTrack,a.videoTrack))&&c?"nord":""};
Sbb=function(a){if(a.K){var b=a.K.mf(a.audioTrack,uK(a.Qa.B.He()));b&&a.ea.seekTo(b,{Zw:!0,yd:"pollSubsegmentReadahead",Zq:!0})}};
Wbb=function(a,b,c){if(a.policy.Sb&&N$a(b))return!1;if(c.tQ())return!0;if(!c.AI())return!1;var d=TY(b);if(!d||6===d.info.type)return!1;var e=a.policy.wD;if(e&&!d.info.Te&&d.info.K<(d.info.C-a.currentTime)*e)return!1;var f;if(!a.policy.Gj&&(null==(f=a.C)||1===f.B||2===f.B||0!==f.B&&b===f.Ca&&d.info.Pa>H$a(f.Y)))return a.B.isSeeking()&&B_(a),!1;if(!w_(a,b,c,d.info))return!1;if(a.manifest.B&&0===d.info.Tb){if(e=Tbb(b,c,d))f=PZ(b),a.ma("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,ty:d.info.type,
seg:d.info.Pa});f=g.iK(d.info.j.info);a.policy.Qc&&f&&!e&&YSa(d)}e=a.K&&!!a.K.D&&b.j.info.audio;f=a.manifest.isManifestless||d.G;if(!(a.manifest.B&&0!==d.info.Tb||f&&!e)&&Ubb(a,c,d))return!0;if(e)return!1;e=c_(a,b);if(d.info.C>a.currentTime+e)return a.policy.C&&!a.La&&(a.La=(0,g.wC)()),!1;a.La&&(a.La=0);var h;a.policy.Jd&&c===(null==(h=a.Qa)?void 0:h.j)&&a.Wa&&(0===c.PJ()?(a.Wa=!1,a.policy.Jd=!1):a.eb=c.PJ());if(!Vbb(a,c,d))return!1;a.policy.Sb?d.isLocked=!0:(b.Fs(d),y9a(a.j,d.info),a.logger.debug(function(){return"Appended "+
d.info.Tc()+", buffered: "+qK(c.He())}));
return!0};
Vbb=function(a,b,c){var d=a.policy.La?(0,g.wC)():0,e=c.G?c.info.j.j:null,f=c.j;c.G&&(f=Xbb(a,c,f)||f);var h=EN(f);f=a.policy.La?(0,g.wC)():0;e=Ybb(a,b,h,c.info,e);a.policy.La&&(!c.info.Tb||c.info.Te||10>c.info.C)&&(b=b.pc({as:c.info.Tc(),pdur:Math.round(f-d),adur:Math.round((0,g.wC)()-f)}),b.omt=(a.getCurrentTime()+a.Mc()).toFixed(3),b.to=a.Mc(),a.ma("sba",b));if("s"===e)return a.Ma&&(a.logger.debug("Retry succeed, back to normal append logic."),a.Ma=!1,a.rb=!1),a.gb=0,!0;if("i"===e||"x"===e)return Zbb(a,
"checked",e,c.info),!1;if("q"===e){if(!a.Ma)return a.logger.debug("QuotaExceeded, retrying."),a.Ma=!0,!1;if(!a.rb)return a.rb=!0,a.ea.seekTo(a.currentTime,{yd:"quotaExceeded",Zq:!0}),!1;c.info.Ag()?(b=a.policy,b.Ca=Math.floor(.8*b.Ca),b.ud=Math.floor(.8*b.ud),b.ra=Math.floor(.8*b.ra)):(b=a.policy,b.bb=Math.floor(.8*b.bb),b.ra=Math.floor(.8*b.ra));zV(a.policy)?uZ(a.D.j,c.info.j,!1):AZ(a.j,c.info.j)}a.ea.Po({reattachOnAppend:e});return!1};
Xbb=function(a,b,c){var d;if(d=a.policy.Sv&&a.Qa&&!a.Qa.qa&&!a.ea.fJ())b=b.info.j.info,d=b.Le()&&fK(b)&&b.video&&3840>b.video.width&&b.video.width>b.video.height;if(d&&(a.Qa.qa=!0,XJ('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return c=X9a(c),a.policy.B&&a.ma("sp4k",{s:!!c}),c};
Zbb=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",zV(a.policy)?!d.j.info.video||0<vZ(a.D.j).size||uZ(a.D.j,d.j,!1):!d.j.info.video||0<vZ(a.j.G).size||AZ(a.j,d.j)):"i"===c&&(15>a.gb?(a.gb++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=rQ(d);var h;d.mrs=null==(h=a.Qa)?void 0:HK(h);d.origin=b;d.reason=c;a.handleError(e,d,f)};
o$a=function(a,b,c,d,e){var f=a.manifest;var h=!1,l=-1;for(p in f.j){var m=mK(f.j[p].info.mimeType)||f.j[p].info.Ag();if(d===m)if(m=f.j[p].index,m.Vn(b.Pa)){if(!f.Sa){h=m;m=b;var n=h.Jn(m.Pa);n&&n.startTime!==m.startTime?(h.segments=[],h.nN(m),h=!0):h=!1}h&&(l=b.Pa)}else m.nN(b),h=!0}if(0<=l){var p={};f.publish("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}f=h;N7a(a.B,b,d,f);a.C.IR(b,c,d,e);b.Pa===a.manifest.cf&&f&&MQ(a.manifest)&&b.startTime>MQ(a.manifest)&&(a.manifest.bb=b.startTime+(isNaN(a.timestampOffset)?
0:a.timestampOffset),a.B.isSeeking()&&a.B.j<a.manifest.Dd()&&a.B.seek(a.manifest.Dd(),{}))};
w_=function(a,b,c,d){b=PZ(b);!b||b.Te||qQ(b,d)||c.abort();if(!c.KE()||zK())try{c.UT(d.j.info.containerType,d.j.info.mimeType)}catch(e){return c=e,g.BE(c),a.ma("ctexp",{name:c.name,msg:c.message}),!1}else d.j.info.containerType!==c.KE()&&a.ma("ctu",{ct:zK(),prev_c:c.KE(),curr_c:d.j.info.containerType});b=d.j.D;a.policy.pn&&b&&(d=0+b.duration,b=-b.j,0===c.yE()&&d===c.rJ()||c.VS(0,d),b!==c.Mc()&&(c.Gq(b),XX&&q$a(a.audioTrack.xP(),c.JP())));return!0};
Ubb=function(a,b,c){c.info.j.jg();var d=c.info.j.j;if(!d||!b.AI()||b.Jw()===d)return!1;var e=d,f=b.yJ();if(a.policy.Gv&&f&&b.isView()&&g.iK(c.info.j.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=QRa(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.ma("fenc",{})}a.policy.Sv&&(f=Xbb(a,c,new BN([e])))&&(e=EN(f));f=null;(h=c.info.j.Ow(0,c.info.clipId))&&(f=h.ib[0]);a.policy.La&&a.ma("sbi",b.pc({as:c.info.Tc()}));a.policy.gz&&b.abort();d=Ybb(a,b,e,f,d);if("s"!==d)return $bb(a,
d,c),!0;c.info.Ag()?$8a(a.timing):a9a(a.timing);a.logger.debug(function(){return"Appended init for "+c.info.j.info.id});
return b.jk()};
Tbb=function(a,b,c){if(null==b.Jw()){a=PZ(a);if(!(b=!a||a.j!==c.info.j)){a:if(a=a.N,c=c.info.N,a.length!==c.length)c=!1;else{for(b=0;b<a.length;b++)if(!g.Xb(a[b],c[b])){c=!1;break a}c=!0}b=!c}return b}a=b.Jw();c.info.j.KA()&&ZSa(c);c=c.info.j.j;return a!==c&&!g.Xb(a,c)};
Ybb=function(a,b,c,d,e){var f=0;if(a.policy.j&&d&&d.clipId&&a.zb){var h;f=((null==(h=a.zb)?void 0:pY(h,d.clipId))||0)/1E3}try{a.policy.j&&b.Mc()!==f&&b.Gq(f);if(a.policy.Sb&&3===(null==d?void 0:d.type)){var l,m=b===(null==(l=a.Qa)?void 0:l.j)?a.audioTrack:a.videoTrack;m.Ha=new g.Iv(function(){if(!a.Na()&&b.sF()){var n;a.ma("nue",{ls:null==(n=b.gA())?void 0:n.Tc()});b.GI();a.Qa&&a.GB()}},5E3,a);
m.Ha.start()}b.appendBuffer(c,d,e)}catch(n){if(n instanceof DOMException){if(11===n.code)return"i";if(12===n.code)return"x";if(22===n.code||0===n.message.indexOf("Not enough storage"))return c=Object.assign({name:"QuotaExceededError",buffered:qK(b.He()).replace(/,/g,"_"),vheap:TZ(a.videoTrack),aheap:TZ(a.audioTrack),message:g.Ig(n.message,3),track:a.Qa?b===a.Qa.B?"v":"a":"u"},Bbb()),a.handleError("player.exception",c),"q";g.AE(n)}return"u"}return a.Qa.Og()?"m":"s"};
SY=function(a,b,c){a.ea.seekTo(b,c)};
KZ=function(a,b){a.ea.cL(b)};
c_=function(a,b){if(a.Ma&&!a.Zp)return 3;if(a.isSuspended)return 1;var c;if(null==(c=a.Qa)?0:c.Qa&&!1===c.Qa.streaming)return 4;c=(b.j.info.audio?a.policy.bb:a.policy.Ca)/(b.sb*a.policy.Nl);if(0<a.policy.cq&&a.Qa&&CK(a.Qa)&&(b=b.j.info.video?a.Qa.B:a.Qa.j)&&!b.jk()){b=b.He();var d=rK(b,a.currentTime);0<=d&&(b=a.currentTime-b.start(d),c+=Math.max(0,Math.min(b-a.policy.cq,a.policy.xD)))}0<a.policy.ra&&(c=Math.min(c,a.policy.ra));return c};
bcb=function(a){a.Va&&!a.isSuspended&&xR(a.schedule)&&(acb(a,a.Va),a.Va="")};
acb=function(a,b){AX(b,"cms",function(c){a.policy.B&&a.ma("pathprobe",c)},function(c){a.ea.handleError(c)})};
ccb=function(a,b){if(a.Qa&&a.Qa.G&&!a.Qa.Og()&&(b.mw=VZ(a.videoTrack),b.B=VZ(a.audioTrack),a.policy.B)){var c=TZ(a.videoTrack),d=TZ(a.audioTrack),e=qK(a.Qa.B.He(),"_",5),f=qK(a.Qa.j.He(),"_",5);Object.assign(b.j,{lvq:c,laq:d,lvb:e,lab:f})}b.bandwidthEstimate=JY(a.Y);a.logger.debug(function(){return QJ(b.j)})};
dcb=function(a,b){a.N=b;a.C&&(a.C.N=b);a.N.gT(a.videoTrack.j.info.Le());a.G.B=a.N;a.policy.K&&(a.qa.K=a.N)};
ecb=function(a,b){if(a.Qa&&a.Qa.B){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;a.currentTime!==b&&a.resume();if(a.B.isSeeking()&&a.Qa&&!a.Qa.Og()){var c=a.currentTime<=b&&b<a.currentTime+10,d=sK(a.Qa.B.He(),a.currentTime+W$a);c&&d&&(a.B.G=!1)}if(!a.B.isSeeking()){if(a.policy.ip&&2E3<(0,g.wC)()-a.Hb){var e;null==(e=a.videoTrack.N)||H7a(e,b);var f;null==(f=a.audioTrack.N)||H7a(f,b);a.Hb=(0,g.wC)()}a.currentTime=b}g.Jv(a.HF)}};
fcb=function(a,b){var c=z$a(a.videoTrack).find(function(d){return d.startTime>=b&&Cbb(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
Cbb=function(a,b,c){if(!(a.videoTrack.j.jg()&&a.audioTrack.j.jg()&&a.Qa&&a.Qa.B&&a.Qa.j))return!1;if(c&&a.manifest.isManifestless&&(-1===a.videoTrack.K||-1===a.audioTrack.K))return!0;var d=PY(a.videoTrack,b,c);if(isNaN(d))return!1;a=PY(a.audioTrack,a.policy.uf?b:d,c);return isNaN(a)?!1:!0};
f_=function(a){a.Wk();a.B.isSeeking()&&a.logger.debug("seeking cancelled by seek-to-head");a.K&&xbb(a.K,a.videoTrack.j);B_(a);a=a.B;var b=Math.max(a.videoTrack.D.C||0,a.audioTrack.D.C||0);B$a(a.videoTrack);B$a(a.audioTrack);a.policy.G||OTa(a.manifest);a.manifest.isManifestless&&!a.policy.G&&(a.B=!0,a.C=0);a.ya.currentTime=b;a.G=!0;a.D=new IK;return a.D};
e_=function(a,b,c,d){(void 0===d?0:d)&&!b.Ga&&(zK()||(d=b.Rb)&&d.ox(c.info)||gcb(a,b,c),b.Ga=!0);b.j!==c&&(a.logger.debug(function(){return"Setting target itag: "+c.info.id+" (was "+b.j.info.id+")"}),b.j=c)};
gcb=function(a,b,c){if(a.Qa){var d=c.info.Ag(),e=d?a.Qa.B:a.Qa.j;e&&WE(e,a.Ga,a);a.ma("ssap",{reinitsb:1,itag:c.info.id,mime:c.info.mimeType});e=a.Qa;var f=c.info,h=a.policy.Ab;h=void 0===h?"":h;if(e.Qa){h=(c=f.Ag())?f.mimeType+h:f.mimeType;var l=c?"1":"0";e.wg&&e.wg.webkitSourceAddId(l,h);var m=c?e.B:e.j;m&&WE(m,e.D,e);(m=c?e.Y:e.Z)&&e.Qa.removeSourceBuffer(m);var n;m=null==(n=e.Qa)?void 0:n.addSourceBuffer(h);c?e.Y=m:e.Z=m;n=new yK(m,e.wg,l,cK(h),f.qb,c);DK&&g.VE(n,e.D,e);c?e.B=n:e.j=n;g.N(e,n)}d=
d?a.Qa.B:a.Qa.j;OZ(b,d||null);d&&g.VE(d,a.Ga,a)}else a.ma("ssap",{missmse:1})};
hcb=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.logger.debug(function(){return"Timestamps will be made relative to "+a.timestampOffset}),a.C.Z=a.timestampOffset,a.ea.UR(a.timestampOffset),a.manifest.isManifestless&&(a.manifest.timestampOffset=a.timestampOffset),a.videoTrack.Gq(a.timestampOffset),a.audioTrack.Gq(a.timestampOffset))};
$$a=function(a){var b=a.Zk().filter(function(d){return"ad"===d.namespace});
b=g.u(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.getCurrentTime())return c.start/1E3;return Infinity};
icb=function(a){var b=PZ(a.videoTrack),c=PZ(a.audioTrack);return b&&!P$a(a.videoTrack)?b.startTime:c&&!P$a(a.audioTrack)?c.startTime:NaN};
$bb=function(a,b,c){a.policy.LC&&TS(a.ea.getVideoData())?(a.ea.pF()||Zbb(a,"sepInit",b,c.info),jcb(a.ea,"sie")):Zbb(a,"sepInit",b,c.info)};
fab=function(a){return a.Sa<a.Sb};
g.C_=function(a){this.Wc=a};
D_=function(){g.UE.apply(this,arguments)};
E_=function(a,b,c,d){D_.call(this);var e=this;this.C=-1;this.j={};this.D=new g.Iv(this.G,0,this);g.N(this,this.D);this.B=new g.Iv(function(){e.Na()||(e.D.start(Math.random()*c),e.B.start(b))},a,this);
g.N(this,this.B);d.subscribe("fairplay_next_need_key_info",this.K,this)};
kcb=function(a){if(!(28>=a.length))for(var b=(0,g.jZ)([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=JN(b);a=Jg(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++}};
F_=function(a,b,c){D_.call(this);var d=this;this.C=a;this.j=[];this.wd={Fpb:function(){return d.j.length}};
this.D=c.fb("html5_ignore_widevine_key_rotation_license_requests");this.B=new g.Iv(function(){d.publish("log_qoe",{wvagt:"timer",reqlen:d.j?d.j.length:-1});if(d.j){if(0<d.j.length){var e=d.j.shift();lcb(d,e.info)}0<d.j.length&&(e=d.j[0].time-(0,g.wC)(),d.B.start(Math.max(0,e)))}},0);
g.N(this,this.B);b.subscribe("widevine_set_need_key_info",this.G,this)};
lcb=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&0<a.C.size)c=!0;else{for(var d=g.u(a.C.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.publish("log_qoe",{wvagt:"reqnews",canskip:c});c||a.publish("rotated_need_key_info_ready",b)};
mcb=function(a){var b=a.url;var c=a.interval;a=a.retries;this.url=b;this.interval=c;this.retries=a};
ncb=function(a,b){this.statusCode=a;this.message=b;this.B=this.heartbeatParams=this.errorMessage=null;this.j={};this.nextFairplayKeyId=null};
ocb=function(a){var b=HN(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=JP(b.slice(d+2));if(null==b)return null;a=new ncb(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.oEa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new mcb({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,retries:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.B=c.split(",");if(c=b["Key-Ids"]){if(c)for(d=c.split(";"),c={},d=g.u(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};
pcb=function(a,b,c){c=void 0===c?"":c;g.I.call(this);this.message=a;this.requestNumber=b;this.Ve=c;this.onError=this.onSuccess=null;this.j=new g.Nm(5E3,2E4,.2)};
qcb=function(a,b,c){a.onSuccess=b;a.onError=c};
scb=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.Na())if(0!==e.status&&e.response)if(YG("drm_net_r",void 0,a.Ve),e=new Uint8Array(e.response),e=ocb(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else rcb(a,e)},
onError:function(e){rcb(a,e)}};
c&&(b=Gfa(b,"access_token",c));g.VA(b,d)};
rcb=function(a,b){if(!a.Na())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
ucb=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.Na()){YG("drm_net_r",void 0,a.Ve);var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=Jg(f.license)}catch(v){g.AE(v)}if(0!==h||l){l=new ncb(h,l);0!==h&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.u(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var r=tcb[q.trackType];if(r){"HD"===r&&f.isHd720&&(r="HD720");q.isHdr&&(r+="HDR");h[r]||
(m.push(r),h[r]=!0);var t=null;try{t=Jg(q.keyId)}catch(v){g.AE(v)}t&&(n[g.Hg(t,4)]=r)}}l.B=m;l.j=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f.sabrLicenseConstraint&&(l.sabrLicenseConstraint=Jg(f.sabrLicenseConstraint));f=l}else f=null;if(f)a.onSuccess(f,a.requestNumber);else a.onError(a,"drm.net","t.p;p.i")}},
onError:function(f){if(!a.Na())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.IW="Bearer "+d);g.zD(c,"player/get_drm_license",b,e)};
vcb=function(a,b,c,d){g.UE.call(this);this.videoData=a;this.W=b;this.Y=c;this.sessionId=d;this.G={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.N=this.ra=!1;this.C=null;this.Ha=[];this.D=[];this.Z=!1;this.j={};this.Ca=NaN;this.status="";this.K=NaN;this.B=a.K;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.W.j);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Ha&&(a.vvt=this.videoData.Ha,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.W.Ca&&(a.authuser=this.W.Ca);this.W.pageId&&(a.pageid=this.W.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.pc()))?e[1]:"";"ATV"===e&&(a.cdt=e);this.G=a;this.G.session_id=d;this.qa=!0;"widevine"===this.B.flavor&&(this.G.hdr="1");"playready"===this.B.flavor&&(b=Number(hR(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.G.mfpe=""+b),this.qa=!1);b="";g.aR(this.B)?$Q(this.B)?(d=c.B)&&(b="https://www.youtube.com/api/drm/fps?ek="+
Oca(d)):(b=c.initData.subarray(4),b=new Uint16Array(b.buffer,b.byteOffset,b.byteLength/2),b=String.fromCharCode.apply(null,b).replace("skd://","https://")):b=this.B.B;this.baseUrl=b;this.fairplayKeyId=vo(this.baseUrl,"ek")||"";if(b=vo(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Ga=this.videoData.L("html5_use_drm_retry");this.Ha=c.Le?[g.Hg(c.initData,4)]:c.C;G_(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"};
zcb=function(a,b){G_(a,{createkeysession:1});a.status="gr";YG("drm_gk_s",void 0,a.videoData.Sa);a.url=wcb(a);try{a.C=b.createSession(a.Y,function(c){G_(a,{m:c})})}catch(c){b="t.g";
c instanceof DOMException&&(b+=";c."+c.code);a.publish("licenseerror","drm.unavailable",1,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.C&&(xcb(a.C,function(c,d){ycb(a,c,d)},function(c,d,e){if(!a.Na()){d=void 0;
var f=1;g.aR(a.B)&&g.HR(a.W)&&a.W.L("html5_enable_safari_fairplay")&&1212433232===e&&(d="ERROR_HDCP",f=a.W.L("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.Na()||(G_(a,{onkyadd:1}),a.N||(a.publish("sessionready"),a.N=!0))},function(c){a.lq(c)}),g.N(a,a.C))};
wcb=function(a){var b=a.baseUrl;GCa(b)||a.error("drm.net",2,"t.x");if(!vo(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.W.experiments.experiments[e]});
0<c.length&&(a.G.fexp=c.join())}c=g.u(Object.keys(a.G));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Gfa(b,d,a.G[d]);return b};
ycb=function(a,b,c){if(!a.Na())if(b){G_(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":Acb(a,b);return;default:a.publish("ctmp","message_type",{t:c,l:b.byteLength})}a.ra||(YG("drm_gk_f",void 0,a.videoData.Sa),a.ra=!0,a.publish("newsession",a));if(XQ(a.B)&&(b=Bcb(b),!b))return;g.aR(a.B)&&!a.videoData.useInnertubeDrmService()&&(b=IKa(g.Hg(b)));b=new pcb(b,++a.requestNumber,a.videoData.Sa);qcb(b,function(d){Ccb(a,
d)},function(d,e,f){if(!a.Na()){var h=0,l;
(l=3<=d.j.B)||(l=a.Ga&&36E4<(0,g.wC)()-a.Ca);l&&(h=1,e="drm.net.retryexhausted");G_(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(SJ(h),d)&&Dcb(a,d)}});
g.N(a,b);Ecb(a,b)}else a.error("drm.unavailable",1,"km.empty")};
Acb=function(a,b){G_(a,{sdpvrq:1});a.K=Date.now();if("widevine"!==a.B.flavor)a.error("drm.provision",1,"e.flavor;f."+a.B.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.W.j);c=g.to("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:HN(b)}),responseType:"arraybuffer"};
g.YA(c,b,3,500).then(sO(function(d){d=d.xhr;if(!a.Na()){d=new Uint8Array(d.response);var e=HN(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.publish("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.K)/1E3,a.K=NaN,a.publish("ctmp","provs",{et:f.toFixed(3)}),a.C&&a.C.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",1,d))}}),sO(function(d){a.Na()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
H_=function(a){var b;if(b=a.qa&&null!=a.C)a=a.C,b=!(!a.j||!a.j.keyStatuses);return b};
Ecb=function(a,b){a.status="km";YG("drm_net_s",void 0,a.videoData.Sa);if(a.videoData.useInnertubeDrmService()){var c=new g.yD(a.W.Ik),d={context:g.Mta(c.config_||g.ZC())};d.drmSystem=Fcb[a.B.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.Hg(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.B)?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.W.j)d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver;d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.videoData.Ha&&(d.context.user.credentialTransferTokens=[{token:a.videoData.Ha,
scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.Jb&&(d.context.user.kidsParent={oauthToken:a.videoData.Jb});g.aR(a.B)&&(d.fairplayKeyId=g.Hg(Pca(a.fairplayKeyId)));g.$R(a.W,g.qT(a.videoData)).then(function(l){ucb(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.$R(a.W,g.qT(a.videoData)).then(function(l){scb(b,a.url,l);
a.status="rs"})};
Ccb=function(a,b){if(!a.Na())if(G_(a,{onlcsrsp:1}),a.status="rr",0!==b.statusCode)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{YG("drm_kr_s",void 0,a.videoData.Sa);if(b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.L("outertube_streaming_data_always_use_staging_license_service")){var c=a.B.B.match(/(.*)youtube.com/g);c&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url)}b.heartbeatParams&&a.publish("newlicense",b.heartbeatParams);b.B&&(a.D=b.B,a.videoData.useInnertubeDrmService()&&
!a.videoData.zD&&a.publish("newlicense",new mcb({})),a.videoData.zD=!0,a.Z=Ys(a.D,function(d){return d.includes("HDR")}));
b.j&&(a.W.L("html5_enable_vp9_fairplay")&&$Q(a.B)?(c=g.Hg(Pca(a.fairplayKeyId),4),a.j[c]={type:b.j[c],status:"unknown"}):a.j=Wc(b.j,function(d){return{type:d,status:"unknown"}}));
YQ(a.B)&&!a.videoData.useInnertubeDrmService()?b.message=Jg(HN(b.message)):ZQ(a.B)&&a.videoData.useInnertubeDrmService()&&(b.message=IKa(g.Hg(b.message)));a.C&&(G_(a,{updtks:1}),a.status="ku",a.C.update(b.message).then(function(){YG("drm_kr_f",void 0,a.videoData.Sa);H_(a)||(G_(a,{ksApiUnsup:1}),a.publish("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.Ig(d.message,3);
a.error("drm.keyerror",1,d)}));
a.N&&(a.Ca=(0,g.wC)());g.aR(a.B)&&a.publish("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId);a.W.L("html5_enable_vp9_fairplay")&&$Q(a.B)&&a.publish("qualitychange",Gcb(a.D));b.sabrLicenseConstraint&&a.publish("sabrlicenseconstraint",b.sabrLicenseConstraint)}};
Dcb=function(a,b){var c=b.j.getValue();c=new g.Iv(function(){Ecb(a,b)},c);
g.N(a,c);c.start();g.Om(b.j);G_(a,{rtyrq:1})};
Hcb=function(a,b){for(var c=[],d=g.u(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)};
Icb=function(a){var b={};b[a.status]=H_(a)?Hcb(a,"."):a.D.join(".");return b};
Jcb=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};
Kcb=function(a,b){for(var c in a.j)if("usable"===a.j[c].status&&a.j[c].type===b)return!0;return!1};
Lcb=function(a,b){for(var c in a.j)if(a.j[c].type===b)return a.j[c].status};
G_=function(a,b){var c=void 0===c?!1:c;QJ(b);(c||a.W.Bc())&&a.publish("ctmp","drmlog",b)};
Mcb=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};
Gcb=function(a){return g.Fb(a,"UHD2")||g.Fb(a,"UHD2HDR")?"highres":g.Fb(a,"UHD1")||g.Fb(a,"UHD1HDR")?"hd2160":g.Fb(a,"HD")||g.Fb(a,"HDHDR")?"hd1080":g.Fb(a,"HD720")||g.Fb(a,"HD720HDR")?"hd720":"large"};
Bcb=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=Oba(new DOMParser,se(b));return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array((0,g.jZ)(Uca(a.childNodes[0].nodeValue)).buffer):null:null};
I_=function(a,b,c,d,e,f){f=void 0===f?!1:f;g.I.call(this);this.element=a;this.Z=b;this.initData=c;this.j=d;this.B=e;this.Y=f;this.sessionId="";this.N=this.K=this.C=this.G=null;this.D=new g.YJ(this);g.N(this,this.D);Ncb(this)};
Ncb=function(a){a.j?(a.D.T(a.j,"message",a.B4),a.D.T(a.j,"keystatuseschange",a.lq),a.j.closed&&a.j.closed.then(sO(function(){a.onClosed()}),null)):a.B&&(LB(a.D,a.B,["mskeymessage",
"webkitkeymessage"],a.Q_),LB(a.D,a.B,["mskeyerror","webkitkeyerror"],a.P_),LB(a.D,a.B,["mskeyadded","webkitkeyadded"],a.O_))};
xcb=function(a,b,c,d,e){a.G=b;a.C=c;a.K=d;a.N=e};
Ocb=function(a,b,c){g.AE(c);a.C&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.C(b))};
J_=function(a,b,c,d){d=void 0===d?!1:d;g.I.call(this);this.element=a;this.j=b;this.ma=c;this.N=d;this.K={};this.D=null;this.G=new g.YJ(this);this.C=this.B=null;g.N(this,this.G)};
Qcb=function(a,b){b=Pcb(b,a.j.Wa);b=a.C.createSession("video/mp4",b);return new I_(null,null,null,null,b,a.N)};
Rcb=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.C.createSession("video/mp4",b,c);return new I_(null,null,null,null,a)};
Scb=function(a,b){var c=a.K[b.sessionId];!c&&a.D&&(c=a.D,a.D=null,c.sessionId=b.sessionId,a.K[b.sessionId]=c);return c};
Pcb=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};
K_=function(){this.keys=[];this.values=[]};
Vcb=function(a,b,c){g.UE.call(this);this.element=a;this.videoData=b;this.W=c;this.j=this.videoData.K;this.drmSessionId=this.videoData.drmSessionId||g.gva();this.B=new Map;this.K=new K_;this.N=new K_;this.C=[];this.Ma=2;this.ra=new g.YJ(this);this.Sa=this.Ga=!1;this.heartbeatParams=null;this.Ha=this.Y=!1;this.G=null;this.La=!1;this.Ca=this.W.L("html5_eme_ignore_teardown_errors");(a=this.element)&&(a.addKey||a.webkitAddKey)||VQ()||ZTa(c.experiments);this.W.L("html5_enable_vp9_fairplay")&&$Q(this.j)?
c=Tcb:(c=this.videoData.Ok,c="fairplay"===this.j.flavor||c?DS:Tcb);this.Z=c;this.D=new J_(this.element,this.j,this.XK.bind(this),this.Ca);g.N(this,this.D);WQ(this.j)&&(this.qa=new J_(this.element,this.j,this.XK.bind(this),this.Ca),g.N(this,this.qa));g.N(this,this.ra);c=this.element;this.j.keySystemAccess?this.ra.T(c,"encrypted",this.Iaa):LB(this.ra,c,WQ(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.jba);Ucb(this);a:switch(c=this.j,a=this.W.experiments,b=this.B,c.flavor){case "fairplay":19.2999<
Wqa()?(a=c.Yv,c=c.Xv,c>=a&&(c=.75*a),b=.5*(a-c),c=new E_(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new F_(b,this,a);break a;default:c=null}if(this.G=c)g.N(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.zW,this),this.G.subscribe("log_qoe",this.nj,this);ZTa(this.W.experiments);this.nj({cks:this.j.getInfo()})};
Ucb=function(a){var b=a.D.SN();b?b.then(sO(function(){Wcb(a)}),sO(function(c){if(!a.Na()){g.AE(c);
var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.publish("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.nj({mdkrdy:1}),a.Y=!0);
a.qa&&(b=a.qa.SN())};
Ycb=function(a,b,c){a.Sa=!0;c=new HZ(b,c);a.W.L("html5_eme_loader_sync")&&(a.K.get(b)||a.K.set(b,c));Xcb(a,c)};
Xcb=function(a,b){if(!a.Na()){a.nj({onInitData:1});if(a.W.L("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.N.get(b.initData);b=a.K.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.K.remove(c);a.N.remove(c)}a.nj({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.Ga&&!a.videoData.isLivePlayback)L_(a);else{if(!(a.W.L("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Le)){a.Ga=!0;c=b.cryptoPeriodIndex;var d=b.j;R9a(b);b.Le||(d&&b.j!==d?a.publish("ctmp","cpsmm",
{emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.publish("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.publish("widevine_set_need_key_info",b)}}else a.zW(b)}};
Wcb=function(a){if(!a.Na())if(a.W.L("html5_drm_set_server_cert")||$Q(a.j)){var b=a.D.setServerCertificate();b?b.then(sO(function(c){a.W.Bc()&&a.publish("ctmp","ssc",{success:c})}),sO(function(c){a.publish("ctmp","ssce",{n:c.name,
m:c.message})})).then(sO(function(){Zcb(a)})):Zcb(a)}else Zcb(a)};
Zcb=function(a){a.Na()||(a.Y=!0,a.nj({onmdkrdy:1}),L_(a))};
$cb=function(a){return"widevine"===a.j.flavor&&a.videoData.L("html5_drm_cpi_license_key")};
L_=function(a){if((a.Sa||a.W.L("html5_widevine_use_fake_pssh"))&&a.Y&&!a.Ha){for(;a.C.length;){var b=a.C[0],c=$cb(a)?S9a(b):g.Hg(b.initData);if($Q(a.j)&&!b.B)a.C.shift();else{if(a.B.get(c))if("fairplay"!==a.j.flavor||$Q(a.j)){a.C.shift();continue}else a.B.delete(c);R9a(b);break}}a.C.length&&a.createSession(a.C[0])}};
adb=function(a){var b;if(b=g.hB()){var c;b=!(null==(c=a.D.B)||!c.getMetrics)}b&&(b=a.D.getMetrics())&&(b=g.LN(b),a.publish("ctmp","drm",{metrics:b}))};
bdb=function(a){g.I.call(this);var b=this;this.ea=a;this.Da=this.ea.U();this.videoData=this.ea.getVideoData();this.BF=0;this.K=this.B=this.G=!1;this.D=0;this.C=g.xI(this.Da.experiments,"html5_delayed_retry_count");this.j=new g.Iv(function(){M_(b.ea)},g.xI(this.Da.experiments,"html5_delayed_retry_delay_ms"));
g.N(this,this.j)};
fdb=function(a,b,c){var d=a.videoData.B,e=a.videoData.D;TS(a.ea.getVideoData())&&a.Da.L("html5_gapless_fallback_on_qoe_restart")&&jcb(a.ea,"pe");if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.ea.yk.G&&d&&"22"===d.itag)return a.ea.yk.G=!0,a.Rd("qoe.restart",{reason:"fmt.unplayable.22"}),N_(a.ea),!0;var f=!1;if(a.videoData.isExternallyHostedPodcast){if(f=a.videoData.Q3)c.mimeType=f.type,a.ma("3pp",{url:f.url});c.ns="3pp";a.ea.Mf(b,1,"VIDEO_UNAVAILABLE",QJ((new RJ(b,
c,1)).details));return!0}var h=a.BF+3E4<(0,g.wC)()||a.j.isActive();if(a.Da.L("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Rd("auth",c),!0;h||UZa(a.ea.Am())||(c.nonfg="paused",h=!0,a.ea.pauseVideo());("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:wEa(e)||hK(e))&&(vUa(a.Da.G,e.qb),c.acfallexp=e.qb,f=h=!0);!h&&0<a.C&&(a.j.start(),h=!0,c.delayed="1",--a.C);e=a.ea.ya;!h&&((null==d?0:gK(d))||(null==d?0:fK(d)))&&(vUa(a.Da.G,d.qb),
f=h=!0,c.cfallexp=d.qb);if(!h)return cdb(a,c);if(a.Da.L("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.sT(a.videoData)&&"fmt.unplayable"===b&&c.cid&&c.ccid&&c.cid!==c.ccid&&UZa(a.ea.Am())&&(a.Rd("ssap.transitionfailure",c),h=a.ea,g.sT(h.videoData)&&h.zb&&y6a(h.zb)))return!0;h=!1;a.G?a.BF=(0,g.wC)():h=a.G=!0;var l=a.videoData;if(l.gb){l=l.gb.AV();var m=Date.now()/1E3+1800;l=l<m}else l=!1;c.e=b;c.bkg=v5a();l&&(c.staleprog="1");a.Rd("qoe.restart",c);if(l&&ddb(a))return edb(a),!0;if(!(!g.fB("philips")||
"fmt.unplayable"===b&&e&&e.Ha||"GAME_CONSOLE"===a.Da.j.cplatform))try{window.close()}catch(n){}d&&gK(d)&&!a.Da.L("html5_allow_av1_retry_in_session")?(f=a.Da.G,f.Y=!0,f=f.B=!0):e?h||(b=(b=PZ(e.videoTrack)||e.videoTrack.B)?b.j:e.videoTrack.j,b.K+=1,zV(e.policy)?uZ(e.D.j,b,!0):AZ(e.j,b,!0)):a.videoData.gb&&a.videoData.gb.US();a.j.isActive()||M_(a.ea,f);return!0};
cdb=function(a,b){if(a.videoData.ra)return!1;a.Da.Kb+=1;if(10>=a.Da.Kb)return!1;b.exiled=""+a.Da.Kb;a.Rd("qoe.start15s",b);a.ea.publish("playbackstalledatstart");return!0};
ddb=function(a){return a.B?!0:"yt"===a.Da.ra?a.videoData.ra?25>a.videoData.Sb:!a.videoData.Sb:!1};
edb=function(a){if(!a.B){a.B=!0;var b=a.ea.getPlayerState();b=b.isPaused()||b.isSuspended();a.ea.No();b&&!rT(a.videoData)||a.ea.publish("signatureexpired")}};
gdb=function(a,b){if((a=a.ea.Je())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.dh();b.details.merr=c?c.toString():"0";b.details.mmsg=a.wf()}};
hdb=function(a){return"net.badstatus"===a.errorCode&&(1===a.severity||!!a.details.fmt_unav)};
idb=function(a,b){return a.Da.L("html5_use_network_error_code_enums")&&403===b.details.rc||"403"===b.details.rc?(a=b.errorCode,"net.badstatus"===a||"manifest.net.retryexhausted"===a):!1};
kdb=function(a,b){if(!idb(a,b)&&!a.B)return!1;b.details.sts="19879";if(ddb(a))return SJ(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new RJ("qoe.restart",b)),a.Rd(b.errorCode,b.details),edb(a),!0;6048E5<(0,g.wC)()-a.Da.Sf&&jdb(a,"signature");return!1};
jdb=function(a,b){try{window.location.reload(),a.Rd("qoe.restart",{detail:"pr."+b})}catch(c){}};
ldb=function(a,b){var c=a.Da.G;c.K=!1;c.B=!0;a.Rd("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});M_(a.ea,!0)};
mdb=function(a,b,c,d,e){this.videoData=a;this.j=b;this.reason=c;this.B=d;this.token=e};
ndb=function(a,b,c){this.W=a;this.iH=b;this.ea=c;this.Z=this.K=this.j=this.D=this.N=this.B=0;this.G=!1;this.Y=g.xI(this.W.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.C=new Map};
pdb=function(a,b,c){!a.W.L("html5_tv_ignore_capable_constraint")&&g.II(a.W)&&(c=c.compose(odb(a,b)));return c};
rdb=function(a,b){var c,d=qdb(a,null==(c=b.j)?void 0:c.videoInfos);c=a.ea.getPlaybackRate();return 1<c&&d?(a=pUa(a.W.G,b.j.videoInfos,c),new bP(0,a,!0,"o")):new bP(0,0,!1,"o")};
qdb=function(a,b){return b&&g.II(a.W)?b.some(function(c){return 32<c.video.fps}):!1};
sdb=function(a,b){var c=a.ea.vJ();a.L("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&0<c.fU&&eP(b.videoData.dB)&&(a=c.fU,b.videoData.dB=new bP(0,a,!1,"u"));return b.videoData.dB};
odb=function(a,b){if(g.II(a.W)&&qP(a.W.G,rP.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;g.FR(a.W)&&(e=window.screen&&window.screen.width?new g.Ke(window.screen.width,window.screen.height):null);e||(e=a.W.un?a.W.un.clone():a.iH.Vh());(kB||IY||d)&&e.scale(g.QR());d=e;US(b.videoData)||rT(b.videoData);b=b.j.videoInfos;if(b.length){e=g.xI(a.W.experiments,"html5_override_oversend_fraction")||.85;var f=b[0].video;"MESH"!==f.projectionType&&"EQUIRECTANGULAR"!==f.projectionType&&"EQUIRECTANGULAR_THREED_TOP_BOTTOM"!==
f.projectionType||UUa||(e=.45);a=g.xI(a.W.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 bP(0,"93"===c.itag?g.$J[tEa(d.width,d.height)]:d.j,!1,"r")}else c=DS;c=c.j}c&&(c=Math.max(c,360));return new bP(0,c,!1,"r")};
tdb=function(a){var b,c,d,e;return g.G(function(f){switch(f.j){case 1:return a.j.j&&"function"===typeof(null==(b=navigator.mediaCapabilities)?void 0:b.decodingInfo)?g.z(f,Promise.resolve(),2):f.return(Promise.resolve());case 2:c=g.u(a.j.videoInfos),d=c.next();case 3:if(d.done){f.Ia(0);break}e=d.value;return g.z(f,yEa(e),4);case 4:d=c.next(),f.Ia(3)}})};
vdb=function(a,b){if(!b.videoData.B||a.L("html5_disable_performance_downgrade"))return!1;6E4<g.lb()-a.N&&(a.B=0);a.B++;a.N=g.lb();if(4!==a.B)return!1;udb(a,b.videoData.B);return!0};
xdb=function(a,b,c,d){if(!b||!c||!b.videoData.B)return!1;var e=g.xI(a.W.experiments,"html5_df_downgrade_thresh"),f=a.L("html5_log_media_perf_info");if(!(5E3>(0,g.wC)()-a.D?0:f||0<e))return!1;var h=((0,g.wC)()-a.D)/1E3;a.D=(0,g.wC)();c=c.getVideoPlaybackQuality();if(!c)return!1;var l=c.droppedVideoFrames-a.K,m=c.totalVideoFrames-a.Z;a.K=c.droppedVideoFrames;a.Z=c.totalVideoFrames;var n=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||-1;f&&a.W.Bc()&&a.ea.ma("ddf",{dr:c.droppedVideoFrames,
de:c.totalVideoFrames,comp:n});if(d)return a.j=0,!1;if((m-l)/h>a.Y||!e||g.II(a.W))return!1;a.j=(60<m?l/m:0)>e?a.j+1:0;if(3!==a.j)return!1;udb(a,b.videoData.B);a.ea.ma("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},wdb()));return!0};
udb=function(a,b){var c=a.W,d=b.qb,e=b.video.fps,f=b.video.j-1,h=a.C;b=""+d+(49<e?"p60":32<e?"p48":"");if(c.L("html5_gradual_perf_cap"))if(0>=f&&UTa("VideoPlayer",321298775,b,f.toFixed(0)),c=TQ(c,d,e,h),0<f&&(c=Math.min(c,f)),!O_.has(b)&&IPa().includes(b))GPa(b,c,!0);else if(O_.has(b)||null==h){a:{var l=void 0===l?!0:l;d=IPa().slice();if(l){if(d.includes(b))break a;d.push(b)}else{if(!d.includes(b))break a;d.splice(d.indexOf(b),1)}g.PB("yt-player-performance-cap-active-set",d,2592E3)}SQ.set(b,c)}else O_.add(b),
null==h||h.set(b,c);else GPa(b,f);a.ea.To()};
ydb=function(a,b){if(!b.j.j)return a.G?new bP(0,360,!1,"b"):DS;for(var c=!1,d=!1,e=g.u(b.j.videoInfos),f=e.next();!f.done;f=e.next())gK(f.value)?c=!0:d=!0;c=c&&d;d=0;e=g.xI(a.W.experiments,"html5_performance_cap_floor");e=a.W.B?240:e;b=g.u(b.j.videoInfos);for(f=b.next();!f.done;f=b.next()){var h=f.value;if(!c||!gK(h))if(f=TQ(a.W,h.qb,h.video.fps,a.C),h=h.video.j,Math.max(f,e)>=h){d=h;break}}return new bP(0,d,!1,"b")};
zdb=function(a,b){var c=a.ea.Am();return c.isInline()&&!b.vN?new bP(0,480,!1,"v"):c.isBackground()&&60<QD()/1E3&&!g.II(a.W)?new bP(0,360,!1,"v"):DS};
Bdb=function(a,b,c){if(a.W.experiments.fb("html5_disable_client_autonav_cap_for_onesie")&&"onesie"===b.fetchType||g.II(a.W)&&(1080<=YO(-1)||b.osid))return DS;var d=g.xI(a.W.experiments,"html5_autonav_quality_cap"),e=g.xI(a.W.experiments,"html5_autonav_cap_idle_secs");return d&&b.isAutonav&&QD()/1E3>e?(c&&(d=Adb(a,c,d)),new bP(0,d,!1,"e")):DS};
Adb=function(a,b,c){if(a.L("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};
Cdb=function(a,b){a.L("html5_log_media_perf_info")&&(a.ea.ma("perfdb",wdb()),a.L("html5_gradual_perf_cap")&&(a.ea.ma("sessionperfdb",Object.fromEntries(SQ.entries())),a.ea.ma("playbackperfdb",Object.fromEntries(a.C.entries()))),a.ea.ma("hwc",{nch:navigator.hardwareConcurrency},!0),b&&a.ea.ma("mcdb",{itags:b.j.videoInfos.filter(function(c){var d;return!1===(null==(d=c.B)?void 0:d.smooth)}).map(function(c){return c.itag}).join("-")}))};
wdb=function(){return Wc(ZO(),function(a){return""+a})};
P_=function(a){g.I.call(this);var b=this;this.provider=a;this.j=-1;this.G=!1;this.B=-1;this.playerState=new g.LK;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.Iv(this.send,6E4,this);this.C=!1;this.jsErrorCount=0;this.wd={qB:function(){b.qB()}};
this.qB=function(){b.jsErrorCount++};
g.N(this,this.delay);window.addEventListener("error",this.qB);window.addEventListener("unhandledrejection",this.qB)};
Ddb=function(a){0<=a.j||(3===a.provider.ea.getVisibilityState()?a.G=!0:(a.j=g.KM(a.provider),a.delay.start()))};
Edb=function(a){if(!(0>a.B)){var b=g.KM(a.provider),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:a.playerState.isBuffering()&&!g.MF(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
Fdb=function(a){var b;switch(null==(b=a.W.playerCanaryStage)?void 0:b.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}};
Hdb=function(a,b){b?Gdb.test(a):(a=g.GA(a),Object.keys(a).includes("cpn"))};
Jdb=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(JA(a)&&KA()){if(h){var n;2!==(null==(n=Idb.uaChPolyfill)?void 0:n.state.type)?h=null:(h=Idb.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.xA("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]=
d:g.xA("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.xA("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);(d=b.Ca)&&!SR(b)&&(m["X-Goog-AuthUser"]=d);e&&(m.Authorization="Bearer "+e);b.L("enable_datasync_id_header_in_web_vss_pings")&&b.Ol&&b.datasyncId&&(m["X-Yt-DataSync-Id"]=b.datasyncId);h||m["X-Goog-Visitor-Id"]||e||c||d?l.withCredentials=!0:b.L("html5_send_cpn_with_options")&&Gdb.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};
Kdb=function(a,b,c,d,e,f,h,l){KA()&&c.token&&(a=HA(a,{ctt:c.token,cttype:c.JT,mdx_environment:c.mdxEnvironment}));f||l&&d.L("nwl_skip_retry")?(null==b?b={}:Hdb(a,d.L("html5_assert_cpn_with_regex")),h?xD().sendAndWrite(a,b):xD().sendThenWrite(a,b,l)):b?(Hdb(a,d.L("html5_assert_cpn_with_regex")),g.VA(a,b)):g.qD(a,e)};
Mdb=function(a){for(var b=[],c=0;c<a;c++){for(var d={},e=Math.floor(9*Math.random()*Ldb)+Ldb,f="",h=0;9>h;h++)f+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(52*Math.random())];d.videoDecoderName=f;d.elapsedTimeMs=e;b.push(d)}return b};
g.S_=function(a,b){g.I.call(this);var c=this;this.provider=a;this.logger=new g.RQ("qoe");this.j={};this.sequenceNumber=1;this.K=NaN;this.De="N";this.Z=this.JB=this.IB=this.Jb=this.G=0;this.Ma=this.vc="";this.Nb=this.Sa=NaN;this.Kb=0;this.Dc=-1;this.Sb=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.bb=this.rb=this.Ha=this.isOffline=this.isBuffering=!1;this.Jd=[];this.qa=null;this.eb=this.C=this.Wa=this.N=!1;this.B=-1;this.Va=!1;this.Qc=new g.Iv(this.u9,750,this);this.Y=this.adCpn=this.ra=this.contentCpn=
"";this.adFormat=void 0;this.ge=0;this.ud=new Set("cl fexp drm drm_system drm_product ns el adformat live cat".split(" "));this.zd=new Set(["gd"]);this.gb=!1;this.Hb=NaN;this.Ga=0;this.Ab=!1;this.Ca=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.wd={JL:function(e){c.JL(e)},
Tpb:function(){return c.D},
fg:function(){return c.contentCpn},
Bpb:function(){return c.ra},
reportStats:function(){c.reportStats()},
wpb:function(){return c.j.cat},
EJ:function(e){return c.j[e]},
pqb:function(){return c.Ca}};
var d=g.xI(this.provider.W.experiments,"html5_qoe_proto_mock_length");d&&!Q_.length&&(Q_=Mdb(d));g.N(this,this.Qc);try{navigator.getBattery().then(function(e){c.qa=e})}catch(e){}g.R_(this,0,"vps",["N"]);
a.W.Bc()&&(this.Ga=(0,g.wC)(),this.Hb=g.QA(function(){var e=(0,g.wC)(),f=e-c.Ga;500<f&&c.ma("vmlock",{diff:f.toFixed()});c.Ga=e},250));
a.ea.gg()&&b&&(this.Ca=b-Math.round(1E3*g.KM(a)));this.provider.W.L("html5_qoe_qclc_remote_connected")&&(this.provider.videoData.cj&&(this.remoteControlMode=Ndb[this.provider.videoData.cj]||0),this.provider.videoData.Ij&&(a=SQa(this.provider.videoData.Ij),null==a?0:a.length))&&(this.remoteConnectedDevices=a)};
g.R_=function(a,b,c,d){var e=a.j[c];e||(e=[],a.j[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
Odb=function(a,b){var c=a.provider.getCurrentTime();g.R_(a,b,"cmt",[c.toFixed(3)]);c=a.provider.Vf();if(a.D&&1E3*c>a.D.q_+100&&a.D){var d=a.D,e=d.isAd;c=1E3*c-d.q_;a.La=1E3*b-d.Eda-c-d.nda;c=(0,g.wC)()-c;b=a.La;d=a.provider.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.G&&(h.cttAuthInfo={token:d.G,videoId:d.videoId});h.startTime=c-b;$G(f,h);g.ZG({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},f);YG("pbs",c,f)}else c=a.provider.ea.Ei(),c.K!==d.clientPlaybackNonce?
(c.G=d.clientPlaybackNonce,c.B=b):d.fk()||g.BE(new g.XB("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.ma("gllat",{l:a.La.toFixed(),prev_ad:+e});delete a.D}};
T_=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.KM(a.provider);var c=a.provider.ea.UE(),d=c.Ms-(a.Sa||0);0<d&&g.R_(a,b,"bwm",[d,(c.qv-(a.Nb||0)).toFixed(3)]);isNaN(a.Sa)&&c.Ms&&a.isOffline&&a.JL(!1);a.Sa=c.Ms;a.Nb=c.qv;isNaN(c.bandwidthEstimate)||g.R_(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.W.Bc()&&0!==Object.keys(c.j).length&&a.ma("bwinfo",c.j);if(a.provider.W.Bc()||a.provider.W.L("html5_log_meminfo"))d=Bbb(),Object.values(d).some(function(e){return void 0!==e})&&a.ma("meminfo",d);
a.qa&&g.R_(a,b,"bat",[a.qa.level,a.qa.charging?"1":"0"]);d=a.provider.ea.getVisibilityState();a.Dc!==d&&(g.R_(a,b,"vis",[d]),a.Dc=d);Odb(a,b);(d=Pdb(a.provider))&&d!==a.Kb&&(g.R_(a,b,"conn",[d]),a.Kb=d);Qdb(a,b,c)};
Qdb=function(a,b,c){if(!isNaN(c.mw)){var d=c.mw;c.B<d&&(d=c.B);g.R_(a,b,"bh",[d.toFixed(3)])}};
Rdb=function(a,b,c){g.$R(a.provider.W,g.qT(a.provider.videoData)).then(function(d){var e=!1;if(b.includes("&dt=")||b.includes("&cotn=")){if(a.provider.W.L("kevlar_woffle")||a.provider.W.L("qoe_nwl_downloads"))e=!0}else a.provider.W.L("qoe_with_networkless")&&(e=!0);var f=a.provider.W.L("qoe_send_and_write"),h=a.provider.W;d=Jdb(b,h,a.provider.W.pageId,a.provider.W.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,d);h.L("html5_simplify_pings")&&(d=d||{});d?(d.method="POST",d.postBody=c,
Kdb(b,d,{token:a.provider.videoData.G,JT:a.provider.videoData.fn,mdxEnvironment:a.provider.videoData.mdxEnvironment},h,void 0,e,f&&a.Ha)):e?(e=a.provider.W.L("networkless_ajax"),h={method:"POST",postBody:c},f&&a.Ha?xD().sendAndWrite(b,h):e?g.VA(b,{method:"POST",postBody:c}):xD().sendThenWrite(b,h)):(f=c,f=void 0===f?"":f,Eua(b,f)||g.qD(b,void 0,void 0,void 0,f))})};
Sdb=function(a){for(var b=0,c=g.u(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(bs(a.j[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.Iv(a.reportStats,0,a)).start()};
Tdb=function(a){a.provider.videoData.Pf&&U_(a,"prefetch");a.provider.videoData.Sb&&a.ma("reload",{r:a.provider.videoData.reloadReason,ct:a.provider.videoData.Sb});a.provider.videoData.Ab&&U_(a,"monitor");a.provider.videoData.isLivePlayback&&U_(a,"live");gR&&U_(a,"streaming");a.provider.videoData.jo()&&U_(a,"lifa");a.provider.videoData.cj&&a.ma("ctrl",{mode:a.provider.videoData.cj},!0);if(a.provider.videoData.Ij){var b=a.provider.videoData.Ij.replace(/,/g,"_");a.ma("ytp",{type:b},!0)}a.provider.videoData.nW&&
(b=a.provider.videoData.nW.replace(/,/g,"."),a.ma("ytrexp",{ids:b},!0));var c=a.provider.videoData;b=a.provider.W.L("enable_white_noise")||a.provider.W.L("enable_webgl_noop");c=g.YS(c)||g.hT(c)||g.iT(c)||g.jT(c);(b||c)&&(b=(0,g.V_)())&&(a.j.gpu=[b]);rT(a.provider.videoData)&&g.R_(a,g.KM(a.provider),"dt",["1"]);a.provider.W.Bc()&&(b=(0,g.wC)()-a.provider.W.Sf,a.ma("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.C=!0;a.K=g.QA(function(){a.reportStats()},1E4)};
Vdb=function(a,b,c){var d=g.KM(a.provider);Udb(a,d,b,0,c);T_(a,d);Sdb(a)};
Udb=function(a,b,c,d,e){var f=a.provider.W.j.cbrver;"Chrome"===a.provider.W.j.cbr&&/^96[.]/.test(f)&&"net.badstatus"===c&&/rc\.500/.test(e)&&Wdb(a,3);a.provider.W.L("html5_use_ump")&&/b248180278/.test(e)&&Wdb(a,4);f=a.provider.getCurrentTime();d=1===d?"fatal":"";c=[c,d,f.toFixed(3)];d&&(e+=";a6s."+oH());e&&c.push(Xdb(e));g.R_(a,b,"error",c);a.C=!0};
Ydb=function(a){0<=a.B||(a.provider.W.Qf||3!==a.provider.ea.getVisibilityState()?a.B=g.KM(a.provider):a.Va=!0)};
I6a=function(a,b,c,d){if(c!==a.De){b<a.G||("PL"===a.De?a.playTimeSecs+=b-a.G:"B"===a.De&&a.isBuffering&&(a.isBuffering=!1,a.rebufferTimeSecs+=b-a.Jb,!a.bb&&10<=a.rebufferTimeSecs&&180>=a.playTimeSecs&&(a.provider.ea.WF(),a.j.qoealert=["1"],a.bb=!0)),"B"!==c||"PL"!==a.De&&"PB"!==a.De||(a.isBuffering=!0),a.G=b);"PL"===a.De&&("B"===c||"S"===c)||a.provider.W.Bc()?T_(a,b):(a.gb||"PL"!==c||(a.gb=!0,Qdb(a,b,a.provider.ea.UE())),Odb(a,b));"PL"===c&&g.Jv(a.Qc);var e=[c];"S"===c&&d&&e.push("ss."+d);g.R_(a,
b,"vps",e);a.De=c;a.Jb=b;a.G=b;a.C=!0}};
U_=function(a,b){var c=a.j.cat||[];c.push(b);a.j.cat=c};
sY=function(a,b,c,d,e,f){var h=g.KM(a.provider);1!==c&&3!==c&&5!==c||g.R_(a,h,"vps",[a.De]);var l=a.j.xvt||[];l.push("t."+h.toFixed(3)+";m."+f.toFixed(3)+";g."+b+";tt."+c+";np.0;c."+d+";d."+e);a.j.xvt=l};
Wdb=function(a,b){if(!a.eb){var c=a.j.fcnz;c||(c=[],a.j.fcnz=c);c.push(String(b));a.eb=!0}};
Xdb=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
Zdb=function(a){this.provider=a;this.N=!1;this.j=0;this.D=-1;this.fq=NaN;this.C=0;this.segments=[];this.K=this.G=0;this.previouslyEnded=!1;this.Y=this.provider.ea.getVolume();this.Z=this.provider.ea.isMuted()?1:0;this.B=W_(this.provider)};
X_=function(a){a.B.startTime=a.C;a.B.endTime=a.j;var b=!1;a.segments.length&&g.Bb(a.segments).isEmpty()?(a.segments[a.segments.length-1].previouslyEnded&&(a.B.previouslyEnded=!0),a.segments[a.segments.length-1]=a.B,b=!0):a.segments.length&&a.B.isEmpty()||(a.segments.push(a.B),b=!0);b?0===a.B.endTime&&(a.previouslyEnded=!1):a.B.previouslyEnded&&(a.previouslyEnded=!0);a.G+=a.j-a.C;a.B=W_(a.provider);a.B.previouslyEnded=a.previouslyEnded;a.previouslyEnded=!1;a.C=a.j};
aeb=function(a){$db(a);a.K=g.QA(function(){a.update()},100);
a.fq=g.KM(a.provider);a.B=W_(a.provider)};
$db=function(a){g.SA(a.K);a.K=NaN};
beb=function(a,b,c){c-=a.fq;return b===a.j&&.5<c};
ceb=function(a,b,c,d){this.W=b;this.Dc=c;this.segments=[];this.experimentIds=[];this.Wa=this.Sb=this.isFinal=this.delayThresholdMet=this.Kb=this.zd=this.autoplay=this.autonav=!1;this.Qc="yt";this.K=[];this.G=this.Z=null;this.sendVisitorIdHeader=this.eb=!1;this.N=this.pageId="";this.D="watchtime"===c;this.C="playback"===c;this.ra="atr"===c;this.Qf="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.ra?"/api/stats/"+c:"//"+b.vn+"/api/stats/"+c;d&&(this.Sb=d.fs,d.rtn&&(this.G=d.rtn),this.D?(this.playerState=
d.state,0<d.rti&&(this.Z=d.rti)):(this.Rf=d.mos,this.Ig=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.ud=d.inview),d.size&&(this.Jd=d.size),d.playerwidth&&(this.playerWidth=d.playerwidth),d.playerheight&&(this.playerHeight=d.playerheight));this.sf=g.jd(b.j);this.N=hR(b.experiments,"html5_log_vss_extra_lr_cparams_freq");if("all"===this.N||"once"===this.N)this.Nb=g.jd(b.Nb);this.uh=b.Qc;this.experimentIds=lUa(b.experiments);this.Va=b.sj;this.Qc=b.ra;this.region=
b.region;this.userAge=b.userAge;this.gb=b.uj;this.Nd=QD();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.Ca=b.L("vss_pings_using_networkless")||b.L("kevlar_woffle");this.Sf=b.L("vss_final_ping_send_and_write");this.Ha=b.L("vss_use_send_and_write");this.pageId=b.pageId;this.Tf=b.L("vss_playback_use_send_and_write");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.Pf=b.D&&b.L("embeds_append_synth_ch_headers");g.BR(b)&&(this.Ma=b.Ga);g.tB(g.JR(b))&&this.K.push(1);this.accessToken=
g.qT(a);a.L("html5_add_per_destination_base_query_for_video_stats_urls")?a.kp[this.Dc]?this.rb=a.kp[this.Dc]:a.kp.playback&&(this.rb=a.kp.playback):a.rb&&(this.rb=a.rb);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=zXa(a);this.C&&(this.zd=(a.L("html5_enable_log_server_autoplay")||a.L("enable_cleanup_masthead_autoplay_hack_fix"))&&a.Eq&&"adunit"==mT(a)?!0:!1);this.autonav=a.isAutonav||this.autonav;this.contentVideoId=oT(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.Kb=
a.If;a.G&&(this.Y=a.G,this.Jb=a.fn);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.Ck;this.Hb=a.Hb;a.B&&(this.je=a.B.itag,a.D&&a.D.itag!==this.je&&(this.Ab=a.D.itag));a.j&&jP(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=mT(a);this.Wa=a.Ig?!1:a.Oi;this.tf=a.hn;if(b=aT(a))this.Uf=b;this.uf=a.Py;this.La=a.La;this.eventId=a.eventId;this.playlistId=a.zX||a.playlistId;this.pz=a.pz;this.cj=a.cj;this.Ij=a.Ij;this.vp=a.vp;this.subscribed=a.subscribed;this.videoId=a.videoId;
this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.KH=a.KH;this.referrer=a.referrer;this.qp=a.lW||a.qp;this.bb=a.HC;this.qA=a.qA;this.userGenderAge=a.userGenderAge;this.Cv=a.Cv;this.embedsRct=a.embedsRct;this.embedsRctn=a.embedsRctn;g.BR(this.W)&&a.mutedAutoplay&&this.K.push(2);a.bd(new g.Ke(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.K.push(3);g.wT(a)&&this.K.push(4);this.Sa=a.dW;a.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=
a.compositeLiveIngestionOffsetToken)};
deb=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.$R(a.W,a.accessToken).then(function(d){return Jdb(a.uri,a.W,a.pageId,c,d,b,a.Pf)})};
geb=function(a,b){return function(){a.W.L("html5_simplify_pings")?(a.j=a.Ga,a.ge=b(),a.Nd=0,a.send()):deb(a).then(function(c){var d=eeb(a);d.cmt=d.len;d.lact="0";var e=b().toFixed(3);d.rt=Number(e).toString();d=g.to(a.uri,d);a.W.L("vss_through_gel_double")&&feb(d);a.Ca?(null==c&&(c={}),a.Ha?xD().sendAndWrite(d,c):xD().sendThenWrite(d,c)):c?g.VA(d,c):g.qD(d)})}};
eeb=function(a){var b={ns:a.Qc,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.B(a.j),fmt:a.je,fs:a.Sb?"1":"0",rt:a.B(a.ge),adformat:a.adFormat,content_v:a.contentVideoId,euri:a.uh,lact:a.Nd,live:a.Uf,cl:(640356325).toString(),mos:a.Rf,state:a.playerState,volume:a.Ig};a.subscribed&&(b.subscribed="1");Object.assign(b,a.sf);"all"===a.N?Object.assign(b,a.Nb):"once"===a.N&&a.C&&Object.assign(b,a.Nb);a.autoplay&&(b.autoplay="1");a.zd&&(b.sautoplay="1");a.Kb&&(b.dni="1");!a.D&&a.Ma&&(b.epm=heb[a.Ma]);
a.isFinal&&(b["final"]="1");a.Wa&&(b.splay="1");a.Hb&&(b.delay=a.Hb);a.Va&&(b.hl=a.Va);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.gb&&(b.uga=a.gb+a.userAge);void 0!==a.Ga&&(b.len=a.B(a.Ga));!a.D&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.G&&(b.rtn=a.B(a.G));a.qp&&(b.feature=a.qp);a.cj&&(b.ctrl=a.cj);a.Ij&&(b.ytr=a.Ij);a.Ab&&(b.afmt=a.Ab);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.vc&&(b.lio=a.B(a.vc));
a.D?(b.idpj=a.tf,b.ldpj=a.uf,a.delayThresholdMet&&(b.dtm="1"),null!=a.Z&&(b.rti=a.B(a.Z)),a.Cv&&(b.ald=a.Cv),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken)):void 0!==a.adType&&(b.at=a.adType);a.Jd&&(a.C||a.D)&&(b.size=a.Jd);a.C&&a.K.length&&(b.pbstyle=a.K.join(","));null!=a.ud&&(a.C||a.D)&&(b.inview=a.B(a.ud));a.D&&(b.volume=Y_(a,g.$r(a.segments,function(d){return d.volume})),b.st=Y_(a,g.$r(a.segments,function(d){return d.startTime})),b.et=Y_(a,g.$r(a.segments,function(d){return d.endTime})),
Ys(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=Y_(a,g.$r(a.segments,function(d){return d.playbackRate}))),Ys(a.segments,function(d){return"-"!==d.j})&&(b.als=g.$r(a.segments,function(d){return d.j}).join(",")),Ys(a.segments,function(d){return d.previouslyEnded})&&(b.pe=g.$r(a.segments,function(d){return""+ +d.previouslyEnded}).join(",")));
b.muted=Y_(a,g.$r(a.segments,function(d){return d.muted?1:0}));
Ys(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=Y_(a,g.$r(a.segments,function(d){return d.visibilityState})));
Ys(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=Y_(a,g.$r(a.segments,function(d){return d.connectionType})));
Ys(a.segments,function(d){return 0!==d.B})&&(b.blo=Y_(a,g.$r(a.segments,function(d){return d.B})));
Ys(a.segments,function(d){return!!d.C})&&(b.blo=g.$r(a.segments,function(d){return d.C}).join(","));
Ys(a.segments,function(d){return!!d.compositeLiveStatusToken})&&(b.cbs=g.$r(a.segments,function(d){return d.compositeLiveStatusToken}).join(","));
Ys(a.segments,function(d){return"-"!==d.G})&&(b.cc=g.$r(a.segments,function(d){return d.G}).join(","));
Ys(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.$r(a.segments,function(d){return d.clipId}).join(","));
if(Ys(a.segments,function(d){return!!d.D})){var c="au";
a.C&&(c="au_d");b[c]=g.$r(a.segments,function(d){return d.D}).join(",")}KA()&&a.Y&&(b.ctt=a.Y,b.cttype=a.Jb,b.mdx_environment=a.mdxEnvironment);
a.Qf&&(b.etype=void 0!==a.qa?a.qa:0);a.bb&&(b.uoo=a.bb);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=ieb[a.livingRoomAppMode]||a.livingRoomAppMode);a.rb?jeb(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.KH,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.vp&&(b.ssrt="1"),a.qA&&(b.upt=a.qA));a.C&&(a.embedsRct&&(b.rct=a.embedsRct),a.embedsRctn&&(b.rctn=
a.embedsRctn),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken));a.Sa&&(b.host_cpn=a.Sa);return b};
jeb=function(a,b){if(b&&a.rb){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"]);"3pp"===a.rb.ns&&(b.ns="3pp");for(var f=g.u(Object.keys(a.rb)),h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||c.has(h)||e.has(h)&&!a.rb[h]||(b[h]=a.rb[h])}};
Y_=function(a,b){return g.$r(b,a.B).join(",")};
feb=function(a){-1!==a.indexOf("watchtime")&&g.iC("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:a}})};
keb=function(a,b){a.attestationResponse&&deb(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.Ca?a.Ha?xD().sendAndWrite(b,c):xD().sendThenWrite(b,c):g.VA(b,c)})};
Z_=function(a){g.I.call(this);this.provider=a;this.K="paused";this.D=NaN;this.N=[10,10,10,40];this.Y=this.Z=0;this.ra=this.Ha=this.Ca=this.qa=this.C=!1;this.B=this.G=NaN;this.j=new Zdb(a)};
oeb=function(a){if(!a.C){16623===a.provider.videoData.SG&&g.BE(Error("Playback for EmbedPage"));var b=$_(a,"playback");a:{if(a.provider.W.L("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.hn,h=a.provider.videoData.Py,l=-f;e=g.u(e);for(var m=e.next();!m.done;m=
e.next())m=m.value,c.push(m-l),l=m;c.push(d+h-f);c.push(d);a.N=c;break a}}a.N=[10+a.provider.videoData.hn,10,10,40+a.provider.videoData.Py-a.provider.videoData.hn,40]}aeb(a.j);b.G=a0(a);0<a.B&&(b.j-=a.B);b.send();a.provider.videoData.lz&&(b=a.provider.W,d=a.provider.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.lz,oid:d.uU,ptchn:d.tU,pltype:d.vU,content_v:oT(d)},d.Vv&&Object.assign(c,{m:d.Vv}),b=g.to(b.Ha+"ptracking",c),leb(a,b));a.provider.videoData.Hb||(meb(a),
neb(a),a.Ps());a.C=!0;a=a.j;a.j=a.provider.ea.Vf();a.fq=g.KM(a.provider);!(0===a.C&&5>a.j)&&2<a.j-a.C&&(a.C=a.j);a.N=!0}};
a0=function(a,b){b=void 0===b?NaN:b;var c=g.KM(a.provider);b=isNaN(b)?c:b;b=Math.ceil(b);var d=a.N[a.Z];a.Z+1<a.N.length&&a.Z++;var e=b+d;a.D=g.PA(function(){if(!a.Na()){a.D=NaN;var f=peb(a),h=qeb(a,f);h.Z=e;var l=1E3<a.Y;!(1<f.length)&&f[0].isEmpty()||l||(h.G=a0(a,e));h.send();a.Y++}},1E3*(e-c));
return a.G=e};
b0=function(a){g.RA(a.D);a.D=NaN};
peb=function(a){a.j.update();a=a.j;a.segments.length&&a.j===a.C||X_(a);var b=a.segments;a.segments=[];return b};
$_=function(a,b){var c=reb(a.provider);Object.assign(c,{state:a.K});b=new ceb(a.provider.videoData,a.provider.W,b,c);b.j=a.provider.ea.Vf();a.provider.W.L("html5_ssap_vss_fix")&&(b.j=a.provider.ea.tJ(a.provider.videoData.clientPlaybackNonce));a.provider.videoData.isLivePlayback||(b.Ga=a.provider.ea.getDuration());a.provider.videoData.j&&(c=a.provider.videoData.j.Ye(b.j))&&(b.vc=c-b.j);b.ge=g.KM(a.provider);b.segments=[W_(a.provider)];return b};
qeb=function(a,b){var c=$_(a,"watchtime");seb(a)&&(c.delayThresholdMet=!0,a.Ca=!0);if(0<a.B){for(var d=g.u(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.B,e.endTime-=a.B;c.j-=a.B}else c.j=a.j.vP();c.segments=b;return c};
c0=function(a,b){var c=teb(a,!isNaN(a.G));b&&(a.G=NaN);return c};
teb=function(a,b){var c=qeb(a,peb(a));!isNaN(a.G)&&b&&(c.Z=a.G);return c};
seb=function(a){var b;if(b=a.provider.videoData.isLoaded()&&a.provider.videoData.Hb&&a.C&&!a.Ca)b=a.j,b=b.G+b.provider.ea.Vf()-b.C>=a.provider.videoData.Hb;return!!b};
meb=function(a){a.provider.videoData.youtubeRemarketingUrl&&!a.Ha&&(leb(a,a.provider.videoData.youtubeRemarketingUrl),a.Ha=!0)};
neb=function(a){a.provider.videoData.googleRemarketingUrl&&!a.ra&&(leb(a,a.provider.videoData.googleRemarketingUrl),a.ra=!0)};
ueb=function(a){if(!a.Na()&&a.C){a.K="paused";var b=c0(a);b.isFinal=!0;b.send();a.dispose()}};
veb=function(a,b){if(!a.Na())if(g.MF(b.state,2)||g.MF(b.state,512)){if(a.K="paused",g.OF(b,2)||g.OF(b,512))g.OF(b,2)&&(a.j.previouslyEnded=!0),a.C&&(b0(a),c0(a).send(),a.G=NaN)}else if(g.MF(b.state,8)){a.K="playing";var c=a.C&&isNaN(a.D)?a0(a):NaN;!isNaN(c)&&(0>NF(b,64)||0>NF(b,512))&&(a=teb(a,!1),a.G=c,a.send())}else a.K="paused"};
web=function(a,b,c){if(!a.qa){c||(c=$_(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.qa=!0}};
leb=function(a,b){var c=a.provider.W;g.$R(a.provider.W,g.qT(a.provider.videoData)).then(function(d){var e=a.provider.W.pageId,f=a.provider.W.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,h=a.provider.W.L("vss_pings_using_networkless")||a.provider.W.L("kevlar_woffle"),l=a.provider.W.L("allow_skip_networkless");d=Jdb(b,c,e,f,d);Kdb(b,d,{token:a.provider.videoData.G,JT:a.provider.videoData.fn,mdxEnvironment:a.provider.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})};
xeb=function(){this.endTime=this.startTime=-1;this.G="-";this.playbackRate=1;this.visibilityState=0;this.D="";this.B=0;this.compositeLiveStatusToken=this.C=void 0;this.volume=this.connectionType=0;this.muted=!1;this.j=this.clipId="-";this.previouslyEnded=!1};
d0=function(a,b,c){this.videoData=a;this.W=b;this.ea=c;this.j=void 0};
g.KM=function(a){return yeb(a)()};
yeb=function(a){if(!a.j){var b=g.ib(function(d){var e=(0,g.wC)();d&&631152E6>=e&&(a.ea.ma("ytnerror",{issue:28799967,value:""+e}),e=(new Date).getTime()+2);return e},a.W.L("html5_validate_yt_now")),c=b();
a.j=function(){return Math.round(b()-c)/1E3};
a.ea.NR()}return a.j};
reb=function(a){var b=a.ea.Gr()||{};b.fs=a.ea.jF();b.volume=a.ea.getVolume();b.muted=a.ea.isMuted()?1:0;b.mos=b.muted;a.L("web_player_embeds_visibility_as_feature")||(b.inview=a.ea.Iw(),b.size=a.ea.Hw());b.clipid=a.ea.bA();var c;b.playerheight=(null==(c=a.ea.getPlayerSize())?void 0:c.height)||0;var d;b.playerwidth=(null==(d=a.ea.getPlayerSize())?void 0:d.width)||0;a=a.videoData;c={};a.B&&(c.fmt=a.B.itag,a.D&&a.D.itag!=a.B.itag&&(c.afmt=a.D.itag));c.ei=a.eventId;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;
a.videoId&&(c.v=a.videoId);a.Kk&&(c.infringe=1);(a.Ig?0:a.Oi)&&(c.splay=1);(d=aT(a))&&(c.live=d);a.Eq&&(c.sautoplay=1);a.xl&&(c.autoplay=1);a.pz&&(c.sdetail=a.pz);a.La&&(c.partnerid=a.La);a.osid&&(c.osid=a.osid);a.tD&&(c.cc=g.BVa(a.tD));return Object.assign(b,c)};
Pdb=function(a){if(navigator.connection&&navigator.connection.type)return zeb[navigator.connection.type]||zeb.other;if(g.II(a.W)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 30}return 0};
W_=function(a){var b=new xeb,c;b.G=(null==(c=reb(a).cc)?void 0:c.toString())||"-";b.playbackRate=a.ea.getPlaybackRate();c=a.ea.getVisibilityState();0!==c&&(b.visibilityState=c);a.W.rb&&(b.B=1);b.C=a.videoData.My;b.compositeLiveStatusToken=a.videoData.compositeLiveStatusToken;c=a.ea.getAudioTrack();c.qc&&c.qc.id&&"und"!==c.qc.id&&(b.D=c.qc.id);b.connectionType=Pdb(a);b.volume=a.ea.getVolume();b.muted=a.ea.isMuted();b.clipId=a.ea.bA()||"-";b.j=a.videoData.YV||"-";return b};
g.e0=function(a,b){g.I.call(this);var c=this;this.provider=a;this.D=!1;this.C=new Map;this.De=new g.LK;this.wd={cqb:function(){return c.qoe},
oqb:function(){return c.j},
Mpb:function(){return c.B}};
this.provider.videoData.ue()&&!this.provider.videoData.Rl&&(this.j=new Z_(this.provider),this.provider.W.L("html5_ssap_vss_fix")&&(this.j.B=this.provider.videoData.Rf/1E3),g.N(this,this.j),this.qoe=new g.S_(this.provider,b),g.N(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Mg=this.provider.videoData.clientPlaybackNonce)&&this.C.set(this.Mg,this.j));if("canary"===a.W.playerCanaryState||"holdback"===a.W.playerCanaryState)this.B=new P_(this.provider),g.N(this,this.B)};
Aeb=function(a){return!!a.j&&!!a.qoe};
tY=function(a){a.B&&Ddb(a.B);a.qoe&&Ydb(a.qoe)};
Beb=function(a){if(a.qoe){a=a.qoe;for(var b=g.u(a.provider.W.uh),c=b.next();!c.done;c=b.next())U_(a,c.value);if(a.provider.L("html5_enable_qoe_cat_list"))for(b=g.u(a.provider.videoData.pp),c=b.next();!c.done;c=b.next())U_(a,c.value);else a.provider.videoData.uh&&U_(a,a.provider.videoData.uh);a.provider.videoData.dc()&&(b=a.provider.videoData.j,OS(a.provider.videoData)&&U_(a,"manifestless"),b&&NQ(b)&&U_(a,"live-segment-"+NQ(b).toFixed(1)));NS(a.provider.videoData)&&U_(a,"sabr");a.provider.videoData.gatewayExperimentGroup&&
(b=a.provider.videoData.gatewayExperimentGroup,"EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"===b?b="spkadtrt":"EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"===b&&(b="spkadctrl"),U_(a,b));"yt"!==a.provider.W.ra&&(a.j.len=[a.provider.videoData.lengthSeconds.toFixed(2)]);a.provider.videoData.cotn&&!rT(a.provider.videoData)&&a.JL(!0);a.provider.W.Bc()&&(b=M5a())&&a.ma("cblt",{m:b});XS(a.provider.videoData)&&(a.provider.ea.getProximaLatencyPreference()?U_(a,"proximaui"):U_(a,"proximaexp"))}};
K6a=function(a){if(a.provider.ea.gg()){if(a.D)return;a.D=!0}a.j&&oeb(a.j);if(a.B){a=a.B;var b=g.KM(a.provider);0>a.j&&(a.j=b,a.delay.start());a.B=b;a.D=b}};
J6a=function(a,b){if(g.OF(b,1024)||g.OF(b,512)||g.OF(b,4)){if(a.B){var c=a.B;0<=c.B||(c.j=-1,c.delay.stop())}a.qoe&&(c=a.qoe,c.N||(c.B=-1))}if(a.provider.videoData.enableServerStitchedDai&&a.Mg){var d;null==(d=a.C.get(a.Mg))||veb(d,b)}else a.j&&veb(a.j,b);if(a.qoe){d=a.qoe;c=b.state;var e=g.KM(d.provider),f=d.getPlayerState(c);I6a(d,e,f,c.seekSource||void 0);f=c.Ng;g.MF(c,128)&&f&&(f.GL=f.GL||"",Udb(d,e,f.errorCode,f.kJ,f.GL));(g.MF(c,2)||g.MF(c,128))&&d.reportStats(e);c.isPlaying()&&!d.N&&(0<=d.B&&
(d.j.user_intent=[d.B.toString()]),d.N=!0);Sdb(d)}a.B&&(d=a.B,Edb(d),d.playerState=b.state,0<=d.B&&g.OF(b,16)&&d.seekCount++,b.state.isError()&&d.send());a.provider.ea.gg()&&(a.De=b.state)};
Ceb=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.Mg){var b;null!=(b=a.C.get(a.Mg))&&X_(b.j)}else a.j&&X_(a.j.j)};
Deb=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.C){"PL"===b.De&&(b.De="N");var c=g.KM(b.provider);g.R_(b,c,"vps",[b.De]);b.N||(0<=b.B&&(b.j.user_intent=[b.B.toString()]),b.N=!0);b.provider.W.Bc()&&b.ma("finalized",{});b.Ha=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.u(a.C.values()),c=b.next();!c.done;c=b.next())ueb(c.value);else a.j&&ueb(a.j);a.dispose()};
Eeb=function(a,b){a.j&&web(a.j,b)};
Feb=function(a){if(!a.j)return null;var b=$_(a.j,"atr");return function(c){a.j&&web(a.j,c,b)}};
Geb=function(a,b,c,d){c.adFormat=c.zd;var e=b.ea;b=new Z_(new d0(c,b.W,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
Vf:function(){return e.Vf()},
tJ:function(){return e.tJ()},
gg:function(){return e.gg()},
UE:function(){return e.UE()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
YE:function(){return e.YE()},
getVisibilityState:function(){return e.getVisibilityState()},
Ei:function(){return e.Ei()},
Gr:function(){return e.Gr()},
getVolume:function(){return e.getVolume()},
isMuted:function(){return e.isMuted()},
jF:function(){return e.jF()},
bA:function(){return e.bA()},
Iw:function(){return e.Iw()},
Hw:function(){return e.Hw()},
getProximaLatencyPreference:function(){return e.getProximaLatencyPreference()},
NR:function(){e.NR()},
WF:function(){e.WF()},
ma:function(f,h){e.ma(f,h)}}));
b.B=d;g.N(a,b);return b};
Heb=function(){this.mw=0;this.C=this.qv=this.Ms=this.B=NaN;this.j={};this.bandwidthEstimate=NaN};
f0=function(a,b,c){g.I.call(this);var d=this;this.W=a;this.ea=b;this.B=c;this.j=new Map;this.Mg="";this.wd={On:function(){return Array.from(d.j.keys())}}};
L6a=function(a,b){a.j.has(b)&&(Deb(a.j.get(b)),a.j.delete(b))};
Ieb=function(){this.j=g.NCa;this.array=[]};
Keb=function(a,b,c){var d=[];for(b=Jeb(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};
Leb=function(a,b){var c=[];a=g.u(a.array);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c};
Meb=function(a){return a.array.slice(Jeb(a,0x7ffffffffffff),a.array.length)};
Jeb=function(a,b){a=Tb(a.array,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
Neb=function(a,b){var c=NaN;a=g.u(a.array);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.end<c)&&(c=d.end),d.start>b&&(isNaN(c)||d.start<c)){c=d.start;break}return c};
Oeb=function(a,b){a.array=a.array.filter(function(c){return!b.has(c)})};
g0=function(a,b,c,d,e){g.I.call(this);this.Y=a;this.Ca=b;this.K=c;this.qa=d;this.D=e;this.C=NaN;this.N=this.Z=this.started=!1;this.B=[];this.ra=new g.Iv(this.sync,250,this);g.N(this,this.ra);this.G=new g.Iv(this.sync,0,this);g.N(this,this.G);this.j=new Ieb};
Peb=function(a){a.started=!0;a.sync()};
Qeb=function(a,b){a.started&&(a.sync(),g.MF(b.oB,16)&&(b=Neb(a.j,Math.max(a.C-2E3,0)),!isNaN(b)&&0x7ffffffffffff>b&&a.G.start()))};
Reb=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];1===c[0]?a.qa(g.dJ(d.namespace),d):a.qa(g.eJ(d.namespace),d)}};
Seb=function(a){this.timeStamp=this.mediaTime=NaN;this.B=this.j=!1;this.C=.001;g.II(a)&&(this.C=.01)};
h0=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
VEa=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.timeStamp>(d||!a.B?1500:400);a.mediaTime=b;a.timeStamp=c;return!1};
Teb=function(a,b){this.videoData=a;this.j=b};
Ueb=function(a,b,c){return b.rI(c).then(function(){return aB(new Teb(b,b.C))},function(d){d instanceof Error&&g.BE(d);
var e=VJ('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=XJ('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.qUa(a.G,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:b.Vw(),d:!!b.Qc,drm:b.Xi(),f18:0<=b.Tf.indexOf("itag=18"),c18:e};b.j&&(b.Xi()?(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=XJ('video/mp4; codecs="avc1.42001E"'),
e.cVP9=XJ('video/webm; codecs="vp9"'));b.K&&(e.drmsys=b.K.keySystem,f=0,b.K.j&&(f=Object.keys(b.K.j).length),e.drmst=f);return new RJ(d,e,h)})};
Veb=function(a){this.G=a;this.C=this.B=0;this.D=new aV(50)};
j0=function(a,b,c){g.UE.call(this);this.videoData=a;this.experiments=b;this.K=c;this.B=[];this.D=0;this.C=!0;this.G=!1;this.N=0;c=new Web;"ULTRALOW"===a.latencyClass&&(c.D=!1);a.Ab?c.B=3:g.fT(a)&&(c.B=2);"NORMAL"===a.latencyClass&&(c.G=!0);var d=g.xI(b,"html5_liveness_drift_proxima_override");if(XS(a)&&d){c.j=d;var e;(null==(e=a.j)?0:mTa(e))&&c.j--}if(g.fB("trident/")||g.fB("edge/"))c.C=Math.max(c.C,g.xI(b,"html5_platform_minimum_readahead_seconds")||3);g.xI(b,"html5_minimum_readahead_seconds")&&
(c.C=g.xI(b,"html5_minimum_readahead_seconds"));g.xI(b,"html5_maximum_readahead_seconds")&&(c.K=g.xI(b,"html5_maximum_readahead_seconds"));b.fb("html5_force_adaptive_readahead")&&(c.D=!0);if(b=g.xI(b,"html5_liveness_drift_chunk_override"))c.j=b;WS(a)&&(c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2));this.policy=c;this.Z=1!==this.policy.B;this.j=i0(this,Xeb(this,isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead,a))};
Yeb=function(a,b){if(b)return b=a.videoData,b=Xeb(a,isNaN(b.liveChunkReadahead)?3:b.liveChunkReadahead,b),i0(a,b);if(a.B.length){if(1<Math.min.apply(null,a.B))return i0(a,a.j-1);if(a.policy.D)return i0(a,a.j+1)}return a.j};
Zeb=function(a,b){if(!a.B.length)return!1;var c=a.j;a.j=Yeb(a,void 0===b?!1:b);if(b=c!==a.j)a.B=[],a.D=0;return b};
k0=function(a,b){return b>=a.Nn()-$eb(a)};
afb=function(a,b,c){b=k0(a,b);c||b?b&&(a.C=!0):a.C=!1;a.Z=2===a.policy.B||3===a.policy.B&&a.C};
bfb=function(a,b){b=k0(a,b);a.G!==b&&a.publish("livestatusshift",b);a.G=b};
$eb=function(a){var b=a.policy.j;a.G||(b=Math.max(b-1,0));return b*l0(a)};
Xeb=function(a,b,c){c.Ab&&b--;WS(c)&&(b=1);if(XS(c)&&(a=g.xI(a.experiments,"html5_live_chunk_readahead_proxima_override"))){b=a;var d;(null==(d=c.j)?0:mTa(d))&&b++}return b};
l0=function(a){return a.videoData.j?NQ(a.videoData.j)||5:5};
i0=function(a,b){b=Math.max(Math.max(1,Math.ceil(a.policy.C/l0(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.K/l0(a))),b)};
Web=function(){this.C=0;this.K=Infinity;this.D=!0;this.j=2;this.B=1;this.G=!1};
o0=function(a){g.I.call(this);this.ea=a;this.W=this.ea.U();this.j=0;this.D=null;this.K=this.C=0;this.G=new g.Iv(this.mf,1E3,this);this.rb=new m0({delayMs:g.xI(this.W.experiments,"html5_seek_timeout_delay_ms")});this.Ga=new m0({delayMs:g.xI(this.W.experiments,"html5_long_rebuffer_threshold_ms")});this.Ab=n0(this,"html5_seek_set_cmt");this.Va=n0(this,"html5_seek_jiggle_cmt");this.eb=n0(this,"html5_seek_new_elem");this.Sb=n0(this,"html5_unreported_seek_reseek");this.Ca=n0(this,"html5_long_rebuffer_jiggle_cmt");
this.La=n0(this,"html5_long_rebuffer_ssap_clip_not_match");this.Ha=new m0({delayMs:2E4});this.Wa=n0(this,"html5_seek_new_elem_shorts");this.gb=n0(this,"html5_seek_new_media_source_shorts_reuse");this.bb=n0(this,"html5_seek_new_media_element_shorts_reuse");this.Sa=n0(this,"html5_reseek_after_time_jump");this.Z=n0(this,"html5_gapless_handoff_close_end_long_rebuffer");this.qa=n0(this,"html5_gapless_slow_seek");this.Y=n0(this,"html5_gapless_slice_append_stuck");this.ra=n0(this,"html5_gapless_slow_start");
this.N=n0(this,"html5_ads_preroll_lock_timeout");this.Nb=n0(this,"html5_ssap_ad_longrebuffer_new_element");this.Jb=new m0({delayMs:g.xI(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Pz:!this.W.L("html5_report_slow_ads_as_error")});this.Hb=new m0({delayMs:g.xI(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Pz:!this.W.L("html5_skip_slow_buffering_ad")});this.Kb=new m0({delayMs:g.xI(this.W.experiments,"html5_slow_start_timeout_delay_ms")});this.Ma=n0(this,"html5_slow_start_no_media_source");
this.B={};g.N(this,this.G)};
n0=function(a,b){var c=g.xI(a.W.experiments,b+"_delay_ms");a=a.W.L(b+"_cfl");return new m0({delayMs:c,Pz:a})};
cfb=function(a,b){a.j=b};
p0=function(a,b,c,d,e,f,h,l){b.test(c)?(a.Rd(e,b,h),b.Pz||f()):(b.OL&&b.B&&!b.D?(c=(0,g.wC)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.B>b.OL,c=b.j&&c-b.j>b.yS||f?b.D=!0:!1):c=!1,c&&(l=Object.assign({},a.pc(b),l),l.wn=h,l.we=e,l.wsuc=d,a.ea.ma("workaroundReport",l),d&&(b.reset(),a.B[e]=!1)))};
m0=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.yS?1E3:b.yS;var d=void 0===b.OL?3E4:b.OL;b=void 0===b.Pz?!1:b.Pz;this.j=this.B=this.C=this.startTimestamp=0;this.D=!1;this.G=Math.ceil(a/1E3);this.yS=c;this.OL=d;this.Pz=b};
gfb=function(a){g.I.call(this);var b=this;this.ea=a;this.W=this.ea.U();this.videoData=this.ea.getVideoData();this.policy=new dfb;this.ra=new o0(this.ea);this.K=this.j=this.ya=this.mediaElement=this.playbackData=null;this.B=NaN;this.D=0;this.La=NaN;this.C=null;this.Ma=NaN;this.G=this.Y=null;this.qa=!1;this.bb=NaN;this.rb=0;this.N=!1;this.Ga=new g.Iv(function(){efb(b,!1)},2E3);
this.Ab=new g.Iv(function(){q0(b)});
this.Va=new g.Iv(function(){b.qa=!0;ffb(b,{})});
this.timestampOffset=0;this.Ca=!0;this.Sa=0;this.gb=NaN;this.Ha=new g.Iv(function(){var c=b.W.Pf;c.j+=1E4/36E5;c.j-c.C>1/6&&(JUa(c),c.C=c.j);b.Ha.start()},1E4);
this.Wa=this.Jb=!1;this.Z=0;this.eb=!1;g.N(this,this.ra);g.N(this,this.Ga);g.N(this,this.Va);g.N(this,this.Ab);g.N(this,this.Ha)};
ifb=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.K=new Veb(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(OS(a.videoData)&&a.ya){var c=a.ya.II.eh()||0;break a}if(a.videoData.j){c=a.videoData.j.Ca;break a}}c=0}return c}),a.j=new j0(a.videoData,a.W.experiments,function(){return a.Ie(!0)}));
hfb(a)||(a.D=a.D||(g.sT(a.videoData)?0:a.videoData.startSeconds)||0)};
kfb=function(a,b){(a.ya=b)?jfb(a,!0):r0(a)};
lfb=function(a,b){g.Jv(a.ra.G);a.L("html5_exponential_memory_for_sticky")&&(b.state.isPlaying()?g.Jv(a.Ha):a.Ha.stop());if(a.mediaElement)if(8===b.oB.state&&XEa(b.state)&&b.state.isBuffering()){b=a.mediaElement.getCurrentTime();var c=a.mediaElement.Ch();var d=a.L("manifestless_post_live_ufph")||a.L("manifestless_post_live")?rK(c,Math.max(b-3.5,0)):rK(c,b-3.5);0<=d&&b>c.end(d)-1.1&&d+1<c.length&&11>c.start(d+1)-c.end(d)&&(d=c.start(d+1)+.2,.2>Math.abs(a.gb-d)||(a.ea.ma("seekover",{b:qK(c,"_"),cmt:b}),
a.gb=d,a.seekTo(d,{Zw:!0,yd:"seektimeline_postLiveDisc"})))}else(null==(c=b.state)?0:8===c.state)&&!a.Wa&&(0<a.videoData.limitedPlaybackDurationInSeconds?(s0(a.ea,a.getCurrentTime()+a.videoData.limitedPlaybackDurationInSeconds),a.Wa=!0):a.videoData.isLivePlayback&&0<a.videoData.endSeconds&&(s0(a.ea,a.getCurrentTime()+a.videoData.endSeconds),a.Wa=!0))};
nfb=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.K&&d){var e=a.K;if(e.j&&!(c>=e.B&&c<e.C)){var f=e.j.Hi(c);-1!==f&&(e.B=e.j.getStartTime(f),e.C=e.B+e.j.getDuration(f),f=(0,g.wC)()/1E3-e.j.Ye(f),f-=e.G(),e.D.add(f))}}a.j&&(d&&(e=a.j,f=mfb(a),e.D++,3>e.D||3E3>g.lb()-e.N||(e.N=g.lb(),e.B.push(f),50<e.B.length&&e.B.shift())),e=a.j,afb(e,c,void 0===b?!0:b),bfb(e,c),b&&efb(a,!0));d!==a.Jb&&(b=500>=a.getCurrentTime()-a.bb,c=1E3<=a.rb,b||c||(b=a.ea.wc(),b.qoe&&(b=b.qoe,c=g.KM(b.provider),
g.R_(b,c,"lh",[d?"1":"0"])),a.Jb=d,a.rb++,a.bb=a.getCurrentTime()))};
efb=function(a,b){if(a.j){var c=a.j;var d=a.getCurrentTime();!k0(c,d)&&c.Qr()?(c.policy.G&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d<c.videoData.Dd()?Math.min(c.videoData.Dd()+10,c.Nn()):NaN;if(!isNaN(c)){if(a.ya&&b&&(b=a.Ga.isActive(),d=a.j.Nn(),(d=fcb(a.ya,d-a.Mc()))&&!b)){a.Ga.start();a.ea.ma("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.Mc()});a.seekTo(d+a.Mc(),{yd:"seektimeline_inBufferSeek"});return}a.seekTo(c,{yd:"seektimeline_pegToLive"})}}};
jfb=function(a,b){if(a.j&&a.ya){var c=!1;b?c=!0:a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass?c=Zeb(a.j):a.eb&&(a.eb=!1,c=Zeb(a.j,!0));c&&(b=a.ea.wc(),c=a.j,c=l0(c)*c.j,b.qoe&&(b=b.qoe,g.R_(b,g.KM(b.provider),"lra",[c]),b.ma("live-readahead-seconds",{v:c})));b=a.ya;var d=a.j.j;a=a.j;a=(a.j-1+a.policy.j)*l0(a);c=NaN;var e=b.Kb;2===e||-1===e?WS(b.ea.getVideoData())&&(c=b.policy.SC):(--d,e=b.ea.getVideoData(),e.dc()&&"ULTRALOW"!==e.latencyClass&&
!e.isLowLatencyLiveStream&&(c=XS(e)?b.policy.AD:b.policy.rq));d=Math.max(d,0);e=b.G;e.gh=d;e.Z=c;b.K&&(b.K.qa=a)}};
ofb=function(a,b){a.D=b};
ffb=function(a,b){pfb(a,b).then(void 0,function(){r0(a)});
qfb(a).then(function(c){rfb(a,c)},function(){r0(a)});
g6a(a.ea,b);a.W.Bc()&&(b=a.pc(),b["native"]=""+ +a.N,b.tgt=""+a.B,b.otgt=""+(a.B+a.timestampOffset),a.j&&a.L("html5_high_res_seek_logging")&&(b.tht=""+a.j.K(),b.ht=""+a.j.Nn(),b.adft=""+$eb(a.j)),a.ea.ma("startSeek",b))};
pfb=function(a,b){a.Y||(a.ya?isFinite(a.B)?a.Y=a.ya.seek(a.B-a.timestampOffset,b):(MS(a.videoData),a.Y=f_(a.ya),EXa(a.videoData)||(a.B=a.ya.getCurrentTime()+a.timestampOffset)):a.Y=hg(a.B-a.timestampOffset));return a.Y};
qfb=function(a){var b=a.C;b||(a.C=new IK,b=a.C,q0(a));return b};
sfb=function(a,b,c){return isNaN(b)?NaN:g.ze(b,a.Dd(),a.Ie(c))};
q0=function(a){if(a.C)if(a.videoData.isLivePlayback&&a.videoData.C&&!a.videoData.C.j&&a.mediaElement&&0<a.mediaElement.Rk()&&0<MEa(a.mediaElement)&&(a.B=sfb(a,a.B,!1)),!a.mediaElement||!tfb(a))a.Ab.start(750);else if(!isNaN(a.B)&&isFinite(a.B)){var b=a.Ma-(a.B-a.timestampOffset);if(!(0===b||a.L("html5_enable_new_seek_timeline_logic")&&.005>Math.abs(b)))if(b=a.mediaElement.getCurrentTime()-a.B,Math.abs(b)<=a.Sa||a.L("html5_enable_new_seek_timeline_logic")&&.005>Math.abs(b))a.C&&a.C.resolve(a.mediaElement.getCurrentTime());
else{if(a.videoData.wD)a.videoData.wD=!1;else if(!MS(a.videoData)&&a.B>=a.Ie()-.1){a.B=a.Ie();a.C.resolve(a.Ie());NX(a.ea);return}try{var c=a.B-a.timestampOffset;a.mediaElement.seekTo(c);a.ra.j=c;a.Ma=c;a.D=a.B;a.L("html5_enable_new_seek_timeline_logic")&&(a.N=!1)}catch(d){}}}};
tfb=function(a){if(!a.mediaElement||0===a.mediaElement.Rk()||a.mediaElement.hasError())return!1;var b=0<a.mediaElement.getCurrentTime();if(!(a.videoData.C&&a.videoData.C.j||a.videoData.isLivePlayback)&&a.videoData.Xi())return b;if(0<=a.B){var c=a.mediaElement.TE();if(c.length||!b)return sK(c,a.B-a.timestampOffset)}return b};
rfb=function(a,b){a.G&&(a.G.resolve(b),a.ea.publish("SEEK_COMPLETE"),a.W.Bc()&&(b=a.pc(),b["native"]=""+ +a.N,b.otgt=""+(a.B+a.timestampOffset),a.ea.ma("seekEnd",b)));r0(a)};
r0=function(a){a.B=NaN;a.Ma=NaN;a.C=null;a.Y=null;a.G=null;a.qa=!1;a.N=!1;a.Sa=0;a.Ga.stop();a.Va.stop()};
vfb=function(a,b,c){var d=a.mediaElement,e=b.type;switch(e){case "seeking":var f=d.getCurrentTime()+a.timestampOffset;if(!a.C||a.N&&f!==a.B){var h=!!a.C;a.C=new IK;a.L("html5_enable_new_seek_timeline_logic")&&a.C.then(function(m){rfb(a,m)},function(){r0(a)});
if(a.videoData.isAd()&&a.L("enabled_asd_timeline")){var l;Wya({adCpn:a.videoData.clientPlaybackNonce,contentCpn:null!=(l=a.videoData.dW)?l:""},b.j);a.L("enable_ask_gating")&&a.ea.VK()}a.Ma=f;cfb(a.ra,d.getCurrentTime());a.seekTo(f,{seekSource:104,yd:"seektimeline_mediaElementEvent"});c&&N6a(c,1E3*f,!!h);a.N=!0}break;case "seeked":a.C&&a.C.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":ufb(a);q0(a);break;case "progress":q0(a);break;case "pause":a.Z=a.getCurrentTime()}a.Z&&(("play"===
e||"playing"===e||"timeupdate"===e||"progress"===e)&&10<a.getCurrentTime()-a.Z&&a.seekTo(a.Z,{yd:"pauseJump"}),"pause"!==e&&"play"!==e&&"playing"!==e&&"progress"!==e&&(a.Z=0))};
wfb=function(a){return(gT(a.videoData)||!!a.videoData.liveUtcStartSeconds)&&(!!a.videoData.liveUtcStartSeconds||hfb(a))&&!!a.videoData.j};
hfb=function(a){return!!a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds};
ufb=function(a){if(a.Ca)if(g.fT(a.videoData))a.Ca=!1;else{var b="ss",c=0;a.videoData.j&&a.videoData.j.isManifestless&&a.videoData.Kb&&!hfb(a)&&(b="mss",c=a.videoData.Kb);(a.videoData.eb?a.L("html5_prioritize_windowed_st_start_seconds"):a.L("html5_prioritize_st_start_seconds"))&&!c&&a.videoData.zj&&(b="stss",c=a.videoData.zj);!c&&wfb(a)&&(c=a.videoData.liveUtcStartSeconds||a.videoData.Kb,b="utc",c=a.Ie()-a.Ye(a.Ie())+c);!c&&a.videoData.zj&&(b="stss",c=a.videoData.zj);var d={};if(c){if(c>a.Ie()||c<
a.Dd())d.minSeekableTime=a.Dd(),d.maxSeekableTime=a.Ie(),d.cmt=a.getCurrentTime(),d.it=a.Ye(a.getCurrentTime()),d.ss=c,d.utc=wfb(a)?a.videoData.liveUtcStartSeconds||a.videoData.Kb:0,a.ea.ma("startSecondsOutOfBounds",d),a.videoData.dc()&&(c=sfb(a,c,!1));a.seekTo(c,{yd:"seektimeline_startSeconds"});d[b]=c;a.ea.ma("startSeconds",d);a.Ca=!1}else a.videoData.Kb&&(d[b]=a.videoData.Kb+a.Mc(),a.ea.ma("startSeconds",d))}};
xfb=function(a,b){a.ea.ma("sdai",{adj4t:b.toFixed(3)});a.La=b;b+=1;a.B=b;a.D=b;qfb(a).then(function(c){rfb(a,c)},function(){r0(a)})};
mfb=function(a){return a.mediaElement?KK(a.mediaElement):0};
dfb=function(){};
t0=function(){this.j=this.started=!1};
Dfb=function(a){function b(e){return c.Ml&&(!d.qn||!d.Da.N)||"yt"!==c.ra&&(38===d.La&&"books"===c.playerStyle||30===d.La&&"docs"===c.playerStyle||33===d.La&&"google-live"===c.playerStyle)?yfb(a,d,e):zfb(a,d).then(function(){u0(a,d)},function(f){u0(a,d,!0);
throw f;})}
var c=a.U(),d=a.getVideoData();d.Na();d.loading=!0;return Afb(a)?Bfb(a,d).then(function(){u0(a,d)},function(e){e=TJ(e);
if(SJ(e.severity))return u0(a,d,!0),Promise.reject(e);"onesie.response.badproxystatus"===e.errorCode&&"3"===""+e.details.st&&(Cfb=!0);a.handleError(e);return b("onesie")}):b("gvi")};
Afb=function(a){var b=a.U();if(b.L("html5_disable_onesie")||!b.L("html5_onesie")||!b.L("html5_onesie_inline")&&5===a.getVisibilityState()||"yt"!==b.ra)return!1;var c=b.Kk;if(!c||!c.j)return a.handleError(new RJ("onesie.unavailable.hotconfig",{key:"0"})),!1;if(c.j.G<(0,g.wC)()&&(a.ma("okexp","1"),(c=a.mA())&&b.L("html5_prefer_trusted_host_on_key_expiration"))){c.B=!0;var d;(b=null==(d=c.j.get(0))?void 0:uP(d.location))&&!EX(b)&&c.j.delete(0)}if(Cfb)return a.ma("ost3","1"),!1;d={};return 0<Object.keys(d).length?
(d.onesie="0",a.handleError(new RJ("html5.missingapi",d)),!1):!0};
Efb=function(a){var b=WT();XT(b,a);return g.nH(b,lPa())};
Bfb=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,C,F,H,M,L,R,ba,ma,na,ia,sa;return g.G(function(aa){if(1==aa.j)return b.fetchType="onesie",c=RXa(b,a.getPlayerSize(),a.getVisibilityState()),d=new s_(a,c),g.z(aa,d.fetch(),2);e=aa.B;f={player_response:e};b.loading=!1;h=a.fd.Fu;if(d.Zf){l=g.u(d.Zf.entries());for(m=l.next();!m.done;m=l.next())n=m.value,p=g.u(n),q=p.next().value,r=p.next().value,t=q,v=r,h.j.set(t,v,180),t===b.videoId&&(w=v.zr(),b.zG=w);h.Zz=d}A=g.u(d.VX.entries());for(C=A.next();!C.done;C=
A.next())F=C.value,H=g.u(F),M=H.next().value,L=H.next().value,R=M,ba=L,h.B.set(R,ba,180);g.HS(b,f,!0);if(b.loading||FS(b))return aa.return(Promise.resolve());h.j.removeAll();h.B.removeAll();b.zG=[];ma={};na="onesie.response";ia=0;b.errorCode?(na="auth",ma.ec=b.errorCode,ma.ed=b.errorDetail,ma.es=b.Hn||"",ia=2):(ma.successButUnplayable="1",ma.disposed=""+ +b.Na(),ma.afmts=""+ +/adaptiveFormats/.test(e),ma.cpn=b.clientPlaybackNonce);sa=new RJ(na,ma,ia);return aa.return(Promise.reject(sa))})};
zfb=function(a,b){var c,d,e,f,h,l,m,n,p,q,r;return g.G(function(t){switch(t.j){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f<e)){t.Ia(4);break}if(!(0<f)){t.Ia(5);break}return g.z(t,Bg(5E3),6);case 6:h=new g.XB("Retrying OnePlatform request",{attempt:f}),g.BE(h);case 5:return g.Ba(t,7),g.z(t,Ffb(a,b),9);case 9:return t.return();case 7:l=g.Da(t);m=TJ(l);n=m.errorCode;p=a.U();p.L("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 t.return(Promise.reject(m));a.handleError(m);if(SJ(m.severity)){t.Ia(4);break}case 3:f++;t.Ia(2);break;case 4:return q=c?"auth":"manifest.net.retryexhausted",r=c?2:1,t.return(Promise.reject(new RJ(q,{backend:"op"},r)))}})};
Ffb=function(a,b){function c(na){2===na.readyState&&a.Sd("ps_c")}
var d,e,f,h,l,m,n,p,q,r,t,v,w,A,C,F,H,M,L,R,ba,ma;return g.G(function(na){switch(na.j){case 1:b.fetchType="gp";d=a.U();e=g.$R(d,g.qT(b));if(!e.j){f=e.getValue();na.Ia(2);break}return g.z(na,e.j,3);case 3:f=na.B;case 2:return h=f,l=Efb(h),m=RXa(b,a.getPlayerSize(),a.getVisibilityState()),n=g.mG(Gfb),p=g.qT(b),q=(0,g.wC)(),r=!1,t="empty",v=0,a.Sd("psns"),w={sB:c},g.z(na,g.eH(l,m,n,void 0,w),4);case 4:A=na.B;a.Sd("psnr");if(b.Na())return na.return();A?"error"in A&&A.error?(r=!0,t="esf:"+A.error.message,
v=A.error.code):A.errorMetadata&&(r=!0,t="its",v=A.errorMetadata.status):r=!0;if(r)return C=0,F=((0,g.wC)()-q).toFixed(),H={},H=d.L("html5_use_network_error_code_enums")?{backend:"op",rc:v,rt:F,reason:t,has_kpt:b.Jb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.xA("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.Ha?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.cj||"",token_eq:p===g.qT(b)?"1":"0"}:{backend:"op",
rc:""+v,rt:F,reason:t,has_kpt:b.Jb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.xA("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.Ha?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.cj||"",token_eq:p===g.qT(b)?"1":"0"},M="manifest.net.connect",429===v?(M="auth",C=2):200<v&&(M="manifest.net.badstatus",400===v&&(C=2)),na.return(Promise.reject(new RJ(M,H,C)));b.loading=!1;g.HS(b,{raw_player_response:A},!0);
L=A;g.GR(b.U())&&L&&L.trackingParams&&SO(L.trackingParams);if(b.errorCode)return R={ec:b.errorCode,ed:b.errorDetail,es:b.Hn||""},na.return(Promise.reject(new RJ("auth",R,2)));if(!b.loading&&!FS(b))return ba=b.isAd()?"auth":"manifest.net.retryexhausted",ma=b.isAd()?2:1,na.return(Promise.reject(new RJ(ba,{successButUnplayable:"1",hasMedia:g.cT(b)?"1":"0"},ma)));g.Aa(na)}})};
yfb=function(a,b,c){function d(v){v=TJ(v);if(SJ(v.severity))return Promise.reject(v);a.handleError(v);return!1}
function e(){return!0}
var f,h,l,m,n,p,q,r,t;return g.G(function(v){switch(v.j){case 1:var w=a.U(),A=a.getPlayerSize(),C=a.getVisibilityState();a.isFullscreen();var F=window.location.search;if(38===b.La&&"books"===w.playerStyle)F=b.videoId.indexOf(":"),F=g.to("//play.google.com/books/volumes/"+b.videoId.slice(0,F)+"/content/media",{aid:b.videoId.slice(F+1),sig:b.mfa});else if(30===b.La&&"docs"===w.playerStyle)F=g.to("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.f9,authkey:b.Mca,eurl:w.Qc});else if(33===
b.La&&"google-live"===w.playerStyle)F=g.to("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});else{"yt"!==w.ra&&g.AE(Error("getVideoInfoUrl for invalid namespace: "+w.ra));var H={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:w.Qc,ps:w.playerStyle,el:mT(b),hl:w.sj,list:b.playlistId,agcid:b.mW,aqi:b.adQueryId,sts:19879,lact:QD()};Object.assign(H,w.j);w.forcedExperiments&&(H.forced_experiments=w.forcedExperiments);b.Ha?(H.vvt=b.Ha,b.mdxEnvironment&&(H.mdx_environment=b.mdxEnvironment)):
g.qT(b)&&(H.access_token=g.qT(b));b.adFormat&&(H.adformat=b.adFormat);0<=b.slotPosition&&(H.slot_pos=b.slotPosition);b.breakType&&(H.break_type=b.breakType);null!==b.JC&&(H.ad_id=b.JC);null!==b.NC&&(H.ad_sys=b.NC);null!==b.yD&&(H.encoded_ad_playback_context=b.yD);b.ZC&&(H.tpra="1");w.captionsLanguagePreference&&(H.cc_lang_pref=w.captionsLanguagePreference);w.Jb&&2!==w.Jb&&(H.cc_load_policy=w.Jb);var M=g.VB(g.UB(),65);g.RR(w)&&null!=M&&!M&&(H.device_captions_on="1");w.mute&&(H.mute=w.mute);b.annotationsLoadPolicy&&
2!==w.annotationsLoadPolicy&&(H.iv_load_policy=b.annotationsLoadPolicy);b.Wv&&(H.endscreen_ad_tracking=b.Wv);(M=w.Ma.get(b.videoId))&&M.rM&&(H.ic_track=M.rM);b.Ca&&(H.itct=b.Ca);zXa(b)&&(H.autoplay="1");b.mutedAutoplay&&(H.mutedautoplay=b.mutedAutoplay);b.isAutonav&&(H.autonav="1");b.GD&&(H.noiba="1");b.isMdxPlayback&&(H.mdx="1",H.ytr=b.Ij);b.mdxControlMode&&(H.mdx_control_mode=b.mdxControlMode);b.ww&&(H.ytrcc=b.ww);b.xE&&(H.utpsa="1");b.isFling&&(H.is_fling="1");b.isInlinePlaybackNoAd&&(H.mute="1");
b.vnd&&(H.vnd=b.vnd);b.forceAdsUrl&&(M=3===b.forceAdsUrl.split("|").length,H.force_ad_params=M?b.forceAdsUrl:"||"+b.forceAdsUrl);b.Pf&&(H.preload=b.Pf);A.width&&(H.width=A.width);A.height&&(H.height=A.height);(b.Ig?0:b.Oi)&&(H.splay="1");b.ypcPreview&&(H.ypc_preview="1");oT(b)&&(H.content_v=oT(b));b.Ab&&(H.livemonitor=1);w.Ca&&(H.authuser=w.Ca);w.pageId&&(H.pageid=w.pageId);w.gb&&(H.ei=w.gb);w.D&&(H.iframe="1");b.contentCheckOk&&(H.cco="1");b.racyCheckOk&&(H.rco="1");w.N&&b.LF&&(H.live_start_walltime=
b.LF);w.N&&b.Kl&&(H.live_manifest_duration=b.Kl);w.N&&b.playerParams&&(H.player_params=b.playerParams);w.N&&b.cycToken&&(H.cyc=b.cycToken);w.N&&b.sD&&(H.tkn=b.sD);0!==C&&(H.vis=C);w.enableSafetyMode&&(H.enable_safety_mode="1");b.Jb&&(H.kpt=b.Jb);b.jp&&(H.kids_age_up_mode=b.jp);b.kidsAppInfo&&(H.kids_app_info=b.kidsAppInfo);b.MA&&(H.upg_content_filter_mode="1");w.widgetReferrer&&(H.widget_referrer=w.widgetReferrer.substring(0,128));b.qa?(A=null!=b.qa.latitudeE7&&null!=b.qa.longitudeE7?b.qa.latitudeE7+
","+b.qa.longitudeE7:",",A+=","+(b.qa.clientPermissionState||0)+","+(b.qa.locationRadiusMeters||"")+","+(b.qa.locationOverrideToken||"")):A=null;A&&(H.uloc=A);b.hp&&(H.internalipoverride=b.hp);w.embedConfig&&(H.embed_config=w.embedConfig);w.Xl&&(H.co_rel="1");0<w.ancestorOrigins.length&&(H.ancestor_origins=Array.from(w.ancestorOrigins).join(","));void 0!==w.homeGroupInfo&&(H.home_group_info=w.homeGroupInfo);void 0!==w.livingRoomAppMode&&(H.living_room_app_mode=w.livingRoomAppMode);w.enablePrivacyFilter&&
(H.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(H.is_living_room_deeplink="1");b.Jv&&b.Rv&&(H.clip=b.Jv,H.clipt=b.Rv);b.Uv&&(H.disable_watch_next="1");b.vn&&(H.forced_by_var="1");for(var L in H)!Hfb.has(L)&&H[L]&&512<String(H[L]).length&&(g.BE(Error("GVI param too long: "+L)),H[L]="");L=w.Ha;g.HR(w)&&(L=ACa(L.replace(/\b(?:www|web)([.-])/,"tv$1"))||w.Ha);w=g.to(L+"get_video_info",H);F&&(w=Eqa(w,F));F=w}f=F;l=(h=b.isAd())?1:3;m=0;case 2:if(!(m<l)){v.Ia(4);break}n=f;if(!(0<m)){v.Ia(5);break}return g.z(v,
Bg(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=IA(f,p);case 5:return g.z(v,Ifb(b,n).then(e,d),7);case 7:if(q=v.B)return v.return();m++;v.Ia(2);break;case 4:r=h?"auth":"manifest.net.retryexhausted";t=h?2:1;if(!h&&1E-4>Math.random())try{g.BE(new g.XB("b/152131571",btoa(f)))}catch(R){}return v.return(Promise.reject(new RJ(r,{backend:"gvi"},t)))}})};
Ifb=function(a,b){function c(A){return d(A.xhr)}
function d(A){if(!a.Na()){A=A?A.status:-1;var C=0,F=((0,g.wC)()-p).toFixed();F=e.L("html5_use_network_error_code_enums")?{backend:"gvi",rc:A,rt:F}:{backend:"gvi",rc:""+A,rt:F};var H="manifest.net.connect";429===A?(H="auth",C=2):200<A&&(H="manifest.net.badstatus",400===A&&(C=2));return Promise.reject(new RJ(H,F,C))}}
var e,f,h,l,m,n,p,q,r,t,v,w;return g.G(function(A){if(1==A.j){a.fetchType="gvi";e=a.U();var C={};a.RC&&(C.ytrext=a.RC);(l=g.gd(C)?void 0:C)?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=IA(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=hR(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n);0<Object.keys(m).length&&
(f.headers=m);p=(0,g.wC)();return g.z(A,fTa(XA,h,f).then(void 0,c),2)}q=A.B;if(!q||!q.responseText)return A.return(d(q));a.loading=!1;r=FA(q.responseText);g.HS(a,r,!0);if(a.errorCode)return t={ec:a.errorCode,ed:a.errorDetail,es:a.Hn||""},A.return(Promise.reject(new RJ("auth",t,2)));if(!a.loading&&!FS(a))return v=a.isAd()?"auth":"manifest.net.retryexhausted",w=a.isAd()?2:1,A.return(Promise.reject(new RJ(v,{successButUnplayable:"1"},w)));g.Aa(A)})};
u0=function(a,b,c){c=void 0===c?!1:c;var d,e,f,h;g.G(function(l){if(1==l.j){d=a.U();if(c&&(!g.TR(d)||"embedded"!==mT(b))||b.Uv||"adunit"!==mT(b)&&(g.II(d)||MR(d)||g.cG(d)||g.HR(d)||"WEB_CREATOR"===g.fR(d)))return l.return();e=g.$R(d,g.qT(b));return e.j?g.z(l,e.j,3):(f=e.getValue(),l.Ia(2))}2!=l.j&&(f=l.B);h=f;return l.return(Jfb(a,b,h))})};
Jfb=function(a,b,c){var d,e,f,h,l;return g.G(function(m){if(1==m.j){g.Ba(m,2);d=Efb(c);var n=b.U();g.UB();var p={context:g.xT(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===mT(b)&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);n.Xl&&(p.showContentOwnerOnly=!0);b.rW&&(p.showShortsOnly=!0);g.VB(0,141)&&(p.autonavState=g.VB(0,140)?"STATE_OFF":"STATE_ON");if(g.RR(n)){var q=g.VB(0,65);q=null!=q?
!q:!1;var r=!!g.QB("yt-player-sticky-caption");p.captionsRequested=q&&r}var t;q=null==(t=n.getWebPlayerContextConfig())?void 0:t.encryptedHostFlags;n.L("embeds_web_enable_havs_getwatchnext")&&q&&(p.playbackContext={encryptedHostFlags:q});e=p;f=g.mG(Kfb);a.Sd("wn_s");return g.z(m,g.eH(d,e,f),4)}if(2!=m.j)return h=m.B,a.Sd("wn_r"),!h||"error"in h&&h.error||(l=h,g.GR(b.U())&&l.trackingParams&&SO(l.trackingParams),g.HS(b,{raw_watch_next_response:h},!1)),g.Ca(m,0);g.Da(m);g.Aa(m)})};
Lfb=function(a){a.Sd("vir");a.Sd("ps_s");bH("vir",void 0,"video_to_ad");var b=Dfb(a);b.then(function(){a.Sd("virc");bH("virc",void 0,"video_to_ad");a.Sd("ps_r");bH("ps_r",void 0,"video_to_ad")},function(){a.Sd("virc");
bH("virc",void 0,"video_to_ad")});
return b};
g.x0=function(a,b,c,d,e,f,h,l,m,n){m=void 0===m?new g.ES(a):m;n=void 0===n?!0:n;g.UE.call(this);var p=this;this.W=a;this.playerType=b;this.Ob=c;this.iH=d;this.getVisibilityState=f;this.visibility=h;this.fd=l;this.videoData=m;this.o7=n;this.logger=new g.RQ("VideoPlayer");this.UD=new Seb(this.W);this.Ae=null;this.BB=new K_;this.rr=null;this.yk=new ndb(this.W,this.iH,this);this.IY=!0;this.Qa=this.ya=null;this.tq=[];this.uq=new t0;this.Lf=this.oG=null;this.ws=new t0;this.vL=null;this.ZP=this.ju=!1;this.wL=
NaN;this.u0=!1;this.playerState=new g.LK;this.zL=[];this.zC=new g.YJ;this.Xk=new bdb(this);this.mediaElement=null;this.xx=new g.Iv(this.Vaa,15E3,this);this.QS=this.RK=!1;this.gy=NaN;this.pI=!1;this.UN=0;this.iF=!1;this.qK=NaN;this.zT=new bV(new Map([["bufferhealth",function(){return mfb(p.jd)}],
["bandwidth",function(){return p.iP()}],
["networkactivity",function(){return p.W.schedule.Y}],
["livelatency",function(){return p.isAtLiveHead()&&p.isPlaying()?Mfb(p):NaN}],
["rawlivelatency",function(){return Mfb(p)}]]));
this.BF=0;this.loop=!1;this.playbackRate=1;this.zZ=0;this.jd=new gfb(this);this.MW=!1;this.yL=[];this.GQ=this.v0=0;this.LS=this.S2=!1;this.xC=this.qv=this.Ms=0;this.HN=new g.Iv(this.i9,0,this);this.yT=!1;this.zb=this.Wc=null;this.W$=[this.zC,this.HN,this.xx,this.zT];this.Kf=function(){var q=p.wc();q.provider.W.Qf||3===q.provider.ea.getVisibilityState()||(q.provider.W.Qf=!0);Ceb(q);if(q.B){var r=q.B;r.G&&0>r.j&&3!==r.provider.ea.getVisibilityState()&&Ddb(r)}q.qoe&&(q=q.qoe,q.Va&&0>q.B&&q.provider.W.Qf&&
Ydb(q),q.C&&T_(q));p.ya&&v0(p);p.W.tp&&!p.videoData.backgroundable&&p.mediaElement&&!p.Xh()&&(p.isBackground()&&p.mediaElement.cI()?(p.ma("bgmobile",{suspend:1}),p.No(!0,!0)):p.isBackground()||w0(p)&&p.ma("bgmobile",{resume:1}))};
this.wd={lq:function(q){p.lq(q)},
yrb:function(q){p.Ae=q},
Vpb:function(){return p.WA},
kA:function(){return p.XA},
spb:function(){return p.VN},
tpb:function(){return p.WN},
Tqb:function(){},
U:function(){return p.W},
Je:function(){return p.mediaElement},
Vqb:function(q){p.iL(q)}};
this.logger.debug(function(){return"creating, type "+b});
this.Ah=new g0(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,r){q!==g.dJ("endcr")||g.MF(p.playerState,32)||NX(p);
e(q,r,p.playerType)},function(q,r){g.sT(p.videoData)&&p.ma(q,r)});
g.N(this,this.Ah);g.N(this,this.jd);Nfb(this,m);this.videoData.subscribe("dataupdated",this.Cca,this);this.videoData.subscribe("dataloaded",this.oO,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.ma,this);this.videoData.subscribe("ctmpstr",this.QB,this);this.QI();x5a(this.Kf);this.visibility.subscribe("visibilitystatechange",this.Kf);this.VN=new g.Iv(this.WL,g.xI(this.W.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.WN=
new g.Iv(this.WL,g.xI(this.W.experiments,"html5_player_att_retry_delay_ms")||4500,this)};
FK=function(a){return a.L("html5_not_reset_media_source")&&!a.Xi()&&!a.videoData.isLivePlayback&&g.nT(a.videoData)&&!a.W.supportsGaplessShorts()};
Nfb=function(a,b){if(2===a.playerType||a.W.wp)b.lU=!0;var c=FVa(b.zd,b.nB,a.W.D,a.W.N);c&&(b.adFormat=c);2===a.playerType&&(b.xl=!0);if(a.isFullscreen()||a.W.D)c=g.QB("yt-player-autonavstate"),b.autonavState=c||(a.W.D?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&s0(a,b.endSeconds)};
Pfb=function(a){if(a.videoData.Y){var b=a.fd.Zc();a.videoData.Qy=a.videoData.Qy||(null==b?void 0:b.mP());a.videoData.Bv=a.videoData.Bv||(null==b?void 0:b.pP())}if(rXa(a.videoData)||!FXa(a.videoData))b=a.videoData.errorDetail,a.Mf(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Hn||void 0);a.videoData.Uf=a.getUserAudio51Preference();a.L("html5_generate_content_po_token")&&Ofb(a);a.L("html5_enable_d6de4")&&a.VT()};
Qfb=function(a){Deb(a.WA);g.vb(a.WA);for(var b=a.XA,c=g.u(b.j.values()),d=c.next();!d.done;d=c.next())Deb(d.value);b.j.clear();g.vb(a.XA)};
Rfb=function(a){return a.mediaElement&&a.mediaElement.Qv()?a.mediaElement.Ib():null};
y0=function(a){if(a.L("html5_check_video_data_errors_before_playback_start")&&a.videoData.errorCode)return!1;if(a.videoData.ue())return!0;a.Mf("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.MX=function(a,b){(b=void 0===b?!1:b)||g.sT(a.videoData)||tY(a.wc());a.ju=b;!y0(a)||a.uq.pu()?g.II(a.W)&&a.videoData.isLivePlayback&&a.uq.pu()&&!a.uq.j&&!a.ju&&a.oO():(a.uq.start(),b=a.wc(),g.KM(b.provider),b.qoe&&Tdb(b.qoe),a.oO())};
Sfb=function(a){var b=a.videoData;Lfb(a).then(void 0,function(c){a.videoData!==b||b.Na()||(c=TJ(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Mf(c.errorCode,2,unescape(a.videoData.errorReason),QJ(c.details),a.videoData.errorDetail,a.videoData.Hn||void 0):a.handleError(c))})};
Z5a=function(a,b){a.Wc=b;a.ya&&dcb(a.ya,new g.C_(b))};
Vfb=function(a){if(!g.MF(a.playerState,128))if(a.videoData.isLoaded(),a.logger.debug("finished loading playback data"),a.tq=g.Lb(a.videoData.Ga),g.cT(a.videoData)){a.Ob.tick("bpd_s");z0(a).then(function(){a.Ob.tick("bpd_c");if(!a.Na()){a.ju&&(a.Gc(OK(OK(a.playerState,512),1)),w0(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&s0(a,c.endSeconds);a.uq.j=!0;A0(a,"dataloaded");a.ws.pu()&&Tfb(a);Cdb(a.yk,a.Lf)}});
a.L("html5_log_media_perf_info")&&a.ma("loudness",{v:a.videoData.Qf.toFixed(3)},!0);var b=GXa(a.videoData);b&&a.ma("playerResponseExperiment",{id:b},!0);Ufb(a)}else A0(a,"dataloaded")};
z0=function(a){B0(a);a.Lf=null;var b=Ueb(a.W,a.videoData,a.Xh());a.oG=b;a.oG.then(function(c){Wfb(a,c)},function(c){a.Na()||(c=TJ(c),a.visibility.isBackground()?(C0(a,"vp_none_avail"),a.oG=null,a.uq.reset()):(a.uq.j=!0,a.Mf(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",QJ(c.details))))});
return b};
N_=function(a){a.logger.debug("Updating for format change");z0(a).then(function(){return w0(a)});
a.playerState.isOrWillBePlaying()&&a.playVideo()};
Wfb=function(a,b){if(!a.Na()&&!b.videoData.Na()){a.logger.debug("finished building playback data");a.Lf=b;ifb(a.jd,a.Lf);if(a.videoData.isLivePlayback){var c=g7a(a.fd.Fu,a.videoData.videoId)||a.ya&&!isNaN(a.ya.Ha);c=a.L("html5_onesie_live")&&c;0<a.videoData.Kb&&!OS(a.videoData)||c||a.seekTo(a.Ie(),{yd:"videoplayer_playbackData",seekSource:18})}if(a.videoData.C.j){if(a.L("html5_sabr_report_missing_url_as_error")&&DXa(a.videoData)){a.handleError(new RJ("fmt.missing",{missabrurl:"1"},2));return}a.ya?
g.BE(Error("Duplicated Loader")):(c=g.xI(a.W.experiments,"html5_onesie_defer_content_loader_ms"))&&y_(a)&&g7a(a.fd.Fu,a.videoData.nfa)?g.PA(function(){a.Na()||a.ya||Xfb(a)},c):Xfb(a)}else!a.videoData.C.j&&rT(a.videoData)&&a.cL(new IZ(a.videoData.videoId||"",4));
D0(a);tdb(b).then(function(){var d={};a.To(d);a.W.Bc()&&a.L("html5_log_media_perf_info")&&a.ma("av1Info",d);v0(a)})}};
Yfb=function(a){a.logger.debug("start readying playback");a.mediaElement&&a.mediaElement.activate();g.MX(a);y0(a)&&!g.MF(a.playerState,128)&&(a.ws.pu()||(a.ws.start(),a.videoData.Ll?a.Gc(OK(a.playerState,4)):a.Gc(OK(OK(a.playerState,8),1))),Tfb(a))};
Tfb=function(a){a.Na();a.logger.debug("try finish readying playback");if(a.ws.j)a.logger.debug("already finished readying");else if(a.uq.j)if(g.MF(a.playerState,128))a.logger.debug("cannot finish readying because of error");else if(a.tq.length)a.logger.debug(function(){return"cannot finish readying because of pending preroll: "+a.tq});
else if(a.Ah.started||Peb(a.Ah),a.Un())a.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{a.ya&&(a.ZP=e9a(a.ya.timing));a.ws.j||(a.ws.j=!0);var b=a.L("html5_onesie_live")&&a.ya&&!isNaN(a.ya.Ha);!a.videoData.isLivePlayback||0<a.videoData.Kb&&!OS(a.videoData)||b||(a.logger.debug("seek to head for live"),a.seekTo(Infinity,{yd:"videoplayer_readying",seekSource:18}),a.isBackground()&&(a.QS=!0));Beb(a.wc());a.logger.debug("finished readying playback");a.publish("playbackready",
a);aH("pl_c",a.Ob.timerName)||(a.Ob.tick("pl_c"),bH("pl_c",void 0,"video_to_ad"));aH("pbr",a.Ob.timerName)||(a.Ob.tick("pbr"),bH("pbr",void 0,"video_to_ad"))}else a.logger.debug("playback data not loaded")};
NX=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.mediaElement&&a.mediaElement.pause();Zfb(a)&&!a.videoData.ra&&a.yT||a.Gc(b?new g.LK(14):new g.LK)};
s0=function(a,b){a.rr&&$fb(a);a.rr=new g.cJ(1E3*b,0x7ffffffffffff);a.rr.namespace="endcr";a.addCueRange(a.rr)};
$fb=function(a){a.removeCueRange(a.rr);a.rr=null};
agb=function(a,b,c,d,e){var f=a.wc(e);e=g.sT(a.videoData)?f.getVideoData():a.videoData;e.B=c;var h=g.eV(a);f.kG(new mdb(e,c,b,h?h.itag:"",d));c=a.yk;c.B=0;c.j=0;a.publish("internalvideoformatchange",e,"m"===b)};
g.eV=function(a){var b=E0(a);return eP(b)||!a.Lf?null:g.Db(a.Lf.j.videoInfos,function(c){return b.D(c)})};
E0=function(a){if(a.Lf){var b=a.yk;var c=a.Lf;a=a.Mw();if(b.ea.Am().isInline())var d=DS;else b.L("html5_exponential_memory_for_sticky")?d=.5>MUa(b.W.Pf,"sticky-lifetime")?"auto":fP[YO()]:d=fP[YO()],d=g.dP("auto",d,!1,"s");if(eP(d)){d=odb(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.u(f.videoInfos),l=h.next();!l.done;l=h.next()){l=l.value;var m=void 0;if(null==(m=l.B)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;Xqa()&&!g.II(b.W)&&fK(c.j.videoInfos[0])&&
(f=Math.min(f,g.$J.large));h=g.xI(b.W.experiments,"html5_chipset_soft_cap");0<h&&(f=Math.min(f,h));d=e.call(d,new bP(0,f,!1,"o"));e=d.compose;f=4320;!b.W.B||g.GR(b.W)||b.W.L("hls_for_vod")||b.W.L("mweb_remove_360p_cap")||0!==g.xI(b.W.experiments,"html5_byterate_soft_cap_mweb")||(f=g.$J.medium);(h=g.xI(b.W.experiments,"html5_default_quality_cap"))&&c.j.j&&(b.W.L("html5_always_apply_default_quality_cap")||!c.videoData.cj&&!c.videoData.le)&&(f=Math.min(f,h));(h=g.xI(b.W.experiments,"html5_ns_yt_progressive_quality_cap"))&&
!c.j.j&&"yt"===b.W.ra&&(f=Math.min(f,h));h=g.xI(b.W.experiments,"html5_random_playback_cap");l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,h));if(l=h=g.xI(b.W.experiments,"html5_hfr_quality_cap"))a:{l=c.j;if(l.j)for(l=g.u(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.xI(b.W.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=Adb(b,c,f);d=e.call(d,0<g.xI(b.W.experiments,"html5_byterate_soft_cap_mweb")&&
b.W.B&&!g.GR(b.W)?new bP(0,4320===f?0:f,!1,"d",g.xI(b.W.experiments,"html5_byterate_soft_cap_mweb")):new bP(0,4320===f?0:f,!1,"d")).compose(zdb(b,c.videoData)).compose(Bdb(b,c.videoData,c)).compose(ydb(b,c)).compose(rdb(b,c));if(eP(a)||b.L("html5_apply_pbr_cap_for_drm"))d=d.compose(sdb(b,c))}else b.L("html5_perf_cap_override_sticky")&&(d=d.compose(ydb(b,c))),b.L("html5_ustreamer_cap_override_sticky")&&(d=d.compose(sdb(b,c)));d=d.compose(rdb(b,c));b=c.videoData.NA.compose(d).compose(c.videoData.yY).compose(a)}else b=
DS;return b};
bbb=function(a){var b=a.yk;a=a.videoData;var c=zdb(b,a);b.L("html5_disable_client_autonav_cap_for_onesie")||c.compose(Bdb(b,a));return c};
g.bgb=function(a,b,c,d){a.videoData.NA=b;if(a.Lf&&c){c=a.yk;var e=a.Lf;if(e.j.j){var f=YO(),h=e.j.videoInfos[0].video.j;if(!(f>h&&0!==h&&b.j===h)){var l;f=qdb(c,null==(l=e.j)?void 0:l.videoInfos);l=c.ea.getPlaybackRate();1<l&&f&&(l=pUa(c.W.G,e.j.videoInfos,l),0!==b.j&&l<b.j&&c.ea.setPlaybackRate(1));var m,n;b=g.$J[gP(b)];e=(null==(m=e.videoData.B)?void 0:null==(n=m.video)?void 0:n.j)||0;g.PB("yt-player-quality",{quality:b,previousQuality:e},31104E3);c.W.schedule.policy.C=480<=YO();if(c.L("html5_exponential_memory_for_sticky")){m=
c.W.Pf;n=1;var p=void 0===p?!1:p;LUa(m,"sticky-lifetime");m.values["sticky-lifetime"]&&m.Ir["sticky-lifetime"]||(m.values["sticky-lifetime"]=0,m.Ir["sticky-lifetime"]=0);p&&.0625<MUa(m,"sticky-lifetime")&&(n=2*m.Ir["sticky-lifetime"]);m.values["sticky-lifetime"]+=1*Math.pow(2,m.j/n);m.Ir["sticky-lifetime"]=n;m.D.start()}if(c.L("html5_perf_cap_override_sticky")){m=c.W;p=c.C;c=c.L("html5_perserve_av1_perf_cap");n=c=void 0===c?!1:c;m=m.L("html5_gradual_perf_cap");m=void 0===m?!1:m;if(void 0===n?0:n){n=
ZO();b=g.u(Object.keys(n));for(e=b.next();!e.done;e=b.next())e=e.value,0!==e.indexOf("1")&&(n[e]=0);g.PB("yt-player-performance-cap",n,m?2592E3:604800)}else g.RB("yt-player-performance-cap");JPa(c);if(c){c=g.u(SQ.keys());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||SQ.delete(m);c=g.u(O_.values());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||O_.delete(m);c=g.u(p.keys());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||p.delete(m)}else SQ.clear(),O_.clear(),
p.clear()}}}}a.ya&&(p=a.ya,d=d||"",zV(p.policy)?wZ(p.D.j,d):wZ(p.j.G,d));D0(a)};
Ofb=function(a){a.videoData.videoId?a.fd.fP(a.videoData.videoId).then(function(b){a.videoData.jfa=b}):a.ma("pomvid",{})};
D0=function(a){if(!a.Na()&&!g.MF(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)v0(a);else{var b=E0(a),c=a.videoData;a:{var d=a.videoData.ud;if(b.j){for(var e=g.u(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.getInfo(),l=g.$J[h.video.quality];if((!b.C||"auto"!==h.video.quality)&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.gb=d;agb(a,b.reason,cgb(a,a.videoData.gb))}if(a.L("html5_check_unstarted")?a.playerState.isOrWillBePlaying():a.isPlaying())a.jd.Ca=!1,a.playVideo()}};
v0=function(a){if(a.videoData.C&&a.videoData.C.j){var b=E0(a);a.ya&&Nbb(a.ya,b)}};
dgb=function(a){var b;return!!(a.L("html5_native_audio_track_switching")&&g.rC&&(null==(b=a.videoData.B)?0:jK(b)))};
egb=function(a){if(!dgb(a))return!1;var b;a=null==(b=a.mediaElement)?void 0:b.audioTracks();return!!(a&&1<a.length)};
ggb=function(a){var b=fgb(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.qc.getName()===b})};
fgb=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}};
Xfb=function(a){for(var b=a.videoData.j,c=g.u(Object.entries({cpn:a.videoData.clientPlaybackNonce,c:a.W.j.c,cver:a.W.j.cver})),d=c.next();!d.done;d=c.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;for(var f=g.u(Object.values(b.j)),h=f.next();!h.done;h=f.next())iSa(h.value.resource,d,e);f=void 0;null==(f=b.Z)||iSa(f,d,e)}c=a.W;d=a.videoData;b=new g.J_a(c);e=I_a({hasSubfragmentedFmp4:d.hasSubfragmentedFmp4,dF:d.dF});b.N=e;b.ra=d.maxReadAheadMediaTimeMs/1E3||b.ra;e=c.schedule;e.B.eh()===
e.policy.B?b.rb=10:b.rb=d.minReadAheadMediaTimeMs/1E3||b.rb;b.Tf=d.readAheadGrowthRateMs/1E3||b.Tf;Js&&(b.ud=41943040);b.Rl=!IEa();g.II(c)||!IEa()?(e=c.experiments,b.Ca=8388608,b.bb=524288,b.Ll=5,b.Ma=1048576,b.Fv=1.5,b.sb=4587520,Yqa()&&(b.sb=786432),b.Z*=1.1,b.Y*=1.1,b.Qc=!0,b.ud=b.Ca,b.tf=e.fb("persist_disable_player_preload_on_tv")||e.fb("persist_disable_player_preload_on_tv_for_living_room")||!1):c.B&&(b.Z*=1.3,b.Y*=1.3);g.WJ&&g.fB("crkey")&&(e="CHROMECAST/ANCHOVY"===c.j.cmodel,b.Ca=20971520,
b.bb=1572864,e&&(b.sb=812500,b.Ck=1E3,b.Yv=5,b.Ma=2097152));g.bR&&(b.Qc=!0);c.supportsGaplessAudio()||(b.pn=!1);zR&&(b.Dc=!0);b.zd=c.L("html5_peak_shave");"onesie"===d.fetchType&&c.L("html5_disable_peak_shave_for_onesie")&&(b.zd=!1);var l;e=null==(l=d.j)?void 0:mP(l);if(OS(d)){b.je=!0;b.Kn=!0;b.Jb=!0;b.Ik=!0;b.Rv=!0;if("ULTRALOW"===d.latencyClass||"LOW"===d.latencyClass&&!c.L("html5_disable_low_pipeline"))b.pp=2,b.wp=4;b.Xj=d.defraggedFromSubfragments;if(d.Hf||c.L("html5_publish_all_cuepoints"))b.Cv=
!0;g.fT(d)&&(b.gb=!1);b.Pl=g.GI(c)}d.isAd()&&(b.yj=0,b.uj=0);b.Oi=c.L("html5_enable_subsegment_readahead_v3")||c.L("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===d.latencyClass;b.B=/^rq/.test(d.clientPlaybackNonce)||c.Bc();dra()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(c.j.cmodel)&&!c.L("html5_disable_move_pssh_to_moov")&&e&&(b.Qc=!1);f=0;c.L("html5_live_use_alternate_bandwidth_window_sizes")&&(f=c.schedule.policy.j,d.isLivePlayback&&(f=g.xI(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.Sa.C=OS(d)?.5:0;if(!l.policy.D&&f&&(l=l.B,f=Math.round(f*l.resolution),f!==l.j)){h=Array(f);var m=Math.min(f,l.C?l.j:l.B),n=l.B-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.B=m%f;l.C=m===f;l.mm=!0;l.G=zUa(l)}d.isLivePlayback&&(b.zj=g.xI(c.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||
.25);WS(d)&&(b.Oi=!0,"LOW"===d.latencyClass?b.Nb=g.xI(c.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===d.latencyClass&&(b.Nb=g.xI(c.experiments,"html5_jumbo_ull_subsegment_readahead_target")),b.gq=!0);d.dc()&&(b.Nl=1.3);b.Dc=b.Dc||d.NH;b.j=g.sT(d);b.Va=d.Y||b.j&&!c.L("html5_enable_ssap_seteos");c.Bc()&&(b.La=!0);d.Y&&!e&&(b.Gv=!0);d.Y&&d.isAd()&&(b.Z*=1.6,b.Y*=1.6);rT(d)&&(b.D=d.videoId,b.Kl=!0,b.Wv=g.xI(c.experiments,"html5_offline_download_timeout_retry_limit"),d.Oy&&
0<d.Oy.length&&(b.sf=d.Oy));b.Qf=d.Ok;b.qj=YTa(c,{},d.C||void 0,XWa(d));b.Wa=US(d)&&g.cG(c);NS(d)&&(c.L("html5_support_sabr_partial_segment_eviction")&&(b.Nk=!0),c.L("html5_sabr_report_full_segment_for_partial_eviction")&&(b.Hv=!0),b.C=!0,b.Sl=c.L("html5_disable_client_resume_policy_for_sabr"),b.Uv=c.L("html5_trigger_loader_when_idle_network"),b.wv=c.L("html5_enable_platform_backpressure_with_sabr"),b.Rf=c.L("html5_consume_onesie_next_request_policy_for_sabr"),b.Dv=c.L("html5_sabr_report_next_ad_break_time"),
b.K=d.enableServerStitchedDai&&c.L("html5_enable_sabr_ssdai"),b.Gj=c.L("html5_pause_ssdai_append"),b.vn=c.L("html5_sabr_exclude_quality_ordinal_check"),b.kp=c.L("html5_log_high_res_buffer_timeline"),b.Xv=c.L("html5_gapless_sabr_btl_last_slice")&&TS(d),OS(d)&&(b.Wl=c.L("html5_disable_variability_tracker_for_live"),b.Sa=c.L("html5_sabr_use_accurate_slice_info_params")),b.Qy=c.L("html5_serve_start_seconds_seek_for_post_live_sabr"),b.qa=c.L("html5_enable_sabr_request_pipelining")&&!g.sT(d),b.xj=c.L("html5_ignore_partial_segment_from_live_readahead"));
b.G=b.C&&c.L("html5_sabr_live");qP(c.G,rP.BITRATE)&&(b.sb=NaN);if(l=g.xI(c.experiments,"html5_request_size_max_kb"))b.Ma=1024*l;c.G.D?b.Ab="; "+rP.EXPERIMENTAL.name+"=allowed":c.L("html5_enable_cobalt_tunnel_mode")&&(b.Ab="; tunnelmode=true");l=d.serverPlaybackStartConfig;(null==l?0:l.enable)&&(null==l?0:l.playbackStartPolicy)&&(b.Ig=!0,L_a(b,l.playbackStartPolicy,2));if(a.W.experiments.fb("enable_audio_description_setting")&&g.VB(g.UB(),198))for(l=a.videoData.getAvailableAudioTracks(),l=g.u(l),c=
l.next();!c.done;c=l.next())if(c=c.value,c.G){var q=c;break}q||(q=a.getAudioTrack(),q=q.qc.isDefault?void 0:q);a.BB.removeAll();a:{l=a.fd.Fu;if(c=a.videoData.videoId)if(d=l.j.get(c)){l.j.remove(c);l=d;break a}l=void 0}a.ya=new g.x_(a,a.W.schedule,b,a.videoData.j,a.videoData.C,E0(a),q,a.videoData.enableServerStitchedDai,l,a.videoData.Sa);q=a.ju&&g.II(a.W)&&a.videoData.isLivePlayback;a.ya.initialize(a.getCurrentTime(),E0(a),q);a.videoData.probeUrl&&(a.ya.Va=a.videoData.probeUrl);if(a.tq.length||a.ju)a.videoData.cotn||
F0(a,!1);kfb(a.jd,a.ya);a.Wc&&dcb(a.ya,new g.C_(a.Wc));a.zb&&(a.ya.bM(a.zb),a.jd.Ca=!1);g.tT(a.videoData)&&(a=a.ya,a.policy.Pi=a.policy.BD)};
B0=function(a){a.ya&&(a.ya.dispose(),a.ya=null,kfb(a.jd,null));FK(a)?hgb(a):PX(a)};
hgb=function(a){if(a.Qa)if(a.logger.debug("release media source"),a.Tz(),a.Qa.K)try{a.W.Bc()&&a.ma("rms",{l:"vprms",sr:FK(a),rs:HK(a.Qa)});a.Qa.clear();var b;null!=(b=a.mediaElement)&&(b.B=a.Qa);a.Qa=null}catch(c){b=new g.XB("Error while clearing Media Source in VideoPlayer: "+c.name+", "+c.message),b=TJ(b),a.handleError(b),PX(a)}else PX(a)};
PX=function(a){a.Qa&&(a.logger.debug("remove media source"),LEa(a.Qa),a.Tz(),a.Qa.dispose(),a.Qa=null)};
igb=function(a){if(a.Qa)return a.Qa.C;a.logger.debug("update media source");a:{try{g.hB()&&a.videoData.vQ()&&OEa(a.mediaElement);var b=a.mediaElement.Er(a.FE(),a.nP())}catch(d){if(fdb(a.Xk,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.Mf("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}k5a(a,b)}var c;return(null==(c=a.Er())?void 0:c.C)||null};
k5a=function(a,b,c,d){function e(f){try{jgb(a,f,c,d)}catch(h){g.BE(h),a.handleError(new RJ("fmt.unplayable",{msi:"1",ename:h&&"object"===typeof h&&"name"in h?String(h.name):void 0},1))}}
c=void 0===c?!1:c;d=void 0===d?!1:d;kgb(a);a.Qa=b;FK(a)&&"open"===HK(a.Qa)?e(a.Qa):FEa(a.Qa,e)};
kgb=function(a){if(a.ya){var b=a.getCurrentTime()-a.Mc();a.ya.seek(b,{}).Dl(function(){})}else Xfb(a)};
jgb=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;if(a.Qa&&(!b||a.Qa===b)){a.logger.debug("media source opened");var e=a.getDuration();!e&&OS(a.videoData)&&(e=25200);if(a.Qa.isView){var f=e;a.logger.debug(function(){return"Set media source duration to "+f+", video duration "+e});
f>a.Qa.getDuration()&&a.Qa.Bl(f)}else a.Qa.Bl(e);Kbb(a.ya,a.Qa,c,d);a.publish("mediasourceattached")}};
Pbb=function(a,b){agb(a,b.reason,b.j.info,b.token,b.videoId)};
M_=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d,e,f;return g.G(function(h){if(1==h.j){a.ya&&a.ya.Uw();a.ya&&a.ya.Na()&&B0(a);if(a.L("html5_enable_vp9_fairplay")&&a.Xi()&&null!=(d=a.videoData.j))for(var l in d.j)d.j.hasOwnProperty(l)&&(d.j[l].j=null,d.j[l].C=!1);a.Gc(OK(a.playerState,2048));a.publish("newelementrequired");return b?g.z(h,z0(a),2):h.Ia(2)}a.videoData.dc()&&(null==(e=a.ya)?0:e.Ha)&&((f=a.isAtLiveHead())&&MS(a.videoData)?a.seekTo(Infinity,{yd:"videoPlayer_getNewElement"}):
a.videoData.Yd&&a.ya&&(l=a.ya,l.manifest.dc&&(l.manifest.Yd||l.manifest.C||l.manifest.isPremiere?(l.seek(0,{yd:"loader_resetSqless"}),l.videoTrack.Z=!0,l.audioTrack.Z=!0,l.videoTrack.G=!0,l.audioTrack.G=!0):PQ(l.manifest)&&f_(l))));c&&a.seekTo(0);g.MF(a.playerState,8)&&a.playVideo();g.Aa(h)})};
G0=function(a,b){a.ma("hgte",{ne:+b});a.videoData.Y=!1;b&&M_(a);a.ya&&Hbb(a.ya)};
s5a=function(a,b){a.ma("newelem",{r:b});M_(a)};
lgb=function(a,b){a.Ob.D.nR();g.MF(a.playerState,32)||(a.Gc(OK(a.playerState,32,null==b?void 0:b.seekSource)),g.MF(a.playerState,8)&&a.pauseVideo(!0),a.publish("beginseeking",a));a.Sc()};
g6a=function(a,b){b=null==b?void 0:b.seekSource;g.MF(a.playerState,32)?(a.Gc(QK(a.playerState,16,32,b)),a.publish("endseeking",a)):g.MF(a.playerState,2)||a.Gc(OK(a.playerState,16,b));a.Ob.D.sR(a.videoData,a.playerState.isPaused())};
mgb=function(a,b){a.W.experiments.fb("enable_adb_handling_in_sabr")&&(a.pauseVideo(!0),a.VK(),b&&a.Mf("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))};
YZa=function(a){var b=0,c="";if(a.Wc){if(a.Wc.Fn)return"D,";b=a.Wc.lP();c=a.Wc.Mp().substring(0,4)}else a.zb&&(b=a.zb.lP(),c=a.zb.Mp().substring(0,4));return 0<b?(a="AD"+b+", ",c&&(a+=c+", "),a):""};
A0=function(a,b){a.publish("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
ngb=function(a){for(var b=g.u("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.zC.T(a.mediaElement,c.value,a.iL,a);a.W.Sl&&a.mediaElement.Qv()&&(a.zC.T(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.baa,a),a.zC.T(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.caa,a))};
h5a=function(a){g.SA(a.wL);ogb(a)||(a.wL=g.QA(function(){return ogb(a)},100))};
ogb=function(a){var b=a.mediaElement;b&&a.RK&&!a.videoData.ra&&!aH("vfp",a.Ob.timerName)&&2<=b.Rk()&&!b.isEnded()&&0<uK(b.Ch())&&a.Ob.tick("vfp");return(b=a.mediaElement)&&!a.videoData.ra&&0<b.getDuration()&&(b.isPaused()&&2<=b.Rk()&&0<uK(b.Ch())&&(aH("pbp",a.Ob.timerName)||a.Ob.tick("pbp"),!a.videoData.Ll||a.u0||b.isSeeking()||(a.u0=!0,a.publish("onPlaybackPauseAtStart"))),b=b.getCurrentTime(),h0(a.UD,b))?(i5a(a),!0):!1};
i5a=function(a){g.SA(a.wL);a.xx.stop();a.videoData.ra=!0;a.W.hp=!0;a.W.Kb=0;var b=a.Xk;if(b.videoData.B){var c=b.Da.G,d=b.videoData.B.qb;c.C.has(d)&&(c.C.delete(d),c.B=!0)}b.j.stop();pgb(a);g.MF(a.playerState,8)&&a.Gc(PK(a.playerState,65));a.ju=!1;K6a(a.wc());g.Jv(a.VN);a.publish("playbackstarted");(a=g.Xa("yt.scheduler.instance.clearPriorityThreshold"))?a():fC(0,0)};
pgb=function(a){var b=a.fd.Md(),c={},d={};!aH("pbs",a.Ob.timerName)&&AG.measure&&AG.getEntriesByName&&(AG.getEntriesByName("mark_nr")[0]?jAa("mark_nr"):jAa());b.videoId&&(c.videoId=b.videoId);b.clientPlaybackNonce&&!a.L("web_player_early_cpn")&&(c.clientPlaybackNonce=b.clientPlaybackNonce);if(a.mediaElement&&a.mediaElement.isPaused())if(a.W.experiments.fb("web_csi_via_jspb")){var e=new hA;Uk(e,6,!0);var f=new iA;Ik(f,hA,22,e);g.BA(TG)(f,a.Ob.timerName)}else d.isPausedOnLoad=!0;a.W.experiments.fb("web_csi_via_jspb")?
(e=new hA,b.B?Vk(e,1,Number(b.B.itag)):Vk(e,1,-1),f=new iA,Ik(f,hA,22,e),g.BA(TG)(f,a.Ob.timerName)):d.itag=b.B?Number(b.B.itag):-1;b.Pf&&(f=a.ZP?2:1,a.W.experiments.fb("web_csi_via_jspb")?(e=new hA,S(e,8,f),f=new iA,Ik(f,hA,22,e),g.BA(TG)(f,a.Ob.timerName)):d.preloadType=String(a.ZP?2:1));c.liveStreamMode=qgb[aT(b)];c.playerInfo=d;a.Ob.infoGel(c);if(a.ya){b=a.ya.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.C&&(c=window.performance.getEntriesByName(b.C),c.length&&(c=
c[0],b.tick("vri",c.fetchStart),b.tick("vdns",c.domainLookupEnd),b.tick("vreq",c.requestStart),b.tick("vrc",c.responseEnd))),b.B&&(c=window.performance.getEntriesByName(b.B),c.length&&(c=c[0],b.tick("ari",c.fetchStart),b.tick("adns",c.domainLookupEnd),b.tick("areq",c.requestStart),b.tick("arc",c.responseEnd))));b=b.ticks;for(var h in b)b.hasOwnProperty(h)&&a.Ob.tick(h,b[h])}};
rgb=function(a){a.wc().Cg();if(MS(a.videoData)&&Date.now()>a.zZ+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&JTa(a.videoData.j))){var b=a.wc();if(b.qoe){b=b.qoe;var c=b.provider.ea.UE(),d=g.KM(b.provider);Qdb(b,d,c);c=c.C;isNaN(c)||g.R_(b,d,"e2el",[c.toFixed(3)])}}a.L("html5_alc_live_log_rawlat")?(b=a.videoData,b=g.GI(b.U())?!0:"TVHTML5"===g.fR(b.U())?"6"===b.Nk:!1):b=g.GI(a.W);b&&a.ma("rawlat",{l:dV(a.zT,"rawlivelatency").toFixed(3)});a.zZ=Date.now()}a.videoData.B&&jK(a.videoData.B)&&(b=Rfb(a))&&
b.videoHeight!==a.GQ&&(a.GQ=b.videoHeight,agb(a,"a",cgb(a,a.videoData.gb)))};
cgb=function(a,b){if("auto"===b.j.video.quality&&jK(b.getInfo())&&a.videoData.ud)for(var c=g.u(a.videoData.ud),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.GQ&&"auto"!==d.j.video.quality)return d.getInfo();return b.getInfo()};
Mfb=function(a){if(!MS(a.videoData))return NaN;var b=0;a.ya&&a.videoData.j&&(b=OS(a.videoData)?a.ya.II.eh()||0:a.videoData.j.Ca);return(0,g.wC)()/1E3-a.Ye()-b};
tgb=function(a){a.mediaElement&&a.mediaElement.Xh()&&(a.qK=(0,g.wC)());a.W.cq?g.PA(function(){sgb(a)},0):sgb(a)};
sgb=function(a){var b;if(null==(b=a.Qa)||!b.Em()){if(a.mediaElement)try{a.vL=a.mediaElement.playVideo()}catch(d){C0(a,"err."+d)}if(a.vL){var c=a.vL;c.then(void 0,function(d){a.logger.debug(function(){return"playMediaElement failed: "+d});
if(!g.MF(a.playerState,4)&&!g.MF(a.playerState,256)&&a.vL===c)if(d&&"AbortError"===d.name&&d.message&&d.message.includes("load"))a.logger.debug(function(){return"ignore play media element failure: "+d.message});
else{var e="promise";d&&d.name&&(e+=";m."+d.name);C0(a,e);a.MW=!0;a.videoData.Ig=!0}})}}};
C0=function(a,b){g.MF(a.playerState,128)||(a.Gc(QK(a.playerState,1028,9)),a.ma("dompaused",{r:b}),a.publish("onAutoplayBlocked"))};
w0=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if(null==(b=a.videoData.C)?0:b.j){c=igb(a);var d;null==(d=a.ya)||d.resume()}else B0(a),a.videoData.gb&&(c=a.videoData.gb.pD());b=c;d=a.mediaElement.cI();c=!1;d&&null!==b&&b.resource===d.resource||(ugb(a,b),c=!0);g.MF(a.playerState,2)||(b=a.jd,b.G||!(0<b.D)||b.mediaElement&&0<b.mediaElement.getCurrentTime()||(d={yd:"seektimeline_resumeTime"},b.videoData.ra||(d.seekSource=15),b.seekTo(b.D,d)));a:{b=c;if(NS(a.videoData)){if(!a.videoData.Xi())break a}else if(!g.$S(a.videoData))break a;
if(a.mediaElement)if((d=a.videoData.K)&&a.mediaElement.Qv()){var e=a.mediaElement.Ib();if(a.Ae)if(e!==a.Ae.element)H0(a);else if(b&&"fairplay"===d.flavor&&!iB())H0(a);else break a;if(a.L("html5_report_error_for_unsupported_tvos_widevine")&&iB()&&"widevine"===d.flavor)a.Mf("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{a.Ae=new Vcb(e,a.videoData,a.W);a.Ae.subscribe("licenseerror",a.bL,a);a.Ae.subscribe("qualitychange",a.Taa,a);a.Ae.subscribe("heartbeatparams",
a.YF,a);a.Ae.subscribe("keystatuseschange",a.lq,a);a.Ae.subscribe("ctmp",a.ma,a);a.L("html5_widevine_use_fake_pssh")&&!a.videoData.isLivePlayback&&"widevine"===d.flavor&&a.Ae.Qx(new HZ(vgb,"cenc",!1));b=g.u(a.BB.keys);for(d=b.next();!d.done;d=b.next())d=a.BB.get(d.value),a.Ae.Qx(d);a.L("html5_eme_loader_sync")||a.BB.removeAll()}}else a.Mf("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return c};
ugb=function(a,b){a.Ob.tick("vta");bH("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&ofb(a.jd,a.getCurrentTime());a.mediaElement.activate(b);a.Qa&&fC(0,4);!a.videoData.ra&&a.playerState.isOrWillBePlaying()&&a.xx.start();if(dgb(a)){var c;if(b=null==(c=a.mediaElement)?void 0:c.audioTracks())b.onchange=function(){a.publish("internalaudioformatchange",a.videoData,!0)}}};
H0=function(a){a.Ae&&(a.Ae.dispose(),a.Ae=null)};
KX=function(a,b){b=void 0===b?!1:b;return MS(a.videoData)&&(a.isAtLiveHead()&&!a.playerState.isPaused()||a.Qr()||g.fT(a.videoData))?a.getCurrentTime():g.sT(a.videoData)&&a.zb?C6a(a.zb,a.getCurrentTime()):a.Ie(b)};
wgb=function(a){a.logger.debug("reattachVideoSource");a.mediaElement&&(a.Qa?(H0(a),PX(a),igb(a)):(a.videoData.gb&&a.videoData.gb.US(),a.mediaElement.stopVideo()),a.playVideo())};
xgb=function(a,b){a.W.L("html5_log_rebuffer_reason")&&a.ma("bufreason",{r:b,lact:QD()})};
gY=function(a,b,c,d,e,f,h){var l;if(null==(l=a.videoData.j)?0:l.isLive){var m=2===c.playerType?c:b,n=b.videoData.videoId,p=c.videoData.videoId;if(n&&p){l=a.wc();if(l.qoe){var q=l.qoe,r=b.cpn,t=c.cpn,v=m.videoData.zd,w=q.provider.videoData.clientPlaybackNonce,A=q.provider.videoData.videoId,C=t!==w&&p!==A;w=r!==w&&n!==A;q.reportStats();q.adCpn&&q.adCpn!==r||(q.adCpn=w?r:"",q.Y=w?n:"",q.adFormat=w?v:void 0,sY(q,2,h?4:f?2:0,t,p,e),q.reportStats(),q.adCpn=C?t:"",q.Y=C?p:"",q.adFormat=C?v:void 0,sY(q,2,
h?5:f?3:1,r,n,d),q.reportStats())}d=b.cpn;if(l.C.has(d)){if(f=l.C.get(d),c0(f,!0).send(),b0(f),d!==l.provider.videoData.clientPlaybackNonce){ueb(f);var F;null==(F=l.j)||peb(F);l.C.delete(d)}}else l.Mg=l.provider.videoData.clientPlaybackNonce,l.Mg&&l.j&&(l.C.set(l.Mg,l.j),c0(l.j).send(),b0(l.j));F=c.cpn;m=m.videoData;d=e-a.St();if(l.C.has(F)){m=l.C.get(F);var H=m.C&&isNaN(m.D)?a0(m):NaN;m=teb(m,!1);isNaN(H)||(m.G=H);m.send()}else m=Geb(l,l.provider,m,d),l.C.set(F,m),veb(m,new g.LF(OK(new g.LK,8),new g.LK)),
oeb(m),null==(H=l.j)||b0(H);l.Mg=F;a.L("html5_unify_csi_server_stitched_transition_logging")?u_a(b.cpn,c.cpn,a.videoData.clientPlaybackNonce,e,c.videoData):(l=a.videoData.clientPlaybackNonce,a=c.videoData,b=(b.cpn===l?"video":"ad")+"_to_"+(c.cpn===l?"video":"ad"),l={},a.G&&(l.cttAuthInfo={token:a.G,videoId:a.videoId}),l.startTime=e,$G(b,l),g.ZG({targetVideoId:a.videoId,targetCpn:c.cpn,isSsdai:!0},b),YG("pbs",e,b))}}};
ygb=function(a,b){if(a.W.Bc()&&a.mediaElement){var c=a.mediaElement.pc();c.omt=(a.mediaElement.getCurrentTime()+a.Mc()).toFixed(3);c.ps=a.playerState.state.toString(16);c.rt=(1E3*g.KM(a.wc().provider)).toFixed();c.e=b;a.yL[a.v0++%5]=c}try{if("timeupdate"===b||"progress"===b)return}catch(d){}a.logger.debug(function(){return"video element event "+b})};
zgb=function(a){if(a.W.Bc()){a.yL.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.u(a.yL),c=b.next();!c.done;c=b.next())c=c.value,a.ma("vpe",Object.assign({t:c.rt},c));a.yL=[];a.v0=0}};
Agb=function(a){if(g.fB("cobalt")&&g.fB("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.ma("nxdock",{d:b})}};
g5a=function(a,b,c,d,e){a.ma("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
F0=function(a,b){var c;null==(c=a.ya)||A_(c,b)};
y_=function(a){return g.Fb(a.tq,"ad")};
Ufb=function(a){KS(a.videoData,"html5_set_debugging_opt_in")&&(a=g.UB(),g.VB(0,183)||(bsa(183,!0),a.save()))};
Bgb=function(a){return g.sT(a.videoData)&&a.zb?rY(a.zb):a.videoData.Ie()};
jcb=function(a,b){a.fd.po()||(a.ma("sgap",{f:b}),a.fd.clearQueue(!1,"pe"===b))};
Zfb=function(a){return TS(a.videoData)&&a.L("html5_shorts_gapless_endstate_fix")};
g.I0=function(a,b,c,d){g.I.call(this);var e=this;this.logger=new g.RQ("App");this.jB=this.Ci=!1;this.Rs={};this.FL={};this.WB=[];this.fZ=!1;this.pQ=null;this.kZ=!1;this.mx=!0;this.mT=!1;this.DZ=this.IQ=null;this.QZ=!0;this.mediaElement=this.Bb=null;this.eR=NaN;this.nG=!1;this.ze=this.CC=this.zb=this.xe=this.screenLayer=this.AG=this.tb=this.playlist=null;this.logger.debug("constructor begin");this.config=Sra(b||{});this.webPlayerContextConfig=c;osa();b=this.config.args||{};this.W=new ZUa(b,c,c?c.canaryState:
this.config.assets.player_canary_state,d,this);g.N(this,this.W);R5a(this.W);this.W.experiments.fb("jspb_serialize_with_worker")&&Eva();this.W.experiments.fb("gzip_gel_with_worker")&&cua();this.W.experiments.fb("web_player_empty_translator")?wwa({},{}):this.W.experiments.fb("web_player_all_payloads_via_jspb")&&wwa(Cgb,Dgb);this.W.B&&!Egb&&(window.addEventListener(yR?"touchstart":"click",Z4a,{capture:!0,passive:!0}),Egb=!0);this.L("html5_onesie")&&(this.Tx=new BX(this.W),g.N(this,this.Tx));this.N1=
oB(DR(this.W)&&!0,b.enablesizebutton);this.BQ=oB(!1,b.player_wide);this.visibility=new z5a;g.N(this,this.visibility);this.L("web_log_theater_mode_visibility")&&this.jC(oB(!1,b.player_wide));this.Ci=oB(!1,b.external_list);this.events=new g.YJ(this);g.N(this,this.events);this.L("start_client_gcf")&&(kva(VD(),{xG:XC,dU:vta()}),this.C7=VD().resolve(XC),yta(this.C7));this.fda=new DT;g.N(this,this.fda);this.m8=new DT;g.N(this,this.m8);this.Nr=new q7a;d=new VXa;this.Ua=new g.NT(this,d);g.N(this,this.Ua);
this.template=new k7a(this);g.N(this,this.template);this.appState=1;this.Mi=Fgb(this);this.J=new g.JT(this,d,!0,1);g.N(this,this.J);g.N(this,d);d={};this.RN=(d.internalvideodatachange=this.faa,d.playbackready=this.iaa,d.playbackstarted=this.jaa,d.statechange=this.maa,d);this.q8=new nV(this.Ua);this.Pd=Ggb(this);d=this.L("html5_load_wasm");b=this.L("html5_allow_asmjs");if(d&&Hgb||b)q0a(this.Pd,b).then(function(h){e.W.Id=h;var l;null==(l=g.HT(e))||l.ma("wasm",{a:h.Wp})},function(h){g.BE(h);
h="message"in h&&h.message||h.toString()||"";var l;null==(l=g.HT(e))||l.ma("wasm",{e:h})});
else if(d&&!Hgb){var f;null==(f=g.HT(this))||f.ma("wasm",{e:"wasm unavailable"})}this.N$=new g.YJ(this);g.N(this,this.N$);this.Ob=new s_a(this.W,this.Pd);this.Ua.publish("csiinitialized");this.xb=Igb(this);this.xb.setPlaybackRate(this.W.D?1:Jgb(this,Number(g.QB("yt-player-playback-rate"))||1));g.VE(this.xb,this.RN,this);Pfb(this.xb);f={};this.B0=(f.airplayactivechange=this.onAirPlayActiveChange,f.airplayavailabilitychange=this.onAirPlayAvailabilityChange,f.beginseeking=this.nR,f.endseeking=this.sR,
f.internalAbandon=this.ZF,f.internalaudioformatchange=this.TF,f.internalvideodatachange=this.onVideoDataChange,f.internalvideoformatchange=this.kG,f.liveviewshift=this.Uaa,f.playbackstalledatstart=this.oca,f.progresssync=this.Dba,f.onAbnormalityDetected=this.VK,f.onLoadProgress=this.onLoadProgress,f.SEEK_COMPLETE=this.uB,f.SEEK_TO=this.dca,f.onVideoProgress=this.onVideoProgress,f.onLoadedMetadata=this.onLoadedMetadata,f.onAutoplayBlocked=this.onAutoplayBlocked,f.onPlaybackPauseAtStart=this.rba,f.playbackready=
this.tba,f.statechange=this.g0,f.connectionissue=this.WF,f.newelementrequired=this.K_,f.heartbeatparams=this.YF,f.videoelementevent=this.iL,f.drmoutputrestricted=this.onDrmOutputRestricted,f.signatureexpired=this.jca,f.nonfatalerror=this.kba,f);this.Eu=new g.YJ(this);g.N(this,this.Eu);f=10;g.II(this.W)&&(f=3);SR(this.W)&&(f=g.xI(this.W.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Fu=new EY;g.N(this,this.Fu);this.Zx=new CY(f,function(h){h!==g.HT(e,h.getPlayerType())&&h.dispose()});
g.N(this,this.Zx);this.YO=this.oJ=-1;this.SL=new g.Iv(this.template.resize,16,this.template);g.N(this,this.SL);this.Wc=new Q6a(this.Ua,this.W,this.xb);this.wq=new YX(this.W);this.Lk=new q5a(this);g.N(this,this.Lk);this.FM=new GX(this);g.N(this,this.FM);e7a(this.W.j.c);this.events.T(this.Ua,g.dJ("appapi"),this.daa);this.events.T(this.Ua,g.eJ("appapi"),this.eaa);this.events.T(this.Ua,g.dJ("appprogressboundary"),this.Cba);this.events.T(this.Ua,g.eJ("applooprange"),this.VL);this.events.T(this.Ua,"presentingplayerstatechange",
this.vk);this.events.T(this.Ua,"resize",this.Pba);this.template.Ja(mf(document,a));this.events.T(this.Ua,"offlineslatestatechange",this.mba);this.BC=Kgb(this,this.template.element);g.N(this,this.BC);this.Pd.J.U().xj&&GV(this.Pd,"offline");this.W.eb&&g.sV("ux",g.zX);this.HW=new g.Iv(this.lda,g.xI(this.W.experiments,"html5_defer_fetch_att_ms"),this);g.N(this,this.HW);this.Md().ue()&&(g.SB()&&this.Md().Ga.push("remote"),Lgb(this));this.Ob.tick("fs");Mgb(this);this.W.eb&&GV(this.Pd,"ux",!0);g.BR(this.Pd.J.U())&&
GV(this.Pd,"embed");this.L("web_player_sentinel_is_uniplayer")||g.BE(new g.XB("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.L("web_player_sentinel_yt_experiments_sync");f=g.TA("web_player_sentinel_yt_experiments_sync");a!==f&&g.BE(new g.XB("b/195699950",{yt:a,player:f}));c||g.BE(new g.XB("b/179532961"));this.L2=Ngb(this);if(c=g.xI(this.W.experiments,"html5_block_pip_safari_delay"))this.eP=new g.Iv(this.WW,c,this),g.N(this,this.eP);bB=this.W.Dc;c=g.xI(this.W.experiments,
"html5_performance_impact_profiling_timer_ms");0<c&&(this.r0=new g.ng(c),g.N(this,this.r0),this.events.T(this.r0,"tick",function(){e.s0&&Ogb.yr("apit",e.s0);e.s0=Ogb.Hs()}));
this.Ua.publish("applicationInitialized");this.logger.debug("constructor end")};
Ngb=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(c={n:c.name,m:c.message},(a.tb||a.xb).wc().Rd("player.exception",QJ(c)))}
CE.subscribe("handleError",b);zA.push(b);return function(){CE.unsubscribe("handleError",b);var c=zA.indexOf(b);-1!==c&&zA.splice(c,1)}};
Igb=function(a){var b=new g.ES(a.W,a.config.args);a.Ua.publish("initialvideodatacreated",b);return a.Qz(1,b)};
Pgb=function(a,b){if(a.xb!==b){b.getVideoData().autonavState=a.xb.getVideoData().autonavState;WE(a.xb,a.RN,a);var c=a.xb.getPlaybackRate();a.xb.dispose();a.xb=b;a.xb.setPlaybackRate(c);g.VE(b,a.RN,a);Lgb(a)}};
Ggb=function(a){var b="",c=i7a(a);0===c.indexOf("//")&&(c=a.W.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.BE(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new $_a(a.Ua,b);Qgb(a,b);return b};
Qgb=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.C=c};
Fgb=function(a){if(a.W.storeUserVolume){a=g.QB("yt-player-volume")||{};var b=a.volume;a={volume:isNaN(b)?100:g.ze(Math.floor(b),0,100),muted:!!a.muted}}else a={volume:100,muted:a.W.mute};return a};
J0=function(a){a.mediaElement=a.W.deviceIsAudioOnly?new g.$U(g.yf("AUDIO")):FX.pop()||new g.$U(g.yf("VIDEO"));g.N(a,a.mediaElement);a.tb&&a.tb.setMediaElement(a.mediaElement);try{a.W.ud?(a.CC&&a.events.Pc(a.CC),a.CC=a.events.T(a.mediaElement,"volumechange",a.cba)):(a.mediaElement.cC(a.Mi.muted),a.mediaElement.setVolume(a.Mi.volume/100))}catch(e){a.Dg("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(e&&"object"===typeof e&&"message"in e&&"string"===typeof e.message&&e.message.replace(/[;:,]/g,
"_")));return}g.MB(a.Eu);Rgb(a);var b=a.template,c=a.mediaElement.Ib();b.Fc=c;b.bK=!1;b.Fc.parentNode||Df(b.Nz,b.Fc,0);b.DL=new g.Fs(0,0,0,0);p7a(b);GY(b);c=b.Fc;g.Qv(c,"video-stream");g.Qv(c,g.FY.MAIN_VIDEO);var d=b.app.U();d.Ck&&c.setAttribute("data-no-fullscreen","true");d.L("html5_local_playsinline")?"playsInline"in UJ()&&(c.playsInline=!0):d.Rl&&(c.setAttribute("webkit-playsinline",""),c.setAttribute("playsinline",""));d.bq&&b.Fc&&b.T(c,"click",c.play,c);try{a.mediaElement.activate()}catch(e){a.Dg("html5.missingapi",
2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(e&&"object"===typeof e&&"message"in e&&"string"===typeof e.message&&e.message.replace(/[;:,]/g,"_")))}};
OX=function(a,b,c){if(a.tb!==b){a.logger.debug(function(){return"start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId});
var d=null;if(a.tb){d=a.tb.getPlayerState();a.logger.debug("set presenting player, destroy modules");HV(a.Pd,3);K0(a,"cuerangesremoved",a.tb.Zk());a.Lk&&!b.isGapless()&&a.tb.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var e=FK(b)&&FK(a.tb);a.L("html5_rebase_video_to_ad_timeline")&&a.Ob.ov("iv_s");Sgb(a,e)}1===b.getPlayerType()&&Pgb(a,b);Tgb(a,b);a.tb=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.VE(b,a.B0,a);if(b.nK())Ugb(a,"setPresenting",!1);else{a.onVideoDataChange("newdata",
b,b.getVideoData());d&&!g.WEa(d,b.getPlayerState())&&a.g0(new g.LF(b.getPlayerState(),d));c=c&&a.L("html5_player_preload_ad_fix")&&1===b.getPlayerType();if(b.uq.j&&!c)a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().B)&&c.video)&&a.Ua.Rm("onPlaybackQualityChange",c.quality);K0(a,"cuerangesadded",a.tb.Zk());c=b.getPlayerState();g.MF(c,2)?Vgb(a):g.MF(c,8)?b.playVideo():b.nF()&&b.pauseVideo();if(2===b.getPlayerType()){var f;b.getVideoData().dW=null==(f=g.HT(a,1))?void 0:f.getVideoData().clientPlaybackNonce}2!==
b.getPlayerType()||a.Hf()||(f=b.getVideoData(),a.xb.ly(f.clientPlaybackNonce,f.zd||"",f.breakType||0,f.Qf));a.logger.debug("finish set presenting player")}}};
Vgb=function(a){if(!Wgb(a)){var b=a.xb.Je();b&&(b=b.qE(),b instanceof Promise&&b.catch(function(){}));
L0(a,RK(a.getPlayerStateObject()))}};
Rgb=function(a){var b=a.mediaElement;rEa()?a.Eu.T(b,"webkitpresentationmodechanged",a.aca):window.document.pictureInPictureEnabled&&(a.Eu.T(b,"enterpictureinpicture",function(){a.fC(!0)}),a.Eu.T(b,"leavepictureinpicture",function(){a.fC(!1)}));
kB&&(a.Eu.T(b,"webkitbeginfullscreen",function(){a.Vm(3)}),a.Eu.T(b,"webkitendfullscreen",function(){a.Vm(0)}))};
Tgb=function(a,b){var c=b.getPlayerType();if(b!==a.xb&&b!==a.Rs[c]){var d;null==(d=a.Rs[c])||d.dispose();a.Rs[c]=b}};
Sgb=function(a,b){b=void 0===b?!0:b;a.logger.debug("start clear presenting player");var c;if(c=a.ze){c=a.ze;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c&&(a.Jj(),J0(a));a.tb&&(a.tb.Jj(!b),WE(a.tb,a.B0,a),1!==a.tb.getPlayerType()&&a.tb.dispose());a.tb=null;a.logger.debug("finish clear presenting player")};
g.HT=function(a,b){return b?1===b?a.xb:a.getVideoData().enableServerStitchedDai&&2===b?a.getVideoData().enablePreroll?a.Rs[2]||a.tb:a.tb:g.sT(a.getVideoData())&&2===b?a.Rs[2]||a.tb:a.Rs[b]||null:a.tb};
Xgb=function(a,b,c,d){a=a.Qz(b,c,d);Pfb(a);return a};
M0=function(a,b){return a.Hf(b)?a.xb:b};
N0=function(a,b){var c=a.tb;return c&&b===a.xb&&a.Hf(b)&&a.Hf(c)?c:b};
$gb=function(a){a.logger.debug("start application playback");if(a.xb.getPlayerState().isError())a.logger.debug("start application playback done, player in error state");else{var b=O0(a);a.Md().isLoaded();b&&a.Fq(6);Ygb(a);j0a(a.Pd)||Zgb(a)}};
Zgb=function(a){if(!O0(a)){var b=IV(a.Pd);b&&!b.created&&a0a(a.Pd)&&(a.logger.debug("reload ad module"),b.create())}};
Ygb=function(a){a.logger.debug("start presenter playback");var b=a.getVideoData(),c=a.Pd;j0a(c)||c.DO();!Hgb&&c.J.L("html5_allow_asmjs")&&p0a(c);GV(c,"embed");GV(c,"inline_preview");GV(c,"kids");GV(c,"remote");GV(c,"miniplayer");GV(c,"offline");GV(c,"unplugged");GV(c,"ypc",!1,!0);GV(c,"ypc_clickwrap",!1,!0);GV(c,"yto",!1,!0);GV(c,"webgl",!1,!0);k0a(c)||(GV(c,"captions",!0),GV(c,"endscreen"),c.OI(),GV(c,"creatorendscreen",!0));c.oX();a.Ua.publish("videoready",b)};
P0=function(a){a=a.Md();a.ue();return pT(a)};
Mgb=function(a){a.logger.debug("start prepare initial playback");a.LO();var b=a.config.args;J0(a);var c=a.Md();a.Ua.Cc("onVolumeChange",a.Mi);if(b&&x_a(b)){var d=PR(a.W);d&&!a.Ci&&(b.fetch=0);var e=g.BR(a.W);e&&!a.Ci&&(b.fetch=0);Q0(a,b);g.BR(a.W)&&a.Ob.tick("ep_pr_s");if(d&&!a.Ci)R0(a);else if(e&&!a.Ci)ahb(a);else if(!c.ue())a.playlist.onReady(function(){S0(a)})}OX(a,a.xb);
g.MF(a.xb.getPlayerState(),128)||(b=qEa(!a.W.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.ue()&&P0(a)&&(a.W.wi||a.W.Oi)?T0(a):c.VC?a.Ua.mutedAutoplay():g.QB("yt-player-playback-on-reload")?(g.iC("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.W.Ca}),g.PB("yt-player-playback-on-reload",!1),T0(a)):YR(a.W)||bhb(a),g.RR(a.W)||"MWEB"===g.fR(a.W)?
(g.bC(g.dC(),function(){U0(a)}),g.bC(g.dC(),function(){FAa()})):(U0(a),FAa()),a.logger.debug("finish prepare initial playback"))};
U0=function(a){if(!a.L("use_rta_only_for_player"))if(a.L("fetch_att_independently"))g.Jv(a.HW);else{var b=a.getVideoData().botguardData;b&&g.BPa(b,a.W,a.getVideoData().er||"")}};
bhb=function(a){a.logger.debug("start initialize to CUED mode");a.Ua.publish("initializingmode");a.Fq(2);a.L("embeds_web_enable_defer_loading_remote_js")&&g.TR(a.W)?g.bC(g.dC(),function(){GV(a.Pd,"remote")}):GV(a.Pd,"remote");
GV(a.Pd,"miniplayer");a.logger.debug("initialized to CUED mode")};
T0=function(a){a.logger.debug("start initialize application playback");if(g.MF(a.xb.getPlayerState(),128))return!1;var b=a.xb.getVideoData();P0(a)&&a.W.Oi&&(FX.length&&a.jB?(V0(a,{muted:!1,volume:a.Mi.volume},!1),W0(a,!1)):FX.length||a.Mi.muted||(V0(a,{muted:!0,volume:a.Mi.volume},!1),W0(a,!0)));P0(a)&&g.BR(a.W)&&b.mutedAutoplay&&(V0(a,{muted:!0,volume:a.Mi.volume},!1),W0(a,!0));b.QW&&V0(a,{muted:!0,volume:a.Mi.volume},!1);chb(a,1,b,!1);a.Ua.publish("initializingmode");OX(a,a.xb);a.Fq(3);var c;if(!(c=
!a.W.qn)){if(c=a.ze){c=a.ze;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c=c&&a.fZ}c&&(a.Jj(),J0(a),a.xb.setMediaElement(a.mediaElement));Yfb(a.xb);if(g.MF(a.xb.getPlayerState(),128))return!1;b.Ll||L0(a,3);return a.fZ=!0};
O0=function(a){a=QT(a.Pd);return!!a&&a.loaded};
dhb=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 1E-6>=Math.abs(b-c)||1E-6>=Math.abs(b-d)||b>=c&&b<=d};
ghb=function(a){var b,c=null==(b=g.HT(a))?void 0:b.ya;a.tb&&TS(a.getVideoData())&&c&&c.policy.Va&&(b=g.xI(a.U().experiments,"html5_gapless_loop_seek_offset_in_milli"),b=1E3*ehb(a)-b,a.L("html5_gapless_new_slr")?(a=a.FM,fhb(a.app,"gaplessshortslooprange"),b=new g.cJ(0,b,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(a=a.app.Zc())&&a.addCueRange(b)):a.setLoopRange({startTimeMs:0,endTimeMs:b,type:"shortsLoop"}))};
hhb=function(a){if(!(g.MF(a.xb.getPlayerState(),64)&&a.Md().isLivePlayback&&5E3>a.Bb.startTimeMs)){if("repeatChapter"===a.Bb.type){var b,c=null==(b=hYa(a.yb()))?void 0:b.Di(),d;b=null==(d=a.getVideoData())?void 0:d.Dk;c instanceof g.WV&&b&&(d=b[nW(b,a.Bb.startTimeMs)],c.HG(0,d.title));isNaN(Number(a.Bb.loopCount))?a.Bb.loopCount=0:a.Bb.loopCount++;1===a.Bb.loopCount&&a.Ua.jb("innertubeCommand",a.getVideoData().ofa)}c={yd:"application_loopRangeStart"};if("clips"===a.Bb.type||"shortsLoop"===a.Bb.type)c.seekSource=
58;a.xb.seekTo(.001*a.Bb.startTimeMs,c)}};
Jgb=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};
ehb=function(a,b){b=g.HT(a,b);if(!b)return 0;b=M0(a,b);return X0(a,KX(b),b)};
X0=function(a,b,c){if(a.Hf(c)){c=c.getVideoData();if(Y0(a))c=b;else{a=a.Wc;for(var d=g.u(a.B),e=d.next();!e.done;e=d.next())if(e=e.value,c.md===e.md){b+=e.lc/1E3;break}d=b;a=g.u(a.B);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.md===e.md)break;var f=e.lc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Vd/1E3;else break}c=d}return c}return b};
ihb=function(a,b){if(3===a.getPresentingPlayerType())return RK(QT(a.Pd).De);if((a.getVideoData().enableServerStitchedDai||g.sT(a.getVideoData()))&&2===b){var c,d;return(null==(c=a.xe)?0:c.Dm(a.getCurrentTime()))||(null==(d=a.zb)?0:d.Dm())?a.oJ:-1}return 2!==b||a.Hf()?a.oJ:a.YO};
Lgb=function(a){a.logger.debug("reset for new application playback");Z0(a);a.setLoopVideo(!1);a.setLoopRange(null);a.Ua.publish("legacyadtrackingpingreset");a.FL={};a.WB=[];v_a(a.Ob);if(a.xe){var b=a.xe,c=a.xb;c.getPlayerType();jY(b,!1);h6a(b);i6a(b);b.ea=c}b=a.Wc;a=a.xb;1!==a.getPlayerType()&&vY(b,"invalidParentVideoPlayerType");zY(b,!1);c7a(b);b.j=a};
R0=function(a){var b=jhb();if(b)if(!b.list)a.FI();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.qV(a.playlist).videoId||(b.index=a.playlist.index));B_a(a.playlist,b);a.AG&&khb(a,a.AG)}else a.AG=null};
ahb=function(a,b){var c=(b?b:a.Md()).vZ;a.Ob.tick("ep_pr_r");if(null!=c&&(B_a(a.playlist,c),a.mT))a.playlist.onReady(function(){S0(a,b)})};
Q0=function(a,b){a.playlist&&(g.vb(a.playlist),a.playlist=null);b&&(a.Ci&&(b.fetch=0),a.playlist=new w_a(a.W,b))};
lhb=function(a){var b,c=Number(null==(b=a.getVideoData().progressBarEndPosition)?void 0:b.utcTimeMillis)/1E3;!isNaN(c)&&(b=a.Ye())&&(b-=a.getCurrentTime(),c=1E3*(c-b),b=a.FL.progressEndBoundary,(null==b?void 0:b.start)!==c&&(b&&a.GG([b]),c=new g.cJ(c,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),a.xb.addCueRange(c),a.FL.progressEndBoundary=c))};
L0=function(a,b){a.logger.debug(function(){return"set external state "+b});
if(a.tb){var c=a.tb.getPlayerType();if(2===c&&!a.Hf()){a.YO!==b&&(a.YO=b,a.Ua.jb("onAdStateChange",b));return}if(2===c&&a.Hf()||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.tb)?0:d.Ot())&&!WR(a.W)){a.playVideo();return}}a.oJ!==b&&(a.oJ=b,a.Ua.Rm("onStateChange",b))};
mhb=function(a,b,c,d,e){d=void 0===d?Infinity:d;e=void 0===e?0:e;a.logger.debug(function(){return"Enqueuing playerType="+c+" at time="+d+"\n        videoId="+b.videoId});
c=c||a.tb.getPlayerType();var f=chb(a,c,b,!0);f||(f=Xgb(a,c,b));if(2===c&&a.xb){var h=f.getVideoData();a.xb.ly(h.clientPlaybackNonce,h.zd||"",h.breakType||0,h.Qf)}a.hJ(f,d,0,e)};
nhb=function(a,b,c,d,e){var f="";f=a.W.L("html5_autonav_autoplay_in_preload_key")?$0(a,c,b):a1(a,c,b.videoId,b.md);a.logger.debug(function(){return"start preload video "+f+", trigger="+e});
var h="";if(a.tb&&(h=a.W.L("html5_autonav_autoplay_in_preload_key")?$0(a,a.tb.getPlayerType(),a.tb.getVideoData()):a1(a,a.tb.getPlayerType(),a.tb.getVideoData().videoId,a.tb.getVideoData().md),f===h))return g.MX(a.tb,!0),b.dispose(),null;b.Pf=!0;b=Xgb(a,c,b);1===c&&SR(a.W)||g.MX(b,!0);a.Zx.set(f,b,d||3600);return b};
ohb=function(a,b,c,d){var e=sB(c);return a1(a,b,e,d,"1"===c.autonav||!0===c.autonav,"1"===c.autoplay||!0===c.autoplay||1===c.autoplay)};
$0=function(a,b,c){return a1(a,b,c.videoId,c.md,c.isAutonav,c.Eq)};
a1=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;b=b+"_"+c+"_"+d;a.W.L("html5_autonav_autoplay_in_preload_key")&&(b+="_"+ +e+ +f);return b};
chb=function(a,b,c,d){var e=a.W.L("html5_autonav_autoplay_in_preload_key")?$0(a,b,c):a1(a,b,c.videoId,c.md);var f=a.Zx.get(e);if(!f||f.Na())return null;a.Zx.remove(e);if(g.MF(f.getPlayerState(),128))return f.dispose(),null;if(f===g.HT(a,b))return a.Ob.infoGel({isCacheHit:!0}),f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;1===b&&Z0(a);d||OX(a,f,!0);a.Ob.infoGel({isCacheHit:!0});return f};
b1=function(a,b,c){c=g.HT(a,c);b&&c===a.xb&&(c.getVideoData().Oi=!0)};
c1=function(a,b,c){c=void 0===c?1:c;a.logger.debug(function(){return"start cue video, vid "+b.videoId+", type "+c});
if(b.ue()){var d=a.Qz(c,b);a.cancelPlayback(4,c);OX(a,d);Pfb(d);if(1===c){a.Fq(1);if(g.BR(a.W)&&!FXa(b)){b.dispose();g.vb(g.HT(a,c));return}bhb(a)}a.logger.debug("finish cue video")}else a.logger.debug(function(){return"invalid VideoData in cueVideo"}),b.dispose(),g.vb(g.HT(a,c)),CXa(a.Md())&&2===c&&delete a.Rs[2]};
phb=function(a,b,c,d,e){b=YXa(b,c,d,e);(c=g.BR(a.W)&&!a.W.qa)&&!a.Ci&&(b.fetch=0);Q0(a,b);g.BR(a.W)&&a.Ob.tick("ep_a_pr_s");if(c&&!a.Ci)c=a.Md(),E_a(c,b).then(function(f){a.mT=!0;ahb(a,f)});
else a.playlist.onReady(function(){S0(a)});
g.BR(a.W)&&a.Ob.tick("ep_a_pr_r")};
S0=function(a,b){var c=g.BR(a.W)&&!a.W.qa,d=c&&b?b:g.qV(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.xl&&(a.W.wi||a.W.Oi)||!a.mx?(b=b.Oi,d=a.Cu(d,1),b&&b1(a,d)):c1(a,d,1));g.BR(a.W)&&a.Ob.tick("ep_p_l");a.mT=!1;a.Ua.Cc("onPlaylistUpdate")};
Wgb=function(a){if(a.playlist&&g.GR(a.W)&&a.BE()){var b=a.W.L("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
khb=function(a,b){var c=g.Xa(b);c?((b=jhb())&&b.list&&c(),a.AG=null):a.AG=b};
jhb=function(){var a=g.Xa("yt.www.watch.lists.getState");return a?a():null};
qhb=function(a,b,c,d,e,f,h){b={id:b,namespace:null!=h?h:"appapi"};"chapter"===f?(b.style=bJ.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=bJ.AD_MARKER:(b.style=bJ.TIME_MARKER,b.color=e),b.visible=!0);a.vz([new g.cJ(1E3*c,1E3*d,b)],1);return!0};
rhb=function(a,b,c,d,e,f){f=void 0===f?!0:f;var h=a.Ye();if(!h)return f&&a.getVideoData().isLivePlayback&&a.WB.push({id:b,efa:c,dfa:d}),!1;f=h-a.getCurrentTime();return qhb(a,b,c-f,d-f,void 0,void 0,e)};
shb=function(a,b){a.WB=g.Ot(a.WB,function(f){return f.id!==b});
for(var c=a.xb.Zk(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.xb.removeCueRange(e),K0(a,"cuerangesremoved",[e]),!0}return!1};
fhb=function(a,b,c){var d=g.HT(a,c);d&&(b=d.Ah.nf(b),c&&a.getPresentingPlayerType()!==c||K0(a,"cuerangesremoved",b))};
thb=function(a){var b=(0,g.wC)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
V0=function(a,b,c){a.W.Va&&(a.Mi=b,b.muted||W0(a,!1),c&&a.W.storeUserVolume&&!a.W.ud&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.PB("yt-player-volume",c),g.PB("yt-player-volume",c,2592E3))),uhb(a),c=g.WJ&&a.mediaElement&&!a.mediaElement.Ef(),a.W.ud&&!c||a.Ua.Cc("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.W.storeUserVolume}))};
uhb=function(a){var b=a.getVideoData();if(!b.Kk){b=a.W.ud?1:AXa(b);var c=a.mediaElement;c.cC(a.Mi.muted);try{c.setVolume(a.Mi.volume*b/100)}catch(d){g.BE(new g.XB("b183742307","multiplier: "+b+", volume: "+a.Mi.volume))}}};
W0=function(a,b){b!==a.jB&&(a.jB=b,a.Ua.Cc("onMutedAutoplayChange",b))};
g.GT=function(a){return a.jB&&a.getVideoData().mutedAutoplay};
vhb=function(a){var b=yB(!0);return b&&(b===a.template.element||a.mediaElement&&b===a.mediaElement.Ib())?b:null};
xhb=function(a,b){var c=window.screen&&window.screen.orientation;if((a.W.L("lock_fullscreen2")||a.W.Z)&&c&&c.lock&&(!g.WJ||!whb))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.nG||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](function(){});
a.nG=!0}}else a.nG&&(a.nG=!1,c.unlock())};
K0=function(a,b,c){a.Ua.publish(b,c);var d=g.II(a.W)||g.HR(a.W)||g.cG(a.W);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Ua.jb(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}}))}};
d1=function(a,b,c,d,e,f){c=void 0===c?!0:c;var h=g.HT(a,e);h&&(2===h.getPlayerType()&&!a.Hf(h)||g.fT(h.getVideoData()))||(3===a.getPresentingPlayerType()?QT(a.Pd).XF("control_seek",b,c):(h===a.xb&&a.Bb&&!dhb(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e,f)))};
Ugb=function(a,b,c){c&&(a.Jj(),J0(a));c=g.HT(a);c.Rd(new RJ("staleconfig",{reason:b}));var d=a.getVideoData(),e={};e.video_id=d.videoId;e.adformat=d.adFormat;d.isLivePlayback?OS(d)&&g.GI(a.W)&&(e.live_utc_start=c.Ye(),e.resume="1"):(e.start=c.getCurrentTime(),e.resume="1");d.Ha&&(e.vvt=d.Ha);d.G&&(e.vss_credentials_token=d.G,e.vss_credentials_token_type=d.fn);d.oauthToken&&(e.oauth_token=d.oauthToken);d.vn&&(e.force_gvi=d.vn);e.autoplay=1;e.reload_count=d.Sb+1;e.reload_reason=b;d.HC&&(e.unplugged_partner_opt_out=
d.HC);d.Pi&&(e.ypc_is_premiere_trailer=d.Pi);d.playerParams&&(e.player_params=d.playerParams);a.loadVideoByPlayerVars(e,void 0,!0);"signature"===b&&a.xe&&Zgb(a)};
yhb=function(a,b){a.Md().autonavState=b;g.PB("yt-player-autonavstate",b);a.Ua.publish("autonavchange",b)};
zhb=function(a){var b=a.getVideoData().Kk,c=a.W.rb,d=a.isInline()&&!a.getVideoData().IZ,e=a.mediaElement;b||c||d?e.NO():(e.QO(),V0(a,a.Mi))};
Kgb=function(a,b){return a.W.L("web_player_embeds_visibility_as_feature")?null:a.W.L("html5_enable_embedded_player_visibility_signals")&&g.BR(a.W)?new sU(b):null};
Z0=function(a){var b=IV(a.yb());b&&b.created&&(a.logger.debug("reset ad module"),b.destroy())};
Y0=function(a){return a.getVideoData().enableServerStitchedDai&&!!a.xe};
Ahb=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.u(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=Ms(a,d);b.hidden=!!a.hidden};
i7a=function(a){if(a.webPlayerContextConfig){var b=a.webPlayerContextConfig.trustedJsUrl;return b?ax(b).toString():a.webPlayerContextConfig.jsUrl}return a.config.assets&&a.config.assets.js?a.config.assets.js:""};
Bhb=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
Chb=function(){var a=null;rra().then(function(b){return a=b},function(b){return a=Bhb(b)});
return a};
Dhb=function(){var a=Bg(1E3,"NO_BID");return lg(jca([rra(),a]).Dl(Bhb),function(){a.cancel()})};
e1=function(a){return a.je?g.VB(g.UB(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
f1=function(a){this.player=a;this.C=this.j=1};
Ghb=function(a,b,c,d,e){b.client||(b.client={});a.player.U().L("h5_remove_url_for_get_ad_break")||(b.client.originalUrl=c);var f=JA(c),h=g.wn(c)?!1:!0;(f||h)&&"undefined"!==typeof Intl&&(b.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);h=g.wn(c)?!1:!0;if(f||h||""!==d){var l={};c=EA(MA(d)).split("&");var m=new Map;c.forEach(function(n){n=n.split("=");1<n.length&&m.set(n[0].toString(),decodeURIComponent(n[1].toString()))});
m.has("bid")&&(l.bid=m.get("bid"));l.params=[];Ehb.forEach(function(n){m.has(n)&&(n={key:n,value:m.get(n)},l.params.push(n))});
Fhb(a,l);b.adSignalsInfo=l}b.client.unpluggedAppInfo||(b.client.unpluggedAppInfo={});b.client.unpluggedAppInfo.enableFilterMode=!1;a=e.j.cosver;null!=a&&"cosver"!==a&&(b.client.osVersion=a);a=e.j.cplatform;null!=a&&"cplatform"!==a&&""!==a&&(b.client.platform=a);a=e.j.cmodel;null!=a&&"cmodel"!==a&&(b.client.deviceModel=a);a=e.j.cplayer;null!=a&&"cplayer"!==a&&(b.client.playerType=a);e=e.j.cbrand;null!=e&&"cbrand"!==e&&(b.client.deviceMake=e);b.user||(b.user={});b.user.lockedSafetyMode=!1};
Jhb=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 Hhb&&(f.clientName=Hhb[d[0]]),d[1]in Ihb&&(f.platform=Ihb[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};
Lhb=function(a){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in Khb))return!1;a=a.split(RegExp("[:&]"));var b=Khb.FLAG_AUTO_CAPTIONS_DEFAULT_ON,c="f"+(1+Math.floor(b/31)).toString();b=1<<Math.floor(b%31);for(var d=0,e=a.length;d<e;d++){var f=a[d].split("=");if(f[0]===c&&parseInt("0x"+f[1],16)&b)return!0}return!1};
Fhb=function(a,b){if(g.II(a.player.U())&&a.player.U().L("add_ifa_to_tvh5_requests")){a=g.xA("INNERTUBE_CONTEXT");var c,d;(null==a?0:null==(c=a.adSignalsInfo)?0:c.advertisingId)&&"undefined"!==typeof(null==a?void 0:null==(d=a.adSignalsInfo)?void 0:d.limitAdTracking)&&(b.advertisingId=a.adSignalsInfo.advertisingId,b.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",b.limitAdTracking=a.adSignalsInfo.limitAdTracking)}};
Thb=function(a,b,c,d,e){var f=c.DRIFT_FROM_HEAD_MS&&!Number.isNaN(c.DRIFT_FROM_HEAD_MS)?Math.trunc(c.DRIFT_FROM_HEAD_MS):0,h=Mhb.exec(b);h=null!=h&&2<=h.length?h[1]:"";var l=Nhb.test(b),m=Ohb.exec(b);m=null!=m&&2<=m.length?m[1]:"";var n=Phb.exec(b);n=null!=n&&2<=n.length&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=Qhb.exec(b),q=null!=p&&2<=p.length?p[1]:"0",r=LR(a.player.U().Ha);p=a.player.getVideoData(1);var t=g.jG(p.Ca,!0),v="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";Ghb(a,t,b,v.toString(),a.player.U());
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:19879,autonavState:e1(a.player.U())};d&&(d={},Jhb(d,c.YT_REMOTE)&&(w.mdxContext=d));if(d=Rhb.includes(r)?void 0:g.eB("PREF")){for(var A=d.split(RegExp("[:&]")),C=0,F=A.length;C<F;C++){var H=A[C].split("=");if(("SML"===H[0].toUpperCase()||"GSML"===H[0].toUpperCase())&&1<H.length&&"TRUE"===H[1].toUpperCase()){t.user.lockedSafetyMode=!0;
break}}w.autoCaptionsDefaultOn=Lhb(d)}b=Shb.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&m&&(t.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:w};h={adBlock:Math.trunc(c.AD_BLOCK),params:h,breakIndex:n,breakPositionMs:q,clientPlaybackNonce:c.CPN,topLevelDomain:r,isProxyAdTagRequest:l,context:t,adSignalsInfoString:EA(MA(v.toString())),overridePlaybackContext:b};void 0!==e&&(h.cueProcessedMs=Math.round(e).toString());m&&(h.videoId=m);c.LIVE_TARGETING_CONTEXT&&(h.liveTargetingParams=
c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(h.breakLengthMs=Math.trunc(1E3*c.AD_BREAK_LENGTH).toString());f&&(h.driftFromHeadMs=f.toString());h.currentMediaTimeMs=Math.round(1E3*a.player.getCurrentTime(1));(a=IXa(p))&&(h.getAdBreakContext=a);return h};
Uhb=function(){f1.apply(this,arguments)};
Vhb=function(a,b,c,d,e){var f=c.zw;c=c.Wd;var h=a.player.U().zj,l={AD_BLOCK:e,AD_BREAK_LENGTH:f?f.Bh:0,AUTONAV_STATE:e1(a.player.U()),CA_TYPE:"image",CPN:a.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.Dr(),LACT:QD(),LIVE_INDEX:f?a.C++:1,LIVE_TARGETING_CONTEXT:f&&f.context?f.context:"",MIDROLL_POS:c?Math.round(c.start/1E3):0,MIDROLL_POS_MS:c?Math.round(c.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.ob().Vh().height,P_W:a.player.ob().Vh().width,YT_REMOTE:h?h.join(","):
""},m=sqa(rqa);Object.keys(m).forEach(function(n){null!=m[n]&&(l[n.toUpperCase()]=m[n].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};LA(b)&&(d.sts="19879",(a=a.player.U().forcedExperiments)&&(d.forced_experiments=a));return IA(g.cv(b,l),d)};
Whb=function(a,b){var c=a.player.U(),d,e=null==(d=a.player.getVideoData(1))?void 0:d.oauthToken;return g.$R(c,e).then(function(f){if(f&&KA()){var h=WT();XT(h,f)}return g.eH(a.player.wm(h),b,"/youtubei/v1/player/ad_break").then(function(l){return l})})};
Xhb=function(a){this.Oa=a};
Yhb=function(a){this.J=a};
Zhb=function(a){this.Oa=a};
aib=function(a){g.I.call(this);this.Zg=a;this.F4=$hb(this)};
$hb=function(a){var b=new dBa(a.Zg.hd);g.N(a,b);a=g.u([new Xhb(a.Zg.Oa),new Yhb(a.Zg.J),new Zhb(a.Zg.Oa),new $Aa(a.Zg.ll,a.Zg.Bo),new bBa,new jBa(a.Zg.df,a.Zg.Yk,a.Zg.Oa),new aBa,new YAa]);for(var c=a.next();!c.done;c=a.next())eBa(b,c.value);a=g.u(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())sH(b,c.value,function(){});
return b};
g1=function(a){var b=a.Ra,c=a.Aa;a=a.Ne;var d={Jp:new mEa(b.get(),c),Aa:c};return{Qb:new eKa(c,a,b,d),context:d}};
h1=function(a,b,c,d,e){g.I.call(this);this.J=a;this.B=b;this.Ea=c;this.Ra=d;this.Bf=e;this.listeners=[];var f=new KB(this);g.N(this,f);f.T(a,"internalAbandon",this.ZF);this.addOnDisposeCallback(function(){g.MB(f)})};
i1=function(a){this.J=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.G=!0;this.B=this.D=!1;this.adFormat=null;this.C="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
bib=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.C="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.D=!1;a.B=!1};
cib=function(a,b){a=g.u(b);for(b=a.next();!b.done;b=a.next())if((b=b.value.renderer)&&(b.instreamVideoAdRenderer||b.linearAdSequenceRenderer||b.sandwichedLinearAdRenderer||b.instreamSurveyAdRenderer)){YG("ad_i");g.ZG({isMonetized:!0});break}};
j1=function(a){var b=a.J.getVideoData(1);if(!a.J.L("html5_no_video_to_ad_on_preroll")||null!=b&&b.ra)a.B=!1,b={},a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId}),$G("video_to_ad",b)};
FFa=function(a){a.B=!1;var b={};a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId});$G("ad_to_video",b);dib(a)};
dib=function(a){if(a.D)if(a.J.L("html5_no_video_to_ad_on_preroll_reset")&&"AD_PLACEMENT_KIND_START"===a.C&&"video_to_ad"===a.actionType)WG("video_to_ad");else if(a.J.L("web_csi_via_jspb")){var b=new hA;b=S(b,8,2);var c=new iA;c=S(c,21,eib(a.C));c=S(c,7,4);b=Ik(c,hA,22,b);b=S(b,53,a.videoStreamType);"ad_to_video"===a.actionType?(a.contentCpn&&Q(b,76,a.contentCpn),a.videoId&&Q(b,78,a.videoId)):(a.adCpn&&Q(b,76,a.adCpn),a.adVideoId&&Q(b,78,a.adVideoId));a.adFormat&&Q(b,12,a.adFormat);a.contentCpn&&Q(b,
8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&Q(b,28,a.adCpn);a.adVideoId&&Q(b,20,a.adVideoId);g.BA(TG)(b,a.actionType)}else b={adBreakType:YK(a.C),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType},"ad_to_video"===a.actionType?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId)),a.adFormat&&(b.adType=
a.adFormat),a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn),a.videoId&&(b.videoId=a.videoId),a.adCpn&&(b.adClientPlaybackNonce=a.adCpn),a.adVideoId&&(b.adVideoId=a.adVideoId),g.ZG(b,a.actionType)};
eib=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}};
k1=function(a){g.I.call(this);this.J=a;this.j=new Map;this.B=new KB(this);g.N(this,this.B);this.B.T(this.J,g.dJ("ad"),this.onCueRangeEnter,this);this.B.T(this.J,g.eJ("ad"),this.onCueRangeExit,this)};
fib=function(a,b,c,d,e){g.cJ.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
l1=function(a){this.J=a};
m1=function(a){this.J=a};
eL=function(a){return EM(a,"html5_ssap_fix_layout_exit")};
gib=function(a){return n1(a)&&EM(a,"html5_ssap_play_cached_preroll")};
PM=function(a){return a.J.U().Bc()&&a.J.U().L("html5_ssap_pacf_qoe_ctmp")};
o1=function(a){return a.J.U().L("enable_active_view_web_shorts_video")||a.J.U().L("enable_active_view_lr_shorts_video")};
n1=function(a){var b,c;return null!=(c=null==(b=a.J.getVideoData(1))?void 0:g.sT(b))?c:!1};
EM=function(a,b){return a.J.U().L(b)};
hib=function(a){return a.J.U().L("substitute_ad_cpn_macro_in_ssdai")};
JM=function(a){var b,c,d;return(null==(b=a.J.getVideoData(1).getPlayerResponse())?void 0:null==(c=b.playerConfig)?void 0:null==(d=c.daiConfig)?void 0:d.enableServerStitchedDai)||!1};
vJa=function(a){return a.J.U().L("html5_enable_vod_slar_with_notify_pacf")};
iib=function(a){return a.J.U().L("html5_recognize_predict_start_cue_point")};
VHa=function(a){return a.J.U().experiments.fb("enable_desktop_player_underlay")};
jib=function(a){return a.J.U().experiments.fb("html5_load_empty_player_in_media_break_sub_lra")};
fL=function(a){return a.J.U().experiments.fb("html5_load_ads_instead_of_cue")};
gL=function(a){return a.J.U().experiments.fb("html5_preload_ads")};
p1=function(a){return a.J.U().experiments.fb("html5_rebase_video_to_ad_timeline")};
UJa=function(a){return a.J.U().experiments.fb("enable_ads_control_flow_deterministic_id_generation")};
kib=function(a){return a.J.U().experiments.fb("enable_desktop_discovery_video_abandon_pings")};
lib=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}};
mib=function(){g.UE.call(this);var a=this;this.j={};this.addOnDisposeCallback(function(){for(var b=g.u(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
q1=function(){if(null===nib){nib=new mib;cs(bv).B="b";var a=cs(bv),b="h"==Vu(a)||"b"==Vu(a),c=!(hs(),!1);b&&c&&(a.D=!0,a.G=new yja)}return nib};
oib=function(a,b,c){a.j[b]=c};
pib=function(a){switch(a){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen";
case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip";
case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}};
r1=function(a,b,c){this.Ea=a;this.J=b;this.Aa=c;this.B=new Set;this.j=new Map;q1().subscribe("adactiveviewmeasurable",this.Jx,this);q1().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Ix,this);q1().subscribe("adviewableimpression",this.Kx,this);q1().subscribe("adaudioaudible",this.Gx,this);q1().subscribe("adaudiomeasurable",this.Hx,this)};
t1=function(a,b,c){var d=c.Ys,e=c.GH,f=c.listener,h=c.P6;c=void 0===c.aq?!1:c.aq;if(a.j.has(b))KF("Unexpected registration of layout in LidarApi");else{if(o1(a.Aa.get())&&h){if(a.B.has(h))return;a.B.add(h)}a.j.set(b,f);Hr(hs().Kc,"fmd",1);Ika(cs(bv),d);var l=c?b:void 0;oib(q1(),b,{rP:function(){if(!e)return{};if(o1(a.Aa.get())){var m=a.J.getPresentingPlayerType(!0),n;return null!=(n=a.J.getVideoData(m))&&n.isAd()?{currentTime:a.Ea.get().getCurrentTimeSec(m,!1,l),duration:e,isPlaying:s1(a.Ea.get(),
m).isPlaying(),isVpaid:!1,isYouTube:!0,volume:a.Ea.get().isMuted()?0:a.Ea.get().getVolume()/100}:{}}return{currentTime:a.Ea.get().getCurrentTimeSec(2,!1,l),duration:e,isPlaying:2===a.Ea.get().getPresentingPlayerType()&&s1(a.Ea.get(),2).isPlaying(),Bqb:!1,Cqb:!0,volume:a.Ea.get().isMuted()?0:a.Ea.get().getVolume()/100}}})}};
u1=function(a,b){a.j.has(b)?(a.j.delete(b),delete q1().j[b]):KF("Unexpected unregistration of layout in LidarApi")};
sib=function(a,b){var c={};qib(a,c,b);rib(c);c.LACT=v1(function(){return QD().toString()});
c.VIS=v1(function(){return a.getVisibilityState().toString()});
c.SDKV="h.3.0";c.VOL=v1(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
c.VED="";return c};
tib=function(a,b){var c={};if(b)return c;if(!a.kind)return g.AE(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.AE(Error("malformed AdPlacementConfig")),c;c.MIDROLL_POS=v1(Id(Math.round(df(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else c.MIDROLL_POS=v1(Id("0"));return c};
v1=function(a){return{toString:function(){return a()}}};
uib=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.gd(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};
qib=function(a,b,c){b.CPN=v1(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.BE(Error("Video data is null.")),d=null);return d});
b.AD_MT=v1(function(){if(null!=c)var d=c;else if(a.U().L("enable_h5_shorts_ad_fill_ad_mt_macro")||a.U().L("enable_desktop_discovery_pings_ad_mt_macro")){var e=a.getPresentingPlayerType(!0),f;d=(null==(f=a.getVideoData(e))?0:f.isAd())?a.getCurrentTime(e,!1):0}else d=a.getCurrentTime(2,!1);return Math.round(Math.max(0,1E3*d)).toString()});
b.MT=v1(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
b.P_H=v1(function(){return a.ob().Vh().height.toString()});
b.P_W=v1(function(){return a.ob().Vh().width.toString()});
b.PV_H=v1(function(){return a.ob().getVideoContentRect().height.toString()});
b.PV_W=v1(function(){return a.ob().getVideoContentRect().width.toString()})};
rib=function(a){a.CONN=v1(Id("0"));a.WT=v1(function(){return Date.now().toString()})};
vib=function(){};
wib=function(a,b,c,d,e){var f,h,l,m,n,p,q,r,t,v,w,A,C,F;g.G(function(H){switch(H.j){case 1:f=!!b.scrubReferrer;h=g.cv(b.baseUrl,uib(c,f,d));l={};if(!b.headers){H.Ia(2);break}m=a.D();if(!m.j){n=m.getValue();H.Ia(3);break}return g.z(H,m.j,4);case 4:n=H.B;case 3:p=n;q=g.u(b.headers);for(r=q.next();!r.done;r=q.next())switch(t=r.value,t.headerType){case "VISITOR_ID":g.xA("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=g.xA("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.xA("EOM_VISITOR_DATA")&&(l["X-Goog-EOM-Visitor-Id"]=
g.xA("EOM_VISITOR_DATA"));break;case "USER_AUTH":p&&(l.Authorization="Bearer "+p);break;case "PLUS_PAGE_ID":(v=a.G())&&(l["X-Goog-PageId"]=v);break;case "AUTH_USER":w=a.B();!p&&w&&(l["X-Goog-AuthUser"]=w);break;case "ATTRIBUTION_REPORTING_ELIGIBLE":A=void 0;(null==(A=a.j())?0:A.fb("clean_up_manual_attribution_header"))||(l["Attribution-Reporting-Eligible"]="event-source");break;case "DATASYNC_ID":if(C=void 0,null==(C=a.j())?0:C.fb("enable_datasync_id_header_in_web_vss_pings"))F=a.C(),JA(h)&&g.xA("LOGGED_IN")&&
F&&(l["X-Yt-DataSync-Id"]=F)}"X-Goog-EOM-Visitor-Id"in l&&"X-Goog-Visitor-Id"in l&&delete l["X-Goog-Visitor-Id"];case 2:g.qD(h,void 0,f,0!==Object.keys(l).length?l:void 0,"",!0,e),g.Aa(H)}})};
xib=function(a,b,c,d,e){this.D=a;this.G=b;this.B=c;this.C=d;this.j=e};
yib=function(a,b){this.j=a;this.Aa=b};
w1=function(a,b,c,d,e,f){var h=void 0===h?new xib(function(){var l=a.U(),m=a.getVideoData(1);return g.$R(l,m?g.qT(m):"")},function(){return a.U().pageId},function(){return a.U().Ca},function(){var l;
return null!=(l=a.U().datasyncId)?l:""},function(){return a.U().experiments}):h;
this.J=a;this.B=b;this.ub=c;this.Ra=d;this.Qb=e;this.Aa=f;this.D=h;this.qC=null;this.j=new Map;this.C=new yib(h,this.Aa)};
Aib=function(a,b,c,d,e){var f=IJa(a.B.get(),c);f?(c=tJ(a,zib(f),f,void 0,void 0,d),b.hasOwnProperty("baseUrl")?a.D.send(b,c):a.C.send(b,c,{},e)):KF("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
dDa=function(a,b,c,d,e,f){d=void 0===d?[]:d;var h=IJa(a.B.get(),b);if(h){var l=a.ub.get().Oh(b,c),m=tJ(a,zib(h),h,e,f);d.forEach(function(n,p){n.baseUrl&&(a.C.send(n.baseUrl,m,l,n.attributionSrcMode),n.serializedAdPingMetadata&&a.Qb.Tr("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,h,new NGa(n,p),void 0,void 0,h.adLayoutLoggingData))})}else KF("Trying to track from an unknown layout.",void 0,void 0,{layoutId:b,
trackingType:c})};
sL=function(a,b){g.iC("adsClientStateChange",b)};
Bib=function(a,b){a.j.has(b.Lw())?KF("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.Lw(),b)};
Cib=function(a,b){a.j.delete(b.Lw())||KF("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
tL=function(a,b,c){"string"===typeof c?a.J.getVideoData(1).QB(b,c):a.J.getVideoData(1).ma(b,c)};
zib=function(a){var b=sI(a.Ba,"metadata_type_ad_placement_config");a=sI(a.Ba,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,d_:a}};
tJ=function(a,b,c,d,e,f){var h=c?Dib(a):{},l=c?Eib(a,c.layoutId):{},m=Fib(a),n,p=null!=e?e:null==(n=a.Ra.get().Xd(2))?void 0:n.clientPlaybackNonce;a.J.U().L("enable_player_logging_lr_home_infeed_ads")&&!p&&(p=a.Ra.get().Xd(1).clientPlaybackNonce);e={};a=Object.assign({},sib(a.J,d),tib(b.adPlacementConfig,void 0!==(null==c?void 0:c.renderingContent)),l,h,m,(e.FINAL=v1(function(){return"1"}),e.AD_CPN=v1(function(){return p||""}),e));
void 0!==(null==c?void 0:c.renderingContent)||(a.SLOT_POS=v1(function(){return(b.d_||0).toString()}));
c={};f=Object.assign({},a,f);a=g.u(Object.values(Gib));for(d=a.next();!d.done;d=a.next())d=d.value,h=f[d],null!=h&&null!=h.toString()&&(c[d]=h.toString());return c};
Dib=function(a){var b={},c,d=null==(c=a.qC)?void 0:c.ij/1E3;null!=d&&(b.SURVEY_ELAPSED_MS=v1(function(){return Math.round(1E3*d).toString()}));
b.SURVEY_LOCAL_TIME_EPOCH_S=v1(function(){return Math.round(Date.now()/1E3).toString()});
return b};
Eib=function(a,b){a=a.j.get(b);if(!a)return{};a=a.gP();if(!a)return{};b={};return b.YT_ERROR_CODE=a.HM.toString(),b.ERRORCODE=a.FH.toString(),b.ERROR_MSG=a.errorMessage,b};
Fib=function(a){var b={},c=a.J.getVideoData(1);b.ASR=v1(function(){var d;return null!=(d=null==c?void 0:c.Ev)?d:null});
b.EI=v1(function(){var d;return null!=(d=null==c?void 0:c.eventId)?d:null});
return b};
x1=function(a,b,c){g.I.call(this);this.J=a;this.Js=b;this.Aa=c;this.listeners=[];this.LQ=null;this.MN=new Map;b=new g.YJ(this);g.N(this,b);b.T(a,"videodatachange",this.Bca);b.T(a,"serverstitchedvideochange",this.eca);this.Aw=this.Xd()};
Hib=function(a,b,c){var d=a.rI(b,c);a.Aw=d;a.listeners.forEach(function(e){e.dL(d)})};
KJ=function(a,b,c){a.J.getVideoData(1).ma(b,c)};
Iib=function(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5}};
y1=function(a,b,c){g.I.call(this);this.J=a;this.Ra=b;this.Aa=c;this.listeners=[];this.aE=[];this.j=function(){KF("Called 'doUnlockPreroll' before it's initialized.")};
b=new KB(this);c=new g.YJ(this);g.N(this,c);g.N(this,b);b.T(a,"progresssync",this.Eba);b.T(a,"presentingplayerstatechange",this.vba);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.lh);b.T(a,"overlayvisibilitychange",this.Dj);b.T(a,"shortsadswipe",this.Fj);b.T(a,"resize",this.jc);c.T(a,g.dJ("appad"),this.Cj)};
z1=function(a){n1(a.Aa.get())||a.j()};
Jib=function(a,b){a.aE=a.aE.filter(function(c){return c!==b})};
A1=function(a,b,c){return a.getCurrentTimeSec(b,c)};
Kib=function(a,b){var c;b=null!=(c=a.Ra.get().MN.get(b))?c:null;if(null===b)return KF("Expected ad video start time on playback timeline"),0;a=a.J.getCurrentTime(2,!0);return a<b?0:a-b};
s1=function(a,b){return a.J.getPlayerStateObject(b)};
Lib=function(a){var b=a.J.ob().Vh();a=a.J.Rn(!0,!0);return b.height-(a.height+a.top)};
Mib=function(a){a.J.cueVideoByPlayerVars({videoId:"empty_video"},2)};
kFa=function(a,b){var c=a.J.U();g.FR(c)||"3"!==c.controlsType||a.J.ob().YL(b)};
B1=function(a,b){g.Qv(a.J.getRootNode(),b)};
C1=function(a,b){g.Sv(a.J.getRootNode(),b)};
Nib=function(a,b,c,d,e){g.I.call(this);var f=this,h=QI(function(){return new fN(f.Aa)});
g.N(this,h);var l=QI(function(){return new gN(h,f.Aa)});
g.N(this,l);var m=QI(function(){return new QM});
g.N(this,m);d=QI(function(){return new NM(a)});
g.N(this,d);var n=QI(function(){return new hN(h,l,f.Aa)});
g.N(this,n);var p=QI(function(){return new kN});
g.N(this,p);this.Lb=QI(function(){return new RI(e)});
g.N(this,this.Lb);this.Ac=QI(function(){return new i1(b)});
g.N(this,this.Ac);this.Oc=QI(function(){return new k1(b)});
g.N(this,this.Oc);this.hd=QI(function(){return new l1(b)});
g.N(this,this.hd);this.Aa=QI(function(){return new m1(b)});
g.N(this,this.Aa);var q=QI(function(){return new yI(f.Aa)});
g.N(this,q);var r=QI(function(){return new GM(h,n,l,f.Aa,q,null,null,null)});
g.N(this,r);this.Ra=QI(function(){return new x1(b,p,f.Aa)});
g.N(this,this.Ra);var t=g1({Ra:this.Ra,Aa:this.Aa,Ne:q}),v=t.context;this.Qb=t.Qb;this.Ea=QI(function(){return new y1(b,f.Ra,f.Aa)});
g.N(this,this.Ea);this.ub=QI(function(){return new r1(f.Ea,b,f.Aa)});
g.N(this,this.ub);this.Oa=QI(function(){return new w1(b,m,f.ub,f.Ra,f.Qb,f.Aa)});
g.N(this,this.Oa);this.Qd=new MM(d,r,c,this.Aa,a,this.Ra,this.Ea,this.Ac);g.N(this,this.Qd);var w=new h1(b,this.Qd,this.Ea,this.Ra);this.wh=QI(function(){return w});
this.Nx=w;this.Gg=new OM(d,n,this.Oc,this.wh,v);g.N(this,this.Gg);this.Td=new rM(this.Aa,d,n,r,this.Ra,this.Gg,c);g.N(this,this.Td);this.oh={xB:new Map,Kt:new Map,dn:new Map,bv:new Map,yu:new Map};this.listeners=[];this.SA={Td:this.Td,Yk:this.Aa.get(),kb:this.Lb.get(),DB:this.Ea.get(),Qd:this.Qd,Yw:h.get(),DF:null,Bo:{RP:function(){}},
ll:m.get(),df:this.Ra.get()}};
D1=function(a,b){g.I.call(this);this.zo=b;this.zo.get().addListener(this)};
E1=function(a){this.j=a};
Oib=function(a,b){if(!a)return{dw:[],adSlots:[],rC:!0,ssdaiAdsConfig:void 0};a.trackingParams&&SO(a.trackingParams);if(a.adThrottled)return{dw:[],adSlots:[],rC:!0,ssdaiAdsConfig:void 0};var c,d=null!=(c=a.adSlots)?c:[],e;c=null!=(e=a.playerAds)?e:[];if(!(c&&c.length||d.length))return{dw:[],adSlots:d,rC:!1,ssdaiAdsConfig:void 0};e=c.map(function(h){return h.adPlacementRenderer}).filter(function(h){return!(!h||!h.renderer)});
if(!e.length&&!d.length)return{dw:[],adSlots:d,rC:!1,ssdaiAdsConfig:void 0};if(0<b.end){var f=b.end.toString();e.forEach(function(h){(h=h.config&&h.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===h.kind&&h.adTimeOffset&&"-1"===h.adTimeOffset.offsetEndMilliseconds&&h.adTimeOffset.offsetEndMilliseconds!==f&&(h.adTimeOffset.offsetEndMilliseconds=f)});
d.map(function(h){return g.V(h,sM)}).forEach(function(h){var l;
(h=null==h?void 0:null==(l=h.slotEntryTrigger)?void 0:l.mediaTimeRangeTrigger)&&"-1"===h.offsetEndMilliseconds&&(h.offsetEndMilliseconds=f)})}return{dw:e,
adSlots:d,rC:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}};
F1=function(a){g.I.call(this);this.J=a;this.listeners=[];this.j=new KB(this);g.N(this,this.j);this.j.T(this.J,"aduxclicked",this.onAdUxClicked);this.j.T(this.J,"aduxmouseover",this.lR);this.j.T(this.J,"aduxmouseout",this.kR);this.j.T(this.J,"muteadaccepted",this.aaa)};
Pib=function(a,b,c){b=g.$r(b,function(d){return new zya(d,c,d.id)});
a.J.jb("onAdUxUpdate",b)};
G1=function(a,b){a=g.u(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
H1=function(a,b){this.B=a;this.C=void 0===b?!1:b;this.j={}};
Qib=function(a,b){var c=a.startSecs+a.Bh;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{I7:new fw(b,c),V9:new GP(b,c-b,a.context,a.identifier,a.event,a.j)}};
Rib=function(){this.j=[]};
RFa=function(a,b,c){var d=g.Sb(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]};
I1=function(a,b,c){g.I.call(this);this.J=a;this.Aa=b;this.Oa=c;this.listeners=[];this.D=!1;this.uM=[];this.B=null;this.G=new H1(this,iib(b.get()));this.C=new Rib;this.j=null};
Sib=function(a,b){a.uM.push(b);for(var c=!1,d=g.u(a.listeners),e=d.next();!e.done;e=d.next())c=e.value.I_(b)||c;a.D=c};
Uib=function(a,b){sL(a.Oa.get(),{cuepointTrigger:{event:Tib(b.event),cuepointId:b.identifier,totalCueDurationMs:1E3*b.Bh,playheadTimeMs:b.j,cueStartTimeMs:1E3*b.startSecs,cuepointReceivedTimeMs:Date.now(),contentCpn:a.J.getVideoData(1).clientPlaybackNonce}})};
Tib=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 Ne(a,"Unexpected cuepoint event")}};
J1=function(a){this.J=a};
Vib=function(a,b){a.J.cueVideoByPlayerVars(b,2)};
K1=function(a){this.J=a};
L1=function(a){this.J=a};
Wib=function(a){this.J=a};
Xib=function(a,b,c,d,e){g.I.call(this);var f=this,h=QI(function(){return new fN(f.Aa)});
g.N(this,h);var l=QI(function(){return new gN(h,f.Aa)});
g.N(this,l);var m=QI(function(){return new QM});
g.N(this,m);var n=QI(function(){return new NM(a)});
g.N(this,n);var p=QI(function(){return new hN(h,l,f.Aa)});
g.N(this,p);var q=QI(function(){return new kN});
g.N(this,q);this.Ec=QI(function(){return new F1(b)});
g.N(this,this.Ec);this.Lb=QI(function(){return new RI(e)});
g.N(this,this.Lb);this.Ac=QI(function(){return new i1(b)});
g.N(this,this.Ac);this.Oc=QI(function(){return new k1(b)});
g.N(this,this.Oc);this.Yc=QI(function(){return new J1(b)});
g.N(this,this.Yc);this.hd=QI(function(){return new l1(b)});
g.N(this,this.hd);this.Aa=QI(function(){return new m1(b)});
g.N(this,this.Aa);var r=QI(function(){return new E1(d)});
g.N(this,r);var t=QI(function(){return new yI(f.Aa)});
g.N(this,t);this.Wf=QI(function(){return new K1(b)});
g.N(this,this.Wf);this.zo=QI(function(){return new UI});
g.N(this,this.zo);this.Ra=QI(function(){return new x1(b,q,f.Aa)});
g.N(this,this.Ra);var v=g1({Ra:this.Ra,Aa:this.Aa,Ne:t}),w=v.context;this.Qb=v.Qb;this.Bf=QI(function(){return new I1(b,f.Aa,f.Oa)});
g.N(this,this.Bf);this.zc=QI(function(){return new L1(b)});
g.N(this,this.zc);this.Ea=QI(function(){return new y1(b,f.Ra,f.Aa)});
g.N(this,this.Ea);v=QI(function(){return new GM(h,p,l,f.Aa,t,"SLOT_TYPE_ABOVE_FEED",f.Ea,f.Wj)});
g.N(this,v);this.gf=QI(function(){return new VI});
this.ub=QI(function(){return new r1(f.Ea,b,f.Aa)});
g.N(this,this.ub);this.Oa=QI(function(){return new w1(b,m,f.ub,f.Ra,f.Qb,f.Aa)});
g.N(this,this.Oa);this.Ak=new LM(CJa,M1,function(C,F,H,M){return yM(l.get(),C,F,H,M)},n,p,l,t,this.Aa,this.Ra);
g.N(this,this.Ak);this.Qd=new MM(n,v,c,this.Aa,a,this.Ra,this.Ea,this.Ac);g.N(this,this.Qd);var A=new h1(b,this.Qd,this.Ea,this.Ra,this.Bf);this.wh=QI(function(){return A});
this.Nx=A;this.Wj=new IM(n,p,this.wh,this.Bf,this.Ea,this.Aa,this.Oa,this.zc);g.N(this,this.Wj);this.Gg=new OM(n,p,this.Oc,this.wh,w);g.N(this,this.Gg);this.Td=new rM(this.Aa,n,p,v,this.Ra,this.Gg,c);g.N(this,this.Td);this.Rj=QI(function(){return new fJ(r,l,t,f.Aa,f.Oa,f.Ea,f.zc)});
g.N(this,this.Rj);this.We=QI(function(){return new gJ});
g.N(this,this.We);this.Wg=new UM(a,this.Ec,this.Aa);g.N(this,this.Wg);this.Zb=new VM(a);g.N(this,this.Zb);this.uw=new WM(a);g.N(this,this.uw);this.yh=new YM(a,this.wh,w);g.N(this,this.yh);this.Cf=new ZM(a,this.Oc,this.Ea,this.Ra,w);g.N(this,this.Cf);this.wx=new $M(a,this.Ra);g.N(this,this.wx);this.Me=new aN(a);g.N(this,this.Me);this.Hd=new dN(a);g.N(this,this.Hd);this.xk=new bN(a);g.N(this,this.xk);this.Iy=new cN(a);g.N(this,this.Iy);this.Hd=new dN(a);g.N(this,this.Hd);this.Re=QI(function(){return new RM});
g.N(this,this.Re);this.Bk=QI(function(){return new SM(f.Ea)});
g.N(this,this.Bk);this.uW=QI(function(){return new KDa(f.Ec,f.Oa,a,m,f.ub)});
g.N(this,this.uW);this.Qj=QI(function(){return new AJ(f.Td,n,h)});
g.N(this,this.Qj);this.Zj=QI(function(){return new CJ(f.Aa,f.Oa,f.Me,f.ub)});
g.N(this,this.Zj);this.zk=QI(function(){return new qGa(a,f.Hd,f.Me,f.Ra,f.zc,f.Ea,f.Oa,q,f.Bf,f.ub,f.gf,f.Yc,f.Oc,f.Ac,f.hd,f.Lb,f.Wf,f.Aa,m,w)});
g.N(this,this.zk);this.iS=QI(function(){return new cEa(f.Ea,f.Oa,f.Aa,f.ub)});
g.N(this,this.iS);this.Zt=QI(function(){return new AGa(f.Ec,f.Ea,f.Oa,m,f.ub,f.uw,f.Iy,f.Lb,f.Aa,c)});
g.N(this,this.Zt);this.M2=QI(function(){return new MDa(f.Ec)});
g.N(this,this.M2);this.IN=new D1(a,this.zo,h);g.N(this,this.IN);this.oh={xB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Wj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ak],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Qd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gg]]),Kt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Rj],["SLOT_TYPE_ABOVE_FEED",this.We],["SLOT_TYPE_FORECASTING",this.We],
["SLOT_TYPE_IN_PLAYER",this.We],["SLOT_TYPE_PLAYER_BYTES",this.We],["SLOT_TYPE_PLAYER_UNDERLAY",this.We],["SLOT_TYPE_PLAYBACK_TRACKING",this.We],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.We]]),dn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Wg],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Wg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Zb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Zb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_ENTERED",
this.Zb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Zb],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Zb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Zb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.uw],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yh],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Cf],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
this.Cf],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Cf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Cf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Cf],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Cf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Cf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.wx],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.wx],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Me],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.yh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xk],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Iy],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Hd]]),bv:new Map([["SLOT_TYPE_ABOVE_FEED",this.Re],["SLOT_TYPE_AD_BREAK_REQUEST",this.Re],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.Re],["SLOT_TYPE_PLAYER_BYTES",this.Bk],["SLOT_TYPE_PLAYER_UNDERLAY",this.Re],["SLOT_TYPE_PLAYBACK_TRACKING",this.Re],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Re]]),yu:new Map([["SLOT_TYPE_ABOVE_FEED",
this.uW],["SLOT_TYPE_AD_BREAK_REQUEST",this.Qj],["SLOT_TYPE_FORECASTING",this.Zj],["SLOT_TYPE_PLAYER_BYTES",this.zk],["SLOT_TYPE_PLAYBACK_TRACKING",this.iS],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.iS],["SLOT_TYPE_IN_PLAYER",this.Zt],["SLOT_TYPE_PLAYER_UNDERLAY",this.M2]])};this.listeners=[m.get()];this.SA={Td:this.Td,Yk:this.Aa.get(),kb:this.Lb.get(),DB:this.Ea.get(),Qd:this.Qd,Yw:h.get(),DF:this.zo.get(),Bo:this.Wg,ll:m.get(),df:this.Ra.get()}};
Yib=function(a,b,c,d,e){g.I.call(this);var f=this,h=QI(function(){return new fN(f.Aa)});
g.N(this,h);var l=QI(function(){return new gN(h,f.Aa)});
g.N(this,l);var m=QI(function(){return new QM});
g.N(this,m);var n=QI(function(){return new NM(a)});
g.N(this,n);var p=QI(function(){return new hN(h,l,f.Aa)});
g.N(this,p);var q=QI(function(){return new kN});
g.N(this,q);this.Ec=QI(function(){return new F1(b)});
g.N(this,this.Ec);this.Lb=QI(function(){return new RI(e)});
g.N(this,this.Lb);this.Ac=QI(function(){return new i1(b)});
g.N(this,this.Ac);this.Oc=QI(function(){return new k1(b)});
g.N(this,this.Oc);this.Yc=QI(function(){return new J1(b)});
g.N(this,this.Yc);this.hd=QI(function(){return new l1(b)});
g.N(this,this.hd);this.Aa=QI(function(){return new m1(b)});
g.N(this,this.Aa);var r=QI(function(){return new E1(d)});
g.N(this,r);var t=QI(function(){return new yI(f.Aa)});
g.N(this,t);var v=QI(function(){return new GM(h,p,l,f.Aa,t,null,null,f.Wj)});
g.N(this,v);this.Wf=QI(function(){return new K1(b)});
g.N(this,this.Wf);this.zo=QI(function(){return new UI});
g.N(this,this.zo);this.Ra=QI(function(){return new x1(b,q,f.Aa)});
g.N(this,this.Ra);var w=g1({Ra:this.Ra,Aa:this.Aa,Ne:t}),A=w.context;this.Qb=w.Qb;this.Bf=QI(function(){return new I1(b,f.Aa,f.Oa)});
this.Ea=QI(function(){return new y1(b,f.Ra,f.Aa)});
g.N(this,this.Ea);this.ub=QI(function(){return new r1(f.Ea,b,f.Aa)});
g.N(this,this.ub);this.Oa=QI(function(){return new w1(b,m,f.ub,f.Ra,f.Qb,f.Aa)});
g.N(this,this.Oa);this.gf=QI(function(){return new VI});
g.N(this,this.gf);this.Ak=new LM(CJa,M1,function(F,H,M,L){return yM(l.get(),F,H,M,L)},n,p,l,t,this.Aa,this.Ra);
g.N(this,this.Ak);this.Qd=new MM(n,v,c,this.Aa,a,this.Ra,this.Ea,this.Ac);g.N(this,this.Qd);var C=new h1(b,this.Qd,this.Ea,this.Ra,this.Bf);this.wh=QI(function(){return C});
this.Nx=C;this.Wj=new IM(n,p,this.wh,this.Bf,this.Ea,this.Aa,this.Oa);g.N(this,this.Wj);this.Gg=new OM(n,p,this.Oc,this.wh,A);g.N(this,this.Gg);this.Td=new rM(this.Aa,n,p,v,this.Ra,this.Gg,c);g.N(this,this.Td);this.Rj=QI(function(){return new fJ(r,l,t,f.Aa,f.Oa,f.Ea)});
g.N(this,this.Rj);this.We=QI(function(){return new gJ});
g.N(this,this.We);this.Wg=new UM(a,this.Ec,this.Aa);g.N(this,this.Wg);this.Zb=new VM(a);g.N(this,this.Zb);this.uw=new WM(a);g.N(this,this.uw);this.yh=new YM(a,this.wh,A);g.N(this,this.yh);this.Cf=new ZM(a,this.Oc,this.Ea,this.Ra,A);g.N(this,this.Cf);this.Me=new aN(a);g.N(this,this.Me);this.xk=new bN(a);g.N(this,this.xk);this.Iy=new cN(a);g.N(this,this.Iy);this.zc=QI(function(){return new L1(b)});
g.N(this,this.zc);this.Hd=new dN(a);g.N(this,this.Hd);this.Re=QI(function(){return new RM});
g.N(this,this.Re);this.Bk=QI(function(){return new SM(f.Ea)});
g.N(this,this.Bk);this.Qj=QI(function(){return new AJ(f.Td,n,h)});
g.N(this,this.Qj);this.Zj=QI(function(){return new CJ(f.Aa,f.Oa,f.Me,f.ub)});
g.N(this,this.Zj);this.Zt=QI(function(){return new BGa(f.Ec,f.Ea,f.Oa,m,f.ub,f.uw,f.Iy,f.Lb,f.Aa,c)});
g.N(this,this.Zt);this.zk=QI(function(){return new vL(a,f.Hd,f.Me,f.Oa,f.ub,f.gf,f.Yc,f.Ra,f.Ea,f.Oc,f.Ac,f.hd,f.Lb,f.Wf,f.Aa,f.zc,A)});
g.N(this,this.zk);this.IN=new D1(a,this.zo,h);g.N(this,this.IN);this.oh={xB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Wj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ak],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Qd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gg]]),Kt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Rj],["SLOT_TYPE_FORECASTING",this.We],["SLOT_TYPE_IN_PLAYER",this.We],
["SLOT_TYPE_PLAYER_BYTES",this.We]]),dn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Wg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Zb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Zb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Zb],
["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Zb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.uw],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Cf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Cf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Cf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Me],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xk],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",
this.Iy],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Hd]]),bv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Re],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.Re],["SLOT_TYPE_PLAYER_BYTES",this.Bk]]),yu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qj],["SLOT_TYPE_FORECASTING",this.Zj],["SLOT_TYPE_IN_PLAYER",this.Zt],["SLOT_TYPE_PLAYER_BYTES",this.zk]])};this.listeners=[m.get()];this.SA={Td:this.Td,Yk:this.Aa.get(),kb:this.Lb.get(),DB:this.Ea.get(),Qd:this.Qd,Yw:h.get(),DF:this.zo.get(),Bo:this.Wg,
ll:m.get(),df:this.Ra.get()}};
Zib=function(a,b,c,d,e){g.I.call(this);var f=this,h=QI(function(){return new fN(f.Aa)});
g.N(this,h);var l=QI(function(){return new gN(h,f.Aa)});
g.N(this,l);var m=QI(function(){return new QM});
g.N(this,m);var n=QI(function(){return new NM(a)});
g.N(this,n);var p=QI(function(){return new hN(h,l,f.Aa)});
g.N(this,p);var q=QI(function(){return new kN});
g.N(this,q);this.Ec=QI(function(){return new F1(b)});
g.N(this,this.Ec);this.Lb=QI(function(){return new RI(e)});
g.N(this,this.Lb);this.Ac=QI(function(){return new i1(b)});
g.N(this,this.Ac);this.Oc=QI(function(){return new k1(b)});
g.N(this,this.Oc);this.Yc=QI(function(){return new J1(b)});
g.N(this,this.Yc);this.hd=QI(function(){return new l1(b)});
g.N(this,this.hd);this.Aa=QI(function(){return new m1(b)});
g.N(this,this.Aa);var r=QI(function(){return new E1(d)});
g.N(this,r);var t=QI(function(){return new yI(f.Aa)});
g.N(this,t);var v=QI(function(){return new GM(h,p,l,f.Aa,t,null,null,null)});
g.N(this,v);this.Wf=QI(function(){return new K1(b)});
g.N(this,this.Wf);this.Ra=QI(function(){return new x1(b,q,f.Aa)});
g.N(this,this.Ra);var w=g1({Ra:this.Ra,Aa:this.Aa,Ne:t}),A=w.context;this.Qb=w.Qb;this.Ea=QI(function(){return new y1(b,f.Ra,f.Aa)});
g.N(this,this.Ea);this.ub=QI(function(){return new r1(f.Ea,b,f.Aa)});
g.N(this,this.ub);this.Oa=QI(function(){return new w1(b,m,f.ub,f.Ra,f.Qb,f.Aa)});
g.N(this,this.Oa);this.gf=QI(function(){return new VI});
g.N(this,this.gf);this.Ak=new LM(CJa,M1,function(F,H,M,L){return yM(l.get(),F,H,M,L)},n,p,l,t,this.Aa,this.Ra);
g.N(this,this.Ak);this.Qd=new MM(n,v,c,this.Aa,a,this.Ra,this.Ea,this.Ac);g.N(this,this.Qd);var C=new h1(b,this.Qd,this.Ea,this.Ra);this.wh=QI(function(){return C});
this.Nx=C;this.Gg=new OM(n,p,this.Oc,this.wh,A);g.N(this,this.Gg);this.Td=new rM(this.Aa,n,p,v,this.Ra,this.Gg,c);g.N(this,this.Td);this.Rj=QI(function(){return new fJ(r,l,t,f.Aa,f.Oa,f.Ea)});
g.N(this,this.Rj);this.We=QI(function(){return new gJ});
g.N(this,this.We);this.Wg=new UM(a,this.Ec,this.Aa);g.N(this,this.Wg);this.Zb=new VM(a);g.N(this,this.Zb);this.yh=new YM(a,this.wh,A);g.N(this,this.yh);this.Cf=new ZM(a,this.Oc,this.Ea,this.Ra,A);g.N(this,this.Cf);this.Me=new aN(a);g.N(this,this.Me);this.xk=new bN(a);g.N(this,this.xk);this.zc=QI(function(){return new L1(b)});
g.N(this,this.zc);this.Hd=new dN(a);g.N(this,this.Hd);this.Re=QI(function(){return new RM});
g.N(this,this.Re);this.Bk=QI(function(){return new SM(f.Ea)});
g.N(this,this.Bk);this.Qj=QI(function(){return new AJ(f.Td,n,h)});
g.N(this,this.Qj);this.Zj=QI(function(){return new CJ(f.Aa,f.Oa,f.Me,f.ub)});
g.N(this,this.Zj);this.n0=QI(function(){return new $Da(f.Ec,f.Ea,f.Oa,m,c,f.Aa)});
g.N(this,this.n0);this.zk=QI(function(){return new vL(a,f.Hd,f.Me,f.Oa,f.ub,f.gf,f.Yc,f.Ra,f.Ea,f.Oc,f.Ac,f.hd,f.Lb,f.Wf,f.Aa,f.zc,A)});
g.N(this,this.zk);this.oh={xB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ak],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Qd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gg]]),Kt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Rj],["SLOT_TYPE_FORECASTING",this.We],["SLOT_TYPE_IN_PLAYER",this.We],["SLOT_TYPE_PLAYER_BYTES",this.We]]),dn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Wg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.Zb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Zb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Zb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Zb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Cf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.Cf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Me],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Hd]]),bv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Re],["SLOT_TYPE_ABOVE_FEED",this.Re],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.Re],["SLOT_TYPE_PLAYER_BYTES",this.Bk]]),yu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qj],["SLOT_TYPE_FORECASTING",this.Zj],["SLOT_TYPE_IN_PLAYER",
this.n0],["SLOT_TYPE_PLAYER_BYTES",this.zk]])};this.listeners=[m.get()];this.SA={Td:this.Td,Yk:this.Aa.get(),kb:this.Lb.get(),DB:this.Ea.get(),Qd:this.Qd,Yw:h.get(),DF:null,Bo:this.Wg,ll:m.get(),df:this.Ra.get()}};
$ib=function(a,b,c,d,e){g.I.call(this);var f=this,h=QI(function(){return new fN(f.Aa)});
g.N(this,h);var l=QI(function(){return new gN(h,f.Aa)});
g.N(this,l);var m=QI(function(){return new QM});
g.N(this,m);var n=QI(function(){return new NM(a)});
g.N(this,n);var p=QI(function(){return new hN(h,l,f.Aa)});
g.N(this,p);var q=QI(function(){return new kN});
g.N(this,q);this.xn=QI(function(){return new Wib(b)});
g.N(this,this.xn);this.Ec=QI(function(){return new F1(b)});
g.N(this,this.Ec);this.Lb=QI(function(){return new RI(e)});
g.N(this,this.Lb);this.Ac=QI(function(){return new i1(b)});
g.N(this,this.Ac);this.Oc=QI(function(){return new k1(b)});
g.N(this,this.Oc);this.Yc=QI(function(){return new J1(b)});
g.N(this,this.Yc);this.hd=QI(function(){return new l1(b)});
g.N(this,this.hd);this.Aa=QI(function(){return new m1(b)});
g.N(this,this.Aa);var r=QI(function(){return new E1(d)});
g.N(this,r);var t=QI(function(){return new yI(f.Aa)});
g.N(this,t);var v=QI(function(){return new GM(h,p,l,f.Aa,t,null,null,null)});
g.N(this,v);this.Wf=QI(function(){return new K1(b)});
g.N(this,this.Wf);this.Ra=QI(function(){return new x1(b,q,f.Aa)});
g.N(this,this.Ra);var w=g1({Ra:this.Ra,Aa:this.Aa,Ne:t}),A=w.context;this.Qb=w.Qb;this.Ea=QI(function(){return new y1(b,f.Ra,f.Aa)});
g.N(this,this.Ea);this.ub=QI(function(){return new r1(f.Ea,b,f.Aa)});
g.N(this,this.ub);this.Oa=QI(function(){return new w1(b,m,f.ub,f.Ra,f.Qb,f.Aa)});
g.N(this,this.Oa);this.gf=QI(function(){return new VI});
g.N(this,this.gf);this.Ak=new LM(EJa,M1,function(F,H,M,L){return XJa(l.get(),F,H,M,L)},n,p,l,t,this.Aa,this.Ra);
g.N(this,this.Ak);this.Qd=new MM(n,v,c,this.Aa,a,this.Ra,this.Ea,this.Ac);g.N(this,this.Qd);var C=new h1(b,this.Qd,this.Ea,this.Ra);this.wh=QI(function(){return C});
this.Nx=C;this.Gg=new OM(n,p,this.Oc,this.wh,A);g.N(this,this.Gg);this.Td=new rM(this.Aa,n,p,v,this.Ra,this.Gg,c);g.N(this,this.Td);this.Rj=QI(function(){return new fJ(r,l,t,f.Aa,f.Oa,f.Ea)});
g.N(this,this.Rj);this.We=QI(function(){return new gJ});
g.N(this,this.We);this.Wg=new UM(a,this.Ec,this.Aa);g.N(this,this.Wg);this.Zb=new VM(a);g.N(this,this.Zb);this.yh=new YM(a,this.wh,A);g.N(this,this.yh);this.Cf=new ZM(a,this.Oc,this.Ea,this.Ra,A);g.N(this,this.Cf);this.Me=new aN(a);g.N(this,this.Me);this.xk=new bN(a);g.N(this,this.xk);this.zc=QI(function(){return new L1(b)});
g.N(this,this.zc);this.Hd=new dN(a);g.N(this,this.Hd);this.Re=QI(function(){return new RM});
g.N(this,this.Re);this.Bk=QI(function(){return new SM(f.Ea)});
g.N(this,this.Bk);this.Qj=QI(function(){return new AJ(f.Td,n,h)});
g.N(this,this.Qj);this.Zj=QI(function(){return new CJ(f.Aa,f.Oa,f.Me,f.ub)});
g.N(this,this.Zj);this.zk=QI(function(){return new vL(a,f.Hd,f.Me,f.Oa,f.ub,f.gf,f.Yc,f.Ra,f.Ea,f.Oc,f.Ac,f.hd,f.Lb,f.Wf,f.Aa,f.zc,A)});
g.N(this,this.zk);this.m3=QI(function(){return new DGa(f.Ec,f.Ea,f.Oa,m,f.xn,c,f.Ra)});
g.N(this,this.m3);this.oh={xB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ak],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Qd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gg]]),Kt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Rj],["SLOT_TYPE_FORECASTING",this.We],["SLOT_TYPE_IN_PLAYER",this.We],["SLOT_TYPE_PLAYER_BYTES",this.We]]),dn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Wg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.Zb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Zb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Zb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Zb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Cf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.Cf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Me],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Hd]]),bv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Re],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.Re],["SLOT_TYPE_PLAYER_BYTES",this.Bk]]),yu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qj],["SLOT_TYPE_FORECASTING",this.Zj],["SLOT_TYPE_IN_PLAYER",this.m3],["SLOT_TYPE_PLAYER_BYTES",
this.zk]])};this.listeners=[m.get()];this.SA={Td:this.Td,Yk:this.Aa.get(),kb:this.Lb.get(),DB:this.Ea.get(),Qd:this.Qd,Yw:h.get(),DF:null,Bo:this.Wg,ll:m.get(),df:this.Ra.get()}};
ajb=function(a,b,c,d,e){g.I.call(this);var f=this,h=QI(function(){return new fN(f.Aa)});
g.N(this,h);var l=QI(function(){return new gN(h,f.Aa)});
g.N(this,l);var m=QI(function(){return new QM});
g.N(this,m);var n=QI(function(){return new NM(a)});
g.N(this,n);var p=QI(function(){return new hN(h,l,f.Aa)});
g.N(this,p);var q=QI(function(){return new kN});
g.N(this,q);this.xn=QI(function(){return new Wib(b)});
g.N(this,this.xn);this.Ec=QI(function(){return new F1(b)});
g.N(this,this.Ec);this.Lb=QI(function(){return new RI(e)});
g.N(this,this.Lb);this.Ac=QI(function(){return new i1(b)});
g.N(this,this.Ac);this.Oc=QI(function(){return new k1(b)});
g.N(this,this.Oc);this.Yc=QI(function(){return new J1(b)});
g.N(this,this.Yc);this.hd=QI(function(){return new l1(b)});
g.N(this,this.hd);this.Aa=QI(function(){return new m1(b)});
g.N(this,this.Aa);var r=QI(function(){return new E1(d)});
g.N(this,r);var t=QI(function(){return new yI(f.Aa)});
g.N(this,t);this.Wf=QI(function(){return new K1(b)});
g.N(this,this.Wf);this.Ra=QI(function(){return new x1(b,q,f.Aa)});
g.N(this,this.Ra);var v=g1({Ra:this.Ra,Aa:this.Aa,Ne:t}),w=v.context;this.Qb=v.Qb;this.Bf=QI(function(){return new I1(b,f.Aa,f.Oa)});
g.N(this,this.Bf);this.zc=QI(function(){return new L1(b)});
g.N(this,this.zc);this.Ea=QI(function(){return new y1(b,f.Ra,f.Aa)});
g.N(this,this.Ea);v=QI(function(){return new GM(h,p,l,f.Aa,t,null,f.Ea,f.Wj,3)});
g.N(this,v);this.gf=QI(function(){return new VI});
this.ub=QI(function(){return new r1(f.Ea,b,f.Aa)});
g.N(this,this.ub);this.Oa=QI(function(){return new w1(b,m,f.ub,f.Ra,f.Qb,f.Aa)});
g.N(this,this.Oa);this.Qd=new MM(n,v,c,this.Aa,a,this.Ra,this.Ea,this.Ac);g.N(this,this.Qd);var A=new h1(b,this.Qd,this.Ea,this.Ra,this.Bf);this.wh=QI(function(){return A});
this.Nx=A;this.Ak=new LM(FJa,M1,function(C,F,H,M){return XJa(l.get(),C,F,H,M)},n,p,l,t,this.Aa,this.Ra);
g.N(this,this.Ak);this.Wj=new IM(n,p,this.wh,this.Bf,this.Ea,this.Aa,this.Oa,this.zc);g.N(this,this.Wj);this.Gg=new OM(n,p,this.Oc,this.wh,w);g.N(this,this.Gg);this.Td=new rM(this.Aa,n,p,v,this.Ra,this.Gg,c);g.N(this,this.Td);this.Rj=QI(function(){return new fJ(r,l,t,f.Aa,f.Oa,f.Ea,f.zc)});
g.N(this,this.Rj);this.We=QI(function(){return new gJ});
g.N(this,this.We);this.Wg=new UM(a,this.Ec,this.Aa);g.N(this,this.Wg);this.Zb=new VM(a);g.N(this,this.Zb);this.yh=new YM(a,this.wh,w);g.N(this,this.yh);this.Cf=new ZM(a,this.Oc,this.Ea,this.Ra,w);g.N(this,this.Cf);this.wx=new $M(a,this.Ra);g.N(this,this.wx);this.Me=new aN(a);g.N(this,this.Me);this.xk=new bN(a);g.N(this,this.xk);this.Hd=new dN(a);g.N(this,this.Hd);this.Re=QI(function(){return new RM});
g.N(this,this.Re);this.Bk=QI(function(){return new SM(f.Ea)});
g.N(this,this.Bk);this.Qj=QI(function(){return new AJ(f.Td,n,h)});
g.N(this,this.Qj);this.Zj=QI(function(){return new CJ(f.Aa,f.Oa,f.Me,f.ub)});
g.N(this,this.Zj);this.zk=QI(function(){return new qGa(a,f.Hd,f.Me,f.Ra,f.zc,f.Ea,f.Oa,q,f.Bf,f.ub,f.gf,f.Yc,f.Oc,f.Ac,f.hd,f.Lb,f.Wf,f.Aa,m,w)});
g.N(this,this.zk);this.Zt=QI(function(){return new EGa(f.Ec,f.Ea,f.Oa,m,f.xn,c,f.Aa,f.Ra)});
g.N(this,this.Zt);this.oh={xB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Wj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ak],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Qd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gg]]),Kt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Rj],["SLOT_TYPE_FORECASTING",this.We],["SLOT_TYPE_IN_PLAYER",this.We],["SLOT_TYPE_PLAYER_BYTES",this.We]]),dn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",
this.Wg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Zb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Zb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Zb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",
this.Cf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Cf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.wx],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.wx],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Me],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Hd]]),bv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Re],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.Re],["SLOT_TYPE_PLAYER_BYTES",
this.Bk]]),yu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qj],["SLOT_TYPE_FORECASTING",this.Zj],["SLOT_TYPE_PLAYER_BYTES",this.zk],["SLOT_TYPE_IN_PLAYER",this.Zt]])};this.listeners=[m.get()];this.SA={Td:this.Td,Yk:this.Aa.get(),kb:this.Lb.get(),DB:this.Ea.get(),Qd:this.Qd,Yw:h.get(),DF:null,Bo:this.Wg,ll:m.get(),df:this.Ra.get()}};
cjb=function(a,b,c,d){g.I.call(this);var e=this;this.j=bjb(function(){return e.B},a,b,c,d);
g.N(this,this.j);this.B=(new rCa(this.j)).C();g.N(this,this.B)};
N1=function(a){return a.j.SA};
bjb=function(a,b,c,d,e){try{var f=b.U();if(g.RR(f))var h=new Xib(a,b,c,d,e);else if(g.TR(f))h=new Yib(a,b,c,d,e);else if(MR(f))h=new Zib(a,b,c,d,e);else if(g.cG(f))h=new $ib(a,b,c,d,e);else if(g.HR(f))h=new ajb(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.U(),KF("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.j.cplatform,interface:h.j.c,xqb:h.j.cver,wqb:h.j.ctheme,vqb:h.j.cplayer,drb:h.playerStyle}),new Nib(a,b,c,d,e)}};
djb=function(a){xF.call(this,a)};
ejb=function(a,b,c,d,e){CF.call(this,a,{I:"div",S:"ytp-ad-timed-pie-countdown-container",V:[{I:"svg",S:"ytp-ad-timed-pie-countdown",X:{viewBox:"0 0 20 20"},V:[{I:"circle",S:"ytp-ad-timed-pie-countdown-background",X:{r:"10",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-inner",X:{r:"5",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-outer",X:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",b,c,d,e);this.ra=this.Fa("ytp-ad-timed-pie-countdown");this.D=this.Fa("ytp-ad-timed-pie-countdown-container");
this.B=this.Fa("ytp-ad-timed-pie-countdown-inner");this.G=this.Fa("ytp-ad-timed-pie-countdown-outer");this.C=Math.ceil(10*Math.PI);this.hide()};
fjb=function(a,b,c,d,e,f){cF.call(this,a,{I:"div",S:"ytp-ad-action-interstitial",X:{tabindex:"0"},V:[{I:"div",S:"ytp-ad-action-interstitial-background-container"},{I:"div",S:"ytp-ad-action-interstitial-slot",V:[{I:"div",S:"ytp-ad-action-interstitial-instream-info"},{I:"div",S:"ytp-ad-action-interstitial-card",V:[{I:"div",S:"ytp-ad-action-interstitial-image-container"},{I:"div",S:"ytp-ad-action-interstitial-headline-container"},{I:"div",S:"ytp-ad-action-interstitial-description-container"},{I:"div",
S:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",b,c,d);this.pT=e;this.dM=f;this.navigationEndpoint=this.j=this.skipButton=this.B=this.actionButton=null;this.Ga=this.Fa("ytp-ad-action-interstitial-instream-info");this.ra=this.Fa("ytp-ad-action-interstitial-image-container");this.Y=new uF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-action-interstitial-image");g.N(this,this.Y);this.Y.Ja(this.ra);this.Wa=this.Fa("ytp-ad-action-interstitial-headline-container");
this.G=new BF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-action-interstitial-headline");g.N(this,this.G);this.G.Ja(this.Wa);this.Va=this.Fa("ytp-ad-action-interstitial-description-container");this.C=new BF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-action-interstitial-description");g.N(this,this.C);this.C.Ja(this.Va);this.bb=this.Fa("ytp-ad-action-interstitial-background-container");this.Ma=new uF(this.api,this.layoutId,this.interactionLoggingClientData,
this.kb,"ytp-ad-action-interstitial-background",!0);g.N(this,this.Ma);this.Ma.Ja(this.bb);this.gb=this.Fa("ytp-ad-action-interstitial-action-button-container");this.slot=this.Fa("ytp-ad-action-interstitial-slot");this.Af=this.Fa("ytp-ad-action-interstitial-card");this.D=new KB;g.N(this,this.D);this.hide()};
gjb=function(a){var b=g.tf("html5-video-player");b&&g.Uv(b,"ytp-ad-display-override",a)};
kjb=function(a,b,c,d){cF.call(this,a,{I:"div",S:"ytp-ad-overlay-slot",V:[{I:"div",S:"ytp-ad-overlay-container"}]},"invideo-overlay",b,c,d);this.Y=[];this.gb=this.Ga=this.D=this.bb=this.Va=null;this.Wa=!1;this.G=null;this.ra=0;a=this.Fa("ytp-ad-overlay-container");this.Ma=new IF(a,45E3,6E3,.3,.4);g.N(this,this.Ma);this.C=hjb(this);g.N(this,this.C);this.C.Ja(a);this.B=ijb(this);g.N(this,this.B);this.B.Ja(a);this.j=jjb(this);g.N(this,this.j);this.j.Ja(a);this.hide()};
hjb=function(a){var b=new g.bF({I:"div",S:"ytp-ad-text-overlay",V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[mF(ljb)]}]},{I:"div",S:"ytp-ad-overlay-title",xa:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",xa:"{{description}}"},{I:"div",Ka:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],xa:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){O1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){O1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.PM);b.hide();return b};
ijb=function(a){var b=new g.bF({I:"div",Ka:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[mF(ljb)]}]},{I:"div",S:"ytp-ad-overlay-text-image",V:[{I:"img",X:{src:"{{imageUrl}}"}}]},{I:"div",S:"ytp-ad-overlay-title",xa:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",xa:"{{description}}"},{I:"div",Ka:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
xa:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){O1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){O1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.PM);a.T(b.Fa("ytp-ad-overlay-text-image"),"click",a.sca);b.hide();return b};
jjb=function(a){var b=new g.bF({I:"div",S:"ytp-ad-image-overlay",V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[mF(ljb)]}]},{I:"div",S:"ytp-ad-overlay-image",V:[{I:"img",X:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Fa("ytp-ad-overlay-image"),"click",function(c){O1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.PM);b.hide();return b};
mjb=function(a,b){if(b){var c=g.V(b,nM)||null;if(null==c)g.AE(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.tf("video-ads ytp-ad-module")||null,null==b)g.AE(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Ga=new g.bF({I:"div",S:"ytp-ad-overlay-ad-info-dialog-container"}),g.N(a,a.Ga),a.Ga.Ja(b),b=new AF(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,a.Ga.element,!1),g.N(a,b),b.init(SE("ad-info-hover-text-button"),
c,a.macros),a.G){b.Ja(a.G,0);b.subscribe("f",a.Y$,a);b.subscribe("e",a.KR,a);a.T(a.G,"click",a.Z$);var d=g.tf("ytp-ad-button",b.element);a.T(d,"click",function(){var e;if(g.V(null==(e=g.V(c.button,g.pM))?void 0:e.serviceEndpoint,Lya))a.Wa=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.gb=b}else g.AE(Error("Ad info button container within overlay ad was not present."))}else g.BE(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
ojb=function(a,b){if(njb(a,P1)||a.api.isMinimized())return!1;var c=dF(b.title),d=dF(b.description);if(g.fc(c)||g.fc(d))return!1;a.createServerVe(a.C.element,b.trackingParams||null);a.C.updateValue("title",dF(b.title));a.C.updateValue("description",dF(b.description));a.C.updateValue("displayUrl",dF(b.displayUrl));b.navigationEndpoint&&g.Mb(a.Y,b.navigationEndpoint);a.C.show();a.Ma.start();a.logVisibility(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.ra++});
return!0};
pjb=function(a,b){if(njb(a,P1)||a.api.isMinimized())return!1;var c=dF(b.title),d=dF(b.description);if(g.fc(c)||g.fc(d))return!1;a.createServerVe(a.B.element,b.trackingParams||null);a.B.updateValue("title",dF(b.title));a.B.updateValue("description",dF(b.description));a.B.updateValue("displayUrl",dF(b.displayUrl));a.B.updateValue("imageUrl",Txa(b.image));b.navigationEndpoint&&g.Mb(a.Y,b.navigationEndpoint);a.bb=b.imageNavigationEndpoint||null;a.B.show();a.Ma.start();a.logVisibility(a.B.element,!0);
a.T(a.B.element,"mouseover",function(){a.ra++});
return!0};
qjb=function(a,b){if(a.api.isMinimized())return!1;var c=Uxa(b.image),d=c;c.width<P1.width&&(d=P1);if(0===c.width||0===c.height||njb(a,d))return!1;a.createServerVe(a.j.element,b.trackingParams||null);a.j.updateValue("imageUrl",Txa(b.image));a.j.updateValue("width",c.width);a.j.updateValue("height",c.height);b.navigationEndpoint&&g.Mb(a.Y,b.navigationEndpoint);b=a.j.Fa("ytp-ad-image-overlay");g.Is(b,"max-width",c.width+"px");a.j.show();a.logVisibility(a.j.element,!0);a.T(a.j.element,"mouseover",function(){a.ra++;
a.api.lR("invideo-overlay",a.layoutId)});
a.T(a.j.element,"mouseout",function(){a.api.kR("invideo-overlay",a.layoutId)});
return!0};
njb=function(a,b){var c=a.api.ob().Vh(),d=a.api.Rn(!0,!1);return(b=tGa(c,c.height-(d.height+d.top),b))?(a.Va&&b&&(c=g.jd(a.macros),c.ERRORCODE=b.FH.toString(),c.ERROR_MSG=b.errorMessage,a.layoutId?TI(a.kb,a.Va,a.layoutId,c):g.AE(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
O1=function(a,b,c){var d=g.jd(a.macros),e=g.Us(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Ss(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.ra.toString()}};
b=g.u(a.Y);for(c=b.next();!c.done;c=b.next())c=c.value,a.layoutId?TI(a.kb,c,a.layoutId,d):g.AE(Error("Missing layoutId for invideo_overlay_ad."));a.api.pauseVideo()};
rjb=function(a,b){a=a.api.getRootNode();g.Uv(a,"ytp-ad-overlay-open",b);g.Uv(a,"ytp-ad-overlay-closed",!b)};
sjb=function(a,b,c,d,e){CF.call(this,a,{I:"div",S:"ytp-ad-message-overlay",V:[{I:"div",S:"ytp-ad-message-slot"}]},"ad-message",b,c,d,e);var f=this;this.G=-1;this.C=0;this.ra=!1;this.Ga=this.Fa("ytp-ad-message-slot");this.B=new g.bF({I:"span",S:"ytp-ad-message-container"});this.B.Ja(this.Ga);g.N(this,this.B);this.messageText=new BF(this.api,this.layoutId,this.interactionLoggingClientData,d,"ytp-ad-message-text");g.N(this,this.messageText);this.messageText.Ja(this.B.element);this.D=new g.FF(this.B,
400,!1,100,function(){f.hide()});
g.N(this,this.D);this.hide()};
tjb=function(a,b){a=a.api.getRootNode();g.Uv(a,"ytp-ad-overlay-open",b);g.Uv(a,"ytp-ad-overlay-closed",!b)};
ujb=function(a,b,c,d){cF.call(this,a,{I:"div",S:"ytp-ad-underlay-companion",V:[{I:"div",S:"ytp-ad-underlay-side-container",V:[{I:"div",S:"ytp-ad-underlay-image-container"},{I:"div",S:"ytp-ad-underlay-description-container"},{I:"div",S:"ytp-ad-underlay-headline-container"},{I:"div",S:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",b,c,d);this.actionButton=null;this.Ga=this.Fa("ytp-ad-underlay-image-container");this.C=new uF(this.api,this.layoutId,this.interactionLoggingClientData,
this.kb,"ytp-ad-underlay-image");g.N(this,this.C);this.C.Ja(this.Ga);this.ra=this.Fa("ytp-ad-underlay-headline-container");this.B=new BF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-underlay-headline");g.N(this,this.B);this.B.Ja(this.ra);this.Y=this.Fa("ytp-ad-underlay-description-container");this.D=new BF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-underlay-description");g.N(this,this.D);this.D.Ja(this.Y);this.G=this.Fa("ytp-ad-underlay-action-button-container");
this.j=this.Fa("ytp-ad-underlay-side-container");this.hide()};
vjb=function(a){var b=g.tf("html5-video-player");b&&g.Uv(b,"ytp-ad-display-override",a)};
Q1=function(a,b,c,d,e,f){f=void 0===f?function(){}:f;
cF.call(this,a,{I:"div",S:"ytp-ad-survey-answer"},"survey-answer",b,c,d);this.index=e;this.onSelected=f;this.j=null;this.toggledLoggingParams="";this.answer=this.Fa("ytp-ad-survey-answer");this.hide()};
wjb=function(a,b,c,d){cF.call(this,a,{I:"div",S:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",b,c,d);this.button=null;this.j=this.Fa("ytp-ad-survey-none-of-the-above");this.hide()};
R1=function(a,b,c,d){var e=["ytp-ad-survey-submit-button"];e.push("ytp-ad-survey-submit-button-rounded");nF.call(this,a,b,c,d,e,"survey-submit")};
S1=function(a,b,c,d,e){cF.call(this,a,{I:"div",S:"ytp-ad-survey-player-overlay",V:[{I:"div",S:"ytp-ad-survey-player-overlay-instream-info"},{I:"div",S:"ytp-ad-survey-player-overlay-skip-preview-submit",V:[{I:"div",S:"ytp-ad-survey-player-overlay-skip-or-preview"},{I:"div",S:"ytp-ad-survey-player-overlay-submit"}]},{I:"div",S:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",b,c,d);this.D=e;this.B=this.j=null;this.C=this.Fa("ytp-ad-survey-player-overlay-instream-info");
this.skipOrPreview=this.Fa("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Fa("ytp-ad-survey-player-overlay-submit");g.N(this,this.D);this.hide()};
T1=function(a,b,c,d,e,f){f=void 0===f?function(){}:f;
cF.call(this,a,{I:"div",S:"ytp-ad-survey-question",V:[{I:"div",Ka:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{I:"div",Ka:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{I:"div",Ka:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{I:"div",S:"ytp-ad-survey-question-background"}]},e,b,c,d);this.Ga=f;this.D=null;this.B=[];this.j=null;this.Y=this.api.U().experiments.fb("a11y_h5_associate_survey_question");this.question=this.Fa("ytp-ad-survey-question");
this.Ma=this.Fa("ytp-ad-survey-question-background");this.questionText=this.Fa("ytp-ad-survey-question-text");this.answers=this.Fa("ytp-ad-survey-answers");this.playerOverlay=this.Fa("ytp-ad-survey-question-player-overlay");this.C=g.lb()};
xjb=function(a,b){b=g.eF(b);g.Kf(a.questionText,b);a.Y&&a.questionText.setAttribute("id",SE("survey-question-text"))};
yjb=function(a,b,c,d){d=new Q1(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,d,a.Ga);d.Ja(a.answers);d.init(SE("survey-answer"),b,c);a.Y&&(b=a.questionText.getAttribute("id"),null!=b&&(null!==d.j?d.j.B.setAttribute("aria-describedby",b):d.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",b)));a.B.push(d)};
Ajb=function(a,b){if(b){var c=b.background;c&&g.V(c,zjb)&&(c=(c=g.V(c,zjb).image)&&tF(c)||"",g.fc(c)?g.BE(Error("Found ThumbnailDetails without valid image URL")):g.Is(a.Ma,"backgroundImage","url("+c+")"));if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.AE(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.C=g.lb();a.j=new UF(a.api,b.durationMilliseconds);g.N(a,a.j);if(a.j&&b.instreamAdPlayerOverlay&&g.V(b.instreamAdPlayerOverlay,
oHa))try{var d=new S1(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,a.j);d.Ja(a.playerOverlay);d.init(SE("survey-player-overlay"),g.V(b.instreamAdPlayerOverlay,oHa),a.macros);a.D=d;g.N(a,d);a.T0()}catch(e){g.AE(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.AE(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.j&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new aG(a.api,a.j),b.Ja(a.playerOverlay),
g.N(a,b)):g.AE(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.AE(Error("addCommonComponents() needs to be called before starting countdown."))};
Bjb=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.lb()-a.C).toString()})};
Cjb=function(a,b,c,d,e){T1.call(this,a,b,c,d,"survey-question-multi-select");this.ra=e;this.noneOfTheAbove=null;this.submitEndpoints=[];this.G=null;this.hide()};
Djb=function(a,b,c){a.noneOfTheAbove=new wjb(a.api,a.layoutId,a.interactionLoggingClientData,a.kb);a.noneOfTheAbove.Ja(a.answers);a.noneOfTheAbove.init(SE("survey-none-of-the-above"),b,c)};
Fjb=function(a){a.B.forEach(function(b){b.j.toggleButton(!1)});
Ejb(a,!0)};
Ejb=function(a,b){var c=a.D;a=Gjb(a);b=void 0===b?!1:b;c.j&&(a?c.j.hide():c.j.show(),b&&c.j instanceof RF&&!c.j.D&&$ya(c.j,!1));c.B&&(a?c.B.show():c.B.hide())};
Gjb=function(a){return a.B.some(function(b){return b.j.isToggled()})||a.noneOfTheAbove.button.isToggled()};
U1=function(a,b,c,d,e){T1.call(this,a,b,c,d,"survey-question-single-select",function(h){f.api.U().L("supports_multi_step_on_desktop")&&e([h])});
var f=this;this.hide()};
V1=function(a,b,c,d){cF.call(this,a,{I:"div",S:"ytp-ad-survey",V:[{I:"div",S:"ytp-ad-survey-questions"}]},"survey",b,c,d);this.questions=[];this.B=[];this.conditioningRules=[];this.j=0;this.G=this.Fa("ytp-ad-survey-questions");this.api.U().L("fix_survey_color_contrast_on_destop")&&this.Fa("ytp-ad-survey").classList.add("color-contrast-fix");this.api.U().L("web_enable_speedmaster")&&this.Fa("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()};
Jjb=function(a,b){var c=a.B[b],d;null==(d=a.C)||d.dispose();g.V(c,mM)?Hjb(a,g.V(c,mM),a.macros):g.V(c,lM)&&Ijb(a,g.V(c,lM),a.macros);a.j=b};
Hjb=function(a,b,c){var d=new U1(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,a.D.bind(a));d.Ja(a.G);d.init(SE("survey-question-single-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.N(a,d)};
Ijb=function(a,b,c){var d=new Cjb(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,a.D.bind(a));d.Ja(a.G);d.init(SE("survey-question-multi-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.N(a,d)};
W1=function(a,b,c,d){cF.call(this,a,{I:"div",S:"ytp-ad-survey-interstitial",V:[{I:"div",S:"ytp-ad-survey-interstitial-contents",V:[{I:"div",S:"ytp-ad-survey-interstitial-logo",V:[{I:"div",S:"ytp-ad-survey-interstitial-logo-image"}]},{I:"div",S:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",b,c,d);this.j=this.actionButton=null;this.interstitial=this.Fa("ytp-ad-survey-interstitial");this.B=this.Fa("ytp-ad-survey-interstitial-contents");this.text=this.Fa("ytp-ad-survey-interstitial-text");
this.logoImage=this.Fa("ytp-ad-survey-interstitial-logo-image");this.transition=new g.FF(this,500,!1,300);g.N(this,this.transition)};
Ljb=function(a,b){b=b&&tF(b)||"";if(g.fc(b))g.BE(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;var d=document.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=ula(d.style);b=new g.oe([c,Kba(Kjb,b)].map(Iba).join(""),ye);a.style.cssText=pe(b)}};
Mjb=function(a){var b=g.tf("html5-video-player");b&&g.Uv(b,"ytp-ad-display-override",a)};
X1=function(a){this.content=a.content;if(a.commandRuns){a=g.u(a.commandRuns);for(var b=a.next();!b.done;b=a.next())b=b.value,this.loggingDirectives=g.V(b,Njb),b.onTap&&(this.interaction={onTap:b.onTap})}};
Y1=function(a,b,c,d){cF.call(this,a,{I:"div",S:"ad-simple-attributed-string"},"ad-simple-attributed-string",b,c,d);this.hide()};
Z1=function(a,b,c,d){cF.call(this,a,{I:"span",S:"ytp-ad-badge"},"ad-badge",b,c,d);this.adBadgeText=new Y1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);this.adBadgeText.Ja(this.element);g.N(this,this.adBadgeText);this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()};
$1=function(a,b,c,d){cF.call(this,a,{I:"div",S:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",b,c,d);this.hide()};
a2=function(a,b,c,d,e,f){f=void 0===f?0:f;CF.call(this,a,{I:"div",S:"ytp-preview-ad",V:[{I:"div",S:"ytp-preview-ad__text"}]},"preview-ad",b,c,d,e);var h=this;this.ra=f;this.B=0;this.D=-1;this.C=this.Fa("ytp-preview-ad__text");switch(this.ra){case 1:this.C.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.FF(this,400,!1,100,function(){h.hide()});
g.N(this,this.transition);this.hide()};
b2=function(a,b,c,d){cF.call(this,a,{I:"img",S:"ytp-ad-avatar"},"ad-avatar",b,c,d);this.hide()};
Ojb=function(a){switch(a.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}};
c2=function(a,b,c,d){cF.call(this,a,{I:"button",S:"ytp-ad-button-vm"},"ad-button",b,c,d);this.buttonText=this.buttonIcon=null;this.hide()};
Pjb=function(a,b,c,d,e){CF.call(this,a,{I:"div",Ka:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],V:[{I:"div",S:"ytp-ad-avatar-lockup-card__avatar_and_text_container",V:[{I:"div",S:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",b,c,d,e);this.B=0;this.adAvatar=new b2(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);g.N(this,this.adAvatar);Df(this.element,this.adAvatar.element,0);this.headline=new Y1(this.api,this.layoutId,this.interactionLoggingClientData,
this.kb);g.N(this,this.headline);this.headline.Ja(this.Fa("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new Y1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);g.N(this,this.description);this.description.Ja(this.Fa("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new c2(this.api,this.layoutId,this.interactionLoggingClientData,
this.kb);g.N(this,this.adButton);this.adButton.Ja(this.element);this.hide()};
Qjb=function(a,b,c,d){cF.call(this,a,{I:"button",S:"ytp-skip-ad-button",V:[{I:"div",S:"ytp-skip-ad-button__text"}]},"skip-button",b,c,d);var e=this;this.B=!1;this.D=this.Fa("ytp-skip-ad-button__text");this.transition=new g.FF(this,500,!1,100,function(){e.hide()});
g.N(this,this.transition);this.j=new IF(this.element,15E3,5E3,.5,.5,!0);g.N(this,this.j);this.hide()};
Rjb=function(a,b,c,d,e){CF.call(this,a,{I:"div",S:"ytp-skip-ad"},"skip-ad",b,c,d,e);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.B=new a2(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j);g.N(this,this.B);this.B.Ja(this.element);this.C=new Qjb(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);g.N(this,this.C);this.C.Ja(this.element);this.hide()};
d2=function(a,b,c,d){cF.call(this,a,{I:"div",S:"ytp-visit-advertiser-link"},"visit-advertiser-link",b,c,d);this.hide()};
e2=function(a,b,c,d,e){cF.call(this,a,{I:"div",S:"ytp-ad-player-overlay-layout",V:[{I:"div",S:"ytp-ad-player-overlay-layout__player-card-container"},{I:"div",S:"ytp-ad-player-overlay-layout__ad-info-container"},{I:"div",S:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{I:"div",S:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",b,c,d);this.B=e;this.ra=this.Fa("ytp-ad-player-overlay-layout__player-card-container");this.j=this.Fa("ytp-ad-player-overlay-layout__ad-info-container");
this.G=this.Fa("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Y=this.Fa("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()};
f2=function(a,b,c){xF.call(this,a);this.api=a;this.kb=b;this.B={};a=new g.W({I:"div",Ka:["video-ads","ytp-ad-module"]});g.N(this,a);zR&&g.Qv(a.element,"ytp-ads-tiny-mode");this.G=new KD(a.element);g.N(this,this.G);g.UT(this.api,a.element,4);VHa(c)&&(c=new g.W({I:"div",Ka:["ytp-ad-underlay"]}),g.N(this,c),this.C=new KD(c.element),g.N(this,this.C),g.UT(this.api,c.element,0));g.N(this,tya())};
Sjb=function(a,b){a=g.hd(a.B,b.id,null);null==a&&g.BE(Error("Component not found for element id: "+b.id));return a||null};
Tjb=function(a){g.tV.call(this,a);var b=this;this.B=null;this.created=!1;this.C=a.U().L("h5_use_refactored_get_ad_break")?new Uhb(this.player):new f1(this.player);this.D=function(){if(null!=b.B)return b.B;var d=new aib({Bo:N1(b.j).Bo,df:N1(b.j).df,J:b.player,Yk:N1(b.j).Yk,Oa:b.j.j.Oa,ll:N1(b.j).ll,hd:b.j.j.hd});b.B=d.F4;return b.B};
this.j=new cjb(this.player,this,this.C,this.D);g.N(this,this.j);var c=a.U();!HI(c)||g.HR(c)||MR(c)||(g.N(this,new f2(a,N1(this.j).kb,N1(this.j).Yk)),g.N(this,new djb(a)))};
Ujb=function(a){a.created!==a.loaded&&KF("Created and loaded are out of sync")};
Xjb=function(a){g.tV.prototype.load.call(a);var b=N1(a.j).Yk;try{a.player.getRootNode().classList.add("ad-created")}catch(l){KF(l instanceof Error?l:String(l))}var c=a.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(!a.player.U().experiments.fb("debug_ignore_ad_placements")&&e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer}),h=((null==e?void 0:e.adSlots)||[]).map(function(l){return g.V(l,sM)});
e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;c&&c.dc();b=Vjb(f,h,b,N1(a.j).Yw);f=c&&c.clientPlaybackNonce||"";c=c&&c.Ap||!1;h=1E3*a.player.getDuration(1);Wjb(a);a.j.j.Nx.rk(f,h,c,b.qL,b.yW,b.qL,e,d)};
Wjb=function(a){var b,c;if(c=!((null==(b=a.player.getVideoData(1))?0:b.Ap)||g.xA("SERVED_VIA_SPF_HISTORY")))b=a.player.U(),c=HI(b)&&!g.GI(b)&&"desktop-polymer"===b.playerStyle;c&&(a=nYa(a.player),a.addEventListener("updateKevlarOrC3Companion",lza),a.addEventListener("updateEngagementPanelAction",nza),a.addEventListener("changeEngagementPanelVisibility",pza),window.addEventListener("yt-navigate-start",rza))};
g2=function(a,b){b===a.Xs&&(a.Xs=void 0)};
Yjb=function(a){var b=N1(a.j).Qd,c=b.D().FP("SLOT_TYPE_PLAYER_BYTES",1);b=b.Ra.get().Xd(1).clientPlaybackNonce;var d=!1;c=g.u(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f="SLOT_TYPE_PLAYER_BYTES"===e.slotType&&e.slotEntryTrigger instanceof FL?e.slotEntryTrigger.uv:void 0;f&&f===b&&(d&&KF("More than 1 preroll playerBytes slot detected",e),d=!0)}d||z1(N1(a.j).DB)};
Zjb=function(a){if(n1(N1(a.j).Yk))return!0;var b="";a=g.u(N1(a.j).ll.gj.keys());for(var c=a.next();!c.done;c=a.next()){c=c.value;if("SLOT_TYPE_PLAYER_BYTES"===c.slotType&&"core"===c.Ya)return!0;b+=c.slotType+" "}.01>Math.random()&&KF("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:b});return!1};
$jb=function(a){a=g.u(N1(a.j).ll.gj.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
sHa=function(a,b,c,d,e){c=void 0===c?[]:c;d=void 0===d?"":d;e=void 0===e?"":e;var f=N1(a.j).Yk,h=a.player.getVideoData(1);h&&h.getPlayerResponse();h&&h.dc();c=Vjb(b,c,f,N1(a.j).Yw);wHa(N1(a.j).Td,d,c.qL,c.yW,b,e)};
Vjb=function(a,b,c,d){b={qL:[],yW:b};a=g.u(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&null!=e.renderer){var f=e.renderer;if(!c.J.U().L("html5_enable_vod_lasr_with_notify_pacf")){var h=void 0,l=void 0,m=void 0,n=void 0,p=d;g.V(null==(n=f.sandwichedLinearAdRenderer)?void 0:n.adVideoStart,FM)?(h=g.V(null==(m=f.sandwichedLinearAdRenderer)?void 0:m.adVideoStart,FM),h=SJa(h,p),g.HE(f.sandwichedLinearAdRenderer.adVideoStart,FM,h)):g.V(null==(l=f.linearAdSequenceRenderer)?void 0:l.adStart,FM)&&
(m=g.V(null==(h=f.linearAdSequenceRenderer)?void 0:h.adStart,FM),h=SJa(m,p),g.HE(f.linearAdSequenceRenderer.adStart,FM,h))}b.qL.push(e)}return b};
g.h2=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=tma(a);return b.parseFromString(g.re(a),"application/xml")}throw Error("Your browser does not support loading xml documents");};
g.i2=function(a){g.I.call(this);this.callback=a;this.j=new dw(0,0,.4,0,.2,1,1,1);this.delay=new g.Hv(this.next,window,this);g.N(this,this.delay)};
g.akb=function(a){var b=a.U();return b.zd&&!b.C&&g.BR(b)?a.bd()?(a=a.Rn(),315<=Math.min(a.width,a.height)):!a.Pg():!1};
g.j2=function(a){g.W.call(this,{I:"div",S:"ytp-more-videos-view",X:{tabIndex:"-1"}});var b=this;this.api=a;this.B=!0;this.D=new g.YJ(this);this.C=[];this.suggestionData=[];this.columns=this.containerWidth=this.Y=this.G=this.j=0;this.title=new g.W({I:"h2",S:"ytp-related-title",xa:"{{title}}"});this.previous=new g.W({I:"button",Ka:["ytp-button","ytp-previous"],X:{"aria-label":"Show previous suggested videos"},V:[g.gF()]});this.N=new g.i2(function(c){b.suggestions.element.scrollLeft=-c});
this.next=new g.W({I:"button",Ka:["ytp-button","ytp-next"],X:{"aria-label":"Show more suggested videos"},V:[g.hF()]});g.N(this,this.D);this.K=a.U().D;g.N(this,this.title);this.title.Ja(this.element);this.suggestions=new g.W({I:"div",S:"ytp-suggestions"});g.N(this,this.suggestions);this.suggestions.Ja(this.element);g.N(this,this.previous);this.previous.Ja(this.element);this.previous.listen("click",this.H4,this);g.N(this,this.N);bkb(this);g.N(this,this.next);this.next.Ja(this.element);this.next.listen("click",
this.G4,this);this.D.T(this.api,"appresize",this.jc);this.D.T(this.api,"fullscreentoggled",this.Ox);this.D.T(this.api,"videodatachange",this.onVideoDataChange);this.jc(this.api.ob().getPlayerSize());this.onVideoDataChange()};
bkb=function(a){for(var b={vA:0};16>b.vA;b={vA:b.vA},++b.vA){var c=new g.W({I:"a",S:"ytp-suggestion-link",X:{href:"{{link}}",target:a.api.U().Y,"aria-label":"{{aria_label}}"},V:[{I:"div",S:"ytp-suggestion-image"},{I:"div",S:"ytp-suggestion-overlay",X:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{I:"div",S:"ytp-suggestion-title",xa:"{{title}}"},{I:"div",S:"ytp-suggestion-author",xa:"{{author_and_views}}"},{I:"div",X:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration",
xa:"{{duration}}"}]}]});g.N(a,c);var d=c.Fa("ytp-suggestion-link");g.Is(d,"transitionDelay",b.vA/20+"s");a.D.T(d,"click",function(e){return function(f){var h=e.vA;if(a.B){var l=a.suggestionData[h],m=l.sessionData;a.K&&a.api.L("web_player_log_click_before_generating_ve_conversion_params")?(a.api.logClick(a.C[h].element),h=l.bl(),l={},g.pYa(a.api,l,"emb_rel_pause"),h=g.to(h,l),g.mU(h,a.api,f)):g.lU(f,a.api,a.K,m||void 0)&&a.api.Zo(l.videoId,m,l.playlistId)}else f.preventDefault(),document.activeElement.blur()}}(b));
c.Ja(a.suggestions.element);a.C.push(c);a.api.createServerVe(c.element,c)}};
ckb=function(a){if(a.api.U().L("web_player_log_click_before_generating_ve_conversion_params"))for(var b=Math.floor(-a.j/(a.G+8)),c=Math.min(b+a.columns,a.suggestionData.length)-1;b<=c;b++)a.api.logVisibility(a.C[b].element,!0)};
g.k2=function(a){var b=a.api.Fh()?32:16;b=a.Y/2+b;a.next.element.style.bottom=b+"px";a.previous.element.style.bottom=b+"px";b=a.j;var c=a.containerWidth-a.suggestionData.length*(a.G+8);g.Uv(a.element,"ytp-scroll-min",0<=b);g.Uv(a.element,"ytp-scroll-max",b<=c)};
ekb=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.U(),l=d.suggestionData[c],m=d.C[c];f=d.api.bd()?l.shortViewCount||"":l.shortViewCount?l.author+" \u2022 "+l.shortViewCount:l.author;m.element.style.display="";e=m.Fa("ytp-suggestion-link");g.Is(e,"display","inline-block");dkb.test(l.title)&&(m.Fa("ytp-suggestion-title").dir="rtl");dkb.test(f)&&(m.Fa("ytp-suggestion-author").dir="rtl");e=l.isLivePlayback?"Live":l.lengthSeconds?g.WF(l.lengthSeconds):
"";var n=l.bl(d.api.bd());if(g.BR(h)&&!h.L("web_player_log_click_before_generating_ve_conversion_params")){var p={};g.CT(d.api,"addEmbedsConversionTrackingParams",[p]);n=g.to(n,g.XO(p,"emb_rel_pause"))}h.L("web_player_log_click_before_generating_ve_conversion_params")&&(h=(h=l.sessionData)&&h.itct)&&d.api.setTrackingParams(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.WJ||
g.AR?"will-change: opacity":void 0});f=m.Fa("ytp-suggestion-image");d=d.api.bd()?l.fh("hq2.jpg"):l.fh();f.style.backgroundImage=d?"url("+d+")":""}if(16>b)for(;16>b;++b)c=a.C[b].Fa("ytp-suggestion-link"),g.Is(c,"display","none");g.k2(a)};
aaa=[];ka="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
g.ha=caa(this);oa("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}
function c(f,h){this.j=f;ka(this,"description",{configurable:!0,writable:!0,value:h})}
if(a)return a;c.prototype.toString=function(){return this.j};
var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
oa("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.ha[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ka(d.prototype,a,{configurable:!0,writable:!0,value:function(){return daa(baa(this))}})}return a});
var fkb="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)ra(d,e)&&(a[e]=d[e])}return a};
oa("Object.assign",function(a){return a||fkb});
var faa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},gkb=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=faa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),hkb;
if("function"==typeof Object.setPrototypeOf)hkb=Object.setPrototypeOf;else{var ikb;a:{var jkb={a:!0},kkb={};try{kkb.__proto__=jkb;ikb=kkb.a;break a}catch(a){}ikb=!1}hkb=ikb?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ua=hkb;
va.prototype.Z=function(a){this.B=a};
va.prototype.return=function(a){this.C={return:a};this.j=this.G};
va.prototype.Ia=function(a){this.j=a};
oa("Reflect",function(a){return a?a:{}});
oa("Reflect.construct",function(){return gkb});
oa("Reflect.setPrototypeOf",function(a){return a?a:ua?function(b,c){try{return ua(b,c),!0}catch(d){return!1}}:null});
oa("Promise",function(a){function b(h){this.j=0;this.C=void 0;this.B=[];this.N=!1;var l=this.D();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.B=function(h){if(null==this.j){this.j=[];var l=this;this.C(function(){l.G()})}this.j.push(h)};
var e=g.ha.setTimeout;c.prototype.C=function(h){e(h,0)};
c.prototype.G=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.D(n)}}}this.j=null};
c.prototype.D=function(h){this.C(function(){throw h;})};
b.prototype.D=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:h(this.Ca),reject:h(this.G)}};
b.prototype.Ca=function(h){if(h===this)this.G(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.ra(h):this.K(h)}};
b.prototype.ra=function(h){var l=void 0;try{l=h.then}catch(m){this.G(m);return}"function"==typeof l?this.La(l,h):this.K(h)};
b.prototype.G=function(h){this.Z(2,h)};
b.prototype.K=function(h){this.Z(1,h)};
b.prototype.Z=function(h,l){if(0!=this.j)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.j);this.j=h;this.C=l;2===this.j&&this.Ha();this.Y()};
b.prototype.Ha=function(){var h=this;e(function(){if(h.qa()){var l=g.ha.console;"undefined"!==typeof l&&l.error(h.C)}},1)};
b.prototype.qa=function(){if(this.N)return!1;var h=g.ha.CustomEvent,l=g.ha.Event,m=g.ha.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.ha.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.C;return m(h)};
b.prototype.Y=function(){if(null!=this.B){for(var h=0;h<this.B.length;++h)f.B(this.B[h]);this.B=null}};
var f=new c;b.prototype.Ga=function(h){var l=this.D();h.zI(l.resolve,l.reject)};
b.prototype.La=function(h,l){var m=this.D();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(h,l){function m(r,t){return"function"==typeof r?function(v){try{n(r(v))}catch(w){p(w)}}:t}
var n,p,q=new b(function(r,t){n=r;p=t});
this.zI(m(h,n),m(l,p));return q};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.zI=function(h,l){function m(){switch(n.j){case 1:h(n.C);break;case 2:l(n.C);break;default:throw Error("Unexpected state: "+n.j);}}
var n=this;null==this.B?f.B(m):this.B.push(m);this.N=!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.u(h),p=n.next();!p.done;p=n.next())d(p.value).zI(l,m)})};
b.all=function(h){var l=g.u(h),m=l.next();return m.done?d([]):new b(function(n,p){function q(v){return function(w){r[v]=w;t--;0==t&&n(r)}}
var r=[],t=0;do r.push(void 0),t++,d(m.value).zI(q(r.length-1),p),m=l.next();while(!m.done)})};
return b});
oa("Object.setPrototypeOf",function(a){return a||ua});
oa("WeakMap",function(a){function b(m){this.j=(l+=Math.random()+1).toString();if(m){m=g.u(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(!ra(m,h)){var n=new c;ka(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(!ra(m,h))throw Error("WeakMap key fail: "+m);m[h][this.j]=n;return this};
b.prototype.get=function(m){return d(m)&&ra(m,h)?m[h][this.j]:void 0};
b.prototype.has=function(m){return d(m)&&ra(m,h)&&ra(m[h],this.j)};
b.prototype.delete=function(m){return d(m)&&ra(m,h)&&ra(m[h],this.j)?delete m[h][this.j]:!1};
return b});
oa("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l[1];return daa(function(){if(n){for(;n.head!=l[1];)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[0][n];if(p&&ra(l[0],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[0]={};this[1]=b();this.size=0;if(l){l=g.u(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.u([[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[0][n.id]=[]);n.entry?n.entry.value=m:(n.entry={next:this[1],previous:this[1].previous,head:this[1],key:l,value:m},n.list.push(n.entry),this[1].previous.next=n.entry,this[1].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[0][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[0]={};this[1]=this[1].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});
oa("Array.prototype.keys",function(a){return a?a:function(){return Ja(this,function(b){return b})}});
oa("Array.prototype.find",function(a){return a?a:function(b,c){return kaa(this,b,c).CM}});
oa("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=La(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}});
oa("Set",function(a){function b(c){this.j=new Map;if(c){c=g.u(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.size}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.u([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;
b.prototype.add=function(c){c=0===c?0:c;this.j.set(c,c);this.size=this.j.size;return this};
b.prototype.delete=function(c){c=this.j.delete(c);this.size=this.j.size;return c};
b.prototype.clear=function(){this.j.clear();this.size=0};
b.prototype.has=function(c){return this.j.has(c)};
b.prototype.entries=function(){return this.j.entries()};
b.prototype.values=function(){return this.j.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.j.forEach(function(f){return c.call(d,f,f,e)})};
return b});
oa("Array.prototype.entries",function(a){return a?a:function(){return Ja(this,function(b,c){return[b,c]})}});
oa("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=La(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h<f&&c<e;)if(d[c++]!=b[h++])return!1;return h>=f}});
oa("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
oa("String.prototype.repeat",function(a){return a?a:function(b){var c=La(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}});
oa("Array.prototype.values",function(a){return a?a:function(){return Ja(this,function(b,c){return c})}});
oa("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
oa("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
oa("Number.isSafeInteger",function(a){return a?a:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}});
oa("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}});
oa("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
oa("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)ra(b,d)&&c.push(b[d]);return c}});
oa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
oa("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}});
oa("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==La(this,b,"includes").indexOf(b,c||0)}});
oa("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
oa("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}});
oa("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}});
oa("Int8Array.prototype.fill",Na);oa("Uint8Array.prototype.fill",Na);oa("Uint8ClampedArray.prototype.fill",Na);oa("Int16Array.prototype.fill",Na);oa("Uint16Array.prototype.fill",Na);oa("Int32Array.prototype.fill",Na);oa("Uint32Array.prototype.fill",Na);oa("Float32Array.prototype.fill",Na);oa("Float64Array.prototype.fill",Na);oa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)ra(b,d)&&c.push([d,b[d]]);return c}});
oa("globalThis",function(a){return a||g.ha});
oa("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;
})})}});
oa("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}});
oa("String.prototype.padStart",function(a){return a?a:function(b,c){var d=La(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";return(0<b&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});
oa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return kaa(this,b,c).i}});
oa("Math.sign",function(a){return a?a:function(b){b=Number(b);return 0===b||isNaN(b)?b:0<b?1:-1}});
oa("WeakSet",function(a){function b(c){this.j=new WeakMap;if(c){c=g.u(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});
oa("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)}});
oa("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}});
oa("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}});
oa("Int8Array.prototype.copyWithin",Oa);oa("Uint8Array.prototype.copyWithin",Oa);oa("Uint8ClampedArray.prototype.copyWithin",Oa);oa("Int16Array.prototype.copyWithin",Oa);oa("Uint16Array.prototype.copyWithin",Oa);oa("Int32Array.prototype.copyWithin",Oa);oa("Uint32Array.prototype.copyWithin",Oa);oa("Float32Array.prototype.copyWithin",Oa);oa("Float64Array.prototype.copyWithin",Oa);oa("Array.prototype.findLastIndex",function(a){return a?a:function(b,c){return laa(this,b,c).i}});
oa("Int8Array.prototype.findLastIndex",Ra);oa("Uint8Array.prototype.findLastIndex",Ra);oa("Uint8ClampedArray.prototype.findLastIndex",Ra);oa("Int16Array.prototype.findLastIndex",Ra);oa("Uint16Array.prototype.findLastIndex",Ra);oa("Int32Array.prototype.findLastIndex",Ra);oa("Uint32Array.prototype.findLastIndex",Ra);oa("Float32Array.prototype.findLastIndex",Ra);oa("Float64Array.prototype.findLastIndex",Ra);
oa("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}});
oa("Number.parseInt",function(a){return a||parseInt});
oa("String.raw",function(a){return a?a:function(b,c){if(null==b)throw new TypeError("Cannot convert undefined or null to object");for(var d=b.raw,e=d.length,f="",h=0;h<e;++h)f+=d[h],h+1<e&&h+1<arguments.length&&(f+=String(arguments[h+1]));return f}});var zo,eb,maa;zo=zo||{};g.Ta=this||self;eb="closure_uid_"+(1E9*Math.random()>>>0);maa=0;g.k=sb.prototype;g.k.W6=function(a){var b=g.Ia.apply(1,arguments),c=this.jP(b);c?c.push(new paa(a)):this.A1(a,b)};
g.k.A1=function(a){this.j.set(this.nV(g.Ia.apply(1,arguments)),[new paa(a)])};
g.k.jP=function(){var a=this.nV(g.Ia.apply(0,arguments));return this.j.has(a)?this.j.get(a):void 0};
g.k.B8=function(){var a=this.jP(g.Ia.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.k.clear=function(){this.j.clear()};
g.k.nV=function(){var a=g.Ia.apply(0,arguments);return a?a.join(","):"key"};g.y(tb,sb);tb.prototype.B=function(a){var b=g.Ia.apply(1,arguments),c=0,d=this.B8(b);d&&(c=d.j);this.A1(c+a,b)};g.y(ub,sb);ub.prototype.nh=function(a){this.W6(a,g.Ia.apply(1,arguments))};g.k=g.I.prototype;g.k.Zy=!1;g.k.Na=function(){return this.Zy};
g.k.dispose=function(){this.Zy||(this.Zy=!0,this.va())};
g.k.addOnDisposeCallback=function(a,b){this.Zy?void 0!==b?a.call(b):a():(this.Kn||(this.Kn=[]),this.Kn.push(void 0!==b?(0,g.gb)(a,b):a))};
g.k.va=function(){if(this.Kn)for(;this.Kn.length;)this.Kn.shift()()};g.nb(xb,Error);xb.prototype.name="CustomError";var Tba;g.nb(yb,xb);yb.prototype.name="AssertionError";g.Ab.prototype.stopPropagation=function(){this.B=!0};
g.Ab.prototype.preventDefault=function(){this.defaultPrevented=!0};var saa,bs,Ys;saa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);
for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
g.lkb=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.bc=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
g.Ot=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.$r=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};
bs=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.bc)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
Ys=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.as=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 dc={};var iba=function(){if(!g.Ta.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{var c=function(){};
g.Ta.addEventListener("test",c,b);g.Ta.removeEventListener("test",c,b)}catch(d){}return a}();var mkb=Ya(1,!0),qc=Ya(610401301,!1),Dea;Ya(899588437,!1);Dea=Ya(188588736,!1);g.nkb=Ya(399321843,!0);g.okb=Ya(628162879,!0);Ya(2147483644,!1);Ya(2147483645,!1);Ya(2147483646,mkb);Ya(2147483647,!0);var rc=!!g.Xa("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var lc=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Haa=/&/g,Iaa=/</g,Jaa=/>/g,Kaa=/"/g,Laa=/'/g,Maa=/\x00/g,Gaa=/[\x00&<>"']/;var sc,pkb=g.Ta.navigator;sc=pkb?pkb.userAgentData||null:null;Mc[" "]=function(){};var Js,IY,whb,qkb,rkb,skb,yR,zR,tkb;g.AR=zc();g.Ks=Naa();g.NC=xc("Edge");g.UR=g.NC||g.Ks;Js=xc("Gecko")&&!(kc(g.pc(),"WebKit")&&!xc("Edge"))&&!(xc("Trident")||xc("MSIE"))&&!xc("Edge");g.Pc=kc(g.pc(),"WebKit")&&!xc("Edge");IY=Kc();whb=Uaa();g.mB=Taa();qkb=Hc();rkb=xc("iPad");skb=xc("iPod");yR=Ic();zR=kc(g.pc(),"KaiOS");
a:{var ukb="",vkb=function(){var a=g.pc();if(Js)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.NC)return/Edge\/([\d\.]+)/.exec(a);if(g.Ks)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Pc)return/WebKit\/(\S+)/.exec(a);if(g.AR)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
vkb&&(ukb=vkb?vkb[1]:"");if(g.Ks){var l2,wkb=g.Ta.document;l2=wkb?wkb.documentMode:void 0;if(null!=l2&&l2>parseFloat(ukb)){tkb=String(l2);break a}}tkb=ukb}var Xaa=tkb,Vaa={};var W0a=Yaa("AnimationEnd"),OYa=Yaa("TransitionEnd");g.nb(Qc,g.Ab);var xkb={2:"touch",3:"pen",4:"mouse"};
Qc.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)?Js&&(Nc(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:xkb[a.pointerType]||"";this.state=a.state;this.timeStamp=a.timeStamp;this.j=
a;a.defaultPrevented&&Qc.Of.preventDefault.call(this)};
Qc.prototype.stopPropagation=function(){Qc.Of.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
Qc.prototype.preventDefault=function(){Qc.Of.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var Zaa="closure_listenable_"+(1E6*Math.random()|0);var $aa=0;var fba="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.yI=!1)):(b=new aba(b,this.src,f,!!d,e),b.yI=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.Gb(e,b),0==e.length&&(delete this.listeners[a],this.j--),!0):!1};
g.k.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.listeners)if(!a||c==a){for(var d=this.listeners[c],e=0;e<d.length;e++)++b,Tc(d[e]);delete this.listeners[c];this.j--}return b};
g.k.NE=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 xd="closure_lm_"+(1E6*Math.random()|0),Bd={},kba=0,Cd="__closure_events_fn_"+(1E9*Math.random()>>>0);g.nb(g.Ed,g.I);g.Ed.prototype[Zaa]=!0;g.k=g.Ed.prototype;g.k.addEventListener=function(a,b,c,d){g.ud(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){mba(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.cS;if(b){var c=[];for(var d=1;b;b=b.cS)c.push(b),++d}b=this.Q6;d=a.type||a;if("string"===typeof a)a=new g.Ab(a,b);else if(a instanceof g.Ab)a.target=a.target||b;else{var e=a;a=new g.Ab(d,b);g.ld(a,e)}e=!0;if(c)for(var f=c.length-1;!a.B&&0<=f;f--){var h=a.currentTarget=c[f];e=Fd(h,d,!0,a)&&e}a.B||(h=a.currentTarget=b,e=Fd(h,d,!0,a)&&e,a.B||(e=Fd(h,d,!1,a)&&e));if(c)for(f=0;!a.B&&f<c.length;f++)h=a.currentTarget=c[f],e=Fd(h,d,!1,a)&&e;return e};
g.k.va=function(){g.Ed.Of.va.call(this);this.nm&&this.nm.removeAll(void 0);this.cS=null};
g.k.listen=function(a,b,c,d){return this.nm.add(String(a),b,!1,c,d)};
g.k.FF=function(a,b,c,d){return this.nm.add(String(a),b,!0,c,d)};
g.k.Pc=function(a,b,c,d){this.nm.remove(String(a),b,c,d)};
g.k.NE=function(a,b,c,d){return this.nm.NE(String(a),b,c,d)};
g.k.hasListener=function(a,b){return this.nm.hasListener(void 0!==a?String(a):void 0,b)};Gd.prototype.get=function(){if(0<this.B){this.B--;var a=this.j;this.j=a.next;a.next=null}else a=this.C();return a};var ykb={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};Rd.prototype.toString=function(){return this.j};
var rba={},qba={};Td("");var Wd;g.Yd.prototype.toString=function(){return this.H0+""};
var sba={};g.ce.prototype.toString=function(){return this.J0};
g.ie=new g.ce("about:invalid#zClosurez");var A1a=he("tel"),y1a=he("sms"),tba=[he("data"),he("http"),he("https"),he("mailto"),he("ftp"),new ee(function(a){return/^[^:]*([/?#]|$)/.test(a)})],uba=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var ye={};g.oe.prototype.toString=function(){return this.G0.toString()};
var pla=new g.oe("",ye),xba=RegExp("^[-+,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),wba=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),vba=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"),yba=/\/\*/;var Fba={};g.qe.prototype.toString=function(){return this.F0.toString()};
var zkb=/^[a-zA-Z0-9-]+$/,Akb={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Bkb={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Cba=new g.qe(g.Ta.trustedTypes&&g.Ta.trustedTypes.emptyHTML||"",Fba);ve.prototype.toString=function(){return this.j};we.prototype.toString=function(){return this.I0.toString()};var Ckb=Kd(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.re(Cba);return!b.parentElement});g.k=g.Ee.prototype;g.k.clone=function(){return new g.Ee(this.x,this.y)};
g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.k.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};g.k=g.Ke.prototype;g.k.clone=function(){return new g.Ke(this.width,this.height)};
g.k.area=function(){return this.width*this.height};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!this.area()};
g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};g.Dkb=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Uba={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=ef.prototype;g.k.Ib=function(a){return mf(this.j,a)};
g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))};
g.k.Fa=function(a){return g.tf(a,this.j)};
g.k.setProperties=uf;g.k.createElement=function(a){return wf(this.j,a)};
g.k.appendChild=g.Af;g.k.append=function(a,b){Yba(kf(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.Ef;g.k.getChildren=function(a){return void 0!=a.children?a.children:Array.prototype.filter.call(a.childNodes,function(b){return 1==b.nodeType})};
g.k.contains=g.Jf;var Nf;Rf.prototype.add=function(a,b){var c=eca.get();c.set(a,b);this.B?this.B.next=c:this.j=c;this.B=c};
Rf.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.B=null),a.next=null);return a};
var eca=new Gd(function(){return new Sf},function(a){return a.reset()});
Sf.prototype.set=function(a,b){this.qm=a;this.scope=b;this.next=null};
Sf.prototype.reset=function(){this.next=this.scope=this.qm=null};var bg,cg=!1,cca=new Rf;fca.prototype.reset=function(){this.context=this.B=this.C=this.j=null;this.D=!1};
var gca=new Gd(function(){return new fca},function(a){a.reset()});
g.fg.prototype.then=function(a,b,c){return qca(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
g.fg.prototype.$goog_Thenable=!0;g.k=g.fg.prototype;g.k.Dl=function(a,b){return qca(this,null,a,b)};
g.k.catch=g.fg.prototype.Dl;g.k.cancel=function(a){if(0==this.j){var b=new mg(a);g.dg(function(){mca(this,b)},this)}};
g.k.Oea=function(a){this.j=0;eg(this,2,a)};
g.k.Pea=function(a){this.j=0;eg(this,3,a)};
g.k.l8=function(){for(var a;a=nca(this);)oca(this,a,this.j,this.N);this.K=!1};
var uca=Pf;g.nb(mg,xb);mg.prototype.name="cancel";g.nb(g.ng,g.Ed);g.k=g.ng.prototype;g.k.enabled=!1;g.k.od=null;g.k.setInterval=function(a){this.Wi=a;this.od&&this.enabled?(this.stop(),this.start()):this.od&&this.stop()};
g.k.zea=function(){if(this.enabled){var a=g.lb()-this.EZ;0<a&&a<.8*this.Wi?this.od=this.uH.setTimeout(this.SW,this.Wi-a):(this.od&&(this.uH.clearTimeout(this.od),this.od=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.od||(this.od=this.uH.setTimeout(this.SW,this.Wi),this.EZ=g.lb())};
g.k.stop=function(){this.enabled=!1;this.od&&(this.uH.clearTimeout(this.od),this.od=null)};
g.k.va=function(){g.ng.Of.va.call(this);this.stop();delete this.uH};g.y(g.Cg,g.I);g.k=g.Cg.prototype;g.k.sendIsolatedPayload=function(a){this.G=a;this.C=1};
g.k.Xm=function(){var a=this.B.values();a=[].concat(g.qa(a)).filter(function(b){return b.j.size});
a.length&&this.N.flush(a,this.G);xca(a);this.D=0;this.j.enabled&&this.j.stop()};
g.k.Sj=function(a){var b=g.Ia.apply(1,arguments);this.B.has(a)||this.B.set(a,new tb(a,b))};
g.k.ND=function(a){var b=g.Ia.apply(1,arguments);this.B.has(a)||this.B.set(a,new ub(a,b))};
g.k.Qk=function(a){this.hN(a,1,g.Ia.apply(1,arguments))};
g.k.hN=function(a,b){var c=g.Ia.apply(2,arguments),d=wca(this,a);d&&d instanceof tb&&(d.B(b,c),vca(this))};
g.k.nh=function(a,b){var c=g.Ia.apply(2,arguments),d=wca(this,a);d&&d instanceof ub&&(d.nh(b,c),vca(this))};Aca.prototype.nh=function(a,b,c){this.j.nh("/client_streamz/bg/fil",a,b,c)};
Cca.prototype.nh=function(a,b,c){this.j.nh("/client_streamz/bg/fcd",a,b,c)};
Eca.prototype.nh=function(a,b,c){this.j.nh("/client_streamz/bg/fsl",a,b,c)};
Dg.prototype.nh=function(a,b,c,d,e){this.j.nh("/client_streamz/bg/wrl",a,b,c,d,e)};
Eg.prototype.nh=function(a,b,c){this.j.nh("/client_streamz/bg/el",a,b,c)};var Kh=void 0,Jh,pda="undefined"!==typeof TextDecoder,Mca,Lca="function"===typeof String.prototype.d$,Kca="undefined"!==typeof TextEncoder;var kB,lB;g.bR=Ac();kB=Hc()||xc("iPod");lB=xc("iPad");g.TUa=Paa();g.WJ=Bc();g.rC=Cc()&&!Ic();var Rca={},Kg=null,Sca=Js||g.Pc||"function"==typeof g.Ta.btoa;var ada="undefined"!==typeof Uint8Array,Vca=!g.Ks&&"function"===typeof btoa,Zca=/[-_.]/g,Xca={"-":"+",_:"/",".":"="},bda,Ng={};var dda;Og.prototype.isEmpty=function(){return null==this.j};
Og.prototype.sizeBytes=function(){var a=Yg(this);return a?a.length:0};var lda="function"===typeof Uint8Array.prototype.slice,dh=0,eh=0,Xea;jh.prototype.init=function(a,b,c,d){d=void 0===d?{}:d;this.lI=void 0===d.lI?!1:d.lI;a&&(a=ah(a),this.B=a.buffer,this.G=a.hx,this.D=b||0,this.C=void 0!==c?this.D+c:this.B.length,this.j=this.D)};
jh.prototype.free=function(){this.clear();100>Fh.length&&Fh.push(this)};
jh.prototype.clear=function(){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.lI=!1};
jh.prototype.reset=function(){this.j=this.D};
var Fh=[];Gh.prototype.free=function(){this.j.clear();this.B=this.D=-1;100>m2.length&&m2.push(this)};
Gh.prototype.reset=function(){this.j.reset();this.C=this.j.j;this.B=this.D=-1};
var m2=[];var sda,vda;Mh.prototype.length=function(){return this.j.length};
Mh.prototype.end=function(){var a=this.j;this.j=[];return a};var n2=Uh(),Vda=Uh("0di"),Mj=Uh("2ex"),hea=Uh("0dg");Math.max.apply(Math,g.qa(Object.values({xLa:1,rLa:2,iLa:4,h0a:8,g0a:16,lXa:32,Bva:64,Yfb:128,eIa:256,bIa:512,sLa:1024,FHa:2048,Ncb:4096,GHa:8192})));var Wh=n2?function(a,b){a[n2]|=b}:function(a,b){void 0!==a.Xn?a.Xn|=b:Object.defineProperties(a,{Xn:{value:b,
configurable:!0,writable:!0,enumerable:!1}})},Rj=n2?function(a,b){a[n2]&=~b}:function(a,b){void 0!==a.Xn&&(a.Xn&=~b)},si=n2?function(a){return a[n2]|0}:function(a){return a.Xn|0},Ij=n2?function(a){return a[n2]}:function(a){return a.Xn},Yh=n2?function(a,b){a[n2]=b;
return a}:function(a,b){void 0!==a.Xn?a.Xn=b:Object.defineProperties(a,{Xn:{value:b,
configurable:!0,writable:!0,enumerable:!1}});return a};var fj={},Dda={},Ekb,Qj,Fkb=[];Yh(Fkb,55);Qj=Object.freeze(Fkb);vi.prototype.next=function(){if(this.C<this.j.length){var a=this.j[this.C++];return{done:!1,value:this.B?this.B.call(this.D,a):a}}return{done:!0,value:void 0}};
vi.prototype[Symbol.iterator]=function(){return new vi(this.j,this.B,this.D)};
var wi,Jea;Object.freeze(new function(){});
Object.freeze(new Ida);var qea=Object.freeze(new Ida);var kea;var Oda=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var hj,jj,Wda;var Gkb=function(){try{var a=function(){return gkb(Map,[],this.constructor)};
g.y(a,Map);Mc(new a);return!1}catch(b){return!0}}();
g.k=lj.prototype;g.k.get=function(a){return this.j.get(a)};
g.k.set=function(a,b){this.j.set(a,b);this.size=this.j.size;return this};
g.k.delete=function(a){a=this.j.delete(a);this.size=this.j.size;return a};
g.k.clear=function(){this.j.clear();this.size=this.j.size};
g.k.has=function(a){return this.j.has(a)};
g.k.entries=function(){return this.j.entries()};
g.k.keys=function(){return this.j.keys()};
g.k.values=function(){return this.j.values()};
g.k.forEach=function(a,b){return this.j.forEach(a,b)};
lj.prototype[Symbol.iterator]=function(){return this.entries()};
var mj=function(){function a(){return gkb(Map,[],this.constructor)}
if(Gkb)return Object.setPrototypeOf(lj.prototype,Map.prototype),Object.defineProperties(lj.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),lj;g.y(a,Map);return a}();
g.y(nj,mj);g.k=nj.prototype;g.k.clear=function(){oj(this);mj.prototype.clear.call(this)};
g.k.delete=function(a){oj(this);return mj.prototype.delete.call(this,this.xF(a,!0,!1))};
g.k.entries=function(){var a=Array.from(mj.prototype.keys.call(this));return new vi(a,bea,this)};
g.k.keys=function(){return mj.prototype.keys.call(this)};
g.k.values=function(){var a=Array.from(mj.prototype.keys.call(this));return new vi(a,nj.prototype.get,this)};
g.k.forEach=function(a,b){var c=this;mj.prototype.forEach.call(this,function(d,e){a.call(b,c.get(e),e,c)})};
g.k.set=function(a,b){oj(this);a=this.xF(a,!0,!1);return null==a?this:null==b?(mj.prototype.delete.call(this,a),this):mj.prototype.set.call(this,a,this.eU(b,!0,!0,this.DM,!1,this.nI))};
g.k.has=function(a){return mj.prototype.has.call(this,this.xF(a,!1,!1))};
g.k.get=function(a){a=this.xF(a,!1,!1);var b=mj.prototype.get.call(this,a);if(void 0!==b){var c=this.DM;return c?(c=this.eU(b,!1,!0,c,this.Mob,this.nI),c!==b&&mj.prototype.set.call(this,a,c),c):b}};
nj.prototype[Symbol.iterator]=function(){return this.entries()};
nj.prototype.toJSON=void 0;nj.prototype.w$=Dda;g.k=T.prototype;g.k.toJSON=function(){return Ekb?cl(this,this.oa,!1):cl(this,Fj(this.oa,fea,void 0,void 0,!1),!0)};
g.k.Fk=function(){Ekb=!0;try{return JSON.stringify(this.toJSON(),dea)}finally{Ekb=!1}};
g.k.clone=function(){var a=this.oa;return ij(this.constructor,Jj(a,Ij(a),!1))};
g.k.hx=function(){return!!(si(this.oa)&2)};
g.k.GK=fj;g.k.toString=function(){return cl(this,this.oa,!1).toString()};var Gea=Symbol(),fl,gl,jl=Symbol(),Oea=Symbol(),Vl=Symbol(),Wl=Symbol(),Hkb=Xl(function(a,b,c){if(1!==a.B)return!1;Zl(b,c,Dh(a.j));return!0},$l),Ikb=Xl(function(a,b,c){if(1!==a.B)return!1;
a=Dh(a.j);Zl(b,c,0===a?void 0:a);return!0},$l),Jkb=Xl(function(a,b,c,d){if(1!==a.B)return!1;
ek(b,c,d,Dh(a.j));return!0},$l),Kkb=Xl(function(a,b,c){if(0!==a.B)return!1;
Zl(b,c,lh(a.j));return!0},am),Lkb=Xl(function(a,b,c){if(0!==a.B)return!1;
a=lh(a.j);Zl(b,c,0===a?void 0:a);return!0},am),Mkb=Xl(function(a,b,c,d){if(0!==a.B)return!1;
ek(b,c,d,lh(a.j));return!0},am),Nkb=Xl(function(a,b,c){if(0!==a.B)return!1;
Zl(b,c,Ah(a.j));return!0},bm),Okb=Xl(function(a,b,c){if(0!==a.B)return!1;
a=Ah(a.j);Zl(b,c,0===a?void 0:a);return!0},bm),Pkb=Xl(function(a,b,c,d){if(0!==a.B)return!1;
ek(b,c,d,Ah(a.j));return!0},bm),Qkb=Xl(function(a,b,c){if(1!==a.B)return!1;
Zl(b,c,Ch(a.j));return!0},function(a,b,c){Ada(a,c,Tda(b))}),Rkb=Yl(function(a,b,c){if(1!==a.B&&2!==a.B)return!1;
b=Sj(b,Ij(b),c,2,!1);if(2==a.B)for(c=Ah(a.j)>>>0,c=a.j.j+c;a.j.j<c;)b.push(Ch(a.j));else b.push(Ch(a.j));return!0},function(a,b,c){b=dl(Tda,b,!1);
if(null!=b)for(var d=0;d<b.length;d++)Ada(a,c,b[d])}),Skb=Xl(function(a,b,c){if(0!==a.B)return!1;
Zl(b,c,Eh(a.j));return!0},Yea),Tkb=Xl(function(a,b,c,d){if(0!==a.B)return!1;
ek(b,c,d,Eh(a.j));return!0},Yea),o2=Xl(function(a,b,c){if(2!==a.B)return!1;
Zl(b,c,Lh(a));return!0},Zea),Ukb=Yl(function(a,b,c){if(2!==a.B)return!1;
a=Lh(a);ak(b,c,rea,a);return!0},function(a,b,c){b=dl(dj,b,!0);
if(null!=b)for(var d=0;d<b.length;d++){var e=a,f=c,h=b[d];null!=h&&Rh(e,f,Nca(h))}}),Vkb=Xl(function(a,b,c,d){if(2!==a.B)return!1;
ek(b,c,d,Lh(a));return!0},Zea),Eea=new Sh(function(a,b,c,d,e){if(2!==a.B)return!1;
Ih(a,gk(b,d,c,!0),e);return!0},cm,!1,!0),Nea=new Sh(function(a,b,c,d,e){if(2!==a.B)return!1;
Ih(a,gk(b,d,c),e);return!0},cm,!1,!0),p2;
p2=new Sh(function(a,b,c,d,e){if(2!==a.B)return!1;d=P(void 0,d[0],d[1]);var f=Ij(b);ui(f);var h=Sj(b,f,c,3);f=Ij(b);si(h)&4&&(h=Th(h),Yh(h,(si(h)|1)&-2079),Nj(b,f,c,h));h.push(d);Ih(a,d,e);return!0},function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)cm(a,b[f],c,d,e)},!0,!0);
var q2=new Sh(function(a,b,c,d,e,f){if(2!==a.B)return!1;var h=Ij(b);ui(h);(f=ck(b,h,f))&&c!==f&&Nj(b,h,f);b=gk(b,d,c);Ih(a,b,e);return!0},cm,!1,!0),Wkb=Xl(function(a,b,c){if(2!==a.B)return!1;
Zl(b,c,qda(a));return!0},function(a,b,c){b=Uda(b);
null!=b&&Rh(a,c,ah(b).buffer)}),Xkb=Yl(function(a,b,c){if(2!==a.B)return!1;
a=qda(a);ak(b,c,rea,a);return!0},function(a,b,c){b=dl(Uda,b,!1);
if(null!=b)for(var d=0;d<b.length;d++){var e=a,f=c,h=b[d];null!=h&&Rh(e,f,ah(h).buffer)}}),r2=Xl(function(a,b,c){if(0!==a.B)return!1;
Zl(b,c,Ah(a.j)>>>0);return!0},function(a,b,c){b=Fi(b);
null!=b&&null!=b&&(Qh(a,c,0),Nh(a.j,b))}),Ykb=Xl(function(a,b,c){if(0!==a.B)return!1;
Zl(b,c,Ah(a.j));return!0},function(a,b,c){b=Ei(b);
null!=b&&(b=parseInt(b,10),Qh(a,c,0),yda(a.j,b))});g.y(em,T);em.wb=[1,2,3,4];g.y(fm,T);var lm=[1,2,3],Zkb=[0,lm,Vkb,Pkb,Tkb];var $kb=[0,p2,[0,Hkb,Kkb]];g.y(gm,T);var km=[1,2,3],alb=[0,km,Mkb,Jkb,q2,$kb];g.y(hm,T);hm.wb=[1];var blb=[0,p2,Zkb,alb];var clb=[0,[1,2,3],q2,[0,o2,-1,Skb],q2,[0,o2,-1,Nkb,Skb],q2,[0,o2]];g.y(im,T);im.prototype.Cr=function(){var a=zea(this,3,3,void 0,!0);Fda(a);return a[void 0]};
im.wb=[3,6,4];im.prototype.j=$ea([0,o2,clb,Ukb,p2,blb,Qkb,Rkb]);g.y(jm,T);jm.wb=[1];var gfa={};g.k=mm.prototype;g.k.isEnabled=function(){if(!g.Ta.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{KF: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.Jda;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.KF}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=lc(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,"",{KF:0,path:b,domain:c});return d};
g.k.On=function(){return nm(this).keys};
g.k.zm=function(){return nm(this).values};
g.k.isEmpty=function(){return!this.j.cookie};
g.k.clear=function(){for(var a=nm(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var cB=new mm("undefined"==typeof document?null:document);g.y(pm,T);pm.wb=[2];Km.prototype.setInterval=function(a){this.intervalMs=a;this.Ve&&this.enabled?(this.stop(),this.start()):this.Ve&&this.stop()};
Km.prototype.start=function(){var a=this;this.enabled=!0;this.Ve||(this.Ve=setTimeout(function(){a.tick()},this.intervalMs),this.B=this.j())};
Km.prototype.stop=function(){this.enabled=!1;this.Ve&&(clearTimeout(this.Ve),this.Ve=void 0)};
Km.prototype.tick=function(){var a=this;if(this.enabled){var b=Math.max(this.j()-this.B,0);b<.8*this.intervalMs?this.Ve=setTimeout(function(){a.tick()},this.intervalMs-b):(this.Ve&&(clearTimeout(this.Ve),this.Ve=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.Ve=void 0};g.y(Lm,T);g.y(Mm,T);g.Nm.prototype.B=0;g.Nm.prototype.reset=function(){this.j=this.C=this.D;this.B=0};
g.Nm.prototype.getValue=function(){return this.C};g.y(Pm,T);Pm.prototype.MJ=function(){return Bi(Lj(this,1))};g.y(Qm,T);g.y(Rm,T);Rm.wb=[1];g.y(Sm,T);var lfa=["platform","platformVersion","architecture","model","uaFullVersion"],Um=new Rm,Tm=null;g.y(Vm,T);g.y(Wm,T);Wm.wb=[1,2,3,4,5];g.y(Xm,T);g.y(Ym,T);Ym.prototype.L=function(){return Pj(this,Wm,7)};
Ym.prototype.qw=function(){return Oj(this,16)};
Ym.wb=[3,20,27];g.y(Zm,T);Zm.prototype.ZG=function(a){return S(this,2,a)};
Zm.wb=[3,5];g.y($m,T);var dlb=dm($m);$m.wb=[5,6,7];g.y(nfa,T);var s2;s2=new function(a,b){this.B=a;this.j=b;this.isRepeated=0;this.C=g.Hk;this.defaultValue=void 0}(175237375,nfa);g.y(cn,g.I);g.k=cn.prototype;g.k.va=function(){this.ZO();this.j.stop();this.qa.stop();g.I.prototype.va.call(this)};
g.k.dispatch=function(a){if(this.N)if(a instanceof Ym)this.log(a);else{var b=new Ym;a=a.Fk();b=Q(b,8,a);this.log(b)}};
g.k.log=function(a){if(this.N){a=a.clone();var b=this.Ha++;a=Xk(a,21,b);this.componentId&&Q(a,26,this.componentId);if(!wea(a)){var c=Date.now();b=a;c=Number.isFinite(c)?c.toString():"0";Oj(b,1,Ii(c))}null!=Mk(a,15)||Xk(a,15,60*(new Date).getTimezoneOffset());this.experimentIds&&(b=a,c=this.experimentIds.clone(),Ik(b,pm,16,c));b=this.C.length-1E3+1;0<b&&(this.C.splice(0,b),this.G+=b);this.C.push(a);this.hE||this.j.enabled||this.j.start()}};
g.k.flush=function(a,b){var c=this;if(0===this.C.length)a&&a();else{var d=Date.now();if(this.Ca>d&&this.Y<d)b&&b("throttled");else{this.network&&("function"===typeof this.network.MJ?qfa(this.B,this.network.MJ()):qfa(this.B,0));var e=this.B.build(this.C,this.G,this.Z,this.LB,0,0);d={};var f=this.zE();f&&(d.Authorization=f);this.K||(this.K=bn());try{var h=(new URL(this.K)).toString()}catch(m){h=(new URL(this.K,vf().location.origin)).toString()}h=new URL(h);this.sessionIndex&&(d["X-Goog-AuthUser"]=this.sessionIndex,
h.searchParams.set("authuser",this.sessionIndex));this.pageId&&(Object.defineProperty(d,"X-Goog-PageId",{value:this.pageId}),h.searchParams.set("pageId",this.pageId));if(f&&this.ra===f)b&&b("stale-auth-token");else{this.C=[];this.j.enabled&&this.j.stop();this.G=0;var l=e.Fk();d={url:h.toString(),body:l,Kob:1,requestHeaders:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis};h=function(m){c.D.reset();c.j.setInterval(c.D.getValue());if(m){var n=null;try{var p=
JSON.stringify(JSON.parse(m.replace(")]}'\n","")));n=dlb(p)}catch(q){}n&&(m=Number,p="-1",p=void 0===p?"0":p,p=Nk(wea(n),p),m=m(p),0<m&&(c.Y=Date.now(),c.Ca=c.Y+m),n=s2.j?s2.C(n,s2.j,s2.B,!0):s2.C(n,s2.B,null,!0),n=null===n?void 0:n)&&(n=Pk(n,1,-1),-1!==n&&(c.D=new g.Nm(1>n?1:n,3E5,.1),c.j.setInterval(c.D.getValue())))}a&&a();c.Z=0};
l=function(m,n){var p=uea(e,Ym);var q=Mk(e,14);g.Om(c.D);c.j.setInterval(c.D.getValue());401===m&&f&&(c.ra=f);q&&(c.G+=q);void 0===n&&(n=c.isRetryable(m));n&&(c.C=p.concat(c.C),c.hE||c.j.enabled||c.j.start());b&&b("net-send-failed",m);++c.Z};
c.network&&c.network.send(d,h,l)}}}};
g.k.ZO=function(){rfa(this.B,!0);this.flush();rfa(this.B,!1)};
g.k.isRetryable=function(a){return 500<=a&&600>a||401===a||0===a};
an.prototype.ZG=function(a){this.j.ZG(a);return this};
an.prototype.build=function(a,b,c,d,e,f){b=void 0===b?0:b;e=void 0===e?0:e;f=void 0===f?0:f;c=void 0===c?0:c;if(Pj(en(this),Sm,11)){var h=fn(this);Vk(h,3,c)}Pj(en(this),Sm,11)&&(c=fn(this),Vk(c,4,e));Pj(en(this),Sm,11)&&(e=fn(this),Vk(e,5,f));f=this.j.clone();e=Date.now().toString();f=Oj(f,4,Ii(e));a=Kk(f,Ym,3,a.slice());d&&(f=new Lm,d=Vk(f,13,d),f=new Mm,d=Ik(f,Lm,2,d),f=new Xm,d=Ik(f,Mm,1,d),d=S(d,2,9),Ik(a,Xm,18,d));b&&Xk(a,14,b);return a};gn.prototype.send=function(a,b,c){var d=this,e,f,h,l,m,n,p,q,r,t;return g.G(function(v){switch(v.j){case 1:return f=(e=d.N6?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,g.Ba(v,2,3),h=Object.assign({},{method:a.requestType,
headers:Object.assign({},a.requestHeaders)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&e?e.signal:null}),g.z(v,fetch(a.url,h),5);case 5:l=v.B;if(200!==l.status){null==(m=c)||m(l.status);v.Ia(3);break}if(null==(n=b)){v.Ia(7);break}return g.z(v,l.text(),8);case 8:n(v.B);case 7:case 3:g.Ea(v);clearTimeout(f);g.Fa(v,0);break;case 2:p=g.Da(v);switch(null==(q=p)?void 0:q.name){case "AbortError":null==(r=c)||r(408);break;default:null==(t=c)||t(400)}v.Ia(3)}})};
gn.prototype.MJ=function(){return 4};g.y(hn,g.I);hn.prototype.AX=function(){this.D=!0;return this};
hn.prototype.build=function(){this.network||(this.network=new gn);var a=new cn({logSource:this.logSource,zE:this.zE?this.zE:jfa,sessionIndex:this.sessionIndex,Yea:this.B,nx:this.C,hE:!1,AX:this.D,OW:this.OW,network:this.network});g.N(this,a);if(this.j){var b=this.j,c=dn(a.B);Q(c,7,b)}this.componentId&&(a.componentId=this.componentId);this.LB&&(a.LB=this.LB);this.pageId&&(a.pageId=this.pageId);this.qw&&((c=this.qw)?(a.experimentIds||(a.experimentIds=new pm),b=a.experimentIds,c=c.Fk(),Q(b,4,c)):a.experimentIds&&
Oj(a.experimentIds,4));sfa(a.B);this.network.ZG&&this.network.ZG(this.logSource);this.network.Zda&&this.network.Zda(a);return a};g.y(ln,g.I);ln.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new jm,c=[],d=0;d<a.length;d++){var e=a[d],f=g.afa(e);c.push(f);e.clear()}Kk(b,im,1,c);this.j.dispatch(b);this.j.flush()}};g.y(nn,Error);nn.prototype.toString=function(){var a="RpcError("+(tfa(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};ufa.prototype.Fk=function(a){var b=[];pn(this,a,b);return b.join("")};
var xfa={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},wfa=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;qn.prototype.C=null;qn.prototype.getOptions=function(){return this.C||(this.C=this.D())};var elb;g.nb(rn,qn);rn.prototype.j=function(){return new XMLHttpRequest};
rn.prototype.D=function(){return{}};
elb=new rn;var un=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Efa=/#|$/,Ffa=/[?&]($|#)/;g.nb(g.xo,g.Ed);var Nfa=/^https?$/i,flb=["POST","PUT"],Hfa=[];g.k=g.xo.prototype;g.k.v7=function(){this.dispose();g.Hb(Hfa,this)};
g.k.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Y+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Y=a;this.D="";this.B=0;this.Ha=!1;this.C=!0;this.j=this.N?this.N.j():elb.j();this.Ca=this.N?this.N.getOptions():elb.getOptions();this.j.onreadystatechange=(0,g.gb)(this.S_,this);try{this.getStatus(),this.Ga=!0,this.j.open(b,String(a),!0),this.Ga=!1}catch(h){this.getStatus();Kfa(this,h);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===
Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===typeof d.keys&&"function"===typeof d.get){e=g.u(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});
e=g.Ta.FormData&&a instanceof g.Ta.FormData;!g.Fb(flb,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.u(c);for(d=b.next();!d.done;d=b.next())c=g.u(d.value),d=c.next().value,c=c.next().value,this.j.setRequestHeader(d,c);this.La&&(this.j.responseType=this.La);"withCredentials"in this.j&&this.j.withCredentials!==this.K&&(this.j.withCredentials=this.K);try{Mfa(this),0<this.ra&&(this.getStatus(),this.qa=g.og(this.J5,this.ra,this)),this.getStatus(),this.Z=!0,this.j.send(a),
this.Z=!1}catch(h){this.getStatus(),Kfa(this,h)}};
g.k.J5=function(){"undefined"!=typeof zo&&this.j&&(this.D="Timed out after "+this.ra+"ms, aborting",this.B=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.k.abort=function(a){this.j&&this.C&&(this.getStatus(),this.C=!1,this.G=!0,this.j.abort(),this.G=!1,this.B=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),yo(this))};
g.k.va=function(){this.j&&(this.C&&(this.C=!1,this.G=!0,this.j.abort(),this.G=!1),yo(this,!0));g.xo.Of.va.call(this)};
g.k.S_=function(){this.Na()||(this.Ga||this.Z||this.G?Lfa(this):this.Gba())};
g.k.Gba=function(){Lfa(this)};
g.k.isActive=function(){return!!this.j};
g.k.isComplete=function(){return 4==g.Ao(this)};
g.k.getStatus=function(){try{return 2<g.Ao(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.D?this.D:String(this.D)};Fo.prototype.send=function(a,b,c){b=void 0===b?function(){}:b;
c=void 0===c?function(){}:c;
Ifa(a.url,function(d){d=d.target;Bo(d)?b(g.Co(d)):c(d.getStatus())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};
Fo.prototype.MJ=function(){return 1};Ho.prototype.done=function(){this.logger.Ur(this.j,Go()-this.startMillis)};
g.k=Pfa.prototype;g.k.vK=function(){};
g.k.Ur=function(){};
g.k.Lm=function(a){return a()};
g.k.NQ=function(a,b,c){return c};
g.k.TZ=function(){};
g.k.SZ=function(){};
g.k.RZ=function(){};
g.k=Qfa.prototype;g.k.vK=function(a){this.clientError.j.Qk("/client_streamz/bg/cec",a,this.dj)};
g.k.Ur=function(a,b){this.j.nh(b,a,this.dj)};
g.k.Lm=function(a,b){var c=Go();a=a();this.Ur(b,Go()-c);return a};
g.k.NQ=function(a,b,c){function d(h){var l=Go()-f;e.G.nh(l,a,b,h,e.dj)}
var e=this,f=Go();c.then(function(){d(0)},function(h){h instanceof nn?d(h.code):d(-1)});
return c};
g.k.TZ=function(a){this.D.j.Qk("/client_streamz/bg/po/csc",a,this.dj)};
g.k.SZ=function(a){this.C.j.Qk("/client_streamz/bg/po/ctav",a,this.dj)};
g.k.RZ=function(a){this.B.j.Qk("/client_streamz/bg/po/cwsc",a,this.dj)};var Sfa={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("")}};Ko.prototype.start=function(){this.startMillis=Jo()};
Ko.prototype.done=function(){null!=this.startMillis&&this.logger.Ur(this.event,Jo()-this.startMillis)};
g.k=Ufa.prototype;g.k.OQ=function(){};
g.k.Ur=function(){};
g.k.Lm=function(a){return a()};
g.k.iq=function(){};
g.k.Xm=function(){};
g.y(Lo,g.I);g.k=Lo.prototype;g.k.OQ=function(){this.ra.j.Qk("/client_streamz/bg/fsc",this.D,this.Mm)};
g.k.Ur=function(a,b){if("t"===a)this.qa.nh(b,this.D,this.Mm);else if("n"===a)this.Ca.nh(b,this.D,this.Mm);else if("h"===a||"u"===a||"k"===a||"P"===a||"p"===a){if(a=this.B.get(a))this.N.j.Qk("/client_streamz/bg/fcc",a,this.Mm),this.Z.nh(b,a,this.Mm)}else this.K.nh(b,a,this.Mm)};
g.k.Lm=function(a,b){var c=Jo();a=a();this.Ur(b,Jo()-c);return a};
g.k.iq=function(a){var b=this.C.get(a);b?this.Y.j.Qk("/client_streamz/bg/fiec",this.D,this.Mm,b):this.errorCount.j.Qk("/client_streamz/bg/cec",a,this.Mm)};
g.k.Xm=function(){this.j.Xm()};g.y(Mo,T);g.y(No,T);g.y(Oo,T);var aga=dm(Oo);Oo.messageId="bfkj";g.y(Qo,g.I);Qo.prototype.snapshot=function(a){var b=this;if(this.Na())throw Error("Already disposed");this.Lg.OQ();return this.C.then(function(c){var d=c.l7;return new Promise(function(e){var f=new Ko(b.Lg,"n");d(function(h){f.done();b.j&&b.Lg.Xm();e(h)},[a.Ct,
a.eea,a.l3,a.hea])})})};
Qo.prototype.Q1=function(a){var b=this;if(this.Na())throw Error("Already disposed");this.Lg.OQ();var c=this.Lg.Lm(function(){return b.D([a.Ct,a.eea,a.l3,a.hea])},"n");
this.j&&this.Lg.Xm();return c};
g.y(Ro,Error);g.y(Uo,T);g.y(Vo,T);g.y(Wo,T);Xo.prototype.sE=function(a,b){var c=this,d,e,f,h,l;return g.G(function(m){if(1==m.j){var n=new Uo;d=$k(n,1,c.dj);a&&$k(d,2,a);b&&$k(d,3,b);e=c.j();return g.z(m,c.client.create(d,e),2)}f=m.B;h=Zg(Xj(f,2));if(h.length)return m.return(cga(h));l=g.Hk(f,Oo,1);if(!l)throw Error("Missing field");return m.return(l)})};
Xo.prototype.OX=function(a){var b=this,c,d;return g.G(function(e){c=b.j();var f=new Vo;f=$k(f,1,b.dj);d=$k(f,2,a);f=e.return;var h=b.client;h=Kq(h.j,h.B+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},glb);return f.call(e,h)})};
Xo.prototype.ping=function(a,b){var c=this,d,e;return g.G(function(f){d=c.j();e=b||new Wo;var h=Q(e,1,c.dj);Q(h,2,a);return g.z(f,c.client.ping(e,d),0)})};var hlb,ega=null!=(hlb=Math.imul)?hlb:function(a,b){return a*b|0},Zo=[196,
200,224,18];$o.prototype.Fk=function(){return String(this.j)+","+this.B.join()};
$o.prototype.Dh=function(a,b){var c=void 0;if(this.B[this.j]!==a){var d=this.B.indexOf(a);-1!==d?(this.B.splice(d,1),d<this.j&&this.j--,this.B.splice(this.j,0,a)):(c=this.B[this.j],this.B[this.j]=a)}this.j=(this.j+1)%this.maxItems;a=dga("iU5q-!O9@$",this.Fk());c&&a&&b(c);return a};g.y(ap,g.I);ap.prototype.G=function(a){var b=this.j(a);return this.logger.Lm(function(){return g.Hg(b,2)},this.B)};
g.y(dp,ap);dp.prototype.j=function(a){var b=this;++this.N>=this.Z&&this.D.resolve();var c=a();a=this.logger.Lm(function(){return b.K(c)},"C");
if(void 0===a)throw new Ro(17,"YNJ:Undefined");if(!(a instanceof Uint8Array))throw new Ro(18,"ODM:Invalid");return a};
g.y(ep,ap);ep.prototype.j=function(){return this.K};
g.y(fp,ap);fp.prototype.j=function(){var a=this;return this.logger.Lm(function(){return Jg(a.K)},"d")};
fp.prototype.G=function(){return this.K};
g.y(gp,ap);gp.prototype.j=function(){if(this.K)return this.K;this.K=pga(this,function(a){return"_"+Tfa(a)});
return pga(this,function(a){return a})};
g.y(hp,ap);hp.prototype.j=function(a){var b=a();if(118<b.length)throw new Ro(19,"DFO:Invalid");a=Math.floor(Date.now()/1E3);var c=[255*Math.random(),255*Math.random()],d=c.concat([this.K&255,this.clientState],[a>>24&255,a>>16&255,a>>8&255,a&255]);a=new Uint8Array(2+d.length+b.length);a[0]=34;a[1]=d.length+b.length;a.set(d,2);a.set(b,2+d.length);b=a.subarray(2);for(d=c=c.length;d<b.length;++d)b[d]^=b[d%c];this.logger.TZ(this.clientState);return a};g.y(ip,g.I);ip.prototype.reportError=function(a){this.logger.vK(a.code);this.onError(a);return a};g.y(kp,T);var ilb=dm(kp);lp.prototype.AJ=function(){return this.C};
lp.prototype.getMetadata=function(){return this.B};mp.prototype.getMetadata=function(){return this.j};
mp.prototype.AJ=function(){return this.B};
mp.prototype.getStatus=function(){return null};np.prototype.getName=function(){return this.name};
np.prototype.getName=np.prototype.getName;var jlb=new np("/google.internal.waa.v1.Waa/Create",Uo,kp,function(a){return a.Fk()},ilb);g.y(op,T);var klb=dm(op);var glb=new np("/google.internal.waa.v1.Waa/GenerateIT",Vo,op,function(a){return a.Fk()},klb);g.y(pp,T);var llb=new np("/google.internal.waa.v1.Waa/Ping",Wo,pp,function(a){return a.Fk()},dm(pp));var Vga=new Set(["SAPISIDHASH","APISIDHASH"]);var Qga=Promise;g.y(qp,T);qp.prototype.getValue=function(){var a=Lj(this,2);if(Array.isArray(a)||a instanceof T)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Xj(this,2)};g.y(rp,T);rp.prototype.getMessage=function(){return Sk(this,2)};
var zga=dm(rp);rp.wb=[3];sp.prototype.on=function(a,b){"data"==a?this.C.push(b):"metadata"==a?this.G.push(b):"status"==a?this.K.push(b):"end"==a?this.D.push(b):"error"==a&&this.B.push(b);return this};
sp.prototype.removeListener=function(a,b){"data"==a?gq(this.C,b):"metadata"==a?gq(this.G,b):"status"==a?gq(this.K,b):"end"==a?gq(this.D,b):"error"==a&&gq(this.B,b);return this};
sp.prototype.cancel=function(){this.j.abort()};
sp.prototype.cancel=sp.prototype.cancel;sp.prototype.removeListener=sp.prototype.removeListener;sp.prototype.on=sp.prototype.on;g.nb(g.hq,qn);g.hq.prototype.j=function(){var a=new iq(this.K,this.G);this.B&&a.setCredentialsMode(this.B);return a};
g.hq.prototype.D=Id({});g.hq.prototype.setCredentialsMode=function(a){this.B=a};
g.nb(iq,g.Ed);g.k=iq.prototype;g.k.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.qa=a;this.Y=b;this.readyState=1;jq(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.Z,method:this.qa,credentials:this.G,cache:void 0};a&&(b.body=a);(this.ra||g.Ta).fetch(new Request(this.Y,b)).then(this.x9.bind(this),this.VJ.bind(this))};
g.k.abort=function(){this.response=this.responseText="";this.Z=new Headers;this.status=0;this.C&&this.C.cancel("Request was aborted.").catch(function(){});
1<=this.readyState&&this.j&&4!=this.readyState&&(this.j=!1,kq(this));this.readyState=0};
g.k.x9=function(a){if(this.j&&(this.D=a,this.B||(this.status=this.D.status,this.statusText=this.D.statusText,this.B=a.headers,this.readyState=2,jq(this)),this.j&&(this.readyState=3,jq(this),this.j)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.v9.bind(this),this.VJ.bind(this));else if("undefined"!==typeof g.Ta.ReadableStream&&"body"in a){this.C=a.body.getReader();if(this.K){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.N=new TextDecoder;Aga(this)}else a.text().then(this.w9.bind(this),this.VJ.bind(this))};
g.k.m9=function(a){if(this.j){if(this.K&&a.value)this.response.push(a.value);else if(!this.K){var b=a.value?a.value:new Uint8Array(0);if(b=this.N.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?kq(this):jq(this);3==this.readyState&&Aga(this)}};
g.k.w9=function(a){this.j&&(this.response=this.responseText=a,kq(this))};
g.k.v9=function(a){this.j&&(this.response=a,kq(this))};
g.k.VJ=function(){this.j&&kq(this)};
g.k.setRequestHeader=function(a,b){this.Z.append(a,b)};
g.k.getResponseHeader=function(a){return this.B?this.B.get(a.toLowerCase())||"":""};
g.k.getAllResponseHeaders=function(){if(!this.B)return"";for(var a=[],b=this.B.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
g.k.setCredentialsMode=function(a){this.G=a};
Object.defineProperty(iq.prototype,"withCredentials",{get:function(){return"include"===this.G},
set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.lq.prototype.toString=function(){var a=[],b=this.G;b&&a.push(sq(b,mlb,!0),":");var c=this.j;if(c||"file"==b)a.push("//"),(b=this.Z)&&a.push(sq(b,mlb,!0),"@"),a.push(g.Xe(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.D,null!=c&&a.push(":",String(c));if(c=this.B)this.j&&"/"!=c.charAt(0)&&a.push("/"),a.push(sq(c,"/"==c.charAt(0)?nlb:olb,!0));(c=this.C.toString())&&a.push("?",c);(c=this.K)&&a.push("#",sq(c,plb));return a.join("")};
g.lq.prototype.resolve=function(a){var b=this.clone(),c=!!a.G;c?g.mq(b,a.G):c=!!a.Z;c?b.Z=a.Z:c=!!a.j;c?g.nq(b,a.j):c=null!=a.D;var d=a.B;if(c)g.oq(b,a.D);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.jc(e,"./")||g.jc(e,"/.")){d=ec(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.C.toString();c?pq(b,a.C.clone()):c=!!a.K;c&&(b.K=a.K);return b};
g.lq.prototype.clone=function(){return new g.lq(this)};
var mlb=/[#\/\?@]/g,olb=/[#\?:]/g,nlb=/[#\?]/g,Cga=/[#\?@]/g,plb=/#/g;g.k=rq.prototype;g.k.add=function(a,b){vq(this);this.C=null;a=wq(this,a);var c=this.j.get(a);c||this.j.set(a,c=[]);c.push(b);this.B=this.B+1;return this};
g.k.remove=function(a){vq(this);a=wq(this,a);return this.j.has(a)?(this.C=null,this.B=this.B-this.j.get(a).length,this.j.delete(a)):!1};
g.k.clear=function(){this.j=this.C=null;this.B=0};
g.k.isEmpty=function(){vq(this);return 0==this.B};
g.k.forEach=function(a,b){vq(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.k.On=function(){vq(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.zm=function(a){vq(this);var b=[];if("string"===typeof a)Ega(this,a)&&(b=b.concat(this.j.get(wq(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){vq(this);this.C=null;a=wq(this,a);Ega(this,a)&&(this.B=this.B-this.j.get(a).length);this.j.set(a,[b]);this.B=this.B+1;return this};
g.k.get=function(a,b){if(!a)return b;a=this.zm(a);return 0<a.length?String(a[0]):b};
g.k.toString=function(){if(this.C)return this.C;if(!this.j)return"";for(var a=[],b=Array.from(this.j.keys()),c=0;c<b.length;c++){var d=b[c],e=g.Xe(d);d=this.zm(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+g.Xe(d[f]));a.push(h)}}return this.C=a.join("&")};
g.k.clone=function(){var a=new rq;a.C=this.C;this.j&&(a.j=new Map(this.j),a.B=this.B);return a};g.nb(g.yq,g.I);var qlb=[];g.k=g.yq.prototype;g.k.listen=function(a,b,c,d){Array.isArray(b)||(b&&(qlb[0]=b.toString()),b=qlb);for(var e=0;e<b.length;e++){var f=g.ud(a,b[e],c||this.handleEvent,d||!1,this.B||this);if(!f)break;this.j[f.key]=f}return this};
g.k.FF=function(a,b,c,d){return Hga(this,a,b,c,d)};
g.k.Pc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.Pc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.db(d)?!!d.capture:!!d,e=e||this.B||this,c=vd(c),d=!!d,b=Sc(a)?a.NE(b,c,d,e):a?(a=wd(a))?a.NE(b,c,d,e):null:null,b&&(Ad(b),delete this.j[b.key])};
g.k.removeAll=function(){g.Uc(this.j,function(a,b){this.j.hasOwnProperty(b)&&Ad(a)},this);
this.j={}};
g.k.va=function(){g.yq.Of.va.call(this);this.removeAll()};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Iga.prototype.isInputValid=function(){return this.C};zq.prototype.isInputValid=function(){return 3!=this.j};
zq.prototype.wf=function(){return this.K};
zq.prototype.iI=function(){return!0};
zq.prototype.parse=function(a){function b(m){m&128&&Aq(f,h,l,"invalid tag");2!=(m&7)&&Aq(f,h,l,"invalid wire type");f.C=m>>>3;1!=f.C&&2!=f.C&&15!=f.C&&Aq(f,h,l,"unexpected tag");f.j=1;f.B=0;f.D=0}
function c(m){f.D++;5==f.D&&m&240&&Aq(f,h,l,"message length too long");f.B|=(m&127)<<7*(f.D-1);m&128||(f.j=2,f.Z=0,"undefined"!==typeof Uint8Array?f.G=new Uint8Array(f.B):f.G=Array(f.B),0==f.B&&e())}
function d(m){f.G[f.Z++]=m;f.Z==f.B&&e()}
function e(){if(15>f.C){var m={};m[f.C]=f.G;f.N.push(m)}f.j=0}
for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;l<h.length;){switch(f.j){case 3:Aq(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.Y++;l++}a=f.N;f.N=[];return 0<a.length?a:null};Bq.prototype.isInputValid=function(){return null===this.j};
Bq.prototype.wf=function(){return this.j};
Bq.prototype.iI=function(){return!1};
Bq.prototype.parse=function(a){null!==this.j&&Kga(this,a,"stream already broken");var b=null;try{var c=this.C;c.C||Jga(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=Uca(c.j.slice(0,4*d))}catch(h){Jga(c,c.j,h.message)}c.B+=4*d;c.j=c.j.slice(4*d);e=f}b=null===e?null:this.D.parse(e)}catch(h){Kga(this,a,h.message)}this.B+=a.length;return b};var rlb={INIT:0,ED:1,yN:2,fz:3,GC:4,FC:5,STRING:6,sN:7,MV:8,aW:9,bW:10,cW:11,oU:12,pU:13,qU:14,rU:15,QV:16,RV:17,SV:18,u6:19,wN:20};g.k=Dq.prototype;g.k.isInputValid=function(){return 3!=this.G};
g.k.wf=function(){return this.Y};
g.k.done=function(){return 2===this.G};
g.k.iI=function(){return!1};
g.k.parse=function(a){function b(){for(;r<a.length;)if(Cq(a[r]))r++,f.C++;else break;return r<n}
function c(){for(var v;;){v=a[r++];if(!v)break;f.C++;switch(f.j){case m.INIT:"{"===v?f.j=m.yN:"["===v?f.j=m.GC:Cq(v)||Eq(f,a,r);continue;case m.sN:case m.yN:if(Cq(v))continue;if(f.j===m.sN)h.push(m.MV);else if("}"===v){e("{}");f.j=d();continue}else h.push(m.fz);'"'===v?f.j=m.STRING:Eq(f,a,r);continue;case m.MV:case m.fz:if(Cq(v))continue;":"===v?(f.j===m.fz&&(h.push(m.fz),f.B++),f.j=m.ED):"}"===v?(f.B--,e(),f.j=d()):","===v?(f.j===m.fz&&h.push(m.fz),f.j=m.sN):Eq(f,a,r);continue;case m.GC:case m.ED:if(Cq(v))continue;
if(f.j===m.GC)if(f.B++,f.j=m.ED,"]"===v){f.B--;if(0===f.B){f.j=m.FC;return}e("[]");f.j=d();continue}else h.push(m.FC);'"'===v?f.j=m.STRING:"{"===v?f.j=m.yN:"["===v?f.j=m.GC:"t"===v?f.j=m.aW:"f"===v?f.j=m.oU:"n"===v?f.j=m.QV:"-"!==v&&(-1!=="0123456789".indexOf(v)?f.j=m.wN:Eq(f,a,r));continue;case m.FC:if(","===v)h.push(m.FC),f.j=m.ED,1===f.B&&(q=r);else if("]"===v){f.B--;if(0===f.B)return;e();f.j=d()}else if(Cq(v))continue;else Eq(f,a,r);continue;case m.STRING:var w=r;a:for(;;){for(;0<f.Z;)if(v=a[r++],
4===f.Z?f.Z=0:f.Z++,!v)break a;if('"'===v&&!f.N){f.j=d();break}if("\\"===v&&!f.N&&(f.N=!0,v=a[r++],!v))break;if(f.N)if(f.N=!1,"u"===v&&(f.Z=1),v=a[r++])continue;else break;l.lastIndex=r;v=l.exec(a);if(!v){r=a.length+1;break}r=v.index+1;v=a[v.index];if(!v)break}f.C+=r-w;continue;case m.aW:if(!v)continue;"r"===v?f.j=m.bW:Eq(f,a,r);continue;case m.bW:if(!v)continue;"u"===v?f.j=m.cW:Eq(f,a,r);continue;case m.cW:if(!v)continue;"e"===v?f.j=d():Eq(f,a,r);continue;case m.oU:if(!v)continue;"a"===v?f.j=m.pU:
Eq(f,a,r);continue;case m.pU:if(!v)continue;"l"===v?f.j=m.qU:Eq(f,a,r);continue;case m.qU:if(!v)continue;"s"===v?f.j=m.rU:Eq(f,a,r);continue;case m.rU:if(!v)continue;"e"===v?f.j=d():Eq(f,a,r);continue;case m.QV:if(!v)continue;"u"===v?f.j=m.RV:Eq(f,a,r);continue;case m.RV:if(!v)continue;"l"===v?f.j=m.SV:Eq(f,a,r);continue;case m.SV:if(!v)continue;"l"===v?f.j=d():Eq(f,a,r);continue;case m.u6:"."===v?f.j=m.wN:Eq(f,a,r);continue;case m.wN:if(-1!=="0123456789.eE+-".indexOf(v))continue;else r--,f.C--,f.j=
d();continue;default:Eq(f,a,r)}}}
function d(){var v=h.pop();return null!=v?v:m.ED}
function e(v){1<f.B||(v||(v=-1===q?f.D+a.substring(p,r):a.substring(q,r)),f.qa?f.K.push(v):f.K.push(JSON.parse(v)),q=r)}
for(var f=this,h=f.ra,l=f.Ca,m=rlb,n=a.length,p=0,q=-1,r=0;r<n;)switch(f.G){case 3:return Eq(f,a,r),null;case 2:return b()&&Eq(f,a,r),null;case 0:if(b()){var t=a[r++];f.C++;if("["===t){f.G=1;p=r;f.j=m.GC;continue}else Eq(f,a,r)}return null;case 1:return c(),0===f.B&&f.j==m.FC?(f.G=2,f.D=a.substring(r)):f.D=-1===q?f.D+a.substring(p):a.substring(q),0<f.K.length?(t=f.K,f.K=[],t):null}return null};Fq.prototype.isInputValid=function(){return null===this.G};
Fq.prototype.wf=function(){return this.G};
Fq.prototype.iI=function(){return!1};
Fq.prototype.parse=function(a){function b(m){f.B=6;f.G="The stream is broken @"+f.j+"/"+h+". Error: "+m+". With input:\n";throw Error(f.G);}
function c(){f.C=new Dq({Gob:!0,R7:!0})}
function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.D.push(p)}}
function e(m){if(m){(f.K||1<m.length)&&b("extra status: "+m);f.K=!0;var n={};n[2]=m[0];f.D.push(n)}}
for(var f=this,h=0;h<a.length;){var l;if(l=2!==f.B){a:{for(;h<a.length;){if(!Cq(a[h])){l=!0;break a}h++;f.j++}l=!1}l=!l}if(l)return null;switch(f.B){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.B=1,h++,f.j++):b("unexpected input token");break;case 1:"["===a[h]?(f.B=2,c()):","===a[h]||"null,"==a.slice(h,h+5)?f.B=3:"]"===a[h]?(f.B=5,h++,f.j++):b("unexpected input token");break;case 2:l=f.C.parse(a.substring(h));d(l);f.C.done()?(f.B=3,l=f.C.D,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.B=4,c(),f.C.parse("["),h+=","===a[h]?1:5,f.j++):"]"===a[h]&&(f.B=5,h++,f.j++);break;case 4:l=f.C.parse(a.substring(h));e(l);f.C.done()?(f.B=5,l=f.C.D,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.D.length?(a=f.D,f.D=[],a):null};Gq.prototype.LP=function(){return this.j};
Gq.prototype.getStatus=function(){return this.D};
Gq.prototype.qa=function(a){a=a.target;try{if(a==this.j)a:{var b=g.Ao(this.j),c=this.j.B,d=this.j.getStatus(),e=g.Co(this.j);a=[];if(g.Do(this.j)instanceof Array){var f=g.Do(this.j);0<f.length&&f[0]instanceof Uint8Array&&(this.Y=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?Hq(this,7):7==c?Hq(this,8):d||Hq(this,3)),this.B||(this.B=Lga(this.j),null==this.B&&Hq(this,5)),2<this.D)Iq(this);else{if(a.length>this.C){var h=a.length;c=[];try{if(this.B.iI())for(var l=0;l<h;l++){var m=
this.B.parse(Array.from(a[l]));m&&(c=c.concat(m))}else{m="";if(!this.K){if("undefined"===typeof TextDecoder)throw Error("TextDecoder is not supported by this browser.");this.K=new TextDecoder}for(l=0;l<h;l++)m+=this.K.decode(a[l],{stream:4==b&&l==h-1});c=this.B.parse(m)}a.splice(0,h);c&&this.G(c)}catch(p){Hq(this,5);Iq(this);break a}}else if(e.length>this.C){l=e.slice(this.C);this.C=e.length;try{var n=this.B.parse(l);null!=n&&this.G&&this.G(n)}catch(p){Hq(this,5);Iq(this);break a}}4==b?(0!=e.length||
this.Y?Hq(this,2):Hq(this,4),Iq(this)):Hq(this,1)}}}catch(p){Hq(this,6),Iq(this)}};g.k=Mga.prototype;g.k.on=function(a,b){var c=this.B[a];c||(c=[],this.B[a]=c);c.push(b);return this};
g.k.addListener=function(a,b){this.on(a,b);return this};
g.k.removeListener=function(a,b){var c=this.B[a];c&&g.Hb(c,b);(a=this.j[a])&&g.Hb(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.Baa=function(a){var b=this.B.data;b&&Nga(a,b);(b=this.j.data)&&Nga(a,b);this.j.data=[]};
g.k.pca=function(){switch(this.C.getStatus()){case 1:Jq(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Jq(this,"error");break;case 8:Jq(this,"close");break;case 2:Jq(this,"end")}};Oga.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Pga(function(h){var l=h.AJ(),m=h.getMetadata(),n=Sga(e,!1);m=Tga(e,m,n,f+l.getName());var p=Uga(n,l.B,!0);h=l.j(h.j);n.send(m,"POST",h);return p},this.D).call(this,uga(d,b,c))};Lq.prototype.create=function(a,b){return Kq(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},jlb)};
Lq.prototype.ping=function(a,b){return Kq(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},llb)};var slb=1,Sq=new WeakMap;g.y(Mq,g.I);Mq.prototype.signal=function(){var a=new Oq(!1);this.signals.add(a);g.N(this,a);return a};
Mq.prototype.OA=function(a){this.signals.has(a);return a.OA()};
g.y(Oq,g.I);g.k=Oq.prototype;g.k.SN=function(){var a=this,b=slb++;Pq(function(){Xga(a,b)});
return b};
g.k.detach=function(a){var b=this;Pq(function(){var c=b.slots.get(a);c&&c.wX()})};
g.k.value=function(a){return this.promise(!0,a)};
g.k.OA=function(){return this.CZ};
g.k.next=function(a){return this.promise(!1,a)};
g.k.promise=function(a,b){var c=this,d=lca();Pq(function(){if(c.Na())d.reject(new mg("Signal initially disposed"));else if(b&&b.Na())d.reject(new mg("Owner initially disposed"));else if(a&&c.TW&&c.MY)d.resolve(c.CZ);else if(c.UB.add(d),lg(d.promise,function(){c.UB.delete(d)}),b){var e=function(){d.reject(new mg("Owner asynchronously disposed"))};
lg(d.promise,function(){var f=Sq.get(b);f&&g.Hb(f,e)});
aha(b,e)}});
return d.promise};
g.k.va=function(){var a=this;g.I.prototype.va.call(this);Pq(function(){for(var b=g.u(a.slots.values()),c=b.next();!c.done;c=b.next())c=c.value.wX,c();a.slots.clear();b=g.u(a.UB);for(c=b.next();!c.done;c=b.next())c.value.reject(new mg("Signal asynchronously disposed"));a.UB.clear()})};
var Qq=[],Rq=!1;g.y(Tq,g.I);Tq.prototype.start=function(){var a=this;if(this.Na())throw new Vq("Cannot start a disposed timer.");if(!this.K){this.D=0;if(this.N){var b=Date.now();this.handle=setInterval(function(){a.D=0<a.milliseconds?Math.trunc((Date.now()-b)/a.milliseconds):a.D+1;var c;null==(c=a.B)||c.resolve();a.B=void 0;if(a.C){var d;null==(d=a.j)||Nq(d,a.C,a)}a.Fb.SR(a)},this.milliseconds)}else this.handle=setTimeout(function(){a.state=3;
a.handle=void 0;a.D=1;var c;null==(c=a.B)||c.resolve();a.B=void 0;if(a.C){var d;null==(d=a.j)||Nq(d,a.C,a)}a.Fb.SR(a)},this.milliseconds);
this.state=1}};
Tq.prototype.cancel=function(){if(this.K){this.clear();this.state=2;var a;null==(a=this.B)||a.reject(new Uq);var b;null==(b=this.Fb.y_)||b.call(this);if(this.G){var c;null==(c=this.j)||Nq(c,this.G)}}};
Tq.prototype.va=function(){this.clear();var a;null==(a=this.B)||a.reject(new Vq);this.state=4;g.I.prototype.va.call(this)};
Tq.prototype.clear=function(){this.N?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0};
g.ha.Object.defineProperties(Tq.prototype,{K:{configurable:!0,enumerable:!0,get:function(){return 1===this.state}},
isCancelled:{configurable:!0,enumerable:!0,get:function(){return 2===this.state}},
isExpired:{configurable:!0,enumerable:!0,get:function(){return 3===this.state}},
tick:{configurable:!0,enumerable:!0,get:function(){return this.D}},
Z:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return null!=this.B||(this.B=new g.Po),this.B.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new Uq("Timer has been cancelled."));case 4:return Promise.reject(new Vq("Timer has been disposed."));default:Ne(this.state)}}},
SR:{configurable:!0,enumerable:!0,get:function(){if(this.Na())throw new Vq("Cannot attach a signal to a disposed timer.");this.C||(null!=this.j||(this.j=new Mq(this)),this.C=this.j.signal());return this.C}},
y_:{configurable:!0,enumerable:!0,get:function(){if(this.Na())throw new Vq("Cannot attach a signal to a disposed timer.");this.G||(null!=this.j||(this.j=new Mq(this)),this.G=this.j.signal());return this.G}}});
g.y(Uq,xb);g.y(Vq,xb);g.y(Wq,ip);g.k=Wq.prototype;g.k.isReady=function(){return!!this.j};
g.k.ready=function(){var a=this;return g.G(function(b){return g.z(b,a.D.promise,0)})};
g.k.sE=function(a){return eha(this,this.logger.NQ("c",void 0===a?1:a,this.Zz.sE(To().j,null)),new Ro(10,"JVZ:Timeout"))};
g.k.prefetch=function(){1===this.state&&(this.B=this.sE())};
g.k.start=function(){if(1===this.state){this.state=2;var a=new Ho(this.logger,"r");this.ready().finally(function(){return void a.done()});
gha(this)}};var kha={NONE:0,Oya:1},Rha={R3:0,i6a:1,h6a:2,j6a:3},is={z3:"a",mya:"d",VIDEO:"v"};Yq.prototype.isVisible=function(){return this.ix?.3<=this.Be:.5<=this.Be};var Kr={Mva:0,lFa:1},Pha={NONE:0,AKa:1,JHa:2};Zq.prototype.getValue=function(){return this.B};
g.y($q,Zq);$q.prototype.C=function(a){null===this.B&&g.ed(this.D,a)&&(this.B=a)};
g.y(ar,Zq);ar.prototype.C=function(a){null===this.B&&"number"===typeof a&&(this.B=a)};
g.y(Er,Zq);Er.prototype.C=function(a){null===this.B&&"string"===typeof a&&(this.B=a)};Fr.prototype.disable=function(){this.B=!1};
Fr.prototype.enable=function(){this.B=!0};
Fr.prototype.isEnabled=function(){return this.B};
Fr.prototype.reset=function(){this.j={};this.B=!0;this.C={}};var $s=document,Or=window;var Tia=!g.Ks&&!Cc();Lr.prototype.now=function(){return 0};
Lr.prototype.B=function(){return 0};
Lr.prototype.C=function(){return 0};
Lr.prototype.j=function(){return 0};g.y(Nr,Lr);Nr.prototype.now=function(){return Mr()&&Or.performance.now?Or.performance.now():Lr.prototype.now.call(this)};
Nr.prototype.B=function(){return Mr()&&Or.performance.memory?Or.performance.memory.totalJSHeapSize||0:Lr.prototype.B.call(this)};
Nr.prototype.C=function(){return Mr()&&Or.performance.memory?Or.performance.memory.usedJSHeapSize||0:Lr.prototype.C.call(this)};
Nr.prototype.j=function(){return Mr()&&Or.performance.memory?Or.performance.memory.jsHeapSizeLimit||0:Lr.prototype.j.call(this)};var nha=Kd(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.Ta.addEventListener("test",null,b)}catch(c){}return a});oha.prototype.isVisible=function(){return 1===Rr($s)};Td("csi.gstatic.com");Td("googleads.g.doubleclick.net");Td("partner.googleadservices.com");Td("pubads.g.doubleclick.net");Td("securepubads.g.doubleclick.net");Td("tpc.googlesyndication.com");var qha={Bla:"allow-forms",Cla:"allow-modals",Dla:"allow-orientation-lock",Ela:"allow-pointer-lock",Fla:"allow-popups",Gla:"allow-popups-to-escape-sandbox",Hla:"allow-presentation",Ila:"allow-same-origin",Jla:"allow-scripts",Kla:"allow-top-navigation",Lla:"allow-top-navigation-by-user-activation"},uha=Kd(function(){return rha()});var yha=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Wr.prototype.Ke=function(a,b,c){a=a+"//"+b+c;var d=Cha(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.B[f],l=0;l<h.length;l++){if(!d){c=null==c?f:c;break}var m=Bha(h[l],this.C,",$");if(m){m=b+m;if(d>=m.length){d-=m.length;a+=m;b=this.C;break}c=null==c?f:c}}d="";null!=c&&(d=b+"trn="+c);return a+d};ds.prototype.setInterval=function(a,b){return Or.setInterval(a,b)};
ds.prototype.clearInterval=function(a){Or.clearInterval(a)};
ds.prototype.setTimeout=function(a,b){return Or.setTimeout(a,b)};
ds.prototype.clearTimeout=function(a){Or.clearTimeout(a)};g.y(fs,T);fs.prototype.j=$ea([0,Ikb,Lkb,-2,Okb]);var Qha={r3a:1,K6:2,VWa:3};Sha.prototype.oS=function(a){if("string"===typeof a&&0!=a.length){var b=this.Kc;if(b.B){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=decodeURIComponent(d[0]);1<d.length?(d=decodeURIComponent(d[1]),d=/^[0-9]+$/g.exec(d)?parseInt(d,10):d):d=1;(e=b.j[e])&&e.C(d)}}}};var t2=null;var ls=g.Ta.performance,tlb=!!(ls&&ls.mark&&ls.measure&&ls.clearMarks),js=Kd(function(){var a;if(a=tlb){var b;if(null===t2){t2="";try{a="";try{a=g.Ta.top.location.hash}catch(c){a=g.Ta.location.hash}a&&(t2=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=t2;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
ks.prototype.disable=function(){this.j=!1;this.events!=this.B.google_js_reporting_queue&&(js()&&g.bc(this.events,Yha),this.events.length=0)};
ks.prototype.start=function(a,b){if(!this.j)return null;var c=Wha()||Vha();a=new Xha(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";ls&&js()&&ls.mark(b);return a};
ks.prototype.end=function(a){if(this.j&&"number"===typeof a.value){var b=Wha()||Vha();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";ls&&js()&&ls.mark(b);!this.j||2048<this.events.length||this.events.push(a)}};Zha.prototype.RQ=function(a,b,c,d,e){e=e||this.JX;try{var f=new Wr;f.j.push(1);f.B[1]=Xr("context",a);b.error&&b.meta&&b.id||(b=new ps(qs(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.B[2]=Xr("msg",h)}var l=b.meta||{};if(this.NN)try{this.NN(l)}catch(t){}if(d)try{d(l)}catch(t){}b=[l];f.j.push(3);f.B[3]=b;var m=Aha();if(m.B){var n=m.B.url||"";f.j.push(4);f.B[4]=Xr("top",n)}var p={url:m.j.url||""};if(m.j.url){var q=m.j.url.match(un);var r=sn(q[1],null,q[3],q[4])}else r="";n=[p,{url:r}];f.j.push(5);
f.B[5]=n;Tha(this.j,e,f,c)}catch(t){try{Tha(this.j,e,{context:"ecmserr",rctx:a,msg:qs(t),url:m&&m.j.url},c)}catch(v){}}return this.rT};
g.y(ps,Uha);var ns,os,ms=new ks;ns=new function(){var a="https:";Or&&Or.location&&"http:"===Or.location.protocol&&(a="http:");this.B=a;this.j=.01};
os=new Zha;Or&&Or.document&&("complete"==Or.document.readyState?aia():ms.j&&Qr(Or,"load",function(){aia()}));var dia=Date.now(),ys=-1,ws=-1,uja,zs=-1,xs=!1;g.k=As.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new As(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof As?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};Ds.prototype.Ib=function(){return this.N};var ulb={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},eu={D6:"start",Z3:"firstquartile",q6:"midpoint",E6:"thirdquartile",COMPLETE:"complete",ERROR:"error",p6:"metric",PAUSE:"pause",y6:"resume",z6:"skip",J6:"viewable_impression",t6:"mute",I6:"unmute",a4:"fullscreen",Y3:"exitfullscreen",H3:"bufferstart",G3:"bufferfinish",b4:"fully_viewable_audible_half_duration_impression",o6:"measurable_impression",w3:"abandon",X3:"engagedview",f4:"impression",N3:"creativeview",n6:"loaded",
V4a:"progress",CLOSE:"close",fva:"collapse",n1a:"overlay_resize",o1a:"overlay_unmeasurable_impression",p1a:"overlay_unviewable_impression",s1a:"overlay_viewable_immediate_impression",q1a:"overlay_viewable_end_of_session_impression",P3:"custom_metric_viewable",A3:"audio_audible",C3:"audio_measurable",B3:"audio_impression"},Fka="start firstquartile midpoint thirdquartile resume loaded".split(" "),Gka=["start","firstquartile","midpoint","thirdquartile"],wja=["abandon"],zu={UNKNOWN:-1,D6:0,Z3:1,q6:2,
E6:3,COMPLETE:4,p6:5,PAUSE:6,y6:7,z6:8,J6:9,t6:10,I6:11,a4:12,Y3:13,b4:14,o6:15,w3:16,X3:17,f4:18,N3:19,n6:20,P3:21,H3:22,G3:23,B3:27,C3:28,A3:29};var gia={zga:"addEventListener",LHa:"getMaxSize",MHa:"getScreenSize",NHa:"getState",OHa:"getVersion",a6a:"removeEventListener",ELa:"isViewable"};g.k=g.Fs.prototype;g.k.clone=function(){return new g.Fs(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.Ee?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
g.k.getSize=function(){return new g.Ke(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 kia={};tia.prototype.update=function(a){a&&a.document&&(this.N=Es(!1,a,this.isMobileDevice),this.j=Es(!0,a,this.isMobileDevice),via(this,a),uia(this,a))};bt.prototype.cancel=function(){es().clearTimeout(this.j);this.j=null};
bt.prototype.schedule=function(){var a=this,b=es(),c=hs().j.j;this.j=b.setTimeout(gs(c,ts(143,function(){a.B++;a.C.sample()})),eia())};g.k=ct.prototype;g.k.lD=function(){return!1};
g.k.initialize=function(){return this.isInitialized=!0};
g.k.eA=function(){return this.j.Ga};
g.k.bF=function(){return this.j.qa};
g.k.vj=function(a,b){if(!this.qa||(void 0===b?0:b))this.qa=!0,this.Ga=a,this.Z=0,this.j!=this||et(this)};
g.k.getName=function(){return this.j.Sa};
g.k.Nt=function(){return this.j.gY()};
g.k.gY=function(){return{}};
g.k.Hr=function(){return this.j.Z};
g.k.oV=function(){var a=Zs();a.j=Es(!0,this.C,a.isMobileDevice)};
g.k.pV=function(){uia(Zs(),this.C)};
g.k.uY=function(){return this.D.j};
g.k.sample=function(){};
g.k.isActive=function(){return this.j.K};
g.k.oA=function(a){var b=this.j;this.j=a.Hr()>=this.Z?a:this;b!==this.j?(this.K=this.j.K,et(this)):this.K!==this.j.K&&(this.K=this.j.K,et(this))};
g.k.Vt=function(a){if(a.B===this.j){var b=this.D,c=this.Y;if(c=a&&(void 0===c||!c||b.volume==a.volume)&&b.C==a.C)b=b.j,c=a.j,c=b==c?!0:b&&c?b.top==c.top&&b.right==c.right&&b.bottom==c.bottom&&b.left==c.left:!1;this.D=a;!c&&yia(this)}};
g.k.Cq=function(){return this.Y};
g.k.dispose=function(){this.Ha=!0};
g.k.Na=function(){return this.Ha};g.k=ft.prototype;g.k.iN=function(){return!0};
g.k.ZH=function(){};
g.k.dispose=function(){if(!this.Na()){var a=this.B;g.Hb(a.G,this);a.Y&&this.Cq()&&xia(a);this.ZH();this.qa=!0}};
g.k.Na=function(){return this.qa};
g.k.Nt=function(){return this.B.Nt()};
g.k.Hr=function(){return this.B.Hr()};
g.k.eA=function(){return this.B.eA()};
g.k.bF=function(){return this.B.bF()};
g.k.oA=function(){};
g.k.Vt=function(){this.kt()};
g.k.Cq=function(){return this.ra};g.k=gt.prototype;g.k.Hr=function(){return this.j.Hr()};
g.k.eA=function(){return this.j.eA()};
g.k.bF=function(){return this.j.bF()};
g.k.create=function(a,b,c){var d=null;this.j&&(d=this.aI(a,b,c),dt(this.j,d));return d};
g.k.qV=function(){return this.mD()};
g.k.mD=function(){return!1};
g.k.init=function(a){return this.j.initialize()?(dt(this.j,this),this.D=a,!0):!1};
g.k.oA=function(a){0==a.Hr()&&this.D(a.eA(),this)};
g.k.Vt=function(){};
g.k.Cq=function(){return!1};
g.k.dispose=function(){this.G=!0};
g.k.Na=function(){return this.G};
g.k.Nt=function(){return{}};ht.prototype.add=function(a,b,c){++this.C;a=new zia(a,b,c);this.j.push(new zia(a.B,a.j,a.C+this.C/4096));this.B=!0;return this};Eia.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=tt(this.j);0<b.length&&(a+="?"+b);return a};ut.prototype.update=function(a,b,c){a&&(this.j+=b,this.B+=b,this.D+=b,this.C=Math.max(this.C,this.D));if(void 0===c?!a:c)this.D=0};var Jia=[1,.75,.5,.3,0];vt.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.B.length;e++){var h=this.B[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.j[e].update(f&&l,d,!f||h)}};Ct.prototype.update=function(a,b,c,d){this.N=-1!=this.N?Math.min(this.N,b.Be):b.Be;this.ra=Math.max(this.ra,b.Be);this.Ca=-1!=this.Ca?Math.min(this.Ca,b.Ek):b.Ek;this.Ga=Math.max(this.Ga,b.Ek);this.bb.update(b.Ek,c.Ek,b.j,a,d);this.B.update(b.Be,c.Be,b.j,a,d);c=d||c.ix!=b.ix?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Sa.update(c,a,b)};
Ct.prototype.Sr=function(){return this.Sa.C>=this.eb};if($s&&$s.URL){var vlb=$s.URL,wlb;if(wlb=!!vlb){var xlb;a:{if(vlb){var ylb=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var u2=ylb.exec(decodeURIComponent(vlb));if(u2){xlb=u2[1]&&1<u2[1].length?u2[1].substring(1):"true";break a}}catch(a){}}xlb=""}wlb=0<xlb.length}os.rT=!wlb};var zlb=new As(0,0,0,0);var Ria=new As(0,0,0,0);g.y(Ht,g.I);g.k=Ht.prototype;
g.k.va=function(){if(this.Vj.j){if(this.yw.cR){var a=this.Vj.j;a.removeEventListener&&a.removeEventListener("mouseover",this.yw.cR,Pr());this.yw.cR=null}this.yw.bR&&(a=this.Vj.j,a.removeEventListener&&a.removeEventListener("mouseout",this.yw.bR,Pr()),this.yw.bR=null)}this.nH&&this.nH.dispose();this.Xf&&this.Xf.dispose();delete this.DK;delete this.SQ;delete this.O2;delete this.Vj.Du;delete this.Vj.j;delete this.yw;delete this.nH;delete this.Xf;delete this.Kc;g.I.prototype.va.call(this)};
g.k.Qt=function(){return this.Xf?this.Xf.j:this.position};
g.k.oS=function(a){hs().oS(a)};
g.k.Cq=function(){return!1};
g.k.DJ=function(){return new Ct};
g.k.wj=function(){return this.DK};
g.k.kY=function(a){return Via(this,a,1E4)};
g.k.Ta=function(a,b,c,d,e,f,h){this.au||(this.lE&&(a=this.bO(a,c,e,h),d=d&&this.Zh.Be>=(this.ix()?.3:.5),this.ZT(f,a,d),this.fq=b,0<a.Be&&-1===this.m2&&(this.m2=b),-1==this.t2&&this.Sr()&&(this.t2=b),-2==this.MQ&&(this.MQ=Ft(this.Qt())?a.Be:-1),this.Zh=a),this.SQ(this))};
g.k.ZT=function(a,b,c){this.wj().update(a,b,this.Zh,c)};
g.k.zP=function(){return new Yq};
g.k.bO=function(a,b,c,d){c=this.zP();c.j=b;b=es().B;b=0===Rr($s)?-1:b.isVisible()?0:1;c.B=b;c.Be=this.wO(a);c.ix=this.ix();c.Ek=d;return c};
g.k.wO=function(a){return 0===this.opacity&&1===Ir(this.Kc,"opac")?0:a};
g.k.ix=function(){return!1};
g.k.fM=function(){return this.Z9||this.c$};
g.k.Cx=function(){vs()};
g.k.iB=function(){vs()};
g.k.Pp=function(){return 0};
g.k.Sr=function(){return this.DK.Sr()};
g.k.xY=function(){var a=this.lE;a=(this.hasCompleted||this.Na())&&!a;var b=2!==hs().B||this.Hea;return this.au||b&&a?2:this.Sr()?4:3};
g.k.sJ=function(){return 0};g.Jt.prototype.next=function(){return g.v2};
g.v2={done:!0,value:void 0};g.Jt.prototype.Yl=function(){return this};g.y(aja,Yq);var w2=cja([void 0,1,2,3,4,8,16]),x2=cja([void 0,4,8,16]),Alb={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Nt("p0",x2),p1:Nt("p1",x2),p2:Nt("p2",x2),p3:Nt("p3",x2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Mt("mtos1",[0,2,4],!1,x2),mtos2:Mt("mtos2",[0,2,4],!1,x2),mtos3:Mt("mtos3",[0,2,4],!1,x2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Nt("a0",x2),a1:Nt("a1",x2),a2:Nt("a2",x2),a3:Nt("a3",x2),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:Nt("c0",x2),c1:Nt("c1",x2),c2:Nt("c2",x2),c3:Nt("c3",x2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Nt("qmtos",w2),qnc:Nt("qnc",w2),qmv:Nt("qmv",w2),qnv:Nt("qnv",w2),
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:Nt("ss0",x2),ss1:Nt("ss1",x2),ss2:Nt("ss2",x2),ss3:Nt("ss3",x2),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia",
omiddc:"omiddc",omidlat:"omidlat",omiddit:"omiddit",nopd:"nopd",co:"co"},Blb=Object.assign({},Alb,{avid:Id("audio"),avas:"avas",vs:"vs"}),Clb={atos:"atos",avt:Mt("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"};Rt.prototype.getValue=function(){return this.B};
Rt.prototype.update=function(a,b){32<=a||(this.j&1<<a&&!b?this.B&=~(1<<a):this.j&1<<a||!b||(this.B|=1<<a),this.j|=1<<a)};g.y(St,Ct);
St.prototype.update=function(a,b,c,d){if(!b.paused){Ct.prototype.update.call(this,a,b,c,d);var e=Lt(b)&&Lt(c),f=.5<=(d?Math.min(b.Be,c.Be):c.Be);Xs(b.volume)&&(this.D=-1!=this.D?Math.min(this.D,b.volume):b.volume,this.K=Math.max(this.K,b.volume));f&&(this.Ha+=a,this.Y+=e?a:0);this.j.update(b.Be,c.Be,b.j,a,d,e);this.C.update(!0,a);this.G.update(e,a);this.qa.update(c.fullscreen,a);this.gb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.La.update(a,b.isVisible());this.Wa.update(a,1<=b.Be);this.Va.update(a,
Lt(b))}};ija.prototype.B=function(a){this.C||(this.j(a)?(a=tka(this.Y,this.D,a),this.G|=a,a=0==a):a=!1,this.C=a)};g.y(Ut,ija);Ut.prototype.j=function(){return!0};
Ut.prototype.K=function(){return!1};
Ut.prototype.getId=function(){var a=this,b=fd(eu,function(c){return c==a.D});
return zu[b].toString()};
Ut.prototype.toString=function(){var a="";this.K()&&(a+="c");this.C&&(a+="s");0<this.G&&(a+=":"+this.G);return this.getId()+a};g.y(Vt,Ut);Vt.prototype.B=function(a,b){b=void 0===b?null:b;null!=b&&this.N.push(b);Ut.prototype.B.call(this,a)};g.y(Wt,jja);Wt.prototype.B=function(){return null};
Wt.prototype.C=function(){return[]};g.y(Xt,ft);g.k=Xt.prototype;g.k.fO=function(){if(this.element){var a=this.element,b=this.B.j.C;try{try{var c=qia(a.getBoundingClientRect())}catch(n){c=new As(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=nia(a,b),h=f.x,l=f.y;var m=new As(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=zlb.clone()}this.j=m}};
g.k.UW=function(){this.D=this.B.D.j};
g.k.oZ=function(a){var b=1==Ir(this.Kc,"od");return Qia(a,this.D,this.element,b)};
g.k.VW=function(){this.timestamp=vs()};
g.k.kt=function(){this.VW();this.fO();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.Ke(a.videoWidth,a.videoHeight);a=this.j;var c=Bs(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.UW();
a=this.j;c=this.D;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new As(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 As(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new As(0,0,0,0):a;a=this.B.D;b=e=d=0;0<(this.j.bottom-this.j.top)*(this.j.right-this.j.left)&&(this.oZ(c)?c=new As(0,0,0,0):(d=Zs().D,b=new As(0,d.height,d.width,0),d=Gt(c,this.j),e=Gt(c,Zs().j),b=Gt(c,b)));c=c.top>=c.bottom||c.left>=c.right?new As(0,0,0,
0):Cs(c,-this.j.left,-this.j.top);at()||(e=d=0);this.N=new Ds(a,this.element,this.j,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.B.getName()};var Dlb=new As(0,0,0,0);g.y(Yt,Xt);g.k=Yt.prototype;g.k.iN=function(){this.C();return!0};
g.k.Vt=function(){Xt.prototype.kt.call(this)};
g.k.VW=function(){};
g.k.fO=function(){};
g.k.kt=function(){this.C();Xt.prototype.kt.call(this)};
g.k.oA=function(a){a=a.isActive();a!==this.K&&(a?this.C():(Zs().j=new As(0,0,0,0),this.j=new As(0,0,0,0),this.D=new As(0,0,0,0),this.timestamp=-1));this.K=a};var y2={},tja=(y2.firstquartile=0,y2.midpoint=1,y2.thirdquartile=2,y2.complete=3,y2);g.y($t,Ht);g.k=$t.prototype;g.k.Cq=function(){return!0};
g.k.qo=function(){return 2==this.nk};
g.k.kY=function(a){return Via(this,a,Math.max(1E4,this.C/3))};
g.k.Ta=function(a,b,c,d,e,f,h){var l=this,m=this.N(this)||{};g.ld(m,e);this.C=m.duration||this.C;this.Y=m.isVpaid||this.Y;this.Sa=m.isYouTube||this.Sa;es();this.rb=!1;e=lja(this,b);1===kja(this)&&(f=e);Ht.prototype.Ta.call(this,a,b,c,d,m,f,h);this.Vr&&this.Vr.C&&g.bc(this.K,function(n){n.B(l)})};
g.k.ZT=function(a,b,c){Ht.prototype.ZT.call(this,a,b,c);cu(this).update(a,b,this.Zh,c);this.gb=Lt(this.Zh)&&Lt(b);-1==this.Ga&&this.bb&&(this.Ga=this.wj().C.j);this.Kg.C=0;a=this.Sr();b.isVisible()&&Qt(this.Kg,"vs");a&&Qt(this.Kg,"vw");Xs(b.volume)&&Qt(this.Kg,"am");Lt(b)?Qt(this.Kg,"a"):Qt(this.Kg,"mut");this.AA&&Qt(this.Kg,"f");-1!=b.B&&(Qt(this.Kg,"bm"),1==b.B&&(Qt(this.Kg,"b"),Lt(b)&&Qt(this.Kg,"umutb")));Lt(b)&&b.isVisible()&&Qt(this.Kg,"avs");this.gb&&a&&Qt(this.Kg,"avw");0<b.Be&&Qt(this.Kg,
"pv");du(this,this.wj().C.j,!0)&&Qt(this.Kg,"gdr");2E3<=At(this.wj().B,1)&&Qt(this.Kg,"pmx");this.rb&&Qt(this.Kg,"tvoff")};
g.k.DJ=function(){return new St};
g.k.wj=function(){return this.DK};
g.k.zP=function(){return new aja};
g.k.bO=function(a,b,c,d){a=Ht.prototype.bO.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.AA;a.paused=this.qo();a.volume=c.volume;Xs(a.volume)||(this.Jb++,b=this.Zh,Xs(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.wO=function(a){return Zs(),this.AA?1:Ht.prototype.wO.call(this,a)};
g.k.Pp=function(){return 1};
g.k.getDuration=function(){return this.C};
g.k.xY=function(){return this.au?2:nja(this)?5:this.Sr()?4:3};
g.k.sJ=function(){return this.Ab?2E3<=this.wj().G.C?4:3:2};var Elb=g.lb();Eja.prototype.reset=function(){this.j=[];this.B=[]};
var ju=cs(Eja);g.y(mu,gt);g.k=mu.prototype;g.k.getName=function(){return(this.B?this.B:this.j).getName()};
g.k.Nt=function(){return(this.B?this.B:this.j).Nt()};
g.k.Hr=function(){return(this.B?this.B:this.j).Hr()};
g.k.init=function(a){var b=!1;(0,g.bc)(this.C,function(c){c.initialize()&&(b=!0)});
b&&(this.D=a,dt(this.j,this));return b};
g.k.dispose=function(){(0,g.bc)(this.C,function(a){a.dispose()});
gt.prototype.dispose.call(this)};
g.k.qV=function(){return Ys(this.C,function(a){return a.lD()})};
g.k.mD=function(){return Ys(this.C,function(a){return a.lD()})};
g.k.aI=function(a,b,c){return new Xt(a,this.j,b,c)};
g.k.Vt=function(a){this.B=a.B};var Nja={threshold:[0,.3,.5,.75,1]};g.y(nu,Xt);g.k=nu.prototype;g.k.iN=function(){var a=this;this.Y||(this.Y=vs());if(cia(298,function(){return Oja(a)}))return!0;
this.B.vj("msf");return!1};
g.k.ZH=function(){if(this.C&&this.element)try{this.C.unobserve(this.element),this.K?(this.K.unobserve(this.element),this.K=null):this.G&&(this.G.disconnect(),this.G=null)}catch(a){}};
g.k.kt=function(){var a=ou(this);0<a.length&&pu(this,a);Xt.prototype.kt.call(this)};
g.k.fO=function(){};
g.k.oZ=function(){return!1};
g.k.UW=function(){};
g.k.Nt=function(){var a={};return Object.assign(this.B.Nt(),(a.niot_obs=this.Y,a.niot_cbk=this.Z,a))};
g.k.getName=function(){return"nio"};g.y(qu,gt);qu.prototype.getName=function(){return"nio"};
qu.prototype.mD=function(){return!Zs().B&&null!=this.j.j.C.IntersectionObserver};
qu.prototype.aI=function(a,b,c){return new nu(a,this.j,b,c)};g.y(ru,ct);ru.prototype.uY=function(){return Zs().j};
ru.prototype.lD=function(){var a=Qja();this.Z!==a&&(this.j!=this&&a>this.j.Z&&(this.j=this,et(this)),this.Z=a);return 2==a};tu.prototype.sample=function(){wu(this,ku(),!1)};
tu.prototype.D=function(){var a=at(),b=vs();a?(xs||(ys=b,g.bc(ju.j,function(c){var d=c.wj();d.Ma=Tt(d,b,1!=c.nk)})),xs=!0):(this.N=Vja(this,b),xs=!1,uja=b,g.bc(ju.j,function(c){c.lE&&(c.wj().Z=b)}));
wu(this,ku(),!a)};
var uu=cs(tu);var Xja=null,Tu="",Su=!1;var $ja=Zja().Dp,yu=Zja().Hp;var cka={mFa:"visible",rqa:"audible",Aeb:"time",Deb:"timetype"},dka={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)}};
bka.prototype.setTime=function(a,b,c){"ms"==b?(this.C=a,this.D=-1):(this.C=-1,this.D=a);this.G=void 0===c?"tos":c;return this};g.y(Cu,Ut);Cu.prototype.getId=function(){return this.N};
Cu.prototype.K=function(){return!0};
Cu.prototype.j=function(a){var b=a.wj(),c=a.getDuration();return Ys(this.Z,function(d){if(void 0!=d.j)var e=fka(d,b);else b:{switch(d.G){case "mtos":e=d.B?b.G.C:b.C.j;break b;case "tos":e=d.B?b.G.j:b.C.j;break b}e=0}0==e?d=!1:(d=-1!=d.C?d.C:void 0!==c&&0<c?d.D*c:-1,d=-1!=d&&e>=d);return d})};g.y(Du,eja);Du.prototype.j=function(a){var b=new dja;b.j=Pt(a,Alb);b.B=Pt(a,Clb);return b};g.y(Eu,Ut);Eu.prototype.j=function(a){return nja(a)};g.y(Fu,jja);g.y(Gu,Ut);Gu.prototype.j=function(a){return a.wj().Sr()};g.y(Hu,Vt);Hu.prototype.j=function(a){var b=g.Fb(this.N,Ir(hs().Kc,"ovms"));return!a.au&&(0!=a.nk||b)};g.y(Iu,Fu);Iu.prototype.B=function(){return new Hu(this.j)};
Iu.prototype.C=function(){return[new Gu("viewable_impression",this.j),new Eu(this.j)]};g.y(Ju,Yt);Ju.prototype.C=function(){var a=g.Xa("ima.admob.getViewability"),b=Ir(this.Kc,"queryid");"function"===typeof a&&b&&a(b)};
Ju.prototype.getName=function(){return"gsv"};g.y(Ku,gt);Ku.prototype.getName=function(){return"gsv"};
Ku.prototype.mD=function(){var a=Zs();hs();return a.B&&!1};
Ku.prototype.aI=function(a,b,c){return new Ju(this.j,b,c)};g.y(Lu,Yt);Lu.prototype.C=function(){var a=this,b=g.Xa("ima.bridge.getNativeViewability"),c=Ir(this.Kc,"queryid");"function"===typeof b&&c&&b(c,function(d){g.gd(d)&&a.G++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=ria(d.opt_nativeViewBounds||{});var h=a.B.D;h.j=f?Dlb.clone():ria(e);a.timestamp=d.opt_nativeTime||-1;Zs().j=h.j;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
Lu.prototype.getName=function(){return"nis"};g.y(Mu,gt);Mu.prototype.getName=function(){return"nis"};
Mu.prototype.mD=function(){var a=Zs();hs();return a.B&&!1};
Mu.prototype.aI=function(a,b,c){return new Lu(this.j,b,c)};g.y(Nu,ct);g.k=Nu.prototype;g.k.lD=function(){return null!=this.B.Ao};
g.k.gY=function(){var a={};this.La&&(a.mraid=this.La);this.Ca&&(a.mlc=1);a.mtop=this.B.gea;this.N&&(a.mse=this.N);this.Ma&&(a.msc=1);a.mcp=this.B.compatibility;return a};
g.k.Vu=function(a){var b=g.Ia.apply(1,arguments);try{return this.B.Ao[a].apply(this.B.Ao,b)}catch(c){us(538,c,.01,function(d){d.method=a})}};
g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.bF();this.isInitialized=!0;if(2===this.B.compatibility)return this.N="ng",this.vj("w"),!1;if(1===this.B.compatibility)return this.N="mm",this.vj("w"),!1;Zs().Z=!0;this.C.document.readyState&&"complete"==this.C.document.readyState?jka(this):Et(this.C,"load",function(){es().setTimeout(ts(292,function(){return jka(a)}),100)},292);
return!0};
g.k.oV=function(){var a=Zs(),b=oka(this,"getMaxSize");a.j=new As(0,b.width,b.height,0)};
g.k.pV=function(){Zs().D=oka(this,"getScreenSize")};
g.k.dispose=function(){lka(this);ct.prototype.dispose.call(this)};var Nha=new function(a,b){this.key=a;this.defaultValue=void 0===b?!1:b;this.valueType="boolean"}("45378663");g.k=Pu.prototype;g.k.WI=function(a){It(a,!1);Ija(a)};
g.k.NJ=function(){};
g.k.FG=function(a,b,c,d){var e=this;a=new $t(Or,a,c?b:-1,7,this.FO(),this.pX());a.bj=d;iha(a.Kc);Hr(a.Kc,"queryid",a.bj);a.oS("");Yia(a,function(){return e.DY.apply(e,g.qa(g.Ia.apply(0,arguments)))},function(){return e.z9.apply(e,g.qa(g.Ia.apply(0,arguments)))});
(d=cs(lu).j)&&Uia(a,d);a.Vj.Du&&cs(Rja);return a};
g.k.oA=function(a){switch(a.Hr()){case 0:if(a=cs(lu).j)a=a.j,g.Hb(a.G,this),a.Y&&this.Cq()&&xia(a);Ru();break;case 2:vu()}};
g.k.Vt=function(){};
g.k.Cq=function(){return!1};
g.k.z9=function(a,b){a.au=!0;switch(a.Pp()){case 1:uka(a,b);break;case 2:this.zS(a)}};
g.k.I9=function(a){var b=a.N(a);b&&(b=b.volume,a.Ab=Xs(b)&&0<b);qja(a,0);return fu(a,"start",at())};
g.k.vC=function(a,b,c){wu(uu,[a],!at());return this.Qp(a,b,c)};
g.k.Qp=function(a,b,c){return fu(a,c,at())};
g.k.D9=function(a){return Xu(a,"firstquartile",1)};
g.k.F9=function(a){a.bb=!0;return Xu(a,"midpoint",2)};
g.k.J9=function(a){return Xu(a,"thirdquartile",3)};
g.k.A9=function(a){var b=Xu(a,"complete",4);au(a);return b};
g.k.B9=function(a){a.nk=3;return fu(a,"error",at())};
g.k.d1=function(a,b,c){b=at();if(a.qo()&&!b){var d=a.wj(),e=vs();d.Z=e}wu(uu,[a],!b);a.qo()&&(a.nk=1);return fu(a,c,b)};
g.k.H9=function(a,b){b=this.vC(a,b||{},"skip");au(a);return b};
g.k.E9=function(a,b){It(a,!0);return this.vC(a,b||{},"fullscreen")};
g.k.C9=function(a,b){It(a,!1);return this.vC(a,b||{},"exitfullscreen")};
g.k.eS=function(a,b,c){b=a.wj();var d=vs();b.Ma=Tt(b,d,1!=a.nk);wu(uu,[a],!at());1==a.nk&&(a.nk=2);return fu(a,c,at())};
g.k.G9=function(a){wu(uu,[a],!at());return a.B()};
g.k.VP=function(a){wu(uu,[a],!at());this.V0(a);au(a);return a.B()};
g.k.DY=function(){};
g.k.zS=function(){};
g.k.V0=function(){};
g.k.rV=function(){};
g.k.GO=function(){};
g.k.pX=function(){this.j||(this.j=this.GO());return null==this.j?new Wt:new Iu(this.j)};
g.k.FO=function(){return new Du};g.y(Yu,Ut);Yu.prototype.j=function(a){return 4==a.sJ()};g.y(Zu,Vt);Zu.prototype.j=function(a){a=a.sJ();return 3==a||4==a};g.y($u,Fu);$u.prototype.B=function(){return new Zu(this.j)};
$u.prototype.C=function(){return[new Yu(this.j)]};g.y(av,eja);av.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 dja;b.j=Pt(a,Blb);b.B=Pt(a,Clb);return b};yka.prototype.B=function(){return g.Xa(this.j)};g.y(bv,Pu);g.k=bv.prototype;g.k.NJ=function(a,b){var c=this,d=cs(lu);if(null!=d.j)switch(d.j.getName()){case "nis":var e=Cka(this,a,b);break;case "gsv":e=Bka(this,a,b);break;case "exc":e=Dka(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=wka(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Pp()&&(e.N==g.Jd&&(e.N=function(f){return c.rV(f)}),Aka(this,e,b));
return e};
g.k.rV=function(a){a.B=0;a.Ha=0;if("h"==a.D||"n"==a.D){hs();a.eb&&(hs(),"h"!=Vu(this)&&Vu(this));var b=g.Xa("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.bj)}catch(e){a.B|=4}else a.B|=2}else if("b"==a.D)if(b=g.Xa("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.bj)}catch(e){a.B|=4}else a.B|=2;else if("ml"==a.D)if(b=g.Xa("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.bj)}catch(e){a.B|=4}else a.B|=2;else a.B|=1;a.B||(void 0===c?a.B|=8:null===
c?a.B|=16:g.gd(c)?a.B|=32:null!=c.errorCode&&(a.Ha=c.errorCode,a.B|=64));null==c&&(c={});b=c;a.Z=0;for(var d in ulb)null==b[d]&&(a.Z|=ulb[d]);xka(b,"currentTime");xka(b,"duration");Xs(c.volume)&&Xs()&&(c.volume*=NaN);return c};
g.k.GO=function(){hs();"h"!=Vu(this)&&Vu(this);var a=Eka(this);return null!=a?new yka(a):null};
g.k.zS=function(a){!a.j&&a.au&&Wu(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)};
g.k.V0=function(a){a.M1&&(a.Sr()?Wu(this,a,"overlay_viewable_end_of_session_impression"):Wu(this,a,"overlay_unviewable_impression"),a.M1=!1)};
g.k.DY=function(){};
g.k.FG=function(a,b,c,d){if(Oha()){var e=Ir(hs().Kc,"mm"),f={};(e=(f[is.z3]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[is.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&Ika(this,e);"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"===this.C&&us(1044,Error())}a=Pu.prototype.FG.call(this,a,b,c,d);this.D&&(b=this.G,null==a.G&&(a.G=new Zia),b.j[a.bj]=a.G,a.G.G=Elb);return a};
g.k.WI=function(a){a&&1==a.Pp()&&this.D&&delete this.G.j[a.bj];return Pu.prototype.WI.call(this,a)};
g.k.pX=function(){this.j||(this.j=this.GO());return null==this.j?new Wt:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new $u(this.j):new Iu(this.j)};
g.k.FO=function(){return"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new av:new Du};
var Flb=rs(193,Kka,void 0,vka);g.Ua("Goog_AdSense_Lidar_sendVastEvent",Flb);var Glb=ts(194,function(a,b){b=void 0===b?{}:b;a=Hka(cs(bv),a,b);return Jka(a)});
g.Ua("Goog_AdSense_Lidar_getViewability",Glb);var Hlb=rs(195,function(){return Iha()});
g.Ua("Goog_AdSense_Lidar_getUrlSignalsArray",Hlb);var Ilb=ts(196,function(){return JSON.stringify(Iha())});
g.Ua("Goog_AdSense_Lidar_getUrlSignalsList",Ilb);var sCa=pa(["//tpc.googlesyndication.com/sodar/",""]);var QOa={i7a:0,f7a:1,c7a:2,d7a:3,e7a:4,h7a:5,g7a:6};var tqa=(new Date).getTime();var Mka="://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(" "),Nka=/\bocr\b/;var Pka=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Jlb=0,Klb=0,Llb=0;var dv,yv;dv=null;g.fv=!1;g.wv=1;g.vv=Symbol("SIGNAL");yv={version:0,xZ:0,mm:!1,vg:void 0,ey:void 0,Qm:void 0,PK:0,Yi:void 0,Au:void 0,MI:!1,lX:!1,K0:function(){return!1},
L0:function(){},
mX:function(){},
Uob:function(){}};var Mlb=Symbol("UNSET"),Nlb=Symbol("COMPUTING"),Olb=Symbol("ERRORED");Object.assign({},yv,{value:Mlb,mm:!0,error:null,UO:Qka,K0:function(a){return a.value===Mlb||a.value===Nlb},
L0:function(a){if(a.value===Nlb)throw Error("Detected cycle in computations.");var b=a.value;a.value=Nlb;var c=g.Uka(a);try{var d=a.Sob()}catch(e){d=Olb,a.error=e}finally{g.Vka(a,c)}b!==Mlb&&b!==Olb&&d!==Olb&&a.UO(b,d)?a.value=b:(a.value=d,a.version++)}});var Yka;g.$ka=null;Yka=Object.assign({},yv,{UO:Qka,value:void 0});g.Plb=Object.assign({},yv,{lX:!0,MI:!1,mX:function(a){null!==a.schedule&&a.schedule(a.RB)},
TY:!1,Cz:g.xv});g.Qlb=bla(!1);g.Rlb=bla(!0);var Slb=Symbol("updater");g.y(Av,g.Ed);Av.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.uo.Tj(this.G);delete Av.instance};
Av.prototype.Gh=function(){return this.j};
Av.prototype.mf=function(){var a=this;this.G=this.uo.Qi(function(){var b;return g.G(function(c){if(1==c.j)return a.j?(null==(b=window.navigator)?0:b.onLine)?c.Ia(3):g.z(c,zv(a),3):g.z(c,zv(a),3);a.mf();g.Aa(c)})},3E4)};Cv.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&Number.isInteger(a)&&this.data[a]!==b&&(this.data[a]=b,this.j=-1)};
Cv.prototype.get=function(a){return!!this.data[a]};var Ev;g.nb(g.Hv,g.I);g.k=g.Hv.prototype;g.k.start=function(){this.stop();this.D=!1;var a=fla(this),b=gla(this);a&&!b&&this.B.mozRequestAnimationFrame?(this.j=g.ud(this.B,"MozBeforePaint",this.C),this.B.mozRequestAnimationFrame(null),this.D=!0):this.j=a&&b?a.call(this.B,this.C):this.B.setTimeout(oba(this.C),20)};
g.k.stop=function(){if(this.isActive()){var a=fla(this),b=gla(this);a&&!b&&this.B.mozRequestAnimationFrame?Ad(this.j):a&&b?b.call(this.B,this.j):this.B.clearTimeout(this.j)}this.j=null};
g.k.isActive=function(){return null!=this.j};
g.k.K5=function(){this.D&&this.j&&Ad(this.j);this.j=null;this.K.call(this.G,g.lb())};
g.k.va=function(){this.stop();g.Hv.Of.va.call(this)};g.nb(g.Iv,g.I);g.k=g.Iv.prototype;g.k.nD=0;g.k.va=function(){g.Iv.Of.va.call(this);this.stop();delete this.j;delete this.B};
g.k.start=function(a){this.stop();this.nD=g.og(this.C,void 0!==a?a:this.Wi)};
g.k.stop=function(){this.isActive()&&g.Ta.clearTimeout(this.nD);this.nD=0};
g.k.isActive=function(){return 0!=this.nD};
g.k.sV=function(){this.nD=0;this.j&&this.j.call(this.B)};g.Mv.prototype[Symbol.iterator]=function(){return this};
g.Mv.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.B.call(void 0,a.value),done:a.done}};g.nb(g.Vv,g.Ed);g.k=g.Vv.prototype;g.k.isPlaying=function(){return 1==this.j};
g.k.isPaused=function(){return-1==this.j};
g.k.WK=function(){this.Gn("begin")};
g.k.Zr=function(){this.Gn("end")};
g.k.onFinish=function(){this.Gn("finish")};
g.k.onStop=function(){this.Gn("stop")};
g.k.Gn=function(a){this.dispatchEvent(a)};var Tlb=Kd(function(){var a=g.yf("DIV"),b=g.Pc?"-webkit":Js?"-moz":g.Ks?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!zkb.test("div"))throw Error("");if("DIV"in Bkb)throw Error("");b=void 0;var d="";if(c)for(n in c)if(Object.prototype.hasOwnProperty.call(c,n)){if(!zkb.test(n))throw Error("");var e=c[n];if(null!=e){var f=void 0;var h=n;if(e instanceof Rd)e=Sd(e);else if("style"==h.toLowerCase()){if(!g.db(e))throw Error("");if(!(e instanceof
g.oe)){var l="";for(f in e)if(Object.prototype.hasOwnProperty.call(e,f)){if(!/^[-_a-zA-Z0-9]+$/.test(f))throw Error("Name allows only [-_a-zA-Z0-9], got: "+f);var m=e[f];null!=m&&(m=Array.isArray(m)?m.map(Bba).join(" "):Bba(m),l+=f+":"+m+";")}e=l?new g.oe(l,ye):pla}e=pe(e)}else{if(/^on/i.test(h))throw Error("");if(h.toLowerCase()in Akb)if(e instanceof g.Yd)e=g.Zd(e).toString();else if(e instanceof g.ce)e=g.de(e);else if("string"===typeof e)e=g.je(e).toString();else throw Error("");}f=h+'="'+gc(String(e))+
'"';d+=" "+f}}var n="<div"+d;null==b?b=[]:Array.isArray(b)||(b=[b]);!0===ykb.div?n+=">":(b=Eba(b),n+=">"+g.re(b).toString()+"</div>");n=se(n);if(Ckb())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.re(n);return""!=g.Ls(a.firstChild,"transition")});g.nb(Wv,g.Vv);g.k=Wv.prototype;g.k.play=function(){if(this.isPlaying())return!1;this.WK();this.Gn("play");this.startTime=g.lb();this.j=1;if(Tlb())return g.Is(this.B,this.K),this.C=g.og(this.Qca,void 0,this),!0;this.jN(!1);return!1};
g.k.Qca=function(){g.Us(this.B);jla(this.B,this.N);g.Is(this.B,this.D);this.C=g.og((0,g.gb)(this.jN,this,!1),1E3*this.G)};
g.k.stop=function(){this.isPlaying()&&this.jN(!0)};
g.k.jN=function(a){g.Is(this.B,"transition","");g.Ta.clearTimeout(this.C);g.Is(this.B,this.D);this.endTime=g.lb();this.j=0;if(a)this.onStop();else this.onFinish();this.Zr()};
g.k.va=function(){this.stop();Wv.Of.va.call(this)};
g.k.pause=function(){};var lla={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};Xv("Element","attributes")||Xv("Node","attributes");Xv("Element","innerHTML")||Xv("HTMLElement","innerHTML");Xv("Node","nodeName");Xv("Node","nodeType");Xv("Node","parentNode");Xv("Node","childNodes");Xv("HTMLElement","style")||Xv("Element","style");Xv("HTMLStyleElement","sheet");var sla=nla("getPropertyValue"),tla=nla("setProperty");Xv("Element","namespaceURI")||Xv("Node","namespaceURI");var rla={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var xla,dkb,wla,vla,yla;xla=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]");dkb=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.Ulb=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.Yv=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]");wla=/^http:\/\/.*/;g.Vlb=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");vla=/\s+/;yla=/[\d\u06f0-\u06f9]/;$v.prototype.Yl=function(){return new aw(this.B())};
$v.prototype[Symbol.iterator]=function(){return new bw(this.B())};
$v.prototype.j=function(){return new bw(this.B())};
g.y(aw,g.Jt);aw.prototype.next=function(){return this.B.next()};
aw.prototype[Symbol.iterator]=function(){return new bw(this.B)};
aw.prototype.j=function(){return new bw(this.B)};
g.y(bw,$v);bw.prototype.next=function(){return this.C.next()};dw.prototype.clone=function(){return new dw(this.j,this.C,this.x1,this.y1,this.x2,this.y2,this.B,this.D)};fw.prototype.clone=function(){return new fw(this.start,this.end)};(function(){if(whb){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.pc()))?a[1]:"0"}return IY?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.pc()))?a[0].replace(/_/g,"."):"10"):g.mB?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.pc()))?a[1]:""):qkb||rkb||skb?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.pc()))?a[1].replace(/_/g,"."):""):""})();var Ala=function(){if(g.bR)return gw(/Firefox\/([0-9.]+)/);if(g.Ks||g.NC||g.AR)return Xaa;if(g.WJ){if(Ic()||Kc()){var a=gw(/CriOS\/([0-9.]+)/);if(a)return a}return gw(/Chrome\/([0-9.]+)/)}if(g.rC&&!Ic())return gw(/Version\/([0-9.]+)/);if(kB||lB){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.pc()))return a[1]+"."+a[2]}else if(g.TUa)return(a=gw(/Android\s+([0-9.]+)/))?a:gw(/Version\/([0-9.]+)/);return""}();g.nb(g.iw,g.I);g.k=g.iw.prototype;g.k.subscribe=function(a,b,c){var d=this.B[a];d||(d=this.B[a]=[]);var e=this.K;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.K=e+3;d.push(e);return e};
g.k.unsubscribe=function(a,b,c){if(a=this.B[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Ph(a)}return!1};
g.k.Ph=function(a){var b=this.j[a];if(b){var c=this.B[b];0!=this.D?(this.C.push(a),this.j[a+1]=function(){}):(c&&g.Hb(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b};
g.k.publish=function(a,b){var c=this.B[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.N)for(e=0;e<c.length;e++){var h=c[e];Bla(this.j[h+1],this.j[h+2],d)}else{this.D++;try{for(e=0,f=c.length;e<f&&!this.Na();e++)h=c[e],this.j[h+1].apply(this.j[h+2],d)}finally{if(this.D--,0<this.C.length&&0==this.D)for(;c=this.C.pop();)this.Ph(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.B[a];b&&(b.forEach(this.Ph,this),delete this.B[a])}else this.j.length=0,this.B={}};
g.k.va=function(){g.iw.Of.va.call(this);this.clear();this.C.length=0};g.jw.prototype.set=function(a,b){void 0===b?this.j.remove(a):this.j.set(a,g.on(b))};
g.jw.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.jw.prototype.remove=function(a){this.j.remove(a)};g.nb(kw,g.jw);kw.prototype.set=function(a,b){kw.Of.set.call(this,a,Dla(b))};
kw.prototype.B=function(a){a=kw.Of.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
kw.prototype.get=function(a){if(a=this.B(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.nb(lw,kw);lw.prototype.set=function(a,b,c){if(b=Dla(b)){if(c){if(c<g.lb()){lw.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.lb()}lw.Of.set.call(this,a,b)};
lw.prototype.B=function(a,b){var c=lw.Of.B.call(this,a);if(c)if(!b&&g.Ela(c))lw.prototype.remove.call(this,a);else return c};g.nb(g.mw,lw);g.nb(nw,Fla);nw.prototype[Symbol.iterator]=function(){return g.cw(this.Yl(!0)).j()};
nw.prototype.clear=function(){var a=Array.from(this);a=g.u(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};g.nb(ow,nw);g.k=ow.prototype;g.k.isAvailable=function(){var a=this.j;if(a)try{a.setItem("__sak","1");a.removeItem("__sak");var b=!0}catch(c){b=c instanceof DOMException&&("QuotaExceededError"===c.name||22===c.code||1014===c.code||"NS_ERROR_DOM_QUOTA_REACHED"===c.name)&&a&&0!==a.length}else b=!1;return this.B=b};
g.k.set=function(a,b){pw(this);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){pw(this);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){pw(this);this.j.removeItem(a)};
g.k.Yl=function(a){pw(this);var b=0,c=this.j,d=new g.Jt;d.next=function(){if(b>=c.length)return g.v2;var e=c.key(b++);if(a)return g.Kt(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.Kt(e)};
return d};
g.k.clear=function(){pw(this);this.j.clear()};
g.k.key=function(a){pw(this);return this.j.key(a)};g.nb(qw,ow);g.nb(Gla,ow);g.nb(rw,nw);rw.prototype.set=function(a,b){this.B.set(this.j+a,b)};
rw.prototype.get=function(a){return this.B.get(this.j+a)};
rw.prototype.remove=function(a){this.B.remove(this.j+a)};
rw.prototype.Yl=function(a){var b=this.B[Symbol.iterator](),c=this,d=new g.Jt;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.Kt(a?e.slice(c.j.length):c.B.get(e))};
return d};uw.prototype.getValue=function(){return this.B};
uw.prototype.clone=function(){return new uw(this.j,this.B)};g.k=vw.prototype;g.k.Dh=function(a,b){var c=this.j;c.push(new uw(a,b));a=c.length-1;b=this.j;for(c=b[a];0<a;){var d=a-1>>1;if(b[d].j>c.j)b[a]=b[d],a=d;else break}b[a]=c};
g.k.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(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].j<b[f].j?h:f;if(b[f].j>e.j)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.k.zm=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.On=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].j);return b};
g.k.clone=function(){return new vw(this)};
g.k.isEmpty=function(){return 0===this.j.length};
g.k.clear=function(){this.j.length=0};g.y(ww,vw);ww.prototype.enqueue=function(a,b){this.Dh(a,b)};xw.hh=void 0;xw.getInstance=function(){return xw.hh?xw.hh:xw.hh=new xw};
xw.prototype.j=0;var yw={},Wlb="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;yw.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};
yw.qT=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a};
var Xlb={xz: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]},
SX: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}},Ylb={xz:function(a,b,c,d,e){for(var f=0;f<d;f++)a[e+f]=b[c+f]},
SX:function(a){return[].concat.apply([],a)}};
yw.aea=function(){Wlb?(yw.Ry=Uint8Array,yw.Rq=Uint16Array,yw.J3=Int32Array,yw.assign(yw,Xlb)):(yw.Ry=Array,yw.Rq=Array,yw.J3=Array,yw.assign(yw,Ylb))};
yw.aea();var Zlb=!0;try{new Uint8Array(1)}catch(a){Zlb=!1};var Wla={};Wla=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 Vw={},z2,$lb=[],A2=0;256>A2;A2++){z2=A2;for(var amb=0;8>amb;amb++)z2=z2&1?3988292384^z2>>>1:z2>>>1;$lb[A2]=z2}Vw=function(a,b,c,d){c=d+c;for(a^=-1;d<c;d++)a=a>>>8^$lb[(a^b[d])&255];return a^-1};var Mw={};Mw={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 Hw=[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],Jw=[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],gma=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ula=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Qw=Array(576);zw(Qw);var Rw=Array(60);zw(Rw);var Iw=Array(512);zw(Iw);var Gw=Array(256);zw(Gw);var Ola=Array(29);zw(Ola);var Kw=Array(30);zw(Kw);var dma,ema,fma,cma=!1;var Zw;Zw=[new Yw(0,0,0,0,function(a,b){var c=65535;for(c>a.Pm-5&&(c=a.Pm-5);;){if(1>=a.hc){Ww(a);if(0===a.hc&&0===b)return 1;if(0===a.hc)break}a.Eb+=a.hc;a.hc=0;var d=a.Vk+c;if(0===a.Eb||a.Eb>=d)if(a.hc=a.Eb-d,a.Eb=d,Sw(a,!1),0===a.ye.Ge)return 1;if(a.Eb-a.Vk>=a.mj-262&&(Sw(a,!1),0===a.ye.Ge))return 1}a.Dh=0;if(4===b)return Sw(a,!0),0===a.ye.Ge?3:4;a.Eb>a.Vk&&Sw(a,!1);return 1}),
new Yw(4,4,8,4,Xla),new Yw(4,5,16,8,Xla),new Yw(4,6,32,32,Xla),new Yw(4,4,16,16,Xw),new Yw(8,16,32,32,Xw),new Yw(8,16,128,128,Xw),new Yw(8,32,128,256,Xw),new Yw(32,128,258,1024,Xw),new Yw(32,258,258,4096,Xw)];var bma={};bma=function(){this.input=null;this.Ky=this.rj=this.Fx=0;this.output=null;this.LT=this.Ge=this.kB=0;this.msg="";this.state=null;this.KO=2;this.Ud=0};var hma=Object.prototype.toString;
$w.prototype.push=function(a,b){var c=this.ye,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:!0===b?4:0;"string"===typeof a?c.input=Hla(a):"[object ArrayBuffer]"===hma.call(a)?c.input=new Uint8Array(a):c.input=a;c.Fx=0;c.rj=c.input.length;do{0===c.Ge&&(c.output=new yw.Ry(d),c.kB=0,c.Ge=d);a=ama(c,e);if(1!==a&&0!==a)return this.Zr(a),this.ended=!0,!1;if(0===c.Ge||0===c.rj&&(4===e||2===e))if("string"===this.options.to){var f=yw.qT(c.output,c.kB);b=f;f=f.length;if(65537>f&&(b.subarray&&
Zlb||!b.subarray))b=String.fromCharCode.apply(null,yw.qT(b,f));else{for(var h="",l=0;l<f;l++)h+=String.fromCharCode(b[l]);b=h}this.chunks.push(b)}else b=yw.qT(c.output,c.kB),this.chunks.push(b)}while((0<c.rj||0===c.Ge)&&1!==a);if(4===e)return(c=this.ye)&&c.state?(d=c.state.status,42!==d&&69!==d&&73!==d&&91!==d&&103!==d&&113!==d&&666!==d?a=Nw(c,-2):(c.state=null,a=113===d?Nw(c,-3):0)):a=-2,this.Zr(a),this.ended=!0,0===a;2===e&&(this.Zr(0),c.Ge=0);return!0};
$w.prototype.Zr=function(a){0===a&&(this.result="string"===this.options.to?this.chunks.join(""):yw.SX(this.chunks));this.chunks=[];this.err=a;this.msg=this.ye.msg};var mma="@@redux/INIT"+lma(),pma="@@redux/REPLACE"+lma();var qma="function"===typeof Symbol&&Symbol.observable||"@@observable";var bmb=[0,Wkb,-3,r2];g.y(bx,T);bx.prototype.getType=function(){return Tk(this,11)};
bx.wb=[2,13,14];var Q9a=function(){var a=[0,Ykb,Xkb,o2,Wkb,o2,-1,r2,Wkb,r2,-1,Ykb,r2,Xkb,p2,bmb,o2,-1,r2];return function(b,c){if(m2.length){var d=m2.pop();nda(d,c);d.j.init(b,void 0,void 0,c);b=d}else b=new Gh(b,c);try{var e=new bx,f=e.oa;hl(a)(f,b);var h=e}finally{b.free()}return h}}();var Lya=new g.cx("adInfoDialogEndpoint");var gBa=new g.cx("adPingingEndpoint");var cFa=new g.cx("crossDeviceProgressCommand");var aM=new g.cx("actionCompanionAdRenderer");var GJ=new g.cx("adActionInterstitialRenderer");var cmb=new g.cx("adDurationRemainingRenderer");var nM=new g.cx("adHoverTextButtonRenderer");var Jya=new g.cx("adInfoDialogRenderer");var FM=new g.cx("adMessageRenderer");var oM=new g.cx("adPreviewRenderer");var cM=new g.cx("adsEngagementPanelRenderer");var eHa=new g.cx("dismissablePanelTextPortraitImageRenderer");var dmb=new g.cx("flyoutCtaRenderer");var bM=new g.cx("imageCompanionAdRenderer");var FJ=new g.cx("instreamAdPlayerOverlayRenderer");var emb=new g.cx("instreamAdPlayerUnderlayRenderer");var zjb=new g.cx("instreamSurveyAdBackgroundImageRenderer");var oHa=new g.cx("instreamSurveyAdPlayerOverlayRenderer");var gM=new g.cx("instreamSurveyAdRenderer"),mM=new g.cx("instreamSurveyAdSingleSelectQuestionRenderer"),lM=new g.cx("instreamSurveyAdMultiSelectQuestionRenderer"),B2=new g.cx("instreamSurveyAdAnswerRenderer"),fmb=new g.cx("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var eM=new g.cx("instreamVideoAdRenderer");var gmb=new g.cx("textOverlayAdContentRenderer"),hmb=new g.cx("enhancedTextOverlayAdContentRenderer"),imb=new g.cx("imageOverlayAdContentRenderer");var ZDa=new g.cx("playerOverlayLayoutRenderer");var iHa=new g.cx("aboveFeedAdLayoutRenderer");var jHa=new g.cx("belowPlayerAdLayoutRenderer");var hHa=new g.cx("inPlayerAdLayoutRenderer");var bHa=new g.cx("playerBytesAdLayoutRenderer");var kM=new g.cx("playerUnderlayAdLayoutRenderer");var fM=new g.cx("adIntroRenderer");var $Ga=new g.cx("playerBytesSequentialLayoutRenderer");var yIa=new g.cx("slidingTextPlayerOverlayRenderer");var hM=new g.cx("surveyTextInterstitialRenderer");var jmb=new g.cx("simpleAdBadgeRenderer");var uL=new g.cx("skipAdRenderer"),kmb=new g.cx("skipButtonRenderer");var sM=new g.cx("adSlotRenderer");var jM=new g.cx("squeezebackPlayerSidePanelRenderer");var lmb=new g.cx("timedPieCountdownRenderer");var mmb=new g.cx("adAvatarViewModel");var nmb=new g.cx("adBadgeViewModel");var omb=new g.cx("adButtonViewModel");var pmb=new g.cx("adDisclosureBannerViewModel");var qmb=new g.cx("adPreviewViewModel");var rmb=new g.cx("playerAdAvatarLockupCardButtonedViewModel");var smb=new g.cx("skipAdButtonViewModel");var tmb=new g.cx("skipAdViewModel");var umb=new g.cx("visitAdvertiserLinkViewModel");var SGa=new g.cx("bannerImageLayoutViewModel");var TGa=new g.cx("topBannerImageTextIconButtonedLayoutViewModel");var UGa=new g.cx("adsEngagementPanelLayoutViewModel");g.y(wma,T);g.y(xma,T);g.y(yma,T);g.y(zma,T);g.y(dx,T);dx.prototype.clearVideo=function(){return Oj(this,1)};
var AO=[1,2,3,4];var $Ka={Qla:0,Ola:1,Pla:2};var aLa={Ula:0,Tla:1,Sla:2,Rla:3};var eLa={eqa:0,dqa:1,cqa:2};var yO={lta:0,mta:1,jta:2,ita:3,gta:4,kta:5,hta:6,fta:7};var dLa={hua:0,gua:1,aua:2,Wta:3,fua:4,iua:5,Zta:6,Vta:7,Yta:8,eua:9,cua:10,jua:11,Xta:12,kua:13};var SLa={Aua:0,oua:1,rua:2,Bua:3,pua:4,qua:5,wua:6,yua:7,tua:8,nua:9,vua:10,zua:11,uua:12,sua:13,xua:14};var cLa={Bya:0,zya:1,Aya:2};var RLa={v6a:0,u6a:1,t6a:2,s6a:3};var QLa={C6a:0,w6a:1,x6a:5,y6a:6,A6a:2,B6a:3,z6a:4};var PLa={F6a:0,G6a:1,E6a:2,D6a:3};var OLa={K6a:0,I6a:1,J6a:2};var NLa={zlb:0,nlb:1,vlb:2,olb:3,wlb:4,rlb:5,xlb:6,slb:7,qlb:8,plb:9,tlb:10,ylb:11,mlb:12};g.y(ex,T);ex.prototype.getType=function(){return Tk(this,1)};g.y(Ama,T);g.y(Bma,T);g.y(fx,T);fx.prototype.getViews=function(){return Tk(this,1)};g.y(Cma,T);g.y(Dma,T);g.y(gx,T);gx.prototype.getViews=function(){return Tk(this,1)};
gx.prototype.j=function(a,b){return bk(this,2,Ai,a,b)};
gx.wb=[2];g.y(hx,T);hx.prototype.j=function(a,b){return bk(this,3,Ai,a,b)};
hx.wb=[3];g.y(ix,T);g.y(Ema,T);g.y(Fma,T);g.y(Gma,T);g.y(Hma,T);g.y(Ima,T);g.y(jx,T);jx.prototype.getViews=function(){return Tk(this,1)};g.y(Jma,T);g.y(Kma,T);g.y(Lma,T);var wO=[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17];var mLa={Cna:0,Ima:2,Ena:3,Jma:4,Hma:5,tna:6,vna:58,Uma:17,yma:18,yna:15,Ana:7,bna:8,dma:10,ema:26,Bma:45,Fma:11,Tma:14,Gna:16,Zla:19,fma:20,ama:21,Hna:22,gma:23,Gma:25,Vla:27,Wla:53,Zma:28,Ama:30,kna:31,vma:32,hma:33,dna:34,Wma:35,Qma:36,bma:37,qna:39,Mma:41,Rma:42,Oma:43,Nma:44,cma:40,lna:46,mna:50,Pma:51,Sma:52,Fna:54,lma:57,nma:91,oma:93,mma:92,rna:60,wma:67,Xla:64,Cma:65,qma:68,Yla:69,cna:70,Lma:71,Kma:72,uma:73,tma:75,Dna:76,jna:77,Xma:78,una:79,pna:80,xma:81,Dma:82,rma:83,Ema:84,wna:85,ona:89,
Yma:86,gna:87,hna:88,fna:90,ena:100,kma:94,jma:95,ina:96,ana:97,zma:98,zna:99,Bna:101,xna:102,pma:103,Vma:104,nna:105,sna:106};var kLa={Qna:0,Ina:1,Pna:2,Kna:3,Jna:4,Ona:5,Nna:6,Mna:7,Lna:8,Rna:9};var jLa={Yna:0,Tna:1,Sna:2,Wna:3,Zna:4,Una:5,Vna:6,Xna:7};var lLa={joa:0,foa:1,eoa:2,hoa:3,boa:4,aoa:5,goa:6,coa:7,koa:8,ioa:9,doa:10};var iLa={xoa:0,woa:1,voa:2};var nLa={vQa:0,oQa:1,rQa:2,RPa:3,tQa:4,EPa:5,kQa:6,UPa:7,uQa:8,NPa:9,hQa:10,OPa:11,mQa:12,pPa:13,YPa:14,WPa:15,XPa:16,lQa:17,aQa:18,jQa:19,iQa:20,eQa:21,JPa:22,qPa:23,VPa:24,cQa:25,LPa:26,KPa:27,bQa:28,rPa:29,fQa:30,QPa:31,sQa:32,DPa:33,dQa:34,CPa:35,FPa:36,GPa:37,MPa:38,IPa:39,HPa:40,gQa:41,ZPa:42,nQa:43,SPa:44,pQa:45,qQa:46,TPa:47,PPa:70,zPa:48,wPa:49,BPa:50,APa:51,yPa:52,vPa:53,sPa:54,xPa:55,uPa:56,tPa:57,nPa:58,mPa:59,lPa:60,fPa:61,kPa:62,gPa:63,hPa:64,ePa:65,iPa:66,oPa:67,jPa:68,dPa:69};var ZKa={Xsa:0,Ssa:1,Rsa:18,Hsa:2,Asa:3,Gsa:9,Bsa:10,Esa:14,Csa:4,zsa:5,Dsa:6,Zsa:11,Fsa:12,vsa:13,usa:15,Ksa:16,Tsa:17,Usa:19,bta:20,Qsa:21,Nsa:22,Psa:23,ysa:24,Vsa:25,xsa:26,wsa:34,Ysa:27,Msa:28,Osa:29,Jsa:30,Wsa:31,ata:32,Lsa:33,Isa:7};var oLa={toa:0,uoa:1,ooa:2,poa:3,qoa:4,loa:5,noa:6,roa:7,soa:8,moa:9};var xO={Voa:0,Hoa:1,Uoa:3,Soa:4,Roa:5,Ioa:25,Woa:6,Foa:7,zoa:8,Koa:9,yoa:12,Joa:22,Moa:23,Noa:26,Ooa:27,Poa:28,Toa:24,Qoa:13,Xoa:14,Loa:15,Aoa:16,Doa:17,Boa:18,Coa:19,Eoa:20,Goa:21};g.y(Mma,T);g.y(kx,T);kx.prototype.j=function(a,b){return Lk(this,1,Mma,a,b)};
kx.wb=[1];g.y(lx,T);lx.prototype.j=function(a,b){return bk(this,2,Ai,a,b)};
lx.prototype.getMetrics=function(a){return Bea(this,2,a)};
lx.wb=[2];g.y(Nma,T);var pLa=[1,2];g.dT=new g.cx("browseEndpoint");var vmb=new g.cx("confirmDialogEndpoint");var nwa=new g.cx("rawColdConfigGroup");var mwa=new g.cx("rawHotConfigGroup");var VLa={q3a:0,p3a:1,l3a:2,j3a:3,m3a:4,k3a:5,o3a:6,n3a:7};g.QF=new g.cx("commandExecutorCommand");g.y(Oma,T);g.y(Pma,T);g.y(Qma,T);g.y(Rma,T);var sLa=[1,2,3];g.y(Sma,T);g.y(mx,T);mx.prototype.B=function(a,b){return bk(this,1,bj,a,b)};
mx.prototype.j=function(a,b){return bk(this,2,bj,a,b)};
mx.prototype.Ef=function(){return Ok(this,3)};
mx.wb=[1,2];g.y(Tma,T);g.y(nx,T);nx.prototype.j=function(a,b){return bk(this,1,Ai,a,b)};
nx.prototype.getMetrics=function(a){return Bea(this,1,a)};
nx.wb=[1];g.y(Uma,T);g.y(Vma,T);g.y(Wma,T);g.y(Xma,T);g.y(Yma,T);g.y(Zma,T);g.y($ma,T);g.y(ana,T);g.y(bna,T);g.y(cna,T);var CLa=[1,2],FLa=[3,4,5];g.y(ox,T);ox.prototype.getName=function(){return Ok(this,2)};g.y(dna,T);g.y(ena,T);g.y(px,T);px.prototype.getId=function(){return Ok(this,1)};g.y(qx,T);qx.prototype.getType=function(){return Bi(Lj(this,1))};g.y(rx,T);rx.prototype.getType=function(){return Bi(Lj(this,1))};g.y(sx,T);sx.prototype.getType=function(){return Bi(Lj(this,1))};g.y(tx,T);var DO=[1,2,3,4];g.y(fna,T);g.y(ux,T);g.y(vx,T);var CO=[1,2,3,4];g.y(gna,T);g.y(wx,T);wx.prototype.j=function(a,b){return Lk(this,2,vx,a,b)};
wx.wb=[2];var BO=[3,4,5,6,7];g.y(xx,T);g.y(hna,T);var fMa=[1,2];g.y(yx,T);yx.prototype.getId=function(){return g.Hk(this,xx,2)};g.y(zx,T);zx.prototype.j=function(a,b){return Lk(this,2,yx,a,b)};
zx.wb=[2];g.y(Ax,T);Ax.prototype.j=function(a,b){return Lk(this,1,yx,a,b)};
Ax.prototype.B=function(a,b){return Lk(this,2,zx,a,b)};
Ax.wb=[1,2];g.y(ina,T);var uLa=[1,2,3];g.y(jna,T);g.y(Bx,T);Bx.prototype.j=function(a,b){return bk(this,2,Ai,a,b)};
Bx.wb=[2];g.y(kna,T);g.y(lna,T);g.y(mna,T);g.y(nna,T);g.y(ona,T);g.y(Cx,T);Cx.prototype.j=function(a,b){return bk(this,1,Ai,a,b)};
Cx.wb=[1];g.y(pna,T);g.y(qna,T);g.y(rna,T);var ULa=[1,2,3];g.y(Dx,T);Dx.prototype.j=function(a,b){return Lk(this,1,rna,a,b)};
Dx.wb=[1];g.y(sna,T);g.y(tna,T);g.y(una,T);g.y(Ex,T);Ex.prototype.j=function(a,b){return Lk(this,1,una,a,b)};
Ex.wb=[1];g.y(vna,T);g.y(Fx,T);g.y(Gx,T);Gx.prototype.j=function(a,b){return Lk(this,1,Fx,a,b)};
Gx.wb=[1];g.y(Hx,T);Hx.prototype.j=function(a,b){return Lk(this,1,Fx,a,b)};
Hx.wb=[1];g.y(Ix,T);g.y(Jx,T);var xMa={mkb:0,hmb:1,Gmb:32,Pmb:61,cnb:67,Rmb:86,Emb:42,Hmb:60,pmb:62,Nmb:73,Lmb:76,Tmb:88,Umb:90,inb:99,Bmb:98,Vmb:100,onb:41,pnb:69,qnb:70,rnb:71,mXa:2,HXa:27,ANDROID:3,dpa:54,epa:14,mpa:91,fpa:55,gpa:24,hpa:20,ipa:18,kpa:21,opa:30,rpa:29,spa:28,Tlb:101,tpa:34,npa:36,jpa:38,IOS:5,FKa:15,PKa:92,GKa:40,IKa:25,JKa:17,KKa:19,LKa:64,MKa:66,NKa:26,RKa:22,cLa:33,dLa:68,eLa:35,OKa:53,QKa:37,HKa:39,qib:7,qjb:57,Fjb:43,Qjb:59,Gjb:93,qpa:74,Xjb:75,Yjb:85,Zjb:65,bkb:80,dkb:8,oib:10,gkb:58,fkb:63,akb:72,ppa:23,
Rnb:11,Snb:13,Oua:12,pib:16,Cmb:56,Qmb:31,jXa:77,PHa:84,Kmb:87,RHa:89,QHa:94,hUa:95};var wmb={G6:0,L3:1,l6:2,g4:3,O3:4,s6:5,d4:6,fW:7};g.y(Kx,T);Kx.prototype.C8=function(){return Sk(this,3)};
Kx.prototype.K8=function(){return Sk(this,5)};
Kx.prototype.As=function(a){return Q(this,5,a)};g.y(Lx,T);g.y(xna,T);g.y(yna,T);g.y(Mx,T);g.y(zna,T);zna.wb=[2];g.y(Nx,T);Nx.prototype.getDeviceId=function(){return Sk(this,6)};
Nx.prototype.getPlayerType=function(){return Tk(this,36)};
Nx.prototype.setHomeGroupInfo=function(a){return Ik(this,zna,81,a)};
Nx.prototype.clearLocationPlayabilityToken=function(){return Oj(this,89)};
Nx.wb=[9,66,32,86,100,101];g.y(Ox,T);Ox.prototype.getValue=function(){return Sk(this,fk(this,gwa,2))};
var gwa=[2,3,4,5,6];g.y(Px,T);Px.wb=[15,26,28];g.y(Qx,T);Qx.wb=[5];g.y(Rx,T);Rx.prototype.getToken=function(){return Ok(this,2)};
Rx.prototype.setToken=function(a){return Q(this,2,a)};g.y(Zx,T);Zx.prototype.setSafetyMode=function(a){return S(this,5,a)};
Zx.wb=[12];g.y($x,T);$x.prototype.wy=function(a){return Ik(this,Nx,1,a)};
$x.wb=[12];var qM=new g.cx("thumbnailLandscapePortraitRenderer");var cMa={Fbb:0,Abb:1,Dbb:2,Ebb:3,Bbb:4,Cbb:5};var aMa={lcb:0,kcb:1,Gbb:2,Hbb:3,Ibb:4,Jbb:5,Kbb:6,Lbb:7,Mbb:8,Obb:9,Pbb:10,Qbb:11,Rbb:12,Sbb:13,Tbb:14,Ubb:15,Wbb:16,Xbb:17,acb:18,bcb:19,ccb:20,fcb:21,dcb:22,ecb:23,gcb:24,hcb:25,icb:26,jcb:27,Zbb:28,Nbb:29,Vbb:30,Ybb:31};var $La={vcb:0,mcb:1,ncb:2,ocb:3,pcb:4,qcb:5,rcb:6,scb:7,tcb:8,ucb:9,wcb:10};var bMa={Acb:0,ycb:1,zcb:2,xcb:3};var DLa={Ota:0,sta:1,Pta:2,Hta:3,nta:4,pta:5,Eta:6,qta:7,Cta:8,Dta:13,wta:9,yta:10,Bta:11,Qta:12,uta:14,Ata:15,xta:16,Jta:17,Gta:18,Mta:19,Kta:20,vta:21,Lta:22,tta:23,zta:24,Ita:25,Fta:26,Nta:27,rta:28};var ELa={Uta:0,Tta:1,Sta:2,Rta:3};var WLa={Reb:0,Peb:1,Qeb:2};var wLa={lqa:0,jqa:4,iqa:2,gqa:5,hqa:8,kqa:9,fqa:3,mqa:6,nqa:7};var xLa={Hva:0,Eva:1,Fva:2,Iva:3,Jva:4,Gva:5};var vLa={kwa:0,iwa:8,gwa:2,ewa:5,fwa:9,hwa:3,dwa:4,lwa:6,mwa:7,jwa:10};var ILa={Uka:0,Ska:1,Tka:2,Wka:3,Xka:4,Vka:5};var eMa={w4a:0,p4a:1,r4a:2,v4a:3,t4a:4,s4a:6,q4a:7,u4a:5};var xmb={jlb:0,ilb:1,clb:2,hlb:3,flb:4,glb:5,dlb:6};var TLa={Elb:0,Dlb:1,Flb:2};var JLa={alb:0,Rkb:1,Skb:2,Tkb:3,Ukb:4,Vkb:5,Wkb:6,Xkb:7,Ykb:8,Zkb:9};var ymb={Hlb:0,Glb:1};var KLa={pbb:0,bbb:1,obb:2,cbb:3,dbb:4,hbb:5,gbb:6,fbb:7,qbb:8,Zab:9,abb:10,nbb:11,mbb:12,lbb:13,ebb:14,kbb:15,jbb:16};var qNa={tfa:0,rfa:1,qfa:2,sfa:3};g.zmb=new g.cx("changeEngagementPanelVisibilityAction");var xza=new g.cx("continuationCommand");g.Amb=new g.cx("openPopupAction");g.C2=new g.cx("webCommandMetadata");var TWa=new g.cx("metadataBadgeRenderer");var wza=new g.cx("signalServiceEndpoint");var tOa={qla:0,rla:1,lla:2,ola:3,mla:4,nla:5,kla:6};var uOa={zla:0,wla:1,sla:2,yla:3,Ala:4,ula:5,tla:6,xla:7};g.y(ay,T);ay.prototype.getType=function(){return Tk(this,1)};var JO={MLa:0,NLa:1,LLa:2,HLa:3,JLa:4,KLa:5,OLa:6,ILa:7};var Bmb={hXa:0,ZWa:1,aXa:2,gXa:11,fXa:3,eXa:6,dXa:7,bXa:8,cXa:9,YWa:10};var Cmb={nYa:0,kYa:1,mYa:2,lYa:3,jYa:4};var Dmb={U1a:0,E1a:1,V1a:2,S1a:3,R1a:4,Q1a:5,P1a:6,H1a:7,F1a:8,L1a:9,Z1a:10,G1a:11,N1a:12,X1a:13,Y1a:14,O1a:15,K1a:16,J1a:17,M1a:18,I1a:19,W1a:20,T1a:21};var rLa={d2a:0,c2a:86};var KO={Q4a:0,P4a:1,H4a:2,E4a:3,G4a:4,R4a:5,O4a:6,B4a:7,S4a:8,z4a:9,M4a:10,T4a:11,N4a:12,C4a:13,y4a:14,F4a:15,J4a:16,I4a:17,L4a:18,A4a:19,K4a:20,D4a:21};var Emb={Vab:0,Pab:1,Xab:2,Qab:3,Wab:4,Sab:5,Uab:6,Rab:7};var EE=new g.cx("innertubeCommand");var Njb=new g.cx("loggingDirectives");var Fmb={W3:0,T3:1,V3:2,U3:3};var jra={W3:"EMBEDDED_PLAYER_MODE_UNKNOWN",T3:"EMBEDDED_PLAYER_MODE_DEFAULT",V3:"EMBEDDED_PLAYER_MODE_PFP",U3:"EMBEDDED_PLAYER_MODE_PFL"};var tXa=new g.cx("channelThumbnailEndpoint");var sXa=new g.cx("embeddedPlayerErrorMessageRenderer");var oXa=new g.cx("embeddedPlayerOverlayVideoDetailsRenderer"),uXa=new g.cx("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),vXa=new g.cx("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var QWa=new g.cx("embedsInfoPanelRenderer");var GLa={LSa:0,zSa:14,JSa:15,KSa:16,ASa:17,ESa:18,GSa:19,CSa:20,DSa:21,ISa:22,FSa:23,HSa:24,BSa:25};var Gmb=new g.cx("feedbackEndpoint");var Hmb=new g.cx("callToActionButtonViewModel");g.y(Ana,T);g.y(Bna,T);g.y(Cna,T);var FNa=[1,2];var Imb={WLa:0,XLa:1,VLa:2,QLa:3,PLa:4,RLa:5,TLa:6,SLa:7,ULa:8};var Jmb={rMa:0,fMa:1,qMa:2,pMa:3,aMa:4,cMa:5,dMa:6,bMa:7,jMa:8,gMa:9,hMa:10,iMa:16,YLa:11,sMa:12,ZLa:13,nMa:14,eMa:15,oMa:17,kMa:18,lMa:19,mMa:20};var Kmb={wMa:0,tMa:1,vMa:2,uMa:3};var Lmb={dJa:0,KIa:1,eJa:8,VIa:16,WIa:17,ZIa:2,XIa:3,YIa:4,NIa:5,LIa:6,MIa:7,cJa:9,aJa:10,bJa:11,UIa:12,RIa:13,TIa:14,SIa:15,QIa:18,OIa:19,PIa:20,JIa:21};var Mmb={u1a:0,v1a:1,t1a:2};var Nmb={B1a:0,x1a:1,z1a:2,w1a:3,y1a:4,A1a:5};var Omb={LMa:0,CMa:1,DMa:2,EMa:3,JMa:4,GMa:5,HMa:6,FMa:7,IMa:8,BMa:9,KMa:10};var Pmb={oRa:0,kRa:1,XQa:2,jRa:3,SQa:4,hRa:5,gRa:6,fRa:7,rRa:8,ZQa:9,TQa:10,aRa:11,bRa:12,UQa:13,eRa:14,qRa:15,dRa:16,cRa:17,VQa:18,WQa:19,YQa:20,lRa:21,mRa:22,nRa:23,pRa:24,iRa:25};var Qmb={NRa:0,JRa:9,DRa:8,PRa:1,URa:2,SRa:3,TRa:13,KRa:4,FRa:21,GRa:20,HRa:5,zRa:6,yRa:7,BRa:14,ARa:15,WRa:17,XRa:10,IRa:16,CRa:18,MRa:19,wRa:11,xRa:12,QRa:22,RRa:23,vRa:24,ORa:25,uRa:26,VRa:27,ERa:28,LRa:29};var Rmb={Rra:0,Pra:1,Qra:2};var Smb={HQa:0,zQa:1,CQa:2,FQa:3,AQa:4,xQa:5,DQa:6,EQa:7,wQa:8,GQa:9,BQa:10,yQa:11};var Tmb={Ura:0,Sra:1,Vra:2,Tra:3};var Umb=new g.cx("interactionLoggingCommandMetadata");var Nta={zmb:"WEB_DISPLAY_MODE_UNKNOWN",vmb:"WEB_DISPLAY_MODE_BROWSER",xmb:"WEB_DISPLAY_MODE_MINIMAL_UI",ymb:"WEB_DISPLAY_MODE_STANDALONE",wmb:"WEB_DISPLAY_MODE_FULLSCREEN"};g.y(Dna,T);g.y(Ena,T);g.y(by,T);by.prototype.j=function(a,b){return Lk(this,1,Ena,a,b)};
by.wb=[1];var ROa={kga:0,Jfa:1,Tfa:2,Zfa:3,gga:4,hga:5,lga:6,aga:7,Ifa:8,Qfa:9,Pfa:10,ufa:11,Sfa:12,Dfa:14,Mfa:15,Yfa:16,Wfa:17,Vfa:43,Rfa:18,Kfa:29,Nfa:19,Afa:20,Ffa:21,jga:22,vfa:23,oga:24,Ofa:25,Bfa:26,dga:27,Cfa:28,ega:30,fga:31,Ufa:32,iga:33,wfa:34,cga:35,pga:36,yfa:37,zfa:38,nga:39,Gfa:40,Hfa:41,xfa:42,Lfa:44,Efa:45,Xfa:46,qga:47};var Vmb={wva:0,vva:1,uva:2};g.y(Fna,T);g.y(Gna,T);var Wmb={Sia:0,Mia:114,Iha:1,Gia:4,Hia:14,vha:15,Iia:17,gha:6,jha:7,mha:8,lha:9,tha:5,aia:16,Wha:101,Fia:20,Eia:26,via:28,zha:104,Rga:105,Tia:50,Dia:88,yia:89,Aia:90,zia:91,Aha:2,Nha:92,Oha:19,Uga:25,Oia:107,iha:29,Dha:93,Fha:94,Eha:95,Qia:30,Xha:31,Mha:116,Kha:3,Gha:82,Cha:83,Bha:84,Jha:85,xia:11,Uia:27,bia:10,Lia:115,Oga:12,Qga:13,Pga:49,Nga:106,eha:18,Vha:21,qha:22,Mga:23,Cia:24,Cga:32,Tha:33,Gga:34,bja:35,bha:36,kia:37,xha:38,Nia:39,Jia:40,Kia:41,Wia:42,fha:43,Ria:44,wha:45,pha:46,cia:47,Yha:48,
Hha:51,uha:52,hha:53,wia:54,yha:55,Tga:56,aha:57,cha:99,Sga:58,hia:59,rha:60,iia:61,dia:62,Qha:63,aja:64,Xia:65,Via:66,Zia:67,Yia:68,Bga:69,gia:70,lia:71,mia:72,qia:73,ria:74,oia:75,pia:117,Xga:76,Zga:77,Jga:78,dha:79,Lha:80,sha:81,Vga:86,Lga:87,Ega:97,Dga:103,Pha:98,jia:100,Hga:102,uia:108,tia:109,Fga:110,Kga:111,Rha:112,sia:113,nha:118,Pia:119,Uha:120,Sha:121,oha:122,Bia:123,Iga:124,fia:125,Zha:126,Wga:127,Yga:128};var Xmb={qja:0,kja:1,mja:2,oja:3,ija:4,dja:5,fja:6,hja:7,nja:8,eja:9,gja:10,lja:13,pja:14,cja:11,jja:12};var Ymb={nka:0,tja:1,uja:2,wja:3,Dja:4,hka:42,Yja:9,ika:10,Bja:11,fka:12,dka:13,Lja:43,Xja:14,Mja:15,lka:47,Oja:46,Tja:16,Sja:17,xja:18,bka:19,Aja:20,cka:21,mka:22,jka:23,kka:24,zja:25,vja:26,gka:27,Qja:28,Vja:38,Wja:39,Uja:49,aka:5,Nja:6,Cja:7,Hja:8,Rja:29,Zja:30,Pja:31,rja:32,Ija:33,Gja:34,Eja:35,pka:36,Kja:37,oka:40,Jja:41,sja:44,Fja:45,yja:48};var dOa={uka:0,tka:1,qka:2,ska:3,rka:4};var bOa={Rva:0,Ova:1,Nva:2,Qva:3,Pva:4};var Zmb={vwa:0,twa:1,qwa:2,uwa:3,rwa:4,swa:5};var $mb={ywa:0,wwa:1,xwa:2};var anb={Fwa:0,Ewa:1,Cwa:2,Dwa:3,Bwa:4};var bnb={Iwa:0,Gwa:1,Hwa:2,Jwa:3};var cnb={Pwa:0,Kwa:1,Owa:2,Nwa:3,Mwa:4,Lwa:5};var dnb={Vwa:0,Uwa:1,Qwa:2};var enb={Twa:0,Rwa:1,Swa:2};var fnb={Ywa:0,Wwa:1,Xwa:2};var gnb={mxa:0,ixa:1,hxa:2,cxa:3,gxa:4,axa:5,bxa:6,jxa:7,dxa:8,kxa:9,fxa:10,Zwa:11,exa:12,lxa:13};var hnb={rxa:0,pxa:1,qxa:2,oxa:3,nxa:4};var aOa={uOa:0,QNa:1,RNa:2,ZMa:3,HNa:4,SNa:5,INa:6,aNa:7,TNa:8,SMa:9,TMa:10,iNa:11,YMa:12,bNa:13,KNa:14,gNa:15,RMa:16,jOa:17,FNa:18,cNa:19,NNa:20,LNa:21,MNa:22,QMa:23,sOa:25,iOa:26,ZOa:61,xNa:35,mNa:36,kNa:37,rNa:38,sNa:113,pNa:93,qNa:114,vNa:39,uNa:115,tNa:40,BNa:41,pOa:97,qOa:106,rOa:102,yNa:42,wNa:43,CNa:44,DNa:45,VMa:24,WMa:27,XMa:28,ROa:29,UOa:75,SOa:104,TOa:30,LOa:98,OOa:108,MOa:105,NOa:89,VOa:31,WOa:86,POa:32,QOa:91,zOa:51,BOa:52,KOa:62,DOa:70,HOa:63,FOa:64,AOa:65,JOa:66,COa:71,GOa:67,EOa:68,
IOa:69,YOa:33,zNa:46,ANa:47,kOa:49,lOa:50,mOa:94,cOa:77,VNa:78,UNa:79,WNa:80,JNa:53,vOa:54,xOa:55,wOa:56,eOa:112,dOa:57,fOa:101,hOa:110,gOa:96,yOa:58,ONa:59,PNa:60,XNa:72,YNa:107,bOa:84,ZNa:92,eNa:73,nOa:74,UMa:76,tOa:81,lNa:82,oOa:83,nNa:85,oNa:95,XOa:87,GNa:88,hNa:90,aOa:99,jNa:100,dNa:103,fNa:109,ENa:111};var eOa={M3:0,Tua:1,PMa:2,Cva:3,v6:4,w6:5,f6a:6,V6a:7,K2a:8,L6:9,Uua:10,xka:11,Aka:12,Wlb:13,Oka:14,Qka:15,Ika:16,Jka:17,Bka:18,yra:19,Cza:20,IJa:21,yKa:22,M6:23,Ceb:24,wka:25,JVa:26,IVa:47,A6:27,xra:28,e6a:29,DFa:30,HJa:31,tva:32,Lkb:33,Ekb:34,Bkb:35,Jkb:36,Kkb:37,Gkb:38,Hkb:39,Ikb:40,Dkb:41,Ckb:42,Ora:43,m6:44,Jqa:45,x3:46,xga:48,e4:49,veb:50,yya:51,ZRa:52,yob:53};var inb={x0a:0,m0a:1,r0a:2,p0a:3,q0a:4,l0a:5,v0a:6,w0a:7,k0a:8,t0a:9,n0a:10,o0a:11,s0a:12,u0a:13};var jnb={C0a:0,D0a:1,y0a:2,z0a:3,B0a:4,A0a:5};var $Na={f1a:0,Z0a:1,U0a:2,V0a:3,W0a:21,P0a:4,J0a:5,M0a:6,L0a:7,O0a:8,K0a:24,e1a:9,I0a:10,d1a:11,b1a:12,T0a:22,Y0a:13,X0a:20,Q0a:14,S0a:15,R0a:16,H0a:17,G0a:19,N0a:18,F0a:23,a1a:25};var gOa={sab:0,mab:1,nab:14,pab:15,rab:20,qab:21,W$a:2,eab:3,bab:4,cab:5,T$a:6,hab:7,aab:8,X$a:9,V$a:10,jab:11,dab:12,iab:13,U$a:16,oab:17,Z$a:18,Y$a:19};var knb={Fab:0,Eab:1,xab:2,yab:3,Cab:4,Bab:5,Dab:6,zab:7,Aab:8};var hOa={Mgb:0,Jgb:1,Lgb:2,Kgb:3,Dgb:4,Hgb:5,Ggb:6,Fgb:8,Egb:9,Igb:7};var IO={mib:0,Ngb:1,xhb:2,gib:3,bib:4,Wgb:5,Ihb:6,mhb:7,Phb:8,Fhb:9,Zhb:10,dib:11,Rhb:12,Xgb:13,Ghb:14,khb:15,Ugb:16,Dhb:17,Qhb:18,cib:19,hhb:20,phb:21,kib:22,jib:57,ohb:23,ghb:24,Vgb:25,lib:26,Bhb:27,eib:28,fib:29,Khb:30,iib:31,jhb:32,Shb:33,thb:34,vhb:35,Ehb:36,Chb:37,Uhb:38,Hhb:39,nib:40,qhb:41,rhb:42,shb:43,Sgb:44,Rgb:45,Qgb:46,Ogb:58,Pgb:59,Xhb:47,Yhb:48,Lhb:67,Mhb:68,lhb:49,Thb:50,Whb:51,Vhb:52,zhb:53,ehb:54,hib:55,uhb:56,Nhb:60,yhb:61,nhb:62,aib:63,ihb:64,Ahb:69,Ygb:65,Tgb:66,dhb:70,bhb:71,
Jhb:74,fhb:72,Ohb:73,ahb:75,Zgb:76,whb:77};g.y(Hna,T);g.y(Ina,T);g.y(cy,T);cy.prototype.fg=function(){return Sk(this,1)};g.y(Jna,T);g.y(Kna,T);g.y(Lna,T);var jOa=[1,2];g.y(dy,T);dy.prototype.getType=function(){return Tk(this,1)};
var iOa=[3,4];g.y(ey,T);g.k=ey.prototype;g.k.Lw=function(){return Sk(this,1)};
g.k.f7=function(a,b){return Lk(this,2,dy,a,b)};
g.k.g7=function(a,b){return Lk(this,3,dy,a,b)};
g.k.e7=function(a,b){return Lk(this,4,dy,a,b)};
g.k.i7=function(a,b){return Lk(this,5,dy,a,b)};
g.k.h7=function(a,b){return Lk(this,6,dy,a,b)};
ey.wb=[2,3,4,5,6];g.y(fy,T);fy.prototype.getType=function(){return Tk(this,2)};
fy.prototype.j=function(a,b){return bk(this,5,Ai,a,b)};
fy.wb=[5];g.y(gy,T);gy.prototype.B=function(a,b){return bk(this,2,Ai,a,b)};
gy.prototype.j=function(a,b){return Lk(this,4,dy,a,b)};
gy.prototype.D=function(a,b){return Lk(this,5,dy,a,b)};
gy.prototype.C=function(a,b){return Lk(this,6,dy,a,b)};
gy.wb=[2,4,5,6];g.y(hy,T);hy.prototype.getType=function(){return Tk(this,2)};g.y(iy,T);iy.prototype.j=function(a,b){return Lk(this,1,hy,a,b)};
iy.wb=[1];g.y(Mna,T);g.y(jy,T);jy.prototype.j=function(a,b){return bk(this,1,Ai,a,b)};
jy.wb=[1];g.y(ky,T);ky.prototype.j=function(a,b){return bk(this,1,Ai,a,b)};
ky.prototype.B=function(a,b){return bk(this,2,Ai,a,b)};
ky.wb=[1,2];g.y(ly,T);ly.prototype.j=function(a,b){return Lk(this,2,jy,a,b)};
ly.wb=[2];g.y(my,T);g.y(Nna,T);g.y(ny,T);ny.prototype.fg=function(){return Sk(this,1)};
ny.prototype.j=function(a,b){return Lk(this,3,Nna,a,b)};
ny.wb=[3];g.y(oy,T);oy.prototype.dh=function(){return Tk(this,1)};g.y(py,T);py.prototype.wf=function(){return Tk(this,2)};g.y(Ona,T);g.y(Pna,T);g.y(qy,T);qy.prototype.getType=function(){return Tk(this,1)};
qy.prototype.fg=function(){return Sk(this,8)};g.y(ry,T);ry.prototype.fg=function(){return Sk(this,1)};g.y(sy,T);sy.prototype.fg=function(){return Sk(this,1)};g.y(ty,T);ty.prototype.fg=function(){return Sk(this,1)};g.y(uy,T);uy.prototype.fg=function(){return Sk(this,2)};
uy.prototype.qJ=function(){return Sk(this,4)};g.y(vy,T);vy.prototype.fg=function(){return Sk(this,1)};g.y(wy,T);wy.prototype.fg=function(){return Sk(this,1)};g.y(yy,T);g.y(Qna,T);g.y(Rna,T);g.y(zy,T);zy.prototype.fg=function(){return Sk(this,2)};g.y(Sna,T);g.y(Tna,T);g.y(Una,T);var D2=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];g.y(Ay,T);g.y(Vna,T);g.y(Wna,T);g.y(Xna,T);g.y(By,T);By.prototype.getState=function(){return Tk(this,1)};
By.prototype.Hc=function(a){return S(this,1,a)};g.y(Yna,T);g.y(Cy,T);Cy.prototype.j=function(a,b){return Lk(this,1,Yna,a,b)};
Cy.wb=[1];g.y(Dy,T);Dy.prototype.j=function(a,b){return Lk(this,2,Cy,a,b)};
Dy.prototype.B=function(a,b){return Lk(this,3,Xna,a,b)};
Dy.wb=[2,3];g.y(Ey,T);Ey.prototype.B=function(a,b){return Lk(this,1,Dy,a,b)};
Ey.prototype.j=function(a,b){return Lk(this,2,Wna,a,b)};
Ey.wb=[1,2];g.y(Zna,T);g.y(Fy,T);g.y($na,T);g.y(Gy,T);Gy.prototype.tm=function(){return xea(this,4)};g.y(Hy,T);Hy.prototype.getStatus=function(){return Pk(this,2)};g.y(aoa,T);g.y(Iy,T);Iy.prototype.setConfig=function(a){return Ik(this,aoa,2,a)};g.y(boa,T);g.y(Jy,T);Jy.prototype.getValue=function(){return Sk(this,2)};g.y(coa,T);g.y(doa,T);g.y(eoa,T);g.y(Ky,T);Ky.prototype.j=function(a,b){return Lk(this,3,eoa,a,b)};
Ky.wb=[3];g.y(foa,T);g.y(Ly,T);g.y(My,T);g.y(Ny,T);g.k=Ny.prototype;g.k.getSettings=function(){return g.Hk(this,My,1)};
g.k.qh=function(a){return Ik(this,My,1,a)};
g.k.getState=function(){return Tk(this,2)};
g.k.Hc=function(a){return S(this,2,a)};
g.k.tm=function(){return Rk(this,3)};g.y(goa,T);g.y(Oy,T);Oy.prototype.tm=function(){return Rk(this,4)};g.y(hoa,T);g.y(Py,T);g.k=Py.prototype;g.k.getType=function(){return Tk(this,1)};
g.k.a7=function(a,b){return Lk(this,2,hoa,a,b)};
g.k.tm=function(){return Rk(this,6)};
g.k.getPlaybackRate=function(){return yea(this,7)};
g.k.setPlaybackRate=function(a){return Zk(this,7,a)};
g.k.setEnabled=function(a){return Uk(this,8,a)};
Py.wb=[2];g.y(Qy,T);Qy.prototype.tm=function(){return Rk(this,3)};g.y(Ry,T);Ry.prototype.j=function(a,b){return Lk(this,1,Py,a,b)};
Ry.prototype.B=function(a,b){return Lk(this,2,Qy,a,b)};
Ry.wb=[1,2];g.y(Sy,T);Sy.prototype.getState=function(){return Tk(this,1)};
Sy.prototype.Hc=function(a){return S(this,1,a)};g.y(g.Ty,T);g.y(g.Uy,T);g.k=g.Uy.prototype;g.k.wy=function(a){return S(this,1,a)};
g.k.X6=function(a,b){return Lk(this,4,Ry,a,b)};
g.k.setComposition=function(a,b){vea(this,4,Ry,b,a,!1,1);return this};
g.k.getDeviceInfo=function(){return g.Hk(this,Ly,8)};
g.k.Rw=ea(0);g.k.pc=function(){return g.Hk(this,foa,12)};
g.Uy.wb=[4];g.y(Vy,T);Vy.prototype.Ef=function(){return Tk(this,4)};g.y(Wy,T);Wy.prototype.j=function(a,b){return bk(this,1,Ai,a,b)};
Wy.prototype.Dg=function(a,b){sea(this,1,Ai,a,b,Aea)};
Wy.wb=[1];g.y(Xy,T);g.k=Xy.prototype;g.k.qe=function(){return Sk(this,1)};
g.k.setVideoId=function(a){return Q(this,1,a)};
g.k.getPlaylistId=function(){return Sk(this,2)};
g.k.getPlaylistIndex=function(){return Qk(this,3)};
g.k.getPlayerType=function(){return Tk(this,5)};g.y(ioa,T);g.y(Yy,T);Yy.prototype.j=function(a,b){return Lk(this,4,Jy,a,b)};
Yy.prototype.B=function(a,b){return bk(this,5,Qda,a,b)};
Yy.wb=[4,5];g.y(Zy,T);g.y($y,T);g.y(joa,T);g.y(az,T);az.prototype.Ef=function(){return Sk(this,2)};g.y(bz,T);bz.prototype.j=function(a,b){return Lk(this,1,az,a,b)};
bz.wb=[1];g.y(cz,T);cz.prototype.Ef=function(){return Sk(this,2)};g.y(dz,T);dz.prototype.j=function(a,b){return Lk(this,1,cz,a,b)};
dz.wb=[1];g.y(koa,T);var ANa=[1,2,3];g.y(ez,T);ez.prototype.j=function(a,b){return Lk(this,1,koa,a,b)};
ez.wb=[1];g.y(fz,T);var DE=[2,3,4,5];g.y(gz,T);gz.prototype.getMessage=function(){return Sk(this,1)};g.y(hz,T);g.y(iz,T);g.y(loa,T);g.y(jz,T);jz.prototype.Ri=function(a,b){return Lk(this,5,loa,a,b)};
jz.wb=[5];g.y(moa,T);g.y(kz,T);kz.prototype.j=function(a,b){return Lk(this,3,moa,a,b)};
kz.prototype.B=function(a,b){return bk(this,4,Ai,a,b)};
kz.wb=[3,4];g.y(noa,T);g.y(ooa,T);g.y(lz,T);lz.prototype.B=function(a,b){return Lk(this,19,yna,a,b)};
lz.prototype.j=function(a,b){return Lk(this,20,xna,a,b)};
lz.wb=[19,20];g.y(mz,T);g.y(poa,T);g.y(nz,T);nz.prototype.j=function(a,b){return Lk(this,2,mz,a,b)};
nz.prototype.setConfig=function(a){return Ik(this,poa,3,a)};
nz.prototype.C=function(a,b){return Lk(this,5,mz,a,b)};
nz.prototype.B=function(a,b){return Lk(this,9,Cna,a,b)};
nz.wb=[2,5,9];g.y(oz,T);oz.prototype.tm=function(){return xea(this,2)};g.y(pz,T);pz.prototype.j=function(a,b){return Lk(this,9,oz,a,b)};
pz.wb=[9];g.y(qoa,T);g.y(roa,T);g.y(soa,T);g.y(toa,T);g.y(qz,T);qz.prototype.getType=function(){return Tk(this,2)};
qz.prototype.j=function(a,b){return Lk(this,3,toa,a,b)};
qz.wb=[3];g.y(rz,T);rz.prototype.j=function(a,b){return Lk(this,10,Zna,a,b)};
rz.prototype.B=function(a,b){return Lk(this,17,pz,a,b)};
rz.wb=[10,17];g.y(uoa,T);var nNa={Zpa:0,Ypa:1,Vpa:2,Wpa:3,Xpa:4};var lnb={kra:0,gra:1,ira:2,hra:3,jra:4};var mnb={wra:0,tra:1,sra:2,ura:3,rra:4,pra:5,qra:6,vra:7,ora:8,mra:9,lra:10,nra:11};g.y(sz,T);g.k=sz.prototype;g.k.Ef=function(){return Sk(this,2)};
g.k.fg=function(){return Sk(this,3)};
g.k.Z6=function(a,b){return bk(this,10,Ai,a,b)};
g.k.qJ=function(){return Sk(this,7)};
g.k.tm=function(){return Pk(this,11)};
sz.wb=[10];var EMa={Ara:0,zra:1,Cra:2,Bra:3};var DMa={Mra:0,Lra:1,Era:2,Fra:3,Gra:4,Hra:5,Jra:6,Kra:7,Dra:8,Ira:9};var TMa={xza:0,yza:3,Aza:1,wza:2};var zMa={OAa:0,Iza:1,Rza:2,Tza:3,Wza:4,Xza:5,cAa:6,dAa:7,eAa:8,fAa:9,gAa:10,jAa:11,kAa:12,lAa:13,mAa:14,nAa:15,tAa:16,xAa:17,yAa:18,BAa:19,DAa:20,FAa:21,GAa:22,IAa:23,KAa:24,PAa:25,QAa:26,vAa:27,LAa:28,wAa:29,iAa:30,Zza:31,hAa:32,UAa:33,WAa:34,Hza:35,Oza:36,MAa:37,NAa:38,Sza:39,pAa:40,qAa:51,Nza:41,Jza:42,Uza:43,rAa:44,Pza:45,uAa:46,EAa:47,Mza:48,AAa:49,sAa:50,Qza:52,Vza:53,Yza:54,HAa:55,JAa:56,SAa:57,RAa:58,CAa:59,Kza:60,aAa:61,Lza:62,TAa:63,VAa:64,zAa:65,bAa:66,oAa:67};var CMa={MEa:0,zBa:1,qDa:2,IEa:3,gFa:4,jDa:5,rDa:6,JBa:7,MBa:8,LBa:9,FDa:10,iDa:11,hDa:12,PDa:13,eEa:14,JEa:15,aFa:16,IBa:17,gBa:18,xCa:19,XBa:20,oDa:21,vDa:22,LEa:23,iBa:24,mBa:25,KDa:26,fCa:116,ACa:27,BCa:28,EDa:29,CBa:30,tCa:31,nDa:32,DDa:33,eBa:34,fBa:35,cBa:36,dBa:37,sDa:38,tDa:39,SDa:40,HBa:41,eFa:42,IDa:43,CDa:44,GDa:45,kDa:46,HDa:47,oCa:48,SBa:49,RBa:160,iFa:50,zCa:51,yCa:52,UBa:53,VBa:54,FEa:55,EEa:56,DEa:57,GEa:58,cCa:59,pCa:60,ZEa:61,ODa:62,JDa:63,MDa:64,uDa:65,vCa:69,wCa:121,hFa:70,sCa:71,
zEa:72,AEa:73,QDa:74,RDa:75,rCa:76,qCa:77,BDa:78,ADa:80,ZAa:81,rBa:115,pBa:120,qBa:122,yBa:123,DCa:124,CCa:125,oBa:126,iEa:127,gEa:128,hEa:129,fFa:130,bBa:131,nBa:132,kBa:133,uCa:152,nCa:178,WBa:179,LDa:181,mCa:193,GBa:198,cFa:212,uBa:213,DBa:217,XDa:218,jBa:220,KEa:221,GCa:82,ICa:83,YCa:84,JCa:85,eDa:86,HCa:87,LCa:88,SCa:89,VCa:90,aDa:91,XCa:92,ZCa:93,FCa:94,MCa:95,WCa:96,OCa:97,NCa:98,ECa:99,KCa:100,bDa:101,TCa:102,fDa:103,cDa:104,QCa:105,dDa:106,UCa:107,RCa:118,PCa:214,OEa:108,SEa:109,REa:110,
QEa:111,TEa:112,PEa:113,NEa:114,aBa:134,lBa:138,sBa:139,tBa:140,xBa:141,EBa:142,KBa:144,NBa:165,FBa:143,TBa:135,ZBa:145,aCa:146,pDa:147,VEa:148,XEa:149,bFa:150,CEa:153,XAa:154,WEa:155,dFa:156,hBa:157,YBa:158,jEa:159,hCa:161,YAa:162,fEa:163,HEa:164,gCa:166,bCa:167,zDa:168,eCa:169,dCa:170,yDa:171,NDa:172,jCa:173,iCa:210,wBa:174,kCa:175,YDa:176,lCa:177,ABa:182,yEa:183,xEa:184,mDa:136,lDa:137,BEa:151,PBa:180,QBa:190,OBa:192,UDa:185,WDa:186,VDa:187,TDa:191,vBa:188,UEa:189,wDa:194,xDa:199,tEa:66,oEa:67,
pEa:117,uEa:68,wEa:197,qEa:195,vEa:196,kEa:201,rEa:202,lEa:203,dEa:204,cEa:205,bEa:206,mEa:207,nEa:208,sEa:209,BBa:200,YEa:211,gDa:219,aEa:215,ZDa:216};var nnb={Sua:0,Rua:1,Pua:2,Qua:3};var bPa={U8a:0,H9a:1,P9a:2,s9a:3,t9a:4,u9a:5,R9a:39,S9a:6,N9a:7,G9a:50,Q9a:69,I9a:70,J9a:71,C9a:74,v9a:32,w9a:44,x9a:33,O9a:8,y9a:9,z9a:10,B9a:11,A9a:12,D9a:73,E9a:77,F9a:78,M9a:84,K9a:87,L9a:88,Y8a:56,Z8a:57,a9a:58,b9a:59,c9a:60,d9a:61,t$a:13,u$a:14,v$a:15,D$a:16,y$a:17,F$a:18,E$a:19,A$a:20,B$a:21,w$a:34,C$a:35,z$a:36,x$a:49,h9a:37,i9a:38,k9a:40,m9a:41,l9a:42,n9a:43,o9a:51,j9a:52,g9a:67,e9a:22,f9a:23,W9a:24,c$a:25,d$a:62,b$a:26,Z9a:27,V9a:48,T9a:53,U9a:63,e$a:66,Y9a:54,a$a:68,f$a:72,X9a:76,q9a:64,
p9a:65,g$a:28,j$a:29,i$a:30,h$a:31,q$a:45,s$a:46,r$a:47,p$a:83,n$a:55,l$a:79,k$a:80,m$a:81,o$a:82,r9a:86,V8a:89,W8a:90,X8a:91};var ZOa={H$a:0,I$a:1,G$a:2};var dPa={L$a:0,K$a:1,J$a:2};var cPa={S$a:0,Q$a:1,O$a:2,R$a:3,M$a:4,N$a:5,P$a:6};var IOa={peb:0,oeb:1,neb:2};var HOa={teb:0,reb:1,qeb:2,seb:3};g.y(voa,T);g.y(woa,T);g.y(xoa,T);g.y(yoa,T);g.y(zoa,T);g.y(tz,T);tz.prototype.hasFeature=function(){return null!=Bi(Lj(this,2))};g.y(Aoa,T);g.y(Boa,T);g.y(Coa,T);g.y(uz,T);uz.prototype.getName=function(){return Tk(this,1)};
uz.prototype.getStatus=function(){return Tk(this,2)};
uz.prototype.getState=function(){return Tk(this,3)};
uz.prototype.Hc=function(a){return S(this,3,a)};g.y(vz,T);vz.prototype.j=function(a,b){return Lk(this,2,uz,a,b)};
vz.wb=[2];g.y(Doa,T);g.y(wz,T);wz.prototype.j=function(a,b){return Lk(this,1,vz,a,b)};
wz.prototype.B=function(a,b){return Lk(this,2,vz,a,b)};
wz.wb=[1,2];var YOa={zMa:0,xMa:1,yMa:2};var FOa={ZSa:0,TSa:1,WSa:2,aTa:3,USa:4,VSa:5,XSa:6,YSa:7};var GOa={dTa:0,cTa:1,bTa:2};var EOa={oXa:0,pXa:1,nXa:2};var DOa={FXa:0,sXa:1,BXa:2,GXa:3,DXa:4,vXa:5,rXa:6,tXa:7,uXa:8,EXa:9,CXa:10,wXa:11,zXa:12,AXa:13,yXa:14,xXa:15,qXa:16};var AOa={Scb:0,Ocb:1,Rcb:2,Qcb:3,Pcb:4};var zOa={Wcb:0,Ucb:1,Vcb:2,Tcb:3};var BOa={ddb:0,Zcb:1,bdb:2,Xcb:3,cdb:4,Ycb:5,adb:6};var yOa={mdb:0,odb:1,ndb:2,hdb:3,fdb:4,gdb:5,rdb:6,idb:7,sdb:8,kdb:9,ldb:10,edb:11,jdb:12,qdb:13,pdb:14};var COa={vdb:0,udb:1,tdb:2};var MOa={Cib:0,Aib:1,zib:2,uib:3,wib:4,xib:5,tib:6,vib:7,Bib:8,Eib:9,yib:10,rib:11,sib:12,Dib:13};var LOa={Gib:0,Fib:1};var VOa={Jib:0,Kib:1,Hib:2,Iib:3};var TOa={gjb:0,Lib:1,fjb:2,ejb:3,kjb:4,jjb:5,djb:19,Pib:6,Rib:7,Zib:8,Qib:24,cjb:25,ajb:20,Tib:21,Nib:22,bjb:23,Mib:9,Oib:10,Sib:11,Uib:12,Vib:13,Wib:14,Yib:15,Xib:16,hjb:17,ijb:18};var NOa={ojb:0,njb:1,pjb:2,ljb:3,mjb:4};var JOa={Ejb:0,xjb:1,sjb:2,Bjb:3,wjb:4,Djb:5,rjb:6,tjb:7,yjb:8,ujb:9,zjb:10,Ajb:11,vjb:12,Cjb:13};var POa={Ljb:0,Jjb:1,Hjb:2,Ijb:3,Kjb:4};var OOa={Pjb:0,Mjb:1,Njb:2,Ojb:3};var KOa={Tjb:0,Sjb:1,Rjb:2};var UOa={Wjb:0,Ujb:1,Vjb:2};var WOa={tkb:0,skb:1,rkb:2,pkb:3,qkb:4};var XOa={xkb:0,vkb:1,ukb:2,wkb:3};var onb={nva:0,jva:1,kva:2,hva:3,mva:4,iva:5};var wMa={vga:0,rga:1,tga:2};var WKa={H6:0,VJa:1,HHa:2,IHa:3,AMa:4,VXa:5,qqa:6};var FO={Sxa:0,zxa:101,Fxa:102,uxa:103,xxa:104,Cxa:105,Dxa:106,Gxa:107,Hxa:108,Jxa:109,Kxa:110,Rxa:111,Exa:112,Axa:113,Ixa:114,Mxa:115,Txa:116,wxa:117,Bxa:118,Uxa:119,Nxa:120,Oxa:121,yxa:122,vxa:123,Lxa:124,Qxa:125,Pxa:126};var yNa={dya:0,aya:1,bya:2,Yxa:3,Zxa:4,Xxa:5,cya:6};var pnb={Uya:0,Tya:1,Rya:2,Sya:3};var qnb={fza:0,dza:1,Wya:2,cza:3,Vya:4,Zya:5,bza:6,eza:7,aza:8,Yya:9,Xya:10};var rnb={hza:0,iza:1,gza:2};g.y(Eoa,T);g.y(Foa,T);g.y(xz,T);xz.prototype.getState=function(){return Pk(this,1)};
xz.prototype.Hc=function(a){return Vk(this,1,a)};g.y(Goa,T);g.y(Hoa,T);g.y(Ioa,T);g.y(Joa,T);g.y(yz,T);yz.prototype.qe=function(){return Sk(this,1)};
yz.prototype.setVideoId=function(a){return Q(this,1,a)};g.y(zz,T);zz.prototype.setTrackingParams=function(a){return al(this,1,a)};g.y(Az,T);Az.prototype.hasVe=function(){return Pj(this,zz,2)};g.y(Bz,T);Bz.prototype.hasFeature=function(){return null!=Bi(Lj(this,1))};g.y(Koa,T);g.y(Loa,T);g.y(Cz,T);Cz.prototype.Ef=function(){return Tk(this,2)};
var snb=[1];g.y(Moa,T);g.y(Noa,T);g.y(Ooa,T);g.y(Poa,T);g.y(Dz,T);Dz.prototype.getVideoAspectRatio=function(){return yea(this,2)};g.y(Qoa,T);g.y(Roa,T);g.y(Soa,T);g.y(Toa,T);g.y(Uoa,T);g.y(Voa,T);g.y(Woa,T);g.y(Xoa,T);g.y(Yoa,T);g.y(Ez,T);Ez.prototype.getId=function(){return Sk(this,1)};g.y(Zoa,T);g.y(Fz,T);g.y(Gz,T);Gz.prototype.j=function(a,b){return Lk(this,5,Fz,a,b)};
Gz.wb=[5];g.y($oa,T);g.y(apa,T);g.y(Hz,T);Hz.prototype.j=function(a,b){return Lk(this,27,apa,a,b)};
Hz.wb=[27];g.y(bpa,T);g.y(cpa,T);g.y(dpa,T);g.y(epa,T);var E2=[1,2,3,4];g.y(fpa,T);g.y(gpa,T);g.y(hpa,T);g.y(ipa,T);g.y(Iz,T);Iz.prototype.tm=function(){return Rk(this,2)};g.y(jpa,T);g.y(kpa,T);g.y(lpa,T);g.y(Jz,T);g.y(mpa,T);g.y(npa,T);g.y(Kz,T);Kz.prototype.j=function(a,b){return bk(this,1,Ai,a,b)};
Kz.wb=[1];g.y(Lz,T);Lz.prototype.Ef=function(){return Tk(this,3)};g.y(opa,T);g.y(ppa,T);g.y(Mz,T);g.y(Nz,T);g.y(qpa,T);g.y(Oz,T);Oz.prototype.j=function(a,b){return Lk(this,2,Nz,a,b)};
Oz.prototype.B=function(a,b){return Lk(this,3,Nz,a,b)};
Oz.wb=[2,3];g.y(rpa,T);g.y(Pz,T);g.y(spa,T);g.y(Qz,T);Qz.prototype.qe=function(){return g.Hk(this,Pz,fk(this,F2,2))};
Qz.prototype.setVideoId=function(a){return Jk(this,Pz,2,F2,a)};
Qz.prototype.getPlaylistId=function(){return g.Hk(this,Mz,fk(this,F2,4))};
Qz.prototype.getChannelId=function(){return g.Hk(this,ppa,fk(this,F2,10))};
var F2=[2,3,4,5,9,10];g.y(Rz,T);Rz.prototype.getType=function(){return Tk(this,1)};
Rz.prototype.qe=function(){return Sk(this,3)};
Rz.prototype.setVideoId=function(a){return Q(this,3,a)};g.y(tpa,T);g.y(upa,T);g.y(Sz,T);var wOa=[3];g.y(vpa,T);g.y(wpa,T);g.y(Tz,T);Tz.prototype.wf=function(){return Sk(this,2)};g.y(xpa,T);g.y(ypa,T);var tnb=[1];g.y(zpa,T);g.y(Apa,T);g.y(Bpa,T);g.y(Cpa,T);g.y(Dpa,T);g.y(Epa,T);g.y(Fpa,T);g.y(Gpa,T);g.y(Uz,T);Uz.prototype.getStarted=function(){var a=void 0===a?!1:a;var b=Nda(Lj(this,1));return Nk(b,a)};g.y(Hpa,T);g.y(Ipa,T);g.y(Vz,T);Vz.prototype.getDuration=function(){return Pk(this,2)};
Vz.prototype.Bl=function(a){Vk(this,2,a)};g.y(Jpa,T);g.y(Wz,T);g.y(Xz,T);g.y(Kpa,T);g.y(Lpa,T);g.y(Yz,T);Yz.prototype.Xd=function(){return g.Hk(this,Kpa,8)};
Yz.prototype.K9=function(){return Pj(this,Kpa,8)};
Yz.prototype.getVideoData=function(){return g.Hk(this,Lpa,15)};
Yz.prototype.dH=function(a){Ik(this,Lpa,15,a)};
Yz.wb=[4];g.y(Mpa,T);g.y(Zz,T);Zz.prototype.j=function(a){return Q(this,2,a)};g.y($z,T);$z.prototype.j=function(a){return Q(this,1,a)};
$z.wb=[3];g.y(aA,T);aA.prototype.j=function(a){return Q(this,1,a)};
aA.prototype.hasVe=function(){return Pj(this,zz,2)};g.y(bA,T);bA.prototype.j=function(a){return Q(this,1,a)};
bA.prototype.hasVe=function(){return Pj(this,zz,2)};g.y(cA,T);cA.prototype.j=function(a){return Q(this,1,a)};
cA.prototype.hasVe=function(){return Pj(this,zz,2)};g.y(dA,T);dA.prototype.j=function(a){return Q(this,1,a)};
dA.prototype.hasVe=function(){return Pj(this,zz,2)};g.y(Qpa,T);g.y(eA,T);eA.prototype.getId=function(){return Sk(this,2)};g.y(hA,T);hA.prototype.getVisibilityState=function(){return Tk(this,5)};
hA.wb=[16];g.y(Rpa,T);g.y(iA,T);iA.prototype.getPlayerType=function(){return Tk(this,7)};
iA.prototype.qe=function(){return Sk(this,19)};
iA.prototype.setVideoId=function(a){return Q(this,19,a)};
iA.wb=[112,83,118,68];g.y(Spa,T);g.y(Tpa,T);g.y(kA,T);kA.prototype.qe=function(){return Sk(this,1)};
kA.prototype.setVideoId=function(a){return Q(this,1,a)};
kA.prototype.j=function(a,b){return Lk(this,9,Tpa,a,b)};
kA.wb=[9];g.y(lA,T);lA.prototype.j=function(a,b){return Lk(this,3,kA,a,b)};
lA.wb=[3];g.y(mA,T);mA.prototype.qe=function(){return Sk(this,1)};
mA.prototype.setVideoId=function(a){return Q(this,1,a)};g.y(Upa,T);g.y(nA,T);nA.prototype.j=function(a,b){return Lk(this,1,mA,a,b)};
nA.prototype.B=function(a,b){return Lk(this,2,Upa,a,b)};
nA.wb=[1,2];g.y(Vpa,T);g.y(Wpa,T);g.y(Xpa,T);g.y(oA,T);oA.prototype.getId=function(){return Sk(this,1)};
oA.prototype.j=function(a,b){return bk(this,2,bj,a,b)};
oA.prototype.setVideoIds=function(a,b){return sea(this,2,bj,a,b,zea)};
oA.wb=[2];g.y(Ypa,T);g.y(Zpa,T);g.y($pa,T);g.y(pA,T);pA.prototype.j=function(a,b){return bk(this,9,Ai,a,b)};
pA.wb=[9];g.y(aqa,T);g.y(bqa,T);g.y(qA,T);qA.prototype.getId=function(){return Sk(this,1)};
qA.prototype.j=function(a,b){return Lk(this,14,$pa,a,b)};
qA.prototype.B=function(a,b){return Lk(this,17,aqa,a,b)};
qA.wb=[14,17];g.y(rA,T);rA.prototype.B=function(a,b){return Lk(this,1,qA,a,b)};
rA.prototype.j=function(a,b){return Lk(this,2,oA,a,b)};
rA.wb=[1,2];g.y(cqa,T);g.y(sA,T);sA.prototype.getOrigin=function(){return Sk(this,3)};
sA.prototype.dh=function(){return Pk(this,6)};g.y(dqa,T);g.y(eqa,T);g.y(tA,T);
var tE=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,354,
355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496];var unb={vya:0,sya:1,rya:2,uya:3,tya:4,pya:5,qya:6};var vnb={uGa:0,dGa:1,gGa:2,eGa:3,jGa:4,fGa:5,NFa:6,pGa:7,XFa:8,GFa:9,YFa:10,kGa:11,hGa:12,QFa:13,LFa:14,OFa:15,tGa:16,HFa:17,IFa:18,qGa:19,RFa:20,MFa:21,oGa:22,AGa:23,zGa:24,vGa:25,ZFa:26,iGa:27,BGa:28,SFa:29,EFa:30,xGa:31,wGa:32,WFa:33,FGa:34,VFa:35,lGa:36,EGa:37,aGa:38,nGa:39,UFa:40,TFa:41,KFa:42,cGa:43,DGa:44,sGa:45,rGa:53,yGa:46,bGa:47,FFa:48,JFa:49,CGa:50,mGa:51,PFa:52};var wnb={tHa:0,cHa:1,fHa:2,dHa:3,iHa:4,eHa:5,QGa:6,oHa:7,WGa:8,IGa:9,XGa:10,jHa:11,gHa:12,TGa:13,OGa:14,RGa:15,sHa:16,KGa:17,LGa:18,pHa:19,UGa:20,PGa:21,nHa:22,yHa:23,xHa:24,uHa:25,YGa:26,hHa:27,zHa:28,VGa:29,GGa:30,vHa:31,JGa:32,DHa:33,kHa:34,CHa:35,ZGa:36,mHa:37,NGa:38,bHa:39,BHa:40,rHa:41,qHa:49,wHa:42,aHa:43,HGa:44,MGa:45,AHa:46,lHa:47,SGa:48};var xnb={yJa:0,xJa:1,zJa:2};var OMa={lIa:0,jIa:1,gIa:2,kIa:3,hIa:4,iIa:5};var ynb={yIa:0,wIa:1,sIa:3,uIa:4,vIa:5,xIa:6,tIa:7};var znb={EIa:0,BIa:1,DIa:2,CIa:3,AIa:4,zIa:5};var Anb={oJa:0,pJa:1,nJa:2,mJa:3,lJa:4};var Bnb={sJa:0,qJa:1,rJa:2};var Cnb={EJa:0,FJa:1,GJa:2,DJa:3,BJa:4,CJa:5};var Cxa={pKa:0,WJa:1,cKa:2,dKa:4,jKa:8,eKa:16,fKa:32,oKa:64,nKa:128,YJa:256,aKa:512,hKa:1024,ZJa:2048,bKa:4096,XJa:8192,gKa:16384,kKa:32768,iKa:65536,lKa:131072,mKa:262144};var xNa={VKa:0,UKa:1,TKa:2,SKa:4};var wNa={aLa:0,XKa:1,YKa:2,bLa:3,ZKa:4,WKa:5};var Dnb={pFa:0,oFa:1,nFa:2};var Enb={hTa:0,gTa:1,fTa:2};var Fnb={ZTa:0,FTa:1,XTa:2,JTa:3,PTa:4,bUa:5,YTa:6,vTa:7,uTa:8,tTa:9,zTa:10,ETa:11,DTa:12,wTa:13,QTa:14,LTa:15,NTa:16,lTa:17,WTa:18,pTa:19,MTa:20,kTa:21,OTa:22,CTa:23,mTa:24,oTa:25,TTa:26,aUa:27,UTa:28,KTa:29,xTa:30,ATa:31,BTa:32,sTa:33,cUa:34,qTa:35,yTa:36,RTa:37,nTa:38,iTa:39,rTa:41,ITa:42,STa:43,VTa:44,GTa:45,HTa:46,jTa:47};var Gnb={gUa:0,fUa:1,eUa:2,dUa:3};var KMa={isa:0,hsa:1,gsa:2};var GMa={RUa:0,QUa:1,NUa:2,OUa:7,MUa:8,LUa:25,uUa:3,vUa:4,DUa:5,EUa:27,CUa:28,wUa:9,kUa:10,iUa:11,jUa:6,tUa:12,rUa:13,sUa:14,qUa:15,yUa:16,zUa:17,xUa:18,BUa:19,AUa:20,nUa:26,oUa:21,mUa:22,pUa:23,lUa:24,TUa:34,SUa:35,VUa:39,UUa:29,IUa:30,JUa:32,KUa:33,GUa:36,HUa:38,FUa:37,PUa:31};var IMa={cVa:0,YUa:1,aVa:2,bVa:3,WUa:4,ZUa:5,XUa:6};var HMa={iVa:0,gVa:1,hVa:2,eVa:3,fVa:4,dVa:5};var jMa={pVa:0,jVa:1,lVa:2,kVa:3,mVa:4,nVa:5,oVa:6,qVa:7};var LMa={QVa:0,KVa:1,PVa:2,MVa:3,NVa:4,LVa:5,OVa:6};var NMa={dWa:0,RVa:1,VVa:2,aWa:3,bWa:4,WVa:5,YVa:6,ZVa:7,TVa:8,SVa:9,UVa:10,cWa:11,XVa:12};var MMa={hWa:0,eWa:1,fWa:2,gWa:3};var KNa={Nya:0,Lya:1,Mya:2,Iya:3,Jya:4,Kya:5};var PNa={o_a:0,n_a:1,g_a:2,l_a:3,h_a:4,k_a:5,m_a:6,j_a:7,i_a:8};var jNa={I_a:0,A_a:1,J_a:2,H_a:4,E_a:8,D_a:16,C_a:32,F_a:64,B_a:128,G_a:256};var LNa={c0a:0,W_a:1,b0a:2,T_a:3,L_a:4,R_a:5,M_a:6,N_a:7,P_a:8,U_a:9,Y_a:10,X_a:11,Z_a:12,O_a:13,Q_a:14,S_a:15,V_a:16,K_a:17,a0a:18};var gNa={d_a:0,a_a:1,b_a:2,c_a:3};var mNa={v_a:0,x_a:1,u_a:2,q_a:3,w_a:4,r_a:5,s_a:6,t_a:7};var pMa={kkb:0,zva:1,RSa:2,aYa:3,cYa:4,dYa:5,XXa:6,Jeb:7,tYa:8,sYa:9,YXa:10,bYa:11,ngb:12,Dka:13,Lka:14,Eka:15,H2a:16,VZa:17,uYa:18,xYa:19,z_a:20,wYa:21,p_a:22,d0a:23,DYa:24,f_a:25,ZXa:26,Geb:27,Gcb:28,m6a:29,jsa:30,wob:31,e_a:32};var oMa={nkb:0,yga:1,f0a:2,e0a:3,SUCCESS:4,ueb:5,FAILED:6,Z5a:7,rIa:9,Ava:10,sxa:11,CANCELLED:12,l6a:13,Hcb:14,Mcb:15,Fkb:16};var nMa={Cgb:0,tgb:1,ygb:2,xgb:3,ugb:4,vgb:5,ogb:6,Bgb:7,Agb:8,sgb:9,qgb:10,wgb:11,zgb:12,pgb:13};var BMa={w2a:0,j2a:1,o2a:2,m2a:3,v2a:4,n2a:5,r2a:6,q2a:7,p2a:8,k2a:9,s2a:10,t2a:11,u2a:12,l2a:13};var Hnb={G3a:0,F3a:1,E3a:2};var Inb={J3a:0,H3a:1,I3a:2};var QMa={Q5a:0,K5a:1,x5a:2,R5a:3,t5a:4,s5a:5,y5a:6,u5a:7,r5a:8,G5a:9,B5a:10,F5a:11,H5a:12,w5a:13,v5a:14,q5a:15,N5a:16,M5a:17,L5a:18,O5a:27,A5a:19,D5a:20,C5a:21,E5a:22,J5a:23,z5a:24,P5a:25,I5a:26};var PMa={X5a:0,W5a:1,V5a:2,U5a:3,S5a:4,T5a:5};var FMa={s7a:0,q7a:1,r7a:3,n7a:4,o7a:2,p7a:5};var JMa={x7a:0,t7a:1,u7a:2,w7a:3,v7a:4,y7a:5};var Jnb={E7a:0,F7a:1};var rOa={L7a:0,J7a:1,K7a:2,M7a:3};var Knb={wab:0,uab:1,vab:2};var Lnb={Odb:0,Kdb:1,Ldb:2,Mdb:3,Ndb:4};var lNa={Iab:0,Gab:1,Hab:2};var ONa={zbb:0,vbb:1,wbb:2,xbb:3};var bNa={cpa:0,bpa:1,Zoa:2,apa:3};var eNa={Spa:0,Lpa:1,Rpa:2,Opa:3,Hpa:4,Ipa:5,Gpa:6,Npa:7,Qpa:8,Kpa:9,Tpa:10,Upa:11,Jpa:12,Ppa:13,Mpa:14};var ENa={cra:0,Vqa:1,Yqa:2,Zqa:3,Xqa:4,ara:5,dra:6,Wqa:7};var WMa={bwa:0,Zva:1,cwa:2};var sMa={ikb:0,Dua:1,Eua:2,Cua:3,Fua:4};var rMa={jkb:0,w3a:1,b2a:2};var HNa={zFa:0,vFa:1,rFa:2,yFa:3,tFa:4,wFa:5,uFa:6,sFa:7,xFa:8};var JNa={wJa:0,vJa:1,uJa:2};var DNa={QSa:0,PSa:1,OSa:2};var GNa={MXa:0,LXa:1,KXa:2};var CNa={R6a:0,P6a:1,Q6a:2};var $Ma={zeb:0,yeb:1,xeb:2};var Mnb={kSa:0,gSa:1,hSa:2,iSa:3,jSa:4,lSa:5};var Nnb={F2a:0,C2a:1,A2a:2,x2a:3,B2a:4,D2a:5,y2a:6,z2a:7,E2a:8,G2a:9};var Onb={sva:0,ova:5,rva:4,pva:2,qva:3};var Pnb={Ofb:0,qfb:1,Sfb:2,Tfb:3,Qfb:4,Pfb:16,Rfb:47,lfb:17,rfb:33,kfb:35,cfb:36,nfb:34,Nfb:38,pfb:45,wfb:8,ifb:39,ffb:40,Yeb:41,bfb:42,efb:43,Xeb:46,afb:44,ofb:5,vfb:6,Mfb:7,Lfb:9,Zeb:10,Kfb:11,dfb:12,Jfb:13,jfb:14,ufb:15,tfb:18,sfb:19,hfb:20,mfb:21,gfb:22,Gfb:23,Ifb:24,zfb:25,Hfb:26,xfb:27,Cfb:28,yfb:29,Bfb:30,Dfb:31,Afb:32,Efb:37,Ffb:48};var Qnb={Wfb:0,Vfb:1,Xfb:2};var qOa={rob:0,bob:1,iob:2,hob:3,aob:4,sob:5,pob:6,cob:7,dob:8,gob:9,fob:12,Xnb:10,qob:11,kob:13,lob:14,tob:15,job:16,nob:17,Ynb:18,oob:19,Znb:20,uob:21,eob:22};var kOa={tKa:0,rKa:1,sKa:2,qKa:3};g.y(fqa,T);g.y(uA,T);uA.prototype.qe=function(){return Ok(this,fk(this,kE,1))};
uA.prototype.setVideoId=function(a){return dk(this,1,kE,cj(a))};
uA.prototype.getPlaylistId=function(){return Ok(this,fk(this,kE,2))};
var kE=[1,2];g.y(gqa,T);gqa.wb=[3];var RS=new g.cx("changeKeyedMarkersVisibilityCommand");var Rnb=new g.cx("changeMarkersVisibilityCommand");var VWa=new g.cx("loadMarkersCommand");var Snb=new g.cx("suggestedActionDataViewModel");var j2a=new g.cx("productListItemRenderer");var Tnb=new g.cx("shoppingOverlayRenderer");var pXa=new g.cx("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var Unb=new g.cx("adFeedbackEndpoint");var Vnb=new g.cx("menuEndpoint");var z1a=new g.cx("phoneDialerEndpoint");var x1a=new g.cx("sendSmsEndpoint");var nXa=new g.cx("copyTextEndpoint");var Wnb=new g.cx("webPlayerShareEntityServiceEndpoint");g.rF=new g.cx("urlEndpoint");g.PS=new g.cx("watchEndpoint");var Xnb=new g.cx("watchPlaylistEndpoint");var UNa={fsa:0,esa:1,dsa:2,bsa:3,csa:4};var iNa={rYa:0,pYa:1,qYa:2,oYa:3};var Ynb={IYa:0,HYa:1,FYa:2,GYa:3};var Znb={MYa:0,JYa:1,KYa:2,LYa:3,NYa:4};var $nb={FZa:0,zZa:1,GZa:2,BZa:3,sZa:4,jZa:37,UYa:5,RYa:36,WYa:38,eZa:39,fZa:40,aZa:41,EZa:42,XYa:27,oZa:31,qZa:6,tZa:7,uZa:8,vZa:9,wZa:10,xZa:11,AZa:29,YYa:30,pZa:32,iZa:12,hZa:13,TYa:14,nZa:15,OYa:16,QYa:35,VYa:43,ZYa:28,lZa:17,kZa:18,mZa:19,DZa:20,dZa:25,SYa:33,HZa:21,gZa:22,cZa:26,IZa:46,bZa:34,rZa:44,CZa:45,yZa:23,PYa:24};var SNa={ZZa:0,XZa:1,WZa:2,YZa:3};var GO={Lcb:0,Icb:1,Kcb:2,Jcb:3};var qMa={mgb:0,agb:1,Zfb:2,fgb:3,lgb:4,bgb:5,igb:6,ggb:7,hgb:8,cgb:9,jgb:10,dgb:11,kgb:12,egb:13};var fNa={y_a:0,EYa:1,vYa:2,BYa:3,CYa:4,yYa:5,zYa:6,AYa:7};var aob={A7a:0,z7a:1};var bob={Sdb:0,Rdb:1,Qdb:2,Tdb:3,Pdb:4};var cob={Wdb:0,Vdb:1,Udb:2};var dob={jeb:0,beb:1,eeb:2,feb:5,ieb:7,keb:8,geb:9,heb:10};var eob={Zdb:0,Ydb:1,Xdb:2};var pZa=new g.cx("compositeVideoOverlayRenderer");var fob=new g.cx("miniplayerRenderer");var lXa=new g.cx("paidContentOverlayRenderer");var AWa=new g.cx("playerMutedAutoplayOverlayRenderer"),BWa=new g.cx("playerMutedAutoplayEndScreenRenderer");var KVa=new g.cx("unserializedPlayerResponse"),CWa=new g.cx("unserializedPlayerResponse");var QNa={UZa:0,RZa:1,PZa:2,OZa:3,NZa:4,MZa:5,QZa:6,TZa:7,LZa:8,SZa:9,KZa:10,JZa:11};var gob=new g.cx("playlistEditEndpoint");var G2;g.pM=new g.cx("buttonRenderer");G2=new g.cx("toggleButtonRenderer");var hNa={lkb:0,aPa:4,T6a:1,mIa:2,Fqa:3,bPa:5,W6a:6,nIa:7,oIa:8,pIa:9,qIa:10};var cHa=new g.cx("counterfactualRenderer");var hob=new g.cx("resolveUrlCommandMetadata");var iob=new g.cx("modifyChannelNotificationPreferenceEndpoint");var fBa=new g.cx("pingingEndpoint");var job=new g.cx("unsubscribeEndpoint");var YKa={okb:0,SWa:1,OWa:2,NWa:3,oWa:71,nWa:4,QWa:5,TWa:6,RWa:16,PWa:69,pWa:70,kWa:56,lWa:64,mWa:65,BWa:7,rWa:8,wWa:9,sWa:10,vWa:11,uWa:12,tWa:13,yWa:43,EWa:44,FWa:45,GWa:46,HWa:47,IWa:48,JWa:49,KWa:50,LWa:51,MWa:52,CWa:53,DWa:54,AWa:63,qWa:14,zWa:15,xWa:68,knb:17,tnb:18,Amb:19,jnb:20,Wmb:21,lnb:22,qmb:23,enb:24,Zmb:25,Fmb:26,omb:27,Mmb:28,hnb:29,lmb:30,jmb:31,mmb:32,rmb:33,fnb:34,dnb:35,Xmb:36,bnb:37,mnb:38,Imb:39,snb:40,Omb:41,Dmb:42,nnb:55,anb:66,Mnb:67,Smb:57,gnb:58,tmb:59,nmb:60,Jmb:61,Ymb:62};var kob={t8a:0,x8a:1,j8a:2,b8a:3,p8a:4,r8a:5,y8a:6,O7a:7,P7a:8,W7a:9,l8a:10,c8a:11,g8a:12,e8a:13,f8a:14,h8a:15,i8a:19,R7a:16,o8a:17,m8a:18,T7a:20,d8a:21,Q7a:22,u8a:23,Z7a:24,S7a:25,s8a:26,V7a:27,n8a:28,k8a:29,Y7a:30,q8a:31,w8a:32,v8a:33,a8a:34,X7a:35,U7a:36,N7a:37};g.eT=new g.cx("subscribeButtonRenderer");var lob=new g.cx("subscribeEndpoint");var cNa={Nab:0,Kab:1,Lab:2,Mab:3};var cZa=new g.cx("buttonViewModel");var SOa={P8a:0,Q8a:1,O8a:2,K8a:3,N8a:4,L8a:5,J8a:6,M8a:7};var dHa=new g.cx("qrCodeRenderer");var yMa={cva:0,ava:1,Xua:2,Yua:3,Zua:4,bva:5};var YUa={vSa:"LIVING_ROOM_APP_MODE_UNSPECIFIED",sSa:"LIVING_ROOM_APP_MODE_MAIN",rSa:"LIVING_ROOM_APP_MODE_KIDS",tSa:"LIVING_ROOM_APP_MODE_MUSIC",uSa:"LIVING_ROOM_APP_MODE_UNPLUGGED",qSa:"LIVING_ROOM_APP_MODE_GAMING"};var MWa=new g.cx("autoplaySwitchButtonRenderer");var SVa,o3a,TVa,z3a;SVa=new g.cx("decoratedPlayerBarRenderer");o3a=new g.cx("chapteredPlayerBarRenderer");TVa=new g.cx("multiMarkersPlayerBarRenderer");z3a=new g.cx("chapterRenderer");g.s3a=new g.cx("markerRenderer");var RWa=new g.cx("desktopOverlayConfigRenderer");var PWa=new g.cx("gatedActionsOverlayViewModel");var w3a=new g.cx("heatMarkerRenderer");var v3a=new g.cx("heatmapRenderer");var UWa=new g.cx("watchToWatchTransitionRenderer");var qXa=new g.cx("playlistPanelRenderer");var mob=new g.cx("productUpsellSuggestedActionViewModel");var nob=new g.cx("suggestedActionTimeRangeTrigger"),oob=new g.cx("suggestedActionsRenderer"),pob=new g.cx("suggestedActionRenderer");var x3a=new g.cx("timedMarkerDecorationRenderer");var qob={Lnb:0,Hnb:1,Inb:2,Knb:3,Jnb:4,Gnb:5,Fnb:6,Bnb:7,Dnb:8,Enb:9,Cnb:10,xnb:11,vnb:12,unb:13,Anb:14,wnb:15,ynb:16,znb:17};var zO={H6:0,USER:74,aqa:459,TRACK:344,bqa:493,oqa:419,BLa:494,Zra:337,MINUTE:237,HOUR:236,DAY:3,WEEK:78,Nnb:248,MONTH:79,QUARTER:246,YEAR:247,gYa:382,fYa:383,eYa:384,Beb:235,VIDEO:4,Qnb:186,Lva:126,Jdb:127,Tva:117,X4a:125,O6a:151,nya:515,Dva:6,SHa:132,XHa:154,VHa:222,WHa:155,THa:221,UHa:156,Idb:209,Hdb:210,Rlb:7,o5a:124,Jab:96,RXa:97,dmb:93,MQa:574,fmb:275,Sqa:110,Rqa:120,D3a:121,LJa:72,Klb:351,z8a:495,Ilb:377,Llb:378,BFa:496,CFa:497,A8a:498,Tqa:381,Jlb:386,gmb:387,Fpa:410,zKa:437,Fza:338,Pqa:380,
wga:352,g2a:113,h2a:114,Seb:82,Teb:112,lya:354,Neb:21,Epa:556,a2a:567,n6a:566,Ufb:568,Eya:523,Gya:375,Fya:514,Fka:302,Xva:136,MJa:85,Zka:22,Tnb:23,Web:252,Veb:253,g1a:562,Wva:563,Nqa:254,Cka:165,Gdb:304,pLa:421,H6a:463,PLAYLIST:63,Plb:27,Olb:28,Qlb:29,ydb:30,Bdb:31,Adb:324,Cdb:32,fra:398,vob:613,Edb:399,Fdb:400,TXa:411,SXa:413,UXa:414,WXa:415,h5a:39,i5a:143,m5a:144,d5a:40,e5a:145,g5a:146,Clb:504,l5a:325,U2a:262,W2a:263,V2a:264,Y2a:355,DKa:615,EKa:616,a7a:617,Z2a:249,b3a:250,a3a:251,gva:46,B7a:49,
D7a:50,vka:62,Meb:561,sVa:105,uLa:242,Fcb:397,M3a:83,f2a:135,Bpa:87,Dpa:153,Cpa:187,wpa:89,upa:88,xpa:139,zpa:91,ypa:104,Apa:137,Jua:99,ykb:100,PXa:326,fya:148,eya:149,wdb:150,xdb:395,sqa:166,yqa:199,tqa:534,xqa:167,uqa:168,Cqa:169,Dqa:170,vqa:171,wqa:172,zqa:179,Aqa:180,Eqa:512,Bqa:513,Nkb:200,zkb:476,Okb:213,pqa:191,X2a:192,R2a:305,S2a:306,d3a:329,rbb:327,sbb:328,N2a:195,O2a:197,i2a:301,I2a:223,J2a:224,nLa:227,CKa:396,CLa:356,vLa:490,DLa:394,ksa:230,Gqa:297,klb:298,mLa:342,oya:346,jFa:245,Ueb:261,
PJa:265,UJa:266,QJa:267,NJa:268,OJa:269,TJa:270,RJa:271,SJa:272,aSa:303,NQa:391,OQa:503,QQa:277,mSa:499,oSa:500,YRa:501,nSa:611,pSa:612,cSa:278,PQa:489,bSa:598,nza:332,pza:333,lza:334,oza:335,mza:336,Iua:340,gLa:341,Blb:349,Alb:420,k5a:281,f5a:282,C7a:286,zdb:288,j5a:291,n5a:292,JQa:295,Ddb:296,IQa:299,Hka:417,GLa:308,Unb:309,Vnb:310,Wnb:311,f3a:590,g3a:591,Mla:350,Qkb:418,fJa:424,Akb:425,hYa:429,QXa:430,ALa:426,Bcb:460,OXa:427,q6a:428,r6a:542,o6a:461,tbb:464,yVa:431,vVa:432,wVa:589,DVa:433,uVa:434,
AVa:435,BVa:436,xVa:438,CVa:439,EVa:453,zVa:454,tVa:472,hkb:557,p6a:558,Oqa:559,Qqa:560,Lqa:565,V3a:545,Q3a:546,f4a:547,i4a:548,h4a:549,g4a:550,W3a:551,e4a:552,N3a:554,S3a:577,R3a:587,U3a:579,P3a:580,Mqa:583,k4a:584,l4a:586,Y3a:516,D1a:621,Z3a:553,a4a:570,c4a:571,X3a:572,d4a:573,b4a:588,j4a:585,m1a:592,k1a:593,l1a:594,j1a:595,bmb:604,Zlb:605,amb:606,cmb:607,Ylb:608,Feb:520,O3a:521,T3a:522,wLa:543,fSa:618,ekb:619,KQa:620,v3a:440,x3a:441,B3a:442,t3a:448,u3a:449,y3a:450,C3a:451,A3a:491,POST:445,s3a:446,
z3a:447,o4a:456,iYa:483,Yka:569,xva:576,x4a:529,yva:581,Oeb:555,n4a:458,G7a:480,H7a:502,I7a:482,hLa:452,C8a:465,D8a:466,txa:467,m4a:468,qza:469,Wua:470,Vua:471,fLa:475,nwa:477,jLa:478,cIa:479,e3a:484,c3a:485,Q2a:486,P2a:487,Mka:488,Qya:492,sza:505,Dya:506,Slb:507,OMa:508,aIa:509,dIa:510,fIa:511,blb:524,Mlb:530,Y6a:531,rza:532,H8a:533,X6a:575,kLa:535,FLa:536,qLa:537,yLa:538,lLa:539,tLa:540,oLa:541,SSa:578,yka:582,i3a:596,Vva:597,RQa:599,sRa:600,tRa:601,dSa:602,eSa:603,PODCAST:609,Uva:610,zLa:614};var vRa=new g.cx("cipher");var LVa=new g.cx("playerVars");var DWa=new g.cx("playerVars");var H2=g.Ta.window,rob,sob,vA=(null==H2?void 0:null==(rob=H2.yt)?void 0:rob.config_)||(null==H2?void 0:null==(sob=H2.ytcfg)?void 0:sob.data_)||{};g.Ua("yt.config_",vA);var zA=[];var qqa=/^[\w.]*$/,mqa={q:!0,search_query:!0},lqa=String(DA);var rqa=new function(){var a=window.document;this.j=window;this.B=a};
g.Ua("yt.ads_.signals_.getAdSignalsString",function(a){return EA(MA(a))});g.lb();var uqa="XMLHttpRequest"in g.Ta?function(){return new XMLHttpRequest}:null;var tob="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.qa(tob);var Cqa={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"},Dqa="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.qa(tob)),Lqa=!1,zqa=Eqa,Iqa=Bqa;g.y(WA,xb);ZA.prototype.then=function(a,b,c){return this.j?this.j.then(a,b,c):1===this.C&&a?(a=a.call(c,this.B))&&"function"===typeof a.then?a:aB(a):2===this.C&&b?(a=b.call(c,this.B))&&"function"===typeof a.then?a:$A(a):this};
ZA.prototype.getValue=function(){return this.B};
ZA.prototype.$goog_Thenable=!0;var bB=!1;var MC=kB||lB;var fra=/^([0-9\.]+):([0-9\.]+)$/;g.y(kra,xb);kra.prototype.name="BiscottiError";g.y(uB,xb);uB.prototype.name="BiscottiMissingError";var mra={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},vB=null;var Gba=pa(["data-"]),vra={};var uob=0,wra=g.Pc?"webkit":Js?"moz":g.Ks?"ms":g.AR?"o":"",vob=g.Xa("ytDomDomGetNextId")||function(){return++uob};
g.Ua("ytDomDomGetNextId",vob);var Bra={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};AB.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
AB.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
AB.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var BB=g.Ta.ytEventsEventsListeners||{};g.Ua("ytEventsEventsListeners",BB);var Mra=g.Ta.ytEventsEventsCounter||{count:0};g.Ua("ytEventsEventsCounter",Mra);var Rra=Kd(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),Nra=Kd(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var I2;I2=window;g.wC=I2.ytcsi&&I2.ytcsi.now?I2.ytcsi.now:I2.performance&&I2.performance.timing&&I2.performance.now&&I2.performance.timing.navigationStart?function(){return I2.performance.timing.navigationStart+I2.performance.now()}:function(){return(new Date).getTime()};g.nb(JB,g.I);JB.prototype.Y=function(a){void 0===a.j&&Kra(a);var b=a.j;void 0===a.B&&Kra(a);this.j=new g.Ee(b,a.B)};
JB.prototype.Qt=function(){return this.j||new g.Ee};
JB.prototype.qa=function(){if(this.j){var a=(0,g.wC)();if(0!=this.D){var b=this.K,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.D);this.B[this.C]=.5<Math.abs((d-this.G)/this.G)?1:0;for(c=b=0;4>c;c++)b+=this.B[c]||0;3<=b&&this.N();this.G=d}this.D=a;this.K=this.j;this.C=(this.C+1)%4}};
JB.prototype.va=function(){g.SA(this.Z);g.DB(this.ra)};g.y(KB,g.I);KB.prototype.T=function(a,b,c,d,e){c=g.BA((0,g.gb)(c,d||this.rb));c={target:a,name:b,callback:c};var f;e&&Rra()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.N.push(c);return c};
KB.prototype.Pc=function(a){for(var b=0;b<this.N.length;b++)if(this.N[b]==a){this.N.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
KB.prototype.va=function(){g.MB(this);g.I.prototype.va.call(this)};NB.prototype.clone=function(){var a=new NB,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==bb(c)?g.jd(c):c}return a};var SXa=["att/get"],D_a=["embedded_player"],wob=["share/get_web_player_share_panel"],xob=["feedback"],yob=["notification/modify_channel_preference"],Gfb=["player"],zob=["browse/edit_playlist"],Aob=["subscription/subscribe"],Bob=["subscription/unsubscribe"],Kfb=["next","unplugged/watch_next"];var Tra;g.OB=Kd(function(){var a=new qw;return a.isAvailable()?new g.mw(a):null});
Tra=Kd(function(){var a=new Gla;return a.isAvailable()?new g.mw(a):null});TB.prototype.AE=function(a,b){a={};var c=[];"SESSION_ID"in vA&&c.push({key:"u",value:g.xA("SESSION_ID")});if(c=jfa(c))a.Authorization=c,c=b=null==b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.xA("SESSION_INDEX",0)),c=isNaN(c)?0:c),g.TA("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in vA||(a["X-Origin"]=window.location.origin),void 0===b&&"DELEGATED_SESSION_ID"in vA&&(a["X-Goog-PageId"]=g.xA("DELEGATED_SESSION_ID"));return a};var $C={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var WB=g.Xa("ytglobal.prefsUserPrefsPrefs_")||{};g.Ua("ytglobal.prefsUserPrefsPrefs_",WB);var $ra;g.k=Zra.prototype;g.k.get=function(a,b){dsa(a);csa(a);a=void 0!==WB[a]?WB[a].toString():null;return null!=a?a:b?b:""};
g.k.set=function(a,b){dsa(a);csa(a);if(null==b)throw Error("ExpectedNotNull");WB[a]=b.toString()};
g.k.remove=function(a){dsa(a);csa(a);delete WB[a]};
g.k.save=function(){var a=!0;g.TA("web_secure_pref_cookie_killswitch")&&(a=!1);g.dB(this.j,this.dump(),63072E3,this.B,a)};
g.k.clear=function(){g.eba(WB)};
g.k.dump=function(){var a=[],b;for(b in WB)WB.hasOwnProperty(b)&&a.push(b+"="+encodeURIComponent(String(WB[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])&&(WB[d]=c.toString())}};var fsa={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"},Ota={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_WIRED:30,CONN_INVALID:31},Pta={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},hsa={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.y(g.XB,Error);$B.prototype.Qi=function(a,b){return aC(a,1,b)};
$B.prototype.p7=function(a){(a=this.j.get(a))&&a()};g.Xa("yt.scheduler.instance.timerIdMap_");g.y(cC,$B);cC.prototype.Tj=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Xa("yt.scheduler.instance.cancelJob");b?b(a):g.RA(a)}};
cC.prototype.start=function(){var a=g.Xa("yt.scheduler.instance.start");a&&a()};
cC.prototype.pause=function(){var a=g.Xa("yt.scheduler.instance.pause");a&&a()};
g.Bv=g.dC();gC.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.on(b))}catch(f){return}else e=escape(b);g.dB(a,e,c,this.B)};
gC.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.eB(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
gC.prototype.remove=function(a){this.j&&this.j.remove(a);g.Qqa(a,"/",this.B)};
gC.prototype.getCreationTime=function(a){return this.j&&(a=(this.j.B(a)||{}).creation,"number"===typeof a)?a:null};var ksa=function(){var a;return function(){a||(a=new gC("ytidb"));return a}}();var jC=[],hC,kC=!1;var J2={},psa=(J2.AUTH_INVALID="No user identifier specified.",J2.EXPLICIT_ABORT="Transaction was explicitly aborted.",J2.IDB_NOT_SUPPORTED="IndexedDB is not supported.",J2.MISSING_INDEX="Index not created.",J2.MISSING_OBJECT_STORES="Object stores not created.",J2.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",J2.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",J2.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",J2.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",J2.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",J2.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",J2.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",J2),K2={},qsa=(K2.AUTH_INVALID="ERROR",K2.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",K2.EXPLICIT_ABORT="IGNORED",
K2.IDB_NOT_SUPPORTED="ERROR",K2.MISSING_INDEX="WARNING",K2.MISSING_OBJECT_STORES="ERROR",K2.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",K2.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",K2.QUOTA_EXCEEDED="WARNING",K2.QUOTA_MAYBE_EXCEEDED="WARNING",K2.UNKNOWN_ABORT="WARNING",K2.INCOMPATIBLE_DB_VERSION="WARNING",K2),L2={},rsa=(L2.AUTH_INVALID=!1,L2.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,L2.EXPLICIT_ABORT=!1,L2.IDB_NOT_SUPPORTED=!1,L2.MISSING_INDEX=!1,L2.MISSING_OBJECT_STORES=!1,L2.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,L2.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,L2.QUOTA_EXCEEDED=!1,L2.QUOTA_MAYBE_EXCEEDED=!0,L2.UNKNOWN_ABORT=!0,L2.INCOMPATIBLE_DB_VERSION=!1,L2);g.y(g.pC,g.XB);g.y(ssa,g.pC);g.y(qC,Error);var tsa=["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.uC.all=function(a){return new g.uC(new tC(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={uA:0};f.uA<a.length;f={uA:f.uA},++f.uA)g.uC.resolve(a[f.uA]).then(function(h){return function(l){d[h.uA]=l;e--;0===e&&b(d)}}(f)).catch(function(h){c(h)})}))};
g.uC.resolve=function(a){return new g.uC(new tC(function(b,c){a instanceof g.uC?a.then(b,c):b(a)}))};
g.uC.reject=function(a){return new g.uC(new tC(function(b,c){c(a)}))};
g.uC.prototype.then=function(a,b){var c=this,d=null!=a?a:wsa,e=null!=b?b:vsa;return new g.uC(new tC(function(f,h){"PENDING"===c.state.status?(c.j.push(function(){ysa(c,c,d,f,h)}),c.B.push(function(){zsa(c,c,e,f,h)})):"FULFILLED"===c.state.status?ysa(c,c,d,f,h):"REJECTED"===c.state.status&&zsa(c,c,e,f,h)}))};
g.uC.prototype.catch=function(a){return this.then(void 0,a)};g.k=Gsa.prototype;g.k.add=function(a,b,c){return g.zC(this,[a],{mode:"readwrite",Pb:!0},function(d){return d.objectStore(a).add(b,c)})};
g.k.clear=function(a){return g.zC(this,[a],{mode:"readwrite",Pb:!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.zC(this,[a],{mode:"readonly",Pb:!0},function(c){return c.objectStore(a).count(b)})};
g.k.delete=function(a,b){return g.zC(this,[a],{mode:"readwrite",Pb:!0},function(c){return c.objectStore(a).delete(b)})};
g.k.get=function(a,b){return g.zC(this,[a],{mode:"readonly",Pb:!0},function(c){return c.objectStore(a).get(b)})};
g.k.getAll=function(a,b,c){return g.zC(this,[a],{mode:"readonly",Pb:!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=Hsa.prototype;g.k.add=function(a,b){return vC(this.j.add(a,b))};
g.k.autoIncrement=function(){return this.j.autoIncrement};
g.k.clear=function(){return vC(this.j.clear()).then(function(){})};
g.k.count=function(a){return vC(this.j.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?Lsa(this,a):vC(this.j.delete(a))};
g.k.get=function(a){return vC(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype?vC(this.j.getAll(a,b)):Msa(this,a,b)};
g.k.index=function(a){try{return new Rsa(this.j.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new qC(a,this.j.name);throw b;}};
g.k.getName=function(){return this.j.name};
g.k.keyPath=function(){return this.j.keyPath};
CC.prototype.abort=function(){this.j.abort();this.B=!0;throw new g.pC("EXPLICIT_ABORT");};
CC.prototype.objectStore=function(a){a=this.j.objectStore(a);var b=this.C.get(a);b||(b=new Hsa(a),this.C.set(a,b));return b};
g.k=Rsa.prototype;g.k.count=function(a){return vC(this.j.count(a))};
g.k.delete=function(a){return g.GC(this,{query:a},function(b){return b.delete().then(function(){return g.FC(b)})})};
g.k.get=function(a){return vC(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBIndex.prototype?vC(this.j.getAll(a,b)):Ssa(this,a,b)};
g.k.keyPath=function(){return this.j.keyPath};
g.k.unique=function(){return this.j.unique};
HC.prototype.delete=function(){return vC(this.cursor.delete()).then(function(){})};
HC.prototype.getValue=function(){return this.cursor.value};
HC.prototype.update=function(a){return vC(this.cursor.update(a))};JC.prototype.B=function(a,b,c){c=void 0===c?{}:c;return Usa(a,b,c)};
JC.prototype.delete=function(a){a=void 0===a?{}:a;return IC(this.name,a)};
JC.prototype.open=function(){function a(){var f,h,l,m,n,p,q,r,t,v;return g.G(function(w){switch(w.j){case 1:return h=null!=(f=Error().stack)?f:"",g.Ba(w,2),g.z(w,c.B(c.name,c.options.version,e),4);case 4:for(var A=l=w.B,C=c.options,F=[],H=g.u(Object.keys(C.Yr)),M=H.next();!M.done;M=H.next()){M=M.value;var L=C.Yr[M],R=void 0===L.tda?Number.MAX_VALUE:L.tda;!(A.j.version>=L.zn)||A.j.version>=R||A.j.objectStoreNames.contains(M)||F.push(M)}m=F;if(0===m.length){w.Ia(5);break}n=Object.keys(c.options.Yr);
p=l.objectStoreNames();if(c.G<g.UA("ytidb_reopen_db_retries",0))return c.G++,l.close(),lC(new g.pC("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),w.return(a());if(!(c.D<g.UA("ytidb_remake_db_retries",1))){w.Ia(6);break}c.D++;return g.z(w,c.delete(),7);case 7:return lC(new g.pC("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),w.return(a());case 6:throw new ssa(p,n);case 5:return w.return(l);case 2:q=
g.Da(w);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){w.Ia(8);break}return g.z(w,c.B(c.name,void 0,Object.assign({},e,{upgrade:void 0})),9);case 9:r=w.B;t=r.j.version;if(void 0!==c.options.version&&t>c.options.version+1)throw r.close(),c.C=!1,Vsa(c,t);return w.return(r);case 8:throw b(),
q instanceof Error&&!g.TA("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),usa(q,c.name,"",null!=(v=c.options.version)?v:-1);}})}
function b(){c.j===d&&(c.j=void 0)}
var c=this;if(!this.C)throw Vsa(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()},
closed:b,wea:b,upgrade:this.options.upgrade};return this.j=d=a()};var Wsa=new JC("YtIdbMeta",{Yr:{databases:{zn:1}},upgrade:function(a,b){b(1)&&g.xC(a,"databases",{keyPath:"actualName"})}});var bta,$sa=new function(){}(new function(){});new g.Po;g.y(QC,JC);QC.prototype.B=function(a,b,c){c=void 0===c?{}:c;return(this.options.shared?gta:fta)(a,b,Object.assign({},c))};
QC.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.shared?kta:hta)(this.name,a)};var Cob={},mta=g.RC("ytGcfConfig",{Yr:(Cob.coldConfigStore={zn:1},Cob.hotConfigStore={zn:1},Cob),shared:!1,upgrade:function(a,b){b(1)&&(g.DC(g.xC(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.DC(g.xC(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});g.y(sta,g.I);sta.prototype.va=function(){for(var a=g.u(this.B),b=a.next();!b.done;b=a.next()){var c=this.j;b=c.indexOf(b.value);0<=b&&c.splice(b,1)}this.B.length=0;g.I.prototype.va.call(this)};XC.prototype.As=function(a){this.hotHashData=a;g.Ua("yt.gcf.config.hotHashData",this.hotHashData||null)};var Dob="undefined"!==typeof TextEncoder?new TextEncoder:null,iua=Dob?function(a){return Dob.encode(a)}:function(a){a=g.Gg(a);
for(var b=new Uint8Array(a.length),c=0;c<b.length;c++)b[c]=a[c];return b};var kAa={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},nAa={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};aD.prototype.Fk=function(){return{version:this.version,args:this.args}};bD.prototype.toString=function(){return this.topic};var Eob=g.Xa("ytPubsub2Pubsub2Instance")||new g.iw;g.iw.prototype.subscribe=g.iw.prototype.subscribe;g.iw.prototype.unsubscribeByKey=g.iw.prototype.Ph;g.iw.prototype.publish=g.iw.prototype.publish;g.iw.prototype.clear=g.iw.prototype.clear;g.Ua("ytPubsub2Pubsub2Instance",Eob);var dD=g.Xa("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ua("ytPubsub2Pubsub2SubscribedKeys",dD);var eD=g.Xa("ytPubsub2Pubsub2TopicToKeys")||{};g.Ua("ytPubsub2Pubsub2TopicToKeys",eD);var Sta=g.Xa("ytPubsub2Pubsub2IsAsync")||{};
g.Ua("ytPubsub2Pubsub2IsAsync",Sta);g.Ua("ytPubsub2Pubsub2SkipSubKey",null);var Zta=void 0,Xta=void 0;var eua=g.UA("max_body_size_to_compress",5E5),fua=g.UA("min_body_size_to_compress",500),hD=!0,kD=0,jD=0,jua=g.UA("compression_performance_threshold_lr",250),kua=g.UA("slow_compressions_before_abandon_count",4),aua=!1,gD=new Map,hua=1,gua=!0;g.k=mD.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(lD(this)&&this.j){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.Hh.set(d,this.Df).then(function(e){d.id=e;c.jh.Gh()&&c.eF(d)}).catch(function(e){c.eF(d);
nD(c,e)})}else this.sendFn(a,b)};
g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(lD(this)&&this.j){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.fb&&this.fb("nwl_skip_retry")&&(e.skipRetry=c);if(this.jh.Gh()||this.fb&&this.fb("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(h,l){return g.G(function(m){if(1==m.j)return g.z(m,d.Hh.set(e,d.Df).catch(function(n){nD(d,n)}),2);
f(h,l);g.Aa(m)})}}this.sendFn(a,b,e.skipRetry)}else this.Hh.set(e,this.Df).catch(function(h){d.sendFn(a,b,e.skipRetry);
nD(d,h)})}else this.sendFn(a,b,this.fb&&this.fb("nwl_skip_retry")&&c)};
g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(lD(this)&&this.j){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.Hh.Sz(d.id,c.Df):e=!0;c.jh.Dx&&c.fb&&c.fb("vss_network_hint")&&c.jh.Dx(!0);f(h,l)};
this.sendFn(d.url,d.options,void 0,!0);this.Hh.set(d,this.Df).then(function(h){d.id=h;e&&c.Hh.Sz(d.id,c.Df)}).catch(function(h){nD(c,h)})}else this.sendFn(a,b,void 0,!0)};
g.k.sC=function(){var a=this;if(!lD(this))throw Error("IndexedDB is not supported: throttleSend");this.B||(this.B=this.uo.Qi(function(){var b;return g.G(function(c){if(1==c.j)return g.z(c,a.Hh.lY("NEW",a.Df),2);if(3!=c.j)return b=c.B,b?g.z(c,a.eF(b),3):(a.jO(),c.return());a.B&&(a.B=0,a.sC());g.Aa(c)})},this.l2))};
g.k.jO=function(){this.uo.Tj(this.B);this.B=0};
g.k.eF=function(a){var b=this,c;return g.G(function(d){switch(d.j){case 1:if(!lD(b))throw Error("IndexedDB is not supported: immediateSend");if(void 0===a.id){d.Ia(2);break}return g.z(d,b.Hh.x$(a.id,b.Df),3);case 3:(c=d.B)||b.pA(Error("The request cannot be found in the database."));case 2:if(b.QL(a,b.W0)){d.Ia(4);break}b.pA(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){d.Ia(5);break}return g.z(d,b.Hh.Sz(a.id,b.Df),5);case 5:return d.return();case 4:a.skipRetry||
(a=qua(b,a));if(!a){d.Ia(0);break}if(!a.skipRetry||void 0===a.id){d.Ia(8);break}return g.z(d,b.Hh.Sz(a.id,b.Df),8);case 8:b.sendFn(a.url,a.options,!!a.skipRetry),g.Aa(d)}})};
g.k.QL=function(a,b){a=a.timestamp;return this.now()-a>=b?!1:!0};
g.k.TL=function(){var a=this;if(!lD(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Hh.lY("QUEUED",this.Df).then(function(b){b&&!a.QL(b,a.P0)?a.uo.Qi(function(){return g.G(function(c){if(1==c.j)return void 0===b.id?c.Ia(2):g.z(c,a.Hh.HS(b.id,a.Df),2);a.TL();g.Aa(c)})}):a.jh.Gh()&&a.sC()})};var oD;var qwa={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,mbsConnectionInitiated:138,
mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,kidsParentalGateTracking:168,
kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,
mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,
atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,
cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,
kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500};var Fob={},Aua=g.RC("ServiceWorkerLogsDatabase",{Yr:(Fob.SWHealthLog={zn:1},Fob),shared:!0,upgrade:function(a,b){b(1)&&g.DC(g.xC(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Hua={},Gua=0;var Jua;sD.prototype.requestComplete=function(a,b){b&&(this.B=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)};
sD.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.B?!0:null};
sD.prototype.removeParams=function(a){return a.split("?")[0]};
sD.prototype.removeParams=sD.prototype.removeParams;sD.prototype.isEndpointCFR=sD.prototype.isEndpointCFR;sD.prototype.requestComplete=sD.prototype.requestComplete;sD.getInstance=tD;g.y(uD,g.Ed);g.k=uD.prototype;g.k.Gh=function(){return this.j.Gh()};
g.k.Dx=function(a){this.j.j=a};
g.k.e9=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.k.e8=function(){this.B=!0};
g.k.listen=function(a,b){return this.j.listen(a,b)};
g.k.XL=function(a){a=zv(this.j,a);a.then(function(b){g.TA("use_cfr_monitor")&&tD().requestComplete("generate_204",b)});
return a};
uD.prototype.sendNetworkCheckRequest=uD.prototype.XL;uD.prototype.listen=uD.prototype.listen;uD.prototype.enableErrorFlushing=uD.prototype.e8;uD.prototype.getWindowStatus=uD.prototype.e9;uD.prototype.networkStatusHint=uD.prototype.Dx;uD.prototype.isNetworkAvailable=uD.prototype.Gh;uD.getInstance=Lua;g.y(g.vD,g.Ed);g.vD.prototype.Gh=function(){var a=g.Xa("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.B)():!0};
g.vD.prototype.Dx=function(a){var b=g.Xa("yt.networkStatusManager.instance.networkStatusHint").bind(this.B);b&&b(a)};
g.vD.prototype.XL=function(a){var b=this,c;return g.G(function(d){c=g.Xa("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.B);return g.TA("skip_network_check_if_cfr")&&tD().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Dx((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.Gh())})):c?d.return(c(a)):d.return(!0)})};var Nua;g.y(wD,mD);wD.prototype.writeThenSend=function(a,b){b||(b={});b=Rua(a,b);g.ZB()||(this.j=!1);mD.prototype.writeThenSend.call(this,a,b)};
wD.prototype.sendThenWrite=function(a,b,c){b||(b={});b=Rua(a,b);g.ZB()||(this.j=!1);mD.prototype.sendThenWrite.call(this,a,b,c)};
wD.prototype.sendAndWrite=function(a,b){b||(b={});b=Rua(a,b);g.ZB()||(this.j=!1);mD.prototype.sendAndWrite.call(this,a,b)};
wD.prototype.awaitInitialization=function(){return this.C.promise};var Sua=g.Ta.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Ua("ytNetworklessLoggingInitializationOptions",Sua);g.yD.prototype.isReady=function(){!this.config_&&Fta()&&(this.config_=g.ZC());return!!this.config_};var Gob,BD,DD;Gob=g.Ta.ytPubsubPubsubInstance||new g.iw;BD=g.Ta.ytPubsubPubsubSubscribedKeys||{};DD=g.Ta.ytPubsubPubsubTopicToKeys||{};g.CD=g.Ta.ytPubsubPubsubIsSynchronous||{};g.iw.prototype.subscribe=g.iw.prototype.subscribe;g.iw.prototype.unsubscribeByKey=g.iw.prototype.Ph;g.iw.prototype.publish=g.iw.prototype.publish;g.iw.prototype.clear=g.iw.prototype.clear;g.Ua("ytPubsubPubsubInstance",Gob);g.Ua("ytPubsubPubsubTopicToKeys",DD);g.Ua("ytPubsubPubsubIsSynchronous",g.CD);
g.Ua("ytPubsubPubsubSubscribedKeys",BD);var Zua={};g.y(JD,g.I);JD.prototype.append=function(a){if(!this.B)throw Error("This does not support the append operation");a=a.Ib();this.Ib().appendChild(a)};
g.y(KD,JD);KD.prototype.Ib=function(){return this.j};g.y(dva,g.I);var LD=Date.now().toString();var iva={};var TD=Symbol("injectionDeps");RD.prototype.toString=function(){return"InjectionToken("+this.name+")"};
jva.prototype.resolve=function(a){return a instanceof SD?UD(this,a.key,[],!0):UD(this,a,[])};var mva;var WD=window;var XD=g.TA("web_enable_lifecycle_monitoring")&&0!==nva(),wva=g.TA("web_enable_lifecycle_monitoring");rva.prototype.cancel=function(){for(var a=g.u(this.j),b=a.next();!b.done;b=a.next())b=b.value,void 0===b.jobId||b.EL||this.scheduler.Tj(b.jobId),b.EL=!0;this.B.resolve()};g.k=YD.prototype;g.k.install=function(a){this.plugins.push(a);return this};
g.k.uninstall=function(){var a=this;g.Ia.apply(0,arguments).forEach(function(b){b=a.plugins.indexOf(b);-1<b&&a.plugins.splice(b,1)})};
g.k.transition=function(a,b){var c=this;XD&&pva(this.state);var d=this.transitions.find(function(f){return Array.isArray(f.from)?f.from.find(function(h){return h===c.state&&f.to===a}):f.from===c.state&&f.to===a});
if(d){this.B&&(sva(this.B),this.B=void 0);xva(this,a,b);this.state=a;XD&&ova(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]});
d(uva(this,e),b)}else throw Error("no transition specified from "+this.state+" to "+a);};
g.k.Dda=function(a){var b=g.Ia.apply(1,arguments);g.dC();for(var c=g.u(a),d=c.next(),e={};!d.done;e={EF:void 0},d=c.next())e.EF=d.value,jsa(function(f){return function(){vva(f.EF.name);f.EF.callback.apply(f.EF,g.qa(b));ZD(f.EF.name)}}(e))};
g.k.Cda=function(a){var b=g.Ia.apply(1,arguments),c,d,e,f;return g.G(function(h){1==h.j&&(g.dC(),c=g.u(a),d=c.next(),e={});if(3!=h.j){if(d.done)return h.Ia(0);e.TA=d.value;e.oI=void 0;f=function(l){return function(){vva(l.TA.name);var m=l.TA.callback.apply(l.TA,g.qa(b));"function"===typeof(null==m?void 0:m.then)?l.oI=m.then(function(){ZD(l.TA.name)}):ZD(l.TA.name)}}(e);
jsa(f);return e.oI?g.z(h,e.oI,3):h.Ia(3)}e={TA:void 0,oI:void 0};d=c.next();return h.Ia(2)})};
g.k.E1=function(a){var b=g.Ia.apply(1,arguments),c=this,d=a.map(function(e){return{DQ:function(){vva(e.name);e.callback.apply(e,g.qa(b));ZD(e.name)},
priority:tva(c,e)}});
d.length&&(this.B=new rva(d))};
g.ha.Object.defineProperties(YD.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var yva;g.y($D,YD);$D.prototype.G=function(a,b){var c=this;this.j=g.bC(0,function(){"application_navigating"===c.currentState&&c.transition("none")},5E3);
a(null==b?void 0:b.event)};
$D.prototype.K=function(a,b){this.j&&(g.Bv.Tj(this.j),this.j=null);a(null==b?void 0:b.event)};var lwa=[];g.Ua("yt.logging.transport.getScrapedGelPayloads",function(){return lwa});aE.prototype.storePayload=function(a,b){a=Ava(a);this.store[a]?this.store[a].push(b):(this.B={},this.store[a]=[b]);this.j++;return a};
aE.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=Bva(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.qa(this.store[b[d]])),delete this.store[b[d]]):c.push.apply(c,g.qa(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.qa(this.smartExtractMatchingEntries(a))));
return c};
aE.prototype.extractMatchingEntries=function(a){a=Bva(this,a);for(var b=[],c=0;c<a.length;c++)this.store[a[c]]&&(b.push.apply(b,g.qa(this.store[a[c]])),delete this.store[a[c]]);this.j-=b.length;return b};
aE.prototype.getSequenceCount=function(a){a=Bva(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};
aE.prototype.getSequenceCount=aE.prototype.getSequenceCount;aE.prototype.extractMatchingEntries=aE.prototype.extractMatchingEntries;aE.prototype.smartExtractMatchingEntries=aE.prototype.smartExtractMatchingEntries;aE.prototype.storePayload=aE.prototype.storePayload;var Zva=g.UA("initial_gel_batch_timeout",2E3),Yva=g.UA("gel_queue_timeout_max_ms",6E4),kwa=Math.pow(2,16)-1,$va=g.UA("gel_min_batch_size",5),jE=void 0,pwa=new cE,owa=new cE,Xva=new cE,Wva=new cE,Pva,nE=!0,jwa=1,eE=new Map,mE=g.Ta.ytLoggingTransportTokensToCttTargetIds_||{};g.Ua("ytLoggingTransportTokensToCttTargetIds_",mE);var lE=g.Ta.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.Ua("ytLoggingTransportTokensToJspbCttTargetIds_",lE);var hE={},Cva=!1;var oE=g.Ta.ytLoggingGelSequenceIdObj_||{};g.Ua("ytLoggingGelSequenceIdObj_",oE);var uwa,qE,vwa,xwa=g.yD,twa=!1,Awa=[];var Cwa=g.Ta.ytLoggingGelSequenceIdObj_||{};g.Ua("ytLoggingGelSequenceIdObj_",Cwa);var M2=g.Ta.ytLoggingDocDocumentNonce_;M2||(M2=g.ND(16),g.Ua("ytLoggingDocDocumentNonce_",M2));var Vwa=M2;var Swa={R3:0,Gua:1,Sva:2,r6:3,gya:4,Vlb:5,kXa:6,SHARE:7,a5a:8,L6a: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 Kwa=1;g.k=uE.prototype;g.k.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};
g.k.getAsJspb=function(){var a=new zz;void 0!==this.j.trackingParams?a.setTrackingParams(this.j.trackingParams):(void 0!==this.j.veType&&Vk(a,2,this.j.veType),void 0!==this.j.veCounter&&Vk(a,6,this.j.veCounter),void 0!==this.j.elementIndex&&Vk(a,3,this.j.elementIndex),this.j.isCounterfactual&&Uk(a,5,!0));if(void 0!==this.j.dataElement){var b=this.j.dataElement.getAsJspb();Ik(a,zz,7,b)}void 0!==this.j.youtubeData&&Ik(a,Jx,8,this.j.jspbYoutubeData);return a};
g.k.toString=function(){return JSON.stringify(this.getAsJson())};
g.k.isClientVe=function(){return!this.j.trackingParams&&!!this.j.veType};
g.k.getLoggingDirectives=function(){return this.j.loggingDirectives};g.Ua("yt_logging_screen.getRootVeType",Pwa);g.Ua("yt_logging_screen.getCurrentCsn",g.xE);g.Ua("yt_logging_screen.getCttAuthInfo",yE);g.Ua("yt_logging_screen.setCurrentScreen",Wwa);var $wa="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var mxa=[{VQ:function(a){return"Cannot read property '"+a.key+"'"},
sL:{Error:[{Hj:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Hj:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Hj:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Hj:/\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"]},{Hj:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Hj:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Hj:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{VQ:function(a){return"Cannot call '"+a.key+"'"},
sL:{TypeError:[{Hj:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Hj:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Hj:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Hj:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Hj:/\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"]},
{Hj:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{VQ:function(a){return a.key+" is not defined"},
sL:{ReferenceError:[{Hj:/(.*) is not defined/,groups:["key"]},{Hj:/Can't find variable: (.*)/,groups:["key"]}]}}];var exa={Wr:[],qt:[{callback:axa,weight:500}]};var cxa;var CE=new g.iw;var nxa=new Set,kxa=0,qxa=0,pxa=0,lxa=[],sxa=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var uxa=new g.cx("parallelCommand");var xxa=new g.cx("performOnceCommand");var wxa=new g.cx("serialCommand");var FE=void 0;var Hob=g.u(function(a){var b=Zka(a);Jlb++;jv=function(){if(dv===g.Qlb)throw Error("A Signal Setter was called within onCleanup, which can lead to infinite update loops. See go/cow-errors#signal-write-in-oncleanup for more information.");throw Error("A Signal Setter was called within a Reaction, which can lead to infinite update loops. See go/cow-errors#signal-write-in-a-reactive-context for more information.");};
return[function(){Klb++;return b()},
function(c){Llb++;if(c&&c[Slb]){var d=b[g.vv];c=c[Slb];Tka()||jv();ala(d,c(d.value))}else ala(b[g.vv],c)}]}(null));
Hob.next();Hob.next();g.y(Axa,aD);var Dxa=new bD("screen-created",Axa),NE=[],Bxa=Oxa,Pxa=0,JE=new Map,Exa=new Map,Fxa=new Map;g.nb(g.UE,g.I);g.UE.prototype.subscribe=function(a,b,c){return this.Na()?0:this.yj.subscribe(a,b,c)};
g.UE.prototype.unsubscribe=function(a,b,c){return this.Na()?!1:this.yj.unsubscribe(a,b,c)};
g.UE.prototype.Ph=function(a){return this.Na()?!1:this.yj.Ph(a)};
g.UE.prototype.publish=function(a,b){return this.Na()?!1:this.yj.publish.apply(this.yj,arguments)};var o7a=16/9,Iob=[.25,.5,.75,1,1.25,1.5,1.75,2],Job=Iob.concat([3,4,5,6,7,8,9,10,15]);var Rxa=1;g.y(g.YE,g.I);g.k=g.YE.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.I;var c=a.S,d=a.Ka;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.I);g.UR&&(a.X||(a.X={}),a.X.focusable="false")}else e=g.yf(a.I);if(c){if(c=ZE(this,e,"class",c))$E(this,e,"class",c),this.Jb[c]=e}else if(d){c=g.u(d);for(var f=c.next();!f.done;f=c.next())this.Jb[f.value]=e;$E(this,e,"class",d.join(" "))}d=a.xa;c=a.V;if(d)b=ZE(this,e,"child",d),void 0!==b&&e.appendChild(g.zf(b));else if(c)for(d=0,c=g.u(c),f=c.next();!f.done;f=c.next())if(f=
f.value)if("string"===typeof f)f=ZE(this,e,"child",f),null!=f&&e.appendChild(g.zf(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Ic&&(h=XE(),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),Df(e,f,d++))}if(a=a.X)for(b=e,d=g.u(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],$E(this,b,c,"string"===typeof f?
ZE(this,b,c,f):f);return e};
g.k.Fa=function(a){return this.Jb[a]};
g.k.Ja=function(a,b){"number"===typeof b?Df(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.Ef(this.element)};
g.k.update=function(a){for(var b=g.u(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.je["{{"+a+"}}"])&&$E(this,a[0],a[1],b)};
g.k.va=function(){this.Jb={};this.je={};this.detach();g.I.prototype.va.call(this)};g.y(g.W,g.YE);g.k=g.W.prototype;g.k.Kd=function(a,b){this.updateValue(b||"content",a)};
g.k.show=function(){this.Gb||(g.Is(this.element,"display",""),this.Gb=!0)};
g.k.hide=function(){this.Gb&&(g.Is(this.element,"display","none"),this.Gb=!1)};
g.k.Lc=function(a){this.Z=a};
g.k.listen=function(a,b,c){return this.T(this.element,a,b,c)};
g.k.T=function(a,b,c,d){c=(0,g.gb)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.Pc=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(){this.element.focus()};
g.k.va=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.YE.prototype.va.call(this)};g.y(g.bF,g.W);g.bF.prototype.subscribe=function(a,b,c){return this.Sa.subscribe(a,b,c)};
g.bF.prototype.unsubscribe=function(a,b,c){return this.Sa.unsubscribe(a,b,c)};
g.bF.prototype.Ph=function(a){return this.Sa.Ph(a)};
g.bF.prototype.publish=function(a){return this.Sa.publish.apply(this.Sa,[a].concat(g.qa(g.Ia.apply(1,arguments))))};var Kob=new WeakSet;g.y(cF,g.bF);g.k=cF.prototype;g.k.bind=function(a){this.eb||a.renderer&&this.init(a.id,a.renderer,{},a);return Promise.resolve()};
g.k.init=function(a,b,c){this.eb=a;this.element.setAttribute("id",this.eb);this.Ab&&g.Qv(this.element,this.Ab);this.qa=b&&b.adRendererCommands;this.La=b.interaction;var d;(null==(d=this.La)?0:d.onTap)&&g.Qv(this.element,"ytp-ad-component--clickable");this.macros=c;this.N=b.trackingParams||null;this.K=b.loggingDirectives;null!=this.N?this.createServerVe(this.element,this.N):this.K&&(a=this.element,b=this.K,this.api.createServerVe(a,this,!0),this.api.setTrackingParams(a,b.trackingParams||null))};
g.k.clear=function(){};
g.k.hide=function(){g.bF.prototype.hide.call(this);(null!=this.N||this.K)&&this.logVisibility(this.element,!1)};
g.k.show=function(){g.bF.prototype.show.call(this);if(!this.Hb){this.Hb=!0;var a=this.qa&&this.qa.impressionCommand,b,c=null==(b=this.La)?void 0:b.onFirstVisible;a?this.TG(a):c&&(a=GE(c))&&this.TG(a)}(null!=this.N||this.K)&&this.logVisibility(this.element,!0)};
g.k.onClick=function(a){if((this.N||this.K)&&!Kob.has(a)){var b=this.element;this.api.hasVe(b)&&this.Gb&&this.api.logClick(b,this.interactionLoggingClientData);Kob.add(a)}var c=this.qa&&this.qa.clickCommand,d;b=null==(d=this.La)?void 0:d.onTap;if(c)b=this.M0(c),this.TG(b);else{if(d=b)a:{d=this.element;a=a.composedPath();a=g.u(a);for(c=a.next();!c.done;c=a.next()){c=c.value;if(c===d)break;if(0<=c.className.indexOf("ytp-ad-component--clickable")){d=!1;break a}}d=!0}d&&(b=GE(b))&&this.TG(b)}};
g.k.M0=function(a){return a};
g.k.N5=function(a){var b=this.Ca;b.N=!0;b.B=a.touches.length;b.j.isActive()&&(b.j.stop(),b.G=!0);a=a.touches;b.K=eva(b,a)||1!=a.length;var c=a.item(0);b.K||!c?(b.Z=Infinity,b.Y=Infinity):(b.Z=c.clientX,b.Y=c.clientY);for(c=b.C.length=0;c<a.length;c++){var d=a.item(c);b.C.push(d.identifier)}};
g.k.M5=function(a){var b=this.Ca;a=a.changedTouches.item(0);var c;if(c=Ic()){c=g.pc();var d="";if(Uaa())d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(c=d.exec(c))?c[1]:"0.0";else if(Ic())d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(c=d.exec(c))&&c[1].replace(/_/g,".");else if(Kc())d=/Mac OS X ([0-9_.]+)/,d=(c=d.exec(c))?c[1].replace(/_/g,"."):"10";else if(kc(g.pc(),"KaiOS"))d=/(?:KaiOS)\/(\S+)/i,d=(c=d.exec(c))&&c[1];else if(Taa())d=/Android\s+([^\);]+)(\)|;)/,d=(c=d.exec(c))&&c[1];else if(Dc()?"Chrome OS"===
sc.platform:xc("CrOS"))d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,d=(c=d.exec(c))&&c[1];c=!(0<=g.nc(d||"",8))}if(c||a&&Math.pow(a.clientX-b.Z,2)+Math.pow(a.clientY-b.Y,2)>Math.pow(5,2))b.D=!0};
g.k.L5=function(a){if(this.Ca){var b=this.Ca,c=a.changedTouches;c&&b.N&&1==b.B&&!b.D&&!b.G&&!b.K&&eva(b,c)&&(b.qa=a,b.j.start());b.B=a.touches.length;0===b.B&&(b.N=!1,b.D=!1,b.C.length=0);b.G=!1}};
g.k.TG=function(a){this.layoutId?this.kb.executeCommand(a,this.layoutId):g.AE(new g.XB("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
g.k.createServerVe=function(a,b){this.api.createServerVe(a,this);this.api.setTrackingParams(a,b)};
g.k.logVisibility=function(a,b){this.api.hasVe(a)&&this.api.logVisibility(a,b,this.interactionLoggingClientData)};
g.k.va=function(){this.clear(null);this.Pc(this.rb);for(var a=g.u(this.Ha),b=a.next();!b.done;b=a.next())this.Pc(b.value);g.bF.prototype.va.call(this)};g.y(nF,cF);
nF.prototype.init=function(a,b,c){cF.prototype.init.call(this,a,b,c);this.j=b;if(null==b.text&&null==b.icon)g.BE(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.Qv(this.element,a);null!=b.text&&(a=g.eF(b.text),g.fc(a)||(this.element.setAttribute("aria-label",a),this.C=new g.bF({I:"span",S:"ytp-ad-button-text",xa:a}),g.N(this,this.C),this.C.Ja(this.element)));this.api.U().L("use_accessibility_data_on_desktop_player_button")&&b.accessibilityData&&
b.accessibilityData.accessibilityData&&b.accessibilityData.accessibilityData.label&&!g.fc(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);null!=b.icon&&(b=mF(b.icon),null!=b&&(this.B=new g.bF({I:"span",S:"ytp-ad-button-icon",V:[b]}),g.N(this,this.B)),this.D?Df(this.element,this.B.element,0):this.B.Ja(this.element))}};
nF.prototype.clear=function(){this.hide()};
nF.prototype.onClick=function(a){cF.prototype.onClick.call(this,a);a=g.u(sya(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.kb.executeCommand(b,this.layoutId):g.AE(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.y(oF,g.I);oF.prototype.va=function(){this.B&&g.DB(this.B);this.j.clear();pF=null;g.I.prototype.va.call(this)};
oF.prototype.register=function(a,b){b&&this.j.set(a,b)};
var pF=null;g.y(sF,cF);
sF.prototype.init=function(a,b,c){cF.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.V(b.button,g.pM)||null;null==b?g.AE(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new nF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.N(this,this.button),this.button.init(SE("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.eF(a)),this.button.Ja(this.element),this.G&&!g.Pv(this.button.element,"ytp-ad-clickable")&&g.Qv(this.button.element,
"ytp-ad-clickable"),a&&(this.B=new g.bF({I:"div",S:"ytp-ad-hover-text-container"}),this.D&&(b=new g.bF({I:"div",S:"ytp-ad-hover-text-callout"}),b.Ja(this.B.element),g.N(this,b)),g.N(this,this.B),this.B.Ja(this.element),b=qF(a),Df(this.B.element,b,0)),this.show())};
sF.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();cF.prototype.hide.call(this)};
sF.prototype.show=function(){this.button&&this.button.show();cF.prototype.show.call(this)};g.y(uF,cF);
uF.prototype.init=function(a,b,c){cF.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&tF(a)||"";g.fc(c)?.01>Math.random()&&g.BE(Error("Found AdImage without valid image URL")):(this.j?g.Is(this.element,"backgroundImage","url("+c+")"):uf(this.element,{src:c}),uf(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())};
uF.prototype.clear=function(){this.hide()};g.y(vF,cF);g.k=vF.prototype;g.k.hide=function(){cF.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.C=document.activeElement;cF.prototype.show.call(this);this.D.focus()};
g.k.init=function(a,b,c){cF.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.AE(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.AE(Error("ConfirmDialogRenderer.cancelLabel was not set.")):wya(this,b):g.AE(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.MB(this.j);this.hide()};
g.k.oR=function(){this.hide()};
g.k.kN=function(){var a=this.B.cancelEndpoint;a&&(this.layoutId?this.kb.executeCommand(a,this.layoutId):g.AE(Error("Missing layoutId for confirm dialog.")));this.hide()};
g.k.pR=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.layoutId?this.kb.executeCommand(a,this.layoutId):g.AE(Error("Missing layoutId for confirm dialog.")));this.hide()};g.y(wF,cF);g.k=wF.prototype;
g.k.init=function(a,b,c){cF.prototype.init.call(this,a,b,c);this.C=b;if(null==b.defaultText&&null==b.defaultIcon)g.AE(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.AE(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.Qv(this.D,a)}a={};b.defaultText?
(c=g.eF(b.defaultText),g.fc(c)||(a.buttonText=c,this.api.U().experiments.fb("a11y_h5_associate_survey_question")||this.j.setAttribute("aria-label",c),this.api.U().experiments.fb("fix_h5_toggle_button_a11y")&&this.B.setAttribute("aria-label",c))):g.Vs(this.Ga,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.B.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=mF(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.ra=
!0,c=mF(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.Vs(this.Y,!0),g.Vs(this.G,!1)),g.Vs(this.j,!1)):g.Vs(this.B,!1);g.gd(a)||this.update(a);b.isToggled&&(g.Qv(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));xya(this);this.T(this.element,"change",this.tV);this.show()}};
g.k.onClick=function(a){0<this.Ha.length&&(this.toggleButton(!this.isToggled()),this.tV());cF.prototype.onClick.call(this,a)};
g.k.tV=function(){g.Uv(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.u(yya(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.kb.executeCommand(b,this.layoutId):g.AE(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);xya(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.Uv(this.D,"ytp-ad-toggle-button-toggled",a);this.j.checked=a;xya(this)};
g.k.isToggled=function(){return this.j.checked};g.y(xF,KB);xF.prototype.K=function(a){if(Array.isArray(a)){a=g.u(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof zya&&this.D(b)}};g.y(Aya,cF);g.k=Aya.prototype;g.k.init=function(a,b,c){cF.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.AE(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.BE(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.BE(Error("AdFeedbackRenderer.title was not set.")),Eya(this,b)):g.AE(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){Qra(this.G);Qra(this.Y);this.D.length=0;this.hide()};
g.k.hide=function(){this.j&&this.j.hide();this.B&&this.B.hide();cF.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.j&&this.j.show();this.B&&this.B.show();this.C=document.activeElement;cF.prototype.show.call(this);this.G.focus()};
g.k.B_=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()};
g.k.zca=function(){this.hide()};
yF.prototype.Ib=function(){return this.j.element};
yF.prototype.getCommand=function(){return this.B};
yF.prototype.isChecked=function(){return this.C.checked};g.y(zF,vF);zF.prototype.oR=function(a){vF.prototype.oR.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
zF.prototype.kN=function(a){vF.prototype.kN.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
zF.prototype.pR=function(a){vF.prototype.pR.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.y(Fya,cF);g.k=Fya.prototype;
g.k.init=function(a,b,c){cF.prototype.init.call(this,a,b,c);this.G=b;if(null==b.dialogMessage&&null==b.title)g.AE(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.BE(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&g.V(b.closeOverlayRenderer,g.pM)||null)this.j=new nF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
g.N(this,this.j),this.j.init(SE("button"),a,this.macros),this.j.Ja(this.element);b.title&&(a=g.eF(b.title),this.updateValue("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=qF(a[c]);if(!g.fc(d.textContent)){var e=xf("LI");e.appendChild(d);this.Ma.appendChild(e)}}else g.Vs(this.Ma,!1);b.dialogMessage&&(a=qF(b.dialogMessage,!0),this.Wa.appendChild(a));b.confirmLabel&&(a=g.eF(b.confirmLabel),this.updateValue("confirmLabel",a));b.muteAdRenderer&&(b=g.V(b.muteAdRenderer,g.pM)||null)&&
(a=b.navigationEndpoint&&g.V(b.navigationEndpoint,Unb)||null,c=b.navigationEndpoint&&g.V(b.navigationEndpoint,vmb)||null,null==a&&null==c?g.BE(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?Gya(this,a):c&&Hya(this,c),this.C=new nF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,["ytp-ad-info-dialog-mute-button"],"button",!0),g.N(this,this.C),this.C.init(SE("button"),b,this.macros),this.C.listen("click",
this.hba,this),this.C.Ja(this.bb)));Iya(this)}};
g.k.clear=function(){Qra(this.Y);this.hide()};
g.k.hide=function(){this.B?this.B.hide():this.D&&this.D.hide();this.j&&this.j.hide();this.C&&this.C.hide();cF.prototype.hide.call(this);this.ra&&this.ra.focus()};
g.k.show=function(){this.j&&this.j.show();this.C&&this.C.show();if(!this.Va){for(var a=g.u(this.G&&this.G.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.kb.executeCommand(b,this.layoutId):g.AE(Error("Missing layoutId for ad info dialog."));this.Va=!0}this.ra=document.activeElement;cF.prototype.show.call(this);this.Y.focus()};
g.k.uV=function(){if(this.G&&this.G.confirmServiceEndpoint){var a=this.G.confirmServiceEndpoint;this.layoutId?this.kb.executeCommand(a,this.layoutId):g.AE(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.publish("d");this.hide()};
g.k.hba=function(){var a=this.B?this.B:this.D;a&&!a.Gb&&(this.hide(),a.show())};g.y(AF,sF);AF.prototype.init=function(a,b,c){sF.prototype.init.call(this,a,b,c);a=b.button&&g.V(b.button,g.pM)||null;null!=a&&(Nya(this,a,c),this.show())};
AF.prototype.hide=function(){this.button&&this.button.hide();this.j&&this.j.hide();sF.prototype.hide.call(this)};
AF.prototype.show=function(){this.button&&this.button.show();sF.prototype.show.call(this)};
AF.prototype.clear=function(){this.hide()};g.y(BF,cF);
BF.prototype.init=function(a,b,c){cF.prototype.init.call(this,a,b,c);this.j=b;this.isTemplated()||g.Kf(this.element,dF(this.j));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?tF(a):"",c=(c=this.api.getVideoData(1))&&c.Ol,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.bf(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()};
BF.prototype.isTemplated=function(){return this.j.isTemplated||!1};
BF.prototype.clear=function(){this.hide()};var bza={seekableStart:0,seekableEnd:1,current:0};g.y(CF,cF);CF.prototype.clear=function(){this.dispose()};g.y(g.FF,g.I);g.k=g.FF.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.bI(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.j&&this.j()):this.element.Gb||(GF(this,!0),this.state=1,a?this.delay.start(a):this.bI()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Gb&&(GF(this,!0),this.state=4,this.delay.start(this.C)))};
g.k.bI=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:GF(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();GF(this,!1);this.state=5;this.delay.start(0);break;case 5:if(this.state=null,this.onHidden)this.onHidden()}};
g.k.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.bI()};
g.k.va=function(){this.element.Na()||this.element.element.removeAttribute("aria-hidden");g.I.prototype.va.call(this)};g.y(HF,CF);g.k=HF.prototype;
g.k.init=function(a,b,c){CF.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.AE(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.gb&&(this.D?g.Qv(this.B.element,"modern-countdown-next-to-thumbnail"):g.Qv(this.B.element,"countdown-next-to-thumbnail"));a=b.durationMilliseconds;this.Ma=null==a||0===a?this.j.tm():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);
this.C.init(SE("ad-text"),d,c);(d=this.api.getVideoData(1))&&d.Ol&&b.thumbnail?this.G.init(SE("ad-image"),b.thumbnail,c):(this.ra.hide(),this.D&&this.gb&&g.Qv(this.C.element,"ytp-ad-preview-text-modern-postroll"))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.B.hide();this.C.hide();this.G.hide();EF(this);CF.prototype.hide.call(this)};
g.k.show=function(){DF(this);this.B.show();this.C.show();this.G.show();CF.prototype.show.call(this)};
g.k.yq=function(){this.hide()};
g.k.Ko=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Wa&&a>=this.Ma?(this.Ga.hide(),this.Wa=!0,this.publish("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.Ma-a)/1E3)),a!=this.bb&&(Oya(this.C,{TIME_REMAINING:String(a)}),this.bb=a)))}};g.y(Qya,CF);g.k=Qya.prototype;
g.k.init=function(a,b,c){CF.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if((a=b.actionButton&&g.V(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.fc(g.bf(e[0].url))&&(e[0].url=d.profilePicture)}else g.BE(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(SE("ad-image"),b.image,c);this.G.init(SE("ad-text"),
b.headline,c);this.D.init(SE("ad-text"),b.description,c);this.B.init(SE("button"),a,c);c=Gv(this.B.element);Fv(this.B.element,c+" This link opens in new tab");this.ra=a.navigationEndpoint;this.api.oF()||this.show();this.api.U().L("enable_larger_flyout_cta_on_desktop")&&(this.Fa("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.Fa("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.Fa("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"),
this.Fa("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.Fa("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.Fa("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.B.element.classList.add("ytp-flyout-cta-action-button-large"),this.B.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.Fa("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large"));
this.api.addEventListener("playerUnderlayVisibilityChange",this.vV.bind(this));this.Ga=b.startMs||0;DF(this)}else g.AE(Error("FlyoutCtaRenderer has no valid action button."));else g.AE(Error("FlyoutCtaRenderer has no description AdText."));else g.AE(Error("FlyoutCtaRenderer has no headline AdText."));else g.BE(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){CF.prototype.onClick.call(this,a);this.api.pauseVideo();!g.Jf(this.B.element,a.target)&&this.ra&&(this.layoutId?this.kb.executeCommand(this.ra,this.layoutId):g.AE(Error("Missing layoutId for flyout cta.")))};
g.k.Ko=function(){if(this.j){var a=this.j.getProgressState();(a&&a.current||this.Ma)&&1E3*a.current>=this.Ga&&(EF(this),g.Sv(this.element,"ytp-flyout-cta-inactive"),this.B.element.removeAttribute("tabIndex"))}};
g.k.yq=function(){this.clear()};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.vV.bind(this))};
g.k.show=function(){this.B&&this.B.show();CF.prototype.show.call(this)};
g.k.hide=function(){this.B&&this.B.hide();CF.prototype.hide.call(this)};
g.k.vV=function(a){"hidden"==a?this.show():this.hide()};g.y(Rya,cF);g.k=Rya.prototype;
g.k.init=function(a,b,c){cF.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(a=this.j.likeButton&&g.V(this.j.likeButton,G2),b=this.j.dislikeButton&&g.V(this.j.dislikeButton,G2),this.C.init(SE("toggle-button"),a,c),this.B.init(SE("toggle-button"),b,c),this.T(this.element,"change",this.wV),this.D.show(100),this.show(),c=g.u(this.j&&this.j.impressionCommands||[]),a=c.next();!a.done;a=c.next())a=a.value,this.layoutId?this.kb.executeCommand(a,this.layoutId):g.AE(Error("Missing layoutId for instream user sentiment."))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.C.hide();this.B.hide();cF.prototype.hide.call(this)};
g.k.show=function(){this.C.show();this.B.show();cF.prototype.show.call(this)};
g.k.wV=function(){ila(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.jb("onYtShowToast",this.j.postMessageAction);this.D.hide()};
g.k.onClick=function(a){0<this.Ha.length&&this.wV();cF.prototype.onClick.call(this,a)};g.y(IF,g.I);g.k=IF.prototype;g.k.va=function(){this.reset();g.I.prototype.va.call(this)};
g.k.reset=function(){g.MB(this.D);this.K=!1;this.j&&this.j.stop();this.G.stop();this.C&&(this.C=!1,this.N.play())};
g.k.start=function(){this.reset();this.D.T(this.B,"mouseover",this.yV,this);this.D.T(this.B,"mouseout",this.xV,this);this.qa&&(this.D.T(this.B,"focusin",this.yV,this),this.D.T(this.B,"focusout",this.xV,this));this.j?this.j.start():(this.K=this.C=!0,g.Is(this.B,{opacity:this.Y}))};
g.k.yV=function(){this.C&&(this.C=!1,this.N.play());this.G.stop();this.j&&this.j.stop()};
g.k.xV=function(){this.K?this.G.start():this.j&&this.j.start()};
g.k.JW=function(){this.C||(this.C=!0,this.Z.play(),this.K=!0)};g.y(PF,CF);g.k=PF.prototype;
g.k.init=function(a,b,c){CF.prototype.init.call(this,a,b,c);this.ra=b;(this.Ga=Zya(this))&&g.BE(Error("hasAdControlInClickCommands_ is true."));if(!b||g.gd(b))g.AE(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.gd(b.message))g.AE(Error("SkipButtonRenderer.message was not specified or empty."));else{a=this.G?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};b=mF(a);null==b?g.AE(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+a.iconType+".")):
(this.C=new g.bF({I:"button",Ka:[this.G?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],V:[{I:"span",S:this.G?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",V:[b]}]}),g.N(this,this.C),this.C.Ja(this.D.element),this.B=new BF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-skip-button-text"),this.G&&this.B.element.classList.add("ytp-ad-skip-button-text-centered"),this.B.init(SE("ad-text"),this.ra.message,c),g.N(this,this.B),Df(this.C.element,this.B.element,
0));var d=void 0===d?null:d;c=this.api.U();!(0<this.Ha.length)&&c.B&&(zR?0:"ontouchstart"in document.documentElement&&(pha()||Sr()))&&(this.Pc(this.rb),d&&this.Pc(d),this.Ha=[this.T(this.element,"touchstart",this.N5,this),this.T(this.element,"touchmove",this.M5,this),this.T(this.element,"touchend",this.L5,this)])}};
g.k.clear=function(){this.Ma.reset();this.hide()};
g.k.hide=function(){this.D.hide();this.B&&this.B.hide();EF(this);CF.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.C){if(a){var b=a||window.event;b.returnValue=!1;b.preventDefault&&b.preventDefault()}var c;if(0===Vya(a,{contentCpn:(null==(c=this.api.getVideoData(1))?void 0:c.clientPlaybackNonce)||""})&&(this.api.U().L("enable_isk_gating")&&this.api.jb("onAbnormalityDetected"),this.api.U().L("ab_sa_ef")))return;CF.prototype.onClick.call(this,a);this.publish("j");this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.jb("onAdSkip");if(this.Wa||!this.Ga)this.api.onAdUxClicked(this.componentType,
this.layoutId)}};
g.k.M0=function(a){if(!this.Wa)return this.Ga&&KF("SkipButton click commands not pruned while ALC exist"),a;var b,c=null==(b=g.V(a,g.QF))?void 0:b.commands;if(!c)return a;a=[];for(b=0;b<c.length;b++){var d=c[b];d.adLifecycleCommand&&Yya(d.adLifecycleCommand)||d.pingingEndpoint||d.adPingingEndpoint||a.push(d)}return{commandExecutorCommand:{commands:a}}};
g.k.show=function(){this.Ma.start();this.D.show();this.B&&this.B.show();DF(this);CF.prototype.show.call(this);this.bb&&this.api.U().L("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};
g.k.yq=function(){this.publish("k")};
g.k.Ko=function(){};g.y(RF,CF);g.k=RF.prototype;
g.k.init=function(a,b,c){CF.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&g.V(b.preskipRenderer,oM)||{};(a=g.gd(a)?null:a)?(this.G=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3,this.B=new HF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j,"countdown_next_to_thumbnail"==hR(this.api.U().experiments,"preskip_button_style_ads_backend")&&HI(this.api.U())),this.B.init(SE("preskip-component"),a,c),Pya(this.B),g.N(this,this.B),this.B.Ja(this.element)):
b.skipOffsetMilliseconds&&(this.G=b.skipOffsetMilliseconds);a=b&&b.skippableRenderer&&g.V(b.skippableRenderer,kmb)||{};a=g.gd(a)?null:a;null==a?g.AE(Error("SkipButtonRenderer was not set in player response.")):(this.C=new PF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j,this.ra),this.C.init(SE("skip-button"),a,c),g.N(this,this.C),this.C.Ja(this.element),this.api.U().experiments.fb("enable_skip_to_next_messaging")&&(b=g.bf(b.targetId))&&(c=this.C,null!=c.C&&(c.bb=!0,c.C.element.setAttribute("data-tooltip-target-id",
b),c.C.element.setAttribute("data-tooltip-target-fixed",""))),this.show())};
g.k.show=function(){this.D&&this.C?this.C.show():this.B&&this.B.show();DF(this);CF.prototype.show.call(this)};
g.k.yq=function(){};
g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();EF(this);CF.prototype.hide.call(this)};
g.k.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();EF(this);CF.prototype.hide.call(this)};
g.k.Ko=function(){1E3*this.j.getProgressState().current>=this.G&&$ya(this,!0)};g.y(aza,nF);aza.prototype.init=function(a,b,c){nF.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.eF(b.text),a=!g.fc(a));a?null==b.navigationEndpoint?g.BE(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.BE(Error("Button style was not a link-style type in renderer,")):this.show():g.BE(Error("No visit advertiser text was present in the renderer."))};g.y(SF,cF);
SF.prototype.init=function(a,b,c){cF.prototype.init.call(this,a,b,c);a=b.text;g.fc(dF(a))?g.BE(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.B&&(b=this.api.U(),b=a.text+" "+(b&&b.B?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a.targetId&&(b.targetId=a.targetId),a=new BF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),a.init(SE("simple-ad-badge"),b,c),a.Ja(this.element),g.N(this,a)),this.api.U().experiments.fb("enable_unified_ad_badge_style_fix")&&this.C&&
this.j.classList.add("ytp-ad-simple-ad-badge-unified"),this.show())};
SF.prototype.clear=function(){this.hide()};g.y(TF,TE);g.y(UF,g.UE);g.k=UF.prototype;g.k.tm=function(){return this.durationMs};
g.k.stop=function(){this.j&&this.Ed.Pc(this.j)};
g.k.Sc=function(a){this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.publish("h")};
g.k.getProgressState=function(){return this.B};
g.k.O5=function(a){g.OF(a,2)&&this.publish("g")};g.y(VF,g.UE);g.k=VF.prototype;g.k.tm=function(){return this.durationMs};
g.k.start=function(){this.j||(this.j=!0,this.Ve.start())};
g.k.stop=function(){this.j&&(this.j=!1,this.Ve.stop())};
g.k.Sc=function(){this.ij+=100;var a=!1;this.ij>this.durationMs&&(this.ij=this.durationMs,this.Ve.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.ij/1E3};this.publish("h");a&&this.publish("g")};
g.k.getProgressState=function(){return this.B};g.y(YF,CF);g.k=YF.prototype;g.k.init=function(a,b,c){CF.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.BE(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new BF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);this.B.init(SE("ad-text"),a,{});this.B.Ja(this.element);g.N(this,this.B)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){EF(this);CF.prototype.hide.call(this)};
g.k.yq=function(){this.hide()};
g.k.Ko=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&this.B&&(a=(this.j instanceof UF?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.j instanceof VF?a.seekableEnd:this.api.getDuration(2,!1))-a.current,Oya(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.WF(a)),TIME_REMAINING:String(Math.ceil(a))}))}};
g.k.show=function(){DF(this);CF.prototype.show.call(this)};g.y(cza,BF);cza.prototype.onClick=function(a){BF.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.y(aG,g.bF);aG.prototype.Sc=function(){var a=this.B.getProgressState();this.progressBar.style.width=100*$F(new ZF(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
aG.prototype.onStateChange=function(){g.HR(this.api.U())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.B.subscribe("h",this.Sc,this),this.Sc()):-1!==this.j&&(this.hide(),this.B.Ph(this.j),this.j=-1))};g.y(bG,cF);
bG.prototype.init=function(a,b,c,d){cF.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(c=b.skipOrPreviewRenderer,a=g.V(c,uL),c=g.V(c,oM),a?(c=new RF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,this.Y),c.Ja(this.G),c.init(SE("skip-button"),a,this.macros),g.N(this,c)):c&&(a=new HF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,!1),a.Ja(this.G),a.init(SE("ad-preview"),c,this.macros),Pya(a),g.N(this,a)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,
c=new Rya(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),c.Ja(this.ra),c.init(SE("instream-user-sentiment"),a,this.macros),g.N(this,c));if(a=g.V(b,dmb))if(a=g.V(a,dmb))c=new Qya(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,!!b.showWithoutLinkedMediaLayout),g.N(this,c),c.Ja(this.C),c.init(SE("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 SF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,!0,!1),g.N(this,c),c.Ja(this.j),c.init(SE("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&!b.showWithoutLinkedMediaLayout&&(a=b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new YF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,d),g.N(this,d),d.Ja(this.j),d.init(SE("ad-duration-remaining"),
a,this.macros));b.adInfoRenderer&&(d=g.V(b.adInfoRenderer,nM))&&(a=new AF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.element),g.N(this,a),a.Ja(this.j),a.init(SE("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(d=g.V(b.visitAdvertiserRenderer,g.pM))&&(a=eza(this)&&this.D?this.D:this.j)&&(b=new aza(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.N(this,b),b.Ja(a),b.init(SE("visit-advertiser"),d,this.macros),Dv(b.element),d=Gv(b.element),
Fv(b.element,d+" This link opens in new tab"));(b=this.api.U())&&!g.FR(b)&&"3"==b.controlsType&&(b=new aG(this.api,this.B),b.Ja(this.Ga),g.N(this,b));this.api.U().L("enable_updated_html5_player_focus_style")&&g.Qv(this.element,"ytp-ad-player-overlay-updated-focus-style");this.api.U().L("enable_unified_ad_badge_style_fix")&&(this.C.classList.add("ytp-ad-player-overlay-flyout-cta-unified"),this.j.classList.add("ytp-ad-player-overlay-instream-info-unified"));this.show()};
bG.prototype.clear=function(){this.hide()};eG.prototype.set=function(a,b,c){c=void 0!==c?Date.now()+c:void 0;this.j.set(a,b,c)};
eG.prototype.get=function(a){return this.j.get(a)};
eG.prototype.remove=function(a){this.j.remove(a)};var kza=null,mza=null,oza=null,qza=null;g.Ua("yt.www.ads.eventcache.getLastCompanionData",function(){return kza});
g.Ua("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.Ua("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return mza});
g.Ua("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return oza});
g.Ua("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return qza});var sza=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);hG.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=(null==(c=b.Vp.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)};
hG.prototype.replace=function(a,b){a=g.u(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];uza(this,b)};var Lob=window.location.hostname.split(".").slice(-2).join("."),N2;iG.getInstance=function(){N2=g.Xa("yt.clientLocationService.instance");N2||(N2=new iG,g.Ua("yt.clientLocationService.instance",N2));return N2};
g.k=iG.prototype;
g.k.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});if(this.j)a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(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;else if(this.C||this.locationPlayabilityToken)a.client.locationPlayabilityToken=this.C||
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.xA("INNERTUBE_CLIENT_NAME")?(this.localStorage=vza(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.dB("YT_CL",JSON.stringify({loctok:a}),15552E3,Lob,!0))};
g.k.clearLocationPlayabilityToken=function(a){"TVHTML5"===a?(this.localStorage=vza(this))&&this.localStorage.remove("yt-location-playability-token"):g.Qqa("YT_CL");this.C=void 0;-1!==this.B&&(clearTimeout(this.B),this.B=-1)};
g.k.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;"MWEB"===g.xA("INNERTUBE_CLIENT_NAME")&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.j=f;d(f)},function(f){e(f)},{enableHighAccuracy:b,
maximumAge:0,timeout:c})})};
g.k.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);if(null==a?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b};
g.k.createLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);return b};g.k=Aza.prototype;g.k.contains=function(a){return Object.prototype.hasOwnProperty.call(this.j,a)};
g.k.get=function(a){if(this.contains(a))return this.j[a]};
g.k.set=function(a,b){this.j[a]=b};
g.k.On=function(){return Object.keys(this.j)};
g.k.remove=function(a){delete this.j[a]};kG.prototype.getModuleId=function(a){return a.serviceId.getModuleId()};
kG.prototype.get=function(a){a:{var b=this.mappings.get(a.toString());switch(b.type){case "mapping":a=b.value;break a;case "factory":b=b.value();this.mappings.set(a.toString(),{type:"mapping",value:b});a=b;break a;default:a=Ne(b)}}return a};
kG.prototype.registerService=function(a,b){this.mappings.set(a.toString(),{type:"mapping",value:b});return a};
new kG;var O2={},Bza=(O2.WEB_UNPLUGGED="^unplugged/",O2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",O2.WEB_UNPLUGGED_OPS="^unplugged/",O2.WEB_UNPLUGGED_PUBLIC="^unplugged/",O2.WEB_CREATOR="^creator/",O2.WEB_KIDS="^kids/",O2.WEB_EXPERIMENTS="^experiments/",O2.WEB_MUSIC="^music/",O2.WEB_REMIX="^music/",O2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",O2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",O2);Dza.prototype.G=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?$C:c;var d={context:g.jG(a.clickTrackingParams,!1,this.D)};var e=this.B(a);if(e){this.j(d,e,b);var f;b=g.mG(this.C());(e=null==(f=g.V(a.commandMetadata,g.C2))?void 0:f.apiUrl)&&(b=e);f=Tqa(Sqa(b));a=Object.assign({},{command:a},void 0);d={input:f,Uu:Uqa(f),Vp:d,config:a};d.config.hw?d.config.hw.identity=c:d.config.hw={identity:c};return d}g.AE(new g.XB("Error: Failed to create Request from Command.",a))};
g.ha.Object.defineProperties(Dza.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}});
g.y(nG,Dza);g.y(oG,nG);oG.prototype.G=function(){return{input:"/getDatasyncIdsEndpoint",Uu:Uqa("/getDatasyncIdsEndpoint","GET"),Vp:{}}};
oG.prototype.C=function(){return[]};
oG.prototype.B=function(){};
oG.prototype.j=function(){};var Mob={},qAa=(Mob.GET_DATASYNC_IDS=lG(oG),Mob);var P2={},Kza=(P2.auto_search="LATENCY_ACTION_AUTO_SEARCH",P2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",P2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",P2["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",P2.app_startup="LATENCY_ACTION_APP_STARTUP",P2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",P2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",P2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",P2["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",
P2["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",P2["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",P2["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",P2["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",P2["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",P2["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",P2["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",P2["asset.metadata"]=
"LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",P2["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",P2["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",P2["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",P2["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",P2["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",P2["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",P2["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",
P2["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",P2["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",P2["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",P2.browse="LATENCY_ACTION_BROWSE",P2.cast_splash="LATENCY_ACTION_CAST_SPLASH",P2.channels="LATENCY_ACTION_CHANNELS",P2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",P2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",P2["channel.comments"]=
"LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",P2["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",P2["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",P2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",P2["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",P2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",P2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",P2["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",
P2["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",P2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",P2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",P2["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",P2.chips="LATENCY_ACTION_CHIPS",P2.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",P2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",P2["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",
P2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",P2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",P2.embed="LATENCY_ACTION_EMBED",P2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",P2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",P2.explore="LATENCY_ACTION_EXPLORE",P2.favorites="LATENCY_ACTION_FAVORITES",P2.home="LATENCY_ACTION_HOME",P2.inboarding="LATENCY_ACTION_INBOARDING",P2.library="LATENCY_ACTION_LIBRARY",P2.live=
"LATENCY_ACTION_LIVE",P2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",P2.mini_app="LATENCY_ACTION_MINI_APP_PLAY",P2.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",P2.onboarding="LATENCY_ACTION_ONBOARDING",P2.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",P2["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",P2["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",P2["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",P2["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",
P2["owner.asset_groups"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",P2["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",P2["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",P2["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",P2["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",P2["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",P2["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",P2["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",
P2["owner.delivery"]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",P2["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",P2["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",P2["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",P2["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",P2["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",P2["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",P2["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",P2["owner.videos"]=
"LATENCY_ACTION_CREATOR_CMS_VIDEOS",P2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",P2.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",P2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",P2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",P2["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",P2["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",P2["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",P2.prebuffer="LATENCY_ACTION_PREBUFFER",
P2.prefetch="LATENCY_ACTION_PREFETCH",P2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",P2.profile_switcher="LATENCY_ACTION_LOGIN",P2.reel_watch="LATENCY_ACTION_REEL_WATCH",P2.results="LATENCY_ACTION_RESULTS",P2["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",P2.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",P2.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",P2.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",P2.search_ui="LATENCY_ACTION_SEARCH_UI",P2.search_suggest=
"LATENCY_ACTION_SUGGEST",P2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",P2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",P2.seek="LATENCY_ACTION_PLAYER_SEEK",P2.settings="LATENCY_ACTION_SETTINGS",P2.store="LATENCY_ACTION_STORE",P2.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",P2.tenx="LATENCY_ACTION_TENX",P2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",P2.watch="LATENCY_ACTION_WATCH",P2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",P2["watch,watch7"]="LATENCY_ACTION_WATCH",
P2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",P2["watch,watch7ad"]="LATENCY_ACTION_WATCH",P2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",P2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",P2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",P2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",P2["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",P2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",P2["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",P2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",
P2["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",P2["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",P2["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",P2["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",P2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",P2["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",P2["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",P2["video.translations"]=
"LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",P2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",P2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",P2.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",P2.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",P2.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",P2);var X={LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE:269,LATENCY_ACTION_THUMBNAIL_LOAD:42,LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING:179,LATENCY_ACTION_KIDS_PROFILE_SWITCHER:90,LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER:100,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC:46,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR:37,LATENCY_ACTION_SPINNER_DISPLAYED:14,LATENCY_ACTION_PLAYABILITY_CHECK:10,LATENCY_ACTION_PROCESS:9,LATENCY_ACTION_APP_STARTUP:5,LATENCY_ACTION_COSTREAM_JOIN_FLOW:280,LATENCY_ACTION_COSTREAM_INVITE_FLOW:279,
LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER:277,LATENCY_ACTION_MINI_APP_PLAY:249,LATENCY_ACTION_DMA_CONSENT_FLOW:247,LATENCY_ACTION_GEL_FETCH:248,LATENCY_ACTION_GEL_JSPB_SERIALIZE:243,LATENCY_ACTION_GEL_COMPRESSION:215,LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE:204,LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC:203,LATENCY_ACTION_COMMERCE_TRANSACTION:184,LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC:173,LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC:172,LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC:171,LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC:170,
LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC:169,LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC:168,LATENCY_ACTION_GET_OFFERS_RPC:167,LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC:166,LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC:165,LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC:164,LATENCY_ACTION_GET_OFFER_DETAILS_RPC:163,LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC:162,LATENCY_ACTION_GET_TIP_MODULE_RPC:161,LATENCY_ACTION_HANDLE_TRANSACTION_RPC:160,LATENCY_ACTION_COMPLETE_TRANSACTION_RPC:159,LATENCY_ACTION_GET_CART_RPC:158,
LATENCY_ACTION_THUMBNAIL_FETCH:156,LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK:154,LATENCY_ACTION_SHARE_VIDEO:153,LATENCY_ACTION_AD_TO_VIDEO_INT:152,LATENCY_ACTION_ABANDONED_BROWSE:151,LATENCY_ACTION_PLAYER_ROTATION:150,LATENCY_ACTION_GENERIC_WEB_VIEW:183,LATENCY_ACTION_SHOPPING_IN_APP:124,LATENCY_ACTION_PLAYER_ATTESTATION:121,LATENCY_ACTION_PLAYER_SEEK:119,LATENCY_ACTION_SUPER_STICKER_BUY_FLOW:114,LATENCY_ACTION_SHORTS_THUMBNAIL_EDITOR:290,LATENCY_ACTION_DOWNLOADS_DATA_ACCESS:180,LATENCY_ACTION_BLOCKS_PERFORMANCE:148,
LATENCY_ACTION_ASSISTANT_QUERY:138,LATENCY_ACTION_ASSISTANT_SETTINGS:137,LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF:129,LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF:128,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN:244,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE:127,LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION:123,LATENCY_ACTION_NETWORKLESS_PERFORMANCE:122,LATENCY_ACTION_DOWNLOADS_EXPANSION:133,LATENCY_ACTION_ENTITY_TRANSFORM:131,LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER:96,LATENCY_ACTION_EMBEDS_SET_VIDEO:95,
LATENCY_ACTION_SETTINGS:93,LATENCY_ACTION_ABANDONED_STARTUP:81,LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY:80,LATENCY_ACTION_MEDIA_BROWSER_SEARCH:79,LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE:78,LATENCY_ACTION_WHO_IS_WATCHING:77,LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH:76,LATENCY_ACTION_LITE_SWITCH_ACCOUNT:73,LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION:69,LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION:65,LATENCY_ACTION_OFFLINE_STORE_START:61,LATENCY_ACTION_REEL_EDITOR:58,LATENCY_ACTION_CHANNEL_SUBSCRIBE:56,
LATENCY_ACTION_CHANNEL_PREVIEW:55,LATENCY_ACTION_PREFETCH:52,LATENCY_ACTION_ABANDONED_WATCH:45,LATENCY_ACTION_LOAD_COMMENT_REPLIES:26,LATENCY_ACTION_LOAD_COMMENTS:25,LATENCY_ACTION_EDIT_COMMENT:24,LATENCY_ACTION_NEW_COMMENT:23,LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING:19,LATENCY_ACTION_EMBED:18,LATENCY_ACTION_MDX_LAUNCH:15,LATENCY_ACTION_RESOLVE_URL:13,LATENCY_ACTION_CAST_SPLASH:149,LATENCY_ACTION_MDX_CONNECT_TO_SESSION:190,LATENCY_ACTION_MDX_STREAM_TRANSFER:178,LATENCY_ACTION_MDX_CAST:120,
LATENCY_ACTION_MDX_COMMAND:12,LATENCY_ACTION_MOBILE_LIVE_NAV_MDE:231,LATENCY_ACTION_REEL_SELECT_SEGMENT:136,LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD:272,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD:271,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD:270,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE:275,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO:274,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO:273,LATENCY_ACTION_SHORTS_PARSE_VIDEO_METADATA:287,
LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO:278,LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD:267,LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET:251,LATENCY_ACTION_SHORTS_LOAD_PROJECT:234,LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING:229,LATENCY_ACTION_SHORTS_EXTERNAL_SHARE_TRANSCODING:285,LATENCY_ACTION_EDIT_AUDIO_GEN:182,LATENCY_ACTION_UPLOAD_AUDIO_MIXER:147,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION:262,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING:157,LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING:146,
LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK:130,LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD:125,LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD:240,LATENCY_ACTION_SHORTS_VIDEO_INGESTION:155,LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING:264,LATENCY_ACTION_SHORTS_RECOMPOSITION:263,LATENCY_ACTION_SHORTS_GALLERY:107,LATENCY_ACTION_SHORTS_TRIM:105,LATENCY_ACTION_SHORTS_EDIT:104,LATENCY_ACTION_SHORTS_CAMERA:103,LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT:239,LATENCY_ACTION_CREATION_MODES_FETCH_ENDPOINT:286,
LATENCY_ACTION_CREATION_MODES_MODE_SWITCH:236,LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT:235,LATENCY_ACTION_SWITCH_CAMERA:246,LATENCY_ACTION_OPEN_CAMERA:245,LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE:250,LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME:242,LATENCY_ACTION_MEDIA_ENGINE_EXPORT:241,LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA:233,LATENCY_ACTION_PRODUCER_EXPORT_PROJECT:193,LATENCY_ACTION_PRODUCER_EDITOR:192,LATENCY_ACTION_PARENT_TOOLS_DASHBOARD:102,LATENCY_ACTION_PARENT_TOOLS_COLLECTION:101,
LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL:238,LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL:237,LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS:116,LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS:115,LATENCY_ACTION_MUSIC_ALBUM_DETAIL:72,LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL:71,LATENCY_ACTION_STORE:175,LATENCY_ACTION_CHIPS:68,LATENCY_ACTION_SEARCH_ZERO_STATE:67,LATENCY_ACTION_LIVE_PAGINATION:117,LATENCY_ACTION_LIVE:20,LATENCY_ACTION_PREBUFFER:40,LATENCY_ACTION_TENX:39,LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD:289,
LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS:288,LATENCY_ACTION_KIDS_PROFILE_SETTINGS:94,LATENCY_ACTION_KIDS_WATCH_IT_AGAIN:92,LATENCY_ACTION_KIDS_SECRET_CODE:91,LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS:89,LATENCY_ACTION_KIDS_ONBOARDING:88,LATENCY_ACTION_KIDS_VOICE_SEARCH:82,LATENCY_ACTION_KIDS_CURATED_COLLECTION:62,LATENCY_ACTION_KIDS_LIBRARY:53,LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS:38,LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT:219,LATENCY_ACTION_CREATOR_VIDEO_POLICY:217,LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION:74,
LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING:141,LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS:142,LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC:51,LATENCY_ACTION_CREATOR_VIDEO_EDITOR:50,LATENCY_ACTION_CREATOR_VIDEO_EDIT:36,LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT:218,LATENCY_ACTION_CREATOR_VIDEO_COMMENTS:34,LATENCY_ACTION_CREATOR_VIDEO_CLAIMS:216,LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS:33,LATENCY_ACTION_CREATOR_SONG_ANALYTICS:176,LATENCY_ACTION_CREATOR_PROMOTION_LIST:186,LATENCY_ACTION_CREATOR_PROMOTION_EDIT:185,
LATENCY_ACTION_CREATOR_POST_LIST:112,LATENCY_ACTION_CREATOR_POST_EDIT:110,LATENCY_ACTION_CREATOR_POST_COMMENTS:111,LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST:265,LATENCY_ACTION_CREATOR_LIVE_STREAMING:108,LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT:174,LATENCY_ACTION_CREATOR_DIALOG_UPLOADS:86,LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES:87,LATENCY_ACTION_CREATOR_CMS_VIDEOS:202,LATENCY_ACTION_CREATOR_CMS_REPORTS:201,LATENCY_ACTION_CREATOR_CMS_RELEASES:226,LATENCY_ACTION_CREATOR_CMS_POLICIES:225,
LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC:224,LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING:200,LATENCY_ACTION_CREATOR_CMS_LICENSES:223,LATENCY_ACTION_CREATOR_CMS_ISSUES:191,LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES:252,LATENCY_ACTION_CREATOR_CMS_DASHBOARD:199,LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY:198,LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS:197,LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES:261,LATENCY_ACTION_CREATOR_CMS_CHANNELS:196,LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS:222,LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY:253,
LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS:214,LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES:254,LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES:209,LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY:208,LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP:207,LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA:205,LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES:212,LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES:206,LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY:282,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA:258,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS:260,
LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS:259,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS:257,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS:221,LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS:210,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY:256,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP:255,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION:213,LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS:211,LATENCY_ACTION_CREATOR_CMS_ASSETS:195,LATENCY_ACTION_CREATOR_CMS_ART_TRACKS:220,LATENCY_ACTION_CREATOR_CMS_ANALYTICS:194,
LATENCY_ACTION_CREATOR_CMS_ALLOWLIST:227,LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS:32,LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS:48,LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS:139,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT:177,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC:99,LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION:43,LATENCY_ACTION_CREATOR_CHANNEL_EDITING:113,LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD:49,LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT:44,LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS:66,LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS:31,
LATENCY_ACTION_CREATOR_ARTIST_PROFILE:85,LATENCY_ACTION_CREATOR_ARTIST_CONCERTS:84,LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS:83,LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE:140,LATENCY_ACTION_EXPERIMENTAL_WATCH_UI:181,LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS:228,LATENCY_ACTION_STORYBOARD_THUMBNAILS:118,LATENCY_ACTION_SEARCH_THUMBNAILS:59,LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD:54,LATENCY_ACTION_VOICE_ASSISTANT:47,LATENCY_ACTION_SEARCH_UI:35,LATENCY_ACTION_SUGGEST:30,LATENCY_ACTION_AUTO_SEARCH:126,LATENCY_ACTION_PLAYLIST_AGGREGATION:266,
LATENCY_ACTION_DOWNLOADS:98,LATENCY_ACTION_EXPLORE:75,LATENCY_ACTION_VIDEO_LIST:63,LATENCY_ACTION_HOME_RESUME:60,LATENCY_ACTION_SUBSCRIPTIONS_LIST:57,LATENCY_ACTION_FIRST_THUMBNAIL_LOAD:29,LATENCY_ACTION_SUBSCRIPTIONS_FEED:109,LATENCY_ACTION_SUBSCRIPTIONS:28,LATENCY_ACTION_TRENDING:27,LATENCY_ACTION_LIBRARY:21,LATENCY_ACTION_VIDEO_THUMBNAIL:8,LATENCY_ACTION_SHOW_MORE:7,LATENCY_ACTION_VIDEO_PREVIEW:6,LATENCY_ACTION_AD_TO_AD:22,LATENCY_ACTION_VIDEO_TO_AD:17,LATENCY_ACTION_AD_TO_VIDEO:16,LATENCY_ACTION_DIRECT_PLAYBACK:132,
LATENCY_ACTION_NETWORK_INSTRUMENTATION:281,LATENCY_ACTION_IMAGE_LOAD:268,LATENCY_ACTION_PREBUFFER_VIDEO:144,LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_STARTUP:106,LATENCY_ACTION_ELEMENTS_PERFORMANCE:70,LATENCY_ACTION_INFRASTRUCTURE_CONTAINER:276,LATENCY_ACTION_INBOARDING:284,LATENCY_ACTION_FAVORITES:283,LATENCY_ACTION_INLINE_TO_WATCH:232,LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH:230,LATENCY_ACTION_ONBOARDING:135,LATENCY_ACTION_LOGIN:97,LATENCY_ACTION_REEL_WATCH:41,LATENCY_ACTION_WATCH:3,LATENCY_ACTION_RESULTS:2,
LATENCY_ACTION_CHANNELS:4,LATENCY_ACTION_HOME:1,LATENCY_ACTION_BROWSE:11,LATENCY_ACTION_USER_ACTION:189,LATENCY_ACTION_INFRASTRUCTURE:188,LATENCY_ACTION_PAGE_NAVIGATION:187,LATENCY_ACTION_UNKNOWN:0};X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE";X[X.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";X[X.LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING";
X[X.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER";X[X.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER";X[X.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";X[X.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR";X[X.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";X[X.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";
X[X.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS";X[X.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";X[X.LATENCY_ACTION_COSTREAM_JOIN_FLOW]="LATENCY_ACTION_COSTREAM_JOIN_FLOW";X[X.LATENCY_ACTION_COSTREAM_INVITE_FLOW]="LATENCY_ACTION_COSTREAM_INVITE_FLOW";X[X.LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER]="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER";X[X.LATENCY_ACTION_MINI_APP_PLAY]="LATENCY_ACTION_MINI_APP_PLAY";X[X.LATENCY_ACTION_DMA_CONSENT_FLOW]="LATENCY_ACTION_DMA_CONSENT_FLOW";
X[X.LATENCY_ACTION_GEL_FETCH]="LATENCY_ACTION_GEL_FETCH";X[X.LATENCY_ACTION_GEL_JSPB_SERIALIZE]="LATENCY_ACTION_GEL_JSPB_SERIALIZE";X[X.LATENCY_ACTION_GEL_COMPRESSION]="LATENCY_ACTION_GEL_COMPRESSION";X[X.LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE]="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE";X[X.LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC]="LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC";X[X.LATENCY_ACTION_COMMERCE_TRANSACTION]="LATENCY_ACTION_COMMERCE_TRANSACTION";
X[X.LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC]="LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC";X[X.LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC]="LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC";X[X.LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC]="LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC";X[X.LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC]="LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC";X[X.LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC]="LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC";
X[X.LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC]="LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC";X[X.LATENCY_ACTION_GET_OFFERS_RPC]="LATENCY_ACTION_GET_OFFERS_RPC";X[X.LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC";X[X.LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC";X[X.LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC]="LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC";X[X.LATENCY_ACTION_GET_OFFER_DETAILS_RPC]="LATENCY_ACTION_GET_OFFER_DETAILS_RPC";
X[X.LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC]="LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC";X[X.LATENCY_ACTION_GET_TIP_MODULE_RPC]="LATENCY_ACTION_GET_TIP_MODULE_RPC";X[X.LATENCY_ACTION_HANDLE_TRANSACTION_RPC]="LATENCY_ACTION_HANDLE_TRANSACTION_RPC";X[X.LATENCY_ACTION_COMPLETE_TRANSACTION_RPC]="LATENCY_ACTION_COMPLETE_TRANSACTION_RPC";X[X.LATENCY_ACTION_GET_CART_RPC]="LATENCY_ACTION_GET_CART_RPC";X[X.LATENCY_ACTION_THUMBNAIL_FETCH]="LATENCY_ACTION_THUMBNAIL_FETCH";
X[X.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";X[X.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";X[X.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";X[X.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";X[X.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";X[X.LATENCY_ACTION_GENERIC_WEB_VIEW]="LATENCY_ACTION_GENERIC_WEB_VIEW";X[X.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP";
X[X.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";X[X.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";X[X.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";X[X.LATENCY_ACTION_SHORTS_THUMBNAIL_EDITOR]="LATENCY_ACTION_SHORTS_THUMBNAIL_EDITOR";X[X.LATENCY_ACTION_DOWNLOADS_DATA_ACCESS]="LATENCY_ACTION_DOWNLOADS_DATA_ACCESS";X[X.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";X[X.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY";
X[X.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";X[X.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF";X[X.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";X[X.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN";X[X.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";X[X.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION";
X[X.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";X[X.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";X[X.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM";X[X.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";X[X.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";X[X.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";X[X.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP";
X[X.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";X[X.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH";X[X.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";X[X.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";X[X.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";X[X.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT";
X[X.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION";X[X.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";X[X.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";X[X.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";X[X.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE";X[X.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";X[X.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH";
X[X.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH";X[X.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";X[X.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";X[X.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";X[X.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT";X[X.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";X[X.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED";
X[X.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH";X[X.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";X[X.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";X[X.LATENCY_ACTION_MDX_CONNECT_TO_SESSION]="LATENCY_ACTION_MDX_CONNECT_TO_SESSION";X[X.LATENCY_ACTION_MDX_STREAM_TRANSFER]="LATENCY_ACTION_MDX_STREAM_TRANSFER";X[X.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";X[X.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";X[X.LATENCY_ACTION_MOBILE_LIVE_NAV_MDE]="LATENCY_ACTION_MOBILE_LIVE_NAV_MDE";
X[X.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";X[X.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS";X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD";X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD";X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD";
X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE";X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO";X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO";X[X.LATENCY_ACTION_SHORTS_PARSE_VIDEO_METADATA]="LATENCY_ACTION_SHORTS_PARSE_VIDEO_METADATA";X[X.LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO]="LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO";
X[X.LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD]="LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD";X[X.LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET]="LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET";X[X.LATENCY_ACTION_SHORTS_LOAD_PROJECT]="LATENCY_ACTION_SHORTS_LOAD_PROJECT";X[X.LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING]="LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING";X[X.LATENCY_ACTION_SHORTS_EXTERNAL_SHARE_TRANSCODING]="LATENCY_ACTION_SHORTS_EXTERNAL_SHARE_TRANSCODING";
X[X.LATENCY_ACTION_EDIT_AUDIO_GEN]="LATENCY_ACTION_EDIT_AUDIO_GEN";X[X.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER";X[X.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION";X[X.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING";X[X.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";X[X.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";
X[X.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD";X[X.LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD]="LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD";X[X.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";X[X.LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING]="LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING";X[X.LATENCY_ACTION_SHORTS_RECOMPOSITION]="LATENCY_ACTION_SHORTS_RECOMPOSITION";X[X.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";
X[X.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM";X[X.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";X[X.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";X[X.LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT";X[X.LATENCY_ACTION_CREATION_MODES_FETCH_ENDPOINT]="LATENCY_ACTION_CREATION_MODES_FETCH_ENDPOINT";X[X.LATENCY_ACTION_CREATION_MODES_MODE_SWITCH]="LATENCY_ACTION_CREATION_MODES_MODE_SWITCH";
X[X.LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT";X[X.LATENCY_ACTION_SWITCH_CAMERA]="LATENCY_ACTION_SWITCH_CAMERA";X[X.LATENCY_ACTION_OPEN_CAMERA]="LATENCY_ACTION_OPEN_CAMERA";X[X.LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE]="LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE";X[X.LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME]="LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME";X[X.LATENCY_ACTION_MEDIA_ENGINE_EXPORT]="LATENCY_ACTION_MEDIA_ENGINE_EXPORT";
X[X.LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA]="LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA";X[X.LATENCY_ACTION_PRODUCER_EXPORT_PROJECT]="LATENCY_ACTION_PRODUCER_EXPORT_PROJECT";X[X.LATENCY_ACTION_PRODUCER_EDITOR]="LATENCY_ACTION_PRODUCER_EDITOR";X[X.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD";X[X.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";X[X.LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL";
X[X.LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL";X[X.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";X[X.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS";X[X.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";X[X.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";X[X.LATENCY_ACTION_STORE]="LATENCY_ACTION_STORE";
X[X.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";X[X.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE";X[X.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";X[X.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";X[X.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";X[X.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX";X[X.LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD]="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD";X[X.LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS]="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS";
X[X.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";X[X.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";X[X.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";X[X.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS";X[X.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";X[X.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH";
X[X.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";X[X.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";X[X.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";X[X.LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT";X[X.LATENCY_ACTION_CREATOR_VIDEO_POLICY]="LATENCY_ACTION_CREATOR_VIDEO_POLICY";X[X.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";
X[X.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";X[X.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS";X[X.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC";X[X.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";X[X.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";X[X.LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT";
X[X.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";X[X.LATENCY_ACTION_CREATOR_VIDEO_CLAIMS]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS";X[X.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";X[X.LATENCY_ACTION_CREATOR_SONG_ANALYTICS]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS";X[X.LATENCY_ACTION_CREATOR_PROMOTION_LIST]="LATENCY_ACTION_CREATOR_PROMOTION_LIST";X[X.LATENCY_ACTION_CREATOR_PROMOTION_EDIT]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT";
X[X.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST";X[X.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";X[X.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";X[X.LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST";X[X.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";X[X.LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT";
X[X.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";X[X.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES";X[X.LATENCY_ACTION_CREATOR_CMS_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_VIDEOS";X[X.LATENCY_ACTION_CREATOR_CMS_REPORTS]="LATENCY_ACTION_CREATOR_CMS_REPORTS";X[X.LATENCY_ACTION_CREATOR_CMS_RELEASES]="LATENCY_ACTION_CREATOR_CMS_RELEASES";X[X.LATENCY_ACTION_CREATOR_CMS_POLICIES]="LATENCY_ACTION_CREATOR_CMS_POLICIES";
X[X.LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC";X[X.LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING";X[X.LATENCY_ACTION_CREATOR_CMS_LICENSES]="LATENCY_ACTION_CREATOR_CMS_LICENSES";X[X.LATENCY_ACTION_CREATOR_CMS_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ISSUES";X[X.LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES";X[X.LATENCY_ACTION_CREATOR_CMS_DASHBOARD]="LATENCY_ACTION_CREATOR_CMS_DASHBOARD";
X[X.LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY";X[X.LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS";X[X.LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES";X[X.LATENCY_ACTION_CREATOR_CMS_CHANNELS]="LATENCY_ACTION_CREATOR_CMS_CHANNELS";X[X.LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS";X[X.LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY";
X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP";
X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA";
X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS";
X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSETS";
X[X.LATENCY_ACTION_CREATOR_CMS_ART_TRACKS]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS";X[X.LATENCY_ACTION_CREATOR_CMS_ANALYTICS]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS";X[X.LATENCY_ACTION_CREATOR_CMS_ALLOWLIST]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST";X[X.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS";X[X.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS";X[X.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";
X[X.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT";X[X.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";X[X.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION";X[X.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";X[X.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD";X[X.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";
X[X.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";X[X.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";X[X.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE";X[X.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";X[X.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS";X[X.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";
X[X.LATENCY_ACTION_EXPERIMENTAL_WATCH_UI]="LATENCY_ACTION_EXPERIMENTAL_WATCH_UI";X[X.LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS]="LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS";X[X.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";X[X.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";X[X.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD";X[X.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";
X[X.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";X[X.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST";X[X.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";X[X.LATENCY_ACTION_PLAYLIST_AGGREGATION]="LATENCY_ACTION_PLAYLIST_AGGREGATION";X[X.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";X[X.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";X[X.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST";X[X.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME";
X[X.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";X[X.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD";X[X.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";X[X.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";X[X.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";X[X.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";X[X.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL";
X[X.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";X[X.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";X[X.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";X[X.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";X[X.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";X[X.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";X[X.LATENCY_ACTION_NETWORK_INSTRUMENTATION]="LATENCY_ACTION_NETWORK_INSTRUMENTATION";X[X.LATENCY_ACTION_IMAGE_LOAD]="LATENCY_ACTION_IMAGE_LOAD";
X[X.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO";X[X.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";X[X.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";X[X.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";X[X.LATENCY_ACTION_INFRASTRUCTURE_CONTAINER]="LATENCY_ACTION_INFRASTRUCTURE_CONTAINER";X[X.LATENCY_ACTION_INBOARDING]="LATENCY_ACTION_INBOARDING";X[X.LATENCY_ACTION_FAVORITES]="LATENCY_ACTION_FAVORITES";
X[X.LATENCY_ACTION_INLINE_TO_WATCH]="LATENCY_ACTION_INLINE_TO_WATCH";X[X.LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH]="LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH";X[X.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";X[X.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN";X[X.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";X[X.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";X[X.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";X[X.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";X[X.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME";
X[X.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";X[X.LATENCY_ACTION_USER_ACTION]="LATENCY_ACTION_USER_ACTION";X[X.LATENCY_ACTION_INFRASTRUCTURE]="LATENCY_ACTION_INFRASTRUCTURE";X[X.LATENCY_ACTION_PAGE_NAVIGATION]="LATENCY_ACTION_PAGE_NAVIGATION";X[X.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";var FG={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};FG[FG.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";FG[FG.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";
FG[FG.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";var GG={CONN_INVALID:31,CONN_WIRED:30,CONN_CELLULAR_5G_NSA:12,CONN_CELLULAR_5G_SA:11,CONN_WIFI_METERED:10,CONN_CELLULAR_5G:9,CONN_DISCO:8,CONN_CELLULAR_UNKNOWN:7,CONN_CELLULAR_4G:6,CONN_CELLULAR_3G:5,CONN_CELLULAR_2G:4,CONN_WIFI:3,CONN_NONE:2,CONN_UNKNOWN:1,CONN_DEFAULT:0};GG[GG.CONN_INVALID]="CONN_INVALID";GG[GG.CONN_WIRED]="CONN_WIRED";GG[GG.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";GG[GG.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";
GG[GG.CONN_WIFI_METERED]="CONN_WIFI_METERED";GG[GG.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";GG[GG.CONN_DISCO]="CONN_DISCO";GG[GG.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";GG[GG.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";GG[GG.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";GG[GG.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";GG[GG.CONN_WIFI]="CONN_WIFI";GG[GG.CONN_NONE]="CONN_NONE";GG[GG.CONN_UNKNOWN]="CONN_UNKNOWN";GG[GG.CONN_DEFAULT]="CONN_DEFAULT";
var HG={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};HG[HG.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA";
HG[HG.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";HG[HG.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";HG[HG.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";HG[HG.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";HG[HG.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";HG[HG.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN";
HG[HG.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";HG[HG.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";HG[HG.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";HG[HG.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";HG[HG.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";HG[HG.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";HG[HG.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";HG[HG.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B";
HG[HG.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";HG[HG.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";HG[HG.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";HG[HG.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";HG[HG.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";HG[HG.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";HG[HG.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";HG[HG.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA";
HG[HG.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";HG[HG.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";HG[HG.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";HG[HG.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var MG={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};
MG[MG.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";MG[MG.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";MG[MG.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";MG[MG.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";MG[MG.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";MG[MG.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";MG[MG.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";MG[MG.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN";
var NG={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};NG[NG.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";NG[NG.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";NG[NG.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";NG[NG.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var OG={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0};
OG[OG.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";OG[OG.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var PG={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};PG[PG.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";PG[PG.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";PG[PG.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP";
PG[PG.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";PG[PG.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";PG[PG.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var QG={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};QG[QG.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";QG[QG.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";QG[QG.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";QG[QG.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED";
var RG={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};RG[RG.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";RG[RG.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";RG[RG.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var SG={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};SG[SG.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN";
SG[SG.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";SG[SG.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var Oza="actionVisualElement spinnerInfo cacheAttempts resourceInfo preloadThumbnailInfo startupEdgeCaseInfo startupInfo renderCounters playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo imageLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo webViewInfo prefetchInfo accelerationSession commerceInfo inlineToWatchInfo mediaEngineMetadata miniAppInfo dynamicAssetFetchInfo webInfo tvInfo kabukiInfo mwebInfo musicInfo transcodingContext creationModesContext cameraMetadata producerMediaAssetMetadata videoMetadataParsingContext".split(" ");g.y(Lza,aD);var eAa=new bD("aft-recorded",Lza);var yG=g.Ta.ytLoggingLatencyUsageStats_||{};g.Ua("ytLoggingLatencyUsageStats_",yG);wG.prototype.tick=function(a,b,c,d){zG(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.TA("web_csi_via_jspb")?(d=new Spa,Q(d,1,a),Q(d,2,b),a=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA,Jk(a,Spa,5,tE,d),sE("latencyActionTicked",a,c)):g.iC("latencyActionTicked",{tickName:a,clientActionNonce:b},c))};
wG.prototype.info=function(a,b,c){var d=Object.keys(a).join("");zG(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.iC("latencyActionInfo",a,{cttAuthInfo:c}))};
wG.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));zG(this,"info_"+d+"_"+b)||(Q(a,2,b),b={cttAuthInfo:c},c=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA,Jk(c,iA,7,tE,a),sE("latencyActionInfo",c,b))};
wG.prototype.span=function(a,b,c){var d=Object.keys(a).join("");zG(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.iC("latencyActionSpan",a,{cttAuthInfo:c}))};var Q2=window,AG=Q2.performance||Q2.mozPerformance||Q2.msPerformance||Q2.webkitPerformance||new Mza;var dAa=!1,Qza=!1,Zza={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'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"},fAa=(0,g.gb)(AG.clearResourceTimings||AG.webkitClearResourceTimings||AG.mozClearResourceTimings||AG.msClearResourceTimings||AG.oClearResourceTimings||g.Jd,AG);var Nob=window;Nob.ytcsi&&(Nob.ytcsi.infoGel=g.ZG,Nob.ytcsi.tick=YG);var wAa="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD".split(" "),yAa=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];var CAa=new RD("INNERTUBE_TRANSPORT_TOKEN");g.y(fH,nG);fH.prototype.C=function(){return Aob};
fH.prototype.B=function(a){return g.V(a,lob)||void 0};
fH.prototype.j=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.ha.Object.defineProperties(fH.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.y(gH,nG);gH.prototype.C=function(){return Bob};
gH.prototype.B=function(a){return g.V(a,job)||void 0};
gH.prototype.j=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
g.ha.Object.defineProperties(gH.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.y(hH,nG);hH.prototype.C=function(){return xob};
hH.prototype.B=function(a){return g.V(a,Gmb)||void 0};
hH.prototype.j=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.ha.Object.defineProperties(hH.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.y(iH,nG);iH.prototype.C=function(){return yob};
iH.prototype.B=function(a){return g.V(a,iob)||void 0};
iH.prototype.j=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.y(jH,nG);jH.prototype.C=function(){return zob};
jH.prototype.B=function(a){return g.V(a,gob)||void 0};
jH.prototype.j=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.y(kH,nG);kH.prototype.C=function(){return wob};
kH.prototype.B=function(a){return g.V(a,Wnb)};
kH.prototype.j=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};g.y(g.lH,g.XB);var Oob=new RD("NETWORK_SLI_TOKEN");mH.prototype.fetch=function(a,b,c){var d=this,e;return g.G(function(f){e=zAa(d,a,b);return f.return(fetch(e).then(function(h){return d.handleResponse(h,c)}).catch(function(h){g.BE(h);
if((null==c?0:c.wr)&&h instanceof g.lH&&1===h.errorType)return Promise.reject(h)}))})};
mH.prototype.handleResponse=function(a,b){var c=a.text().then(function(d){if((null==b?0:b.f$)&&a.ok)return Cea(b.f$,d);d=d.replace(")]}'","");if((null==b?0:b.wr)&&d)try{var e=JSON.parse(d)}catch(h){throw new g.lH(1,"JSON parsing failed after fetch");}var f;return null!=(f=e)?f:JSON.parse(d)});
a.redirected||a.ok?this.j&&this.j.success():(this.j&&this.j.kpb(),c=c.then(function(d){g.BE(new g.XB("Error: API fetch failed",a.status,a.url,d));return Object.assign({},d,{errorMetadata:{status:a.status}})}));
return c};
mH[TD]=[new SD(Oob)];var BAa=new RD("NETWORK_MANAGER_TOKEN");var AAa;var vOa={ila:0,jla:1,hla:2,ela:3,dla:4,fla:5,gla:6};var EAa=[],DAa=!1;qH.prototype.D=function(){var a=this;return g.G(function(b){return 1==b.j?g.z(b,Promise.race([a.j,null]),2):b.return(!!b.B)})};
qH.prototype.C=function(a,b,c){var d=this,e,f,h;return g.G(function(l){null===d.j&&KAa(d,pH(d,0));e=!1;f={};h=function(){var m,n,p;return g.G(function(q){switch(q.j){case 1:return g.z(q,d.j,2);case 2:m=q.B;f.challenge=m.challenge;if(!m.Qq){"c1a"in m.jr&&(f.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");q.Ia(3);break}n=Object.assign({},{c:m.challenge,e:a},b);g.Ba(q,4);e=!0;return g.z(q,m.Qq.snapshot({Ct:n}),6);case 6:(p=q.B)?f.webResponse=p:f.error="ATTESTATION_ERROR_VM_NO_RESPONSE";g.Ca(q,3);break;
case 4:g.Da(q),f.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if("ENGAGEMENT_TYPE_PLAYBACK"===a){var r=m.jr,t={};r.c6a&&(t.reportingStatus=String(Number(r.c)^oH()));r.c6b&&(t.broadSpectrumDetectionResult=String(Number(r.c)^Number(g.xA("CATSTAT",0))));f.adblockReporting=t}return q.return(f)}})};
return l.return(Promise.race([h(),LAa(c,function(){var m=Object.assign({},f);e&&(m.error="ATTESTATION_ERROR_VM_TIMEOUT");return m})]))})};var OAa=["APP_STATE","PI"];g.k=UAa.prototype;g.k.initialize=function(a,b,c){if(a.program){var d,e=null!=(d=a.interpreterUrl)?d:null;if(a.interpreterSafeScript)d=rma(a.interpreterSafeScript);else{var f;d=null!=(f=a.interpreterScript)?f:null}a.interpreterSafeUrl&&(e=ax(a.interpreterSafeUrl).toString());WAa(this,d,e,a.program,b,c)}else g.BE(Error("Cannot initialize botguard without program"))};
g.k.isInitialized=function(){return this.gU()};
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.gU()?this.j3({Ct:a}):null};
g.k.dispose=function(){this.fT(null);this.Hc(8)};
g.k.gU=function(){return!!this.Qq};
g.k.j3=function(a){return this.Qq.Q1(a)};
g.k.fT=function(a){g.vb(this.Qq);this.Qq=a};
g.k.Hc=function(a){this.state=a};g.y(rH,UAa);rH.prototype.fT=function(a){var b;null==(b=XAa())||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.Q1.bind(a)},g.Ua("yt.abuse.playerAttLoader",b),g.Ua("yt.abuse.playerAttLoaderRun",function(c){return a.snapshot(c)})):(g.Ua("yt.abuse.playerAttLoader",null),g.Ua("yt.abuse.playerAttLoaderRun",null))};
rH.prototype.gU=function(){return!!XAa()};
rH.prototype.j3=function(a){return XAa().bgvmc(a)};YAa.prototype.Cr=function(){return"crossDeviceProgressCommand"};
YAa.prototype.Tt=function(a){if(a.crossDevicePings){var b=[];a=g.u(a.crossDevicePings);for(var c=a.next();!c.done;c=a.next())b.push({baseUrl:c.value.baseUrl});g.iC("crossDeviceNotificationTransfer",{crossDevicePings:b})}};$Aa.prototype.Cr=function(){return"muteAdEndpoint"};
$Aa.prototype.Tt=function(a,b){switch(a.type){case "SKIP":ZAa(this.ll,this.Bo,b)}};aBa.prototype.Cr=function(){return"openPopupAction"};
aBa.prototype.Tt=function(){};bBa.prototype.Cr=function(){return"pingingEndpoint"};
bBa.prototype.Tt=function(){};var iBa={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.y(dBa,g.I);var Gib={pfa:"FINAL",x3:"AD_BREAK_LENGTH",zka:"AD_CPN",Gka:"AH",Kka:"AD_MT",Nka:"ASR",Rka:"AW",Lua:"NM",Mua:"NX",Nua:"NY",M3:"CONN",Yva:"CPN",Cya:"DV_VIEWABILITY",tza:"ERRORCODE",Dza:"ERROR_MSG",Gza:"EI",e4:"GOOGLE_VIEWABILITY",AJa:"IAS_VIEWABILITY",NMa:"LACT",m6:"LIVE_TARGETING_CONTEXT",MSa:"I_X",NSa:"I_Y",rVa:"MT",GVa:"MIDROLL_POS",HVa:"MIDROLL_POS_MS",iWa:"MOAT_INIT",jWa:"MOAT_VIEWABILITY",v6:"P_H",L2a:"PV_H",M2a:"PV_W",w6:"P_W",h3a:"TRIGGER_TYPE",U6a:"SDKV",A6:"SLOT_POS",meb:"SURVEY_LOCAL_TIME_EPOCH_S",
leb:"SURVEY_ELAPSED_MS",K6:"VIS",Nlb:"VIEWABILITY",Ulb:"VED",L6:"VOL",Xlb:"WT",M6:"YT_ERROR_CODE"};jBa.prototype.Cr=function(){return"urlEndpoint"};
jBa.prototype.Tt=function(a,b,c){var d=this.Oa.get(),e=IJa(d.B.get(),b);e?b=tJ(d,zib(e),e,void 0,void 0,c):(KF("Trying to ping from an unknown layout",void 0,void 0,{layoutId:b}),b={});b=Object.assign({},b);EM(this.j,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(c=this.df.Xd(2))&&(b.AD_CPN=c.clientPlaybackNonce);b=g.cv(a.url,b);g.gG(b,void 0,void 0,void 0,"ATTRIBUTION_SRC_MODE_LABEL_CHROME"===a.attributionSrcMode)};uH.prototype.get=function(){return this.value};
g.y(vH,uH);vH.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.y(wH,uH);wH.prototype.getType=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"};
g.y(kBa,uH);kBa.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.y(lBa,uH);lBa.prototype.getType=function(){return"metadata_type_ads_engagement_panel_layout_view_model"};
g.y(xH,uH);xH.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.y(yH,uH);yH.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.y(mBa,uH);mBa.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.y(nBa,uH);nBa.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.y(oBa,uH);oBa.prototype.getType=function(){return"metadata_type_banner_image_layout_view_model"};
g.y(pBa,uH);pBa.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.y(qBa,uH);qBa.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.y(rBa,uH);rBa.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.y(zH,uH);zH.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.y(AH,uH);AH.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.y(BH,uH);BH.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"};
g.y(CH,uH);CH.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
g.y(DH,uH);DH.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.y(EH,uH);EH.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.y(FH,uH);FH.prototype.getType=function(){return"metadata_type_content_cpn"};
g.y(GH,uH);GH.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.y(HH,uH);HH.prototype.getType=function(){return"metadata_type_player_overlay_layout_renderer"};
g.y(IH,uH);IH.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.y(JH,uH);JH.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
g.y(sBa,uH);sBa.prototype.getType=function(){return"metadata_type_media_associated_in_player_slot"};
g.y(tBa,uH);tBa.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.y(KH,uH);KH.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.y(uBa,uH);uBa.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.y(vBa,uH);vBa.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.y(wBa,uH);wBa.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.y(xBa,uH);xBa.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.y(LH,uH);LH.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.y(MH,uH);MH.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.y(NH,uH);NH.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"};
g.y(OH,uH);OH.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.y(yBa,uH);yBa.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.y(PH,uH);PH.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.y(QH,uH);QH.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.y(RH,uH);RH.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.y(zBa,uH);zBa.prototype.getType=function(){return"metadata_type_cue_point"};
g.y(SH,uH);SH.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.y(TH,uH);TH.prototype.getType=function(){return"metadata_type_player_vars"};
g.y(UH,uH);UH.prototype.getType=function(){return"metadata_type_preload_player_vars"};
g.y(VH,uH);VH.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.y(WH,uH);WH.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.y(XH,uH);XH.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.y(YH,uH);YH.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.y(ZH,uH);ZH.prototype.getType=function(){return"metadata_type_dai"};
g.y($H,uH);$H.prototype.getType=function(){return"metadata_type_ad_intro"};
g.y(ABa,uH);ABa.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.y(aI,uH);aI.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.y(bI,uH);bI.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.y(cI,uH);cI.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.y(BBa,uH);BBa.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.y(dI,uH);dI.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.y(eI,uH);eI.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.y(fI,uH);fI.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.y(gI,uH);gI.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.y(CBa,uH);CBa.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
g.y(hI,uH);hI.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.y(iI,uH);iI.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.y(DBa,uH);DBa.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.y(jI,uH);jI.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};
g.y(EBa,uH);EBa.prototype.getType=function(){return"metadata_type_active_view_identifier"};
g.y(FBa,uH);FBa.prototype.getType=function(){return"metadata_type_ssdai_ads_config"};
g.y(kI,uH);kI.prototype.getType=function(){return"metadata_type_eligible_for_ssap"};
g.y(GBa,uH);GBa.prototype.getType=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"};
g.y(lI,uH);lI.prototype.getType=function(){return"metadata_type_player_bytes_slot_metadata"};
g.y(HBa,uH);HBa.prototype.getType=function(){return"metadata_type_high_ccv_prefetch_METADATA"};var aCa=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"]]);var lCa=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.y(pI,xb);g.y(qI,xb);new Promise(function(){});var LBa=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"]]),JBa=new Map([["normal",{uy:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Gy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{uy:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Gy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{uy:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Gy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{uy:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Gy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{uy:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Gy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{uy:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Gy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{uy:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",Gy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.y(RBa,g.I);g.k=RBa.prototype;g.k.FP=function(a,b){return this.j.FP(a,b)};
g.k.Qg=function(a,b){this.Qb.fI("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b);for(var c=g.u(this.B),d=c.next();!d.done;d=c.next())d.value.Qg(a,b)};
g.k.xf=function(a){if(CI(this.j,a)){this.Qb.Pj("ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.xf(a);for(var b=g.u(this.B),c=b.next();!c.done;c=b.next())c.value.xf(a);UBa(this,a)}};
g.k.yf=function(a){if(CI(this.j,a)){this.Qb.Pj("ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.yf(a);for(var b=g.u(this.B),c=b.next();!c.done;c=b.next())c.value.yf(a);CI(this.j,a)&&DI(this.j,a).G&&BI(this,a,!1)}};
g.k.gL=function(a){this.Qb.Pj("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);CI(this.j,a)&&(this.j.gL(a),BI(this,a,!1))};
g.k.uc=function(a,b){if(CI(this.j,a)){this.Qb.Rh("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.u(this.B),d=c.next();!d.done;d=c.next())d.value.uc(a,b)}};
g.k.yc=function(a,b,c){if(CI(this.j,a)){this.Qb.Rh(KBa(c),a,b);this.j.yc(a,b);for(var d=g.u(this.B),e=d.next();!e.done;e=d.next())e.value.yc(a,b,c);(c=MI(this.j,a))&&b.layoutId===c.layoutId&&hCa(this,a,!1)}};
g.k.kf=function(a,b,c,d){c.Tk&&d?(KF(c,a,b,void 0,c.gw),this.Qb.Vl(d,c.Tk,a,b)):KF("adsClientErrorMessage is missing.",a,b);BI(this,a,!0)};
g.k.va=function(){var a=kCa(this.j);a=g.u(a);for(var b=a.next();!b.done;b=a.next())BI(this,b.value,!1);g.I.prototype.va.call(this)};
g.k.pg=function(a,b){this.Qb.Rh("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",a,b);this.Qb.Rh("ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",a,b);for(var c=g.u(this.B),d=c.next();!d.done;d=c.next())d=d.value,b&&d.pg(a,b)};iCa.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.y(jCa,g.I);g.k=jCa.prototype;g.k.FP=function(a,b){b=LI(this,a+"_"+b);a=[];b=g.u(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
g.k.Rg=function(a){a=DI(this,a);"not_scheduled"!==a.j&&NI(a.slot,a.j,"onSlotScheduled");a.j="scheduled"};
g.k.tE=function(a){a=DI(this,a);a.D="fill_requested";a.N.tE()};
g.k.xf=function(a){a=DI(this,a);"enter_requested"!==a.j&&NI(a.slot,a.j,"onSlotEntered");a.j="entered"};
g.k.gL=function(a){DI(this,a).D="fill_canceled"};
g.k.yf=function(a){a=DI(this,a);"exit_requested"!==a.j&&NI(a.slot,a.j,"onSlotExited");a.j="scheduled"};
g.k.yc=function(a,b){a=DI(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.j&&NI(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.y(pCa,g.I);pCa.prototype.get=function(){this.Na()&&KF("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.j());return this.instance};g.y(rCa,g.I);rCa.prototype.C=function(){return this.j};RI.prototype.executeCommand=function(a,b){tH(this.j(),a,b)};UI.prototype.addListener=function(a){this.listeners.add(a)};
UI.prototype.removeListener=function(a){this.listeners.delete(a)};var R2={},bJ=(R2.AD_MARKER="ytp-ad-progress",R2.CHAPTER_MARKER="ytp-chapter-marker",R2.TIME_MARKER="ytp-time-marker",R2);var yYa=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/)"),zCa=RegExp("^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?://(([-\\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]+)?/)"),
zYa=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),HCa=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)|$))"),
FCa=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)|$))"),CCa=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((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)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-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)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/|^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/)"),
AYa=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),DCa=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)"),BCa=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((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)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-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)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/|^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-gyz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"),
QUa=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)"),
OUa=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://(books|localhost|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.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|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|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)"),
PUa=RegExp("^https?://([A-Za-z0-9-]{1,63}\\.)*(stadia\\.google\\.com)[.]?(:[0-9]+)?(/|$)"),Pob=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://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|localhost|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?staging\\.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$)"),
Qob=RegExp("^(https://stadia\\.google\\.com)$");var yCa=!1;g.cJ.prototype.getId=function(){return this.id};
g.cJ.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+LCa(this.start)+", "+LCa(this.end)+"]"};
g.cJ.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 KCa=1;g.cJ.prototype.getId=g.cJ.prototype.getId;OCa.prototype.tE=function(){var a=this,b=0;wCa(this.j,function(){var c=sI(a.slot.Ba,"metadata_type_ad_break_request_data");b=Date.now();tL(a.Oa.get(),"abrs","ct."+b+";cmt."+a.Ea.get().getCurrentTimeSec(1,!1)+";sid."+a.slot.slotId+";");return a.B.get().fetch({Y2:c.getAdBreakUrl,sX:new g.cJ(c.uS,c.tS),zw:sI(a.slot.Ba,"metadata_type_cue_point"),cueProcessedMs:c.cueProcessedMs})},function(){PCa(a)},function(c){var d=Date.now()-b;
tL(a.Oa.get(),"abrr","ct."+(new Date).getTime()+";cmt."+a.Ea.get().getCurrentTimeSec(1,!1)+";l."+d.toString()+";sid."+a.slot.slotId+";");d=c.dw;2<=d.length&&c.ssdaiAdsConfig&&KF("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)})||PCa(a)})};
OCa.prototype.iO=function(){xCa(this.j)};QCa.prototype.tE=function(){var a=this;wCa(this.j,function(){var b=sI(a.slot.Ba,"metadata_type_ad_break_request_data");return a.B.get().fetch({Y2:b.getAdBreakUrl,sX:new g.cJ(b.uS,b.tS)})})};
QCa.prototype.iO=function(){xCa(this.j)};RCa.prototype.tE=function(){var a=this.slot.Ba,b,c=null!=(b=this.slot.fulfilledLayout)?b:sI(a,"metadata_type_fulfilled_layout");VBa(this.callback,this.slot,c)};
RCa.prototype.iO=function(){SBa(this.callback,this.slot,new qI("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")};TCa.prototype.build=function(a,b){return b.fulfilledLayout||SCa(b,{Ld:["metadata_type_fulfilled_layout"]})?new RCa(a,b):this.C(a,b)};g.y(fJ,TCa);
fJ.prototype.C=function(a,b){if(SCa(b,{Ld:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new OCa(a,b,this.j,this.B,this.Ne,this.Aa,this.Oa,this.Ea,this.zc);if(SCa(b,{Ld:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new QCa(a,b,this.j,this.B,this.Ne,this.Aa);throw new qI("Unsupported slot with type: "+b.slotType+" and client metadata: "+tI(b.Ba)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.y(gJ,TCa);gJ.prototype.C=function(a,b){throw new qI("Unsupported slot with type: "+b.slotType+" and client metadata: "+tI(b.Ba)+" in DefaultFulfillmentAdapterFactory.");};g.k=UCa.prototype;g.k.Xb=function(){return this.slot};
g.k.Xa=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.kf(this.slot,a,new pI("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=sI(a.Ba,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.slotType?(this.callback.uc(this.slot,a),uHa(this.B,this.slot,
b)):KF("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,a)}};
g.k.kd=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.kf(this.slot,a,new pI("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.yc(this.slot,a,b),WCa(this))};g.y(kJ,g.UE);g.k=kJ.prototype;g.k.Xb=function(){return this.B.slot};
g.k.Xa=function(){return this.B.layout};
g.k.init=function(){this.C.get().addListener(this)};
g.k.release=function(){this.C.get().removeListener(this);this.dispose()};
g.k.RP=function(){};
g.k.PP=function(){};
g.k.OP=function(){};
g.k.RJ=function(){};
g.k.startRendering=function(a){var b=this;ZCa(this.B,a,function(){return void b.gM()})};
g.k.gM=function(){this.C.get().gM(this.j)};
g.k.kd=function(a,b){var c=this;ZCa(this.B,a,function(){var d=c.C.get();Pib(d,c.j,3);c.j=[];c.callback.yc(c.slot,a,b)})};
g.k.va=function(){this.C.Na()||this.C.get().removeListener(this);g.UE.prototype.va.call(this)};
g.ha.Object.defineProperties(kJ.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.B.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.B.layout}}});rJ.prototype.Oh=function(a,b){b=void 0===b?!1:b;var c=(this.C.get(a)||[]).concat();if(b=b&&$Ca(a)){var d=this.C.get(b);d&&c.push.apply(c,g.qa(d))}aDa(this,a,c);this.j.add(a);b&&this.j.add(b)};
rJ.prototype.Ub=function(a,b){b=void 0===b?!1:b;if(!this.j.has(a)){var c=b&&$Ca(a);c&&(b=!this.j.has(c));this.Oh(a,b)}};g.y(eDa,TE);g.y(fDa,kJ);g.k=fDa.prototype;g.k.hg=function(a,b){nJ("ads-engagement-panel-layout",a,this.K.get().gj,this.Oa.get(),this.D,this.G,this.Xb(),this.Xa(),b)};
g.k.startRendering=function(a){mJ(this.Za,this.Xb(),this.Xa(),g.V(this.Xa().renderingContent,UGa),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(b,c,d,e,f){return new eDa(b,c,d,e,f)},this.j);
kJ.prototype.startRendering.call(this,a)};
g.k.uc=function(a,b){this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Gi():KF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.yc=function(){};
g.k.Rg=function(){};
g.k.Nh=function(){};
g.k.Kh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Lh=function(){};
g.k.Mh=function(){};
g.k.kh=function(){};
g.k.pg=function(){};
g.k.Qg=function(){};
g.k.va=function(){AI(this.Yb(),this);kJ.prototype.va.call(this)};g.y(hDa,TE);g.y(iDa,kJ);g.k=iDa.prototype;g.k.hg=function(a,b){nJ("banner-image",a,this.K.get().gj,this.Oa.get(),this.D,this.G,this.Xb(),this.Xa(),b)};
g.k.startRendering=function(a){mJ(this.Za,this.Xb(),this.Xa(),g.V(this.Xa().renderingContent,SGa),this.callback,"metadata_type_banner_image_layout_view_model",function(b,c,d,e,f){return new hDa(b,c,d,e,f)},this.j);
kJ.prototype.startRendering.call(this,a)};
g.k.uc=function(a,b){this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Gi():KF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.yc=function(){};
g.k.Rg=function(){};
g.k.Nh=function(){};
g.k.Kh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Lh=function(){};
g.k.Mh=function(){};
g.k.kh=function(){};
g.k.pg=function(){};
g.k.Qg=function(){};
g.k.va=function(){AI(this.Yb(),this);kJ.prototype.va.call(this)};g.y(kDa,TE);g.y(lDa,kJ);g.k=lDa.prototype;g.k.hg=function(a,b){nJ("action-companion",a,this.K.get().gj,this.Oa.get(),this.D,this.G,this.Xb(),this.Xa(),b)};
g.k.startRendering=function(a){mJ(this.Za,this.Xb(),this.Xa(),g.V(this.Xa().renderingContent,aM),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new kDa(b,c,d,e,f)},this.j);
kJ.prototype.startRendering.call(this,a)};
g.k.uc=function(a,b){b.layoutId===this.layout.layoutId?this.Za.Ub("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Gi():KF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.yc=function(){};
g.k.Rg=function(){};
g.k.Nh=function(){};
g.k.Kh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Lh=function(){};
g.k.Mh=function(){};
g.k.kh=function(){};
g.k.pg=function(){};
g.k.Qg=function(){};
g.k.va=function(){AI(this.Yb(),this);kJ.prototype.va.call(this)};g.y(nDa,TE);g.y(oDa,kJ);g.k=oDa.prototype;g.k.hg=function(a,b){nJ("image-companion",a,this.K.get().gj,this.Oa.get(),this.D,this.G,this.Xb(),this.Xa(),b)};
g.k.startRendering=function(a){mJ(this.Za,this.Xb(),this.Xa(),g.V(this.Xa().renderingContent,bM),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new nDa(b,c,d,e,f)},this.j);
kJ.prototype.startRendering.call(this,a)};
g.k.uc=function(a,b){b.layoutId===this.layout.layoutId?this.Za.Ub("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Gi():KF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.yc=function(){};
g.k.Rg=function(){};
g.k.Nh=function(){};
g.k.Kh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Lh=function(){};
g.k.Mh=function(){};
g.k.kh=function(){};
g.k.pg=function(){};
g.k.Qg=function(){};
g.k.va=function(){AI(this.Yb(),this);kJ.prototype.va.call(this)};g.y(qDa,TE);g.y(rDa,kJ);g.k=rDa.prototype;g.k.hg=function(a,b){nJ("shopping-companion",a,this.K.get().gj,this.Oa.get(),this.D,this.G,this.Xb(),this.Xa(),b)};
g.k.startRendering=function(a){mJ(this.Za,this.Xb(),this.Xa(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new qDa(b,c,d,e,f)},this.j);
kJ.prototype.startRendering.call(this,a)};
g.k.uc=function(a,b){b.layoutId===this.layout.layoutId?this.Za.Ub("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Gi():KF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.yc=function(){};
g.k.Rg=function(){};
g.k.Nh=function(){};
g.k.Kh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Lh=function(){};
g.k.Mh=function(){};
g.k.kh=function(){};
g.k.pg=function(){};
g.k.Qg=function(){};
g.k.va=function(){AI(this.Yb(),this);kJ.prototype.va.call(this)};g.y(xDa,kJ);g.k=xDa.prototype;g.k.startRendering=function(a){mJ(this.Za,this.Xb(),this.Xa(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new kDa(b,c,d,e,f)},this.j);
kJ.prototype.startRendering.call(this,a)};
g.k.uc=function(){};
g.k.yc=function(){};
g.k.Rg=function(){};
g.k.Nh=function(){};
g.k.Kh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Lh=function(){};
g.k.Mh=function(){};
g.k.kh=function(){};
g.k.pg=function(){};
g.k.Qg=function(){};
g.k.va=function(){AI(this.Yb(),this);kJ.prototype.va.call(this)};
g.k.hg=function(){};g.k=zDa.prototype;g.k.Xb=function(){return this.slot};
g.k.Xa=function(){return this.layout};
g.k.init=function(){this.Ea.get().addListener(this);this.Ea.get().aE.push(this);var a=sI(this.layout.Ba,"metadata_type_video_length_seconds"),b=sI(this.layout.Ba,"metadata_type_active_view_traffic_type");oJ(this.layout.Db)&&o1(this.Aa.get())&&t1(this.ub.get(),this.layout.layoutId,{Ys:b,GH:a,listener:this})};
g.k.release=function(){this.Ea.get().removeListener(this);Jib(this.Ea.get(),this);oJ(this.layout.Db)&&o1(this.Aa.get())&&u1(this.ub.get(),this.layout.layoutId)};
g.k.startRendering=function(a){this.callback.uc(this.slot,a)};
g.k.kd=function(a,b){kib(this.Aa.get())&&!this.j&&(this.Za.Ub("abandon"),this.j=!0);this.callback.yc(this.slot,a,b)};
g.k.Cj=function(a){switch(a.id){case "part2viewed":this.Za.Ub("start");o1(this.Aa.get())&&this.Za.Ub("impression");break;case "videoplaytime25":this.Za.Ub("first_quartile");break;case "videoplaytime50":this.Za.Ub("midpoint");break;case "videoplaytime75":this.Za.Ub("third_quartile");break;case "videoplaytime100":kib(this.Aa.get())?this.j||(this.Za.Ub("complete"),this.j=!0):this.Za.Ub("complete");wJ(this.Za)&&uJ(this.Za,Infinity,!0);break;case "engagedview":wJ(this.Za)||this.Za.Ub("progress");break;
case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:KF("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.Zi=function(){};
g.k.lh=function(){};
g.k.Dj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.ag=function(){};
g.k.Ii=function(){};
g.k.qR=function(a){wJ(this.Za)&&uJ(this.Za,1E3*a,!1);0<a&&!o1(this.Aa.get())&&this.Za.Ub("impression")};
g.k.Fj=function(){};
g.k.Jx=function(){this.Za.Ub("active_view_measurable")};
g.k.Kx=function(){this.Za.Ub("active_view_viewable")};
g.k.Ix=function(){this.Za.Ub("active_view_fully_viewable_audible_half_duration")};
g.k.Hx=function(){this.Za.Ub("audio_measurable")};
g.k.Gx=function(){this.Za.Ub("audio_audible")};g.y(ADa,kJ);g.k=ADa.prototype;g.k.init=function(){kJ.prototype.init.call(this);var a=sI(this.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.ac};this.j.push(new TF(a,this.layout.layoutId,sI(this.layout.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,!0))};
g.k.kq=function(){this.D||this.Ea.get().resumeVideo(1)};
g.k.startRendering=function(a){kJ.prototype.startRendering.call(this,a);B1(this.Ea.get(),"ad-showing");this.callback.uc(this.slot,a);this.G.Xs=this};
g.k.kd=function(a,b){kJ.prototype.kd.call(this,a,b);C1(this.Ea.get(),"ad-showing");g2(this.G,this)};
g.k.hg=function(a){switch(a){case "ad-info-icon-button":(this.D=this.Ea.get().qo(1))||this.Ea.get().pauseVideo();break;case "visit-advertiser":this.Ea.get().pauseVideo()}};
g.k.va=function(){kJ.prototype.va.call(this)};g.y(BDa,TE);g.y(CDa,kJ);g.k=CDa.prototype;g.k.startRendering=function(a){mJ(this.Za,this.Xb(),this.Xa(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new BDa(b,c,d,e,f)},this.j);
kJ.prototype.startRendering.call(this,a)};
g.k.uc=function(){};
g.k.yc=function(){};
g.k.Rg=function(){};
g.k.Nh=function(){};
g.k.Kh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Lh=function(){};
g.k.Mh=function(){};
g.k.kh=function(){};
g.k.pg=function(){};
g.k.Qg=function(){};
g.k.va=function(){AI(this.Yb(),this);kJ.prototype.va.call(this)};
g.k.hg=function(){};g.y(xJ,TE);g.y(yJ,kJ);yJ.prototype.init=function(){kJ.prototype.init.call(this);var a=g.V(this.layout.renderingContent,GJ)||sI(this.layout.Ba,"metadata_type_ad_action_interstitial_renderer"),b=lJ(this.Za);this.j.push(new xJ(a,b,this.layout.layoutId,{adsClientData:this.layout.ac},!0,!0))};
yJ.prototype.startRendering=function(a){kJ.prototype.startRendering.call(this,a);this.callback.uc(this.slot,a)};
yJ.prototype.hg=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=null==(c=sI(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:c.current)&&a.fL(this.Xb(),this.layout)}};
yJ.prototype.va=function(){kJ.prototype.va.call(this)};AJ.prototype.build=function(a,b,c,d){if(zJ(d,{Ld:["metadata_type_ad_break_response_data"],Ee:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new UCa(a,c,d,this.B,this.C,this.j);throw new pI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tI(d.Ba)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.y(FDa,TE);g.y(GDa,kJ);g.k=GDa.prototype;g.k.hg=function(a,b){nJ("ads-engagement-panel",a,this.K.get().gj,this.Oa.get(),this.D,this.G,this.Xb(),this.Xa(),b)};
g.k.startRendering=function(a){mJ(this.Za,this.Xb(),this.Xa(),g.V(this.Xa().renderingContent,cM),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new FDa(b,c,d,e,f)},this.j);
kJ.prototype.startRendering.call(this,a)};
g.k.uc=function(a,b){b.layoutId===this.layout.layoutId?this.Za.Ub("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Gi():KF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.yc=function(){};
g.k.Rg=function(){};
g.k.Nh=function(){};
g.k.Kh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Lh=function(){};
g.k.Mh=function(){};
g.k.kh=function(){};
g.k.pg=function(){};
g.k.Qg=function(){};
g.k.va=function(){AI(this.Yb(),this);kJ.prototype.va.call(this)};g.y(IDa,kJ);g.k=IDa.prototype;g.k.hg=function(a,b){nJ("top-banner-image-text-icon-buttoned",a,this.K.get().gj,this.Oa.get(),this.D,this.G,this.Xb(),this.Xa(),b)};
g.k.startRendering=function(a){mJ(this.Za,this.Xb(),this.Xa(),g.V(this.Xa().renderingContent,TGa),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new BDa(b,c,d,e,f)},this.j);
kJ.prototype.startRendering.call(this,a)};
g.k.uc=function(a,b){this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Gi():KF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.yc=function(){};
g.k.Rg=function(){};
g.k.Nh=function(){};
g.k.Kh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Lh=function(){};
g.k.Mh=function(){};
g.k.kh=function(){};
g.k.pg=function(){};
g.k.Qg=function(){};
g.k.va=function(){AI(this.Yb(),this);kJ.prototype.va.call(this)};KDa.prototype.build=function(a,b,c,d){if(zJ(d,HDa())||void 0!==g.V(d.renderingContent,cM))return new GDa(a,c,d,this.Ec,this.Oa,this.Yb,this.ub,this.j);if(zJ(d,mDa())||void 0!==g.V(d.renderingContent,aM))return new lDa(a,c,d,this.Ec,this.Oa,this.Yb,this.ub,this.j);if(zJ(d,pDa())||void 0!==g.V(d.renderingContent,bM))return new oDa(a,c,d,this.Ec,this.Oa,this.Yb,this.ub,this.j);if(zJ(d,sDa()))return new rDa(a,c,d,this.Ec,this.Oa,this.Yb,this.ub,this.j);if(zJ(d,yDa()))return new xDa(a,c,d,this.Ec,this.Oa,
this.Yb,this.ub,this.j);if(zJ(d,jDa())||void 0!==g.V(d.renderingContent,SGa))return new iDa(a,c,d,this.Ec,this.Oa,this.Yb,this.ub,this.j);if(zJ(d,JDa())||void 0!==g.V(d.renderingContent,TGa))return new IDa(a,c,d,this.Ec,this.Oa,this.Yb,this.ub,this.j);if(zJ(d,DDa()))return new CDa(a,c,d,this.Ec,this.Oa,this.Yb,this.ub,this.j);if(zJ(d,gDa())||void 0!==g.V(d.renderingContent,UGa))return new fDa(a,c,d,this.Ec,this.Oa,this.Yb,this.ub,this.j);throw new pI("Unsupported layout with type: "+d.layoutType+
" and client metadata: "+tI(d.Ba)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.y(LDa,TE);g.y(BJ,kJ);BJ.prototype.init=function(){kJ.prototype.init.call(this);var a=sI(this.layout.Ba,"metadata_type_player_underlay_renderer");this.j.push(new LDa(g.V(a,emb),this.layout.layoutId,{adsClientData:this.layout.ac}))};
BJ.prototype.hg=function(){};
BJ.prototype.startRendering=function(a){kJ.prototype.startRendering.call(this,a);this.callback.uc(this.slot,a)};
BJ.prototype.va=function(){kJ.prototype.va.call(this)};MDa.prototype.build=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.u(sJ()),f=e.next();!f.done;f=e.next())b.push(f.value);if(zJ(d,{Ld:b,Ee:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new BJ(a,c,d,this.Ec);throw new pI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tI(d.Ba)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.k=NDa.prototype;g.k.Xb=function(){return this.slot};
g.k.Xa=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.kf(this.slot,a,new pI("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.uc(this.slot,a),this.Za.Ub("impression"),pL(this.Jh,a,"normal"))};
g.k.kd=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.kf(this.slot,a,new pI("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.yc(this.slot,a,b)};g.k=PDa.prototype;g.k.Xb=function(){return this.slot};
g.k.Xa=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.kf(this.slot,a,new pI("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.uc(this.slot,a),this.Za.Ub("impression"),pL(this.Jh,a,"normal"))};
g.k.kd=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.kf(this.slot,a,new pI("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.yc(this.slot,a,b)};CJ.prototype.build=function(a,b,c,d){if(!this.Aa.get().J.U().L("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(zJ(d,ODa()))return new NDa(a,c,d,this.Oa,this.Jh)}else if(zJ(d,{Ld:[],Ee:["LAYOUT_TYPE_FORECASTING"]}))return new PDa(a,c,d,this.Oa,this.Jh);throw new pI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tI(d.Ba)+" in ForecastingLayoutRenderingAdapterFactory.");};g.y(SDa,TE);g.y(TDa,kJ);g.k=TDa.prototype;g.k.init=function(){kJ.prototype.init.call(this);var a=g.V(this.layout.renderingContent,ZDa)||sI(this.layout.Ba,"metadata_type_player_overlay_layout_renderer"),b={adsClientData:this.layout.ac};this.j.push(new SDa(a,sI(this.layout.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,b))};
g.k.kq=function(){this.D||this.Ea.get().resumeVideo(2)};
g.k.startRendering=function(a){kJ.prototype.startRendering.call(this,a);this.callback.uc(this.slot,a);this.G.Xs=this};
g.k.kd=function(a,b){kJ.prototype.kd.call(this,a,b);g2(this.G,this)};
g.k.hg=function(a){if(HJa(this.K.get(),this.N))switch(a){case "visit-advertiser-link":this.Oa.get().J.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Ea.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ea.get().qo(2))||this.Ea.get().pauseVideo();break;case "visit-advertiser-link":this.Ea.get().pauseVideo();UDa(this).NL();
break;case "skip-button":if(a=UDa(this),!this.layout.renderingContent&&a.kK)KF("Requesting to skip by LegacyPlayerBytes when components enabled"),a.Rx(this.Xb(),this.layout);else{var b;(a=null==(b=sI(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:b.current)&&a.fL(this.Xb(),this.layout)}}};
g.k.va=function(){kJ.prototype.va.call(this)};g.y(DJ,kJ);g.k=DJ.prototype;g.k.init=function(){kJ.prototype.init.call(this);var a=g.V(this.layout.renderingContent,FJ)||sI(this.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.ac},c;(c=!!this.layout.renderingContent)||(c=!WDa(this).kK);this.j.push(new TF(a,this.layout.layoutId,sI(this.layout.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.kq=function(){this.D||this.Ea.get().resumeVideo(2)};
g.k.startRendering=function(a){kJ.prototype.startRendering.call(this,a);this.callback.uc(this.slot,a);this.G.Xs=this};
g.k.kd=function(a,b){kJ.prototype.kd.call(this,a,b);g2(this.G,this)};
g.k.hg=function(a){if(HJa(this.K.get(),this.N))switch(a){case "visit-advertiser":this.Oa.get().J.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Ea.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ea.get().qo(2))||this.Ea.get().pauseVideo();break;case "visit-advertiser":this.Ea.get().pauseVideo();WDa(this).NL();break;case "skip-button":if(a=
WDa(this),!this.layout.renderingContent&&a.kK)KF("Requesting to skip by LegacyPlayerBytes"),a.Rx(this.Xb(),this.layout);else{var b;(a=null==(b=sI(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:b.current)&&a.fL(this.Xb(),this.layout)}}};
g.k.va=function(){kJ.prototype.va.call(this)};g.y(XDa,TE);g.y(EJ,kJ);g.k=EJ.prototype;g.k.startRendering=function(a){var b=this;ZCa(this.B,a,function(){b.j.push(new XDa(sI(b.layout.Ba,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.ac));b.gM();b.callback.uc(b.slot,a);g.MF(s1(b.Ea.get(),1),512)&&b.callback.kf(b.Xb(),b.Xa(),new pI("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
g.k.Ii=function(){};
g.k.ag=function(a){if(a.state.isError()){var b;this.callback.kf(this.Xb(),this.Xa(),new pI("A player error happened during adNotify",{playerErrorCode:null==(b=a.state.Ng)?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.lh=function(){};
g.k.Dj=function(){};
g.k.Zi=function(){};
g.k.onVolumeChange=function(){};
g.k.Cj=function(){};
g.k.Fj=function(){};
g.k.hg=function(){};$Da.prototype.build=function(a,b,c,d){if(a=HJ(a,c,d,this.Ec,this.Ea,this.Oa,this.B,this.j,this.Aa))return a;throw new pI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tI(d.Ba)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.k=aEa.prototype;g.k.Xb=function(){return this.slot};
g.k.Xa=function(){return this.layout};
g.k.init=function(){this.Ea.get().addListener(this);this.Ea.get().aE.push(this);var a=sI(this.layout.Ba,"metadata_type_video_length_seconds"),b=sI(this.layout.Ba,"metadata_type_active_view_traffic_type"),c=sI(this.layout.Ba,"metadata_type_active_view_identifier");oJ(this.layout.Db)&&o1(this.Aa.get())&&t1(this.ub.get(),this.layout.layoutId,{Ys:b,GH:a,listener:this,P6:c})};
g.k.release=function(){this.Ea.get().removeListener(this);Jib(this.Ea.get(),this);oJ(this.layout.Db)&&o1(this.Aa.get())&&u1(this.ub.get(),this.layout.layoutId)};
g.k.startRendering=function(a){this.callback.uc(this.slot,a)};
g.k.kd=function(a,b){bEa(this,"abandon");this.callback.yc(this.slot,a,b)};
g.k.Cj=function(a){switch(a.id){case "part2viewed":this.Za.Ub("start");o1(this.Aa.get())&&this.Za.Ub("impression");break;case "videoplaytime25":this.Za.Ub("first_quartile");break;case "videoplaytime50":this.Za.Ub("midpoint");break;case "videoplaytime75":this.Za.Ub("third_quartile");break;case "videoplaytime100":bEa(this,"complete");wJ(this.Za)&&uJ(this.Za,Infinity,!0);break;case "engagedview":wJ(this.Za)||this.Za.Ub("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
default:KF("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.Zi=function(){};
g.k.lh=function(){};
g.k.Dj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.ag=function(a){this.j||(g.OF(a,4)&&!g.OF(a,2)?bDa(this.Za,"pause"):0>NF(a,4)&&!(0>NF(a,2))&&bDa(this.Za,"resume"))};
g.k.Ii=function(){};
g.k.qR=function(a){wJ(this.Za)&&uJ(this.Za,1E3*a,!1);0<a&&!o1(this.Aa.get())&&this.Za.Ub("impression")};
g.k.Fj=function(){bEa(this,"swipe")};
g.k.Jx=function(){this.Za.Ub("active_view_measurable")};
g.k.Kx=function(){this.Za.Ub("active_view_viewable")};
g.k.Ix=function(){this.Za.Ub("active_view_fully_viewable_audible_half_duration")};
g.k.Hx=function(){this.Za.Ub("audio_measurable")};
g.k.Gx=function(){this.Za.Ub("audio_audible")};cEa.prototype.build=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.u(sJ()),f=e.next();!f.done;f=e.next())b.push(f.value);if(zJ(d,{Ld:b,Ee:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"===c.slotType?new aEa(a,c,d,this.Ea,this.Oa,this.Aa,this.ub):new zDa(a,c,d,this.Ea,this.Oa,this.Aa,this.ub);throw new pI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tI(d.Ba)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");
};var LJ={contentCpn:"",vt:new Map};mEa.prototype.ql=function(a,b){var c={};b=Object.assign({},b,(c.cc=this.df.fg(),c));KJ(this.df,a,b)};var Rob,S2,nEa;
Rob={Nla:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Hqa:"AUTHENTICATION_MALFORMED",Iqa:"AUTHENTICATION_MISSING",Uqa:"BAD_REQUEST",nsa:"CAST_SESSION_DEVICE_MISMATCHED",qsa:"CAST_SESSION_VIDEO_MISMATCHED",rsa:"CAST_TOKEN_EXPIRED",ssa:"CAST_TOKEN_FAILED",tsa:"CAST_TOKEN_MALFORMED",dta:"CGI_PARAMS_MALFORMED",eta:"CGI_PARAMS_MISSING",Wxa:"DEVICE_FALLBACK",uza:"GENERIC_WITH_LINK_AND_CPN",vza:"ERROR_HDCP",Bza:"LICENSE",Eza:"VIDEO_UNAVAILABLE",EHa:"FORMAT_UNAVAILABLE",KHa:"GEO_FAILURE",
gJa:"HTML5_AUDIO_RENDERER_ERROR",hJa:"GENERIC_WITHOUT_LINK",iJa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",jJa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",kJa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",tJa:"HTML5_SPS_UMP_STATUS_REJECTED",BKa:"INVALID_DRM_MESSAGE",Y4a:"PURCHASE_NOT_FOUND",Z4a:"PURCHASE_REFUNDED",b6a:"RENTAL_EXPIRED",k6a:"RETRYABLE_ERROR",j7a:"SERVER_ERROR",I8a:"SIGNATURE_EXPIRED",ubb:"STOPPED_BY_ANOTHER_PLAYBACK",Ccb:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Dcb:"STREAMING_NOT_ALLOWED",
Ecb:"STREAM_LICENSE_NOT_FOUND",Heb:"TOO_MANY_REQUESTS",Ieb:"TOO_MANY_REQUESTS_WITH_LINK",Keb:"TOO_MANY_STREAMS_PER_ENTITLEMENT",Leb:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",Pkb:"VIDEO_FORBIDDEN",llb:"VIDEO_NOT_FOUND",Xra:"BROWSER_OR_EXTENSION_ERROR"};S2={};
g.SV=(S2.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.",S2.DEVICE_FALLBACK="Sorry, this video is not available on this device.",S2.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",S2.LICENSE="Sorry, there was an error licensing this video.",S2.VIDEO_UNAVAILABLE=
"Video unavailable",S2.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",S2.GEO_FAILURE="This video isn't available in your country.",S2.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",S2.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",S2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",S2.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",
S2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",S2.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",S2.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",S2.PURCHASE_NOT_FOUND="This video requires payment.",S2.PURCHASE_REFUNDED="This video's purchase has been refunded.",S2.RENTAL_EXPIRED="This video's rental has expired.",S2.CAST_SESSION_DEVICE_MISMATCHED=
"The device in the cast session doesn't match the requested one.",S2.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",S2.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",S2.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",S2.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",S2.SERVER_ERROR="There was an internal server error. Please try again later.",S2.STOPPED_BY_ANOTHER_PLAYBACK=
"Your account is playing this video in another location. Please reload this page to resume watching.",S2.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",S2.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",S2.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",S2.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",S2.TOO_MANY_REQUESTS="Please log in to watch this video.",
S2.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",S2.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",S2.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",S2.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",S2.VIDEO_FORBIDDEN="Access to this video is forbidden.",S2.VIDEO_NOT_FOUND="This video can not be found.",S2.BROWSER_OR_EXTENSION_ERROR=
"Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",S2);
nEa={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED",
5102:"AUTHENTICATION_EXPIRED",5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};var Sob;var Tob=g.pc(),Uob=Tob.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Uob||2>Uob.length)Sob=void 0;else{var Vob=Tob.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);Sob=Vob&&6===Vob.length?Number(Vob[5].replace("_",".")):0}var IS=Sob,NV=0<=IS;g.y(g.YJ,KB);g.YJ.prototype.T=function(a,b,c,d,e){return KB.prototype.T.call(this,a,b,c,d,e)};var T2={},xTa=(T2.FAIRPLAY="fairplay",T2.PLAYREADY="playready",T2.WIDEVINE="widevine",T2.CLEARKEY=null,T2.FLASHACCESS=null,T2.UNKNOWN=null,T2.WIDEVINE_CLASSIC=null,T2);ZJ.prototype.isMultiChannelAudio=function(){return 2<this.numChannels};var U2={},rP=(U2.WIDTH={name:"width",video:!0,valid:640,Yn:99999},U2.HEIGHT={name:"height",video:!0,valid:360,Yn:99999},U2.FRAMERATE={name:"framerate",video:!0,valid:30,Yn:9999},U2.BITRATE={name:"bitrate",video:!0,valid:3E5,Yn:2E9},U2.EOTF={name:"eotf",video:!0,valid:"bt709",Yn:"catavision"},U2.CHANNELS={name:"channels",video:!1,valid:2,Yn:99},U2.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Yn:"invalidformat"},U2.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
Yn:"nope"},U2.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Yn:"av99.0.05M.08"},U2.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Yn:"invalid"},U2);var Wob=["h","H"],Xob=["9","("],Yob=["9h","(h"],Zob=["8","*"],$ob=["a","A"],apb=["o","O"],bpb=["m","M"],cpb=["mac3","MAC3"],dpb=["meac3","MEAC3"],V2={},XTa=(V2.h=Wob,V2.H=Wob,V2["9"]=Xob,V2["("]=Xob,V2["9h"]=Yob,V2["(h"]=Yob,V2["8"]=Zob,V2["*"]=Zob,V2.a=$ob,V2.A=$ob,V2.o=apb,V2.O=apb,V2.m=bpb,V2.M=bpb,V2.mac3=cpb,V2.MAC3=cpb,V2.meac3=dpb,V2.MEAC3=dpb,V2),epb=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),fRa=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var W2={},dK=(W2["0"]="f",W2["160"]="h",W2["133"]="h",W2["134"]="h",W2["135"]="h",W2["136"]="h",W2["137"]="h",W2["264"]="h",W2["266"]="h",W2["138"]="h",W2["298"]="h",W2["299"]="h",W2["304"]="h",W2["305"]="h",W2["214"]="h",W2["216"]="h",W2["374"]="h",W2["375"]="h",W2["140"]="a",W2["141"]="ah",W2["327"]="sa",W2["258"]="m",W2["380"]="mac3",W2["328"]="meac3",W2["161"]="H",W2["142"]="H",W2["143"]="H",W2["144"]="H",W2["222"]="H",W2["223"]="H",W2["145"]="H",W2["224"]="H",W2["225"]="H",W2["146"]="H",W2["226"]=
"H",W2["227"]="H",W2["147"]="H",W2["384"]="H",W2["376"]="H",W2["385"]="H",W2["377"]="H",W2["149"]="A",W2["261"]="M",W2["381"]="MAC3",W2["329"]="MEAC3",W2["598"]="9",W2["278"]="9",W2["242"]="9",W2["243"]="9",W2["244"]="9",W2["775"]="9",W2["776"]="9",W2["777"]="9",W2["778"]="9",W2["779"]="9",W2["780"]="9",W2["781"]="9",W2["782"]="9",W2["783"]="9",W2["247"]="9",W2["248"]="9",W2["353"]="9",W2["355"]="9",W2["356"]="9",W2["271"]="9",W2["577"]="9",W2["313"]="9",W2["579"]="9",W2["272"]="9",W2["302"]="9",
W2["303"]="9",W2["407"]="9",W2["408"]="9",W2["308"]="9",W2["315"]="9",W2["330"]="9h",W2["331"]="9h",W2["332"]="9h",W2["333"]="9h",W2["334"]="9h",W2["335"]="9h",W2["336"]="9h",W2["337"]="9h",W2["338"]="so",W2["600"]="o",W2["250"]="o",W2["251"]="o",W2["194"]="*",W2["195"]="*",W2["220"]="*",W2["221"]="*",W2["196"]="*",W2["197"]="*",W2["279"]="(",W2["280"]="(",W2["317"]="(",W2["318"]="(",W2["273"]="(",W2["274"]="(",W2["357"]="(",W2["358"]="(",W2["275"]="(",W2["359"]="(",W2["360"]="(",W2["276"]="(",W2["583"]=
"(",W2["584"]="(",W2["314"]="(",W2["585"]="(",W2["561"]="(",W2["277"]="(",W2["361"]="(h",W2["362"]="(h",W2["363"]="(h",W2["364"]="(h",W2["365"]="(h",W2["366"]="(h",W2["591"]="(h",W2["592"]="(h",W2["367"]="(h",W2["586"]="(h",W2["587"]="(h",W2["368"]="(h",W2["588"]="(h",W2["562"]="(h",W2["409"]="(",W2["410"]="(",W2["411"]="(",W2["412"]="(",W2["557"]="(",W2["558"]="(",W2["394"]="1",W2["395"]="1",W2["396"]="1",W2["397"]="1",W2["398"]="1",W2["399"]="1",W2["400"]="1",W2["401"]="1",W2["571"]="1",W2["402"]=
"1",W2["694"]="1h",W2["695"]="1h",W2["696"]="1h",W2["697"]="1h",W2["698"]="1h",W2["699"]="1h",W2["700"]="1h",W2["701"]="1h",W2["702"]="1h",W2["703"]="1h",W2["386"]="3",W2["387"]="w",W2["406"]="6",W2["645"]="(",W2["646"]="(",W2["647"]="(",W2["648"]="(",W2["649"]="(",W2["650"]="(",W2["651"]="(",W2["652"]="(",W2["653"]="(",W2["654"]="(",W2["655"]="(",W2["656"]="(",W2["657"]="(",W2["658"]="(",W2["659"]="(",W2["660"]="(",W2["661"]="(",W2["662"]="(",W2["663"]="(",W2["664"]="(",W2["665"]="(",W2["666"]="(",
W2["667"]="(",W2["668"]="(",W2["669"]="(",W2["670"]="(",W2["671"]="(",W2["672"]="(",W2["673"]="(",W2["674"]="(h",W2["675"]="(h",W2["676"]="(h",W2["677"]="(h",W2["678"]="(h",W2["679"]="(h",W2["680"]="(h",W2["681"]="(h",W2["682"]="(h",W2["683"]="(h",W2["684"]="(h",W2["685"]="(h",W2["686"]="(h",W2["687"]="(h",W2["688"]="A",W2["689"]="A",W2["690"]="A",W2["691"]="MEAC3",W2["773"]="i",W2);var X2={},uTa=(X2.STEREO_LAYOUT_UNKNOWN=0,X2.STEREO_LAYOUT_LEFT_RIGHT=1,X2.STEREO_LAYOUT_TOP_BOTTOM=2,X2);var Y2,fP;Y2={};g.$J=(Y2.auto=0,Y2.tiny=144,Y2.light=144,Y2.small=240,Y2.medium=360,Y2.large=480,Y2.hd720=720,Y2.hd1080=1080,Y2.hd1440=1440,Y2.hd2160=2160,Y2.hd2880=2880,Y2.highres=4320,Y2);fP={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var bK="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");aK.prototype.isHdr=function(){return"smpte2084"===this.B||"arib-std-b67"===this.B};eK.prototype.Le=function(){return 2===this.containerType};
eK.prototype.isEncrypted=function(){return!!this.le};
eK.prototype.Eh=function(){return!!this.audio};
eK.prototype.Ag=function(){return!!this.video};g.y(xK,g.UE);g.k=xK.prototype;g.k.appendBuffer=function(a,b,c){if(this.Gd.yE()!==this.appendWindowStart+this.start||this.Gd.rJ()!==this.appendWindowEnd+this.start||this.Gd.Mc()!==this.timestampOffset+this.start)this.Gd.supports(1),this.Gd.VS(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Gd.Gq(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.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
g.k.clear=function(){this.Gd.clear()};
g.k.VS=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.JP=function(){return this.timestampOffset+this.start};
g.k.yE=function(){return this.appendWindowStart};
g.k.rJ=function(){return this.appendWindowEnd};
g.k.Gq=function(a){this.timestampOffset=a};
g.k.Mc=function(){return this.timestampOffset};
g.k.He=function(a){a=this.Gd.He(void 0===a?!1:a);return wK(a,this.start,this.end)};
g.k.jk=function(){return this.Gd.jk()};
g.k.PJ=function(){return this.Gd.PJ()};
g.k.Em=function(){return this.Gd.Em()};
g.k.tQ=function(){return this.Gd.tQ()};
g.k.Ez=function(){this.Gd.Ez()};
g.k.ox=function(a){return this.Gd.ox(a)};
g.k.Jw=function(){return this.Gd.Jw()};
g.k.yJ=function(){return this.Gd.yJ()};
g.k.UT=function(a,b){this.Gd.UT(a,b)};
g.k.supports=function(a){return this.Gd.supports(a)};
g.k.gA=function(){return this.Gd.gA()};
g.k.isView=function(){return!0};
g.k.AI=function(){return this.Gd.AI()?this.isActive:!1};
g.k.isLocked=function(){return this.iU&&!this.isActive};
g.k.pc=function(a){a=this.Gd.pc(a);a.vw=this.start+"-"+this.end;return a};
g.k.zJ=function(){return this.Gd.zJ()};
g.k.KE=function(){return this.Gd.KE()};
g.k.DP=function(){return this.Gd.DP()};
g.k.va=function(){WE(this.Gd,this.HY);g.UE.prototype.va.call(this)};
g.k.D1=function(a){this.isActive=a;this.iU=this.iU||this.isActive};
g.k.sF=function(){return this.Gd.sF()};
g.k.GI=function(){this.Gd.GI()};var XX=!1;g.y(yK,g.UE);g.k=yK.prototype;g.k.appendBuffer=function(a,b,c){this.XD=!1;c&&(this.zF=c);if(a.length){var d;(null==(d=this.Rb)?0:d.appendBuffer)?this.Rb.appendBuffer(a):this.Rb?this.Rb.append(a):this.wg&&this.wg.webkitSourceAppend(this.id,a)}b&&(b.isEncrypted()&&(this.HQ=this.zF),3===b.type&&(this.Jf=b,this.JH=!0),this.yF.push(b.Tc()),4<this.yF.length&&this.yF.shift());this.VB&&(2<=this.VB.length||1048576<a.length?delete this.VB:this.VB.push(a))};
g.k.abort=function(){try{this.Rb?this.Rb.abort():this.wg&&this.wg.webkitSourceAbort(this.id)}catch(a){Q5a&&g.AE(new g.XB("Error while abort the source buffer: "+a.name+", "+a.message))}this.zF=this.Jf=null;this.JH=!1};
g.k.remove=function(a,b,c){this.XD=!1;var d;if(null==(d=this.Rb)?0:d.remove)c&&c({b:qK(this.He()),s:a,e:b}),this.Rb.remove(a,b)};
g.k.removeAll=function(){this.remove(this.yE(),this.rJ())};
g.k.clear=function(){this.Em()||(this.abort(),this.removeAll(),this.HQ=this.zF=this.Jf=null,this.appendWindowStart=this.timestampOffset=0,this.eO=pK([],[]),this.XD=!1,this.VB=DEa?[]:void 0,this.HI=!0,this.JH=!1)};
g.k.yE=function(){if(XX&&this.Ag)return this.appendWindowStart;var a;return(null==(a=this.Rb)?void 0:a.appendWindowStart)||0};
g.k.rJ=function(){var a;return(null==(a=this.Rb)?void 0:a.appendWindowEnd)||0};
g.k.VS=function(a,b){this.Rb&&(XX&&this.Ag?(this.appendWindowStart=a,this.Rb.appendWindowEnd=b):a>this.yE()?(this.Rb.appendWindowEnd=b,this.Rb.appendWindowStart=a):(this.Rb.appendWindowStart=a,this.Rb.appendWindowEnd=b))};
g.k.JP=function(){return this.timestampOffset};
g.k.Gq=function(a){XX?this.timestampOffset=a:this.supports(1)&&(this.Rb.timestampOffset=a)};
g.k.Mc=function(){return XX?this.timestampOffset:this.supports(1)?this.Rb.timestampOffset:0};
g.k.He=function(a){if(void 0===a?0:a)return this.XD||this.jk()||(this.eO=this.He(!1),this.XD=!0),this.eO;try{return this.Rb?this.Rb.buffered:this.wg?this.wg.webkitSourceBuffered(this.id):pK([0],[Infinity])}catch(b){return pK([],[])}};
g.k.jk=function(){var a;return(null==(a=this.Rb)?void 0:a.updating)||!1};
g.k.Em=function(){return this.HI};
g.k.tQ=function(){return!this.HI&&this.jk()};
g.k.Ez=function(){this.HI=!1};
g.k.ox=function(a){var b=null==a?void 0:a.qb;a=null==a?void 0:a.containerType;return!b&&!a||b===this.qb&&a===this.containerType};
g.k.Jw=function(){return this.zF};
g.k.yJ=function(){return this.HQ};
g.k.UT=function(a,b){this.containerType!==a&&(this.supports(4),zK()&&this.Rb.changeType(b));this.containerType=a};
g.k.gA=function(){return this.Jf};
g.k.isView=function(){return!1};
g.k.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.Rb)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.Rb)||!c.appendBuffer);case 2:var d;return!(null==(d=this.Rb)||!d.remove);case 3:var e,f;return!!((null==(e=this.Rb)?0:e.addEventListener)&&(null==(f=this.Rb)?0:f.removeEventListener));case 4:return!(!this.Rb||!this.Rb.changeType);default:return!1}};
g.k.AI=function(){return!this.jk()};
g.k.isLocked=function(){return!1};
g.k.pc=function(a){a.to=this.Mc();a.up=this.jk();var b,c=(null==(b=this.Rb)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.Rb)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=qK(this.He())}catch(e){}return a};
g.k.PJ=function(){var a;return(null==(a=this.Rb)?void 0:a.writeHead)||0};
g.k.zJ=function(){for(var a={},b=0;b<this.yF.length;b++)a["s"+b]=this.yF[b];return a};
g.k.va=function(){this.supports(3)&&(this.Rb.removeEventListener("updateend",this.Ed),this.Rb.removeEventListener("error",this.Ed));g.UE.prototype.va.call(this)};
g.k.KE=function(){return this.containerType};
g.k.DP=function(){return this.VB};
g.k.sF=function(){return this.JH};
g.k.GI=function(){this.JH=!1};
var DEa=!1,Q5a=!1;AK.prototype.dispose=function(){if(!this.Na){if(this.j)try{URL.revokeObjectURL(this.resource)}catch(a){}this.B=!0}};
AK.prototype.Na=function(){return this.B};
AK.prototype.toString=function(){return"MediaResource {"+this.resource+"}"};g.y(BK,g.I);g.k=BK.prototype;g.k.getDuration=function(){var a;return(null==(a=this.Qa)?void 0:a.duration)||this.ra};
g.k.Bl=function(a){try{this.Qa?this.Qa.duration=a:(this.ra=a,this.wg.webkitSourceSetDuration(a))}catch(b){}};
g.k.Og=function(){try{return"closed"===HK(this)}catch(a){return!0}};
g.k.jk=function(){return!!(this.j&&this.j.jk()||this.B&&this.B.jk())};
g.k.isAsync=function(){return this.j?!!this.j.supports(0):IEa()};
g.k.nca=function(){!this.Na()&&CK(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.mca=function(){this.dispose()};
g.k.P5=function(a){if(DK&&!this.G&&a.Em()&&0===a.He().length){var b;EK(this.mediaElement,{l:"mswoue",sr:null==(b=this.mediaElement.ea)?void 0:FK(b)},!1);a.Ez();this.Em()||(this.mediaElement.dK=!0,this.mediaElement.setCurrentTime(0))}};
g.k.hO=function(){return!!this.j.supports(2)};
g.k.clear=function(){FEa(this,function(){});
var a;null==(a=this.j)||a.clear();var b;null==(b=this.B)||b.clear()};
g.k.Em=function(){var a,b;return(null==(a=this.B)?void 0:a.Em())||(null==(b=this.j)?void 0:b.Em())};
g.k.ox=function(a,b){return!!this.j&&!!this.B&&this.j.ox(b)&&this.B.ox(a)};
var DK=!1;IK.prototype.then=function(a,b){return this.promise.then(a,b)};
IK.prototype.resolve=function(a){this.JS(a)};
IK.prototype.reject=function(a){this.wS(a)};g.y(JK,g.I);g.k=JK.prototype;g.k.cI=function(){return this.resource};
g.k.activate=function(a){var b="";a&&(QEa(this,a),b=a.resource);if(!this.Ef()||b)b&&this.Ef()!==b&&(this.eI(b),delete this.B,this.C&&(this.C.reject(),delete this.C),!window.MediaSource&&window.ManagedMediaSource&&this.YS(!(null==a||!a.j))),a&&a.j||this.load(),this.N||(this.addEventListener("volumechange",this.gX),this.N=!0)};
g.k.Er=function(a,b){if(this.B)if(P5a&&GK(this.B)&&!this.B.ox(a,b)){var c;EK(this,{l:"megms",sr:null==(c=this.ea)?void 0:FK(c)});OEa(this);this.stopVideo()}else return this.Qa=this.B,this.B=void 0,this.Qa;a=window.MediaSource?new BK(this,new window.MediaSource,!1):window.ManagedMediaSource?new BK(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new BK(this,new window.WebKitMediaSource,!1):new BK(this,void 0,!1);this.activate(a.C);this.Qa=a;this.dK=!1;return a};
g.k.playVideo=function(){var a=this;this.isEnded()&&this.seekTo(0);!this.Ef()&&this.resource&&(g.AE(Error("playVideo without src")),this.eI(this.resource.resource),this.resource.j||this.load());var b=this.play(),c;(null==(c=this.ea)?0:c.L("html5_remove_ios_7_hack_force_play"))||!b&&NV&&7<=(IS||0)&&pEa(this,function(){g.PA(function(){PEa(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){0<this.Rk()&&(NV&&4>IS&&(a=Math.max(.1,a)),this.setCurrentTime(a))};
g.k.No=function(){if(!this.B&&this.Qa)if(this.Qa.K)try{var a;EK(this,{l:"mer",sr:null==(a=this.ea)?void 0:FK(a),rs:HK(this.Qa)});this.Qa.clear();this.B=this.Qa;this.Qa=void 0}catch(b){a=new g.XB("Error while clearing Media Source in MediaElement: "+b.name+", "+b.message),g.AE(a),this.stopVideo()}else this.stopVideo()};
g.k.stopVideo=function(){var a=this;if(!this.B){var b;null==(b=this.Qa)||LEa(b);if(N5a){if(!this.C){var c=new IK;c.then(void 0,function(){});
this.C=c;O5a&&this.pause();g.PA(function(){a.C===c&&(TEa(a),c.resolve())},200)}}else TEa(this)}};
g.k.iA=function(){var a=this.Ch();return 0<uK(a)&&this.getDuration()?tK(a,this.getCurrentTime()):0};
g.k.Nw=function(){var a=this.getDuration();return Infinity===a?1:a?this.iA()/a:0};
g.k.pc=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:qK(this.Qw(),",",3),vbu:qK(this.Ch()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Rk(),vns:""+this.CJ(),vec:""+this.dh(),vemsg:this.wf(),vvol:""+this.getVolume(),vdom:""+ +this.uQ(),vsrc:""+ +!!this.Ef(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.hasError=function(){return 0<this.dh()};
g.k.addEventListener=function(a,b){this.D.listen(a,b,!1,this);this.TO(a)};
g.k.removeEventListener=function(a,b){this.D.Pc(a,b,!1,this)};
g.k.dispatchEvent=function(a){if(this.C&&"pause"===a.type)return!1;if(P5a){var b,c=(null==(b=a.j)?void 0:b.timeStamp)||Infinity;b=c>performance.now()?c-Date.now()+performance.now():c;c=this.B||this.Qa;if((null==c?0:c.Em())||b<=((null==c?void 0:c.N)||0)){var d;EK(this,{l:"mede",sr:null==(d=this.ea)?void 0:FK(d),et:a.type});return!1}if(this.dK)return EK(this,{l:"medes",et:a.type}),c&&"seeking"===a.type&&(c.N=performance.now(),this.dK=!1),!1}return this.D.dispatchEvent(a)};
g.k.QO=function(){this.K=!1};
g.k.NO=function(){this.K=!0;this.cC(!0)};
g.k.gX=function(){this.K&&!this.BJ()&&this.cC(!0)};
g.k.va=function(){this.N&&this.removeEventListener("volumechange",this.gX);N5a&&TEa(this);g.I.prototype.va.call(this)};
var N5a=!1,O5a=!1,P5a=!1,SEa=!1;g.k=g.LK.prototype;g.k.isPaused=function(){return g.MF(this,4)};
g.k.isPlaying=function(){return g.MF(this,8)&&!g.MF(this,512)&&!g.MF(this,64)&&!g.MF(this,2)};
g.k.isOrWillBePlaying=function(){return g.MF(this,8)&&!g.MF(this,2)&&!g.MF(this,1024)};
g.k.isCued=function(){return g.MF(this,64)&&!g.MF(this,8)&&!g.MF(this,4)};
g.k.isBuffering=function(){return g.MF(this,1)&&!g.MF(this,2)};
g.k.isError=function(){return g.MF(this,128)};
g.k.isSuspended=function(){return g.MF(this,512)};
g.k.nF=function(){return g.MF(this,64)&&g.MF(this,4)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};
var Z2={},$2=(Z2.BUFFERING="buffering-mode",Z2.CUED="cued-mode",Z2.ENDED="ended-mode",Z2.PAUSED="paused-mode",Z2.PLAYING="playing-mode",Z2.SEEKING="seeking-mode",Z2.UNSTARTED="unstarted-mode",Z2);g.y(TK,g.I);g.k=TK.prototype;g.k.dA=function(){return this.B};
g.k.Xb=function(){return this.slot};
g.k.Xa=function(){return this.layout};
g.k.init=function(){var a=sI(this.layout.Ba,"metadata_type_video_length_seconds"),b=sI(this.layout.Ba,"metadata_type_active_view_traffic_type");oJ(this.layout.Db)&&t1(this.ub.get(),this.layout.layoutId,{Ys:b,GH:a,listener:this,aq:this.qf()});Bib(this.Oa.get(),this);this.bx()};
g.k.release=function(){oJ(this.layout.Db)&&u1(this.ub.get(),this.layout.layoutId);Cib(this.Oa.get(),this);this.oy()};
g.k.us=function(){};
g.k.xs=function(){};
g.k.startRendering=function(a){jEa(UK(this));YEa(this,a)&&(ZEa(this),this.Is(a),this.qf()||this.qI(!1))};
g.k.uc=function(a,b){if(b.layoutId===this.layout.layoutId){this.kc="rendering";this.j=this.Ea.get().isMuted()||0===this.Ea.get().getVolume();this.Ub("impression");this.Ub("start");if(this.Ea.get().isMuted()){ZK(this,"mute");var c;a=(null==(c=SK(this))?void 0:c.muteCommands)||[];SI(this.Lb.get(),a,this.layout.layoutId)}if(this.Ea.get().isFullscreen()){this.Oh("fullscreen");var d;c=(null==(d=SK(this))?void 0:d.fullscreenCommands)||[];SI(this.Lb.get(),c,this.layout.layoutId)}this.qf()||(d=this.Ac.get(),
d.D&&!d.B&&(d.G=!1,d.B=!0,"ad_to_video"!==d.actionType&&(d.J.L("html5_no_video_to_ad_on_preroll")?bH("pbs",void 0,d.actionType):YG("pbs",void 0,d.actionType),g.TA("finalize_all_timelines")&&iAa(d.actionType))));this.zq(1);this.CR(b);var e;b=(null==(e=SK(this))?void 0:e.impressionCommands)||[];SI(this.Lb.get(),b,this.layout.layoutId)}};
g.k.lB=function(a,b,c){this.K={HM:3,FH:"load_timeout"===a?402:400,errorMessage:b.message};this.Ub("error");var d;a=(null==(d=SK(this))?void 0:d.errorCommands)||[];SI(this.Lb.get(),a,this.layout.layoutId);this.qf()||this.Ro.kf(this.slot,this.layout,b,c)};
g.k.D2=function(){if("rendering"===this.kc){ZK(this,"pause");var a,b=(null==(a=SK(this))?void 0:a.pauseCommands)||[];SI(this.Lb.get(),b,this.layout.layoutId);this.zq(2)}};
g.k.E2=function(){if("rendering"===this.kc){ZK(this,"resume");var a,b=(null==(a=SK(this))?void 0:a.resumeCommands)||[];SI(this.Lb.get(),b,this.layout.layoutId)}};
g.k.tC=function(a,b){b=void 0===b?!1:b;if("rendering"===this.kc){uJ(this.Za,1E3*a,b);this.j||uJ(this.Za,1E3*a,void 0===b?!1:b);var c=this.hA();c&&(c/=1E3,(a>=.25*c||b)&&this.Ub("first_quartile"),(a>=.5*c||b)&&this.Ub("midpoint"),(a>=.75*c||b)&&this.Ub("third_quartile"),this.Aa.get().J.U().experiments.fb("enable_progress_command_flush_on_kabuki")?wDa(this.C,1E3*a,b):wDa(this.C,1E3*a,dFa(this)?b:!1))}};
g.k.fg=function(){var a;return(null==(a=this.Ra.get().Xd(1))?void 0:a.clientPlaybackNonce)||""};
g.k.qJ=function(){var a;return(null==(a=this.Ra.get().Xd(2))?void 0:a.clientPlaybackNonce)||""};
g.k.xv=function(a,b){a.layoutId!==this.layout.layoutId?this.Ro.kf(this.slot,a,new pI("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):b()};
g.k.yc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.kc="not_rendering",this.layoutExitReason=void 0,this.qf()||(a="normal"!==c||this.position+1===this.G)&&this.qI(a),this.C2(c),this.zq(0),c){case "abandoned":if(vJ(this.Za,"impression")){var d,e=(null==(d=SK(this))?void 0:d.abandonCommands)||[];SI(this.Lb.get(),e,this.layout.layoutId)}break;case "normal":d=(null==(e=SK(this))?void 0:e.completeCommands)||[];SI(this.Lb.get(),d,this.layout.layoutId);break;case "skipped":var f;d=(null==
(f=SK(this))?void 0:f.skipCommands)||[];SI(this.Lb.get(),d,this.layout.layoutId)}};
g.k.Lw=function(){return this.layout.layoutId};
g.k.gP=function(){return this.K};
g.k.Jx=function(){if("rendering"===this.kc){this.Za.Ub("active_view_measurable");var a,b=(null==(a=SK(this))?void 0:a.activeViewMeasurableCommands)||[];SI(this.Lb.get(),b,this.layout.layoutId)}};
g.k.Ix=function(){if("rendering"===this.kc){this.Za.Ub("active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=SK(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];SI(this.Lb.get(),b,this.layout.layoutId)}};
g.k.Kx=function(){if("rendering"===this.kc){this.Za.Ub("active_view_viewable");var a,b=(null==(a=SK(this))?void 0:a.activeViewViewableCommands)||[];SI(this.Lb.get(),b,this.layout.layoutId)}};
g.k.Gx=function(){if("rendering"===this.kc){this.Za.Ub("audio_audible");var a,b=(null==(a=SK(this))?void 0:a.activeViewAudioAudibleCommands)||[];SI(this.Lb.get(),b,this.layout.layoutId)}};
g.k.Hx=function(){if("rendering"===this.kc){this.Za.Ub("audio_measurable");var a,b=(null==(a=SK(this))?void 0:a.activeViewAudioMeasurableCommands)||[];SI(this.Lb.get(),b,this.layout.layoutId)}};
g.k.qI=function(a){this.Ac.get().qI(sI(this.layout.Ba,"metadata_type_ad_placement_config").kind,a,this.position,this.G,!1)};
g.k.onFullscreenToggled=function(a){if("rendering"===this.kc)if(a){this.Oh("fullscreen");var b,c=(null==(b=SK(this))?void 0:b.fullscreenCommands)||[];SI(this.Lb.get(),c,this.layout.layoutId)}else this.Oh("end_fullscreen"),b=(null==(c=SK(this))?void 0:c.endFullscreenCommands)||[],SI(this.Lb.get(),b,this.layout.layoutId)};
g.k.onVolumeChange=function(){if("rendering"===this.kc)if(this.Ea.get().isMuted()){ZK(this,"mute");var a,b=(null==(a=SK(this))?void 0:a.muteCommands)||[];SI(this.Lb.get(),b,this.layout.layoutId)}else ZK(this,"unmute"),a=(null==(b=SK(this))?void 0:b.unmuteCommands)||[],SI(this.Lb.get(),a,this.layout.layoutId)};
g.k.lh=function(){};
g.k.Dj=function(){};
g.k.Zi=function(){};
g.k.Cj=function(){};
g.k.Fj=function(){};
g.k.Oh=function(a){this.Za.Oh(a,!this.j)};
g.k.Ub=function(a){this.Za.Ub(a,!this.j)};
g.k.qf=function(){var a=sI(this.slot.Ba,"metadata_type_eligible_for_ssap");return void 0===a?(KF("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Aa.get().qf(a)};g.y(bL,TK);g.k=bL.prototype;g.k.xO=function(){this.layoutExitReason?this.Ro.yc(this.slot,this.layout,this.layoutExitReason):$Ea(this)};
g.k.bx=function(){};
g.k.oy=function(){var a=this.Oa.get();a.qC===this&&(a.qC=null);this.Ve.stop()};
g.k.us=function(){this.Ve.stop();TK.prototype.D2.call(this)};
g.k.xs=function(){gFa(this);TK.prototype.E2.call(this)};
g.k.hA=function(){return sI(this.Xa().Ba,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.kd=function(a,b){var c=this;this.xv(a,function(){"rendering_stop_requested"!==c.kc&&(c.kc="rendering_stop_requested",c.layoutExitReason=b,VK(c,b),c.Ve.stop())})};
g.k.WP=function(){lEa(UK(this));this.At()};
g.k.Sc=function(){var a=Date.now(),b=a-this.KQ;this.KQ=a;this.ij+=b;this.ij>=this.hA()?this.AY():(this.tC(this.ij/1E3),fFa(this,this.ij))};
g.k.C2=function(){};
g.k.Ii=function(){};
g.y(iFa,bL);g.k=iFa.prototype;g.k.ag=function(a){if("not_rendering"!==this.kc){a=WK(this,a);var b=2===this.Ea.get().getPresentingPlayerType();"rendering_start_requested"===this.kc?b&&IJ(a)&&this.Mz():b?g.OF(a,2)?KF("Receive player ended event during MediaBreak",this.Xb(),this.Xa()):XK(this,a):this.Tw()}};
g.k.Is=function(){bFa(this);Mib(this.Ea.get());this.Oa.get().qC=this;aH("pbp")||aH("pbs")||bH("pbp");aH("pbp","watch")||aH("pbs","watch")||bH("pbp",void 0,"watch");this.Mz()};
g.k.CR=function(a){this.Ac.get();var b=sI(a.Ba,"metadata_type_ad_placement_config").kind,c=0===this.position;a=sI(a.Ba,"metadata_type_linked_in_player_layout_type");a={adBreakType:YK(b),adType:sFa(a)};var d=void 0;c?"AD_PLACEMENT_KIND_START"!==b&&(d="video_to_ad"):d="ad_to_ad";YG("ad_mbs",void 0,d);g.ZG(a,d);gFa(this)};
g.k.Tw=function(){this.At()};
g.k.AY=function(){hFa(this);this.At()};
g.y(cL,bL);g.k=cL.prototype;g.k.ag=function(a){"not_rendering"!==this.kc&&(a=WK(this,a),XK(this,a))};
g.k.Is=function(){this.Oa.get().qC=this;this.Mz()};
g.k.CR=function(){gFa(this)};
g.k.Tw=function(){aFa(this);this.At()};
g.k.AY=function(){hFa(this);this.Ro.vy(this.Xb(),this.Xa(),"normal")};
g.y(dL,cL);dL.prototype.kd=function(a,b){var c=this;this.xv(a,function(){eEa(c.B,b)&&(c.kc="rendering_stop_requested",c.layoutExitReason=b,VK(c,b),c.Ve.stop())})};
dL.prototype.startRendering=function(a){jEa(UK(this));YEa(this,a)&&(ZEa(this),this.Oa.get().qC=this)};g.y(hL,TK);g.k=hL.prototype;g.k.xO=function(){this.layoutExitReason?this.Ro.yc(this.slot,this.layout,this.layoutExitReason):$Ea(this)};
g.k.Tw=function(){aFa(this);this.At()};
g.k.ag=function(a){if("not_rendering"!==this.kc){a=WK(this,a);var b=2===this.Ea.get().getPresentingPlayerType();"rendering_start_requested"===this.kc?b&&IJ(a)&&this.Mz():b?g.OF(a,2)?this.At():XK(this,a):this.Tw()}};
g.k.bx=function(){sI(this.Xa().Ba,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=sI(this.Xa().Ba,"metadata_type_shrunken_player_bytes_config")};
g.k.oy=function(){sI(this.Xa().Ba,"metadata_type_player_bytes_callback_ref").current=null;this.zt&&this.Oc.get().removeCueRange(this.zt);this.zt=void 0;var a;null==(a=this.FK)||a.dispose();this.eB&&this.eB.dispose()};
g.k.Is=function(a){var b=fL(this.Aa.get()),c=gL(this.Aa.get());if(b&&c&&!this.qf()){c=sI(a.Ba,"metadata_type_preload_player_vars");var d=g.xI(this.Aa.get().J.U().experiments,"html5_preload_wait_time_secs");c&&this.eB&&this.eB.start(1E3*d)}lFa(this,a);bFa(this);b?(c=this.Yc.get(),a=sI(a.Ba,"metadata_type_player_vars"),c.J.loadVideoByPlayerVars(a,!1,2)):Vib(this.Yc.get(),sI(a.Ba,"metadata_type_player_vars"));var e;null==(e=this.FK)||e.start();b||this.Yc.get().J.playVideo(2)};
g.k.CR=function(){var a;null==(a=this.FK)||a.stop();this.zt="adcompletioncuerange:"+this.Xa().layoutId;this.Oc.get().addCueRange(this.zt,0x7ffffffffffff,0x8000000000000,!1,this,2,2);a=this.context.Jp;var b=this.zt,c=this.Xa().layoutId;if(PM(a.Aa.get())){var d={};a.ql("mccr",(d.cid=b,d.c=c,d))}(this.adCpn=this.qJ())||KF("Media layout confirmed started, but ad CPN not set.");this.hd.get().Ru("onAdStart",this.adCpn);this.xW=Date.now()};
g.k.hA=function(){var a;return null==(a=this.Ra.get().Xd(2))?void 0:a.Rca};
g.k.NL=function(){this.Za.Oh("clickthrough")};
g.k.kd=function(a,b){var c=this;this.xv(a,function(){if("rendering_stop_requested"!==c.kc){c.kc="rendering_stop_requested";c.layoutExitReason=b;VK(c,b);var d;null==(d=c.FK)||d.stop();c.eB&&c.eB.stop();mFa(c)}})};
g.k.onCueRangeEnter=function(a){if(a!==this.zt)KF("Received CueRangeEnter signal for unknown layout.",this.Xb(),this.Xa(),{cueRangeId:a});else{var b=this.context.Jp,c=this.Xa().layoutId;if(PM(b.Aa.get())){var d={};b.ql("mccre",(d.cid=a,d.c=c,d))}this.Oc.get().removeCueRange(this.zt);this.zt=void 0;a=sI(this.Xa().Ba,"metadata_type_video_length_seconds");this.tC(a,!0);this.Ub("complete")}};
g.k.C2=function(a){"abandoned"!==a&&this.hd.get().Ru("onAdComplete");this.hd.get().Ru("onAdEnd",this.adCpn)};
g.k.WP=function(){lEa(UK(this));this.At()};
g.k.onCueRangeExit=function(){};
g.k.Ii=function(a){"rendering"===this.kc&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ea.get().hC(!0),this.tC(a))};
g.k.tC=function(a,b){TK.prototype.tC.call(this,a,void 0===b?!1:b);if(5<=a&&!this.LY){b=Date.now()-this.xW;a*=1E3;var c={contentCpn:this.fg(),adCpn:this.qJ()},d=1E3>b?0:1;Uya(d,"i.k_",{metadata:c,T6:b,U6:Math.floor(a/1E3)});wA("IKDSTAT",d);0===d&&this.oT()&&this.hd.get().Ru("onAbnormalityDetected");this.LY=!0}};
g.k.oT=function(){if(!this.Aa.get().oT())return!1;var a=sI(this.Xb().Ba,"metadata_type_player_bytes_slot_metadata");void 0===a&&KF("PlayerBytesSlotMetadata is not filled",this.Xb(),this.Xa());return!0===(null==a?void 0:a.mu)};g.y(jL,hL);jL.prototype.ag=function(a){"not_rendering"!==this.kc&&(a=WK(this,a),XK(this,a))};
jL.prototype.Is=function(a){lFa(this,a);this.Mz()};
g.y(iL,jL);iL.prototype.kd=function(a,b){var c=this;this.xv(a,function(){eEa(c.B,b)&&(c.kc="rendering_stop_requested",c.layoutExitReason=b,VK(c,b),mFa(c))})};
iL.prototype.startRendering=function(a){jEa(UK(this));YEa(this,a)&&(ZEa(this),lFa(this,a))};g.y(kL,g.I);g.k=kL.prototype;g.k.init=function(){var a=sI(this.layout.Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Ra.get().addListener(this);this.Vc.init();fEa([this.layout],this.Ra.get());this.ON()};
g.k.ON=function(){var a=sI(this.Vc.Xa().Ba,"metadata_type_player_vars");a?this.Yc.get().addPlayerResponseForAssociation({playerVars:a}):(a=tFa(this.Vc.Xa()),this.Yc.get().addPlayerResponseForAssociation({TI:a}))};
g.k.release=function(){this.Ra.get().removeListener(this);this.Vc.release();gEa()};
g.k.dL=function(){};
g.k.Mx=function(a,b,c){PJ({cpn:a,df:this.Ra.get(),Hm:!0});if(this.layout.layoutId===a)if(void 0!==this.j){var d=this.j;3!==c&&KF("Unexpected transition reason when core initiated the exit",this.slot,this.layout,{exitingCpn:a,enteringCpn:b,transitionReason:c});this.Jk.yc(this.slot,this.layout,d);this.j=void 0}else this.B&&KF("Expected a video to exit at most once",this.slot,this.layout),this.B=!0,2===c?pL(this.Me,this.layout,"normal"):4===c?(a=new pI("Non video ad expired during SSAP single layout.",
{playerErrorCode:"non_video_expired"},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),this.Vc.lB("non_video_expired",a,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),this.Jk.kf(this.slot,this.layout,a,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")):KF("Unexpected transition reason when player initiated the exit",this.slot,this.layout,{exitingCpn:a,enteringCpn:b,transitionReason:c})};
g.k.Lx=function(a){OJ({cpn:a,df:this.Ra.get(),Hm:!0});this.layout.layoutId===a&&eN(this.Hd,this.slot.slotId)};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.Jk.kf(this.Xb(),a,new pI("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.Ea.get().addListener(this),zI(this.Yb(),this),this.Vc.startRendering(this.layout),this.Jk.uc(this.slot,this.layout))};
g.k.kd=function(a,b){this.Vc.kd(this.layout,b);this.Ea.get().removeListener(this);this.B?(this.Jk.yc(this.slot,this.layout,b),this.B=!1):(void 0!==this.j&&KF("Expected the layout to be requested to exit at most once",this.slot,this.layout),this.j=b,this.zc.get().finishSegmentByCpn(this.layout.layoutId,this.Ra.get().Xd(1).clientPlaybackNonce))};
g.k.Xb=function(){return this.slot};
g.k.Xa=function(){return this.layout};
g.k.us=function(){this.Vc.us()};
g.k.xs=function(){this.Vc.xs()};
g.k.Rx=function(a,b){KF("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.slot,this.layout,{requestingSlot:a,requestingLayout:b})};
g.k.uc=function(a,b){this.Vc.uc(a,b)};
g.k.yc=function(a,b,c){b.layoutId===this.layout.layoutId&&AI(this.Yb(),this);this.Vc.yc(a,b,c)};
g.k.Rg=function(){};
g.k.Nh=function(){};
g.k.Kh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Lh=function(){};
g.k.Mh=function(){};
g.k.kh=function(){};
g.k.pg=function(){};
g.k.Qg=function(){};
g.k.Ii=function(a){this.Vc.Ii(a)};
g.k.ag=function(a){if(a.state.isError()){var b,c=new pI("There was a player error during SSAP single media layout.",{playerErrorCode:null==(b=a.state.Ng)?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),d;this.Vc.lB(null==(d=a.state.Ng)?void 0:d.errorCode,c,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");this.Jk.kf(this.slot,this.layout,c,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Vc.ag(a)};
g.k.onFullscreenToggled=function(a){this.Vc.onFullscreenToggled(a)};
g.k.lh=function(a){this.Vc.lh(a)};
g.k.Zi=function(a){this.Vc.Zi(a)};
g.k.onVolumeChange=function(){this.Vc.onVolumeChange()};
g.k.Cj=function(){};
g.k.Fj=function(){};
g.k.Dj=function(){};
g.y(uFa,kL);g.k=uFa.prototype;g.k.sQ=function(){return 2===this.Ea.get().getPresentingPlayerType()};
g.k.Lx=function(a){OJ({cpn:a,df:this.Ra.get(),Hm:!0});this.layout.layoutId===a&&(eN(this.Hd,this.slot.slotId),this.Jk.uc(this.slot,this.layout))};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)return void KF("wrong layout");this.Ea.get().addListener(this);zI(this.Yb(),this);this.Vc.startRendering(this.layout)};
g.k.ag=function(a){this.Vc.ag(a)};
g.k.yc=function(a,b,c){this.Vc.yc(a,b,c)};
g.k.release=function(){kL.prototype.release.call(this);AI(this.Yb(),this)};
g.k.kd=function(a,b){a.layoutId!==this.layout.layoutId?KF("wrong layout"):(this.Vc.kd(this.layout,b),this.sQ()&&this.zc.get().finishSegmentByCpn(this.layout.layoutId,this.Ra.get().Xd(1).clientPlaybackNonce),this.Ea.get().removeListener(this))};
g.k.Mx=function(a,b,c){PJ({cpn:a,df:this.Ra.get(),Hm:!0});this.Xa().layoutId===a&&(2>this.Vc.dA().currentState&&pL(this.Me,this.layout,eFa(c)),this.Jk.yc(this.slot,this.layout,this.Vc.dA().j))};g.y(lL,g.I);g.k=lL.prototype;g.k.Xb=function(){return this.slot};
g.k.Xa=function(){return this.layout};
g.k.dL=function(){};
g.k.jf=function(){return this.rf[this.cw]};
g.k.Uh=function(){return this.cw};
g.k.us=function(a,b){var c=this.jf();b.layoutId!==nL(c,a,b)?KF("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.us()};
g.k.xs=function(a,b){var c=this.jf();b.layoutId!==nL(c,a,b)?KF("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.xs()};
g.k.Rx=function(a,b){var c=this.jf();yFa(this,a,b);zFa(c,a,b)&&this.nJ(c.Xb(),c.Xa(),"skipped")};
g.k.fL=function(a,b){var c=this.jf();AFa(this);BFa(c,a,b)&&(a=CFa(this,c,a,b),void 0!==a&&(this.qf()?this.LI(c.Xa(),a,"skipped"):EFa(this,c.Xb(),c.Xa(),a)))};
g.k.Z_=function(a,b){var c=Object.assign({},mL(this),{layoutId:b.layoutId}),d=c.layoutId,e=c.Hm;if(c.aq){var f={};NJ(c.df,"wrse",(f.ec=d,f.is=e,f.ctp=MJ(d),f))}ZBa(this.Iq,a,b)};
g.k.uc=function(a,b){var c;null==(c=this.jf())||c.uc(a,b)};
g.k.yc=function(a,b,c){b.layoutId===this.Xa().layoutId&&(this.ax=!1,AI(this.Yb(),this));var d;null==(d=this.jf())||d.yc(a,b,c)};
g.k.Ii=function(a){var b;null==(b=this.jf())||b.Ii(a)};
g.k.TJ=function(a,b,c){-1===this.Uh()&&(this.callback.uc(this.slot,this.layout),this.cw++);var d=this.jf();d?(d.lB(a,b,c),this.qf()&&this.callback.kf(this.slot,this.layout,b,c)):KF("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.Uh()),layoutId:this.Xa().layoutId})};
g.k.onFullscreenToggled=function(a){var b;null==(b=this.jf())||b.onFullscreenToggled(a)};
g.k.lh=function(a){var b;null==(b=this.jf())||b.lh(a)};
g.k.Zi=function(a){var b;null==(b=this.jf())||b.Zi(a)};
g.k.onVolumeChange=function(){var a;null==(a=this.jf())||a.onVolumeChange()};
g.k.yO=function(a,b,c){$Ba(this.Iq,a,b,c);this.YP=!1};
g.k.wT=function(a){this.YP=!0;a.startRendering(a.Xa())};
g.k.init=function(){var a=sI(this.Xa().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);if(1>this.rf.length)throw new qI("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.rf.length)});if(a=sI(this.Xa().Ba,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=this;a=g.u(this.rf);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),WBa(this.Iq,this.slot,b.Xa()),XBa(this.Iq,this.slot,b.Xa());if(this.qf())for(this.Ra.get().addListener(this),
fEa(xFa(this),this.Ra.get()),a=xFa(this),a=g.u(a),b=a.next();!b.done;b=a.next())this.ON(b.value)};
g.k.ON=function(a){var b=sI(a.Ba,"metadata_type_player_vars");b?("LAYOUT_TYPE_MEDIA"!==a.layoutType&&KF("Non-video ad contains playerVars",this.slot,a),this.Yc.get().addPlayerResponseForAssociation({playerVars:b})):(a=tFa(a),this.Yc.get().addPlayerResponseForAssociation({TI:a}))};
g.k.release=function(){var a=sI(this.Xa().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);if(a=sI(this.Xa().Ba,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=null;a=g.u(this.rf);for(var b=a.next();!b.done;b=a.next())b=b.value,YBa(this.Iq,this.slot,b.Xa()),b.release();this.qf()&&(this.Ra.get().removeListener(this),gEa())};
g.k.xv=function(a){return a.layoutId!==this.Xa().layoutId?(this.callback.kf(this.Xb(),a,new pI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Xa().layoutId+("and LayoutType: "+this.Xa().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
g.k.MD=function(){this.Ea.get().addListener(this);zI(this.Yb(),this)};
g.k.ag=function(a){if(a.state.isError()){var b,c;this.TJ(null==(b=a.state.Ng)?void 0:b.errorCode,new pI("There was a player error during this media layout.",{playerErrorCode:null==(c=a.state.Ng)?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(b=this.jf())&&b.ag(a)};
g.k.qf=function(){var a=sI(this.Xb().Ba,"metadata_type_eligible_for_ssap");return void 0===a?(KF("Expected SSAP eligibility in PlayerBytes slots",this.Xb(),this.Xa()),!1):this.Aa.get().qf(a)};
g.k.Dj=function(){};
g.k.Rg=function(){};
g.k.Nh=function(){};
g.k.Kh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Lh=function(){};
g.k.Mh=function(){};
g.k.kh=function(){};
g.k.pg=function(){};
g.k.Qg=function(){};
g.k.Cj=function(){};
g.k.Fj=function(){};
g.y(HFa,lL);g.k=HFa.prototype;g.k.PQ=function(){var a=this.jf();a&&a.Tw()};
g.k.d0=function(a,b,c){this.nJ(a,b,c)};
g.k.b0=function(a,b){this.nJ(a,b,"error")};
g.k.nJ=function(a,b,c){var d=this;oL(this,a,b,c,function(){DFa(d,d.Uh()+1)})};
g.k.startRendering=function(a){this.xv(a)&&(this.MD(),p1(this.Aa.get())&&j1(this.Ac.get()),jib(this.Aa.get())||Mib(this.Ea.get()),p1(this.Aa.get())||j1(this.Ac.get()),-1===this.Uh()&&DFa(this,this.Uh()+1))};
g.k.kd=function(a,b){var c=this;this.ax=!0;this.Uh()===this.rf.length?this.callback.yc(this.slot,this.layout,b):(a=this.jf(),a.kd(a.Xa(),b),this.hQ=function(){c.callback.yc(c.slot,c.layout,b)});
this.Ea.get().J.py();Vib(this.Yc.get(),{});a=s1(this.Ea.get(),1);a.isPaused()&&!g.MF(a,2)&&this.Ea.get().playVideo();this.Ea.get().removeListener(this);this.ax&&this.PQ()};
g.k.Mx=function(){};
g.k.Lx=function(){};
g.k.vy=function(){};
g.k.LI=function(){};
g.y(qL,lL);g.k=qL.prototype;g.k.Mx=function(a,b){var c=this;PJ(Object.assign({},mL(this),{cpn:a}));var d=this.jf();d&&this.YP&&(d.Xa().layoutId!==a&&KF("Unexpected active subLRA when previous playback ends",this.slot,this.layout),this.dX=function(e){e.layoutId!==a&&KF("Unexpected previous CPN when sublayout exit is confirmed",c.slot,c.layout);c.rf.some(function(f){return f.Xa().layoutId===b})||(c.cw=c.rf.length,pL(c.Jh,c.layout,"normal"))},d.WP())};
g.k.Lx=function(a){OJ(Object.assign({},mL(this),{cpn:a}));var b=this.rf.findIndex(function(c){return c.Xa().layoutId===a});
-1!==b&&(-1===this.Uh()&&eN(this.Hd,this.slot.slotId),GFa(this,b))};
g.k.d0=function(a,b,c){a=Object.assign({},mL(this),{layoutId:b.layoutId,layoutExitReason:c});var d=a.layoutId,e=a.layoutExitReason,f={};NJ(a.df,"prse",(f.xc=d,f.ler=e,f.ctp=MJ(d),f));IFa(this,b,c)};
g.k.b0=function(a,b,c,d){this.callback.kf(this.slot,this.layout,c,d)};
g.k.nJ=function(a,b,c){this.LI(b,this.Uh()+1,c)};
g.k.startRendering=function(a){this.xv(a)&&this.MD()};
g.k.kd=function(a,b){var c=this;if(this.Uh()===this.rf.length)this.callback.yc(this.slot,this.layout,b);else{a=this.jf();if(!a){KF("Expected active sublayout when composite layout stops rendering",this.slot,this.layout,{activeSubLayoutIndex:this.Uh(),subLraCount:this.rf.length});return}a.kd(a.Xa(),b);this.hQ=function(){c.callback.yc(c.slot,c.layout,b)};
this.zc.get().finishSegmentByCpn(a.Xa().layoutId,this.Ra.get().Xd(1).clientPlaybackNonce)}this.Ea.get().removeListener(this)};
g.k.vy=function(a,b,c){this.LI(b,this.Uh()+1,c)};
g.k.LI=function(a,b,c){var d=this;oL(this,this.slot,a,c,function(){if(b>=d.rf.length+1||0>b)KF("Unexpected target sublayout index",d.slot,d.layout,{targetSubLayoutIndex:b});else{d.cw=b;if(b===d.rf.length){var e=d.Ra.get().Xd(1).clientPlaybackNonce;pL(d.Jh,d.layout,"normal")}else e=d.rf[b].Xa().layoutId;d.zc.get().finishSegmentByCpn(a.layoutId,e)}})};
g.y(JFa,qL);g.k=JFa.prototype;g.k.jf=function(){return this.Ai};
g.k.Uh=function(){var a=this;return this.rf.findIndex(function(b){var c;return b.Xa().layoutId===(null==(c=a.Ai)?void 0:c.Xa().layoutId)})};
g.k.wT=function(a){JF(void 0===this.Ai,"replacing another adapter");this.Ai=a;a.startRendering(a.Xa())};
g.k.yO=function(a,b,c){$Ba(this.Iq,a,b,c);var d;JF(b.layoutId===(null==(d=this.Ai)?void 0:d.Xa().layoutId),"currentAdapter does not match exiting layout",{slot:a?"slot:  "+a.slotType:"",subLayout:Xya(b)})&&(this.Ai=void 0)};
g.k.release=function(){qL.prototype.release.call(this);JF(void 0===this.Ai,"currentAdapter is still active during release");this.Ai=void 0};
g.k.sQ=function(){return 2===this.Ea.get().getPresentingPlayerType()};
g.k.kd=function(a,b){JF(a.layoutId===this.Xa().layoutId,"StopRendering for wrong layout")&&eEa(this.xw.B,b)&&this.Ai&&(a=this.Ai,2>a.dA().currentState&&a.kd(a.Xa(),b),this.sQ()&&this.zc.get().finishSegmentByCpn(this.Ai.Xa().layoutId,this.Ra.get().Xd(1).clientPlaybackNonce))};
g.k.yc=function(a,b,c){qL.prototype.yc.call(this,a,b,c);b.layoutId===this.Xa().layoutId&&this.Ea.get().removeListener(this)};
g.k.fg=function(){return this.Ra.get().Xd(1).clientPlaybackNonce};
g.k.Mx=function(a,b,c){PJ(Object.assign({},mL(this),{cpn:a}));this.Ai&&this.Ai.Xa().layoutId===a&&KFa(this,this.Ai,c);b===this.fg()&&(void 0!==this.Ai&&(KF("active adapter is not properly exited",this.slot,this.layout,{activeLayout:Xya(this.Ai.Xa())}),KFa(this,this.Ai,c)),2>this.xw.B.currentState&&pL(this.Jh,this.layout,eFa(c)),this.callback.yc(this.slot,this.layout,this.xw.B.j))};
g.k.startRendering=function(a){this.xv(a)&&(a=this.xw,JF(1===a.j,"tickStartRendering: state is not initial"),a.j=2,this.MD())};
g.k.Lx=function(a){OJ(Object.assign({},mL(this),{cpn:a}));var b=this.rf.find(function(c){return c.Xa().layoutId===a});
b?(2!==this.xw.j&&(eN(this.Hd,this.slot.slotId),JF(2===this.xw.j,"Expect started"),this.callback.uc(this.slot,this.layout)),this.wT(b),ZBa(this.Iq,this.slot,b.Xa())):LFa(this,a)};
g.k.Rx=function(a,b){yFa(this,a,b);var c=this.jf();c?zFa(c,a,b)&&MFa(this,"skipped"):NFa(this,"onSkipRequested")};
g.k.fL=function(a,b){var c;a:{if(c=this.jf()){if(AFa(this),BFa(c,a,b)&&(a=CFa(this,c,a,b),void 0!==a)){c={O6:c,uea:this.rf[a]};break a}}else NFa(this,"SkipWithAdPodSkip");c=void 0}if(a=c)c=a.O6,a=a.uea,c.kd(c.Xa(),"skipped"),a=a.Xa().layoutId,this.zc.get().finishSegmentByCpn(c.Xa().layoutId,a)};
g.k.Z_=function(){KF("Not used in html5_ssap_fix_layout_exit")};
g.k.ag=function(a){var b;null==(b=this.jf())||b.ag(a)};
g.k.TJ=function(){KF("Not used in html5_ssap_fix_layout_exit")};
g.k.vy=function(a,b,c){var d;if((null==(d=this.jf())?void 0:d.Xa().layoutId)!==b.layoutId)return void KF("requestToExitSubLayout: wrong layout");MFa(this,c)};g.y(PFa,g.I);g.k=PFa.prototype;g.k.Xb=function(){return this.Vc.Xb()};
g.k.Xa=function(){return this.Vc.Xa()};
g.k.init=function(){var a=sI(this.Xa().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.bx()};
g.k.bx=function(){this.Vc.init()};
g.k.release=function(){var a=sI(this.Xa().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.oy()};
g.k.oy=function(){this.Vc.release()};
g.k.us=function(){this.Vc.us()};
g.k.xs=function(){this.Vc.xs()};
g.k.Rx=function(a,b){KF("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.Xb(),this.Xa(),{requestingSlot:a,requestingLayout:b})};
g.k.startRendering=function(a){a.layoutId!==this.Xa().layoutId?this.callback.kf(this.Xb(),a,new pI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Xa().layoutId+("and LayoutType: "+this.Xa().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Ea.get().addListener(this),zI(this.Yb(),this),p1(this.Aa.get())&&j1(this.Ac.get()),jib(this.Aa.get())||Mib(this.Ea.get()),p1(this.Aa.get())||j1(this.Ac.get()),this.Is(a))};
g.k.Is=function(a){this.Vc.startRendering(a)};
g.k.kd=function(a,b){this.ax=!0;this.jM(a,b);this.Ea.get().J.py();Vib(this.Yc.get(),{});a=s1(this.Ea.get(),1);a.isPaused()&&!g.MF(a,2)&&this.Ea.get().playVideo();this.Ea.get().removeListener(this);this.ax&&this.PQ()};
g.k.jM=function(a,b){this.Vc.kd(a,b)};
g.k.uc=function(a,b){this.Vc.uc(a,b)};
g.k.yc=function(a,b,c){b.layoutId===this.Xa().layoutId&&(this.ax=!1,AI(this.Yb(),this));this.Vc.yc(a,b,c);b.layoutId===this.Xa().layoutId&&FFa(this.Ac.get())};
g.k.PQ=function(){this.Vc.Tw()};
g.k.Ii=function(a){this.Vc.Ii(a)};
g.k.ag=function(a){if(a.state.isError()){var b,c;this.TJ(null==(b=a.state.Ng)?void 0:b.errorCode,new pI("There was a player error during this media layout.",{playerErrorCode:null==(c=a.state.Ng)?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Vc.ag(a)};
g.k.TJ=function(a,b,c){this.Vc.lB(a,b,c)};
g.k.onFullscreenToggled=function(a){this.Vc.onFullscreenToggled(a)};
g.k.lh=function(a){this.Vc.lh(a)};
g.k.Zi=function(a){this.Vc.Zi(a)};
g.k.onVolumeChange=function(){this.Vc.onVolumeChange()};
g.k.Dj=function(){};
g.k.Rg=function(){};
g.k.Nh=function(){};
g.k.Kh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Lh=function(){};
g.k.Mh=function(){};
g.k.kh=function(){};
g.k.pg=function(){};
g.k.Qg=function(){};
g.k.Cj=function(){};
g.k.Fj=function(){};g.k=rL.prototype;g.k.Xb=function(){return this.slot};
g.k.Xa=function(){return this.layout};
g.k.init=function(){this.Bf.get().addListener(this);this.Ea.get().addListener(this);this.bx();var a=sI(this.layout.Ba,"metadata_type_layout_enter_ms"),b=sI(this.layout.Ba,"metadata_type_layout_exit_ms"),c,d=null==(c=this.Ra.get().Aw)?void 0:c.clientPlaybackNonce;c=this.layout.ac.adClientDataEntry;sL(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.Bf.get();e=RFa(e.C,a,b);null!==e&&(sL(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,
cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.zc.get().Dz(e,b))};
g.k.release=function(){this.oy();this.Bf.get().removeListener(this);this.Ea.get().removeListener(this)};
g.k.startRendering=function(){this.Is();this.callback.uc(this.slot,this.layout)};
g.k.kd=function(a,b){this.jM(b);null!==this.driftRecoveryMs&&(TFa(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(SFa(this)-sI(this.layout.Ba,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ea.get().J.Dr()).toString()}),this.driftRecoveryMs=null);this.callback.yc(this.slot,this.layout,b)};
g.k.I_=function(){return!1};
g.k.E_=function(a){var b=sI(this.layout.Ba,"metadata_type_layout_enter_ms"),c=sI(this.layout.Ba,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;sL(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:null==(d=this.Ra.get().Aw)?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.ac.adClientDataEntry}});this.zc.get().Dz(a,c)}};
g.k.Ii=function(a){this.u_(a);a=A1(this.Ea.get(),2,!0);if(HJa(this.D.get(),this.layout.layoutId)){var b=sI(this.layout.Ba,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=SFa(this),e=this.Ea.get().J.Dr(),f=Math.min(a+e,d/1E3);f<=a?TFa(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(TFa(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.Ea.get().J.seekTo(f,void 0,void 0,1))}}};
g.k.lh=function(){};
g.k.Dj=function(){};
g.k.Zi=function(){};
g.k.onVolumeChange=function(){};
g.k.Cj=function(){};
g.k.Fj=function(){};g.y(UFa,rL);g.k=UFa.prototype;g.k.bx=function(){this.Ra.get().addListener(this);this.C.forEach(function(a){a.init()});
null!=this.B&&tL(this.Oa.get(),"ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.B)};
g.k.oy=function(){this.Ra.get().removeListener(this);this.j=null;this.C.forEach(function(a){a.release()})};
g.k.Is=function(){if(this.j)KF("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.B)});else{var a,b=null==(a=this.Ra.get().Aw)?void 0:a.layoutId;WFa(this,b)}};
g.k.jM=function(a){var b,c,d,e;null==(d=this.j)||null==(e=d.fm)||e.kd(null==(b=this.j)?void 0:null==(c=b.fm)?void 0:c.Xa(),a);this.j=null};
g.k.dL=function(a){var b=a.videoId;a=a.layoutId;if("nPpU29QrbiU"===b){var c,d;tL(this.Oa.get(),"ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.B+";slrs."+!!this.j+";slrslid."+(null==(c=this.j)?void 0:null==(d=c.fm)?void 0:d.Xa().layoutId))}var e;if(this.j&&(null==(e=this.j.fm)?void 0:e.Xa().layoutId)!==a){var f,h;null==(h=this.j.fm)||h.kd(null==(f=this.j.fm)?void 0:f.Xa(),"normal");WFa(this,a)}};
g.k.Mx=function(){};
g.k.Lx=function(){};
g.k.u_=function(){};
g.k.ag=function(){};
g.k.onFullscreenToggled=function(){};g.k=jGa.prototype;g.k.Xb=function(){return this.slot};
g.k.Xa=function(){return this.layout};
g.k.dA=function(){KF("Should not get exitStateMachine for DAI");return new dEa};
g.k.init=function(){var a=this;sI(this.layout.Ba,"metadata_type_player_bytes_callback_ref").current=this;this.md=XFa(this.slot,this.layout,sI(this.layout.Ba,"metadata_type_player_vars"),sI(this.layout.Ba,"metadata_type_layout_enter_ms"),sI(this.layout.Ba,"metadata_type_layout_exit_ms"),1E3*sI(this.layout.Ba,"metadata_type_video_length_seconds"),this.zc.get(),this.Js.get(),function(){var d=Object,e=d.assign,f=mGa(a.layout);var h=sI(a.slot.Ba,"metadata_type_fulfilled_layout");h=Object.assign({},mGa(h),
{adPlacementConfig:sI(h.Ba,"metadata_type_ad_placement_config"),subLayouts:sI(h.Ba,"metadata_type_sub_layouts").map(mGa)});return e.call(d,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},f,{compositeLayout:h,hasSurveyOverlay:mI(a.layout.Ba,"metadata_type_survey_overlay"),surveyOverlay:sI(a.layout.Ba,"metadata_type_survey_overlay")})},this.Oa.get());
this.Ea.get().addListener(this);var b=sI(this.layout.Ba,"metadata_type_video_length_seconds"),c=sI(this.layout.Ba,"metadata_type_active_view_traffic_type");oJ(this.layout.Db)&&t1(this.ub.get(),this.layout.layoutId,{Ys:c,GH:b,listener:this});WBa(this.callback,this.slot,this.layout);XBa(this.callback,this.slot,this.layout)};
g.k.release=function(){this.Ea.get().removeListener(this);oJ(this.layout.Db)&&u1(this.ub.get(),this.layout.layoutId);this.Aa.get();YBa(this.callback,this.slot,this.layout)};
g.k.startRendering=function(){var a=this;mI(this.layout.Ba,"metadata_type_survey_overlay")&&tL(this.Oa.get(),"ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.kc)KF("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:mI(this.layout.Ba,"metadata_type_survey_overlay"),surveyOverlay:sI(this.layout.Ba,"metadata_type_survey_overlay")});else{this.kc={xo:null,VG:!1};if(hib(this.Aa.get())){var b;this.adCpn=null==(b=this.Ra.get().Xd(2))?void 0:b.clientPlaybackNonce}this.Aa.get().J.U().experiments.fb("html5_disable_sodar_for_tvhtml5")||
YFa(this.slot,this.layout,this.gf.get());this.Za.Ub("start");if(JM(this.Aa.get())){b=s1(this.Ea.get());var c=sI(this.layout.Ba,"metadata_type_video_length_seconds"),d=A1(this.Ea.get(),2,!1);$Fa(this.Za,this.kc.xo,b,c,d,function(){return void lGa(a,"teois")})}ZBa(this.callback,this.slot,this.layout);
mI(this.layout.Ba,"metadata_type_survey_overlay")&&tL(this.Oa.get(),"ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.k.kd=function(a,b){var c=this;if(this.kc){if(JM(this.Aa.get()))if(null===this.md)KF("Unexpected media sub layout exited without a timeline playback ID");else{a=sI(this.layout.Ba,"metadata_type_video_length_seconds");var d=Kib(this.Ea.get(),this.md);hib(this.Aa.get())&&void 0===this.adCpn&&KF("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:sI(this.layout.Ba,"metadata_type_content_cpn")});cDa(this.Za,d,this.adCpn);aGa(this.Za,null,this.kc.xo,a,d,function(e){return void kGa(c,
e,"fue")},hib(this.Aa.get()))}this.kc=null;
$Ba(this.callback,this.slot,this.layout,b)}else KF("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.lB=function(){};
g.k.Tw=function(){};
g.k.WP=function(){};
g.k.Ii=function(a){var b=this;if(this.kc){if(vJ(this.Za,"impression")){var c=s1(this.Ea.get()),d=sI(this.layout.Ba,"metadata_type_video_length_seconds");bGa(this.Za,c,a,this.kc.xo,d,function(e){return void kGa(b,e,"tpaqe")})}this.kc.xo=a}};
g.k.ag=function(a){var b=this;if(this.kc){JM(this.Aa.get())||this.kc.VG||(this.kc.VG=!0,a=new g.LF(a.state,new g.LK));var c=sI(this.layout.Ba,"metadata_type_video_length_seconds"),d=A1(this.Ea.get(),2,!1);ZFa(this.Za,this.kc.xo,a,c,d,!JM(this.Aa.get()),function(){return void lGa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){cGa(this.Za,a)};
g.k.lh=function(){};
g.k.Dj=function(){};
g.k.Zi=function(){};
g.k.Rx=function(a,b){var c;a=this.Oa.get();var d="ti."+vJ(this.Za,"impression")+";ts."+vJ(this.Za,"skip")+";hp.",e;var f=!(null==(e=this.Za.C.get("skip"))||!e.length);tL(a,"ads_dsr",d+f+";cpn."+sI(this.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(c=this.Ra.get().Xd(2))?void 0:c.clientPlaybackNonce)+";sl."+(sI(b.Ba,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));vJ(this.Za,"impression")&&this.Za.Ub("skip");b=this.Ra.get().Xd(1).jo&&this.Aa.get().J.U().experiments.fb("html5_lifa_skip_to_content");
this.zc.get().Gs(b)||KF("Unexpected failure to skip a server stitched ad",this.slot,this.layout)};
g.k.onVolumeChange=function(){};
g.k.uc=function(){};
g.k.yc=function(){};
g.k.us=function(){};
g.k.xs=function(){};
g.k.NL=function(){dGa(this.Za)};
g.k.Jx=function(){eGa(this.Za)};
g.k.Ix=function(){fGa(this.Za)};
g.k.Kx=function(){gGa(this.Za)};
g.k.Gx=function(){hGa(this.Za)};
g.k.Hx=function(){iGa(this.Za)};
g.k.Cj=function(){};
g.k.Fj=function(){};g.y(nGa,rL);g.k=nGa.prototype;
g.k.bx=function(){var a=this;sI(this.layout.Ba,"metadata_type_player_bytes_callback_ref").current=this;var b=sI(this.layout.Ba,"metadata_type_layout_enter_ms"),c=sI(this.layout.Ba,"metadata_type_layout_exit_ms");this.md=XFa(this.slot,this.layout,sI(this.layout.Ba,"metadata_type_player_vars"),b,c,1E3*sI(this.layout.Ba,"metadata_type_video_length_seconds"),this.zc.get(),this.Js.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:sI(a.layout.Ba,"metadata_type_ad_placement_config")}},
this.Oa.get());
var d=sI(this.layout.Ba,"metadata_type_video_length_seconds"),e=sI(this.layout.Ba,"metadata_type_active_view_traffic_type");oJ(this.layout.Db)&&t1(this.ub.get(),this.layout.layoutId,{Ys:e,GH:d,listener:this})};
g.k.oy=function(){oJ(this.layout.Db)&&u1(this.ub.get(),this.layout.layoutId)};
g.k.Is=function(){var a=this;if(this.kc)KF("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.kc={xo:null,VG:!1},YFa(this.slot,this.layout,this.gf.get()),this.Za.Ub("start"),JM(this.Aa.get())){var b=s1(this.Ea.get()),c=sI(this.layout.Ba,"metadata_type_video_length_seconds"),d=A1(this.Ea.get(),2,!1);$Fa(this.Za,this.kc.xo,b,c,d,function(){return void oGa(a,"teois")})}};
g.k.jM=function(){var a=this;if(this.kc){if(JM(this.Aa.get()))if(null===this.md)KF("Unexpected single media layout exited without a timeline playback ID");else{var b=sI(this.layout.Ba,"metadata_type_video_length_seconds"),c=Kib(this.Ea.get(),this.md);cDa(this.Za,c);aGa(this.Za,null,this.kc.xo,b,c,function(d){return void pGa(a,d,"fue")})}this.kc=null}else KF("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.u_=function(a){var b=this;if(this.kc){if(vJ(this.Za,"impression")){var c=s1(this.Ea.get()),d=sI(this.layout.Ba,"metadata_type_video_length_seconds");bGa(this.Za,c,a,this.kc.xo,d,function(e){return void pGa(b,e,"tpaqe")})}this.kc.xo=a}};
g.k.ag=function(a){var b=this;if(this.kc){JM(this.Aa.get())||this.kc.VG||(this.kc.VG=!0,a=new g.LF(a.state,new g.LK));var c=sI(this.layout.Ba,"metadata_type_video_length_seconds"),d=A1(this.Ea.get(),2,!1);ZFa(this.Za,this.kc.xo,a,c,d,!JM(this.Aa.get()),function(){return void oGa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){cGa(this.Za,a)};
g.k.NL=function(){dGa(this.Za)};
g.k.Jx=function(){eGa(this.Za)};
g.k.Ix=function(){fGa(this.Za)};
g.k.Kx=function(){gGa(this.Za)};
g.k.Gx=function(){hGa(this.Za)};
g.k.Hx=function(){iGa(this.Za)};qGa.prototype.build=function(a,b,c,d){if(mI(c.Ba,"metadata_type_dai")){var e=sI(d.Ba,"metadata_type_ad_placement_config");zJ(d,{Ld:"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(" "),Ee:["LAYOUT_TYPE_MEDIA"]})&&void 0!==e?(e=new rJ(d.Db,this.Oa,e,d.layoutId,null),e=new nGa(a,c,d,this.Ra,this.zc,this.Js,this.Bf,this.Ea,e,this.Oa,this.gf,this.j,this.ub,this.Aa)):
e=null;if(e)return e;a:{var f=sI(d.Ba,"metadata_type_sub_layouts"),h=sI(d.Ba,"metadata_type_ad_placement_config");if(zJ(d,{Ld:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Ee:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==f&&void 0!==h){e=[];f=g.u(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=sI(l.Ba,"metadata_type_media_sub_layout_index");if(!zJ(l,{Ld:"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(" "),
Ee:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new rJ(l.Db,this.Oa,h,l.layoutId,m);e.push(new jGa(b,c,l,this.zc,m,this.Ea,this.Js,this.ub,this.gf,this.Aa,this.Oa,this.Ra))}b=new rJ(d.Db,this.Oa,h,d.layoutId);a=new UFa(a,c,d,this.Ra,this.zc,this.Bf,this.Ea,b,this.Oa,this.j,e)}else a=null}if(a)return a}else if(a=QFa(a,b,c,d,this.Yb,this.Hd,this.Jh,this.Oa,this.ub,this.gf,this.Yc,this.Ra,this.Ea,this.Oc,this.Ac,this.hd,this.Lb,this.Wf,this.Aa,this.zc,this.context))return a;throw new pI("Unsupported layout with type: "+
d.layoutType+" and client metadata: "+tI(d.Ba)+" in PlayerBytesLayoutRenderingAdapterFactory.");};vL.prototype.build=function(a,b,c,d){if(a=QFa(a,b,c,d,this.Yb,this.Hd,this.Jh,this.Oa,this.ub,this.gf,this.Yc,this.Ra,this.Ea,this.Oc,this.Ac,this.hd,this.Lb,this.Wf,this.Aa,this.zc,this.context))return a;throw new pI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tI(d.Ba)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.y(rGa,TE);g.y(wL,kJ);wL.prototype.startRendering=function(a){var b=lJ(this.Za),c={adsClientData:this.layout.ac};this.j.push(new rGa(sI(this.layout.Ba,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Xa().layoutId,c));kJ.prototype.startRendering.call(this,a);this.callback.uc(this.slot,a)};
wL.prototype.hg=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=sI(this.layout.Ba,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.Rx(this.slot,this.layout):KF("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
wL.prototype.va=function(){kJ.prototype.va.call(this)};var sGa=new g.Ke(320,63);g.y(vGa,TE);g.y(zL,kJ);g.k=zL.prototype;g.k.Ii=function(){};
g.k.ag=function(){};
g.k.onFullscreenToggled=function(){};
g.k.lh=function(a){a&&XM(this.D,this.layout)};
g.k.Dj=function(){};
g.k.Zi=function(a){var b=yL(this.layout);if(this.N=tGa(a,Lib(this.Ea.get())))b.onErrorCommand&&this.Lb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),XM(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Lw=function(){return this.Xa().layoutId};
g.k.gP=function(){return this.N};
g.k.hg=function(a){this.G.hg(a);"in_video_overlay_close_button"===a&&XM(this.D,this.layout)};
g.k.RJ=function(a){"invideo-overlay"===a&&XM(this.D,this.layout)};
g.k.kq=function(){this.G.kq()};
g.k.startRendering=function(a){kJ.prototype.startRendering.call(this,a);this.callback.uc(this.slot,a);this.K.Xs=this};
g.k.kd=function(a,b){kJ.prototype.kd.call(this,a,b);g2(this.K,this)};
g.k.init=function(){kJ.prototype.init.call(this);Bib(this.Oa.get(),this);this.Ea.get().addListener(this);this.j.push(new vGa(yL(this.layout),lJ(this.Za),this.layout.layoutId,{adsClientData:this.layout.ac}))};
g.k.release=function(){kJ.prototype.release.call(this);this.Ea.get().removeListener(this);Cib(this.Oa.get(),this)};
g.k.Cj=function(){};
g.k.Fj=function(){};g.y(AL,kJ);g.k=AL.prototype;g.k.init=function(){kJ.prototype.init.call(this);Bib(this.Oa.get(),this);this.Ea.get().addListener(this);this.j.push(new vGa(yL(this.layout),lJ(this.Za),this.layout.layoutId,{adsClientData:this.layout.ac}))};
g.k.kq=function(){this.G.kq()};
g.k.startRendering=function(a){kJ.prototype.startRendering.call(this,a);this.callback.uc(this.slot,a);this.K.Xs=this};
g.k.kd=function(a,b){kJ.prototype.kd.call(this,a,b);g2(this.K,this)};
g.k.hg=function(a){this.G.hg(a);"in_video_overlay_close_button"===a&&XM(this.D,this.layout)};
g.k.PP=function(a){if("invideo-overlay"===a){a=RJa(this.Z,this.layout);a=g.u(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.RJ=function(a){"invideo-overlay"===a&&XM(this.D,this.layout)};
g.k.OP=function(a){if("invideo-overlay"===a){a=RJa(this.Z,this.layout);a=g.u(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.Ii=function(){};
g.k.ag=function(){};
g.k.onFullscreenToggled=function(){};
g.k.lh=function(a){a&&XM(this.D,this.layout)};
g.k.Dj=function(){};
g.k.Zi=function(a){var b=yL(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=Lib(this.Ea.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&0!=c.thumbnails.length&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.Ke(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.Ke(0,0)}if(this.N=tGa(a,d,c))b.onErrorCommand&&this.Lb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),XM(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Lw=function(){return this.Xa().layoutId};
g.k.gP=function(){return this.N};
g.k.release=function(){kJ.prototype.release.call(this);this.Ea.get().removeListener(this);Cib(this.Oa.get(),this)};
g.k.Cj=function(){};
g.k.Fj=function(){};BL.prototype.hg=function(a){"ad-info-hover-text-button"===a&&((this.j=this.Ea.get().qo(1))||this.Ea.get().pauseVideo())};
BL.prototype.kq=function(){this.j||this.Ea.get().resumeVideo(1)};g.y(yGa,TE);g.y(zGa,kJ);g.k=zGa.prototype;g.k.init=function(){kJ.prototype.init.call(this);this.Ea.get().addListener(this)};
g.k.startRendering=function(a){var b=sI(this.layout.Ba,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.j.push(new yGa(b,this.layout.layoutId,{adsClientData:this.layout.ac}));kJ.prototype.startRendering.call(this,a);this.callback.uc(this.slot,a)};
g.k.uc=function(){};
g.k.hg=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=sI(this.layout.Ba,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.us(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.xs(this.slot,this.layout):KF("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.k.Zi=function(a){450>a.width&&XM(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Ii=function(){};
g.k.onFullscreenToggled=function(){};
g.k.lh=function(){};
g.k.Dj=function(){};
g.k.ag=function(){};
g.k.Cj=function(){};
g.k.Fj=function(){};
g.k.va=function(){kJ.prototype.va.call(this)};
g.k.release=function(){kJ.prototype.release.call(this);this.Ea.get().removeListener(this)};AGa.prototype.build=function(a,b,c,d){if(b=HJ(a,c,d,this.Ec,this.Ea,this.Oa,this.D,this.j,this.Aa))return b;if(zJ(d,xGa()))return new AL(c,d,this.Oa,this.ub,this.Ec,a,this.B,this.C,this.Ea,this.Lb,this.Aa,this.j,new BL(this.Ea));if(zJ(d,wGa()))return new zL(c,d,this.Oa,this.ub,this.Ec,a,this.B,this.Ea,this.Lb,this.Aa,this.j,new BL(this.Ea));if(zJ(d,{Ld:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Ee:["LAYOUT_TYPE_SURVEY"]}))return new zGa(c,d,a,this.Ec,this.B,this.Ea,this.Aa);if(zJ(d,
{Ld:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Ee:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new wL(c,d,a,this.Ec,this.Oa);if(zJ(d,YDa()))return new EJ(c,d,a,this.Ec,this.Ea,this.Aa);throw new pI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tI(d.Ba)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};BGa.prototype.build=function(a,b,c,d){if(b=HJ(a,c,d,this.Ec,this.Ea,this.Oa,this.D,this.j,this.Aa))return b;if(zJ(d,xGa()))return new AL(c,d,this.Oa,this.ub,this.Ec,a,this.B,this.C,this.Ea,this.Lb,this.Aa,this.j,new BL(this.Ea));if(zJ(d,wGa()))return new zL(c,d,this.Oa,this.ub,this.Ec,a,this.B,this.Ea,this.Lb,this.Aa,this.j,new BL(this.Ea));throw new pI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tI(d.Ba)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.y(CL,DJ);CL.prototype.startRendering=function(a){DJ.prototype.startRendering.call(this,a);if(a.renderingContent?RDa(a,this.Ra.get().Xd(2)||void 0):sI(this.layout.Ba,"metadata_ad_video_is_listed"))a=a.renderingContent?QDa(a,this.Ra.get().Xd(2)||void 0):sI(this.layout.Ba,"metadata_type_ad_info_ad_metadata"),this.xn.get().J.jb("onAdMetadataAvailable",a)};DGa.prototype.build=function(a,b,c,d){if(zJ(d,CGa())||"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===d.layoutType&&void 0!==g.V(d.renderingContent,FJ))return new CL(a,c,d,this.Ec,this.Ea,this.Oa,this.B,this.xn,this.j,this.Ra);throw new pI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tI(d.Ba)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};EGa.prototype.build=function(a,b,c,d){if(zJ(d,CGa()))return new CL(a,c,d,this.Ec,this.Ea,this.Oa,this.B,this.xn,this.j,this.Ra);if(a=HJ(a,c,d,this.Ec,this.Ea,this.Oa,this.B,this.j,this.Aa))return a;throw new pI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tI(d.Ba)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};RL.prototype.clone=function(a){var b=this;return new RL(function(){return b.triggerId},a)};SL.prototype.clone=function(a){var b=this;return new SL(function(){return b.triggerId},a)};TL.prototype.clone=function(a){var b=this;return new TL(function(){return b.triggerId},a)};UL.prototype.clone=function(a){var b=this;return new UL(function(){return b.triggerId},a)};VL.prototype.clone=function(a){var b=this;return new VL(function(){return b.triggerId},a)};WL.prototype.clone=function(a){var b=this;return new WL(function(){return b.triggerId},a)};g.y(rM,g.I);var hIa={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],Uc:[],layoutExitUserInputSubmittedTriggers:[]};var LIa={WVdDU7FEFNo:15,"c-6Sb-muKCY":6,"O9f9wIR-UI8":6,"JNL-wFYNAP0":15,dLYcTkdHPNA:15,ZdVP0_LJZUE:15,VXcUXyDNdEI:15,VGQ8C9uQc_I:15,"o2HqYt-U7YU":15,rwNqPgKVbus:15,ATgzDto2XcY:15,attyPCCLlC4:15,w3aSYOeWyYU:15,wZMtuR2zzRA:30,e3TvPYADCQA:15,eMOw2R8yUHg:15,"6lLyZenufEY":15,"4q_FdWfUxR4":15,"3NOPsNQV0zY":15,IcEJuv4zMSI:15,"8Eo9vaW_CqY":15,O0DMDUDJK88:15,wnboazT1Lio:15,ZfRdOlbXmog:5,"X-sKfjrb7uc":15,RCVZbiJbZA0:6,"7syqtZsUUwY":15,OrlZSFgzFVA:15,ulrgBGVttFg:15,"1qC82K99ecI":15,E9lmhFAK78w:30,QSJFJNk_VSg:15,
"i-8wX-g3FjI":30,vgSkhTaAP6U:15,iqslKcmG9zA:15,VkNDKDDDSWA:15,"2-Sj3oWDJCk":6,z4zsVPqUVnc:15,xKc7UMf8V4s:15,wwrWuIYPaDE:6,"_5NVge-Kmpk":6,"eUdn6DcJx-4":6,gxvBLc_C6Io:15,O40oPma0obU:15,"6xXRRLxj3DA":15,T5sMvex24Os:15,"74ccAT84jIY":15,"YTlgTC-KM2U":15,XxcipO9EBWc:15,zI7xwG4M62k:15,XrUrvpDMmOk:15,H5KIgG21WjA:15,R94pfM1wcac:6,"TD0-7fMqNOE":5,_evnWGoDAT8:15,Wov4GF3oUSM:6,DKcQEuGWmp4:15,kp4aH06VQBg:15,CI3LdgGodUw:15,lcQzcg6e73Y:15};var KR={wSa:1,xSa:2,ySa:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.y(IM,g.I);g.k=IM.prototype;g.k.I_=function(a){if(!this.j){var b;null==(b=this.zc)||b.get().Ou(a.identifier);return!1}AJa(this,this.j,a);return!0};
g.k.E_=function(){};
g.k.rk=function(a){this.j&&this.j.contentCpn!==a&&(KF("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)};
g.k.Co=function(a){this.j&&this.j.contentCpn!==a&&KF("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.va=function(){g.I.prototype.va.call(this);this.j=null};var M1=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],fpb=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.y(LM,g.I);g.k=LM.prototype;g.k.uc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&(nI(b,this.K)||nI(b,fpb))){var d=this.Ra.get().Xd(2),e=this.D(b,d||void 0);e?hJ(this.C.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[UHa(c.j.get(),e.contentCpn,e.Lq,function(h){return c.G(h.slotId,"core",e,wI(c.Ne.get(),h))},e.inPlayerSlotId)];
e.instreamAdPlayerUnderlayRenderer&&VHa(c.Aa.get())&&f.push(GJa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):KF("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.Rg=function(){};
g.k.Nh=function(){};
g.k.xf=function(){};
g.k.Kh=function(){};
g.k.yf=function(){};
g.k.Lh=function(){};
g.k.Mh=function(){};
g.k.kh=function(){};
g.k.pg=function(){};
g.k.Qg=function(){};
g.k.yc=function(){};g.y(MM,g.I);MM.prototype.rk=function(a,b,c,d,e,f,h){var l=this,m=this.Ra.get().Xd(1);!gib(this.Aa.get())&&m.Ap?z1(this.Ea.get()):(cib(this.Ac.get(),d),hJ(this.B.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return vHa(l.j.get(),d,e,f,a,b,h,m,"")}),Yjb(this.C))};
MM.prototype.Co=function(){};g.y(NM,g.I);g.y(OM,g.I);OM.prototype.onCueRangeEnter=function(){};
OM.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.Oc.get().removeCueRange(a),hJ(this.B.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.C.get();d=iJ(d.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,slotEntryTrigger:c.slotEntryTrigger?ZJa(c.slotId,d,c.slotEntryTrigger):void 0,slotFulfillmentTriggers:$Ja(c.slotId,d,c.slotFulfillmentTriggers),slotExpirationTriggers:$Ja(c.slotId,d,c.slotExpirationTriggers)})]},
c.slotId))};
OM.prototype.rk=function(){for(var a=g.u(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.Oc.get().removeCueRange(b);this.j.clear()};
OM.prototype.Co=function(){};g.y(QM,g.I);g.k=QM.prototype;g.k.Rg=function(){};
g.k.Nh=function(a){var b=this;g.bC(g.dC(),function(){var c=b.j.get(a);c&&KF("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.qa(c)).map(function(d){return d.layoutType})})},0)};
g.k.xf=function(){};
g.k.Kh=function(){};
g.k.yf=function(){};
g.k.Lh=function(){};
g.k.Mh=function(){};
g.k.kh=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)};
g.k.pg=function(a,b){this.gj.has(a)&&this.gj.get(a)===b&&KF("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)):KF("Trying to unscheduled a Layout that was not scheduled.",a,b)}else KF("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.uc=function(a,b){this.gj.set(a,b)};
g.k.yc=function(a){this.gj.delete(a)};
g.k.Qg=function(){};g.k=JJa.prototype;g.k.init=function(){};
g.k.Xb=function(){return this.slot};
g.k.iJ=function(){this.callback.xf(this.slot)};
g.k.lJ=function(){this.callback.yf(this.slot)};
g.k.release=function(){};RM.prototype.build=function(a,b){return new JJa(a,b)};g.k=KJa.prototype;g.k.init=function(){};
g.k.Xb=function(){return this.slot};
g.k.iJ=function(){B1(this.Ea.get(),"ad-showing");this.callback.xf(this.slot)};
g.k.lJ=function(){this.callback.yf(this.slot);C1(this.Ea.get(),"ad-showing")};
g.k.release=function(){};g.k=LJa.prototype;g.k.init=function(){};
g.k.Xb=function(){return this.slot};
g.k.iJ=function(){B1(this.Ea.get(),"ad-showing");B1(this.Ea.get(),"ad-interrupting");this.B=this.Ea.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.xf(this.slot)};
g.k.lJ=function(){C1(this.Ea.get(),"ad-showing");C1(this.Ea.get(),"ad-interrupting");var a=this.B?Infinity:A1(this.Ea.get(),1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ea.get().J.seekTo(a,void 0,void 0,1);this.callback.yf(this.slot)};
g.k.release=function(){};g.k=MJa.prototype;g.k.init=function(){};
g.k.Xb=function(){return this.slot};
g.k.iJ=function(){B1(this.Ea.get(),"ad-showing");B1(this.Ea.get(),"ad-interrupting");this.callback.xf(this.slot)};
g.k.lJ=function(){z1(this.Ea.get());C1(this.Ea.get(),"ad-showing");C1(this.Ea.get(),"ad-interrupting");this.callback.yf(this.slot)};
g.k.release=function(){z1(this.Ea.get())};SM.prototype.build=function(a,b){if(uI(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new KJa(a,b,this.Ea);if(b.slotEntryTrigger instanceof ML&&uI(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new LJa(a,b,this.Ea);if(uI(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new MJa(a,b,this.Ea);throw new qI("Unsupported slot with type "+b.slotType+" and client metadata: "+(tI(b.Ba)+" in PlayerBytesSlotAdapterFactory."));};g.y(TM,g.I);TM.prototype.j=function(a){for(var b=[],c=g.u(this.Vb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof QL&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.triggeringLayoutId===a&&b.push(d)}b.length?JI(this.lN(),b):KF("Mute requested but no registered triggers can be activated.")};g.y(UM,TM);g.k=UM.prototype;g.k.hg=function(a,b){if(b)if("skip-button"===a){a=[];for(var c=g.u(this.Vb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof QL&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.triggeringLayoutId===b&&a.push(d)}a.length&&JI(this.lN(),a)}else EM(this.Aa.get(),"supports_multi_step_on_desktop")?"ad-action-submit-survey"===a&&NJa(this,b):"survey-submit"===a?NJa(this,b):"survey-single-select-answer-button"===a&&NJa(this,b)};
g.k.RP=function(a){TM.prototype.j.call(this,a)};
g.k.Al=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new qI("Tried to register duplicate trigger for slot.");if(!(b instanceof XL||b instanceof QL))throw new qI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Vb.set(b.triggerId,new ZL(a,b,c,d))};
g.k.Gl=function(a){this.Vb.delete(a.triggerId)};
g.k.PP=function(){};
g.k.OP=function(){};
g.k.RJ=function(){};g.y(VM,g.I);g.k=VM.prototype;
g.k.Al=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new qI("Tried to register duplicate trigger for slot.");if(!(b instanceof RL||b instanceof SL||b instanceof TL||b instanceof UL||b instanceof VL||b instanceof WL||b instanceof MGa||b instanceof JL||b instanceof LL||b instanceof KL||b instanceof NL||b instanceof IL))throw new qI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new ZL(a,b,c,d);this.Vb.set(b.triggerId,a);b instanceof
VL&&this.G.has(b.triggeringSlotId)&&JI(this.j(),[a]);b instanceof RL&&this.C.has(b.triggeringSlotId)&&JI(this.j(),[a]);b instanceof JL&&this.B.has(b.triggeringLayoutId)&&JI(this.j(),[a])};
g.k.Gl=function(a){this.Vb.delete(a.triggerId)};
g.k.Rg=function(a){this.G.add(a.slotId);for(var b=[],c=g.u(this.Vb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof VL&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&JI(this.j(),b)};
g.k.Nh=function(a){this.G.delete(a.slotId);for(var b=[],c=g.u(this.Vb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof WL&&e.triggeringSlotId===a.slotId&&b.push(d)}0<b.length&&JI(this.j(),b)};
g.k.Kh=function(a){for(var b=[],c=g.u(this.Vb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof MGa&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}0<b.length&&JI(this.j(),b)};
g.k.xf=function(a){this.C.add(a.slotId);for(var b=[],c=g.u(this.Vb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof RL&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&JI(this.j(),b)};
g.k.yf=function(a){this.C.delete(a.slotId);this.D.add(a.slotId);for(var b=[],c=g.u(this.Vb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof SL)a.slotId===d.trigger.triggeringSlotId&&b.push(d);else if(d.trigger instanceof IL){var e=d.trigger;a.slotId===e.slotId&&this.B.has(e.triggeringLayoutId)&&b.push(d)}0<b.length&&JI(this.j(),b)};
g.k.Lh=function(a){for(var b=[],c=g.u(this.Vb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof TL&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&JI(this.j(),b)};
g.k.Mh=function(a){for(var b=[],c=g.u(this.Vb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof UL&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&JI(this.j(),b)};
g.k.kh=function(a,b){this.K.add(b.layoutId)};
g.k.pg=function(a,b){this.K.delete(b.layoutId)};
g.k.uc=function(a,b){this.B.add(b.layoutId);for(var c=[],d=g.u(this.Vb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof JL)b.layoutId===e.trigger.triggeringLayoutId&&c.push(e);else if(e.trigger instanceof NL){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof IL&&(f=e.trigger,b.layoutId===f.triggeringLayoutId&&this.D.has(f.slotId)&&c.push(e));0<c.length&&JI(this.j(),c)};
g.k.yc=function(a,b,c){this.B.delete(b.layoutId);a=[];for(var d=g.u(this.Vb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof LL&&b.layoutId===e.trigger.triggeringLayoutId&&a.push(e),e.trigger instanceof KL){var f=e.trigger;b.layoutId===f.triggeringLayoutId&&f.j.includes(c)&&a.push(e)}0<a.length&&JI(this.j(),a)};
g.k.Qg=function(){};
g.k.rk=function(){this.D.clear()};
g.k.Co=function(){};g.y(WM,g.I);WM.prototype.Al=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new qI("Tried to register duplicate trigger for slot.");if(!(b instanceof GL))throw new qI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Vb.set(b.triggerId,new ZL(a,b,c,d))};
WM.prototype.Gl=function(a){this.Vb.delete(a.triggerId)};g.y(YM,g.I);YM.prototype.Al=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new qI("Tried to register duplicate trigger for slot.");if(!(b instanceof FL||b instanceof PL))throw new qI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Vb.set(b.triggerId,new ZL(a,b,c,d))};
YM.prototype.Gl=function(a){this.Vb.delete(a.triggerId)};
YM.prototype.rk=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.u(this.Vb.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof FL&&l.trigger.uv===a&&f.push(l);e.call(d,b,g.qa(f));if(!gib(this.context.Aa.get())){d=b.push;e=d.apply;f=[];h=g.u(this.Vb.values());for(l=h.next();!l.done;l=h.next())if(l=l.value,l.trigger instanceof PL){var m=l.trigger.j===a;m?c&&m&&(KF("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:a}),
f.push(l)):f.push(l)}e.call(d,b,g.qa(f))}b.length&&JI(this.j(),b)};
YM.prototype.Co=function(a){for(var b=[],c=b.push,d=c.apply,e=[],f=g.u(this.Vb.values()),h=f.next();!h.done;h=f.next()){h=h.value;var l=h.trigger;l instanceof PL&&l.j===a&&e.push(h)}d.call(c,b,g.qa(e));b.length&&JI(this.j(),b)};g.y(ZM,g.I);g.k=ZM.prototype;g.k.Al=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new qI("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof ML)OJa(this,a,b,c,d,e,b.j.start,b.j.end,b.uv,b.visible);else if(b instanceof HL)OJa(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.uv,b.visible);else throw new qI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");};
g.k.Gl=function(a){var b=this.Vb.get(a.triggerId);b&&this.Oc.get().removeCueRange(b.UI);this.Vb.delete(a.triggerId)};
g.k.onCueRangeEnter=function(a){var b=PJa(this,a);if(b&&(b=this.Vb.get(b)))if(g.MF(s1(this.Ea.get()),32))this.j.add(b.UI);else{var c=null==b?void 0:b.VD.trigger;if(c instanceof ML||c instanceof HL){if(PM(this.context.Aa.get())){var d=b.VD.slot,e=b.VD.layout,f={};this.context.Jp.ql("cre",(f.ca=b.VD.category,f.tt=c.triggerType,f.st=d.slotType,f.lt=null==e?void 0:e.layoutType,f.cid=a,f))}JI(this.B(),[b.VD])}}};
g.k.onCueRangeExit=function(a){(a=PJa(this,a))&&(a=this.Vb.get(a))&&this.j.delete(a.UI)};
g.k.ag=function(a){if(0>NF(a,16)){a=g.u(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}};
g.k.Rg=function(){};
g.k.Nh=function(){};
g.k.Kh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Lh=function(){};
g.k.Mh=function(){};
g.k.kh=function(){};
g.k.pg=function(){};
g.k.uc=function(){};
g.k.yc=function(){};
g.k.Qg=function(){};
g.k.Ii=function(){};
g.k.onFullscreenToggled=function(){};
g.k.lh=function(){};
g.k.Dj=function(){};
g.k.Zi=function(){};
g.k.onVolumeChange=function(){};
g.k.Cj=function(){};
g.k.Fj=function(){};g.y($M,g.I);g.k=$M.prototype;
g.k.Al=function(a,b,c,d){if(this.B.has(b.triggerId)||this.C.has(b.triggerId))throw new qI("Tried to re-register the trigger.");a=new ZL(a,b,c,d);if(a.trigger instanceof IGa)this.B.set(a.trigger.triggerId,a);else if(a.trigger instanceof HGa)this.C.set(a.trigger.triggerId,a);else throw new qI("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&JI(this.D(),[a])};
g.k.Gl=function(a){this.B.delete(a.triggerId);this.C.delete(a.triggerId)};
g.k.dL=function(a){a=a.slotId;if(this.j!==a){var b=[];null!=this.j&&b.push.apply(b,g.qa(QJa(this.C,this.j)));null!=a&&b.push.apply(b,g.qa(QJa(this.B,a)));this.j=a;b.length&&JI(this.D(),b)}};
g.k.Mx=function(){};
g.k.Lx=function(){};g.y(aN,g.I);g.k=aN.prototype;g.k.Al=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new qI("Tried to register duplicate trigger for slot.");if(!(b instanceof OL))throw new qI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Vb.set(b.triggerId,new ZL(a,b,c,d))};
g.k.Gl=function(a){this.Vb.delete(a.triggerId)};
g.k.uc=function(){};
g.k.yc=function(){};
g.k.Rg=function(){};
g.k.Nh=function(){};
g.k.Kh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Lh=function(){};
g.k.Mh=function(){};
g.k.kh=function(){};
g.k.pg=function(){};
g.k.Qg=function(){};g.y(bN,g.I);g.k=bN.prototype;g.k.Qg=function(a,b){for(var c=[],d=g.u(this.Vb.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&&JI(this.j(),c)};
g.k.Al=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new qI("Tried to register duplicate trigger for slot.");if(!(b instanceof vCa))throw new qI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Vb.set(b.triggerId,new ZL(a,b,c,d))};
g.k.Gl=function(a){this.Vb.delete(a.triggerId)};
g.k.Rg=function(){};
g.k.Nh=function(){};
g.k.Kh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Lh=function(){};
g.k.Mh=function(){};
g.k.kh=function(){};
g.k.pg=function(){};
g.k.uc=function(){};
g.k.yc=function(){};g.y(cN,g.I);g.k=cN.prototype;g.k.Al=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new qI("Tried to register duplicate trigger for slot.");if(!(b instanceof YL))throw new qI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Vb.set(b.triggerId,new ZL(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.Gl=function(a){this.Vb.delete(a.triggerId);if(!(a instanceof YL))throw new qI("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.B.get(a.triggerId);b&&(b.dispose(),this.B.delete(a.triggerId));if(b=this.j.get(a.triggeringLayoutId))b.delete(a),0===b.size&&this.j.delete(a.triggeringLayoutId)};
g.k.Rg=function(){};
g.k.Nh=function(){};
g.k.Kh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Lh=function(){};
g.k.Mh=function(){};
g.k.kh=function(){};
g.k.pg=function(){};
g.k.Qg=function(){};
g.k.uc=function(a,b){var c=this;if(this.j.has(b.layoutId)){a=this.j.get(b.layoutId);a=g.u(a);var d=a.next();for(b={};!d.done;b={tM:void 0},d=a.next())b.tM=d.value,d=new g.Iv(function(e){return function(){var f=c.Vb.get(e.tM.triggerId);JI(c.C(),[f])}}(b),b.tM.durationMs),d.start(),this.B.set(b.tM.triggerId,d)}};
g.k.yc=function(){};g.y(dN,g.I);dN.prototype.Al=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new qI("Tried to register duplicate trigger for slot.");if(!(b instanceof DL))throw new qI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in VideoTransitionTriggerAdapter.");this.Vb.set(b.triggerId,new ZL(a,b,c,d))};
dN.prototype.Gl=function(a){this.Vb.delete(a.triggerId)};hN.prototype.mu=function(a){return"AD_PLACEMENT_KIND_START"===a.kind};g.y(jN,g.I);g.k=jN.prototype;g.k.logEvent=function(a){this.Tr(a)};
g.k.Pj=function(a,b,c){this.Tr(a,void 0,void 0,void 0,b,void 0,void 0,void 0,b.adSlotLoggingData,void 0,void 0,c)};
g.k.Rh=function(a,b,c,d){this.Tr(a,void 0,void 0,void 0,b,c?c:void 0,void 0,void 0,b.adSlotLoggingData,c?c.adLayoutLoggingData:void 0,void 0,d)};
g.k.mN=function(a,b,c,d){EM(this.Aa.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"trigger:",c,"slot:",b,"layout:",d);QBa(this.j.get())&&this.Tr(a,void 0,void 0,void 0,b,d?d:void 0,void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
g.k.fI=function(a,b,c,d,e){this.Tr(a,b,c,d,void 0,void 0,void 0,void 0,void 0,void 0,void 0,e)};
g.k.Vl=function(a,b,c,d){this.Tr("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,c,d,void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0,{errorType:a,errorMessage:b})};
g.k.Tr=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=this;q=void 0===q?0:q;EM(this.Aa.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"slot:",e,"layout:",f,"ping:",h,"Opportunity:",{opportunityType:b,associatedSlotId:c,Lrb:d,Prb:l,adSlotLoggingData:m,adLayoutLoggingData:n});try{var t=function(){if(!r.Aa.get().J.U().L("html5_disable_client_tmp_logs")&&("ADS_CLIENT_EVENT_TYPE_ERROR"!==a||r.lT())&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==a){a||KF("Empty PACF event type",e,f);var v=QBa(r.j.get()),
w={eventType:a,eventOrder:++r.eventCount},A={};e&&(A.slotData=MBa(v,e));f&&(A.layoutData=NBa(v,f));h&&(A.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:h.ping.serializedAdPingMetadata,pingIndex:h.index});l&&(A.triggerData=vI(l.trigger,l.category));b&&(A.opportunityData=OBa(v,b,c,d));v={organicPlaybackContext:{contentCpn:r.Ra.get().Xd(1).clientPlaybackNonce}};v.organicPlaybackContext.isLivePlayback=r.Ra.get().Xd(1).dc;var C;v.organicPlaybackContext.isMdxPlayback=
null==(C=r.Ra.get().Xd(1))?void 0:C.isMdxPlayback;var F;if(null==(F=r.Ra.get().Xd(1))?0:F.daiEnabled)v.organicPlaybackContext.isDaiContent=!0;var H;if(C=null==(H=r.Ra.get().Xd(2))?void 0:H.clientPlaybackNonce)v.adVideoPlaybackContext={adVideoCpn:C};v&&(A.externalContext=v);w.adClientData=A;m&&(w.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(w.serializedAdServingData=n.serializedAdServingDataEntry);p&&(w.errorInfo=p);g.iC("adsClientStateChange",{adsClientEvent:w})}};
q&&0<q?g.bC(g.dC(),function(){return t()},q):t()}catch(v){EM(this.Aa.get(),"html5_log_pacf_logging_errors")&&g.bC(g.dC(),function(){KF(v instanceof Error?v:String(v),e,f,{pacf_message:"exception during pacf logging"})})}};
g.k.lT=function(){return this.Aa.get().lT()};g.y(eKa,jN);g.k=eKa.prototype;g.k.Pj=function(a,b,c){jN.prototype.Pj.call(this,a,b,c);PM(this.Aa.get())&&(c={},this.context.Jp.ql("pacf",(c.et=a,c.st=b.slotType,c.si=b.slotId,c)))};
g.k.Rh=function(a,b,c,d){jN.prototype.Rh.call(this,a,b,c,d);PM(this.Aa.get())&&(d={},this.context.Jp.ql("pacf",(d.et=a,d.st=b.slotType,d.si=b.slotId,d.lt=null==c?void 0:c.layoutType,d.li=null==c?void 0:c.layoutId,d)))};
g.k.fI=function(a,b,c,d,e){jN.prototype.fI.call(this,a,b,c,d,e);PM(this.Aa.get())&&(c={},this.context.Jp.ql("pacf",(c.et=a,c.ot=b,c.ss=null==d?void 0:d.length,c)))};
g.k.mN=function(a,b,c,d){jN.prototype.mN.call(this,a,b,c,d);if(PM(this.Aa.get())){var e={};this.context.Jp.ql("pacf",(e.et=a,e.tt=c.trigger.triggerType,e.tc=c.category,e.st=b.slotType,e.si=b.slotId,e.lt=null==d?void 0:d.layoutType,e.li=null==d?void 0:d.layoutId,e))}};
g.k.Vl=function(a,b,c,d){jN.prototype.Vl.call(this,a,b,c,d);if(PM(this.Aa.get())){var e={};this.context.Jp.ql("perror",(e.ert=a,e.erm=b,e.st=c.slotType,e.si=c.slotId,e.lt=null==d?void 0:d.layoutType,e.li=null==d?void 0:d.layoutId,e))}};
g.k.Tr=function(a,b,c,d,e,f,h,l,m,n,p){if(g.II(this.Aa.get().J.U())){var q=this.Aa.get();q=g.xI(q.J.U().experiments,"H5_async_logging_delay_ms")}else q=void 0;jN.prototype.Tr.call(this,a,b,c,d,e,f,h,l,m,n,p,q)};kN.prototype.clear=function(){this.j.clear()};var fKa=!1,mN,nN,oN,pN,qN;g.y(rN,g.I);
rN.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.B,d=0;d<b&&16>this.j;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;d<e;)gKa(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(gKa(this),this.j=0;d<b;)a[d++]^=c[this.j++];return a};
rN.prototype.ZL=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 hKa=!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 sN;iKa.prototype.nh=function(a,b){b=void 0===b?1:b;this.nt+=b;this.B+=a;a/=b;for(var c=0;c<uN.length&&!(a<uN[c]);++c)this.j[c]+=b};
iKa.prototype.toString=function(){return""};
var uN=[20,100,500,2E3];g.k=lKa.prototype;g.k.isActive=function(){return!0};
g.k.hK=function(a,b){var c=this;if(b){var d={},e;for(e in b)d={l0:void 0,S0:void 0},b.hasOwnProperty(e)&&(d.l0=a.prototype[e],d.S0=b[e],a.prototype[e]=function(f){return function(){var h=g.Ia.apply(0,arguments),l=(0,g.wC)();h=f.l0.apply(this,h);return oKa(c,h,f.S0,l)}}(d))}};
g.k.qQ=function(a,b){if(b){var c=this,d={},e;for(e in b)d={jX:void 0,h_:void 0},b.hasOwnProperty(e)&&(d.h_=a.prototype[e],d.jX=b[e],a.prototype[e]=function(f){return function(){var h=g.Ia.apply(0,arguments),l=this,m=(0,g.wC)(),n=f.h_.apply(l,h);return oKa(c,n,null,m,function(p){return f.jX.apply(l,[p].concat(h))})}}(d))}};
g.k.Hs=function(){return new kKa};
g.k.yr=function(a,b,c){c=void 0===c?1:c;b instanceof kKa&&(mKa(this,a,(0,g.wC)()-b.startTimeMs,c),b.j=!0)};
g.k.Lo=function(a,b){var c=(0,g.wC)();b=b();return oKa(this,b,a,c)};
g.k.TX=function(){var a={},b;for(b in this.j)if(this.j.hasOwnProperty(b)){var c=this.j[b];if(0===c.nt)c=null;else{for(var d=Math.ceil(c.nt).toFixed(0)+"."+c.B.toFixed(0),e=0;e<uN.length;++e)if(0<c.j[e])d+="."+uN[e].toFixed(0)+"_"+c.j[e].toFixed(0);else break;c=d}c&&(a[b]=c)}this.j=new jKa;return a};
g.k.toString=function(){return""};g.k=pKa.prototype;g.k.isActive=function(){return!1};
g.k.hK=function(){};
g.k.qQ=function(){};
g.k.Hs=function(){};
g.k.yr=function(){};
g.k.Lo=function(a,b){return b()};
g.k.TX=function(){return{}};
g.k.toString=function(){return""};var a3,gpb,hpb,ipb,jpb,kpb,b3,EV,$Y,Ogb,eR;a3=new pKa;gpb=!!+yA("html5_enable_profiler");hpb=!!+yA("html5_onesie_enable_profiler");ipb=!!+yA("html5_offline_encryption_enable_profiler");jpb=!!+yA("html5_performance_impact_profiling_timer_ms");kpb=!!+yA("html5_drm_enable_profiler");b3=gpb||hpb||ipb||jpb||kpb?new lKa:a3;g.IX=gpb?b3:a3;EV=hpb?b3:a3;$Y=ipb?b3:a3;Ogb=jpb?b3:a3;eR=kpb?b3:a3;g.k=vN.prototype;g.k.encrypt=function(a){this.Id.exports.AES128CTRCipher_encrypt(this.cipher,a.byteOffset,a.byteLength);return a};
g.k.ZL=function(a){this.Id.exports.AES128CTRCipher_setCounter(this.cipher,a.byteOffset)};
g.k.T9=function(a,b){return{profile:this.Id.Wp?"oals":"oalw",nt:Math.ceil(b.byteLength/16)}};
g.k.Na=function(){return 0===this.cipher};
g.k.dispose=function(){this.Id.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};
EV.qQ(vN,{encrypt:vN.prototype.T9});g.wN.prototype.encrypt=function(a,b){var c=this,d,e;return g.G(function(f){if(1==f.j){d=tN();if(!d)return f.return(c.j(a,b));g.Ba(f,3);return g.z(f,c.B(a,b,d),5)}if(3!=f.j)return f.return(f.B);e=g.Da(f);g.BE(e);hKa=!0;return f.return(c.j(a,b))})};
g.wN.prototype.B=function(a,b,c){var d=this,e,f;return g.G(function(h){switch(h.j){case 1:if(d.G){h.Ia(2);break}return g.z(h,c.importKey("raw",d.D,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:d.G=h.B;case 2:return e={name:"AES-CTR",counter:b,length:128},g.z(h,c.encrypt(e,d.G,a),4);case 4:return f=h.B,h.return(new Uint8Array(f))}})};
g.wN.prototype.j=function(a,b){this.C||(this.C=new rN(this.D));this.C.ZL(b);return this.C.encrypt(a)};
g.wN.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
g.y(g.xN,g.I);g.xN.prototype.encrypt=function(a,b){this.j||(this.j=new rN(this.B),g.N(this,this.j));this.j.ZL(b);return this.j.encrypt(a)};
g.xN.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
yN.prototype.encrypt=function(a,b){this.j.ZL(b);return this.j.encrypt(a)};
yN.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
yN.prototype.Na=function(){return this.j.Na()};
yN.prototype.dispose=function(){this.j.dispose()};qKa.prototype.reset=function(){sKa(this);this.update(this.C)};
qKa.prototype.update=function(a){var b=0,c=a.length;this.D+=c;this.B&&64<=this.B+c&&(this.K.set(a.subarray(0,64-this.B),this.B),b=64-this.B,this.B=0,rKa(this,this.K,0));for(;b+64<=c;b+=64)rKa(this,a,b);b<c&&(a=a.subarray(b),this.K.set(a,this.B),this.B+=a.length)};
var zN=[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 lpb;lpb={};g.mpb=g.RC("yt-idb-pref-storage",{Yr:(lpb.prefs={zn:1},lpb),shared:!1,upgrade:function(a,b){b(1)&&g.DC(g.xC(a,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});AN.prototype.getState=function(){return this.store.getState()};
AN.prototype.dispatch=function(a){return this.store.dispatch(a)};
AN.prototype.subscribe=function(a){return this.store.subscribe(a)};
AN.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
AN.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};BN.prototype.append=function(a){if(CKa(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);DKa(this)}else this.j.push(a);this.totalLength+=a.length};
BN.prototype.split=function(a){for(var b=new BN,c=new BN,d=g.u(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{aK:b,Zm:c}};
BN.prototype.isFocused=function(a){return a>=this.C&&a<this.C+this.j[this.B].length};
BN.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.C&&DKa(this);this.C+this.j[this.B].length<=a&&this.B<this.j.length;)this.C+=this.j[this.B].length,this.B+=1;this.D=void 0}};var KN,IN,MN;g.jZ=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}();
KN=Array(1024);IN=window.TextDecoder?new TextDecoder:void 0;MN=window.TextEncoder?new TextEncoder:void 0;for(var PKa={buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,
flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,liveChatPollStateEntity:217,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,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,
pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,settingEntity:297,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoPlaybackPositionEntity:76,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},OKa={},npb=g.u(Object.entries(PKa)),opb=npb.next();!opb.done;opb=npb.next()){var ppb=g.u(opb.value),qpb=ppb.next().value,rpb=ppb.next().value,
spb=qpb,tpb=rpb;tpb&&(OKa[tpb]=spb)};var c3;c3={};g.upb=(c3.INVALID_ENCODER_VERSION="Invalid encoder version",c3.KEY_CREATION_FAILED="Failed to create encoder key",c3.UNKNOWN_DECODE_ERROR="Failed to decode PES data",c3.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",c3.WRONG_DATA_TYPE="Encoder cannot process the data type",c3);var rO=window.xob||"en";var ePa=[3611,27686,85013,23462,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,98349,168271,168954,168277,168273,168270,123695,6827,29434,171388,7282,124448,196088,198104,32276,195115,195114,76278,200635,147868,147869,93911,106531,177843,27259,27262,27263,21759,160866,204249,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,180627,177960,177958,180629,205717,197879,177565,
212573,210709,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,68728,80353,80356,180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,
219868,212991,110111,76019,117092,117093,89431,191831,110466,77240,60508,186091,148123,148124,137401,137402,137046,73393,113534,92098,131381,84517,83759,162711,162712,80357,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,
174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,
210016,210017,211851,211852,211853,129889,197888,197889,149123,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,205913,51879,16623,32594,27240,32633,74858,213915,218674,156999,3945,16989,45520,25488,25492,25494,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,195529,189660,46220,11721,
147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,211026,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,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,196075,194768,194769,191885,194770,195350,195349,194771,166382,37671,49953,213774,204572,191389,204574,187917,191390,179556,191402,212661,191392,197826,191393,204573,
36216,28237,173718,39553,192547,29222,26107,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,63349,95101,75240,27039,68823,21537,83464,75707,170215,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,135155,135156,135157,135158,158225,135159,
135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,211189,111059,211188,5754,20445,151308,151152,130975,130976,210815,191925,167637,197196,214295,110386,113746,66557,183215,17310,28631,201935,21589,164817,168011,154946,68012,162617,60480,184431,138664,194E3,141121,164502,31571,195002,206793,141978,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,59369,43927,43928,
12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,139723,139722,121258,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,163566,186641,147842,217932,104443,96659,147595,106442,182423,162776,134840,63667,63668,63669,130686,147036,189810,78314,147799,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,49956,190190,31961,26388,23811,5E4,126250,96370,210549,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,210542,212552,102852,110099,22678,69076,137575,139224,100856,154430,209757,17736,3832,147111,55759,64031,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,82039];var Cgb={adNotify:function(a){var b=new Gna,c=0;try{var d=a.adMediaTimeSec;void 0!==d&&(Vk(b,1,d),c++);var e=a.adMediaTimeMs;void 0!==e&&(Xk(b,6,e),c++);var f=a.timeToAdBreakSec;void 0!==f&&(Vk(b,2,f),c++);var h=a.clientScreenNonce;void 0!==h&&(Q(b,3,h),c++);var l=a.clientPlaybackNonce;void 0!==l&&(Q(b,4,l),c++);var m=a.videoAdBreakOffsetSec;void 0!==m&&(Vk(b,5,m),c++);var n=a.videoAdBreakOffsetMs;void 0!==n&&(Xk(b,7,n),c++);return[c===Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}},
biscottiBasedDetection:function(a){var b=new sz,c=0;try{var d=a.detected;void 0!==d&&(Uk(b,1,d),c++);var e=a.source;void 0!==e&&(Q(b,2,e),c++);var f=a.contentCpn;void 0!==f&&(Q(b,3,f),c++);var h=a.contentCsn;void 0!==h&&(Q(b,4,h),c++);var l=a.method;void 0!==l&&(Vk(b,5,l),c++);var m=a.result;void 0!==m&&(Vk(b,6,m),c++);var n=a.detectionResult;void 0!==n&&(S(b,9,lnb[n]),c++);var p=a.detectionStates;void 0!==p&&(uO(b.Z6.bind(b),p,mnb),c++);var q=a.adCpn;void 0!==q&&(Q(b,7,q),c++);var r=a.playbackType;
void 0!==r&&(Q(b,8,r),c++);return[c===Object.keys(a).length,b]}catch(t){return Y(t),[!1,void 0]}},
adNotifyFilled:function(a){var b=new Fna,c=0;try{var d=a.notifyCompositeType;void 0!==d&&(S(b,1,Vmb[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
idbTransactionEnded:function(a){var b=new Vz,c=0;try{var d=a.objectStoreNames;void 0!==d&&(Q(b,1,d),c++);var e=a.duration;void 0!==e&&(b.Bl(e),c++);var f=a.isSuccessful;void 0!==f&&(Uk(b,3,f),c++);var h=a.connectionHasUnknownAbortedTransaction;void 0!==h&&(Uk(b,4,h),c++);var l=a.tryCount;void 0!==l&&(Vk(b,5,l),c++);var m=a.tag;void 0!==m&&(S(b,6,Cnb[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}},
idbUnexpectedlyClosed:function(a){var b=new Jpa,c=0;try{var d=a.dbName;void 0!==d&&(Q(b,1,d),c++);var e=a.dbVersion;void 0!==e&&(Vk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}},
flowEvent:function(a){var b=new Dpa,c=0;try{var d=a.flowNonce;void 0!==d&&(Q(b,1,d),c++);var e=a.flowEventType;if(e){a:{var f=new Cpa,h=0;try{var l=e.flowEventNamespace;void 0!==l&&(S(f,1,vnb[l]),h++);var m=e.flowEventType;void 0!==m&&(Vk(f,2,m),h++);var n=[h===Object.keys(e).length,f];break a}catch(Sa){Y(Sa);n=[!1,void 0];break a}}var p=n;p[0]&&(Ik(b,Cpa,2,p[1]),c++)}var q=a.flowMetadata;if(q){a:{var r=new Bpa,t=0;try{var v=q.notaireContext;if(v){b:{var w=new Zoa,A=0;try{var C=v.serverInfo;if(C){c:{var F=
new Ez,H=0;try{var M=C.id;void 0!==M&&(Q(F,1,M),H++);var L=C.forceLog;void 0!==L&&(Uk(F,2,L),H++);var R=[H===Object.keys(C).length,F];break c}catch(Sa){Y(Sa);R=[!1,void 0];break c}}var ba=R;ba[0]&&(Ik(w,Ez,1,ba[1]),A++)}var ma=v.clientInfo;if(ma){c:{var na=new Yoa,ia=0;try{var sa=ma.timeSinceReceivedMs;void 0!==sa&&(Xk(na,1,sa),ia++);var aa=[ia===Object.keys(ma).length,na];break c}catch(Sa){Y(Sa);aa=[!1,void 0];break c}}var U=aa;U[0]&&(Ik(w,Yoa,2,U[1]),A++)}var Ka=[A===Object.keys(v).length,w];break b}catch(Sa){Y(Sa);
Ka=[!1,void 0];break b}Ka=void 0}var x=Ka;x[0]&&(Ik(r,Zoa,1,x[1]),t++)}var ca=q.offlineTransferStatusChangedContext;if(ca){b:{var Ma=new bpa,$a=0;try{var kb=ca.offlineTransferStatusChanged;if(kb){var Qa=oNa(kb);Qa[0]&&(Ik(Ma,Hz,1,Qa[1]),$a++)}var Va=[$a===Object.keys(ca).length,Ma];break b}catch(Sa){Y(Sa);Va=[!1,void 0];break b}Va=void 0}var jb=Va;jb[0]&&(Ik(r,bpa,2,jb[1]),t++)}var rb=q.offlineOrchestrationContext;if(rb){b:{var pb=new Gz,B=0;try{var D=rb.entityType;void 0!==D&&(Vk(pb,1,D),B++);var E=
rb.entityId;void 0!==E&&(Q(pb,7,E),B++);var J=rb.offlineOrchestrationActionType;void 0!==J&&(S(pb,6,Znb[J]),B++);var K=rb.offlineOrchestrationActionResult;void 0!==K&&(S(pb,2,Ynb[K]),B++);var da=rb.offlineOrchestrationFailureReason;void 0!==da&&(S(pb,10,$nb[da]),B++);var ta=rb.isRetryable;void 0!==ta&&(Uk(pb,3,ta),B++);var la=rb.isRestored;void 0!==la&&(Uk(pb,11,la),B++);var O=rb.orchestrationAction;if(O){var Z=oOa(O);Z[0]&&(Ik(pb,Fz,4,Z[1]),B++)}var za=rb.additionalOrchestrationActions;za&&(tO(pb.j.bind(pb),
za,oOa),B++);var xa=rb.intervalSinceEnqueuedMs;void 0!==xa&&(Xk(pb,8,xa),B++);var ab=rb.executionIntervalMs;void 0!==ab&&(Xk(pb,9,ab),B++);var Wa=rb.offlineModeType;void 0!==Wa&&(S(pb,12,fNa[Wa]),B++);var zb=[B===Object.keys(rb).length,pb];break b}catch(Sa){Y(Sa);zb=[!1,void 0];break b}zb=void 0}var Rb=zb;Rb[0]&&(Ik(r,Gz,3,Rb[1]),t++)}var Za=q.shortsCreationContext;if(Za){b:{var $b=new Kz,hc=0;try{var Jc=Za.shortsCreationSurfaces;void 0!==Jc&&(uO($b.j.bind($b),Jc,kob),hc++);var Yb=[hc===Object.keys(Za).length,
$b];break b}catch(Sa){Y(Sa);Yb=[!1,void 0];break b}}var vc=Yb;vc[0]&&(Ik(r,Kz,4,vc[1]),t++)}var $c=q.mdxConnectionContext;if($c){b:{var Rc=new Voa,tc=0;try{var Vb=$c.isReconnection;void 0!==Vb&&(Uk(Rc,1,Vb),tc++);var Wb=$c.disconnectReason;void 0!==Wb&&(S(Rc,2,Fnb[Wb]),tc++);var yd=$c.isRetry;void 0!==yd&&(Uk(Rc,3,yd),tc++);var pd=[tc===Object.keys($c).length,Rc];break b}catch(Sa){Y(Sa);pd=[!1,void 0];break b}}var qd=pd;qd[0]&&(Ik(r,Voa,5,qd[1]),t++)}var ac=q.premiumMultiStepPurchaseContext;if(ac){b:{var Ec=
new ipa,Ib=0;try{var bd=ac.selectedOption;if(bd){c:{var zd=new hpa,Pb=0;try{var fe=bd.offerType;void 0!==fe&&(S(zd,1,Bmb[fe]),Pb++);var Ud=bd.itemType;void 0!==Ud&&(S(zd,2,JO[Ud]),Pb++);var Vd=bd.itemExternalId;void 0!==Vd&&(Q(zd,3,Vd),Pb++);var Ce=[Pb===Object.keys(bd).length,zd];break c}catch(Sa){Y(Sa);Ce=[!1,void 0];break c}}var De=Ce;De[0]&&(Ik(Ec,hpa,1,De[1]),Ib++)}var Ld=ac.itemType;void 0!==Ld&&(S(Ec,2,JO[Ld]),Ib++);var $e=ac.productType;void 0!==$e&&(S(Ec,3,KO[$e]),Ib++);var Oe=ac.landingPageVariantId;
void 0!==Oe&&(Q(Ec,4,Oe),Ib++);var Md=ac.experimentStatus;void 0!==Md&&(S(Ec,5,Hnb[Md]),Ib++);var Bf=ac.themeKey;void 0!==Bf&&(Q(Ec,6,Bf),Ib++);var Nd=ac.signupType;void 0!==Nd&&(S(Ec,7,Inb[Nd]),Ib++);var ge=[Ib===Object.keys(ac).length,Ec];break b}catch(Sa){Y(Sa);ge=[!1,void 0];break b}ge=void 0}var rd=ge;rd[0]&&(Ik(r,ipa,6,rd[1]),t++)}var Hd=q.mdxReceiverConnectionContext;if(Hd){b:{var sd=new Woa,Od=0;try{var jg=Hd.isFromAppLaunch;void 0!==jg&&(Uk(sd,1,jg),Od++);var af=Hd.dialServerType;void 0!==
af&&(S(sd,2,Enb[af]),Od++);var Qf=Hd.supportsSmoothPairing;void 0!==Qf&&(Uk(sd,3,Qf),Od++);var Xc=Hd.hasManuallyPairedRemotesOnAppStartup;void 0!==Xc&&(Uk(sd,4,Xc),Od++);var oc=Hd.mismatchedTheme;void 0!==oc&&(S(sd,5,wmb[oc]),Od++);var Pe=Hd.mdxSenderConnectedCounter;void 0!==Pe&&(Vk(sd,6,Pe),Od++);var ih=Hd.externalRouteSource;void 0!==ih&&(S(sd,7,Dnb[ih]),Od++);var Zh=Hd.appReloadCount;void 0!==Zh&&(Vk(sd,8,Zh),Od++);var mh=[Od===Object.keys(Hd).length,sd];break b}catch(Sa){Y(Sa);mh=[!1,void 0];
break b}}var Ki=mh;Ki[0]&&(Ik(r,Woa,7,Ki[1]),t++)}var pf=q.parentToolsOnboardingContext;if(pf){b:{var ff=new dpa,Fe=0;try{var $h=pf.triggerPoint;void 0!==$h&&(S(ff,1,Nmb[$h]),Fe++);var uc=pf.kidsFlowInfo;if(uc){c:{var Fc=new cpa,Gc=0;try{var Li=uc.kidsFlowVersion;void 0!==Li&&(S(Fc,1,Kmb[Li]),Gc++);var Ff=uc.flowLabel;void 0!==Ff&&(Q(Fc,2,Ff),Gc++);var pg=uc.hostClientName;void 0!==pg&&(S(Fc,3,Lmb[pg]),Gc++);var gf=uc.hostClientVersion;void 0!==gf&&(Q(Fc,4,gf),Gc++);var Dd=uc.kidsFlowType;void 0!==
Dd&&(S(Fc,5,Jmb[Dd]),Gc++);var Tf=[Gc===Object.keys(uc).length,Fc];break c}catch(Sa){Y(Sa);Tf=[!1,void 0];break c}}var ai=Tf;ai[0]&&(Ik(ff,cpa,2,ai[1]),Fe++)}var qg=pf.kidsCorpusPreferenceNew;void 0!==qg&&(S(ff,3,Imb[qg]),Fe++);var Pg=pf.appChoice;void 0!==Pg&&(S(ff,4,Mmb[Pg]),Fe++);var rg=pf.isKidSignedIn;void 0!==rg&&(Uk(ff,5,rg),Fe++);var Mi=pf.alreadyOnboardedYtk;void 0!==Mi&&(Uk(ff,6,Mi),Fe++);var ke=pf.alreadyOnboardedSupex;void 0!==ke&&(Uk(ff,7,ke),Fe++);var sg=[Fe===Object.keys(pf).length,
ff];break b}catch(Sa){Y(Sa);sg=[!1,void 0];break b}sg=void 0}var tg=sg;tg[0]&&(Ik(r,dpa,8,tg[1]),t++)}var bi=q.hashtagAutoCompleteContext;if(bi){b:{var Gf=new Koa,ug=0;try{var nh=bi.suggestionSelected;void 0!==nh&&(Vk(Gf,1,nh),ug++);var Qg=[ug===Object.keys(bi).length,Gf];break b}catch(Sa){Y(Sa);Qg=[!1,void 0];break b}}var oh=Qg;oh[0]&&(Ik(r,Koa,9,oh[1]),t++)}var te=q.liveStreamingContext;if(te){b:{var Se=new Uoa,$d=0;try{var qj=te.broadcastSource;void 0!==qj&&(S(Se,1,Tmb[qj]),$d++);var hf=te.isAutoDashboard;
void 0!==hf&&(Uk(Se,2,hf),$d++);var Ge=te.externalVideoId;void 0!==Ge&&(Q(Se,3,Ge),$d++);var Uf=te.broadcastConferenceType;void 0!==Uf&&(S(Se,4,Rmb[Uf]),$d++);var Vf=te.eventData;if(Vf){c:{var Rg=new Toa,Qd=0;try{var vg=Vf.webrtcHandshakeOffer;if(vg){d:{var Hf=new Soa,ci=0;try{var hk=vg.localVideoSsrc;void 0!==hk&&(Wk(Hf,1,hk),ci++);var qm=vg.localAudioSsrc;void 0!==qm&&(Wk(Hf,2,qm),ci++);var ll=vg.participantId;void 0!==ll&&(Yk(Hf,3,ll),ci++);var ml=[ci===Object.keys(vg).length,Hf];break d}catch(Sa){Y(Sa);
ml=[!1,void 0];break d}}var ik=ml;ik[0]&&(Ik(Rg,Soa,1,ik[1]),Qd++)}var Ni=Vf.webrtcHandshakeAnswer;if(Ni){d:{var jf=new Qoa,He=0;try{var ae=Ni.remoteVideoSsrc;void 0!==ae&&(Wk(jf,1,ae),He++);var ph=Ni.remoteAudioSsrc;void 0!==ph&&(Wk(jf,2,ph),He++);var wg=[He===Object.keys(Ni).length,jf];break d}catch(Sa){Y(Sa);wg=[!1,void 0];break d}}var rm=wg;rm[0]&&(Ik(Rg,Qoa,2,rm[1]),Qd++)}var xg=Vf.webrtcHandshakeError;if(xg){d:{var di=new Roa,rj=0;try{var Sg=xg.description;void 0!==Sg&&(Q(di,1,Sg),rj++);var qh=
[rj===Object.keys(xg).length,di];break d}catch(Sa){Y(Sa);qh=[!1,void 0];break d}}var sj=qh;sj[0]&&(Ik(Rg,Roa,3,sj[1]),Qd++)}var tj=Vf.costreamStartNotification;if(tj){d:{var rh=new Noa,uj=0;try{var Oi=tj.broadcastStartTimeMs;void 0!==Oi&&(Xk(rh,1,Oi),uj++);var sh=[uj===Object.keys(tj).length,rh];break d}catch(Sa){Y(Sa);sh=[!1,void 0];break d}}var vj=sh;vj[0]&&(Ik(Rg,Noa,4,vj[1]),Qd++)}var yg=Vf.remoteParticipant;if(yg){d:{var th=new Poa,jk=0;try{var nl=yg.videoSsrc;void 0!==nl&&(Wk(th,1,nl),jk++);
var sm=yg.audioSsrc;void 0!==sm&&(Wk(th,2,sm),jk++);var ei=[jk===Object.keys(yg).length,th];break d}catch(Sa){Y(Sa);ei=[!1,void 0];break d}}var Wf=ei;Wf[0]&&(Ik(Rg,Poa,5,Wf[1]),Qd++)}var qf=Vf.webcamEventData;if(qf){d:{var Xf=new Dz,zg=0;try{var kk=qf.videoFrameRate;void 0!==kk&&(Zk(Xf,1,kk),zg++);var wj=qf.videoAspectRatio;void 0!==wj&&(Zk(Xf,2,wj),zg++);var ol=qf.videoHeight;void 0!==ol&&(Wk(Xf,3,ol),zg++);var ic=qf.videoWidth;void 0!==ic&&(Wk(Xf,4,ic),zg++);var br=qf.videoCaptureCursor;void 0!==
br&&(Q(Xf,5,br),zg++);var lk=qf.videoCaptureSurface;void 0!==lk&&(Q(Xf,6,lk),zg++);var pl=qf.videoCaptureAudioEnabled;void 0!==pl&&(Uk(Xf,7,pl),zg++);var mk=[zg===Object.keys(qf).length,Xf];break d}catch(Sa){Y(Sa);mk=[!1,void 0];break d}}var Bn=mk;Bn[0]&&(Ik(Rg,Dz,6,Bn[1]),Qd++)}var fi=Vf.errorEventData;if(fi){d:{var xj=new Ooa,tm=0;try{var um=fi.liveClientErrorType;void 0!==um&&(S(xj,1,Pmb[um]),tm++);var it=fi.liveServerErrorType;void 0!==it&&(S(xj,2,Qmb[it]),tm++);var cr=fi.kioskClientApiErrorType;
void 0!==cr&&(S(xj,3,Omb[cr]),tm++);var dr=[tm===Object.keys(fi).length,xj];break d}catch(Sa){Y(Sa);dr=[!1,void 0];break d}}var Cn=dr;Cn[0]&&(Ik(Rg,Ooa,7,Cn[1]),Qd++)}var vm=Vf.adsAutomationEventData;if(vm){d:{var nk=new Moa,ql=0;try{var ok=vm.adsAutomationSettingsType;void 0!==ok&&(S(nk,1,xmb[ok]),ql++);var uh=vm.adsAutomationIntervalSec;void 0!==uh&&(Vk(nk,2,uh),ql++);var gi=vm.isNonConcurrent;void 0!==gi&&(Uk(nk,3,gi),ql++);var pk=[ql===Object.keys(vm).length,nk];break d}catch(Sa){Y(Sa);pk=[!1,
void 0];break d}}var er=pk;er[0]&&(Ik(Rg,Moa,8,er[1]),Qd++)}var tp=[Qd===Object.keys(Vf).length,Rg];break c}catch(Sa){Y(Sa);tp=[!1,void 0];break c}tp=void 0}var up=tp;up[0]&&(Ik(Se,Toa,5,up[1]),$d++)}var fr=te.isMonetizationOn;void 0!==fr&&(Uk(Se,6,fr),$d++);var Dn=te.sharedmdeEnabled;void 0!==Dn&&(Uk(Se,7,Dn),$d++);var gr=te.isScreencast;void 0!==gr&&(Uk(Se,8,gr),$d++);var Tg=te.broadcastLifecycleStatus;void 0!==Tg&&(S(Se,9,Smb[Tg]),$d++);var le=te.hasCreatedMobileLivestream;void 0!==le&&(Uk(Se,
10,le),$d++);var Te=[$d===Object.keys(te).length,Se];break b}catch(Sa){Y(Sa);Te=[!1,void 0];break b}Te=void 0}var En=Te;En[0]&&(Ik(r,Uoa,10,En[1]),t++)}var Ug=q.touAppealContext;if(Ug){b:{var hi=new Qz,vh=0;try{var vp=Ug.scope;void 0!==vp&&(Q(hi,1,vp),vh++);var rl=Ug.videoId;if(rl){c:{var hr=new Pz,Fn=0;try{var wm=rl.externalVideoId;void 0!==wm&&(Q(hr,1,wm),Fn++);var Gn=[Fn===Object.keys(rl).length,hr];break c}catch(Sa){Y(Sa);Gn=[!1,void 0];break c}}var ir=Gn;ir[0]&&(hi.setVideoId(ir[1]),vh++)}var ii=
Ug.videoThumbnailId;if(ii){c:{var yj=new spa,qk=0;try{var sl=ii.externalVideoId;void 0!==sl&&(Q(yj,1,sl),qk++);var xm=ii.thumbnailVersion;void 0!==xm&&(Yk(yj,3,xm),qk++);var ym=ii.checksum;void 0!==ym&&(Yk(yj,4,ym),qk++);var wp=[qk===Object.keys(ii).length,yj];break c}catch(Sa){Y(Sa);wp=[!1,void 0];break c}}var xp=wp;xp[0]&&(Jk(hi,spa,3,F2,xp[1]),vh++)}var yp=Ug.playlistId;if(yp){c:{var Hn=new Mz,Lc=0;try{var wh=yp.externalPlaylistId;void 0!==wh&&(Q(Hn,1,wh),Lc++);var Yf=[Lc===Object.keys(yp).length,
Hn];break c}catch(Sa){Y(Sa);Yf=[!1,void 0];break c}}var ji=Yf;ji[0]&&(Jk(hi,Mz,4,F2,ji[1]),vh++)}var xh=Ug.urlHostname;void 0!==xh&&(dk(hi,5,F2,cj(xh)),vh++);var In=Ug.postId;if(In){c:{var jr=new rpa,tl=0;try{var Jn=In.externalPostId;void 0!==Jn&&(Q(jr,1,Jn),tl++);var ul=[tl===Object.keys(In).length,jr];break c}catch(Sa){Y(Sa);ul=[!1,void 0];break c}}var zp=ul;zp[0]&&(Jk(hi,rpa,9,F2,zp[1]),vh++)}var kr=Ug.encodedTouViolativeContentId;void 0!==kr&&(Q(hi,6,kr),vh++);var Ap=Ug.encodedChannelTouViolativeContentId;
void 0!==Ap&&(Q(hi,7,Ap),vh++);var zj=Ug.trainingData;if(zj){c:{var Pi=new Oz,rk=0;try{var vl=zj.question;if(vl){d:{var Kn=new qpa,Ln=0;try{var sk=vl.questionId;void 0!==sk&&(Vk(Kn,1,sk),Ln++);var Aj=vl.supplementaryInfoId;void 0!==Aj&&(Vk(Kn,2,Aj),Ln++);var tk=[Ln===Object.keys(vl).length,Kn];break d}catch(Sa){Y(Sa);tk=[!1,void 0];break d}}var Bp=tk;Bp[0]&&(Ik(Pi,qpa,1,Bp[1]),rk++)}var wl=zj.answers;wl&&(tO(Pi.j.bind(Pi),wl,pOa),rk++);var lr=zj.correctAnswers;lr&&(tO(Pi.B.bind(Pi),lr,pOa),rk++);
var xl=zj.strikeId;void 0!==xl&&(Q(Pi,4,xl),rk++);var yl=zj.preTrainingMaterialId;void 0!==yl&&(Vk(Pi,5,yl),rk++);var zl=[rk===Object.keys(zj).length,Pi];break c}catch(Sa){Y(Sa);zl=[!1,void 0];break c}zl=void 0}var Cp=zl;Cp[0]&&(Ik(hi,Oz,8,Cp[1]),vh++)}var uk=[vh===Object.keys(Ug).length,hi];break b}catch(Sa){Y(Sa);uk=[!1,void 0];break b}uk=void 0}var zm=uk;zm[0]&&(Ik(r,Qz,11,zm[1]),t++)}var Mn=q.dragAndDropContext;if(Mn){b:{var Al=new Az,Nn=0;try{var On=Mn.rootVe;if(On){var Pn=vO(On);Pn[0]&&(Ik(Al,
zz,1,Pn[1]),Nn++)}var Qn=Mn.ve;if(Qn){var Dp=vO(Qn);Dp[0]&&(Ik(Al,zz,2,Dp[1]),Nn++)}var yh=[Nn===Object.keys(Mn).length,Al];break b}catch(Sa){Y(Sa);yh=[!1,void 0];break b}yh=void 0}var Ep=yh;Ep[0]&&(Ik(r,Az,12,Ep[1]),t++)}var vk=q.socialSuggestionsContext;if(vk){b:{var Ag=new Lz,Am=0;try{var Vg=vk.socialSuggestionsType;void 0!==Vg&&(S(Ag,1,Knb[Vg]),Am++);var Qi=vk.suggestionSelected;void 0!==Qi&&(Vk(Ag,2,Qi),Am++);var ki=vk.source;void 0!==ki&&(S(Ag,3,Lnb[ki]),Am++);var Bj=[Am===Object.keys(vk).length,
Ag];break b}catch(Sa){Y(Sa);Bj=[!1,void 0];break b}}var wk=Bj;wk[0]&&(Ik(r,Lz,13,wk[1]),t++)}var Rn=q.featureEnablementContext;if(Rn){b:{var Bl=new Bz,Ri=0;try{var Si=Rn.feature;void 0!==Si&&(S(Bl,1,DLa[Si]),Ri++);var xk=[Ri===Object.keys(Rn).length,Bl];break b}catch(Sa){Y(Sa);xk=[!1,void 0];break b}}var Fp=xk;Fp[0]&&(Ik(r,Bz,14,Fp[1]),t++)}var yk=q.iapContext;if(yk){b:{var zk=new Cz,Cl=0;try{var Dl=yk.playIapProduct;if(Dl){c:{var El=new Loa,Bm=0;try{var Gp=Dl.packageId;void 0!==Gp&&(Q(El,1,Gp),Bm++);
var Hp=Dl.productId;void 0!==Hp&&(Q(El,2,Hp),Bm++);var Sn=[Bm===Object.keys(Dl).length,El];break c}catch(Sa){Y(Sa);Sn=[!1,void 0];break c}}var Ip=Sn;Ip[0]&&(Jk(zk,Loa,1,snb,Ip[1]),Cl++)}var Jp=yk.source;void 0!==Jp&&(S(zk,2,xnb[Jp]),Cl++);var Fl=yk.attributionId;void 0!==Fl&&(Xk(zk,3,Fl),Cl++);var Tn=yk.externalVideoId;void 0!==Tn&&(Q(zk,4,Tn),Cl++);var Un=yk.externalChannelId;void 0!==Un&&(Q(zk,5,Un),Cl++);var Cm=[Cl===Object.keys(yk).length,zk];break b}catch(Sa){Y(Sa);Cm=[!1,void 0];break b}Cm=
void 0}var mr=Cm;mr[0]&&(Ik(r,Cz,15,mr[1]),t++)}var Dm=q.shoppingCheckoutContext;if(Dm){b:{var Kp=new npa,Lp=0;try{var Mp=Dm.shoppingFlowParams;if(Mp){var Np=sOa(Mp);Np[0]&&(Ik(Kp,Jz,1,Np[1]),Lp++)}var Em=Dm.shoppingCheckoutErrorReason;void 0!==Em&&(S(Kp,2,Jnb[Em]),Lp++);var Gl=[Lp===Object.keys(Dm).length,Kp];break b}catch(Sa){Y(Sa);Gl=[!1,void 0];break b}Gl=void 0}var Vn=Gl;Vn[0]&&(Ik(r,npa,16,Vn[1]),t++)}var Wn=q.ypcCancellationContext;if(Wn){b:{var Op=new wpa,Xn=0;try{var nr=Wn.itemType;void 0!==
nr&&(S(Op,1,JO[nr]),Xn++);var Pp=Wn.productType;void 0!==Pp&&(S(Op,2,KO[Pp]),Xn++);var Yn=[Xn===Object.keys(Wn).length,Op];break b}catch(Sa){Y(Sa);Yn=[!1,void 0];break b}}var or=Yn;or[0]&&(Ik(r,wpa,17,or[1]),t++)}var me=q.ypcBrowseOffersContext;if(me){b:{var ue=new vpa,Ie=0;try{var Zn=me.commerceFlowLoggingParams;if(Zn){var $n=xOa(Zn);$n[0]&&(Ik(ue,Sz,1,$n[1]),Ie++)}var Fm=me.offerType;void 0!==Fm&&(S(ue,2,Cmb[Fm]),Ie++);var ao=me.entityType;void 0!==ao&&(S(ue,3,onb[ao]),Ie++);var Qp=[Ie===Object.keys(me).length,
ue];break b}catch(Sa){Y(Sa);Qp=[!1,void 0];break b}Qp=void 0}var Rp=Qp;Rp[0]&&(Ik(r,vpa,18,Rp[1]),t++)}var Sp=q.mdxStreamTransferContext;if(Sp){b:{var li=new Xoa,mi=0;try{var Cj=Sp.completedReason;void 0!==Cj&&(S(li,1,Gnb[Cj]),mi++);var bo=[mi===Object.keys(Sp).length,li];break b}catch(Sa){Y(Sa);bo=[!1,void 0];break b}}var pr=bo;pr[0]&&(Ik(r,Xoa,19,pr[1]),t++)}var Gm=q.pdgBuyFlowContext;if(Gm){b:{var co=new gpa,eo=0;try{var fo=Gm.productType;void 0!==fo&&(S(co,1,KO[fo]),eo++);var Ak=Gm.entryPointClickedContext;
if(Ak){c:{var Hm=new epa,Ti=0;try{var go=Ak.superVodBuyFlowEntryPoint;void 0!==go&&(bl(Hm,1,E2,dob[go]),Ti++);var ho=Ak.superChatBuyFlowEntryPoint;void 0!==ho&&(bl(Hm,2,E2,bob[ho]),Ti++);var qr=Ak.sharedPdgBuyFlowEntryPoint;void 0!==qr&&(bl(Hm,3,E2,aob[qr]),Ti++);var rr=Ak.superStickerBuyFlowEntryPoint;void 0!==rr&&(bl(Hm,4,E2,cob[rr]),Ti++);var Ui=[Ti===Object.keys(Ak).length,Hm];break c}catch(Sa){Y(Sa);Ui=[!1,void 0];break c}}var Hl=Ui;Hl[0]&&(Ik(co,epa,2,Hl[1]),eo++)}var Dj=Gm.itemSelectionPageDisplayedContext;
if(Dj){c:{var sr=new fpa,io=0;try{var Tp=Dj.superStickerBuyFlowType;void 0!==Tp&&(S(sr,1,eob[Tp]),io++);var jo=[io===Object.keys(Dj).length,sr];break c}catch(Sa){Y(Sa);jo=[!1,void 0];break c}}var tr=jo;tr[0]&&(Ik(co,fpa,3,tr[1]),eo++)}var ko=[eo===Object.keys(Gm).length,co];break b}catch(Sa){Y(Sa);ko=[!1,void 0];break b}ko=void 0}var Up=ko;Up[0]&&(Ik(r,gpa,20,Up[1]),t++)}var ni=q.ypcPurchaseContext;if(ni){b:{var Il=new Apa,Vi=0;try{var Vp=ni.commerceFlowLoggingParams;if(Vp){var Wg=xOa(Vp);Wg[0]&&
(Ik(Il,Sz,1,Wg[1]),Vi++)}var Zf=ni.offerType;void 0!==Zf&&(S(Il,2,Cmb[Zf]),Vi++);var $f=ni.transactionType;void 0!==$f&&(S(Il,3,Qnb[$f]),Vi++);var Jl=ni.paymentProcessor;void 0!==Jl&&(S(Il,4,Dmb[Jl]),Vi++);var ur=[Vi===Object.keys(ni).length,Il];break b}catch(Sa){Y(Sa);ur=[!1,void 0];break b}ur=void 0}var Ue=ur;Ue[0]&&(Ik(r,Apa,21,Ue[1]),t++)}var zh=q.webViewContext;if(zh){b:{var rf=new tpa,ag=0;try{var Kl=zh.hostname;void 0!==Kl&&(Q(rf,1,Kl),ag++);var Bk=zh.webViewUseCase;void 0!==Bk&&(S(rf,2,qob[Bk]),
ag++);var vr=zh.isFirstPartyHost;void 0!==vr&&(Uk(rf,5,vr),ag++);var jt=zh.isLoaded;void 0!==jt&&(Uk(rf,3,jt),ag++);var kt=zh.webViewEngagementSec;void 0!==kt&&(Vk(rf,4,kt),ag++);var Wp=[ag===Object.keys(zh).length,rf];break b}catch(Sa){Y(Sa);Wp=[!1,void 0];break b}}var wr=Wp;wr[0]&&(Ik(r,tpa,22,wr[1]),t++)}var Im=q.videoSuggestionsContext;if(Im){b:{var lo=new Rz,Ll=0;try{var Ml=Im.type;void 0!==Ml&&(S(lo,1,ymb[Ml]),Ll++);var Xp=Im.serializedSuggestionData;void 0!==Xp&&(al(lo,2,Xp),Ll++);var Yp=Im.videoId;
void 0!==Yp&&(lo.setVideoId(Yp),Ll++);var Wi=[Ll===Object.keys(Im).length,lo];break b}catch(Sa){Y(Sa);Wi=[!1,void 0];break b}}var Zp=Wi;Zp[0]&&(Ik(r,Rz,23,Zp[1]),t++)}var mo=q.actionSheetContext;if(mo){b:{var Nl=new Joa,Ck=0;try{var Ol=mo.parentScreenUiType;void 0!==Ol&&(Vk(Nl,1,Ol),Ck++);var Pl=[Ck===Object.keys(mo).length,Nl];break b}catch(Sa){Y(Sa);Pl=[!1,void 0];break b}}var no=Pl;no[0]&&(Ik(r,Joa,24,no[1]),t++)}var oo=q.producerExportContext;if(oo){b:{var $p=new lpa,Ql=0;try{var Dk=oo.exportDetails;
if(Dk){c:{var Rl=new kpa,Ej=0;try{var Ek=Dk.project;if(Ek){d:{var Fk=new Iz,aq=0;try{var xr=Ek.projectId;void 0!==xr&&(Q(Fk,1,xr),aq++);var lt=Ek.durationMs;void 0!==lt&&(Yk(Fk,2,lt),aq++);var po=[aq===Object.keys(Ek).length,Fk];break d}catch(Sa){Y(Sa);po=[!1,void 0];break d}}var qo=po;qo[0]&&(Ik(Rl,Iz,1,qo[1]),Ej++)}var Jm=Dk.renderDetails;if(Jm){d:{var Xi=new jpa,oi=0;try{var Sl=Jm.sizeBytes;void 0!==Sl&&(Xk(Xi,1,Sl),oi++);var yr=Jm.pixelWidth;void 0!==yr&&(Vk(Xi,2,yr),oi++);var zr=Jm.pixelHeight;
void 0!==zr&&(Vk(Xi,3,zr),oi++);var Yi=[oi===Object.keys(Jm).length,Xi];break d}catch(Sa){Y(Sa);Yi=[!1,void 0];break d}}var Ar=Yi;Ar[0]&&(Ik(Rl,jpa,2,Ar[1]),Ej++)}var ro=[Ej===Object.keys(Dk).length,Rl];break c}catch(Sa){Y(Sa);ro=[!1,void 0];break c}ro=void 0}var bq=ro;bq[0]&&(Ik($p,kpa,1,bq[1]),Ql++)}var kv=[Ql===Object.keys(oo).length,$p];break b}catch(Sa){Y(Sa);kv=[!1,void 0];break b}kv=void 0}var cq=kv;cq[0]&&(Ik(r,lpa,25,cq[1]),t++)}var Zi=q.downloadMyVideoContext;if(Zi){b:{var Gk=new yz,Tl=
0;try{var mt=Zi.videoId;void 0!==mt&&(Gk.setVideoId(mt),Tl++);var lv=Zi.videoSid;void 0!==lv&&(Xk(Gk,2,lv),Tl++);var Sx=Zi.downloadError;void 0!==Sx&&(S(Gk,3,unb[Sx]),Tl++);var mv=Zi.totalAssetSize;void 0!==mv&&(Xk(Gk,4,mv),Tl++);var nv=Zi.totalDownloadedPercent;void 0!==nv&&(Wk(Gk,5,nv),Tl++);var ov=Zi.mddDownloadErrorCode;void 0!==ov&&(Wk(Gk,6,ov),Tl++);var nt=[Tl===Object.keys(Zi).length,Gk];break b}catch(Sa){Y(Sa);nt=[!1,void 0];break b}}var Tx=nt;Tx[0]&&(Ik(r,yz,26,Tx[1]),t++)}var Br=q.miniAppContext;
if(Br){b:{var ot=new noa,Cr=0;try{var Ux=Br.externalPostId;void 0!==Ux&&(Q(ot,1,Ux),Cr++);var pt=Br.miniAppReleaseId;void 0!==pt&&(Vk(ot,3,pt),Cr++);var Dr=Br.postPlayNonce;void 0!==Dr&&(Q(ot,4,Dr),Cr++);var qt=[Cr===Object.keys(Br).length,ot];break b}catch(Sa){Y(Sa);qt=[!1,void 0];break b}}var Vx=qt;Vx[0]&&(Ik(r,noa,27,Vx[1]),t++)}var pv=q.shoppingCartContext;if(pv){b:{var qv=new mpa,Wx=0;try{var rv=pv.shoppingFlowParams;if(rv){var Xx=sOa(rv);Xx[0]&&(Ik(qv,Jz,1,Xx[1]),Wx++)}var tv=[Wx===Object.keys(pv).length,
qv];break b}catch(Sa){Y(Sa);tv=[!1,void 0];break b}tv=void 0}var Yx=tv;Yx[0]&&(Ik(r,mpa,28,Yx[1]),t++)}var Pa=q.sponsorshipsPurchaseContext;if(Pa){b:{var iO=new opa,jO=0;try{var FB=Pa.joinMethod;void 0!==FB&&(S(iO,1,Emb[FB]),jO++);var GB=[jO===Object.keys(Pa).length,iO];break b}catch(Sa){Y(Sa);GB=[!1,void 0];break b}}var IG=GB;IG[0]&&(Ik(r,opa,29,IG[1]),t++)}var HB=q.ypcCujContext;if(HB){b:{var JG=new zpa,IB=0;try{var kO=HB.serializedYpcCujLoggingParams;void 0!==kO&&(al(JG,1,kO),IB++);var KG=HB.ypcCujLoggingClientPayload;
if(KG){c:{var lO=new ypa,mO=0;try{var LG=KG.ypcAcquisitionCujLoggingClientPayload;if(LG){d:{var nO=new xpa,oO=0;try{var uv=LG.ypcAcquisitionDebugLoggingParams;if(uv){e:{var ob=new Tz,kR=0;try{var H2a=uv.transactionErrorType;void 0!==H2a&&(S(ob,1,Pnb[H2a]),kR++);var I2a=uv.commerceErrorType;void 0!==I2a&&(S(ob,4,Onb[I2a]),kR++);var J2a=uv.errorMessage;void 0!==J2a&&(Q(ob,2,J2a),kR++);var K2a=uv.errorInfo;void 0!==K2a&&(Q(ob,3,K2a),kR++);var Cra=[kR===Object.keys(uv).length,ob];break e}catch(Sa){Y(Sa);
Cra=[!1,void 0];break e}}var L2a=Cra;L2a[0]&&(Ik(nO,Tz,1,L2a[1]),oO++)}var Dra=[oO===Object.keys(LG).length,nO];break d}catch(Sa){Y(Sa);Dra=[!1,void 0];break d}Dra=void 0}var M2a=Dra;M2a[0]&&(Jk(lO,xpa,1,tnb,M2a[1]),mO++)}var Era=[mO===Object.keys(KG).length,lO];break c}catch(Sa){Y(Sa);Era=[!1,void 0];break c}Era=void 0}var N2a=Era;N2a[0]&&(Ik(JG,ypa,2,N2a[1]),IB++)}var Fra=[IB===Object.keys(HB).length,JG];break b}catch(Sa){Y(Sa);Fra=[!1,void 0];break b}Fra=void 0}var O2a=Fra;O2a[0]&&(Ik(r,zpa,30,
O2a[1]),t++)}var Gra=[t===Object.keys(q).length,r];break a}catch(Sa){Y(Sa);Gra=[!1,void 0];break a}Gra=void 0}var P2a=Gra;P2a[0]&&(Ik(b,Bpa,3,P2a[1]),c++)}var Q2a=a.flowType;void 0!==Q2a&&(S(b,4,wnb[Q2a]),c++);var R2a=a.flowEventStatus;void 0!==R2a&&(Vk(b,5,R2a),c++);var S2a=a.csn;void 0!==S2a&&(Q(b,6,S2a),c++);var T2a=a.can;void 0!==T2a&&(Q(b,7,T2a),c++);var Hra=a.cuiAssociations;if(Hra){a:{var Ira=new by,U2a=0;try{var V2a=Hra.association;V2a&&(tO(Ira.j.bind(Ira),V2a,lOa),U2a++);var Jra=[U2a===Object.keys(Hra).length,
Ira];break a}catch(Sa){Y(Sa);Jra=[!1,void 0];break a}}var W2a=Jra;W2a[0]&&(Ik(b,by,8,W2a[1]),c++)}return[c===Object.keys(a).length,b]}catch(Sa){return Y(Sa),[!1,void 0]}},
idbQuotaExceeded:function(a){var b=new Hpa,c=0;try{var d=a.deviceStorageUsageMbytes;void 0!==d&&(Xk(b,1,d),c++);var e=a.deviceStorageQuotaMbytes;void 0!==e&&(Xk(b,2,e),c++);var f=a.isIframe;void 0!==f&&(Uk(b,3,f),c++);var h=a.isSw;void 0!==h&&(Uk(b,4,h),c++);var l=a.dbName;void 0!==l&&(Q(b,5,l),c++);var m=a.objectStoreNames;void 0!==m&&(Q(b,6,m),c++);var n=a.transactionCount;void 0!==n&&(Vk(b,7,n),c++);var p=a.transactionMode;void 0!==p&&(Q(b,8,p),c++);return[c===Object.keys(a).length,b]}catch(q){return Y(q),
[!1,void 0]}},
idbTransactionAborted:function(a){var b=new Ipa,c=0;try{var d=a.objectStoreNames;void 0!==d&&(Q(b,1,d),c++);var e=a.hasWindowUnloaded;void 0!==e&&(Uk(b,2,e),c++);var f=a.transactionCount;void 0!==f&&(Vk(b,3,f),c++);var h=a.transactionDuration;void 0!==h&&(Vk(b,4,h),c++);var l=a.dbDuration;void 0!==l&&(Vk(b,5,l),c++);return[c===Object.keys(a).length,b]}catch(m){return Y(m),[!1,void 0]}},
streamzIncremented:function(a){var b=new cqa,c=0;try{var d=a.serializedIncrementBatch;void 0!==d&&(al(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
sliEventBatch:function(a){var b=new wz,c=0;try{var d=a.loggedEvents;d&&(tO(b.j.bind(b),d,aPa),c++);var e=a.unloggedEvents;e&&(tO(b.B.bind(b),e,aPa),c++);var f=a.playerClientVersion;void 0!==f&&(Yk(b,3,f),c++);var h=a.playerCanaryState;void 0!==h&&(S(b,4,nnb[h]),c++);var l=a.dimensions;if(l){a:{var m=new Doa;d=0;try{var n=l.playerClientVersion;void 0!==n&&(Yk(m,1,n),d++);var p=l.playerCanaryState;void 0!==p&&(S(m,2,nnb[p]),d++);var q=[d===Object.keys(l).length,m];break a}catch(r){Y(r);q=[!1,void 0];
break a}}l=q;l[0]&&(Ik(b,Doa,5,l[1]),c++)}return[c===Object.keys(a).length,b]}catch(r){return Y(r),[!1,void 0]}},
playbackAssociated:function(a){var b=new Xz,c=0;try{var d=a.cpn;void 0!==d&&(Q(b,1,d),c++);var e=a.playbackVe;if(e){var f=vO(e);f[0]&&(Ik(b,zz,2,f[1]),c++)}var h=a.csn;void 0!==h&&(Q(b,3,h),c++);var l=a.queueInfo;if(l){a:{var m=new Wz;d=0;try{var n=l.enqueueingVe;if(n){var p=vO(n);p[0]&&(Ik(m,zz,1,p[1]),d++)}var q=l.enqueueingCsn;void 0!==q&&(Q(m,2,q),d++);var r=l.clientEnqueueingTimeMs;void 0!==r&&(Xk(m,3,r),d++);var t=[d===Object.keys(l).length,m];break a}catch(v){Y(v);t=[!1,void 0];break a}t=void 0}l=
t;l[0]&&(Ik(b,Wz,4,l[1]),c++)}return[c===Object.keys(a).length,b]}catch(v){return Y(v),[!1,void 0]}},
autoplayTriggered:function(a){var b=new Foa,c=0;try{var d=a.intentional;void 0!==d&&(Uk(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
webPlayerApiCalled:function(a){var b=new sA,c=0;try{var d=a.callerUrl;void 0!==d&&(Q(b,1,d),c++);var e=a.methodName;void 0!==e&&(Q(b,2,e),c++);var f=a.origin;void 0!==f&&(Q(b,3,f),c++);var h=a.playerStyle;void 0!==h&&(Q(b,4,h),c++);var l=a.embeddedPlayerMode;void 0!==l&&(S(b,5,Fmb[l]),c++);var m=a.errorCode;void 0!==m&&(Vk(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}},
embedsAdEvent:function(a){var b=new Eoa,c=0;try{var d=a.eventType;void 0!==d&&(S(b,1,qnb[d]),c++);var e=a.breakType;void 0!==e&&(S(b,2,pnb[e]),c++);var f=a.packageName;void 0!==f&&(Q(b,3,f),c++);var h=a.embedUrl;void 0!==h&&(Q(b,4,h),c++);var l=a.adSource;void 0!==l&&(S(b,5,rnb[l]),c++);var m=a.youtubeHost;void 0!==m&&(Q(b,6,m),c++);var n=a.embeddedPlayerMode;void 0!==n&&(S(b,7,Fmb[n]),c++);return[c===Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}},
embedsShouldRequestStorageAccessResult:function(a){var b=new Hoa,c=0;try{var d=a.result;void 0!==d&&(Uk(b,1,d),c++);var e=a.returnsUndefined;void 0!==e&&(Uk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}},
embedsRequestStorageAccessState:function(a){var b=new Goa,c=0;try{var d=a.isCued;void 0!==d&&(Uk(b,1,d),c++);var e=a.isAutoplayBlocked;void 0!==e&&(Uk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}},
embedsRequestStorageAccessFailedState:function(a){var b=new xz,c=0;try{var d=a.state;void 0!==d&&(b.Hc(d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
heartbeatActionPlayerHalted:function(a){var b=new Fpa,c=0;try{var d=a.serializedServerContext;void 0!==d&&(al(b,1,d),c++);var e=a.enforcedPolicyToHaltOnNetworkFailure;void 0!==e&&(Uk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}},
heartbeatActionPlayerTransitioned:function(a){var b=new Gpa,c=0;try{var d=a.reason;void 0!==d&&(S(b,1,ynb[d]),c++);var e=a.trigger;void 0!==e&&(S(b,2,znb[e]),c++);var f=a.serializedServerContext;void 0!==f&&(al(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}},
embedsItpWatchLaterResult:function(a){var b=new Ioa,c=0;try{var d=a.accepted;void 0!==d&&(Uk(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
html5PlayerHealthEvent:function(a){var b=new Uz,c=0;try{var d=a.started;void 0!==d&&(Uk(b,1,d),c++);var e=a.stateAtSend;void 0!==e&&(S(b,2,Nnb[e]),c++);var f=a.joinLatencySecs;void 0!==f&&(Zk(b,4,f),c++);var h=a.playTimeSecs;void 0!==h&&(Zk(b,5,h),c++);var l=a.rebufferTimeSecs;void 0!==l&&(Zk(b,6,l),c++);var m=a.playerCanaryType;void 0!==m&&(S(b,7,Bnb[m]),c++);var n=a.isAd;void 0!==n&&(Uk(b,8,n),c++);var p=a.liveMode;void 0!==p&&(S(b,9,Mnb[p]),c++);var q=a.isGapless;void 0!==q&&(Uk(b,10,q),c++);var r=
a.hasDrm;void 0!==r&&(Uk(b,11,r),c++);var t=a.seekCount;void 0!==t&&(Vk(b,12,t),c++);var v=a.networkErrorCount;void 0!==v&&(Vk(b,13,v),c++);var w=a.nonNetworkErrorCount;void 0!==w&&(Vk(b,14,w),c++);var A=a.isServerStitchedDai;void 0!==A&&(Uk(b,15,A),c++);var C=a.playerCanaryStage;void 0!==C&&(S(b,16,Anb[C]),c++);var F=a.encounteredSabrFallback;void 0!==F&&(Uk(b,17,F),c++);return[c===Object.keys(a).length,b]}catch(H){return Y(H),[!1,void 0]}},
adsClientStateChange:function(a){var b=new Una,c=0;try{var d=a.cuepointTrigger;if(d){a:{var e=new qy,f=0;try{var h=d.type;void 0!==h&&(S(e,1,$mb[h]),f++);var l=d.event;void 0!==l&&(S(e,2,Zmb[l]),f++);var m=d.cuepointId;void 0!==m&&(Q(e,3,m),f++);var n=d.totalCueDurationMs;void 0!==n&&(Zk(e,4,n),f++);var p=d.playheadTimeMs;void 0!==p&&(Zk(e,5,p),f++);var q=d.cueStartTimeMs;void 0!==q&&(Zk(e,6,q),f++);var r=d.cuepointReceivedTimeMs;void 0!==r&&(Zk(e,7,r),f++);var t=d.contentCpn;void 0!==t&&(Q(e,8,t),
f++);var v=d.externalChannelId;void 0!==v&&(Q(e,9,v),f++);var w=[f===Object.keys(d).length,e];break a}catch(ic){Y(ic);w=[!1,void 0];break a}}var A=w;A[0]&&(Jk(b,qy,1,D2,A[1]),c++)}var C=a.daiStateTrigger;if(C){a:{var F=new vy,H=0;try{var M=C.contentCpn;void 0!==M&&(Q(F,1,M),H++);var L=C.totalCueDurationMs;void 0!==L&&(Zk(F,2,L),H++);var R=C.filledAdsDurationMs;void 0!==R&&(Zk(F,3,R),H++);var ba=C.cueStartChange;void 0!==ba&&(S(F,4,fnb[ba]),H++);var ma=C.cueDurationChange;void 0!==ma&&(S(F,5,dnb[ma]),
H++);var na=C.cueDurationChangeReason;void 0!==na&&(S(F,6,enb[na]),H++);var ia=C.errorType;void 0!==ia&&(S(F,7,gnb[ia]),H++);var sa=C.externalChannelId;void 0!==sa&&(Q(F,8,sa),H++);var aa=C.adClientData;if(aa){var U=fOa(aa);U[0]&&(Ik(F,my,9,U[1]),H++)}var Ka=[H===Object.keys(C).length,F];break a}catch(ic){Y(ic);Ka=[!1,void 0];break a}Ka=void 0}var x=Ka;x[0]&&(Jk(b,vy,2,D2,x[1]),c++)}var ca=a.daiAdBreakCriticalError;if(ca){a:{var Ma=new ry,$a=0;try{var kb=ca.contentCpn;void 0!==kb&&(Q(Ma,1,kb),$a++);
var Qa=ca.errorType;void 0!==Qa&&(S(Ma,2,gnb[Qa]),$a++);var Va=ca.externalChannelId;void 0!==Va&&(Q(Ma,3,Va),$a++);var jb=ca.msg;void 0!==jb&&(Q(Ma,4,jb),$a++);var rb=ca.cueIdentifier;void 0!==rb&&(Q(Ma,5,rb),$a++);var pb=[$a===Object.keys(ca).length,Ma];break a}catch(ic){Y(ic);pb=[!1,void 0];break a}}var B=pb;B[0]&&(Jk(b,ry,3,D2,B[1]),c++)}var D=a.daiAdBreakWarning;if(D){a:{var E=new ty,J=0;try{var K=D.contentCpn;void 0!==K&&(Q(E,1,K),J++);var da=D.errorType;void 0!==da&&(S(E,2,gnb[da]),J++);var ta=
D.externalChannelId;void 0!==ta&&(Q(E,3,ta),J++);var la=D.msg;void 0!==la&&(Q(E,4,la),J++);var O=D.cueIdentifier;void 0!==O&&(Q(E,5,O),J++);var Z=[J===Object.keys(D).length,E];break a}catch(ic){Y(ic);Z=[!1,void 0];break a}}var za=Z;za[0]&&(Jk(b,ty,4,D2,za[1]),c++)}var xa=a.daiAdBreakInfo;if(xa){a:{var ab=new sy,Wa=0;try{var zb=xa.contentCpn;void 0!==zb&&(Q(ab,1,zb),Wa++);var Rb=xa.totalCueDurationMs;void 0!==Rb&&(Xk(ab,2,Rb),Wa++);var Za=xa.filledAdsDurationMs;void 0!==Za&&(Xk(ab,3,Za),Wa++);var $b=
xa.cueStartChange;void 0!==$b&&(S(ab,4,fnb[$b]),Wa++);var hc=xa.cueDurationChange;void 0!==hc&&(S(ab,5,dnb[hc]),Wa++);var Jc=xa.cueDurationChangeReason;void 0!==Jc&&(S(ab,6,enb[Jc]),Wa++);var Yb=xa.externalChannelId;void 0!==Yb&&(Q(ab,7,Yb),Wa++);var vc=xa.cueIdentifier;void 0!==vc&&(Q(ab,8,vc),Wa++);var $c=xa.infoType;void 0!==$c&&(S(ab,9,hnb[$c]),Wa++);var Rc=xa.msg;void 0!==Rc&&(Q(ab,10,Rc),Wa++);var tc=xa.filledAdCount;void 0!==tc&&(Vk(ab,11,tc),Wa++);var Vb=[Wa===Object.keys(xa).length,ab];break a}catch(ic){Y(ic);
Vb=[!1,void 0];break a}}var Wb=Vb;Wb[0]&&(Jk(b,sy,5,D2,Wb[1]),c++)}var yd=a.visibilityErrorDebugInfo;if(yd){a:{var pd=new Tna,qd=0;try{var ac=yd.elementName;void 0!==ac&&(Q(pd,1,ac),qd++);var Ec=yd.contentVideoPlaybackEventId;void 0!==Ec&&(Q(pd,2,Ec),qd++);var Ib=yd.errorList;void 0!==Ib&&(Q(pd,3,Ib),qd++);var bd=yd.htmlDump;void 0!==bd&&(Q(pd,4,bd),qd++);var zd=[qd===Object.keys(yd).length,pd];break a}catch(ic){Y(ic);zd=[!1,void 0];break a}}var Pb=zd;Pb[0]&&(Jk(b,Tna,6,D2,Pb[1]),c++)}var fe=a.playbackTimelineAdBreakStateTrigger;
if(fe){a:{var Ud=new Rna,Vd=0;try{var Ce=fe.cueIdentifier;void 0!==Ce&&(Q(Ud,1,Ce),Vd++);var De=fe.timestampUnixEpochSec;void 0!==De&&(Xk(Ud,2,De),Vd++);var Ld=fe.adRequestState;void 0!==Ld&&(S(Ud,3,anb[Ld]),Vd++);var $e=fe.segmentState;void 0!==$e&&(S(Ud,4,bnb[$e]),Vd++);var Oe=fe.timestampUnixEpochMs;void 0!==Oe&&(Xk(Ud,5,Oe),Vd++);var Md=[Vd===Object.keys(fe).length,Ud];break a}catch(ic){Y(ic);Md=[!1,void 0];break a}}var Bf=Md;Bf[0]&&(Jk(b,Rna,7,D2,Bf[1]),c++)}var Nd=a.extraLongAdBreakDebugInfo;
if(Nd){a:{var ge=new Qna,rd=0;try{var Hd=Nd.contentVideoPlaybackEventId;void 0!==Hd&&(Q(ge,1,Hd),rd++);var sd=Nd.adPlacementKindCuepointInitiatedCueRange;if(sd){var Od=mOa(sd);Od[0]&&(Ik(ge,yy,2,Od[1]),rd++)}var jg=Nd.adPlacementConfigImpliedCueRange;if(jg){var af=mOa(jg);af[0]&&(Ik(ge,yy,3,af[1]),rd++)}var Qf=Nd.adPlacementKindMillisecondsInitiatedCueRange;if(Qf){var Xc=mOa(Qf);Xc[0]&&(Ik(ge,yy,4,Xc[1]),rd++)}var oc=Nd.cueIdentifier;void 0!==oc&&(Q(ge,5,oc),rd++);var Pe=[rd===Object.keys(Nd).length,
ge];break a}catch(ic){Y(ic);Pe=[!1,void 0];break a}Pe=void 0}var ih=Pe;ih[0]&&(Jk(b,Qna,8,D2,ih[1]),c++)}var Zh=a.comparePyvAdTagInfo;if(Zh){a:{var mh=new Pna,Ki=0;try{var pf=Zh.pyvAdTagUrlFromPlayer;void 0!==pf&&(Q(mh,1,pf),Ki++);var ff=Zh.pyvAdTagUrlFromWatchNext;void 0!==ff&&(Q(mh,2,ff),Ki++);var Fe=[Ki===Object.keys(Zh).length,mh];break a}catch(ic){Y(ic);Fe=[!1,void 0];break a}}var $h=Fe;$h[0]&&(Jk(b,Pna,9,D2,$h[1]),c++)}var uc=a.driftRecoveryInfo;if(uc){a:{var Fc=new wy,Gc=0;try{var Li=uc.contentCpn;
void 0!==Li&&(Q(Fc,1,Li),Gc++);var Ff=uc.cueIdentifier;void 0!==Ff&&(Q(Fc,2,Ff),Gc++);var pg=uc.driftRecoveryMs;void 0!==pg&&(Xk(Fc,3,pg),Gc++);var gf=uc.breakDurationMs;void 0!==gf&&(Xk(Fc,4,gf),Gc++);var Dd=uc.driftFromHeadMs;void 0!==Dd&&(Xk(Fc,5,Dd),Gc++);var Tf=uc.appliedDriftRecoveryMs;void 0!==Tf&&(Xk(Fc,6,Tf),Gc++);var ai=uc.destinationMs;void 0!==ai&&(Xk(Fc,7,ai),Gc++);var qg=uc.adClientData;if(qg){var Pg=fOa(qg);Pg[0]&&(Ik(Fc,my,8,Pg[1]),Gc++)}var rg=[Gc===Object.keys(uc).length,Fc];break a}catch(ic){Y(ic);
rg=[!1,void 0];break a}rg=void 0}var Mi=rg;Mi[0]&&(Jk(b,wy,10,D2,Mi[1]),c++)}var ke=a.adsClientEvent;if(ke){a:{var sg=new Ona,tg=0;try{var bi=ke.eventType;void 0!==bi&&(S(sg,1,Ymb[bi]),tg++);var Gf=ke.adClientData;if(Gf){var ug=fOa(Gf);ug[0]&&(Ik(sg,my,3,ug[1]),tg++)}var nh=ke.serializedAdServingData;void 0!==nh&&(al(sg,4,nh),tg++);var Qg=ke.eventOrder;void 0!==Qg&&(Vk(sg,5,Qg),tg++);var oh=ke.serializedSlotAdServingData;void 0!==oh&&(al(sg,6,oh),tg++);var te=ke.errorInfo;if(te){b:{var Se=new py,
$d=0;try{var qj=te.errorType;void 0!==qj&&(S(Se,1,Xmb[qj]),$d++);var hf=te.errorMessage;void 0!==hf&&(S(Se,2,Wmb[hf]),$d++);var Ge=[$d===Object.keys(te).length,Se];break b}catch(ic){Y(ic);Ge=[!1,void 0];break b}}var Uf=Ge;Uf[0]&&(Ik(sg,py,7,Uf[1]),tg++)}var Vf=[tg===Object.keys(ke).length,sg];break a}catch(ic){Y(ic);Vf=[!1,void 0];break a}Vf=void 0}var Rg=Vf;Rg[0]&&(Jk(b,Ona,11,D2,Rg[1]),c++)}var Qd=a.daiAdStateTracking;if(Qd){a:{var vg=new uy,Hf=0;try{var ci=Qd.eventType;void 0!==ci&&(S(vg,1,cnb[ci]),
Hf++);var hk=Qd.contentCpn;void 0!==hk&&(Q(vg,2,hk),Hf++);var qm=Qd.externalChannelId;void 0!==qm&&(Q(vg,3,qm),Hf++);var ll=Qd.adCpn;void 0!==ll&&(Q(vg,4,ll),Hf++);var ml=Qd.adCount;void 0!==ml&&(Xk(vg,5,ml),Hf++);var ik=Qd.msg;void 0!==ik&&(Q(vg,6,ik),Hf++);var Ni=[Hf===Object.keys(Qd).length,vg];break a}catch(ic){Y(ic);Ni=[!1,void 0];break a}}var jf=Ni;jf[0]&&(Jk(b,uy,12,D2,jf[1]),c++)}var He=a.adTrimmingInfo;if(He){a:{var ae=new ny,ph=0;try{var wg=He.contentCpn;void 0!==wg&&(Q(ae,1,wg),ph++);var rm=
He.cueIdentifier;void 0!==rm&&(Q(ae,2,rm),ph++);var xg=He.adMediaInfo;xg&&(tO(ae.j.bind(ae),xg,nOa),ph++);var di=[ph===Object.keys(He).length,ae];break a}catch(ic){Y(ic);di=[!1,void 0];break a}}var rj=di;rj[0]&&(Jk(b,ny,13,D2,rj[1]),c++)}var Sg=a.adsAttributionEvent;if(Sg){a:{var qh=new oy,sj=0;try{var tj=Sg.errorCode;void 0!==tj&&(S(qh,1,inb[tj]),sj++);var rh=Sg.attributionStep;void 0!==rh&&(S(qh,2,jnb[rh]),sj++);var uj=Sg.innerErrorDomain;void 0!==uj&&(Q(qh,3,uj),sj++);var Oi=Sg.innerErrorCode;
void 0!==Oi&&(Xk(qh,4,Oi),sj++);var sh=[sj===Object.keys(Sg).length,qh];break a}catch(ic){Y(ic);sh=[!1,void 0];break a}}var vj=sh;vj[0]&&(Jk(b,oy,14,D2,vj[1]),c++)}var yg=a.playerDebugData;if(yg){a:{var th=new zy,jk=0;try{var nl=yg.pmlSignal;void 0!==nl&&(Uk(th,1,nl),jk++);var sm=yg.contentCpn;void 0!==sm&&(Q(th,2,sm),jk++);var ei=[jk===Object.keys(yg).length,th];break a}catch(ic){Y(ic);ei=[!1,void 0];break a}}var Wf=ei;Wf[0]&&(Jk(b,zy,15,D2,Wf[1]),c++)}var qf=a.sourceRegistrationEvent;if(qf){a:{var Xf=
new Sna,zg=0;try{var kk=qf.eventType;void 0!==kk&&(S(Xf,1,knb[kk]),zg++);var wj=[zg===Object.keys(qf).length,Xf];break a}catch(ic){Y(ic);wj=[!1,void 0];break a}}var ol=wj;ol[0]&&(Jk(b,Sna,16,D2,ol[1]),c++)}return[c===Object.keys(a).length,b]}catch(ic){return Y(ic),[!1,void 0]}},
offlineTransferStatusChanged:oNa,offlineStateSnapshot:function(a){var b=new rA,c=0;try{var d=a.offlineVideos;d&&(tO(b.B.bind(b),d,RNa),c++);var e=a.offlinePlaylists;e&&(tO(b.j.bind(b),e,TNa),c++);var f=a.freeDiskSpaceBytes;void 0!==f&&(Xk(b,3,f),c++);var h=a.lastOfflineUsageTimeMs;void 0!==h&&(Xk(b,4,h),c++);var l=a.lastOfflinePlaybackTimeMs;void 0!==l&&(Xk(b,5,l),c++);var m=a.lastOfflineSaveTimeMs;void 0!==m&&(Xk(b,6,m),c++);var n=a.lastOfflineDownloadSuccessTimeMs;void 0!==n&&(Xk(b,7,n),c++);var p=
a.isBatteryCharging;void 0!==p&&(Uk(b,8,p),c++);var q=a.detailedNetworkType;void 0!==q&&(S(b,9,FO[q]),c++);var r=a.batteryLevelPercentage;void 0!==r&&(Vk(b,10,r),c++);var t=a.isPostMigrationState;void 0!==t&&(Uk(b,11,t),c++);var v=a.offlineCacheVerificationFailure;if(v){a:{var w=new lA;d=0;try{var A=v.numUncachedVideos;void 0!==A&&(Wk(w,1,A),d++);var C=v.numTotalCompletedVideos;void 0!==C&&(Wk(w,2,C),d++);var F=v.uncachedVideos;F&&(tO(w.j.bind(w),F,WNa),d++);var H=[d===Object.keys(v).length,w];break a}catch(aa){Y(aa);
H=[!1,void 0];break a}}v=H;v[0]&&(Ik(b,lA,12,v[1]),c++)}var M=a.additionalOfflineClientState;if(M){a:{var L=new Vpa;v=0;try{var R=M.mainAppAdditionalOfflineClientState;if(R){b:{var ba=new nA;H=0;try{var ma=R.downloadRecsVideos;ma&&(tO(ba.j.bind(ba),ma,XNa),H++);var na=R.smartDownloadVideos;na&&(tO(ba.B.bind(ba),na,YNa),H++);var ia=[H===Object.keys(R).length,ba];break b}catch(aa){Y(aa);ia=[!1,void 0];break b}}R=ia;R[0]&&(Ik(L,nA,1,R[1]),v++)}var sa=[v===Object.keys(M).length,L];break a}catch(aa){Y(aa);
sa=[!1,void 0];break a}sa=void 0}M=sa;M[0]&&(Ik(b,Vpa,13,M[1]),c++)}return[c===Object.keys(a).length,b]}catch(aa){return Y(aa),[!1,void 0]}}},Dgb={adNotify:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;
Jk(d,Gna,184,tE,a);c?rE("adNotify",d,c,b):sE("adNotify",d,b)},
biscottiBasedDetection:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,sz,439,tE,a);c?rE("biscottiBasedDetection",d,c,b):sE("biscottiBasedDetection",d,b)},
adNotifyFilled:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,Fna,300,tE,a);c?rE("adNotifyFilled",d,c,b):sE("adNotifyFilled",d,b)},
idbTransactionEnded:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,Vz,352,tE,a);c?rE("idbTransactionEnded",d,c,b):sE("idbTransactionEnded",d,b)},
idbUnexpectedlyClosed:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,Jpa,348,tE,a);c?rE("idbUnexpectedlyClosed",d,c,b):sE("idbUnexpectedlyClosed",d,b)},
flowEvent:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,Dpa,304,tE,a);c?rE("flowEvent",d,c,b):sE("flowEvent",d,b)},
idbQuotaExceeded:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,Hpa,351,tE,a);c?rE("idbQuotaExceeded",d,c,b):sE("idbQuotaExceeded",d,b)},
idbTransactionAborted:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,Ipa,353,tE,a);c?rE("idbTransactionAborted",d,c,b):sE("idbTransactionAborted",d,b)},
streamzIncremented:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,cqa,126,tE,a);c?rE("streamzIncremented",d,c,b):sE("streamzIncremented",d,b)},
sliEventBatch:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,wz,344,tE,a);c?rE("sliEventBatch",d,c,b):sE("sliEventBatch",d,b)},
playbackAssociated:Iwa,autoplayTriggered:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,Foa,209,tE,a);c?rE("autoplayTriggered",d,c,b):sE("autoplayTriggered",d,b)},
webPlayerApiCalled:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,sA,76,tE,a);c?rE("webPlayerApiCalled",d,c,b):sE("webPlayerApiCalled",d,b)},
embedsAdEvent:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,Eoa,327,tE,a);c?rE("embedsAdEvent",d,c,b):sE("embedsAdEvent",d,b)},
embedsShouldRequestStorageAccessResult:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,Hoa,251,tE,a);c?rE("embedsShouldRequestStorageAccessResult",d,c,b):sE("embedsShouldRequestStorageAccessResult",d,b)},
embedsRequestStorageAccessState:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,Goa,256,tE,a);c?rE("embedsRequestStorageAccessState",d,c,b):sE("embedsRequestStorageAccessState",d,b)},
embedsRequestStorageAccessFailedState:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,xz,257,tE,a);c?rE("embedsRequestStorageAccessFailedState",d,c,b):sE("embedsRequestStorageAccessFailedState",d,b)},
heartbeatActionPlayerHalted:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,Fpa,332,tE,a);c?rE("heartbeatActionPlayerHalted",d,c,b):sE("heartbeatActionPlayerHalted",d,b)},
heartbeatActionPlayerTransitioned:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,Gpa,330,tE,a);c?rE("heartbeatActionPlayerTransitioned",d,c,b):sE("heartbeatActionPlayerTransitioned",d,b)},
embedsItpWatchLaterResult:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,Ioa,266,tE,a);c?rE("embedsItpWatchLaterResult",d,c,b):sE("embedsItpWatchLaterResult",d,b)},
html5PlayerHealthEvent:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,Uz,293,tE,a);c?rE("html5PlayerHealthEvent",d,c,b):sE("html5PlayerHealthEvent",d,b)},
adsClientStateChange:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,Una,197,tE,a);c?rE("adsClientStateChange",d,c,b):sE("adsClientStateChange",d,b)},
offlineTransferStatusChanged:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,Hz,2,tE,a);c?rE("offlineTransferStatusChanged",d,c,b):sE("offlineTransferStatusChanged",d,b)},
offlineStateSnapshot:function(a,b,c){var d=g.TA("jspb_sparse_encoded_pivot")?new tA([{}]):new tA;Jk(d,rA,22,tE,a);c?rE("offlineStateSnapshot",d,c,b):sE("offlineStateSnapshot",d,b)}};LO.prototype.wy=function(a){this.client=a};
LO.prototype.j=function(){this.clear();this.csn=g.xE()};
LO.prototype.clear=function(){this.C.clear();this.B.clear();this.D.clear();this.csn=null};NO.prototype.wy=function(a){g.BA(MO().wy).bind(MO())(a)};
NO.prototype.clear=function(){g.BA(MO().clear).bind(MO())()};g.k=OO.prototype;g.k.wy=function(a){this.client=a};
g.k.qX=function(a,b){var c=this;b=void 0===b?{}:b;g.BA(function(){var d,e,f,h=(null==(d=g.V(null==a?void 0:a.commandMetadata,g.C2))?void 0:d.rootVe)||(null==(e=g.V(null==a?void 0:a.commandMetadata,Umb))?void 0:null==(f=e.screenVisualElement)?void 0:f.uiType);if(h){d=g.V(null==a?void 0:a.commandMetadata,hob);if(null==d?0:d.parentTrackingParams){var l=g.vE(d.parentTrackingParams);if(d.parentCsn)var m=d.parentCsn}else b.clickedVisualElement?l=b.clickedVisualElement:a.clickTrackingParams&&(l=g.vE(a.clickTrackingParams));
a:{d=g.V(a,g.PS);e=g.V(a,Xnb);if(d){if(e=UKa(d,"VIDEO")){d={token:e,videoId:d.videoId};break a}}else if(e&&(d=UKa(e,"PLAYLIST"))){d={token:d,playlistId:e.playlistId};break a}d=void 0}b=Object.assign({},{cttAuthInfo:d,parentCsn:m},b);if(g.TA("expectation_logging")){var n;b.loggingExpectations=(null==(n=g.V(null==a?void 0:a.commandMetadata,Umb))?void 0:n.loggingExpectations)||void 0}QO(c,h,l,b)}else g.BE(new g.XB("Error: Trying to create a new screen without a rootVeType",a))})()};
g.k.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=void 0===c?0:c;a?(c=g.xE(void 0===c?0:c))?(Mxa(this.client,c,g.vE(a),b),b=!0):b=!1:b=!1;return b};
g.k.stateChanged=function(a,b,c){this.visualElementStateChanged(g.vE(a),b,void 0===c?0:c)};
g.k.visualElementStateChanged=function(a,b,c){c=void 0===c?0:c;0===c&&this.B.has(c)?this.Z.push([a,b]):jPa(this,a,b,c)};TO.prototype.fetch=function(a,b,c){var d=this,e=mPa(a,b,c);return new Promise(function(f,h){function l(){if(null==c?0:c.wr)try{var n=d.handleResponse(a,e.status,e.response,c);f(n)}catch(p){h(p)}else f(d.handleResponse(a,e.status,e.response,c))}
e.onerror=l;e.onload=l;var m;e.send(null!=(m=b.body)?m:null)})};
TO.prototype.handleResponse=function(a,b,c,d){c=c.replace(")]}'","");try{var e=JSON.parse(c)}catch(f){g.BE(new g.XB("JSON parsing failed after XHR fetch",a,b,c));if((null==d?0:d.wr)&&c)throw new g.lH(1,"JSON parsing failed after XHR fetch");e={}}200!==b&&(g.BE(new g.XB("XHR API fetch failed",a,b,c)),e=Object.assign({},e,{errorMetadata:{status:b}}));return e};UO.getInstance=function(){var a=g.Xa("ytglobal.storage_");a||(a=new UO,g.Ua("ytglobal.storage_",a));return a};
UO.prototype.estimate=function(){var a,b,c;return g.G(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(nPa()):d.return()})};
g.Ua("ytglobal.storageClass_",UO);msa.prototype.iq=function(a){this.handleError(a)};
msa.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.TA("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.TA("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":pPa(this,b);break;case "TRANSACTION_ENDED":this.C&&.1>=Math.random()&&this.j("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=
Object.assign({},b,{hasWindowUnloaded:this.B}),this.j("idbTransactionAborted",a)}};var d3={},YVa=g.RC("yt-player-local-media",{Yr:(d3.index={zn:2},d3.media={zn:2},d3.captions={zn:5},d3),shared:!1,upgrade:function(a,b){b(2)&&(g.xC(a,"index"),g.xC(a,"media"));b(5)&&g.xC(a,"captions");b(6)&&(yC(a,"metadata"),yC(a,"playerdata"))},
version:5});var vpb={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},e3;a:{var f3=g.pc();f3=f3.toLowerCase();if(g.jc(f3,"android")){var wpb=f3.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(wpb){var xpb=parseFloat(wpb[1]);if(100>xpb){e3=xpb;break a}}var ypb=f3.match("("+Object.keys(vpb).join("|")+")");e3=ypb?vpb[ypb[0]]:0}else e3=void 0}var ER=e3,UUa=0<=ER;var Idb=window;var qPa=Kd(function(){var a,b;return null==(b=(a=window).matchMedia)?void 0:b.call(a,"(prefers-reduced-motion: reduce)").matches});var sPa;g.VO=new rH;sPa=0;var WO={lp:function(a,b){a.splice(0,b)},
FW:function(a){a.reverse()},
xX:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}};var Hfb=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var gR=CPa()?!0:"function"===typeof window.fetch&&window.ReadableStream&&window.AbortController&&!g.NC?!0:!1;var RUa={Pka:"adunit",Vxa:"detailpage",Hya:"editpage",Pya:"embedded",cPa:"leanback",K3a:"previewpage",U4a:"profilepage",fW:"unplugged",T2a:"playlistoverview",Yab:"sponsorshipsoffer",B8a:"shortspage",YHa:"handlesclaiming",JJa:"immersivelivepage",owa:"creatormusic",KJa:"immersivelivepreviewpage",Aga:"admintoolyurt"};var QQa={ANDROID:3,ANDROID_KIDS:18,ANDROID_MUSIC:21,ANDROID_UNPLUGGED:29,WEB:1,WEB_REMIX:67,WEB_UNPLUGGED:41,IOS:5,IOS_KIDS:19,IOS_MUSIC:26,IOS_UNPLUGGED:33},RQa={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"},Ndb={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var uWa={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.aP.prototype.getLanguageInfo=function(){return this.qc};
g.aP.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");1<a.length&&(this.xtags=a[1])}return this.xtags};
g.aP.prototype.toString=function(){return this.qc.name};
g.aP.prototype.getLanguageInfo=g.aP.prototype.getLanguageInfo;bP.prototype.isLocked=function(){return this.C&&!!this.B&&this.B===this.j};
bP.prototype.compose=function(a){if(a.C&&eP(a))return DS;if(a.C||eP(this))return a;if(this.C||eP(a))return this;var b=this.B&&a.B?Math.max(this.B,a.B):this.B||a.B,c=this.j&&a.j?Math.min(this.j,a.j):this.j||a.j;b=Math.min(b,c);var d=0;cP&&(d=0!==this.sb&&0!==a.sb?Math.min(this.sb,a.sb):0===this.sb?a.sb:this.sb);return cP&&b===this.B&&c===this.j&&d===this.sb||!cP&&b===this.B&&c===this.j?this:cP?new bP(b,c,!1,c===this.j&&d===this.sb?this.reason:a.reason,d):new bP(b,c,!1,c===this.j?this.reason:a.reason)};
bP.prototype.D=function(a){return!a.video||cP&&0!==this.sb&&this.sb<a.sb?!1:UQa(this,a.video.quality)};
var zpb=g.dP("auto","hd1080",!1,"l"),Tcb=g.dP("auto","large",!1,"l"),DS=g.dP("auto","auto",!1,"p"),cP=!1;iP.prototype.Mt=function(a){a=a||DS;for(var b=g.Ot(this.videoInfos,function(h){return a.D(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};
iP.prototype.CE=function(a){a=a||DS;return g.Ot(this.videoInfos,function(b){return a.D(b)})};
iP.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var mRa=new Set(["356"]);g.y(VQa,g.I);VQa.prototype.va=function(){g.I.prototype.va.call(this)};g.sP.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.url="")};
g.sP.prototype.get=function(a){tP(this);return this.j[a]||null};
g.sP.prototype.Ke=function(){this.url||(this.url=tRa(this));return this.url};
g.sP.prototype.clone=function(){var a=new g.sP(this.B,this.D);a.scheme=this.scheme;a.path=this.path;a.C=this.C;a.j=g.jd(this.j);a.url=this.url;return a};
var sRa=[vma];g.k=g.zP.prototype;g.k.nN=function(a){this.segments.push(a)};
g.k.Vn=function(a){return!!this.Jn(a)};
g.k.getDuration=function(a){return(a=this.Jn(a))?a.duration:0};
g.k.bY=function(a){return this.getDuration(a)};
g.k.Mn=function(){return this.segments.length?this.segments[0].Pa:-1};
g.k.Ye=function(a){return(a=this.Jn(a))?a.ingestionTime:NaN};
g.k.Ad=function(){return this.segments.length?this.segments[this.segments.length-1].Pa:-1};
g.k.rF=function(a){return this.Ad()===a&&!this.B&&0<=a};
g.k.Pt=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.Dd=function(){return this.segments[0].startTime};
g.k.lA=function(){return this.segments.length};
g.k.ym=function(){return 0};
g.k.Hi=function(a){return(a=this.aA(a))?a.Pa:-1};
g.k.IJ=function(a){return(a=this.Jn(a))?a.sourceURL:""};
g.k.getStartTime=function(a){return(a=this.Jn(a))?a.startTime:0};
g.k.HE=function(a){return this.getStartTime(a)+this.getDuration(a)};
g.k.LJ=ea(2);g.k.isLoaded=function(){return 0<this.segments.length};
g.k.Jn=function(a){if(this.j&&this.j.Pa===a)return this.j;a=g.Sb(this.segments,new yP(a,0,0,0,""),function(b,c){return b.Pa-c.Pa});
return this.j=0<=a?this.segments[a]:null};
g.k.aA=function(a){if(this.j&&this.j.startTime<=a&&a<this.j.startTime+this.j.duration)return this.j;a=g.Sb(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.Lb(a),this.segments.length){var b=this.segments.length?g.Bb(this.segments).endTime:0,c=a[0].Pa-this.Ad();1<c&&taa(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.iY=function(){return 0};xRa.prototype.skip=function(a){this.j+=a};var g3={},Apb=(g3.predictStart="predictStart",g3.start="start",g3["continue"]="continue",g3.stop="stop",g3),BRa={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};IP.prototype.cF=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"])};
IP.prototype.toString=function(){for(var a="",b=g.u(Object.keys(this.data)),c=b.next();!c.done;c=b.next())c=c.value,a+=c+":"+this.data[c]+";";return a};SP.prototype.ao=function(){var a=this.pos;this.pos=0;var b=!1;try{WP(this,440786851)&&(this.pos=0,WP(this,408125543)&&(b=!0))}catch(c){if(c instanceof RangeError)this.pos=0,b=!1,g.BE(c);else throw c;}this.pos=a;return b};eQ.prototype.set=function(a,b){this.base.get(a);this.j[a]=b;this.url=""};
eQ.prototype.get=function(a){return this.j[a]||this.base.get(a)};
eQ.prototype.Ke=function(){this.url||(this.url=$Ra(this));return this.url};gQ.prototype.Oj=function(a,b){if(this.N)return!0;if(vP(this.j))return!1;var c=fQ(b,uP(this.j));if(1>c.timedOut&&1>c.j)return!1;c=c.timedOut+c.j;a=eSa(this,a);b=fQ(b,uP(a));return b.timedOut+b.j+0<c};
gQ.prototype.EJ=function(a){return this.C.get(a)};
gQ.prototype.fl=function(a,b){a.base===this.j&&(this.j=aSa(a,b));a.base===this.D&&(this.D=aSa(a,b))};hQ.prototype.jg=function(){return!!this.j&&this.index.isLoaded()};
hQ.prototype.KA=function(){return!1};
hQ.prototype.zV=function(a){return[a]};
hQ.prototype.TB=function(a){return[a]};iQ.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};mQ.prototype.isEncrypted=function(){return this.j.info.isEncrypted()};
mQ.prototype.Ag=function(){return!!this.j.info.video};
mQ.prototype.Tc=function(){var a=rQ(this),b="";g.Uc(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};sQ.prototype.cA=function(){return this.j?this.j.Ke():""};
sQ.prototype.Xp=function(){return!!(this.j||this.D&&this.D.Tm)};
sQ.prototype.Ep=function(){return oQ(this.ib[0])};
sQ.prototype.fl=function(a,b){this.resource.fl(a,b);if(this.j){this.j=aSa(a,b);b=g.u(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.j.set(c.value,null)}this.requestId=a.get("req_id")};g.y(uQ,hQ);g.k=uQ.prototype;g.k.Gm=function(){return!1};
g.k.kx=function(){return!0};
g.k.FA=function(){return!1};
g.k.KA=function(){return!this.G};
g.k.Ow=function(){return new sQ([new mQ(1,this,this.initRange,"getMetadataRequestInfo")],this.G)};
g.k.bz=function(){return null};
g.k.oD=function(a){this.Vs(a);return this.kx()&&a.B&&!a.Te?new sQ([new mQ(a.type,a.j,a.range,"liveGetNextRequestInfoBySegment",a.Pa,a.startTime,a.duration,a.Tb+a.B,NaN,!0)],this.index.IJ(a.Pa)):this.Ws(oSa(a),!1)};
g.k.Fr=function(a,b){b=void 0===b?!1:b;a=this.index.Hi(a);b&&(a=Math.min(this.index.Ad(),a+1));return this.Ws(a,!0)};
g.k.QP=function(a){ZSa(a)};
g.k.Vs=function(a){return 0===a.B?!0:this.index.Ad()>a.Pa&&this.index.Mn()<=a.Pa+1};
g.k.update=function(a,b,c){this.index.append(a);wRa(this.index,c);this.index.B=b};
g.k.jg=function(){return this.KA()?!0:hQ.prototype.jg.call(this)};
g.k.Ws=function(a,b){var c=this.index.IJ(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.sb?this.info.sb*e:1E3;return new sQ([new mQ(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)};
g.k.yP=function(){return this.KA()?0:this.initRange.length};
g.k.gS=function(){return!1};xQ.prototype.update=function(a){var b=void 0;this.B&&(b=this.B);var c=new xQ,d=Array.from(a.getElementsByTagName("S"));if(d.length){var e=+vQ(a,"timescale")||1,f=(+d[0].getAttribute("t")||0)/e,h=+vQ(a,"startNumber")||0;c.D=f;var l=b?b.startSecs+b.Bh:0,m=Date.parse(ESa(vQ(a,"yt:segmentIngestTime")))/1E3;c.G="SegmentTemplate"===a.parentElement.tagName;c.G&&(c.N=vQ(a,"media"));a=b?h-b.Pa:1;c.K=0<a?0:-a+1;a=g.u(d);for(d=a.next();!d.done;d=a.next()){d=d.value;for(var n=+d.getAttribute("d")/e,p=(+d.getAttribute("yt:sid")||
0)/e,q=+d.getAttribute("r")||0,r=0;r<=q;r++)if(b&&h<=b.Pa)h++;else{var t=new CSa(h,l,n,m+p,f);c.j.push(t);var v=d;var w=e,A=t.startSecs;t=v.getAttribute("yt:cuepointTimeOffset");var C=v.getAttribute("yt:cuepointDuration");if(t&&C){t=Number(t);A=-t/w+A;w=Number(C)/w;C=v.getAttribute("yt:cuepointContext")||null;var F=v.getAttribute("yt:cuepointIdentifier")||"";v=v.getAttribute("yt:cuepointEvent")||"";v=new GP(A,w,C,F,Apb[v]||"unknown",t)}else v=null;v&&c.C.push(v);h++;l+=n;f+=n;m+=n+p}}c.j.length&&
(c.B=g.Bb(c.j))}this.K=c.K;this.B=c.B||this.B;g.Mb(this.j,c.j);g.Mb(this.C,c.C);this.G=c.G;this.N=c.N;-1===this.D&&(this.D=c.getStreamTimeOffset())};
xQ.prototype.getStreamTimeOffset=function(){return-1===this.D?0:this.D};g.y(NSa,g.zP);g.k=NSa.prototype;g.k.Vn=function(a,b){a=yQ(this,a);return 0<=a&&(b||!this.segments[a].pending)};
g.k.Mn=function(){return this.An?this.segments.length?this.aA(this.Dd()).Pa:-1:g.zP.prototype.Mn.call(this)};
g.k.Dd=function(){if(this.Yd)return 0;if(!this.An)return g.zP.prototype.Dd.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Bb(this.segments).endTime-this.qr,0);return 0<this.cf&&this.aA(a).Pa<this.cf?this.Jn(this.cf).startTime:a};
g.k.Pt=function(){if(!this.segments.length)return g.zP.prototype.Pt.call(this);var a=this.Ad();if(!this.An||a<=this.segments[this.segments.length-1].Pa)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new yP(a,Math.max(0,b.startTime-(b.Pa-a)*this.Mj),this.Mj,0,"sq/"+a,void 0,void 0,!0)}return this.Yd?Math.min(this.qr,a.endTime):a.endTime};
g.k.lA=function(){return this.An?this.segments.length?this.Ad()-this.Mn()+1:0:g.zP.prototype.lA.call(this)};
g.k.Ad=function(){var a=Math.min(this.Ih,Math.max(g.zP.prototype.Ad.call(this),this.Tp)),b=1E3*this.qr;b=0<this.Lr&&this.Lr<b;this.Yd&&0<this.qr&&0<this.Tp&&!b&&(b=this.aA(this.qr))&&(a=Math.min(b.Pa-1,a));return a};
g.k.Kw=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.nN=function(a){var b=yQ(this,a.Pa);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.aB&&0===a.Pa%(300/this.Mj)){var c=this.segments[0].Pa,d=Math.floor(this.aB/this.Mj);a=a.Pa-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.xJ=function(){return this.Tp};
g.k.rF=function(a){return MSa?!this.B&&0<=a&&this.Ad()<=a:g.zP.prototype.rF.call(this,a)};
g.k.aA=function(a){if(!this.An)return g.zP.prototype.aA.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].Pa-Math.ceil((this.segments[0].startTime-a)/this.Mj));else if(a>=b.endTime)b=b.Pa+Math.floor((a-b.endTime)/this.Mj+1);else{b=Tb(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.Pa-b.Pa-1))+1)+b.Pa}return this.Jn(b)};
g.k.Jn=function(a){if(!this.An)return g.zP.prototype.Jn.call(this,a);if(!this.segments.length)return null;var b=yQ(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Mj;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Pa-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Pa-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Pa-d.Pa-1),d=d.endTime+(a-d.Pa-1)*b);return new yP(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};
var MSa=!1;g.y(zQ,uQ);g.k=zQ.prototype;g.k.FA=function(){return!0};
g.k.jg=function(){return!0};
g.k.Vs=function(a){return this.kx()&&a.B&&!a.Te||!a.j.index.rF(a.Pa)};
g.k.Ow=function(){};
g.k.Fr=function(a,b){return"number"!==typeof a||isFinite(a)?uQ.prototype.Fr.call(this,a,void 0===b?!1:b):new sQ([new mQ(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Lj,void 0,this.Lj*this.info.sb)],"")};
g.k.Ws=function(a,b){var c=void 0===c?!1:c;if(this.index.Vn(a))return uQ.prototype.Ws.call(this,a,b);var d=this.index.getStartTime(a),e=Math.round(this.Lj*this.info.sb),f=this.Lj;b&&(f=e=0);return new sQ([new mQ(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,f,void 0,e,!b)],0<=a?"sq/"+a:"")};g.y(AQ,hQ);g.k=AQ.prototype;g.k.Gm=function(){return!1};
g.k.kx=function(){return!1};
g.k.FA=function(){return!1};
g.k.Ow=function(){return new sQ([new mQ(1,this,void 0,"otfInit")],this.G)};
g.k.bz=function(){return null};
g.k.oD=function(a){this.Vs(a);return OSa(this,oSa(a),!1)};
g.k.Fr=function(a,b){b=void 0===b?!1:b;a=this.index.Hi(a);b&&(a=Math.min(this.index.Ad(),a+1));return OSa(this,a,!0)};
g.k.QP=function(a){1===a.info.type&&(this.j||(this.j=FN(a.j)),a.B&&"http://youtube.com/streaming/otf/durations/112015"===a.B.uri&&PSa(this,a.B))};
g.k.Vs=function(a){return 0===a.B?!0:this.index.Ad()>a.Pa&&this.index.Mn()<=a.Pa+1};
g.k.yP=function(){return 0};
g.k.gS=function(){return!1};g.k=g.$Sa.prototype;g.k.Vn=function(a){return a<=this.Ad()};
g.k.ym=function(a){return this.offsets[a]};
g.k.getStartTime=function(a){return this.Sg[a]/this.j};
g.k.HE=function(a){return this.getStartTime(a)+this.getDuration(a)};
g.k.LJ=ea(1);g.k.Ye=function(){return NaN};
g.k.getDuration=function(a){a=this.bY(a);return 0<=a?a/this.j:-1};
g.k.bY=function(a){return a+1<this.count||this.B?this.Sg[a+1]-this.Sg[a]:-1};
g.k.Mn=function(){return 0};
g.k.Ad=function(){return this.count-1};
g.k.rF=function(a){return this.Ad()===a&&0<=a};
g.k.Pt=function(){return this.B?this.Sg[this.count]/this.j:NaN};
g.k.Dd=function(){return 0};
g.k.lA=function(){return this.count};
g.k.IJ=function(){return""};
g.k.Hi=function(a){a=g.Sb(this.Sg.subarray(0,this.count),a*this.j);return 0<=a?a:Math.max(0,-a-2)};
g.k.isLoaded=function(){return 0<=this.Ad()};
g.k.iY=function(a,b){if(a>=this.Ad())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.Ad()&&b>this.getStartTime(a);a++)c=Math.max(c,aTa(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.Sg;this.Sg=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.Sg[a]=c[a]};
g.k.cap=function(a,b){bTa(this);this.B=!0;this.Sg[this.count]=b;this.offsets[this.count]=a};g.y(FQ,hQ);g.k=FQ.prototype;g.k.Ow=function(a,b){var c=new mQ(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b),d=[new mQ(1,this,this.initRange,"initInfo",void 0,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 mQ(4,this,kQ(c,a),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)));return new sQ(d)};
g.k.QP=function(a){if(1===a.info.type){if(this.j)return;this.j=FN(a.j)}else if(2===a.info.type){if(this.G||0<=this.index.Ad())return;if(g.iK(this.info)){var b=this.index,c=CQ(a);a=a.info.range.start;var d=g.KP(c,0,1936286840);c=MRa(d);b.j=c.Ks;var e=c.Z7;b.offsets[0]=c.r8+a+d.size;b.Sg[0]=e;b.B=!0;a=c.CT.length;for(d=0;d<a;d++){e=b;var f=c.kda[d],h=c.CT[d];e.count++;bTa(e);e.offsets[e.count]=e.offsets[e.count-1]+f;e.Sg[e.count]=e.Sg[e.count-1]+h}}else this.G=CQ(a)}if(this.info.Le()&&this.j&&this.G){c=
new DataView(this.j.buffer);b=this.index;d=this.G;a=this.indexRange.end;e=new SP(c);c=e;e=c.pos;f={n2:1E6,o2:1E9,duration:0,o1:0,SS:0};if(WP(c,408125543))if(f.o1=XP(c,!0),f.SS=c.start+c.pos,WP(c,357149030)){for(h=VP(c);!TP(h);){var l=XP(h,!1);2807729===l?f.n2=ZP(h):2807730===l?f.o2=ZP(h):17545===l?f.duration=aQ(h):$P(h)}c.pos=e;c=f}else c.pos=e,c=null;else c.pos=e,c=null;if(null!==c){b.j=c.o2/c.n2;e=new SP(d);d=e;h=c.SS;e=d.pos;f=[];if(WP(d,475249515)){for(l=VP(d);WP(l,187);){var m=VP(l);if(WP(m,
179)){var n=ZP(m);if(WP(m,183)){m=VP(m);for(var p=h;WP(m,241);)p=ZP(m)+h;f.push({KI:p,J7:n})}}}if(0<f.length&&a===f[0].KI)for(a=0;a<f.length;a++)f[a].KI+=1;d.pos=e;a=f}else d.pos=e,a=null;if(null!==a){a=g.u(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.KI,f=f.J7,bTa(d),d.offsets[d.count]=e,d.Sg[d.count]=f,d.count++;b.cap(c.o1+c.SS,c.duration)}}this.G=null}};
g.k.SE=function(a,b,c,d){for(var e=[],f=a;f<=this.index.Ad();f++){var h=kQ(this.index.ym(f),aTa(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 mQ(3,this,h,"getRequestInfoForRange",f,l,m,n,p,void 0,void 0,d));if(h.start+n+p>=b+c)break}e.length||g.AE(new g.XB("b189619593",""+a,""+b,""+c));return new sQ(e)};
g.k.zV=function(a){for(var b=this.TB(a.info),c=a.info.range.start+a.info.Tb,d=[],e=0;e<b.length;e++){var f=DN(a.j,b[e].range.start+b[e].Tb-c,b[e].B);d.push(new BQ(b[e],f))}return d};
g.k.TB=function(a){for(var b=a.range.start+a.Tb,c=0;c<this.index.Ad()&&b>=this.index.ym(c+1);)c++;return this.SE(c,b,a.B).ib};
g.k.Vs=function(a){nQ(a);return this.jg()?!0:a.range.end+1<this.info.contentLength};
g.k.bz=function(a,b){this.Vs(a);if(!this.jg())return b=kQ(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new iQ(b.start,this.info.contentLength-1)),new sQ([new mQ(4,a.j,b,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,a.clipId)]);4===a.type&&(a=this.TB(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Tb+a.B;3===a.type&&(nQ(a),c=a.Pa,d===a.range.end+1&&(c+=1));return this.SE(c,d,b)};
g.k.oD=function(){return null};
g.k.Fr=function(a,b,c){b=void 0===b?!1:b;a=this.index.Hi(a);b&&(a=Math.min(this.index.Ad(),a+1));return this.SE(a,this.index.ym(a),0,c)};
g.k.Gm=function(){return!0};
g.k.kx=function(){return!0};
g.k.FA=function(){return!1};
g.k.yP=function(){return this.indexRange.length+this.initRange.length};
g.k.gS=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var h3={},vTa=(h3.COLOR_PRIMARIES_BT709="bt709",h3.COLOR_PRIMARIES_BT2020="bt2020",h3.COLOR_PRIMARIES_UNKNOWN=null,h3.COLOR_PRIMARIES_UNSPECIFIED=null,h3),i3={},dTa=(i3.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",i3.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",i3.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",i3.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",i3.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,i3.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,i3);g.GQ.prototype.getName=function(){return this.name};
g.GQ.prototype.getId=function(){return this.id};
g.GQ.prototype.getIsDefault=function(){return this.isDefault};
g.GQ.prototype.toString=function(){return this.name};
g.GQ.prototype.getName=g.GQ.prototype.getName;g.GQ.prototype.getId=g.GQ.prototype.getId;g.GQ.prototype.getIsDefault=g.GQ.prototype.getIsDefault;var iTa=/action_display_post/;var jTa,kTa,lTa;g.y(IQ,g.UE);g.k=IQ.prototype;g.k.isLoading=function(){return 1===this.state};
g.k.Fm=function(){return 3===this.state};
g.k.Ica=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.dc=this.B=!0;this.timeline||(this.timeline=new GSa);KSa(this.timeline,a);this.publish("refresh");for(a=0;a<b.length;a++){var c=FTa(this,b[a]);if(!this.j[c.id]){var d=KQ(wQ(b[a],"BaseURL").textContent),e=wQ(b[a],"Initialization"),f=vQ(e,"sourceURL");e=jQ(vQ(e,"range"));this.j[c.id]=new uQ(d,c,f,e)}c=this.j[c.id];d=vQ(b[a],"id",
"AdaptationSet");d=""!==d?d:vQ(b[a],"mimetype","AdaptationSet");f=this.timeline;f=f.C[c.info.id]||f.B[d]||f.j||null;d=f.j;!this.K&&f.getStreamTimeOffset()&&(this.K=f.getStreamTimeOffset());if(f.G){e=[];d=g.u(d);for(var h=d.next();!h.done;h=d.next()){h=h.value;var l=c.info.id,m=8*c.info.sb,n=h.Pa;var p=h.startSecs;var q=f.N.split("$$");for(var r=0;r<q.length;r++)q[r]=q[r].replace("$RepresentationID$",l),q[r]=q[r].replace("$Number$",n.toString()),q[r]=q[r].replace("$Bandwidth$",m.toString()),q[r]=q[r].replace("$Time$",
p.toString());e.push(new yP(h.Pa,h.startSecs,h.Bh,h.j,q.join("$"),null,h.B))}d=e}else{f=Nb(wQ(b[a],"SegmentList").getElementsByTagName("SegmentURL"),f.K);e=[];for(h=0;h<f.length;h++){l=e;m=l.push;n=d[h];p=void 0;r=f[h];q=r.getAttribute("media");if(r=r.getAttribute("mediaRange")){var t=r.split("-");t[1]&&0<=Number(t[1])?p=jQ(r):q=q+"?range="+r}m.call(l,new yP(n.Pa,n.startSecs,n.Bh,n.j,q,p,n.B))}d=e}c.update(d,this.isLive,this.Wa)}LSa(this.timeline);return!0}this.duration=DSa(vQ(a,"mediaPresentationDuration"));
a:{for(a=0;a<b.length;a++){f=b[a];c=FTa(this,f);d=KQ(wQ(f,"BaseURL").textContent);e=wQ(f,"SegmentBase");f=jQ(e.attributes.getNamedItem("indexRange").value);e=jQ(e.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);c=new FQ(d,c,e,f);if(!c){b=!1;break a}HQ(this,c)}b=!0}return b};
g.k.refresh=function(){if(!this.isLoading()&&!this.Na()){var a=g.to(this.sourceUrl,{start_seq:LTa(this).toString()});HTa(this,a).Dl(function(){})}};
g.k.resume=function(){GTa(this)};
g.k.Ie=function(){if(this.isManifestless&&this.C&&LQ(this))if(this.gb&&this.Ih)for(var a=g.u(Object.values(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=c.index;c=c.info;if(b.isLoaded()&&!mK(c.mimeType))return Math.min(LQ(this),b.getStartTime(this.Ih))}else return LQ(this);a=this.j;b=!1;var d=c=NaN,e;for(e in a){var f=a[e],h=f.index;h.isLoaded()&&!mK(f.info.mimeType)&&(f.D&&(b=!0),h=h.Pt(),f.info.Eh()&&(isNaN(c)||h<c)?c=h:f.info.Ag()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,
d)};
g.k.Dd=function(){if(this.isManifestless){if(MQ(this))return MQ(this);if(this.vc){var a=this.Ye(this.Ie());if(a&&(a-=this.vc,0<a))return this.Ie()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded()&&!mK(a[b].info.mimeType))return c.Dd()}return 0};
g.k.getStreamTimeOffset=function(){return this.K};
g.k.Ye=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.Hi(a),e=c.Ye(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
var QQ=null,Bpb,RTa=!(null==(Bpb=navigator.mediaCapabilities)||!Bpb.decodingInfo),ETa={commentary:1,alternate:2,dub:3,main:4};g.RQ.prototype.info=function(){};
g.RQ.prototype.debug=function(){};
var VTa=new Map;var O_=new Set,SQ=new Map;UQ.prototype.clone=function(a){return new UQ(this.flavor,a,this.B,this.experiments)};
UQ.prototype.pc=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
UQ.prototype.getInfo=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.youtube.fairplay.sbdl":return"FPC";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}};
var Cpb={},$Ta=(Cpb.playready=["com.youtube.playready","com.microsoft.playready"],Cpb.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],Cpb),j3={},Fcb=(j3.widevine="DRM_SYSTEM_WIDEVINE",j3.fairplay="DRM_SYSTEM_FAIRPLAY",j3.playready="DRM_SYSTEM_PLAYREADY",j3),k3={},Dpb=(k3.widevine=1,k3.fairplay=2,k3.playready=3,k3);var dR;g.y(cR,g.I);
cR.prototype.initialize=function(a,b){for(var c=this,d=g.u(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.u(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.le)for(var h=g.u(Object.keys(f.le)),l=h.next();!l.done;l=h.next()){var m=l.value;l=m;m=$Ta[m];!m&&this.L("html5_enable_vp9_fairplay")&&"fairplay"===l&&(m=["com.youtube.fairplay.sbdl"]);if(m){m=g.u(m);for(var n=m.next();!n.done;n=m.next())n=n.value,this.C[n]=this.C[n]||new UQ(l,n,f.le[l],this.Da.experiments),this.j[l]=this.j[l]||
{},this.j[l][f.mimeType]=!0}}}iB()&&(this.C["com.youtube.fairplay"]=new UQ("fairplay","com.youtube.fairplay","",this.Da.experiments),this.L("html5_enable_vp9_fairplay")||(this.j.fairplay=this.j.fairplay||{},this.j.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.j.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.B=aUa(b,this.useCobaltWidevine,this.L("html5_enable_safari_fairplay"),this.L("html5_enable_vp9_fairplay")).filter(function(p){return!!c.C[p]})};
cR.prototype.L=function(a){return this.Da.experiments.fb(a)};var qgb={"":"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"};iUa.prototype.L=function(a){return this.experiments.fb(a)};var VUa={RED:"red",Onb:"white"};jUa.prototype.fb=function(a){return"true"===this.flags[a]};var mUa=Promise.resolve(),rUa=window.queueMicrotask?window.queueMicrotask.bind(window):nUa;oUa.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;MC?a=a||Epb[b]:2.2===ER?a=a||Fpb[b]:gB()&&(a=a||Gpb[b]);return!!a};
oUa.prototype.isTypeSupported=function(a){return this.Z?window.cast.receiver.platform.canDisplayType(a):XJ(a)};
var Fpb={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Gpb={"application/x-mpegURL":"maybe"},Epb={"application/x-mpegURL":"maybe"};g.y(jR,g.UE);jR.prototype.add=function(a,b){if(!this.items[a]&&(b.CI||b.lO||b.rM)){var c=this.items,d=b;Object.isFrozen&&!Object.isFrozen(b)&&(d=Object.create(b),Object.freeze(d));c[a]=d;this.publish("vast_info_card_add",a)}};
jR.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
jR.prototype.get=function(a){return this.items[a]||null};
jR.prototype.isEmpty=function(){return g.gd(this.items)};g.y(lR,g.wN);lR.prototype.j=function(a,b){var c=EV.Hs();b=g.wN.prototype.j.call(this,a,b);EV.yr("oap",c,Math.ceil(a.length/16));return b};
lR.prototype.B=function(a,b,c){var d=this,e,f;return g.G(function(h){if(1==h.j)return e=EV.Hs(),g.z(h,g.wN.prototype.B.call(d,a,b,c),2);f=h.B;EV.yr("oan2",e,Math.ceil(a.byteLength/16));return h.return(f)})};
g.y(mR,g.xN);mR.prototype.encrypt=function(a,b){var c=EV.Hs();b=g.xN.prototype.encrypt.call(this,a,b);EV.yr("oap",c,Math.ceil(a.byteLength/16));return b};
g.y(nR,yN);nR.prototype.encrypt=function(a,b){var c=this.Id.NI(a),d=this.Id.NI(b);yN.prototype.encrypt.call(this,c||a,d||b);d&&this.Id.exports.free(d.byteOffset);return c?this.Id.dR(c):a};pR.prototype.Ri=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.B+=a};
pR.prototype.eh=function(){return this.j/(1-Math.pow(this.alpha,this.B))};qR.prototype.Ri=function(a,b){a=Math.min(this.j,Math.max(1,Math.round(a*this.resolution)));a+this.B>=this.j&&(this.C=!0);for(;a--;)this.values[this.B]=b,this.B=(this.B+1)%this.j;this.mm=!0};
qR.prototype.eh=function(){return this.K?(rR(this,this.D-this.K)+rR(this,this.D)+rR(this,this.D+this.K))/3:rR(this,this.D)};g.y(AUa,g.I);AUa.prototype.Va=function(){var a;null==(a=this.La)||a.start();if(xR(this)&&this.policy.N){var b;null==(b=this.fd)||b.QF()}};g.y(KUa,g.I);var SUa="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),aVa={lpa:"caoe",Nra:"cbrand",Wra:"cbr",Yra:"cbrver",Hua:"cchip",dva:"ccappver",eva:"ccrv",AFa:"cfrmver",uKa:"c",xKa:"cver",wKa:"ctheme",vKa:"cplayer",UWa:"cmodel",JXa:"cnetwork",h1a:"cos",i1a:"cosver",e2a:"cplatform",g6a:"crqyear"};g.y(ZUa,g.I);g.k=ZUa.prototype;g.k.L=function(a){return this.experiments.fb(a)};
g.k.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig};
g.k.getVideoUrl=function(a,b,c,d,e,f,h){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=h?"music.youtube.com":g.NR(this);e="www.youtube.com"===c;!f&&d&&e?f="https://youtu.be/"+a:g.HR(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),MC&&(a=hqa())&&(b.ebc=a));return g.to(f,b)};
g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.NR(this)+"/embed/"+b;d&&(b=g.to(b,{list:d}));d=c.width;c=c.height;b=Ze(b);a=Ze(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" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>')};
g.k.supportsGaplessAudio=function(){return g.WJ&&!MC&&74<=Vqa()||g.bR&&g.Oc(68)?!0:!1};
g.k.supportsGaplessShorts=function(){return!this.L("html5_enable_short_gapless")||this.Wa||g.rC?!1:!0};
g.k.getPlayerType=function(){return this.j.cplayer};
g.k.Bc=function(){return this.Rf};
g.k.Nu=function(){this.L("html5_enable_lawnmower_messaging")};
var gVa=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],$Ua=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],dVa=[19];g.k=aS.prototype;g.k.getInfo=function(){return this.j};
g.k.pD=function(){return null};
g.k.AV=function(){var a=this.pD();return a?(a=g.GA(a.resource),Number(a.expire)):NaN};
g.k.US=function(){};
g.k.getHeight=function(){return this.j.video.height};hVa.prototype.build=function(){lVa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.u(this.C),e=d.next();!e.done;e=d.next())if(e=e.value,e.qc){if(e.qc.getIsDefault()){c=e.qc.getId();break a}c||(c=e.qc.getId())}}d=g.u(this.C);for(e=d.next();!e.done;e=d.next())if(e=e.value,this.K||!e.qc||e.qc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.u(this.B);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.j]){e=g.u(e);for(var f=e.next();!f.done;f=
e.next()){var h=a,l=h.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.qc){p=f.qc;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=jVa(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(kVa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}}c=g.u(this.G);for(d=c.next();!d.done;d=c.next())d=d.value,e=Hpb,d=(h=d.qc)?'#EXT-X-MEDIA:URI="'+jVa(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.G.length?Hpb:void 0;d=g.u(this.B);for(e=d.next();!e.done;e=d.next())e=e.value,l=b[e.j],h=void 0,0<(null==(h=l)?void 0:h.length)&&(h=e,l=l[0],l="#EXT-X-STREAM-INF:BANDWIDTH="+(h.bitrate+l.bitrate)+',CODECS="'+(h.codecs+","+l.codecs+'",RESOLUTION=')+(h.width+"x"+h.height+',AUDIO="')+(kVa(l,h)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<h.fps&&(l+=
",FRAME-RATE="+h.fps),h.AC&&(l+=",VIDEO-RANGE="+h.AC),a.push(l),a.push(jVa(this,e.url,"")));return a.join("\n")};
var Hpb="text";g.y(cS,aS);cS.prototype.AV=function(){return this.expiration};
cS.prototype.pD=function(){if(!this.resource||this.resource.Na()){var a=this.B.build();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.resource=new AK(a)}return this.resource};g.y(dS,aS);dS.prototype.pD=function(){return new AK(this.B.Ke())};
dS.prototype.US=function(){this.B=wP(this.B)};g.y(eS,aS);eS.prototype.pD=function(){return new AK(this.B)};var Ipb={},xVa=(Ipb.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Ipb.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Ipb);g.k=g.fS.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.j};
g.k.Ke=function(){return this.url};
g.k.toString=function(){return this.languageCode+": "+g.gS(this)+" - "+this.vssId+" - "+(this.captionId||"")};
g.k.ue=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var CVa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},DVa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},EVa=/^(\d*)_((\d*)_?(\d*))$/;var GVa={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},HVa={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var l3={},yWa=(l3.ALWAYS=1,l3.BY_REQUEST=3,l3.UNKNOWN=void 0,l3),m3={},FWa=(m3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",m3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",m3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",m3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",m3);var AKa;
AKa=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{nma(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 r=f[q],t=l[r],v=(0,c[r])(t,m);if("undefined"===typeof v)throw l=m&&m.type,Error("When called with an action of type "+(l?'"'+String(l)+'"':"(unknown type)")+', the slice reducer for key "'+r+'" 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[r]=
v;n=n||v!==t}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=void 0===a?{}:a;
return RKa(a,b)}});
g.SS=new AN;nS.prototype.toString=function(){return this.type+this.id};g.oS.prototype.fh=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b)return b;if("sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.j)return OR(this.Da,this.j,a)};
g.oS.prototype.bl=function(){return this.Da.getVideoUrl(this.videoId,this.playlistId)};g.pS.prototype.fh=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b?b:"pop1.jpg"===a||"pop2.jpg"===a||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a?b:OR(this.Da,this.videoId,a)};
g.pS.prototype.bl=function(a){return this.watchUrl||this.Da.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,a)};var qS=void 0;PAa("LMS",function(){return g.G(function(a){return a.return(g.rS())})});var vS;vS=0;g.gWa=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;PAa("LMDB",function(){var a,b;return g.G(function(c){if(1==c.j)return g.z(c,g.PC(),2);if(3!=c.j){a=c.B;if(!a)throw g.sC("edd");return g.z(c,g.uS(a),3)}b=c.B;return c.return(g.zC(b,["index","media","captions"],{mode:"readonly",Pb:!0},function(d){var e={};d=[g.EC(d.objectStore("index"),{},function(f){e[f.cursor.key]=f.getValue();return g.FC(f)}),
Osa(d.objectStore("media")),Osa(d.objectStore("captions"))];return g.uC.all(d).then(function(f){var h=g.u(f);h.next();f=h.next().value;h=h.next().value;return{index:e,media:hWa(f||[]),captions:h}})}))})});g.y(wS,g.UE);wS.prototype.va=function(){this.j&&(this.j=this.j.onload=null);g.UE.prototype.va.call(this)};g.k=g.AS.prototype;g.k.getHeight=function(){return this.height};
g.k.hY=ea(3);g.k.wJ=function(){return this.frameCount};
g.k.isDefault=function(){return-1!==this.C.indexOf("default")};
g.k.isLoaded=function(a){return this.loaded.has(a)};
g.k.Ke=function(a){var b=this.D;b=b.replace("$N",this.C);b=b.replace("$L",this.level.toString());b=b.replace("$M",a.toString());this.signature&&(b=g.to(b,{sigh:this.signature}));return aJ(b)};
g.k.gI=function(a){var b=this.wJ()-1;return g.ze(0===this.j?Math.round(a*this.frameCount/this.videoLength):Math.round(1E3*a/this.j),0,b)};
g.k.cz=function(){return this.frameCount-1};
g.k.oN=function(){return this.frameCount?0:-1};
g.k.BV=function(){};g.y(BS,wS);BS.prototype.B=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;e<a.length;e++){var f=this.G(e-1,d,a[e],b);(this.N||180>f.getHeight())&&c.push(f)}return c};
BS.prototype.G=function(a,b,c,d){return new g.AS(a,b,c,d)};g.y(nWa,g.AS);g.k=nWa.prototype;g.k.wJ=function(){return this.B.lA()};
g.k.gI=function(a){var b=this.rows*this.columns*this.G,c=this.B,d=c.Ad();a=c.Hi(a);return a>d-b?-1:a};
g.k.cz=function(){return this.B.Ad()};
g.k.oN=function(){return this.B.Mn()};
g.k.BV=function(a){this.B=a};g.y(CS,BS);CS.prototype.B=function(a,b){return BS.prototype.B.call(this,"$N|"+a,b)};
CS.prototype.G=function(a,b,c){return new nWa(a,b,c,this.isLive)};var LWa=[],KWa=new Set;g.y(g.ES,g.UE);g.k=g.ES.prototype;g.k.U=function(){return this.Da};
g.k.L=function(a){return this.Da.L(a)};
g.k.Yh=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.sf)||!a.rb)};
g.k.F_=function(){this.Na()||(this.j.B||this.j.unsubscribe("refresh",this.F_,this),this.eX(-1))};
g.k.eX=function(a){if(!this.isLivePlayback||!this.K||"fairplay"!=this.K.flavor){var b=BTa(this.j,this.uF);if(0<b.length){for(var c=g.u(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.Dd());this.publish("cuepointupdated",b,a);this.uF+=b.length;if(OS(this)&&this.Da.Bc())for(b=g.u(b),c=b.next();!c.done;c=b.next())c=c.value,this.ma("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,id:c.identifier.slice(-16)}),"start"===c.event&&(c=c.startSecs,this.LC.start=this.Ck,
this.LC.end=c+3)}}};
g.k.Xi=function(){return this.le?!0:!!this.j&&mP(this.j)};
g.k.rI=function(a){var b=this;if(this.Na())return $A();this.ud=this.gb=this.C=null;KS(this,"html5_high_res_logging_always")&&(this.Da.Rf=!0);return cXa(this,a).then(void 0,function(){return dXa(b,a)}).then(void 0,function(){return eXa(b)}).then(void 0,function(){return gXa(b)})};
g.k.dk=function(){if(this.cotn)return null;var a=g.GI(this.Da)||this.L("web_l3_storyboard");if(!this.Ik)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Ik=new BS(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=cba(this.j.j).index)&&(this.Ik=new CS(b.spec,this.j.isLive,c,a))}else this.Yz?this.Ik=new BS(this.Yz,this.lengthSeconds,void 0,!1,a):this.jz&&this.j&&
(b=cba(this.j.j).index)&&(this.Ik=new CS(this.jz,this.j.isLive,b,a));return this.Ik};
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.Yz||this.jz};
g.k.Ie=function(){return this.j&&!isNaN(this.j.Ie())?this.j.Ie():OS(this)?0:this.lengthSeconds};
g.k.Dd=function(){return this.j&&!isNaN(this.j.Dd())?this.j.Dd():0};
g.k.getPlaylistSequenceForTime=function(a){if(this.j&&this.B){var b=this.j.j[this.B.id];if(!b)return null;var c=b.index.Hi(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.ue=function(){return!this.Na()&&!(!this.videoId&&!this.Rl)};
g.k.Vw=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 FS(this)&&!this.sj&&!this.ip};
g.k.fh=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b||this.Da.qa||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:OR(this.Da,this.videoId,a)};
g.k.dc=function(){return this.isLivePlayback||this.Yd||this.eb||!(!this.liveUtcStartSeconds||!this.Kl)};
g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.Yd&&!this.isLivePlayback&&this.j.B)};
g.k.getAvailableAudioTracks=function(){return this.C?0<this.C.getAvailableAudioTracks().length?this.C.getAvailableAudioTracks():this.iz||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.D&&!jK(this.D))return g.Db(this.getAvailableAudioTracks(),function(d){return d.id==a.D.id})||this.Mk;
if(this.iz){if(!this.tp)for(var b=g.u(this.iz),c=b.next();!c.done;c=b.next())if(c=c.value,c.qc.getIsDefault()){this.tp=c;break}return this.tp||this.Mk}return this.Mk};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.getWatchNextResponse=function(){return this.Ma};
g.k.getHeartbeatResponse=function(){return this.BD};
g.k.bl=function(){return this.watchUrl?this.watchUrl:this.Da.getVideoUrl(this.videoId)};
g.k.vQ=function(){return!!this.j&&(oTa(this.j)||pTa(this.j)||qTa(this.j))};
g.k.getEmbeddedPlayerResponse=function(){return this.Bi};
g.k.fk=function(){return"shortspage"===(this.eventLabel||this.Da.La)};
g.k.isAd=function(){return this.JD||!!this.adFormat};
g.k.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.k.jo=function(){var a,b,c;return this.isDaiEnabled()&&!!(null==(a=this.playerResponse)?0:null==(b=a.playerConfig)?0:null==(c=b.daiConfig)?0:c.ssaEnabledPlayback)};
g.k.jT=function(){return zWa(this)?this.H1:this.gq||this.Pi};
g.k.fH=function(){return this.Gj||this.Pi};
g.k.PN=function(){return KS(this,"html5_samsung_vp9_live")};
g.k.useInnertubeDrmService=function(){return!0};
g.k.ma=function(a,b,c){this.publish("ctmp",a,b,c)};
g.k.QB=function(a,b,c){this.publish("ctmpstr",a,b,c)};
g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.k.bd=function(a,b){if(!g.BR(this.Da)||"EMBEDDED_PLAYER_MODE_DEFAULT"!==(this.Da.Ga||"EMBEDDED_PLAYER_MODE_DEFAULT")||b)return!1;var c;return!!((null==(c=this.embeddedPlayerConfig)?0:c.isShortsExperienceEligible)&&a.width<=a.height)};
g.k.va=function(){g.UE.prototype.va.call(this);this.Dv=null;delete this.e$;delete this.accountLinkingConfig;delete this.j;this.C=this.BD=this.playerResponse=this.Ma=null;this.Tf=this.adaptiveFormats="";delete this.botguardData;this.je=this.suggestions=this.Gv=null};var OXa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},PXa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},NXa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},QXa=!1,KXa={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"},MXa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},LXa={0:"UNPLUGGED_FILTER_MODE_TYPE_UNKNOWN",1:"UNPLUGGED_FILTER_MODE_TYPE_NONE",
2:"UNPLUGGED_FILTER_MODE_TYPE_PG",3:"UNPLUGGED_FILTER_MODE_TYPE_PG_THIRTEEN"};g.y(yT,g.I);g.k=yT.prototype;g.k.handleExternalCall=function(a,b,c){var d=this.state.Y[a],e=this.state.qa[a],f=d;if(e)if(c&&YI(c,Pob,Qob))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');this.logApiCall(a,c);if(f){c=!1;d=g.u(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.BE(Error('Dangerous call to "'+a+'" with ['+b+"]."));return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');};
g.k.logApiCall=function(a,b,c){var d=this.app.U();d.ip&&!this.state.ra.has(a)&&(this.state.ra.add(a),g.iC("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:b||void 0,playerStyle:d.playerStyle||void 0,embeddedPlayerMode:d.Ga,errorCode:c}))};
g.k.publish=function(a){var b=g.Ia.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.qa(b)));if("videodatachange"===a||"resize"===a||"cardstatechange"===a)this.state.j.publish.apply(this.state.j,[a].concat(g.qa(b))),this.state.D.publish.apply(this.state.D,[a].concat(g.qa(b)))};
g.k.jb=function(a){var b=g.Ia.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.qa(b)));this.state.j.publish.apply(this.state.j,[a].concat(g.qa(b)))};
g.k.Cc=function(a){var b=g.Ia.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.qa(b)));this.state.j.publish.apply(this.state.j,[a].concat(g.qa(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.qa(b)))};
g.k.Rm=function(a){var b=g.Ia.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.qa(b)));this.state.j.publish.apply(this.state.j,[a].concat(g.qa(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.qa(b)));this.state.N.publish.apply(this.state.N,[a].concat(g.qa(b)))};
g.k.L=function(a){return this.app.U().L(a)};
g.k.va=function(){if(this.state.element){var a=this.state.element,b;for(b in this.state.B)this.state.B.hasOwnProperty(b)&&(a[b]=null);this.state.element=null}g.I.prototype.va.call(this)};g.y(DT,g.iw);DT.prototype.publish=function(a){var b=g.Ia.apply(1,arguments);if(this.G.has(a))return this.G.get(a).push(b),!0;var c=!1;try{for(b=[b],this.G.set(a,b);b.length;)c=g.iw.prototype.publish.call.apply(g.iw.prototype.publish,[this,a].concat(g.qa(b.shift())))}finally{this.G.delete(a)}return c};g.y(VXa,g.I);VXa.prototype.va=function(){this.N.dispose();this.D.dispose();this.j.dispose();this.C.dispose();this.ra=this.G=this.K=this.B=this.qa=this.Y=this.Z=void 0};var XXa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.y(FT,yT);g.k=FT.prototype;g.k.getApiInterface=function(){return Array.from(this.state.Z)};
g.k.c7=function(a,b){this.state.N.subscribe(a,b)};
g.k.pda=function(a,b){this.state.N.unsubscribe(a,b)};
g.k.getPlayerState=function(a){return ihb(this.app,a)};
g.k.Q8=function(){return ihb(this.app)};
g.k.Nda=function(a,b,c){aYa(this)&&(b1(this.app,!0,1),d1(this.app,a,b,c,1))};
g.k.getCurrentTime=function(a,b,c){var d=this.getPlayerState(a);if(2===this.app.getAppState()&&5===d){var e;return(null==(e=this.app.getVideoData())?void 0:e.startSeconds)||0}return this.L("web_player_max_seekable_on_ended")&&0===d?ehb(this.app,a):a?this.app.getCurrentTime(a,b,c):this.app.getCurrentTime(this.playerType)};
g.k.D8=function(){return this.app.getCurrentTime(1)};
g.k.L8=function(){var a=this.app.Ye(1);return isNaN(a)?this.getCurrentTime():a};
g.k.H8=function(){return this.app.getDuration(1)};
g.k.cM=function(a,b){a=g.ze(Math.floor(a),0,100);isFinite(a)&&V0(this.app,{volume:a,muted:this.isMuted()},b)};
g.k.bea=function(a){this.cM(a,!1)};
g.k.NK=function(a){V0(this.app,{muted:!0,volume:this.getVolume()},a)};
g.k.S$=function(){this.NK(!1)};
g.k.xM=function(a){g.GT(this.app)||V0(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},a)};
g.k.Nea=function(){this.xM(!1)};
g.k.getPlayerMode=function(){var a={};this.app.getVideoData().If&&(a.pfp={enableIma:g.vT(this.app.getVideoData())&&this.app.Md().allowImaMonetization,autoplay:pT(this.app.Md()),mutedAutoplay:this.app.Md().mutedAutoplay});return a};
g.k.hS=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Hf()){var b=IV(this.app.yb());if(!Zjb(b)||$jb(b))return}3===a?QT(this.app.yb()).XF("control_play"):this.app.U().L("html5_ssap_ignore_play_for_ad")&&g.sT(this.app.Md())&&2===a||this.app.playVideo(a)};
g.k.Pca=function(){b1(this.app,!0,1);this.hS()};
g.k.pauseVideo=function(a){var b=this.app.getPresentingPlayerType();if(2!==b||this.app.Hf()||Zjb(IV(this.app.yb())))3===b?QT(this.app.yb()).XF("control_pause"):this.app.pauseVideo(b,a)};
g.k.nea=function(){var a=this.app,b=!1;a.W.vc&&(a.Ua.publish("pageTransition"),b=!0);a.stopVideo(b)};
g.k.clearVideo=function(){};
g.k.getAvailablePlaybackRates=function(){var a=this.app.U();return a.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(a.D?a.ancestorOrigins[0]:window.location.origin)||a.jp?Job:Iob:[1]};
g.k.getPlaybackQuality=function(a){return(a=g.HT(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.Wda=function(){};
g.k.getAvailableQualityLevels=function(a){return(a=g.HT(this.app,a))?(a=g.$r(a.Mt(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.A8=function(){return this.getAvailableQualityLevels(1)};
g.k.W8=function(){return this.wY()};
g.k.X8=function(){return 1};
g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.k.wY=function(){return this.getVideoLoadedFraction()};
g.k.a9=function(){return 0};
g.k.getSize=function(){var a=this.app.ob().getPlayerSize();return{width:a.width,height:a.height}};
g.k.setSize=function(){this.app.ob().resize()};
g.k.loadVideoById=function(a,b,c,d){if(!a)return!1;a=ET(a,b,c);return this.app.loadVideoByPlayerVars(a,d)};
g.k.n$=function(a,b,c){a=this.loadVideoById(a,b,c,1);b1(this.app,a,1)};
g.k.cueVideoById=function(a,b,c,d){a=ET(a,b,c);this.app.cueVideoByPlayerVars(a,d)};
g.k.K7=function(a,b,c){this.cueVideoById(a,b,c,1)};
g.k.loadVideoByUrl=function(a,b,c,d){a=WXa(a,b,c);return this.app.loadVideoByPlayerVars(a,d)};
g.k.q$=function(a,b,c){a=this.loadVideoByUrl(a,b,c,1);b1(this.app,a,1)};
g.k.cueVideoByUrl=function(a,b,c,d){a=WXa(a,b,c);this.app.cueVideoByPlayerVars(a,d)};
g.k.N7=function(a,b,c){this.cueVideoByUrl(a,b,c,1)};
g.k.c9=function(){var a=this.app.U();if(a.qa)return"";var b=this.app.Md(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.k.F8=function(){return this.app.getDebugText()};
g.k.getVideoEmbedCode=function(){var a=this.app.U();if(a.qa)return"";var b=this.app.Md();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.Md().videoId,this.app.ob().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.Y6=function(a,b,c){return qhb(this.app,a,b,c)};
g.k.removeCueRange=function(a){return shb(this.app,a)};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d)};
g.k.m$=function(a,b,c,d){this.loadPlaylist(a,b,c,d);b1(this.app,!0,1)};
g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
g.k.nextVideo=function(a,b){this.app.nextVideo(a,b)};
g.k.T$=function(){this.nextVideo();b1(this.app,!0,1)};
g.k.previousVideo=function(a){this.app.previousVideo(a)};
g.k.cda=function(){this.previousVideo();b1(this.app,!0,1)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a)};
g.k.Oca=function(a){this.playVideoAt(a);b1(this.app,!0,1)};
g.k.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)};
g.k.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)};
g.k.T8=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=g.qV(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.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.k.KZ=function(a){"captions"===a&&(a=g.FV(this.app.yb()))&&!a.loaded&&a.load()};
g.k.N2=function(a){"captions"===a&&(a=g.FV(this.app.yb()))&&a.loaded&&a.Rea()};
g.k.bT=function(a,b,c){if(!b)return null;var d=this.app.yb();return"captions"===a?(a=g.FV(d))&&a.Sh(b,c):null};
g.k.M8=function(a,b,c){var d=g.HT(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.U().D?{}:this.bT(a,b,c)};
g.k.AP=function(a){var b=this.app.yb();if("captions"===a){var c;return(null==(c=g.FV(b))?void 0:c.getOptions())||null}return a?null:(a=[],g.FV(b)&&a.push("captions"),a)};
g.k.getVolume=function(){return this.app.Mi.volume};
g.k.isMuted=function(){return this.app.Mi.muted};
g.k.destroy=function(){this.app.dispose()};
g.k.logImaAdEvent=function(a,b){var c=this.app.U();g.vT(this.app.getVideoData())&&this.app.Md().allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.zfa(this.app.U().loaderUrl),eventType:a,youtubeHost:g.wn(this.app.U().Ha)||""},a.embeddedPlayerMode=c.Ga,g.iC("embedsAdEvent",a))};
g.k.mutedAutoplay=function(){var a=this.app.U(),b,c;(null==(b=a.getWebPlayerContextConfig())?0:null==(c=b.embedsHostFlags)?0:c.allowMutedAutoplay)&&!a.C&&this.app.mutedAutoplay()};
g.k.preloadVideoById=function(a,b,c,d){if(a){a=ET(a,b,c);var e,f;(null==(e=this.app.U().getWebPlayerContextConfig())?0:null==(f=e.embedsHostFlags)?0:f.allowPreloadVideoPlayerVars)&&this.app.preloadVideoByPlayerVars(a,d)}};
g.k.Xca=function(a,b,c){this.preloadVideoById(a,b,c,1)};
g.k.setFauxFullscreen=function(a){g.xB();this.app.Vm(a?2:0)};
g.k.Tda=function(a){var b,c;(null==(b=this.app.U().getWebPlayerContextConfig())?0:null==(c=b.embedsHostFlags)?0:c.allowSetFauxFullscreen)&&this.setFauxFullscreen(a)};var dYa="driveweb flix hovercard projector texmex wshbp".split(" ");g.y(bYa,FT);g.k=bYa.prototype;g.k.d7=function(a,b){this.state.D.subscribe(a,b)};
g.k.qda=function(a,b){this.state.D.unsubscribe(a,b)};
g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b)};
g.k.M7=function(a,b){b=void 0===b?1:b;this.cueVideoByPlayerVars(gYa(this,a),b)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c,b,d,e)};
g.k.p$=function(a,b,c,d){c=void 0===c?1:c;this.loadVideoByPlayerVars(gYa(this,a),b,c,d)};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b,c,void 0===d?"":d,void 0===e?"":e)};
g.k.Zca=function(a,b,c,d){b=void 0===b?1:b;this.preloadVideoByPlayerVars(gYa(this,a),b,c,d)};
g.k.MZ=function(a,b,c){this.loadVideoById(a,b,c,1)};
g.k.NZ=function(a,b,c){this.loadVideoByUrl(a,b,c,1)};
g.k.S8=function(a){return this.getPlayerState(a)};
g.k.vY=function(a){a=void 0===a?1:a;var b=ZXa(this,a);if(a=g.HT(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.eb;b.isManifestless=OS(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.Xi()&&(b.isEncrypted=!0);if(a.C)for(var c=g.u(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.seekBy=function(a,b,c,d){aYa(this)&&d1(this.app,this.app.getCurrentTime()+a,b,c,this.playerType,d)};
g.k.Lda=function(a,b,c){this.seekBy(a,b,c)};
g.k.seekTo=function(a,b,c,d,e){aYa(this)&&d1(this.app,a,b,c,d||this.playerType,e)};
g.k.Oda=function(a,b,c,d){this.seekTo(a,b,c,d)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.E8=function(a,b){return this.getCurrentTime(a,b)};
g.k.GJ=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.Hf()&&(a=1);return a};
g.k.getDuration=function(a,b){if(3===this.GJ()){var c;return(null==(c=QT(this.app.yb()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):this.app.getDuration(this.playerType)};
g.k.I8=function(a,b){return this.getDuration(a,b)};
g.k.Z8=function(a){return this.getVideoLoadedFraction(a)};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.LV(this.app.yb());b&&!b.loaded&&b.load()}this.KZ(a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.LV(this.app.yb());b&&b.loaded&&b.unload()}this.N2(a)};
g.k.getOption=function(a,b,c){var d=g.HT(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.U().D?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.yb();switch(a){case "ad":var c,d;return(null==(c=IV(b))?void 0:null==(d=c.getOptions)?void 0:d.call(c))||null;case "remote":var e,f;return(null==(e=QT(b))?void 0:null==(f=e.getOptions)?void 0:f.call(e))||null;case "annotations_module":var h,l;return(null==(h=g.LV(b))?void 0:null==(l=h.getOptions)?void 0:l.call(h))||null;case "creatorendscreen":var m,n;return(null==(m=o0a(b))?void 0:null==(n=m.getOptions)?void 0:n.call(m))||null;case "unplugged":var p,q;return(null==
(p=g.JV(b))?void 0:null==(q=p.getOptions)?void 0:q.call(p))||null;case "kids":var r,t;return(null==(r=n0a(b))?void 0:null==(t=r.getOptions)?void 0:t.call(r))||null}if(!a){a=this.AP();if(!a)return a;IV(b)&&a.push("ad");QT(b)&&a.push("remote");g.LV(b)&&a.push("annotations_module");o0a(b)&&a.push("creatorendscreen");g.JV(b)&&a.push("unplugged");n0a(b)&&a.push("kids");return a}return this.AP(a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.yb();switch(a){case "ad":return(a=IV(d))&&a.Sh&&a.Sh(b,c);case "kids":return(a=n0a(d))&&a.Sh(b,c);case "remote":return(a=QT(d))&&a.Sh(b,c);case "unplugged":return(a=g.JV(d))&&a.Sh(b,c);case "annotations_module":return(a=g.LV(d))&&a.Sh(b,c);case "creatorendscreen":return(a=o0a(d))&&a.Sh(b,c)}return this.bT(a,b,c)};
g.k.addCueRange=function(a,b,c,d,e){return qhb(this.app,a,b,c,d,e)};
g.k.getDebugText=function(a){return this.app.getDebugText(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.IT(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.IT(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.IT(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.IT(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.ob().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.toggleFullscreen=function(){function a(c){g.BE(c)}
var b=this.app.U();if(b.externalFullscreen){if(!g.TR(b))return this.isFullscreen()?zB(window.document.documentElement):yra(window.document.documentElement).catch(a)}else if(g.xB()||b.Z)return this.isFullscreen()?zB(yB()):"3"!==b.controlsType&&g.xB()?yra(this.app.ob().element).catch(a):(b=this.app.Je().Ib())?yra(b).catch(a):Promise.reject(Error("Media element missing"));this.Cc("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.isFullscreen=function(){return this.app.isFullscreen()};
g.k.cancelPlayback=function(){var a=IV(this.app.yb());a&&a.created&&a.destroy();(a=g.HT(this.app))&&a.stopVideo();(a=this.app.yb().Fe.get("endscreen"))&&a.X9()&&g.PT(this.app.Ua,!0)};
g.k.getProgressState=function(a){if(3===this.GJ())return QT(this.app.yb()).getProgressState();var b=this.app.getVideoData(),c=g.HT(this.app,a)||g.HT(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=iYa(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=iYa(this,h,a);break a}h=0}f=this.getCurrentTime(a);a=this.getDuration(a);var l=this.app.Ye(d),m=this.app.isAtLiveHead(d),n=this.app.iA();var p=this.app;var q=g.HT(p,d);q?(q=M0(p,q),p=X0(p,g.sT(q.videoData)?q.videoData.Dd():q.Dd(),q)):p=0;q=ehb(this.app,d);c=c.Mc();var r=this.app.getVideoData().zB;!r||isNaN(r)?d=0:(d=iYa(this,r,d),r=g.xI(this.app.U().experiments,"partial_rewind_buffer_seconds"),d-=r>d?d:r);return{airingStart:e,airingEnd:h,allowSeeking:this.app.Yh(),clipEnd:b.clipEnd,
clipStart:b.clipStart,current:f,displayedStart:-1,duration:a,ingestionTime:l,isAtLiveHead:m,loaded:n,seekableStart:p,seekableEnd:q,offset:c,viewerLivestreamJoinMediaTime:d}};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInline=function(a){this.app.setInline(a)};
g.k.b9=function(){return g.HT(this.app,1).pc(!0)};
g.k.toggleSubtitles=function(){var a=g.FV(this.app.yb());a&&a.Dea()};
g.k.getPlayerSize=function(){var a=this.app.ob().getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.IT(this);a&&a.tv()};
g.k.setCenterCrop=function(a){this.app.ob().setCenterCrop(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
var cYa="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end eventid external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public qoe_cat raw_player_response rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "),
fYa="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");var n3={},jYa=(n3["api.invalidparam"]=2,n3.auth=150,n3["drm.auth"]=150,n3["heartbeat.net"]=150,n3["heartbeat.servererror"]=150,n3["heartbeat.stop"]=150,n3["html5.unsupportedads"]=5,n3["fmt.noneavailable"]=5,n3["fmt.decode"]=5,n3["fmt.unplayable"]=5,n3["html5.missingapi"]=5,n3["html5.unsupportedlive"]=5,n3["drm.unavailable"]=5,n3["mrm.blocked"]=151,n3);g.y(g.JT,bYa);g.k=g.JT.prototype;g.k.isExternalMethodAvailable=function(a,b){return this.state.Y[a]?!0:!!(this.state.qa[a]&&b&&YI(b,Pob,Qob))};
g.k.getBandwidthEstimate=function(){return wR(this.app.U().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.HT(this.app);b&&(a={gpu:(0,g.V_)(),d:a},b.handleError(new RJ("feedback",a)))};
g.k.getInternalApi=function(){return Object.assign({},this.state.B)};
g.k.getInternalApiInterface=function(){return g.cd(this.state.B)};
g.k.queueNextVideo=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.queueNextVideo(a,b,c,void 0===d?"":d,void 0===e?"":e)};
g.k.P8=function(a){a=this.app.getPlayerStateObject(a);return{isBuffering:g.MF(a,1),isCued:a.isCued(),isDomPaused:g.MF(a,1024),isEnded:g.MF(a,2),isError:g.MF(a,128),isOrWillBePlaying:a.isOrWillBePlaying(),isPaused:a.isPaused(),isPlaying:a.isPlaying(),isSeeking:g.MF(a,16),isUiSeeking:g.MF(a,32),isUnstarted:g.MF(a,64)}};
g.k.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
g.k.startSeekCsiAction=function(){this.app.Ei().D.j=(0,g.wC)()};
g.k.seekToStreamTime=function(a,b,c,d){var e=this.app;b=void 0===b?!0:b;var f=g.HT(e,1),h=0;f&&f.getStreamTimeOffset()&&!f.Mc()&&(h=f.getStreamTimeOffset());d1(e,a-h,b,c,1,d)};
g.k.getStreamTimeOffset=function(){var a=g.HT(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.HT(this.app,1);c&&(c=c.getVideoData())&&c.isLivePlayback&&d1(this.app,Infinity,a,b,1)};
g.k.requestSeekToWallTimeSeconds=function(a,b){var c=g.HT(this.app,1);c&&c.ES(a,b)};
g.k.setVolume=function(a,b){this.cM(a,void 0===b?!0:b)};
g.k.mute=function(a){this.NK(void 0===a?!0:a)};
g.k.unMute=function(a){this.xM(void 0===a?!0:a)};
g.k.syncVolume=function(){var a=Fgb(this.app);V0(this.app,{volume:a.volume,muted:a.muted},!1)};
g.k.getAvailableQualityLabels=function(){var a=g.HT(this.app,1);return a?g.$r(a.Mt(),function(b){return b.qualityLabel}):[]};
g.k.channelSubscribed=function(){this.jb("SUBSCRIBE",this.app.Md().Il)};
g.k.channelUnsubscribed=function(){this.jb("UNSUBSCRIBE",this.app.Md().Il)};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.HT(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.HT(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.confirmYpcRental=function(){var a=g.HT(this.app,1);a&&a.Eg("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.U().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.U().zj=a};
g.k.setLivingRoomAppMode=function(a){this.app.U().livingRoomAppMode=pB("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,YUa)};
g.k.setEnablePrivacyFilter=function(a){this.app.U().enablePrivacyFilter=void 0===a?!1:a};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.addUtcCueRange=function(a,b,c,d,e){return rhb(this.app,a,b,c,d,e)};
g.k.Y8=function(a){a=void 0===a?1:a;var b=this.vY(a);if(a=g.HT(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.Ca;b.playerResponseCpn=a.playerResponseCpn;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)?0:c.utcTimeMillis)?df(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?
df(a.progressBarEndPosition.utcTimeMillis):null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.S3;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=jXa(a);b.paidContentOverlayDurationMs=kXa(a);a.j&&jP(a.j)&&(b.usingLocalMedia="true");b.transitionEndpointAtEndOfStream=a.transitionEndpointAtEndOfStream}return b};
g.k.getAdState=function(){return this.app.getAdState()};
g.k.isNotServable=function(a){if(a!==this.app.config.args.video_id)return!1;var b=(a=(a=g.HT(this.app,1))?a.getPlayerState():null)?a.Ng:null;return!!(a&&b&&g.MF(a,128)&&5===kYa(b.errorCode))};
g.k.supportsGaplessAudio=function(){return this.app.U().supportsGaplessAudio()};
g.k.supportsGaplessShorts=function(){return this.app.U().supportsGaplessShorts()};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.Di=function(){return g.IT(this)};
g.k.sendAbandonmentPing=function(){var a=g.HT(this.app);a&&a.sendAbandonmentPing()};
g.k.setAutonavState=function(a,b){b=void 0===b?!1:b;if(this.L("web_player_autonav_use_server_provided_state")&&!b&&(b=this.app.Md(),null==b?0:NWa(b))){if(this.L("web_player_autonav_server_provided_state_pause_killswitch"))return;if(3===a)3!==b.autonavState&&(b.SC=b.autonavState);else if(void 0!==b.SC)a=b.SC,b.SC=void 0;else return}yhb(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.HT(this.app,1))||!a.hasSupportedAudio51Tracks())};
g.k.setUserAudio51Preference=function(a,b){b=void 0===b?!1:b;var c=g.HT(this.app,1);c&&c.setUserAudio51Preference(a,b)};
g.k.getUserAudio51Preference=function(){var a,b;return null!=(b=null==(a=g.HT(this.app,1))?void 0:a.getUserAudio51Preference())?b:1};
g.k.setProximaLatencyPreference=function(a){var b=g.HT(this.app,1);b&&b.setProximaLatencyPreference(a)};
g.k.getProximaLatencyPreference=function(){var a=g.HT(this.app,1);return a?a.getProximaLatencyPreference():0};
g.k.isProximaLatencyEligible=function(){var a=g.HT(this.app,1);return a?a.isProximaLatencyEligible():!1};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.updateLastActiveTime=function(){OD()};
g.k.setBlackout=function(a){this.app.setBlackout(a)};
g.k.setUserEngagement=function(a){this.app.U().Pl!==a&&(this.app.U().Pl=a,(a=g.HT(this.app,1))&&D0(a))};
g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.FV(this.app.yb()).V2(a,b)};
g.k.getCaptionWindowContainerId=function(){var a=g.FV(this.app.yb());return a?a.getCaptionWindowContainerId():""};
g.k.toggleSubtitlesOn=function(){var a=g.FV(this.app.yb());a&&a.v2()};
g.k.isSubtitlesOn=function(){var a=g.FV(this.app.yb());return a?a.isSubtitlesOn():!1};
g.k.getPlayerResponse=function(a){return(a=g.HT(this.app,a))?a.getVideoData().getPlayerResponse():null};
g.k.O8=function(){return this.getPlayerResponse(1)};
g.k.getEmbeddedPlayerResponse=function(){var a=g.HT(this.app,1);return a?a.getVideoData().getEmbeddedPlayerResponse():null};
g.k.getWatchNextResponse=function(a){return(a=g.HT(this.app,a))?a.getVideoData().getWatchNextResponse():null};
g.k.d9=function(){return this.getWatchNextResponse(1)};
g.k.getHeartbeatResponse=function(a){return(a=g.HT(this.app,a))?a.getVideoData().getHeartbeatResponse():null};
g.k.J8=function(){return this.getHeartbeatResponse(1)};
g.k.getStoryboardFrame=function(a,b){var c=this.app.dk();if(!c)return null;b=c.levels[b];return b?(a=g.zS(b,a))?{column:a.column,columns:a.columns,height:a.Bx,row:a.row,rows:a.rows,url:a.url,width:a.NF}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.dk();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Mc();return b.gI(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.dk();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.cz(),minFrameIndex:b.oN()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.dk();return a?a.levels.length:0};
g.k.w8=function(){return this.getAudioTrack(1)};
g.k.getAudioTrack=function(a){return(a=g.HT(this.app,a))?a.getAudioTrack():this.app.getVideoData().Mk};
g.k.setAudioTrack=function(a,b){3===this.GJ()&&QT(this.app.yb()).XF("control_set_audio_track",a);var c=g.HT(this.app,this.playerType);if(c)if(c.Na()||g.MF(c.playerState,128))a=!1;else{var d;if(null==(d=c.videoData.C)?0:d.j){d=b?c.getCurrentTime()-c.Mc():NaN;if(b){var e=mfb(c.jd);c.ma("aswh",{id:a.id,xtags:a.xtags,bh:e.toFixed(3)})}c.ya.setAudioTrack(a,d,b)}else if(egb(c)){b:{b=c.mediaElement.audioTracks();for(d=0;d<b.length;++d)if(e=b[d],e.label===a.qc.getName()){if(e.enabled){b=!1;break b}b=e.enabled=
!0;break b}b=void 0}b&&c.ma("hlsaudio",{id:a.id})}else{b:if(b=c.videoData,b.D&&!jK(b.D)||a==b.tp||!b.ud||0>=b.ud.length)b=!1;else{d=g.u(b.ud);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof cS)){b=!1;break b}var f=a.qc.getId();e.B&&(iVa(e.B,f),e.resource=null)}b.tp=a;b=!0}b&&w0(c)&&(c.publish("internalaudioformatchange",c.videoData,!0),c.ma("hlsaudio",{id:a.id}))}a=!0}else a=!1;return a};
g.k.z8=function(){return this.getAvailableAudioTracks(1)};
g.k.getAvailableAudioTracks=function(a){return g.HT(this.app,a).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.HT(this.app,1);return a&&a.getVideoData().B?gP(a.Lf?pdb(a.yk,a.Lf,a.Mw()):DS):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.HT(this.app,1);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.FV(this.app.yb());return a?a.V8():null};
g.k.resetSubtitlesUserSettings=function(){g.FV(this.app.yb()).yda()};
g.k.setMinimized=function(a){this.app.setMinimized(a)};
g.k.setOverlayVisibility=function(a){this.publish("overlayvisibilitychange",a)};
g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)};
g.k.setSqueezeback=function(a){this.app.setSqueezeback(a)};
g.k.setGlobalCrop=function(a){this.app.ob().setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.isMinimized();return this.app.getVisibilityState(this.Xh(),this.isFullscreen()||g.FR(this.app.U()),a,this.isInline(),this.app.du(),this.app.EA(),this.app.LA(),this.app.hk())};
g.k.isMutedByMutedAutoplay=function(){return this.app.jB};
g.k.setInternalSize=function(a,b){this.app.ob().setInternalSize(new g.Ke(a,b))};
g.k.Mc=function(){var a=g.HT(this.app);return a?a.Mc():0};
g.k.isMinimized=function(){return this.app.isMinimized()};
g.k.Xh=function(){var a=g.HT(this.app,this.playerType);return!!a&&a.Xh()};
g.k.setSafetyMode=function(a){this.app.U().enableSafetyMode=a};
g.k.canPlayType=function(a){return this.app.canPlayType(a)};
g.k.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;b&&b!==a.list&&(c=!0);void 0!==a.external_list&&(this.app.Ci=oB(!1,a.external_list));var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.qV(b).videoId||(a.index=b.index)):Q0(this.app,{list:a.list,index:a.index,playlist_length:d.length});B_a(this.app.getPlaylist(),a);this.Cc("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.HT(this.app,this.playerType||1);c&&g.HS(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){WUa(this.app.U(),a,!1)};
g.k.Rda=function(a){this.app.sendVideoStatsEngageEvent(a,1)};
g.k.productsInVideoVisibilityUpdated=function(a){this.publish("changeProductsInVideoVisibility",a)};
g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)};
g.k.getVideoAspectRatio=function(){return this.app.ob().getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.HT(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.getPlaybackQualityLabel=function(a){if(a=g.HT(this.app,a)){var b,c;return(null==(c=null==(b=a.getVideoData().B)?void 0:b.video)?void 0:c.qualityLabel)||""}return""};
g.k.setPlaybackQualityRange=function(a,b,c){var d=g.HT(this.app,this.playerType);d&&g.bgb(d,g.dP(a,b||a,!0,"m"),!0,c)};
g.k.onAdUxClicked=function(a,b){this.publish("aduxclicked",a,b)};
g.k.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.k.dispatchReduxAction=function(a){g.SS.dispatch(a)};
g.k.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.je.includes(e)||(c.je.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.Hb(c.je,e)&&(d=!0)});
d&&this.publish("updatemarkervisibility")};
g.k.highlightSettingsMenuItem=function(a){this.publish("highlightSettingsMenu",a)};
g.k.openSettingsMenuItem=function(a){this.publish("openSettingsMenuItem",a)};
g.k.b7=function(a,b){this.state.j.subscribe(a,b)};
g.k.oda=function(a,b){this.state.j.unsubscribe(a,b)};
g.k.L7=function(a,b){this.cueVideoByPlayerVars(a,void 0===b?1:b)};
g.k.o$=function(a,b,c,d){this.loadVideoByPlayerVars(a,b,void 0===c?1:c,d)};
g.k.Yca=function(a,b,c,d){this.preloadVideoByPlayerVars(a,void 0===b?1:b,c,d)};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.Fh=function(){return g.IT(this).Fh()};
g.k.Pg=function(){return g.IT(this).Pg()};
g.k.Im=function(){return g.IT(this).Im()};
g.k.Se=function(){return this.Di().Se()};
g.k.im=function(){var a=g.Ia.apply(0,arguments),b;(b=this.Se()).im.apply(b,g.qa(a))};
g.k.Th=function(){this.Se().Th()};
g.k.eQ=function(){this.Se().eQ()};
g.k.Wh=function(){this.Se().hide()};
g.k.iM=function(a,b,c,d,e,f,h,l){this.Se().iM(a,b,c,d,e,f,h,l)};
g.k.hH=function(a,b){this.Se().hH(a,b)};
g.k.Yx=function(a,b,c,d,e){this.Di().Yx(a,b,c,d,e)};
g.k.cH=function(a){this.Se().setEnabled(a)};
g.k.wz=function(a){this.Di().wz(a)};
g.k.nE=function(a,b){this.Di().nE(a,b)};
g.k.Wz=function(a,b){this.Di().Wz(a,b)};
g.k.vr=function(){this.Di().vr()};
g.k.aT=function(a,b){this.Di().aT(a,b)};
g.k.dC=ea(5);g.k.eC=ea(7);g.k.Ds=ea(10);g.k.Cs=ea(13);g.k.HG=function(a,b){this.Di().HG(a,b)};
g.k.Fw=function(){this.Di().Fw()};
g.k.getWebPlayerContextConfig=function(){return this.app.U().getWebPlayerContextConfig()};
g.k.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")};g.y(g.NT,g.JT);g.k=g.NT.prototype;g.k.Zo=function(a,b,c,d,e,f,h){return this.app.Zo(a,b,c,d,e,f,h)};
g.k.BE=function(){return this.app.BE()};
g.k.Lt=ea(15);g.k.yb=function(){return this.app.yb()};
g.k.Gf=function(){var a=this.yb().Fe.get("endscreen");return!!a&&a.Gf()};
g.k.getRootNode=function(){return this.ob().element};
g.k.U=function(){return this.app.U()};
g.k.jA=ea(17);g.k.wm=function(a){return this.app.wm(a)};
g.k.Pn=function(){var a;return(null==(a=g.IT(this))?void 0:a.Pn())||null};
g.k.getPlayerStateObject=function(a){return this.app.getPlayerStateObject(a)};
g.k.ob=function(){return this.app.ob()};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){var b=g.HT(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a||g.sT(b)&&1!==a)a:{var d=this.app;b=d.getVideoData();if(d.xe){a=d.xe;d=d.getCurrentTime();if(a.Fn)var e=void 0;else{var f=void 0;a.Wb&&(f=a.D.get(a.Wb));if(!f){f=iY(a,1E3*d);var h=null==(e=f)?void 0:e.cpn;a.Wb?h&&a.Wb!==h&&a.ea.ma("sdai",{cpcnm:h+"_"+a.Wb,cmt:d.toFixed(3)}):a.ea.ma("sdai",{cpcna:h,cmt:d.toFixed(3)})}e=null==(c=f)?void 0:c.videoData}b=e||b}else if(d.zb&&
d.tb){if(d.L("html5_ssap_get_video_data_fix")){c=d.zb.getVideoData(a);break a}b=D6a(d.zb)||b}c=b}else c=b;return c};
g.k.dk=function(a){return this.app.dk(a)};
g.k.hk=function(){return this.app.hk()};
g.k.isHdr=function(){var a=g.HT(this.app);return a?a.isHdr():!1};
g.k.AQ=function(){return this.app.AQ()};
g.k.bd=function(){var a=g.IT(this),b=this.getVideoData();a=a?a.fK:this.getPlayerSize();var c=!!this.getPlaylist();return!(!b||!b.bd(new g.Ke(a.width,a.height),c))};
g.k.gC=function(a){this.app.gC(a)};
g.k.Mf=function(a,b,c,d,e){this.app.Dg(a,b,c,d,e)};
g.k.Es=function(a,b){this.app.Es(a,b)};
g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){QT(this.app.yb()).XF("control_play");return}if(!a&&2===this.getPresentingPlayerType()){var b=IV(this.app.yb());if(b&&$jb(b))return}}catch(c){g.AE(c)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.HT(this.app,a).stopVideo()};
g.k.No=function(a){g.HT(this.app,a).No()};
g.k.addEventListener=function(a,b){this.state.C.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.state.C.unsubscribe(a,b)};
g.k.yG=function(a){this.app.yG(a)};
g.k.setPlaybackQuality=function(a,b){this.setPlaybackQualityRange(a,a,b)};
g.k.Mt=function(){var a={},b=g.HT(this.app).Mt();b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.k.CE=function(){return g.HT(this.app).CE()};
g.k.OE=ea(21);g.k.PL=function(a){this.app.PL(a);a&&yhb(this.app,a)};
g.k.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2===e;if(d&&f||3===e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var h;a||d.isLivePlayback||(h=Math.floor(this.getCurrentTime(e)));a=f?void 0:this.getPlaylistId()||void 0;b&&"WL"===a&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,h,b,c)};
g.k.PE=ea(23);g.k.Do=ea(27);g.k.Mo=function(a){var b=g.HT(this.app);b&&b.Mo(a)};
g.k.VA=function(a,b){this.yb().VA(a,b)};
g.k.Uk=function(){var a=g.LV(this.yb());return!!a&&a.Uk()};
g.k.zp=function(){var a=g.LV(this.yb());return!!a&&a.zp()};
g.k.bC=function(a,b,c){var d=g.LV(this.yb());d&&d.bC(a,b,c)};
g.k.aC=ea(28);g.k.Wo=function(){var a=g.HT(this.app);a&&a.Wo()};
g.k.YL=function(a){this.Cc("onVideoAreaChange");this.Cc(a?"onShowControls":"onHideControls")};
g.k.Rn=function(a,b){var c=g.IT(this);if(c)return c.Rn(a,b);a=this.app.ob().Vh();return new g.Fs(0,0,a.width,a.height)};
g.k.Am=function(){return this.app.Am()};
g.k.mF=function(){var a=this.yb().Fe.get("heartbeat");return!!a&&a.mF()};
g.k.Yh=function(){var a=this.U();if(a.Sa||a.disableSeek)return!1;var b=g.HT(this.app);if(!b)return!1;var c=b.getVideoData();return!c.ue()||g.fT(c)||2===this.getPresentingPlayerType()&&!this.app.Hf()||c.jo()&&2===this.getPresentingPlayerType(!0)||b.Un()&&3!==this.getPresentingPlayerType()||g.tB(g.JR(a))&&!c.jn||g.GT(this.app)?!1:!0};
g.k.iF=function(){var a;return(null==(a=g.HT(this.app))?void 0:a.iF)||!1};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.Yu=function(){var a=g.HT(this.app);a&&a.Yu()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.hf=function(a,b,c){this.app.vz(a,b,c)};
g.k.Oo=function(a,b){this.app.GG(a,b)};
g.k.nf=function(a,b){fhb(this.app,a,b)};
g.k.WJ=function(a){var b=g.HT(this.app);return b?b.Ah.WJ(a):!1};
g.k.Ly=function(a){return this.app.Ly(a)};
g.k.Eg=function(a,b){(b=g.HT(this.app,b))&&b.Eg(a)};
g.k.Un=function(){var a=g.HT(this.app);return a?a.Un():!0};
g.k.Vw=function(){var a=this.getVideoData();return!!a&&(a.Vw()||!!a.hlsFormats||!!a.Qc)};
g.k.getPlaybackRate=function(){return g.HT(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.Je=function(){return this.app.Je()};
g.k.Ei=function(){return this.app.Ei()};
g.k.Gi=function(a){return this.app.Gi(a)};
g.k.createClientVe=function(a,b,c,d){this.U().bb&&this.app.Nr.createClientVe(a,b,c,void 0===d?!1:d)};
g.k.createServerVe=function(a,b,c){this.U().bb&&this.app.Nr.createServerVe(a,b,void 0===c?!1:c)};
g.k.setTrackingParams=function(a,b){this.U().bb&&this.app.Nr.setTrackingParams(a,b)};
g.k.logClick=function(a,b){this.U().bb&&(this.app.Nr.click(a,b),this.publish("veClickLogged",a))};
g.k.logVisibility=function(a,b,c){if(this.U().bb){var d=this.app.Nr;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.xE(),f=a.visualElement;d.B.has(a)?e&&f&&(b?g.PE(e,[f]):g.QE(e,[f])):b&&!d.C.has(a)&&(e&&f&&g.OE(e,f,void 0,c),d.C.add(a))}};
g.k.hasVe=function(a){return this.U().bb?this.app.Nr.hasVe(a):!1};
g.k.destroyVe=function(a){this.U().bb&&this.app.Nr.destroyVe(a)};
g.k.Zc=function(){return g.HT(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.py=function(){this.app.py()};
g.k.Qz=function(a,b){return this.app.Qz(a,b)};
g.k.Fq=function(a){this.app.Fq(a)};
g.k.YA=function(){this.app.YA()};
g.k.addPlayerResponseForAssociation=function(a){this.app.addPlayerResponseForAssociation(a)};
g.k.finishSegmentByCpn=function(a,b){return this.app.finishSegmentByCpn(a,b)};
g.k.OD=function(a,b,c,d,e,f,h){return this.app.OD(a,b,c,d,e,f,h)};
g.k.fF=function(a,b,c,d,e,f,h){return this.app.fF(a,b,c,d,e,f,h)};
g.k.GA=function(){return this.app.GA()};
g.k.Ou=function(a){this.app.Ou(a)};
g.k.Dz=function(a,b){b=void 0===b?Infinity:b;this.app.Dz(void 0===a?-1:a,b)};
g.k.zM=function(a){var b;null==(b=g.FV(this.yb()))||b.zM(a)};
g.k.CH=function(a,b,c){this.app.CH(a,b,c)};
g.k.Dr=function(){return this.app.Dr()};
g.k.hJ=function(a,b,c){this.app.hJ(a,b,void 0===c?0:c)};
g.k.po=function(){return this.app.po()};
g.k.Hf=function(){return this.app.Hf()};
g.k.Cu=function(a,b,c){return this.app.Cu(a,b,c)};
g.k.ma=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.HT(this.app,d))||e.ma(a,b,c)};
g.k.lR=function(a,b){this.publish("aduxmouseover",a,b)};
g.k.kR=function(a,b){this.publish("aduxmouseout",a,b)};
g.k.KR=function(a,b){this.publish("muteadaccepted",a,b)};
g.k.oF=function(){return this.app.ob().oF()};
g.k.hC=function(a){this.app.ob().hC(a)};
g.k.Gs=function(a){return a?this.app.tT():(a=g.HT(this.app))?a.Gs():!1};
g.k.cT=function(a){this.app.cT(a)};
g.k.cB=function(a){var b,c=null==(b=g.HT(this.app))?void 0:b.ya;c&&c.cB(a)};
g.k.Ps=function(){g.HT(this.app,1).Ps()};
g.k.KJ=function(){var a=g.HT(this.app);return a?a.KJ():0};
g.k.bH=function(a){var b=g.HT(this.app);b&&b.bH(a)};
g.k.XS=function(a){var b=g.HT(this.app);b&&b.XS(a)};var tYa;g.y(sYa,TB);sYa.prototype.AE=function(a,b){a=TB.prototype.AE.call(this,a,b);return Object.assign({},a,this.requestHeaders)};g.y(g.ZT,g.bF);g.k=g.ZT.prototype;g.k.show=function(){var a=this.gk();g.bF.prototype.show.call(this);this.Ha&&(this.N.T(window,"blur",this.Mb),this.N.T(document,"click",this.Q5));a||this.publish("show",!0)};
g.k.hide=function(){var a=this.gk();g.bF.prototype.hide.call(this);uYa(this);a&&this.publish("show",!1)};
g.k.rd=function(a,b){this.B=a;this.qa.show();b?(this.Y||(this.Y=this.N.T(this.J,"appresize",this.EW)),this.EW()):this.Y&&(this.N.Pc(this.Y),this.Y=void 0)};
g.k.UX=function(){this.B&&this.element&&(this.B.getAttribute("aria-haspopup"),this.B.setAttribute("aria-expanded","true"),this.focus())};
g.k.EW=function(){var a=g.IT(this.J);this.B&&a.Yx(this.element,this.B)};
g.k.Mb=function(){var a=this.gk();uYa(this);this.qa.hide();a&&this.publish("show",!1)};
g.k.Q5=function(a){var b=EB(a);b&&(g.Jf(this.element,b)||this.B&&g.Jf(this.B,b)||!g.XF(a))||this.Mb()};
g.k.gk=function(){return this.Gb&&4!==this.qa.state};g.y(vYa,g.ZT);vYa.prototype.rd=function(){g.ZT.prototype.rd.call(this);this.dialog.focus()};g.y(g.aU,g.bF);g.aU.prototype.setIcon=function(a){this.updateValue("icon",a)};
g.aU.prototype.Gk=function(a){this.updateValue("label",a)};
g.aU.prototype.updateValue=function(a,b){g.bF.prototype.updateValue.call(this,a,b);this.publish("size-change")};g.nU={C6:15,Y5a:14,S8a:13,r6:12,F6:11,D3:10,K3:9,y3:8,AUDIO:7,SUBTITLES:6,B6:5,SLEEP_TIMER:4,x6:3,LQa:2,REMOTE:1,Kva:0,15:"STABLE_VOLUME",14:"REMOTE_SELECT",13:"SIZE",12:"MINIPLAYER",11:"THREED",10:"AUTONAV",9:"CINEMATIC",8:"ANNOTATIONS",7:"AUDIO",6:"SUBTITLES",5:"SPEED",4:"SLEEP_TIMER",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};g.y(cU,g.aU);cU.prototype.Lc=function(a){this.B&&this.J.logVisibility(this.element,this.j&&a)};
cU.prototype.D=function(){var a,b,c=null==(a=this.J.getVideoData())?void 0:null==(b=a.accountLinkingConfig)?void 0:b.linked;if(c&&!this.j){var d;a=null==(d=this.J.getVideoData())?void 0:d.accountLinkingConfig;this.setIcon(jF());var e;this.Gk(dU(null==a?void 0:null==(e=a.menuData)?void 0:e.connectedMenuLabel));var f,h,l;this.C=new vYa(this.J,dU(null==a?void 0:null==(f=a.menuData)?void 0:f.connectedDialogTitle),dU(null==a?void 0:null==(h=a.menuData)?void 0:h.connectedDialogMessage),dU(null==a?void 0:
null==(l=a.menuData)?void 0:l.confirmButtonText));g.N(this,this.C);var m;d=(null==a?void 0:null==(m=a.menuData)?void 0:m.trackingParams)||null;(this.B=!!d)&&this.J.setTrackingParams(this.element,d);this.Cb.Rc(this);this.j=!0}else!c&&this.j&&(this.Cb.ph(this),this.j=!1)};
cU.prototype.onClick=function(){this.B&&this.J.logClick(this.element);this.Cb.Mb();this.C&&this.C.rd()};g.y(eU,g.I);eU.prototype.L=function(a){return this.api.L(a)};g.y(fU,eU);fU.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.YV=b};
fU.prototype.setAccountLinkState=function(a){this.api.getVideoData().YV=a;this.api.Wo()};
fU.prototype.updateAccountLinkingConfig=function(a){var b=this.api.getVideoData(),c=b.accountLinkingConfig;c&&(c.linked=a);this.api.publish("videodatachange","dataupdated",b,this.api.getPresentingPlayerType())};g.y(xYa,eU);
xYa.prototype.B=function(a){var b=a.getId(),c=this.api.getVideoData(1),d=!this.api.isInline();if(!c.inlineMetricEnabled&&!this.api.L("enable_player_logging_lr_home_infeed_ads")||d){if("part2viewed"===b){if(c.WV&&g.qD(c.WV),c.OH&&hU(this,c.OH),c.nz)for(var e={CPN:this.api.getVideoData().clientPlaybackNonce},f=g.u(c.nz),h=f.next();!h.done;h=f.next())hU(this,g.cv(h.value,e))}else"conversionview"===b?this.api.Ps():"engagedview"===b&&c.xj&&(e={CPN:this.api.getVideoData().clientPlaybackNonce},g.qD(g.cv(c.xj,
e)));c.XV&&(e=c.XV,f=a.getId(),e=HA(e,{label:f}),g.qD(e));switch(b){case "videoplaytime25":c.TV&&hU(this,c.TV);c.KC&&iU(this,c.KC);c.eW&&g.qD(c.eW);break;case "videoplaytime50":c.UV&&hU(this,c.UV);c.MC&&iU(this,c.MC);c.hW&&g.qD(c.hW);break;case "videoplaytime75":c.VV&&hU(this,c.VV);c.OC&&iU(this,c.OC);c.jW&&g.qD(c.jW);break;case "videoplaytime100":c.PV&&hU(this,c.PV),c.IC&&iU(this,c.IC),c.ZV&&g.qD(c.ZV)}(e=this.api.getVideoData().Dv)&&BYa(this,e,a.getId())&&BYa(this,e,a.getId()+"gaia")}if(c.inlineMetricEnabled&&
!d)switch(b){case "videoplaybackstart":var l,m=null==(l=c.oz)?void 0:l.j;m&&hU(this,m);break;case "videoplayback2s":(l=null==(m=c.oz)?void 0:m.C)&&hU(this,l);break;case "videoplayback10s":var n;(l=null==(n=c.oz)?void 0:n.B)&&hU(this,l)}this.api.Oo([a],1)};g.y(DYa,eU);g.y(FYa,g.W);g.k=FYa.prototype;
g.k.qD=function(){var a;if(a=3!==this.J.getPresentingPlayerType()&&g.VT(this.J)&&400<=this.J.ob().getPlayerSize().width)if(a=this.Md(),this.J.U().L("client_respect_autoplay_switch_button_renderer"))a=!!a.autoplaySwitchButtonRenderer;else{var b,c,d,e;a=!1!==!!(null==(b=a.getWatchNextResponse())?0:null==(c=b.contents)?0:null==(d=c.twoColumnWatchNextResults)?0:null==(e=d.autoplay)?0:e.autoplay)}if(a)this.j||(this.j=!0,g.aF(this,this.j),this.J.U().L("web_player_autonav_toggle_always_listen")||EYa(this),
b=this.Md(),this.CV(b.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j=!1,g.aF(this,this.j),!this.J.U().L("web_player_autonav_toggle_always_listen"))for(this.J.U().L("web_player_autonav_toggle_always_listen"),b=g.u(this.B),c=b.next();!c.done;c=b.next())this.Pc(c.value)};
g.k.CV=function(a){HYa(this)?this.isChecked=1!==a:((a=1!==a)||(g.UB(),a=g.TA("web_autonav_allow_off_by_default")&&!g.VB(0,141)&&g.xA("AUTONAV_OFF_BY_DEFAULT")?!1:!g.VB(0,140)),this.isChecked=a);GYa(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.J.PL(this.isChecked?2:1);GYa(this);if(HYa(this)){var a=this.Md().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.J.jb("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.J.jb("innertubeCommand",a.onDisabledCommand)}this.J.logClick(this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.Md=function(){return this.J.getVideoData(1)};g.y(IYa,eU);g.y(jU,g.aU);jU.prototype.onClick=function(){this.enabled&&(kU(this,!this.checked),this.publish("select",this.checked))};
jU.prototype.getValue=function(){return this.checked};
jU.prototype.setEnabled=function(a){(this.enabled=a)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var KYa=["en-CA","en","es-MX","fr-CA"];g.y(oU,jU);oU.prototype.Ta=function(a){a?this.j||(this.Cb.Rc(this),this.j=!0):this.j&&(this.Cb.ph(this),this.j=!1);this.j&&kU(this,rPa())};
oU.prototype.D=function(){g.Sv(this.element,"ytp-menuitem-highlight-transition-enabled")};
oU.prototype.C=function(a){var b=rPa();a!==b&&(b=g.UB(),bsa(190,a),bsa(192,!0),b.save(),this.J.jb("cinematicSettingsToggleChange",a))};
oU.prototype.va=function(){this.j&&this.Cb.ph(this);jU.prototype.va.call(this)};g.y(QYa,eU);QYa.prototype.updateCinematicSettings=function(a){this.j=a;var b;null==(b=this.menuItem)||b.Ta(a);this.api.publish("onCinematicSettingsVisibilityChange",a)};g.y(pU,jU);pU.prototype.B=function(a){this.C(a?1:0)};
pU.prototype.onVideoDataChange=function(){var a=this.hasDrcAudioTrack(),b=1===this.j()&&a;kU(this,b);this.setEnabled(a)};
pU.prototype.va=function(){this.Cb.ph(this);jU.prototype.va.call(this)};g.y(qU,eU);qU.prototype.getDrcUserPreference=function(){return this.j};
qU.prototype.setDrcUserPreference=function(a){g.PB("yt-player-drc-pref",a,31536E3);a!==this.j&&(this.j=a,this.updateEnvironmentData(),(a=this.api.Zc())&&this.B()&&N_(a))};
qU.prototype.updateEnvironmentData=function(){this.api.U().Tf=1===this.j};
qU.prototype.B=function(){var a,b,c=null==(a=this.api.getVideoData())?void 0:null==(b=a.C)?void 0:b.j;return c?Ys(c,function(d){var e;return!0===(null==(e=d.audio)?void 0:e.j)}):!1};g.y(rU,eU);rU.prototype.onVideoDataChange=function(){var a=this,b=this.api.getVideoData();this.api.nf("embargo",1);var c=null==b?void 0:b.TC.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(null==c?0:c.length)?SYa(this,c.filter(function(d){return RYa(a,d)})):(null==b?0:b.cueRanges)&&SYa(this,b.cueRanges.filter(function(d){return RYa(a,d)}))};
rU.prototype.B=function(a){return void 0!==a.embargo};
rU.prototype.va=function(){eU.prototype.va.call(this);this.j={}};g.y(TYa,eU);
TYa.prototype.addEmbedsConversionTrackingParams=function(a){var b=this.api.U(),c=b.widgetReferrer,d=b.Qc,e=this.j,f="",h=b.getWebPlayerContextConfig();h&&(f=h.embedsIframeOriginParam||"");0<c.length&&(a.embeds_widget_referrer=c);0<d.length&&(a.embeds_referring_euri=d);b.D&&0<f.length&&(a.embeds_referring_origin=f);0<e.length&&(b.L("embeds_web_enable_lite_experiment_control_arm_logging")?e.unshift(28572):g.tB(g.JR(b))&&e.unshift(159628),b=e.join(","),b=g.hB()?b:g.Ig(b,4),a.source_ve_path=b);this.j.length=
0};g.y(UYa,eU);g.y(sU,g.I);sU.prototype.va=function(){g.I.prototype.va.call(this);this.j=null;this.B&&this.B.disconnect()};g.y(tU,eU);tU.prototype.Iw=function(){var a=VYa(this.BC);if(null!=a)return a};
tU.prototype.Hw=function(){var a=this.api.getPlayerSize();if(0<a.height&&0<a.width){a=[Math.round(a.width),Math.round(a.height)];var b=g.QR();1<b&&a.push(b);return a.join(":")}};g.y(uU,g.W);uU.prototype.show=function(){g.W.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
uU.prototype.onVideoDataChange=function(a){var b,c,d=null==(b=this.api.getVideoData())?void 0:null==(c=b.getPlayerResponse())?void 0:c.playabilityStatus;d&&(b=XYa(d),g.MF(this.api.getPlayerStateObject(),128)||"dataloaderror"===a||!b?(this.B=0,$Ya(this),this.hide()):(a=1E3*(b.remainingTimeSecs||0),0<a&&(this.show(),this.updateValue("label",VKa(b.label)),ZYa(this,a))))};
uU.prototype.va=function(){$Ya(this);g.W.prototype.va.call(this)};g.y(aZa,eU);g.y(vU,g.W);vU.prototype.onClick=function(){this.Ua.logClick(this.element);this.Ua.jb("onFullerscreenEduClicked")};
vU.prototype.Ta=function(){this.Ua.isFullscreen()?this.B?this.j.hide():this.j.show():this.hide();this.Ua.logVisibility(this.element,this.Ua.isFullscreen()&&!this.B)};g.y(wU,eU);wU.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var b;null!=(b=this.j)&&(g.Uv(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),LT(b.Ua,b.element,b),b.C=!0))};
wU.prototype.updateFullerscreenEduButtonVisibility=function(a){var b;null!=(b=this.j)&&(b.B=a,b.Ta())};g.y(bZa,g.W);g.y(eZa,eU);g.y(fZa,eU);g.y(gZa,eU);g.y(xU,eU);xU.prototype.getSphericalProperties=function(){var a=g.ST(this.api.yb());return a?a.getSphericalProperties():{}};
xU.prototype.setSphericalProperties=function(a){if(a){var b=g.ST(this.api.yb());b&&b.setSphericalProperties(a,!0)}};g.y(hZa,eU);g.k=hZa.prototype;g.k.createClientVe=function(a,b,c,d){this.api.createClientVe(a,b,c,void 0===d?!1:d)};
g.k.createServerVe=function(a,b,c){this.api.createServerVe(a,b,void 0===c?!1:c)};
g.k.setTrackingParams=function(a,b){this.api.setTrackingParams(a,b)};
g.k.logClick=function(a,b){this.api.logClick(a,b)};
g.k.logVisibility=function(a,b,c){this.api.logVisibility(a,b,c)};
g.k.hasVe=function(a){return this.api.hasVe(a)};
g.k.destroyVe=function(a){this.api.destroyVe(a)};g.y(yU,eU);yU.prototype.seekToChapterWithAnimation=function(a){var b=this;if(g.IT(this.api)&&!(0>a)){var c=this.api.getVideoData(),d=c.Dk;if(d&&a<d.length){d=g.u(d);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.index===a){iZa(this,e.startTime,e.title);return}}this.L("web_key_moments_markers")&&(c=c.iW)&&a<c.length&&c.forEach(function(f,h){h===a&&iZa(b,f.timeRangeStartMillis,f.title)})}};
yU.prototype.seekToTimeWithAnimation=function(a,b){g.IT(this.api)&&iZa(this,a,b)};
yU.prototype.setMacroMarkers=function(a,b){b={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:b}}}}}};a=a.getVideoData();a.getWatchNextResponse();a&&null==a.getWatchNextResponse()&&(rWa(a,{raw_watch_next_response:b}),a.publish("dataupdated"))};g.y(lZa,eU);lZa.prototype.va=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var a=g.u("nexttrack previoustrack play pause seekbackward seekforward".split(" ")),b=a.next();!b.done;b=a.next())zU(b.value,null);eU.prototype.va.call(this)};g.y(AU,eU);AU.prototype.D=function(a){return void 0!==a.compositeEmbargo};
AU.prototype.va=function(){eU.prototype.va.call(this);this.B.clear()};g.y(tZa,eU);g.k=tZa.prototype;g.k.queueOfflineAction=function(a,b,c,d){var e=this,f,h;return g.G(function(l){return 1==l.j?(f=KV(e.api.yb()))?g.z(l,f.O0([a],b,c,d),3):l.Ia(2):2!=l.j&&(h=l.B,h.length)?l.return(h[0]):l.return(Promise.reject())})};
g.k.updateDownloadState=function(a,b){var c=KV(this.api.yb());return c?c.updateDownloadState(a,b):Promise.reject()};
g.k.pauseVideoDownload=function(a){var b=KV(this.api.yb());b&&b.dS(a)};
g.k.resumeVideoDownload=function(a){var b=this,c;return g.G(function(d){return(c=KV(b.api.yb()))?d.return(c.QG(a)):d.return(Promise.reject())})};
g.k.isOrchestrationLeader=function(){return this.api.isOrchestrationLeader()};
g.k.refreshAllStaleEntities=function(a){void 0===a&&(a=14400);var b=KV(this.api.yb());return b?b.refreshAllStaleEntities(a):Promise.reject()};
g.k.setUpPositionSyncInterval=function(a){var b=KV(this.api.yb());b&&b.setUpPositionSyncInterval(a)};g.y(BU,eU);BU.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}};
BU.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;d=(null==e?void 0:e.qualityDetails)||[];c=new Map;c=g.db(d)&&!Array.isArray(d)?new Map(Object.entries(d)):new Map(d.map(function(h){return[h.key,h.value]}));
if(d=null==e?void 0:e.restrictedAdaptiveFormats){e=[];d=g.u(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f=nK(f.mimeType,f.quality,f.itag.toString(),f.width.toString(),f.height.toString(),f.qualityLabel),e.push(f);a=VS(a);oP(e);d=[];e=g.u(e);for(f=e.next();!f.done;f=e.next())f=f.value,!0===lP(a,f,this.api.U().G)&&d.push(f);b=b.concat(uZa(d,!1,c))}a=this.api.CE();b=b.concat(uZa(a,!0,c));c=[];if(this.api.L("web_player_enable_premium_hbr_in_h5_api"))return b=wZa(b),vZa(b),b;a={};b=g.u(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.y(yZa,eU);g.y(CU,g.W);CU.prototype.Ta=function(a){a=a?"Exit picture-in-picture":"Picture-in-picture";this.update({"data-title-no-tooltip":a,title:a});this.api.Th()};
CU.prototype.onClick=function(){this.api.togglePictureInPicture()};g.y(zZa,eU);zZa.prototype.createButton=function(){var a=this;this.button=new CU(this.api);g.N(this,this.button);this.api.wz(this.button);this.events.T(this.api,"videodatachange",function(){AZa(a)});
AZa(this)};g.y(BZa,eU);g.y(FU,g.W);g.k=FU.prototype;g.k.UF=function(){};
g.k.Ku=function(){};
g.k.By=function(){return!0};
g.k.iea=function(){if(this.expanded){this.bb.show();var a=this.C.element.scrollWidth}else a=this.C.element.scrollWidth,this.bb.hide();this.vc=34+a;g.Uv(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.vc)+"px";this.eb.start()};
g.k.h8=function(){this.badge.element.style.width=(this.expanded?this.vc:34)+"px";this.gb.start()};
g.k.CK=function(){this.D&&this.J.logVisibility(this.badge.element,this.By());this.G&&this.J.logVisibility(this.dismissButton.element,this.By()&&this.eM())};
g.k.YK=function(a){this.Ca=a;EU(this);DU(this);this.Hl()};
g.k.Uea=function(){g.Uv(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.k.eM=function(){return this.ra||this.Ca||!this.Y};
g.k.Hl=function(){this.By()?this.qa.show():this.qa.hide();this.CK()};
g.k.EV=function(){this.enabled=!1;this.Hl()};
g.k.zx=function(a){a?this.G&&this.J.logClick(this.dismissButton.element):this.D&&this.J.logClick(this.badge.element)};
g.k.Tea=function(){this.Hl()};
g.k.saa=function(a){this.Hb=1===a;this.Hl();g.Uv(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.k.Laa=function(){g.Uv(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.J.isFullscreen());this.Hl()};g.y(GU,g.bF);GU.prototype.C_=function(){this.publish("size-change")};
GU.prototype.focus=function(){this.content.focus()};
GU.prototype.x_=function(){this.publish("back")};g.y(g.HU,GU);g.k=g.HU.prototype;g.k.Rc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.Sb(this.items,a,DZa);if(0<=b)return;b=~b;g.Ob(this.items,b,0,a);Df(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.JR,this);this.menuItems.publish("size-change")};
g.k.ph=function(a){a.unsubscribe("size-change",this.JR,this);this.Na()||(g.Hb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.publish("size-change"))};
g.k.JR=function(){this.menuItems.publish("size-change")};
g.k.focus=function(){for(var a=0,b=0;b<this.items.length;b++){var c=this.items[b].element;if("menuitemradio"===c.getAttribute("role")){if("true"===c.getAttribute("aria-checked")){a=b;break}}else break}this.items[a].focus()};
g.k.Np=function(){return this.items.length};g.y(g.JU,g.ZT);g.k=g.JU.prototype;g.k.show=function(){g.ZT.prototype.show.call(this);this.wC()};
g.k.hide=function(){g.ZT.prototype.hide.call(this);1<this.j.length&&g.LU(this)};
g.k.wC=function(){GZa(this);this.Gb&&(EZa(this),g.Ts(this.element,this.size))};
g.k.aj=function(){var a=this.j.pop();FZa(this,a,this.j[this.j.length-1],!0)};
g.k.R5=function(a){if(!a.defaultPrevented)switch(a.keyCode){case 27:this.Mb();a.preventDefault();break;case 37:1<this.j.length&&this.aj();a.preventDefault();break;case 39:a.preventDefault()}};
g.k.focus=function(){this.j.length&&this.j[this.j.length-1].focus()};
g.k.va=function(){g.ZT.prototype.va.call(this);this.G&&this.G.dispose();this.K&&this.K.dispose()};g.y(MU,g.JU);MU.prototype.open=function(a,b){this.initialize(a.items)&&this.rd(b,!!b)};
MU.prototype.initialize=function(a){g.IU(this.Pe);if(void 0===a||0===a.length)return!1;var b=a.length;a=g.u(a);for(var c=a.next();!c.done;c=a.next())this.Rc(c.value,b--);return!0};
MU.prototype.Rc=function(a,b){a.menuNavigationItemRenderer?JZa(this,a.menuNavigationItemRenderer,b):a.menuServiceItemRenderer&&KZa(this,a.menuServiceItemRenderer,b)};g.y(NU,FU);g.k=NU.prototype;g.k.UF=function(a){a.target!==this.dismissButton.element&&a.target!==this.overflowButton.element&&(this.zx(),this.onClickCommand&&this.J.jb("innertubeCommand",this.onClickCommand))};
g.k.Ku=function(){this.enabled=!1;this.qa.hide()};
g.k.By=function(){return!!this.j&&this.enabled};
g.k.onVideoDataChange=function(a,b){this.z1(b);if(this.j){this.B1();a:{var c,d,e;this.banner.update({title:null==(c=this.j)?void 0:c.title,subtitle:null==(d=this.j)?void 0:d.subtitle,metadata:null==(e=this.j)?void 0:e.metadataText});var f;this.onClickCommand=g.V(null==(f=this.j)?void 0:f.onTap,EE);var h;if(a=g.V(null==(h=this.j)?void 0:h.onOverflow,EE))this.N=g.V(a,Vnb);var l;if(null==(l=this.j)?0:l.thumbnailImage){var m,n;h=(null==(m=this.j)?void 0:null==(n=m.thumbnailImage)?void 0:n.sources)||[];
if(0===h.length)break a;this.thumbnailImage.update({url:h[0].url})}else{var p;if(null==(p=this.j)?0:p.thumbnailIconName){var q;this.thumbnailIcon.update({icon:null==(q=this.j)?void 0:q.thumbnailIconName})}}var r;this.shouldShowOverflowButton=!(null==(r=this.j)||!r.shouldShowOverflowButton);var t;this.shouldHideDismissButton=!(null==(t=this.j)||!t.shouldHideDismissButton)}var v;this.banner.element.setAttribute("aria-label",(null==(v=this.j)?void 0:v.a11yLabel)||"");var w;this.Va=null==(w=this.j)?void 0:
w.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;MZa(this)}};
g.k.Jaa=function(){this.isVisible=!0;MZa(this)};
g.k.Kaa=function(){this.isVisible=!1;MZa(this)};
g.k.CK=function(){FU.prototype.CK.call(this);this.B&&this.J.logVisibility(this.banner.element,this.isVisible)};
g.k.zx=function(){FU.prototype.zx.call(this,!1);this.B&&this.J.logClick(this.banner.element)};
g.k.S5=function(a){this.K||(this.K=new MU(this.J),g.N(this,this.K));var b,c;if(null==(b=this.N)?0:null==(c=b.menu)?0:c.menuRenderer)this.K.open(this.N.menu.menuRenderer,a.target),a.preventDefault()};
g.k.z1=function(){};
g.k.B1=function(){};
g.k.va=function(){this.J.nf("suggested_action_view_model");FU.prototype.va.call(this)};g.y(OU,NU);
OU.prototype.z1=function(a){var b,c,d;this.productUpsellSuggestedActionViewModel=g.V(null==(b=a.getWatchNextResponse())?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.suggestedActionViewModel,mob);var e;if(null==(e=this.productUpsellSuggestedActionViewModel)?0:e.content){var f;this.j=g.V(null==(f=this.productUpsellSuggestedActionViewModel)?void 0:f.content,Snb)}var h,l;if(this.B=!!(null==(h=this.productUpsellSuggestedActionViewModel)?0:null==(l=h.loggingDirectives)?0:
l.trackingParams)){var m,n;this.J.setTrackingParams(this.banner.element,(null==(m=this.productUpsellSuggestedActionViewModel)?void 0:null==(n=m.loggingDirectives)?void 0:n.trackingParams)||null)}};
OU.prototype.B1=function(){var a=[],b,c=g.u((null==(b=this.productUpsellSuggestedActionViewModel)?void 0:b.ranges)||[]);for(b=c.next();!b.done;b=c.next()){var d=b.value;d&&(b=Number(d.startTimeMilliseconds),d=Number(d.endTimeMilliseconds),isNaN(b)||isNaN(d)||a.push(new g.cJ(b,d,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.J.hf(a)};g.y(NZa,eU);g.y(g.PU,g.aU);g.k=g.PU.prototype;g.k.open=function(){g.KU(this.Cb,this.B)};
g.k.ri=function(a){OZa(this);var b=this.options[a];b&&(b.element.setAttribute("aria-checked","true"),this.Kd(this.Sk(a)),this.C=a)};
g.k.cO=function(a,b,c){var d=this;b=new g.aU({I:"div",Ka:["ytp-menuitem"],X:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":"false"},V:[{I:"div",Ka:["ytp-menuitem-label"],xa:"{{label}}"}]},b,this.Sk(a,!0));b.listen("click",function(){d.hI(a)});
return b};
g.k.enable=function(a){this.N?a||(this.N=!1,this.ez(!1)):a&&(this.N=!0,this.ez(!0))};
g.k.ez=function(a){a?this.Cb.Rc(this):this.Cb.ph(this)};
g.k.xg=function(a){this.publish("select",a)};
g.k.hI=function(a){this.xg(a)};
g.k.Sk=function(a){return a.toString()};
g.k.T5=function(a){a.defaultPrevented||39!==a.keyCode||(this.open(),a.preventDefault())};
g.k.va=function(){this.N&&this.Cb.ph(this);g.aU.prototype.va.call(this);for(var a=g.u(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.y(RU,g.PU);RU.prototype.Ta=function(){this.Cb.Rc(this);g.QU(this,PZa(this).map(this.D));this.ri("Off");this.j=g.cc(PZa(this),this.D,this)};
RU.prototype.xg=function(a){g.PU.prototype.xg.call(this,a);this.ri(this.j[a]);this.Cb.aj();this.J.jb("onSleepTimerSettingsChanged",this.j[a])};
RU.prototype.D=function(a){return a.toString()};
RU.prototype.resetSleepTimerMenuSettings=function(){var a=this.D("Off");g.PU.prototype.xg.call(this,a);this.ri(this.j[a])};g.y(QZa,eU);QZa.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()};g.y(g.TU,g.UE);g.k=g.TU.prototype;g.k.T=function(a,b){this.D.T(this.Z,a,b,void 0,!this.j)};
g.k.cancel=function(){this.C&&(this.C=!1,this.publish("dragend",0,0,null));this.B&&(this.B=!1,this.publish("hoverend",0,0,null),UU(this),SU(this))};
g.k.Cx=function(a){UU(this);this.T(VU("move"),this.FV);this.T(VU("out"),this.iB);this.T("touchstart",this.qN);this.j&&this.T(VU("down"),this.pN);var b=a.target;a=new g.Ee(a.pageX,a.pageY);this.B=!0;this.publish("hoverstart",a.x,a.y,b);this.publish("hovermove",a.x,a.y,b)};
g.k.FV=function(a){var b=a.target;a=new g.Ee(a.pageX,a.pageY);if(this.G){var c=this.G;this.G=null;if(c.relatedTarget===b&&Je(new g.Ee(c.pageX,c.pageY),a))return}this.publish("hovermove",a.x,a.y,b)};
g.k.iB=function(a){var b=new g.Ee(a.pageX,a.pageY),c=a.relatedTarget;try{if(c&&g.Jf(this.target,c)){this.G=a;this.publish("hovermove",b.x,b.y,c);return}}catch(d){}UU(this);SU(this);this.B=!1;this.publish("hoverend",b.x,b.y,c)};
g.k.P$=function(a){this.Cx(a);this.pN(a)};
g.k.pN=function(a){if("number"!==typeof a.button||0===a.button){UU(this);this.D.T(document,VU("move"),this.O$);this.D.T(document,VU("up"),this.U5);var b=a.target;if(g.Pc)this.T("dragstart",this.V7);else if(a.preventDefault(),(g.UR||Js)&&b)a:{for(var c=b;c;){if($ba(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.C=!0;a=new g.Ee(a.pageX,a.pageY);this.publish("dragstart",a.x,a.y,b);this.publish("dragmove",a.x,a.y,b)}};
g.k.V7=function(a){a.preventDefault()};
g.k.O$=function(a){var b=a.target;b===document&&(b=null);a=new g.Ee(a.pageX,a.pageY);this.publish("hovermove",a.x,a.y,b);this.publish("dragmove",a.x,a.y,b)};
g.k.U5=function(a){UU(this);this.C=!1;var b=EB(a),c=a.target;a=new g.Ee(a.pageX,a.pageY);b&&g.Jf(this.target,b)?(this.T(VU("move"),this.FV),this.T(VU("out"),this.iB),this.T(VU("down"),this.pN),this.T("touchstart",this.qN),this.publish("dragend",a.x,a.y,c)):(SU(this),this.B=!1,this.publish("dragend",a.x,a.y,c),this.publish("hoverend",a.x,a.y,c))};
g.k.qN=function(a){var b=a.changedTouches[0];b&&(UU(this),this.Y||(this.T("touchmove",this.Eea),this.T("touchend",this.GV),this.T("touchcancel",this.GV),this.K=b.identifier,a=a.target,this.B||(this.B=!0,this.publish("hoverstart",b.pageX,b.pageY,a)),this.publish("hovermove",b.pageX,b.pageY,a),this.j&&(this.C=!0,this.publish("dragstart",b.pageX,b.pageY,a),this.publish("dragmove",b.pageX,b.pageY,a))))};
g.k.Eea=function(a){var b=RZa(this,a);b&&(this.j&&a.preventDefault(),a=a.target,this.publish("hovermove",b.pageX,b.pageY,a),this.j&&this.publish("dragmove",b.pageX,b.pageY,a))};
g.k.GV=function(a){var b=RZa(this,a);if(b){UU(this);SU(this);this.B=!1;var c=a.target;this.j&&(this.N||a.preventDefault(),this.C=!1,this.publish("dragend",b.pageX,b.pageY,c));this.publish("hoverend",b.pageX,b.pageY,c)}};
g.k.va=function(){this.j&&(g.Pc&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");UU(this);g.UE.prototype.va.call(this)};g.y(SZa,g.W);SZa.prototype.Wh=function(){g.Is(this.j,"display","none");this.J.logVisibility(this.j,!1)};g.y(XU,eU);XU.prototype.ra=function(a,b){this.Z=[a,b];this.j.subscribe("dragmove",this.K,this);this.j.subscribe("dragend",this.G,this);this.C||g.Jv(this.delay)};
XU.prototype.Ga=function(){if(this.D){this.C=!0;this.Ha=this.api.getPlaybackRate();this.La=this.api.getPlayerStateObject().isPaused();var a=this.speedmasterUserEdu;g.Is(a.j,"display","");a.J.logVisibility(a.j,!0);this.api.setPlaybackRate(this.Ma);this.api.hideControls();this.api.playVideo();this.N&&(this.N.zA=!0);this.qa&&(this.qa.eK=!0)}};
XU.prototype.K=function(a,b){if(!this.C){a=[a,b];var c=this.Z;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.Ca?this.Z=a:YU(this)}};
XU.prototype.G=function(){YU(this)};g.y(VZa,eU);VZa.prototype.onVideoDataChange=function(a){"newdata"===a&&this.api.yb().createSubtitlesModuleIfNeeded()};g.y(ZU,g.Ab);ZU.prototype.preventDefault=function(){g.Ab.prototype.preventDefault.call(this);this.j&&this.j.preventDefault()};
ZU.prototype.stopPropagation=function(){g.Ab.prototype.stopPropagation.call(this);this.j&&this.j.stopPropagation()};g.y(g.$U,JK);g.k=g.$U.prototype;g.k.Qv=function(){return!0};
g.k.isView=function(){return!1};
g.k.FS=function(){return!1};
g.k.Ib=function(){return this.j};
g.k.Ef=function(){return this.j.src};
g.k.eI=function(a){var b=this.getPlaybackRate();this.j.src=a;this.setPlaybackRate(b)};
g.k.ML=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.Ot=function(){return this.j.loop};
g.k.setLoop=function(a){this.j.loop=a};
g.k.canPlayType=function(a,b){return this.j.canPlayType(a,b)};
g.k.isPaused=function(){return this.j.paused};
g.k.isSeeking=function(){return this.j.seeking};
g.k.isEnded=function(){return this.j.ended};
g.k.BJ=function(){return this.j.muted};
g.k.cC=function(a){sEa();this.j.muted=a};
g.k.Qw=function(){return this.j.played||pK([],[])};
g.k.Ch=function(){try{var a=this.j.buffered}catch(b){}return a||pK([],[])};
g.k.TE=function(){return this.j.seekable||pK([],[])};
g.k.dI=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.Rk=function(){return this.j.readyState};
g.k.CJ=function(){return this.j.networkState};
g.k.dh=function(){return this.j.error?this.j.error.code:null};
g.k.wf=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.Xh=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless};
g.k.Yu=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():rEa()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.Qt=function(){var a=this.j;return new g.Ee(a.offsetLeft,a.offsetTop)};
g.k.getSize=function(){return g.Us(this.j)};
g.k.setSize=function(a){g.Ts(this.j,a)};
g.k.getVolume=function(){return this.j.volume};
g.k.setVolume=function(a){sEa();this.j.volume=a};
g.k.TO=function(a){this.G[a]||(this.j.addEventListener(a,this.listener),this.G[a]=this.listener)};
g.k.setAttribute=function(a,b){this.j.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.j.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.j.hasAttribute(a)};
g.k.PD=ea(30);g.k.qH=ea(32);g.k.rH=ea(34);g.k.Fz=ea(36);g.k.qE=function(){return zB(this.j)};
g.k.Zs=function(a){g.Qv(this.j,a)};
g.k.VE=function(a){return g.Ls(this.j,a)};
g.k.uQ=function(){return g.Jf(document.body,this.j)};
g.k.audioTracks=function(){var a=this.j;if("audioTracks"in a)return a.audioTracks};
g.k.va=function(){for(var a=g.u(Object.keys(this.G)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.G[b]);JK.prototype.va.call(this)};
g.k.YS=function(a){this.j.disableRemotePlayback=a};aV.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a};
aV.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)};
aV.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.B=this.j=this.data.length-1};g.y(bV,g.I);bV.prototype.start=function(){this.B.start()};
bV.prototype.stop=function(){this.B.stop()};
bV.prototype.clear=function(){for(var a=g.u(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
bV.prototype.sample=function(){for(var a=g.u(this.C),b=a.next();!b.done;b=a.next()){var c=g.u(b.value);b=c.next().value;c=c.next().value;this.j.has(b)||this.j.set(b,new XZa(Jpb.has(b)));this.j.get(b).update(c())}this.B.start()};
var Jpb=new Set(["networkactivity"]);XZa.prototype.update=function(a){this.j?(this.buffer.add(a-this.OA||0),this.OA=a):this.buffer.add(a)};
XZa.prototype.clear=function(){this.buffer.clear();this.OA=0};g.y(fV,g.W);g.y(hV,g.W);hV.prototype.show=function(){g.W.prototype.show.call(this);this.Ta();this.Ua.L("html5_enable_moving_s4n_window")&&g.II(this.Ua.U())&&this.N()};
hV.prototype.hide=function(){g.W.prototype.hide.call(this);this.delay.stop();this.D.stop()};
hV.prototype.Ta=function(){var a=(0,g.wC)(),b=$Za(this.Ua);gV(this.j,b.bandwidth_samples);gV(this.K,b.network_activity_samples);gV(this.C,b.live_latency_samples);gV(this.B,b.buffer_health_samples);var c={};b=g.u(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;this.Y[d]!==e&&(c[d]=" "+String(e));this.Y[d]=e}this.update(c);a=25<(0,g.wC)()-a?5E3:500;this.delay.start(a)};
hV.prototype.N=function(){this.G?(this.position+=1,15<this.position&&(this.G=!1)):(--this.position,0>=this.position&&(this.G=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.D.start(2E4)};g.y(c_a,eU);g.y(iV,g.I);iV.prototype.j=function(){var a=(0,g.wC)()-this.startTime;a=a<this.duration?a/this.duration:1;this.B(ew(Kpb,a));1>a&&this.delay.start()};
var Kpb=new dw(0,0,.4,0,.2,1,1,1),i_a=/[0-9.-]+|[^0-9.-]+/g;g.y(jV,g.W);jV.prototype.onClick=function(){var a=this.api.app;var b=a.L("web_log_theater_mode_visibility")?!a.hk():!a.BQ;a.Ua.jb("SIZE_CLICKED",b);this.api.logClick(this.element)};
jV.prototype.Ta=function(){g.aF(this,this.api.AQ()&&!this.api.isFullscreen()&&3!==this.api.getPresentingPlayerType());if(this.Gb){var a=this.api.hk();this.hk!==a&&this.jC(a)}this.api.logVisibility(this.element,this.Gb)};
jV.prototype.jC=function(a){var b=a?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};null==this.hk?this.updateValue("icon",b):h_a(this.transition,this.element,
b);this.hk=a;b=g.MT(this.api,"Default view","t");var c=g.MT(this.api,"Theater mode","t");this.updateValue("title",a?b:c);this.update({"data-title-no-tooltip":a?"Default view":"Theater mode"});this.api.Th()};g.y(j_a,eU);g.y(k_a,eU);kV.prototype.send=function(a,b){var c;return g.G(function(d){if(1==d.j)return g.Ba(d,2),g.z(d,XA(a,b),4);if(2!=d.j)return d.return(d.B);c=g.Da(d);if(c instanceof WA)throw new nn(mn(NA(c.xhr)),c.message);throw c;})};
kV.prototype.sE=function(a,b){var c=this,d,e,f,h,l,m;return g.G(function(n){if(1==n.j){var p=new Uo;d=$k(p,1,c.dj);a&&$k(d,2,a);b&&$k(d,3,b);return g.z(n,c.send(c.B,Object.assign({},{postBody:d.Fk()},c.j)),2)}e=n.B;f=ilb(e.xhr.responseText);h=Xj(f,2);if(!h.isEmpty()){if(g.hB()&&10>Wqa())throw Error("Unsupported");l=Jg(eda(h));return n.return(cga(l))}m=g.Hk(f,Oo,1);if(!m)throw Error("Missing field");return n.return(m)})};
kV.prototype.OX=function(a){var b=this,c,d;return g.G(function(e){if(1==e.j){var f=new Vo;f=$k(f,1,b.dj);c=$k(f,2,a);return g.z(e,b.send(b.C,Object.assign({},{postBody:c.Fk()},b.j)),2)}d=e.B;return e.return(klb(d.xhr.responseText))})};var o3={},p_a=(o3[1]="pot_ss",o3[2]="pot_sf",o3[3]="pot_se",o3[4]="pot_xs",o3[5]="pot_xf",o3[6]="pot_xe",o3);g.y(lV,eU);lV.prototype.va=function(){this.C&&(g.SA(this.C),this.C=void 0);eU.prototype.va.call(this)};
lV.prototype.fP=function(a){var b=this;return g.G(function(c){return b.j?c.return(b.j.ready().then(function(){b.Ob.Li("pot_if");return q_a(b,a)})):c.return(Promise.reject("web po not ready"))})};
lV.prototype.aR=function(a){return q_a(this,a)};
lV.prototype.aU=function(){this.j&&!this.j.isReady()&&mV(this)};g.y(r_a,eU);g.y(nV,g.I);nV.prototype.j=function(){for(var a=g.u(g.Ia.apply(0,arguments)),b=a.next();!b.done;b=a.next())(b=b.value)&&this.features.push(b)};
nV.prototype.va=function(){for(var a=this.features.length-1;0<=a;a--)this.features[a].dispose();this.features.length=0;g.I.prototype.va.call(this)};oV.prototype.nR=function(){this.B=(0,g.wC)()};
oV.prototype.reset=function(){this.j=this.B=NaN};
oV.prototype.sR=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.01>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};a.G&&(c.cttAuthInfo={token:a.G,videoId:a.videoId});$G("seek",c);g.ZG({clientPlaybackNonce:a.clientPlaybackNonce},"seek");isNaN(this.B)||YG("pl_ss",this.B,"seek");YG(b,(0,g.wC)(),"seek")}this.reset()}};g.k=s_a.prototype;g.k.reset=function(){WG(this.timerName)};
g.k.tick=function(a,b){YG(a,b,this.timerName)};
g.k.Li=function(a){return mAa(a,this.timerName)};
g.k.ov=function(a){aL(a,void 0,this.timerName)};
g.k.infoGel=function(a){g.ZG(a,this.timerName)};g.y(w_a,g.UE);g.k=w_a.prototype;g.k.il=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.Rp=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.publish("shuffle")};
g.k.fh=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b||this.Da.qa||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.C.length)return OR(this.Da,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.PA(this.j,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.bl=function(){return this.Da.getVideoUrl(g.qV(this).videoId,this.getPlaylistId())};
g.k.va=function(){this.j=null;g.wb(this.items);g.UE.prototype.va.call(this)};var rV=new Map;g.y(g.tV,g.UE);g.k=g.tV.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.Sh=function(){};
g.k.Wm=function(){return!0};
g.k.va=function(){this.loaded&&this.unload();g.UE.prototype.va.call(this)};
g.k.pc=function(){return{}};
g.k.getOptions=function(){return[]};g.y(g.wV,g.I);g.k=g.wV.prototype;g.k.Bu=ea(39);g.k.UA=function(){};
g.k.Ns=function(){};
g.k.Sw=function(){return""};
g.k.nS=ea(40);g.k.va=function(){this.Ns();g.I.prototype.va.call(this)};g.y(g.xV,g.wV);g.xV.prototype.Bu=ea(38);g.xV.prototype.UA=function(a){if(this.audioTrack)for(var b=g.u(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.vV(this.B,c.value);a()};
g.xV.prototype.Sw=function(a,b){var c=a.Ke(),d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.hB()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.iS(a));this.W.L("web_player_topify_subtitles_for_shorts")&&this.C&&(d.xosf="1");Object.assign(d,this.W.j);return HA(c,d)};
g.xV.prototype.Ns=function(){this.j&&this.j.abort()};g.J_a.prototype.Nu=function(a){this.Da.Nu(a)};g.Lpb=new Map;g.y(g.BV,g.wV);g.BV.prototype.Bu=ea(37);
g.BV.prototype.UA=function(a){var b=this,c=this.C,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.bZ&&(d.asrs=1);c=HA(c,d);this.Ns();this.j=g.VA(c,{format:"RAW",onSuccess:function(e){b.j=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"),r=l.getAttribute("id"),t="true"===l.getAttribute("lang_default"),v="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.vV(b.B,new g.fS({languageCode:m,languageName:n,name:p,kind:q,id:r,is_servable:!0,is_translateable:v,vss_id:l,is_default:t}))}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.G[m.languageCode]=m.languageName,b.D.push(m)}a()},
withCredentials:!0})};
g.BV.prototype.Sw=function(a,b){var c=this.C;b={v:this.videoId,type:"track",lang:a.languageCode,name:a.getName(),kind:a.kind,fmt:b};this.W.L("captions_url_add_ei")&&(b.ei=this.eventId);a.translationLanguage&&(b.tlang=g.iS(a));Object.assign(b,this.W.j);return c=HA(c,b)};
g.BV.prototype.Ns=function(){this.j&&this.j.abort()};CV.prototype.preload=function(a){a=a?P_a(this.capabilities,a):this.capabilities;return a.Id?V_a(this,a).then(function(){}):Promise.resolve()};
CV.prototype.compile=function(a){var b=this;return O_a([{name:"compileStreaming",condition:function(){return!!b.B&&a.streaming},
func:function(){return WebAssembly.compileStreaming(fetch(b.path))},
onFailure:function(){return b.capabilities.streaming=!1}},
{name:"sync",condition:function(){return a.sync},
func:function(){return U_a(b).then(function(c){return new WebAssembly.Module(c)})},
onFailure:function(){return b.capabilities.sync=!1}},
{name:"async",condition:function(){return!0},
func:function(){return U_a(b).then(function(c){return WebAssembly.compile(c)})},
onFailure:function(){return b.capabilities.Id=!1}}],void 0,function(c,d,e){g.BE(Error("wasm module compile mode "+d.name+" failure",{cause:e}))})};
CV.prototype.instantiate=function(a,b){var c=this;return O_a([{name:"instantiateStreaming",condition:function(){return a.Id&&a.streaming&&!c.B&&!c.j},
func:function(){return WebAssembly.instantiateStreaming(fetch(c.path),b).then(function(d){c.j=Promise.resolve(d.module);return{instance:d.instance,Wp:!1}})},
onFailure:function(){return c.capabilities.streaming=!1}},
{name:"sync",condition:function(){return a.Id&&a.sync},
func:function(){return V_a(c,a).then(function(d){return{instance:new WebAssembly.Instance(d,b),Wp:!1}})},
onFailure:function(){return c.capabilities.sync=!1}},
{name:"async",condition:function(){return a.Id},
func:function(){return V_a(c,a).then(function(d){return WebAssembly.instantiate(d,b)}).then(function(d){return{instance:d,
Wp:!1}})},
onFailure:function(){return c.capabilities.Id=!1}},
{name:"asmjs",condition:function(){return a.yz},
func:function(){return c.C(b).then(function(d){return{instance:{exports:d},Wp:!0}})},
onFailure:function(){return c.capabilities.yz=!1}}],function(d){return c.D(b,d.instance.exports)},function(d,e,f){g.BE(Error("wasm module instantiation mode "+e.name+" failure",{cause:f}))})};W_a.prototype.emscripten_notify_memory_growth=function(){};
X_a.prototype.proc_exit=function(){};
X_a.prototype.fd_write=function(a,b,c){if(!this.exports)return 1;a=new Uint32Array(this.exports.memory.buffer,b,2*c);b=[];for(var d=0;d<c;++d){var e=new Uint8Array(this.exports.memory.buffer,a[2*d],a[2*d+1]);e=g.LN(e);b.push(e)}return b.reduce(function(f,h){return f+h.length},0)};var R_a;DV.prototype.NI=function(a){if(a.buffer!==this.exports.memory.buffer){var b=this.exports.malloc(a.byteLength);b=new Uint8Array(this.exports.memory.buffer,b,a.byteLength);b.set(a);return b}};
DV.prototype.dR=function(a){if(a.buffer===this.exports.memory.buffer){var b=a.slice();this.exports.free(a.byteOffset);return b}};
var Hgb="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);g.WJ||g.bR&&!g.fB("windows nt")||g.rC||g.NC||Wqa();EV.qQ(DV,{NI:function(a){return{profile:"copyj2w",nt:void 0===a?0:Math.ceil(a.byteLength/16)}},
dR:function(a){return{profile:"copyw2j",nt:void 0===a?0:Math.ceil(a.byteLength/16)}}});g.y($_a,g.I);g.k=$_a.prototype;g.k.createSubtitlesModuleIfNeeded=function(){d0a(this)&&GV(this,"captions");return!!g.FV(this)};
g.k.fH=function(){return this.J.getVideoData().fH()};
g.k.jT=function(){return this.J.getVideoData().jT()};
g.k.oX=function(){var a=this.Fe.get("heartbeat");GV(this,"heartbeat",!1,!0,this.oX);!a&&this.Fe.has("heartbeat")&&this.J.publish("offlineslatestatechange")};
g.k.OI=function(){GV(this,"annotations_module",!0,void 0,this.OI);var a=this.Fe.get("annotations_module");if(a)for(var b in this.C)if(this.C.hasOwnProperty(b)){var c=b;a.subscribe(c,this.C[c])}};
g.k.DO=function(){if(!this.Fe.get("ad"))try{a0a(this)?GV(this,"ad",!1,!0,this.DO):this.J.Eg("ad")}catch(a){this.J.Eg("ad"),g.AE(a)}};
g.k.Ei=function(){return this.B};
g.k.Gr=function(){var a={},b=g.FV(this);b&&Object.assign(a,b.Gr());return a};
g.k.VA=function(a,b){Object.assign(this.B,a||null);Object.assign(this.SI,b||null)};
g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.J.L("enable_wn_infocards")&&g.lT(a)&&!g.LV(this)&&this.OI()};
g.k.va=function(){g.I.prototype.va.call(this);HV(this,1,!0);for(var a=g.u(Object.entries(r0a)),b=a.next();!b.done;b=a.next()){var c=g.u(b.value);b=c.next().value;c=c.next().value;this.D.has(c)&&rV.delete(b)}this.D.clear()};
var p3={},r0a=(p3.ad="ad.js",p3.annotations_module="annotations_module.js",p3.asmjs="asmjs.js",p3.creatorendscreen="annotations_module.js",p3.embed="embed.js",p3.endscreen="endscreen.js",p3.heartbeat="heartbeat.js",p3.inline_preview="inline_preview.js",p3.kids="kids.js",p3.remote="remote.js",p3.miniplayer="miniplayer.js",p3.offline="offline.js",p3.captions="captions.js",p3.unplugged="unplugged.js",p3.ux="ux.js",p3.webgl="webgl.js",p3.ypc="ypc.js",p3.ypc_clickwrap="ypc_clickwrap.js",p3.yto="yto.js",
p3),m0a="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat inline_preview kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");g.y(t0a,g.UE);g.k=t0a.prototype;g.k.V5=function(a){a=new g.Ee(a.pageX,a.pageY);if(!Je(a,this.D)){var b=2;this.K&&(b|=8);this.D=a;MV(this,b,!0)}};
g.k.Q$=function(){this.K&&MV(this,8,!0);MV(this,2,!1)};
g.k.Cx=function(a){var b=new g.Ee(a.pageX,a.pageY);Je(b,this.D)||(this.D=b,(a=a.target)&&this.BI(a)&&(MV(this,4,!0),this.j.Pc(this.C),this.C=this.j.T(this.target,"mouseover",this.iB),this.N=this.j.T(this.target,"mouseout",this.iB)))};
g.k.iB=function(a){a=a.relatedTarget;a&&this.BI(a)||(this.D=new g.Ee(NaN,NaN),u0a(this))};
g.k.g$=function(){MV(this,1,!0)};
g.k.s8=function(a){a=a.target;a instanceof Element&&!(0<a.tabIndex)||MV(this,1,!0)};
g.k.HV=function(){this.K=!0;this.j.Pc(this.G);this.G=this.j.T(document,"mouseup",this.W5)};
g.k.W5=function(){this.K=!1;MV(this,8,!1);this.j.Pc(this.G);this.G=this.j.T(this.target,"mousedown",this.HV)};
g.k.IV=function(a){if(a=(a=a.changedTouches)&&a[0])this.Ca=a.identifier,this.j.Pc(this.Z),this.Z=this.j.T(this.target,"touchend",this.X5,void 0,!0),MV(this,1024,!0)};
g.k.X5=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.Ca){var d=c;break}}d&&(this.j.Pc(this.Z),this.Z=this.j.T(this.target,"touchstart",this.IV,void 0,!0),MV(this,1024,!1))};
g.k.tv=function(){MV(this,2,!0)};
g.k.resize=function(){g.WJ&&u0a(this)};
g.k.toString=function(){return g.UE.prototype.toString.call(this)};g.y(g.OV,g.W);g.k=g.OV.prototype;g.k.Sea=function(){this.Ta()};
g.k.Ta=function(){var a=this.api.getVideoData(),b=this.api.U(),c=!!this.api.bd();g.Uv(this.element,"ytp-shorts-mode",c);c?b=[{I:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},V:[{I:"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"}},{I:"path",X:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:g.vT(a)?b=[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},V:[{I:"path",S:"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"}},{I:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:a.If&&a.Kp?b=[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"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"}},{I:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:b.K?(g.Uv(this.element,"ytp-touch-device",b.B),b=[b.K?{I:"svg",X:{height:"100%",version:"1.1",
viewBox:"0 0 60 60",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",X:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{I:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"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"}},{I:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):b=[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"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"}},{I:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",b);a.If&&a.Kp&&(a=a.Kp?a.Kp:"#1f1f1f",this.Fa("ytp-dni-large-play-button-bg").setAttribute("fill",a))};
g.k.show=function(){g.W.prototype.show.call(this);this.api.U().L("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)};
g.k.j9=function(){this.api.getVideoData().mutedAutoplay||(this.api.YA(),this.api.playVideo())};
g.k.bda=function(a){this.api.getVideoData().mutedAutoplay||a.preventDefault()};g.y(g.PV,g.W);g.k=g.PV.prototype;g.k.show=function(){var a=this;this.Gb||(this.D.T(this.api,"videodatachange",function(){g.Jv(a.j)}),this.D.T(this.api,"videoplayerreset",function(){g.Jv(a.j)}));
g.W.prototype.show.call(this)};
g.k.hide=function(){this.D&&g.MB(this.D);g.W.prototype.hide.call(this)};
g.k.jc=function(){g.Jv(this.j)};
g.k.onStateChange=function(){g.Jv(this.j)};
g.k.Hca=function(){g.Jv(this.j)};
g.k.onReset=function(){this.B.stop();this.hide();g.Jv(this.j)};
g.k.Ta=function(){var a=this.api.getPlayerStateObject();if(3===this.api.getPresentingPlayerType()&&(a.isPlaying()||a.isPaused()))var b=!0;else(b=this.api.yb().Fe.get("ypc"))&&b.oL?b=!0:(b=this.api.U(),b=g.MF(a,2)&&g.OT(this.api)&&b.Ig?!0:!1);b?(b=!0,this.C.hide()):this.api.L("web_player_show_frame_zero_when_cued")&&v0a(this)?(b=!0,this.C.hide()):(this.C.show(),b=a.isCued()&&2!==this.api.getPresentingPlayerType()||g.MF(a,2)&&!g.OT(this.api)&&!this.api.BE()||g.MF(a,1024)?!0:!1);var c=this.api.getVideoData();
b&&!c.gW?(this.B.show(),this.Xea(this.api.getPlaylist(),c)):(this.B.hide(),g.MF(a,1)||this.B.stop())};
g.k.Xea=function(){var a=g.Ia.apply(0,arguments),b=this.api.U(),c,d=null==(c=this.api.getVideoData())?void 0:c.videoId;if(b.L("web_player_show_frame_zero_when_cued")&&d&&v0a(this))var e="https://i.ytimg.com/vi/"+d+"/frame0.jpg";else for(a=g.u(a),c=a.next();!c.done;c=a.next())if(c=c.value,!(!c||c instanceof g.ES&&!c.videoId)){e=this.api.ob().getPlayerSize();var f=g.QR();d=e.width*f;f*=e.height;if(1280<d||720<f)if(e=c.fh("maxresdefault.jpg"))break;if(640<d||480<f)if(e=c.fh("maxresdefault.jpg"))break;
if(320<d||180<f)if(e=c.fh("sddefault.jpg")||c.fh("hqdefault.jpg")||c.fh("mqdefault.jpg"))break;if(e=c.fh("default.jpg"))break}g.TR(b)&&(b=new Image,b.addEventListener("load",function(){pAa()}),b.src=e?e:"",this.api.Ei().tick("ftr"));
this.G.style.backgroundImage=e?"url("+e+")":""};g.y(g.QV,g.W);g.QV.prototype.resize=function(){};
g.QV.prototype.B=function(a){var b=this;this.C=!1;y0a(this);var c=a.VO,d=this.api.U();"GENERIC_WITHOUT_LINK"!==c||d.K?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.Kd(TV(this,"TOO_MANY_REQUESTS_WITH_LINK",d.bl(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.K?this.api.U().L("html5_enable_bandaid_error_screen")&&"HTML5_SPS_UMP_STATUS_REJECTED"===c&&!d.K?(d=d.hostLanguage,a="//support.google.com/youtube/answer/3037019",d&&(a=g.to(a,{hl:d})),this.Kd(TV(this,"HTML5_SPS_UMP_STATUS_REJECTED",
a))):this.api.U().L("enable_adb_handling_in_sabr")&&"BROWSER_OR_EXTENSION_ERROR"===c&&!d.K?(d=d.hostLanguage,a="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",d&&(a=g.to(a,{hl:d})),this.Kd(TV(this,"BROWSER_OR_EXTENSION_ERROR",a))):this.Kd(g.RV(a.errorMessage)):this.Kd(TV(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//support.google.com/youtube/?p=player_error1",a&&(c=g.to(c,
{hl:a})),this.Kd(TV(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.vc&&!d.D&&x0a(this,function(f){if(g.lU(f,b.api,!PR(b.api.U()))){f={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var h=b.api;h.Cc("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:f});h.isFullscreen()&&h.toggleFullscreen()}}));
if(this.C){var e=this.Fa("ytp-error-link");e&&(this.api.createClientVe(e,this,216104),this.api.logVisibility(e,!0),x0a(this,function(){b.api.logClick(e)}))}};
var w0a=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.y(z0a,g.W);g.k=z0a.prototype;g.k.onClick=function(a){this.innertubeCommand?(this.J.jb("innertubeCommand",this.innertubeCommand),a.preventDefault()):g.lU(a,this.J,!0);this.J.logClick(this.element)};
g.k.onVideoDataChange=function(a,b){B0a(this,b);this.De&&C0a(this,this.De)};
g.k.Y5=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&B0a(this,b);this.j&&C0a(this,a.state);this.De=a.state};
g.k.rd=function(){this.D.show();this.J.publish("paidcontentoverlayvisibilitychange",!0);this.J.logVisibility(this.element,!0)};
g.k.Mb=function(){this.D.hide();this.J.publish("paidcontentoverlayvisibilitychange",!1);this.J.logVisibility(this.element,!1)};g.y(UV,g.W);UV.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.W.prototype.hide.call(this)};
UV.prototype.onStateChange=function(a){this.Hc(a.state)};
UV.prototype.Hc=function(a){if(g.MF(a,128))var b=!1;else{var c;b=(null==(c=this.api.Zc())?0:c.ju)?!1:g.MF(a,16)||g.MF(a,1)?!0:!1}b?this.j.start():this.hide()};
UV.prototype.B=function(){this.message.style.display="block"};g.y(VV,g.ZT);VV.prototype.onMutedAutoplayChange=function(a){this.C&&(a?(D0a(this),this.rd()):(this.j&&this.logClick(),this.Mb()))};
VV.prototype.vk=function(a){this.api.isMutedByMutedAutoplay()&&g.OF(a,2)&&this.Mb()};
VV.prototype.onClick=function(){this.api.unMute();this.logClick()};
VV.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.y(g.WV,g.YJ);g.k=g.WV.prototype;g.k.init=function(){var a=this.api,b=a.getPlayerStateObject();this.fK=a.getPlayerSize();this.Gc(b);this.Nq();this.jc();this.api.publish("basechromeinitialized",this);this.IP()&&this.api.publish("standardControlsInitialized")};
g.k.onVideoDataChange=function(a,b){var c=this.AF!==b.videoId;if(c||"newdata"===a){a=this.api;a.isFullscreen()||(this.fK=a.getPlayerSize());var d;(null==(d=this.api.getVideoData(1))?0:g.sT(d))&&this.Mq()}c&&(this.AF=b.videoId,c=this.Jg,c.Ha=3E3,MV(c,512,!0),this.Nq());this.api.L("web_render_jump_buttons")&&b.showSeekingControls&&(this.P1=572)};
g.k.uba=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.k.kC=function(){var a=this.api.Uk()&&this.api.zp(),b=this.api.GA();return this.BO||a||this.cQ||b};
g.k.Mq=function(){var a=!this.kC();g.Uv(this.api.getRootNode(),"ytp-menu-shown",!a);var b;(null==(b=this.api.getVideoData(1))?0:g.sT(b))&&g.Uv(this.api.getRootNode(),"ytp-hide-controls",!a)};
g.k.BI=function(a){try{if(!g.Jf(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!$ba(a);)a=a===this.api.getRootNode()?null:g.If(a);return!!a};
g.k.pB=function(a){var b=this.api.getRootNode();g.Uv(b,"ytp-autohide",a);g.Uv(b,"ytp-autohide-active",!0);this.KW.start(a?250:100);a&&(this.qM=!1,g.Sv(b,"ytp-touch-mode"));this.CO=!a;this.api.YL(!a)};
g.k.mR=function(){var a=this.api.getRootNode();g.Uv(a,"ytp-autohide-active",!1)};
g.k.Yba=function(){this.NT=!0};
g.k.Xba=function(a){if(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)this.NT=!1,this.OT&&this.Pc(this.OT),0===this.RF&&XV(this,a)?(this.dQ(),this.aJ.start(),this.OT=this.T(this.api.ob(),"touchmove",this.Yba,void 0,!0)):this.aJ.stop();H0a(this)&&XV(this,a)&&!this.api.U().Z&&F0a(this);var b=this.ST.gk();if(!g.BR(this.api.U())&&yR&&I0a(this,a))b&&a.preventDefault();else if(this.qM=!0,g.Qv(this.api.getRootNode(),"ytp-touch-mode"),this.Jg.tv(),this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)if(b=
this.api.getPlayerStateObject(),!(!this.api.Yh()||g.MF(b,2)&&g.OT(this.api)||g.MF(b,64))){b=Date.now()-this.BZ;this.RF+=1;if(350>=b){this.kE=!0;b=this.api.getPlayerSize().width/3;var c=this.api.getRootNode().getBoundingClientRect(),d=a.targetTouches[0].clientX-c.left;c=a.targetTouches[0].clientY-c.top;var e=10*(this.RF-1);0<d&&d<b?(this.IG(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.IG(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));a.preventDefault()}else NV&&
this.api.U().Z&&XV(this,a)&&a.preventDefault();this.BZ=Date.now();this.Z0.start()}};
g.k.Wba=function(){this.LK.zA=!1;this.api.publish("rootnodemousedown",this.LK)};
g.k.Sba=function(a){if(this.api.U().L("web_fix_fine_scrubbing_false_play")){if(I0a(this,a)||this.LK.zA)return}else if(this.LK.zA||I0a(this,a))return;H0a(this)||!XV(this,a)||this.aJ.isActive()||(F0a(this),a.preventDefault());this.kE&&(this.kE=!1)};
g.k.dQ=function(){};
g.k.gH=function(){};
g.k.IG=function(){};
g.k.HG=function(){};
g.k.Ls=function(){var a=this.api.getPlayerStateObject();g.MF(a,2)&&g.OT(this.api)||(a.isOrWillBePlaying()?this.api.pauseVideo():(this.En&&(a=this.En.C,document.activeElement===a.element&&this.api.publish("largeplaybuttonclicked",a.element)),this.api.YA(),this.api.playVideo(),this.En&&document.activeElement===this.En.C.element&&(null==(a=this.IP())?a=0:a.playButton?(a.playButton.focus(),a=!0):a=!1,a||this.api.getRootNode().focus())))};
g.k.Tba=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!G0a(this,EB(a)))if(a=this.api.U(),(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)&&this.kE)this.kE=!1;else if(a.Hb&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.aF(d)})}catch(d){this.aF(d)}};
g.k.aF=function(a){String(a).includes("fullscreen error")?g.BE(a):g.AE(a)};
g.k.Uba=function(a){J0a(this,.3,a.scale);a.preventDefault()};
g.k.Vba=function(a){J0a(this,.1,a.scale)};
g.k.jc=function(){var a=this.api.ob().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Jg.resize();g.Uv(b,"ytp-fullscreen",this.api.isFullscreen());g.Uv(b,"ytp-large-width-mode",c);g.Uv(b,"ytp-small-mode",this.Pg());g.Uv(b,"ytp-tiny-mode",this.mK());g.Uv(b,"ytp-big-mode",this.Fh());this.yg&&this.yg.resize(a)};
g.k.vk=function(a){this.Gc(a.state);this.Nq()};
g.k.eC=ea(6);g.k.tP=function(){var a=!!this.AF&&!this.api.Gf()&&!this.bS,b=2===this.api.getPresentingPlayerType(),c=this.api.U();if(b){if(rkb&&c.L("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=IV(this.api.yb());a&&(a=(a=b.player.getVideoData(2))?a.isListed&&!g.GI(b.player.U()):!1);return a}return a&&(c.hn||this.api.isFullscreen()||c.Dk)};
g.k.Nq=function(){var a=this.tP();this.Zn!==a&&(this.Zn=a,g.Uv(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.Gc=function(a){var b=a.isCued()||this.api.Un()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.PT&&this.Pc(this.PT),this.PT=this.T(this.api.ob(),"touchstart",this.Xba,void 0,b));var c=this.Jg,d=a.isPlaying()&&!g.MF(a,32)||this.api.mF();MV(c,128,!d);c=this.Jg;d=3===this.api.getPresentingPlayerType();MV(c,256,d);c=this.api.getRootNode();g.MF(a,2)?d=[$2.ENDED]:(d=[],g.MF(a,8)?d.push($2.PLAYING):g.MF(a,4)&&d.push($2.PAUSED),g.MF(a,1)&&!g.MF(a,32)&&d.push($2.BUFFERING),
g.MF(a,32)&&d.push($2.SEEKING),g.MF(a,64)&&d.push($2.UNSTARTED));g.Xb(this.GN,d)||(g.Tv(c,this.GN),this.GN=d,g.Rv(c,d));d=this.api.U();var e=g.MF(a,2);a:{var f=this.api.U();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f="3"===h&&!g.MF(a,2)||this.isCued||(2!==this.api.getPresentingPlayerType()?0:$jb(IV(this.api.yb())))||this.api.GA()||g.BR(f)&&2===this.api.getPresentingPlayerType()?!1:!0}g.Uv(c,"ytp-hide-controls",!f);g.Uv(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.cQ);
g.MF(a,128)&&!g.BR(d)?(this.yg||(this.yg=new g.QV(this.api),g.N(this,this.yg),g.UT(this.api,this.yg.element,4)),this.yg.B(a.Ng),this.yg.show()):this.yg&&(this.yg.dispose(),this.yg=null)};
g.k.vr=function(){return this.api.Uk()&&this.api.zp()?(this.api.bC(!1,!1),!0):this.api.Gf()?(g.PT(this.api,!0),!0):!1};
g.k.onMutedAutoplayChange=function(a){this.cQ=a;this.Mq()};
g.k.Fh=function(){return!1};
g.k.Pg=function(){return!this.Fh()&&(this.api.getPlayerSize().width<this.P1||290>this.api.getPlayerSize().height)};
g.k.mK=function(){return this.Pg()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.k.Im=function(){return this.qM};
g.k.Pn=function(){return null};
g.k.ZX=function(){return null};
g.k.Rn=function(){var a=this.api.ob().getPlayerSize();return new g.Fs(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.Yx=function(){};
g.k.showControls=function(a){void 0!==a&&this.api.ob().YL(a)};
g.k.tv=function(){};
g.k.IP=function(){return null};g.y(YV,g.UE);g.k=YV.prototype;g.k.tm=function(){return 1E3*this.api.getDuration(this.Vo,!1)};
g.k.stop=function(){this.j&&this.Ed.Pc(this.j)};
g.k.Sc=function(){var a=this.api.getProgressState(this.Vo);this.B={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.getCurrentTime(this.Vo,!1)};this.publish("h")};
g.k.getProgressState=function(){return this.B};
g.k.Z5=function(a){g.OF(a,2)&&this.publish("g")};g.y(g.ZV,g.W);g.ZV.prototype.show=function(){g.W.prototype.show.call(this);g.Jv(this.j)};
g.ZV.prototype.hide=function(){this.B.stop();g.W.prototype.hide.call(this)};
g.ZV.prototype.gH=function(a){a?g.MF(this.J.getPlayerStateObject(),64)||$V(this,mya(),"Play"):(a=this.J.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?$V(this,qya(),"Stop live playback"):$V(this,jya(),"Pause"))};g.y(M0a,g.W);g.k=M0a.prototype;g.k.cH=function(a){a?this.j=LT(this.J,this.element,null):(this.j=this.j,this.j(),this.j=null)};
g.k.rd=function(){this.J.U().L("player_new_info_card_format")&&g.Pv(this.J.getRootNode(),"ytp-cards-teaser-shown")&&!g.BR(this.J.U())||(this.B.show(),g.GD("iv-button-shown"))};
g.k.Mb=function(){g.GD("iv-button-hidden");this.B.hide()};
g.k.gk=function(){return this.Gb&&4!==this.B.state};
g.k.va=function(){this.j&&this.j();g.W.prototype.va.call(this)};
g.k.Qaa=function(){g.GD("iv-button-mouseover")};
g.k.onClicked=function(a){this.J.Uk();var b=g.Pv(this.J.getRootNode(),"ytp-cards-teaser-shown");g.GD("iv-teaser-clicked",b);var c;if(null==(c=this.J.getVideoData())?0:g.kT(c)){var d;a=null==(d=this.J.getVideoData())?void 0:g.lT(d);(null==a?0:a.onIconTapCommand)&&this.J.jb("innertubeCommand",a.onIconTapCommand)}else d=0===a.screenX&&0===a.screenY,this.J.bC(!this.J.zp(),d,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.y(N0a,g.W);g.k=N0a.prototype;g.k.P2=function(){this.J.Uk()&&this.J.zp()&&this.gk()&&this.Mb()};
g.k.DT=function(){this.Mb();!this.J.Uk()&&this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Xg.Mb();g.GD("iv-teaser-clicked",null!=this.j);if(this.onClickCommand)this.J.jb("innertubeCommand",this.onClickCommand);else{var a;(null==(a=this.J.getVideoData())?0:g.kT(a))||this.J.bC(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
g.k.b6=function(){g.GD("iv-teaser-mouseover");this.j&&this.j.stop()};
g.k.rca=function(a){this.J.U().L("player_new_info_card_format")&&!g.BR(this.J.U())?this.Xg.Mb():this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Xg.rd();this.j||!a||this.J.zp()||this.B&&this.B.isActive()||(this.rd(a),g.GD("iv-teaser-shown"))};
g.k.rd=function(a){this.onClickCommand=a.onClickCommand;this.updateValue("text",a.teaserText);this.element.setAttribute("dir",g.Zv(a.teaserText));this.D.show();this.B=new g.Iv(function(){g.Qv(this.J.getRootNode(),"ytp-cards-teaser-shown");this.J.L("player_new_info_card_format")&&!g.BR(this.J.U())&&this.Xg.Mb();this.rN()},0,this);
this.B.start();this.Xg.cH(!1);this.j=new g.Iv(this.Mb,580+a.durationMs,this);this.j.start();this.G.push(this.listen("mouseover",this.KV,this));this.G.push(this.listen("mouseout",this.JV,this))};
g.k.rN=function(){if(!this.J.U().L("player_new_info_card_format")&&g.BR(this.J.U())&&this.Gb){var a=this.Xg.element.offsetLeft,b=g.tf("ytp-cards-button-icon"),c=this.J.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Xg.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.w7=function(){g.BR(this.J.U())&&this.J.Pg()&&this.Gb&&this.Y.start()};
g.k.KV=function(){this.K.stop();this.j&&this.j.isActive()&&this.N.start()};
g.k.JV=function(){this.N.stop();this.j&&!this.j.isActive()&&this.K.start()};
g.k.eba=function(){this.j&&this.j.stop()};
g.k.dba=function(){this.Mb()};
g.k.a6=function(){this.Mb()};
g.k.Mb=function(){!this.j||this.C&&this.C.isActive()||(g.GD("iv-teaser-hidden"),this.D.hide(),g.Sv(this.J.getRootNode(),"ytp-cards-teaser-shown"),this.C=new g.Iv(function(){for(var a=g.u(this.G),b=a.next();!b.done;b=a.next())this.Pc(b.value);this.G=[];this.j&&(this.j.dispose(),this.j=null);this.Xg.cH(!0);!this.J.Uk()&&this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Xg.Mb()},330,this),this.C.start())};
g.k.gk=function(){return this.Gb&&4!==this.D.state};
g.k.va=function(){var a=this.J.getRootNode();a&&g.Sv(a,"ytp-cards-teaser-shown");g.wb(this.B,this.C,this.j);g.W.prototype.va.call(this)};var q3={},bW=(q3.BUTTON="ytp-button",q3.TITLE_NOTIFICATIONS="ytp-title-notifications",q3.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",q3.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",q3.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",q3);g.y(O0a,g.W);O0a.prototype.onClick=function(){this.api.logClick(this.element);var a=!this.j;this.updateValue("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.updateValue("pressed",a);P0a(this,a)};g.Ua("yt.pubsub.publish",g.GD);g.y(g.cW,g.W);g.cW.prototype.D=function(){window.location.reload()};
g.cW.prototype.j=function(){g.Qv(this.element,"ytp-sb-subscribed")};
g.cW.prototype.B=function(){g.Sv(this.element,"ytp-sb-subscribed")};g.y(U0a,g.W);g.k=U0a.prototype;g.k.vaa=function(a){this.api.logClick(this.B);var b=this.api.U();b.B||b.Wa?Y0a(this)&&(this.isExpanded()?this.uO():this.XO()):g.Qe(T0a(this));a.preventDefault()};
g.k.GS=function(){X0a(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.XO=function(){if(Y0a(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.C&&this.C.stop();this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.j&&a.Ql&&a.subscribed&&(this.j.show(),
this.api.logVisibility(this.j.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.uO=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.C&&this.C.start()};
g.k.Ta=function(){var a=this.api.U();g.aF(this,!this.api.bd());var b=this.api.getVideoData(),c=this.api.U(),d=this.api.getVideoData();this.D=!1;var e=!!d.videoId&&!!d.Dc&&!!d.profilePicture;2===this.api.getPresentingPlayerType()?this.D=e&&!!d.isListed&&!!d.author:g.BR(c)&&(this.D=e&&!g.vT(d)&&!c.C&&!(c.Z&&200>this.api.getPlayerSize().width));c=b.profilePicture;a=g.BR(a)?b.expandedTitle:b.author;c=void 0===c?"":c;a=void 0===a?"":a;this.D?(this.K!==c&&(this.B.style.backgroundImage="url("+c+")",this.K=
c),this.updateValue("channelLogoLabel",g.jJ("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.Qv(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Sv(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.B,this.D&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=b.Il);this.updateValue("expandedTitle",b.expandedTitle);this.updateValue("expandedSubtitle",b.expandedSubtitle)};
g.k.Lc=function(a){g.W.prototype.Lc.call(this,a);this.api.logVisibility(this.B,this.D&&a)};g.y(dW,g.aU);dW.prototype.j=function(a){a.defaultPrevented||39!==a.keyCode||(this.element.click(),a.preventDefault())};g.y(Z0a,g.W);g.k=Z0a.prototype;g.k.show=function(){g.W.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")};
g.k.hide=function(){g.W.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")};
g.k.c6=function(a){var b=EB(a),c=g.Jf(this.closeButton.element,b),d=g.Jf(this.element,b);a=this.j&&g.Jf(this.j,b)&&g.XF(a);b&&(d||a)&&!c||this.hide()};
g.k.d6=function(){R0a(g.NR(this.Ua.U()),"user_info_panel",function(){window.location.reload()})};
g.k.Ta=function(){var a=this.Ua.U(),b={USER_NAME:a.userDisplayName,USER_EMAIL:a.Pi};this.updateValue("icon",kya());this.updateValue("watchingAsUsername",g.jJ("Watching as $USER_NAME",b));a.Pi?this.updateValue("watchingAsEmail",g.jJ("($USER_EMAIL)",b)):this.updateValue("watchingAsEmail","")};g.y(a1a,g.HU);g.k=a1a.prototype;g.k.z7=function(){this.Cb.Mb()};
g.k.Aaa=function(){NYa(this.Oz.element)};
g.k.Maa=function(){fW(this,this.J.getDebugText(!0))&&$V(this.ke,Wxa())};
g.k.Naa=function(){fW(this,this.J.getVideoEmbedCode())&&$V(this.ke,$xa());this.J.logClick(this.Ln.element);fza("EMBED",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.Oaa=function(){fW(this,this.J.getVideoUrl(!0,!0))&&$V(this.ke,jF());this.J.logClick(this.getVideoUrl.element);fza("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.Paa=function(){fW(this,this.J.getVideoUrl(!1,!0))&&$V(this.ke,jF());this.J.logClick(this.Sn.element);fza("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.onLoopChange=function(a){var b;null==(b=this.rl)||kU(b,a)};
g.k.Xaa=function(){this.J.setLoopVideo(this.rl.getValue());this.Cb.Mb();this.J.logClick(this.rl.element)};
g.k.Oba=function(a){this.J.reportPlaybackIssue();if(g.lU(a,this.J,!PR(this.J.U()))){a=this.J;var b=a.app.getFeedbackProductData();a.Cc("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Cb.Mb()};
g.k.ica=function(){g.CT(this.J,"isVideoInfoVisible",[])?g.CT(this.J,"hideVideoInfo",[]):g.CT(this.J,"showVideoInfo",[]);this.Cb.Mb()};
g.k.hca=function(){this.Cl&&(this.EH||(this.EH=new Z0a(this.J,this.Cl.element),g.N(this,this.EH),g.UT(this.J,this.EH.element,4)),this.EH.show(),this.Cb.Mb(),this.J.logClick(this.Cl.element))};
g.k.onVideoDataChange=function(a,b){this.dH(b)};
g.k.dH=function(a){var b=this.J.U(),c=2===this.J.getPresentingPlayerType(),d=!c||a.isListed;d=!b.qa&&!!a.videoId&&d;"play"!==b.playerStyle?b="https://support.google.com/youtube/?p=report_playback":(b={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.B&&(b.fmt=a.B.itag),a.clientPlaybackNonce&&(b.cpn=a.clientPlaybackNonce),a.La&&(b.partnerid=a.La),b=g.to("//support.google.com/googleplay/",b));g.aF(this.Ln,d&&a.allowEmbed);g.aF(this.getVideoUrl,d);g.aF(this.Sn,d&&
!a.isLivePlayback);this.JG.Kd(b,"href");var e;null==(e=this.rl)||g.aF(e,!a.isLivePlayback&&!c);var f;null==(f=this.Cl)||g.aF(f,!c)};
g.k.Lc=function(a){g.HU.prototype.Lc.call(this,a);this.J.logVisibility(this.Ln.element,a);this.J.logVisibility(this.getVideoUrl.element,a);this.J.logVisibility(this.Sn.element,a);this.rl&&this.J.logVisibility(this.rl.element,a);this.Cl&&this.J.logVisibility(this.Cl.element,a)};g.y(d1a,g.JU);g.k=d1a.prototype;g.k.f6=function(a){var b=EB(a);if(!(b&&(Mf(b,"a")||Mf(b,null,"ytp-no-contextmenu"))||this.Gb)){var c;this.Ca=(a=null==(c=a.touches)?void 0:c.item(0))?new g.Ee(a.clientX,a.clientY):new g.Ee(0,0);this.ra.start()}};
g.k.e0=function(){this.ra.stop()};
g.k.wca=function(){this.open(this.Ca)};
g.k.UX=function(){if(this.C&&b1a(this.C)){var a=b1a(this.C).element;a.tabIndex=-1;a.focus()}else this.element.tabIndex=-1,this.element.focus()};
g.k.show=function(){this.C||(this.C=new a1a(this.J,this,this.ke),g.N(this,this.C),g.KU(this,this.C));this.C.onLoopChange(this.J.getLoopVideo());g.JU.prototype.show.call(this);this.J.logVisibility(this.element,!0);this.C.Lc(!0)};
g.k.hide=function(){c1a(this);g.JU.prototype.hide.call(this);this.J.logVisibility(this.element,!1);this.C&&this.C.Lc(!1)};
g.k.yaa=function(a){var b=EB(a);this.Gb||b&&(Mf(b,"a")||Mf(b,null,"ytp-no-contextmenu"))||(a.preventDefault(),this.open(new g.Ee(a.pageX,a.pageY)))};
g.k.rd=function(a){if(a){var b=a.getBoundingClientRect();this.open(new g.Ee(b.x,b.y))}g.JU.prototype.rd.call(this,a)};
g.k.open=function(a){e1a(this);var b=this.J.getVideoData();g.Uv(this.element,"ytp-dni",b.If);this.element.style.left="";this.element.style.top="";a.x++;a.y++;g.JU.prototype.rd.call(this);var c=document.body;b=new As(0,Infinity,Infinity,0);var d=lf(c);for(var e=d.j.body,f=d.j.documentElement,h=Wba(d.j);c=lia(c);)if((!g.Pc||0!=c.clientHeight||c!=e)&&c!=e&&c!=f&&"visible"!=Ns(c,"overflow")){var l=g.Rs(c),m=new g.Ee(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=Vba(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.Fs(0,0,0,0);d.left=
a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Ps(this.element,new g.Ee(d.left,d.top));g.MB(this.D);this.D.T(document,"contextmenu",this.Gaa);this.D.T(this.J,"fullscreentoggled",this.onFullscreenToggled);this.D.T(this.J,"pageTransition",this.e6)};
g.k.Gaa=function(a){if(!a.defaultPrevented){var b=EB(a);g.Jf(this.element,b)||this.Mb();this.J.U().disableNativeContextMenu&&a.preventDefault()}};
g.k.onFullscreenToggled=function(){this.Mb();e1a(this)};
g.k.e6=function(){this.Mb()};g.y(gW,g.W);gW.prototype.onClick=function(){var a=this,b,c,d,e;return g.G(function(f){if(1==f.j)return b=a.api.U(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.z(f,h1a(a,e),2);f.B&&g1a(a);a.api.logClick(a.element);g.Aa(f)})};
gW.prototype.Ta=function(){this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3  c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.visible=f1a(this);g.Uv(this.element,"ytp-copylink-button-visible",this.visible);
g.aF(this,this.visible);this.tooltip.Th();this.api.logVisibility(this.element,this.visible&&this.Z)};
gW.prototype.Lc=function(a){g.W.prototype.Lc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
gW.prototype.va=function(){g.W.prototype.va.call(this);g.Sv(this.element,"ytp-copylink-button-visible")};g.y(hW,g.W);hW.prototype.show=function(){g.W.prototype.show.call(this);g.Jv(this.B)};
hW.prototype.hide=function(){this.D.stop();this.C=0;g.Sv(this.element,"ytp-chapter-seek");g.Sv(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)};
hW.prototype.IG=function(a,b,c,d){this.C=a===this.K?this.C+d:d;this.K=a;var e=-1===a?this.Y:this.N;e&&this.J.logClick(e);this.G?this.B.stop():g.Lv(this.B);this.D.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.J.ob().getPlayerSize().height;e=this.J.ob().getPlayerSize();e=e.width/3-3*e.height;this.j.style.width=f+"px";this.j.style.height=f+"px";1===a?(this.j.style.left="",this.j.style.right=e+"px"):-1===a&&(this.j.style.right="",this.j.style.left=e+"px");var h=2.5*
f;f=h/2;var l=this.Fa("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=h+"px";1===a?(a=this.J.ob().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):-1===a&&(a=Math.abs(e)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.Fa("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");i1a(this,this.G?this.C:d)};g.y(k1a,FU);g.k=k1a.prototype;g.k.g6=function(a){this.Ma||(this.Ma=new MU(this.J),g.N(this,this.Ma));var b,c;if(null==(b=this.Ab)?0:null==(c=b.menu)?0:c.menuRenderer)this.Ma.open(this.Ab.menu.menuRenderer,a.target),a.preventDefault()};
g.k.Raa=function(){this.J.jb("innertubeCommand",this.Jd);this.J.logClick(this.infoButton.element)};
g.k.By=function(){return!!this.j};
g.k.eM=function(){return!!this.j};
g.k.UF=function(a){a.target===this.dismissButton.element||a.target===this.overflowButton.element||a.target===this.infoButton.element?a.preventDefault():(this.Dc&&this.J.jb("innertubeCommand",this.Dc),this.zx(!1))};
g.k.Ku=function(){this.zx(!0);var a,b;(null==(a=this.j)?0:null==(b=a.bannerData)?0:b.dismissedStatusKey)&&this.Nb.push(this.j.bannerData.dismissedStatusKey);this.SB()};
g.k.EV=function(){this.SB();lW(this)};
g.k.Uda=function(a){var b=this,c;if(a.id!==(null==(c=this.j)?void 0:c.identifier)){this.SB();c=g.u(this.Ha);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=void 0,h=void 0;if((d=null==(f=e)?void 0:null==(h=f.bannerData)?void 0:h.itemData)&&e.identifier===a.id){h=f=void 0;var l=(null==(f=e)?void 0:null==(h=f.bannerData)?void 0:h.dismissedStatusKey)||"";if(this.Nb.includes(l))break;this.j=e;this.banner.element.setAttribute("aria-label",d.accessibilityLabel||"");d.trackingParams&&(this.D=!0,this.J.setTrackingParams(this.badge.element,
d.trackingParams));this.qa.show();EU(this);g.aF(this.Ga,!d.stayInApp);w1a(this);m1a(this);kW(this);this.Dc=g.V(d.onTapCommand,EE);if(e=g.V(d.menuOnTap,EE))this.Ab=g.V(e,Vnb);e=void 0;this.banner.update({thumbnail:null==(e=(d.thumbnailSources||[])[0])?void 0:e.url,title:d.productTitle,price:d.priceReplacementText?d.priceReplacementText:d.price,salesOriginalPrice:p1a(this),priceDropReferencePrice:q1a(this),promotionText:o1a(this),priceA11yText:r1a(this),affiliateDisclaimer:d.affiliateDisclaimer,vendor:s1a(this)});
l=h=f=e=void 0;(null==(e=d)?0:null==(f=e.hiddenProductOptions)?0:f.showDropCountdown)&&(null==(h=d)?0:null==(l=h.hiddenProductOptions)?0:l.dropTimestampMs)&&(this.Kb=new g.Iv(function(){v1a(b)},1E3),this.Ga.hide(),this.countdownTimer.show(),v1a(this));
this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")&&l1a(this)&&(this.Sb=new g.Iv(function(){n1a(b)},1E3),n1a(this))}}}};
g.k.SB=function(){this.j&&(this.j=void 0,this.Hl())};
g.k.onVideoDataChange=function(a,b){var c=this;"dataloaded"===a&&lW(this);a=this.J.L("web_player_enable_vod_featured_product_banner_on_desktop");var d,e,f=null==b?void 0:null==(d=b.getPlayerResponse())?void 0:null==(e=d.videoDetails)?void 0:e.isLiveContent;if(a||f){var h,l,m;b=g.V(null==(h=b.getWatchNextResponse())?void 0:null==(l=h.playerOverlays)?void 0:null==(m=l.playerOverlayRenderer)?void 0:m.productsInVideoOverlayRenderer,Tnb);this.J.L("web_player_enable_info_button_in_banner_on_desktop")&&
a&&!f?this.infoButton.show():this.infoButton.hide();this.J.L("web_player_enable_overflow_button_in_banner_on_desktop")&&(this.overflowButton.show(),this.dismissButton.hide(),this.infoButton.hide());var n=null==b?void 0:b.featuredProductsEntityKey;this.trendingOfferEntityKey=null==b?void 0:b.trendingOfferEntityKey;var p;if(h=null==b?void 0:null==(p=b.dismissButton)?void 0:p.trackingParams)this.J.setTrackingParams(this.dismissButton.element,h),this.G=!0;var q;(p=null==b?void 0:null==(q=b.dismissButton)?
void 0:q.a11yLabel)&&this.dismissButton.element.setAttribute("aria-label",g.eF(p));this.Jd=null==b?void 0:b.onClickCommand;this.Ha.length||(u1a(this,n),kW(this));var r;null==(r=this.Qc)||r.call(this);this.Qc=g.SS.subscribe(function(){u1a(c,n);kW(c)})}else{var t;
null==(t=this.Qc)||t.call(this);this.SB()}};
g.k.va=function(){lW(this);w1a(this);m1a(this);FU.prototype.va.call(this)};g.y(B1a,g.W);B1a.prototype.onClick=function(){this.J.logClick(this.element,this.B)};g.y(C1a,g.ZT);g.k=C1a.prototype;g.k.show=function(){g.ZT.prototype.show.call(this);this.J.publish("infopaneldetailvisibilitychange",!0);this.J.logVisibility(this.element,!0);D1a(this,!0)};
g.k.hide=function(){g.ZT.prototype.hide.call(this);this.J.publish("infopaneldetailvisibilitychange",!1);this.J.logVisibility(this.element,!1);D1a(this,!1)};
g.k.getId=function(){return this.D};
g.k.Np=function(){return this.itemData.length};
g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:(null==(c=b.Jl)?void 0:null==(d=c.title)?void 0:d.content)||"",body:(null==(e=b.Jl)?void 0:null==(f=e.bodyText)?void 0:f.content)||""});var h;a=(null==(h=b.Jl)?void 0:h.trackingParams)||null;this.J.setTrackingParams(this.element,a);h=g.u(this.itemData);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.itemData=[];var l;if(null==(l=b.Jl)?0:l.ctaButtons)for(b=g.u(b.Jl.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.V(l.value,
Hmb))l=new B1a(this.J,l,this.j),l.ue&&(this.itemData.push(l),l.Ja(this.items))}};
g.k.va=function(){this.hide();g.ZT.prototype.va.call(this)};g.y(G1a,g.W);g.k=G1a.prototype;g.k.onVideoDataChange=function(a,b){F1a(this,b);this.De&&I1a(this,this.De)};
g.k.k6=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&F1a(this,b);I1a(this,a.state);this.De=a.state};
g.k.D_=function(a){(this.D=a)?this.hide():this.j&&this.show()};
g.k.j6=function(){this.B||this.rd();this.showControls=!0};
g.k.i6=function(){this.B||this.Mb();this.showControls=!1};
g.k.rd=function(){var a;if(null==(a=this.J)?0:a.L("embeds_web_enable_info_panel_sizing_fix")){var b;a=null==(b=this.J)?void 0:b.getPlayerSize();b=380>a.width;var c;a=a.height<((null==(c=this.J)?0:c.bd())?400:280);var d,e;if(((null==(d=this.J)?0:d.getPlayerStateObject().isCued())||(null==(e=this.J)?0:g.MF(e.getPlayerStateObject(),1024)))&&b&&a)return}this.j&&!this.D&&(this.C.show(),this.J.publish("infopanelpreviewvisibilitychange",!0),this.J.logVisibility(this.element,!0))};
g.k.Mb=function(){this.j&&!this.D&&(this.C.hide(),this.J.publish("infopanelpreviewvisibilitychange",!1),this.J.logVisibility(this.element,!1))};
g.k.Yda=function(){this.B=!1;this.showControls||this.Mb()};var Mpb={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(Mpb).reduce(function(a,b){a[Mpb[b]]=b;return a},{});
var Npb={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(Npb).reduce(function(a,b){a[Npb[b]]=b;return a},{});
var Opb={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(Opb).reduce(function(a,b){a[Opb[b]]=b;return a},{});var Ppb,Qpb;Ppb=[{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"}];Qpb=[{option:0,text:mW(0)},{option:.25,text:mW(.25)},{option:.5,text:mW(.5)},{option:.75,text:mW(.75)},{option:1,text:mW(1)}];
g.pW=[{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:Ppb},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:mW(.5)},{option:-1,text:mW(.75)},{option:0,text:mW(1)},{option:1,text:mW(1.5)},{option:2,
text:mW(2)},{option:3,text:mW(3)},{option:4,text:mW(4)}]},{option:"background",text:"Background color",options:Ppb},{option:"backgroundOpacity",text:"Background opacity",options:Qpb},{option:"windowColor",text:"Window color",options:Ppb},{option:"windowOpacity",text:"Window opacity",options:Qpb},{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:mW(.25)},{option:.5,text:mW(.5)},{option:.75,text:mW(.75)},{option:1,text:mW(1)}]}];var Rpb=[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.y(O1a,g.YJ);g.k=O1a.prototype;
g.k.EY=function(a){a.repeat||(this.C.eK=!1);var b=!1,c=a.keyCode,d=EB(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey&&(!g.GT(this.api.app)||Rpb.includes(c)),f=!1,h=!1,l=this.api.U();a.defaultPrevented?(e=!1,h=!0):l.tf&&!g.GT(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);aW(this.ke,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);
aW(this.ke,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Yh()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),h=f=!0);break;case 35:this.api.Yh()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),h=f=!0)}}b&&oW(this,!0);(b||h)&&this.Jg.tv();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat))&&a.preventDefault();l.N&&(a={keyCode:a.keyCode,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,
shiftKey:a.shiftKey,handled:a.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Cc("onKeyPress",a))};
g.k.FY=function(a){var b=a.keyCode;(!this.api.L("web_player_spacebar_control_bugfix")||this.api.L("web_player_spacebar_control_bugfix")&&!this.D)&&this.handleGlobalKeyUp(b,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)&&a.preventDefault()};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){this.api.publish("keyboardserviceglobalkeyup",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h});b=!1;if(this.C.eK)return b;(c=g.ST(this.api.yb()))&&(c=c.ev)&&c.Gb&&(c.CY(a),b=!0);switch(a){case 9:oW(this,!0);b=!0;break;case 32:if(this.api.L("web_speedmaster_spacebar_control")&&(!this.api.L("web_player_spacebar_control_bugfix")&&!this.D||this.api.L("web_player_spacebar_control_bugfix"))&&!this.api.U().tf){var l,m;a=null==(l=this.progressBar)?
void 0:null==(m=l.B)?void 0:m.isEnabled;b=this.Ls(a)}}return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){l||(this.C.eK=!1);var m=!1,n=this.api.U();if(n.tf&&!g.GT(this.api.app))return m;var p=g.ST(this.api.yb());if(p&&(p=p.ev)&&p.Gb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:m=p.BY(a)}n.K||m||(m=f||String.fromCharCode(a).toLowerCase(),this.B+=m,0==="awesome".indexOf(this.B)?(m=!0,7===this.B.length&&ila(this.api.getRootNode(),"ytp-color-party")):(this.B=m,m=0==="awesome".indexOf(this.B)));if(!m&&(!g.GT(this.api.app)||
Rpb.includes(a))){var q=this.api.getVideoData(),r,t;p=null==(r=this.progressBar)?void 0:null==(t=r.B)?void 0:t.isEnabled;r=q?q.Dk:[];t=IY?d:c;switch(a){case 80:b&&!n.Sa&&($V(this.ke,nya(),"Previous"),this.api.previousVideo(),m=!0);break;case 78:b&&!n.Sa&&($V(this.ke,hya(),"Next"),this.api.nextVideo(),m=!0);break;case 74:this.api.Yh()&&(this.api.startSeekCsiAction(),this.j?iW(this.j,-1,10):$V(this.ke,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",
X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),m=!0);break;case 76:this.api.Yh()&&(this.api.startSeekCsiAction(),this.j?iW(this.j,1,10):$V(this.ke,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),m=!0);break;case 37:this.api.Yh()&&(this.api.startSeekCsiAction(),t?(t=L1a(r,1E3*this.api.getCurrentTime()),-1!==t&&null!=this.j&&(j1a(this.j,-1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,53),m=!0)):(this.j?iW(this.j,-1,5):$V(this.ke,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),m=!0));break;case 39:this.api.Yh()&&(this.api.startSeekCsiAction(),t?(t=K1a(r,1E3*this.api.getCurrentTime()),-1!==t&&null!=this.j&&(j1a(this.j,1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,52),m=!0)):(null!=this.j?iW(this.j,1,5):$V(this.ke,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),m=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),aW(this.ke,this.api.getVolume(),!1)):(this.api.mute(),aW(this.ke,0,!0));m=!0;break;case 32:m=this.api.L("web_speedmaster_spacebar_control")?!this.api.U().Sa:this.Ls(p);break;case 75:m=this.Ls(p);break;case 190:b?n.enableSpeedOptions&&(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m+.25,!0),K0a(this.ke,!1),m=!0):this.api.Yh()&&(this.step(1),m=!0);break;case 188:b?n.enableSpeedOptions&&
(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m-.25,!0),K0a(this.ke,!0),m=!0):this.api.Yh()&&(this.step(-1),m=!0);break;case 70:JYa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),m=!0);
break;case 27:p?(this.progressBar.Fw(),m=!0):this.K()&&(m=!0)}if("3"!==n.controlsType)switch(a){case 67:g.FV(this.api.yb())&&(n=this.api.getOption("captions","track"),this.api.toggleSubtitles(),L0a(this.ke,!n||n&&!n.displayName),m=!0);break;case 79:qW(this,"textOpacity");break;case 87:qW(this,"windowOpacity");break;case 187:case 61:qW(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:qW(this,"fontSizeIncrement",!0,!0)}var v;b||c||d||(48<=a&&57>=a?v=a-48:96<=a&&105>=a&&(v=a-96));null!=v&&this.api.Yh()&&
(this.api.startSeekCsiAction(),n=this.api.getProgressState(),this.api.seekTo(v/10*(n.seekableEnd-n.seekableStart)+n.seekableStart,void 0,void 0,void 0,81),m=!0);m&&this.Jg.tv()}this.D||this.api.publish("keyboardserviceglobalkeydown",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h,repeat:l},this.C);return m};
g.k.step=function(a){this.api.Yh();if(this.api.getPlayerStateObject().isPaused()){var b=this.api.getVideoData().B;b&&(b=b.video)&&this.api.seekBy(a/(b.fps||30),void 0,void 0,0<a?77:78)}};
g.k.Ls=function(a){if(!this.api.U().Sa){var b;var c,d=null==(b=this.api.getVideoData())?void 0:null==(c=b.getPlayerResponse())?void 0:c.playabilityStatus;if(d){var e;b="PLAYBACK_MODE_PAUSED_ONLY"===(null==(e=g.V(d.miniplayer,fob))?void 0:e.playbackMode)}else b=!1;b&&this.api.jb("onExpandMiniplayer");a?this.progressBar.aP():(a=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.ke.gH(a),a?this.api.playVideo():this.api.pauseVideo());return!0}return!1};
g.k.va=function(){g.Lv(this.G);g.YJ.prototype.va.call(this)};g.y(g.rW,g.W);g.rW.prototype.Cs=ea(12);g.rW.prototype.Ta=function(){var a=this.J.U(),b=a.C||this.J.L("web_player_hide_overflow_button_if_empty_menu")&&this.ai.isEmpty();a=g.BR(a)&&g.RT(this.J)&&g.MF(this.J.getPlayerStateObject(),128);var c=this.J.getPlayerSize();this.visible=this.J.Pg()&&!a&&240<=c.width&&!g.vT(this.J.getVideoData())&&!b&&!this.j&&!this.J.bd();g.Uv(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.J.Th();this.J.logVisibility(this.element,this.visible&&this.Z)};
g.rW.prototype.Lc=function(a){g.W.prototype.Lc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};
g.rW.prototype.va=function(){g.W.prototype.va.call(this);g.Sv(this.element,"ytp-overflow-button-visible")};g.y(P1a,g.ZT);g.k=P1a.prototype;g.k.i4=function(a){a=EB(a);g.Jf(this.element,a)&&(g.Jf(this.j,a)||g.Jf(this.closeButton,a)||$T(this))};
g.k.Mb=function(){g.ZT.prototype.Mb.call(this);this.J.im(this.element)};
g.k.show=function(){this.Gb&&this.J.publish("OVERFLOW_PANEL_OPENED");g.ZT.prototype.show.call(this);this.element.setAttribute("aria-modal","true");R1a(this,!0)};
g.k.hide=function(){g.ZT.prototype.hide.call(this);this.element.removeAttribute("aria-modal");R1a(this,!1)};
g.k.onFullscreenToggled=function(a){!a&&this.gk()&&$T(this)};
g.k.isEmpty=function(){return 0===this.actionButtons.length};
g.k.focus=function(){for(var a=g.u(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.Gb){b.focus();break}};g.y(S1a,g.W);S1a.prototype.onClick=function(a){g.lU(a,this.api)&&this.api.playVideoAt(this.index)};g.y(T1a,g.ZT);g.k=T1a.prototype;g.k.show=function(){g.ZT.prototype.show.call(this);this.C.T(this.api,"videodatachange",this.KM);this.C.T(this.api,"onPlaylistUpdate",this.KM);this.KM()};
g.k.hide=function(){g.ZT.prototype.hide.call(this);g.MB(this.C);this.updatePlaylist(null)};
g.k.KM=function(){this.updatePlaylist(this.api.getPlaylist());this.api.U().C&&(this.Fa("ytp-playlist-menu-title-name").removeAttribute("href"),this.D&&(this.Pc(this.D),this.D=null))};
g.k.RL=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.jJ(c,d),playlisturl:this.api.getVideoUrl(!0)});b=a.B;if(b===this.G)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.j[a.index];else{c=g.u(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 S1a(this.api,a,d);this.j.push(e);e.Ja(this.items)}this.selected=this.j[a.index];this.G=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.vca=function(a){var b=this.api.getVideoUrl(!0);g.mU(b,this.api,a)};
g.k.updatePlaylist=function(a){this.playlist!==a?(this.playlist&&this.playlist.unsubscribe("shuffle",this.RL,this),this.playlist=a,this.G=null,a?(a.subscribe("shuffle",this.RL,this),this.RL()):this.Gb&&this.hide()):this.playlist&&this.RL()};
g.k.focus=function(){this.selected.focus()};
g.k.va=function(){this.hide();g.ZT.prototype.va.call(this)};g.y(sW,g.W);sW.prototype.hide=function(){g.W.prototype.hide.call(this);this.Lc(!1);this.api.Th()};
sW.prototype.Ta=function(){var a=g.BR(this.api.U());g.Uv(this.element,"ytp-playlist-menu-button-tiny",400>this.api.ob().getPlayerSize().width&&!a);this.api.bd()?this.hide():this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.jJ("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.jJ("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Gb||(this.show(),this.api.Th()),this.visible=
!0,this.Lc(!0)):this.Gb&&this.hide()};
sW.prototype.Lc=function(a){g.W.prototype.Lc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
sW.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ta,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ta,this);this.Ta()};g.y(U1a,g.W);g.k=U1a.prototype;g.k.l4=function(){this.C?Y1a(this):X1a(this)};
g.k.j4=function(){this.C?(tW(this),this.G=!0):X1a(this)};
g.k.X$=function(){this.D=!0;this.YG(1);this.J.publish("promotooltipacceptbuttonclicked",this.acceptButton);tW(this);this.j&&this.J.logClick(this.acceptButton)};
g.k.Eaa=function(){this.D=!0;this.YG(2);tW(this);this.j&&this.J.logClick(this.dismissButton)};
g.k.m4=function(a){if(1===this.J.getPresentingPlayerType()||2===this.J.getPresentingPlayerType()&&this.K){var b=!0,c=g.tf("ytp-ad-overlay-ad-info-dialog-container"),d=EB(a);if(this.B&&d&&g.Jf(this.B,d))this.B=null;else{1===this.J.getPresentingPlayerType()&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)});
var e=Z1a(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.Jf(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.Jf(this.element,d))}this.targetElement&&this.Gb&&!c&&(!d||b&&g.XF(a))&&(this.D=!0,tW(this))}}};
g.k.YG=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.V(d,Gmb))?void 0:e.feedbackToken;d&&a&&(e={feedbackTokens:[a]},a=this.J.wm(),(null==a?0:yza(d,a.SO))&&dH(a,d,e))}};
g.k.jc=function(){this.G||(this.targetElement||(this.targetElement=V1a(this)),Y1a(this))};
var W1a={"ytp-settings-button":g.pya()};g.y(uW,g.W);uW.prototype.onStateChange=function(a){this.Hc(a.state)};
uW.prototype.Hc=function(a){g.aF(this,g.MF(a,2))};
uW.prototype.onClick=function(){this.J.getPlayerStateObject().isOrWillBePlaying();this.J.playVideo()};g.y(vW,g.W);vW.prototype.onClick=function(a){this.api.logClick(this.element);var b=g.to(this.api.U().Ha,{focusSearch:"true"}),c={};g.CT(this.api,"addEmbedsConversionTrackingParams",[c]);g.XO(c,"emb_search");b=g.to(b,c);var d;(c=null==(d=this.api.getVideoData().E3)?void 0:d.params)&&(b=g.to(b,{bp:c}));g.Qe(b);a.preventDefault()};
vW.prototype.j=function(){if(this.api.L("embeds_web_enable_search_button")){var a=this.api.U();var b=this.api.getVideoData(),c=this.api.ob().getPlayerSize().width;a=g.BR(a)&&c>=this.B&&!a.C&&!b.isAd()&&!this.api.bd()}else a=!1;this.visible=a;g.aF(this,this.visible);g.Uv(this.element,"ytp-search-button-visible",this.visible);g.Uv(this.element,"ytp-show-search-title",!this.api.Pg());this.api.logVisibility(this.element,this.visible&&this.Z)};
vW.prototype.Lc=function(a){g.W.prototype.Lc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.y(g.wW,g.W);g.k=g.wW.prototype;g.k.Ds=ea(9);g.k.onClick=function(){var a=this,b=this.api.U(),c=this.api.getVideoData(this.api.getPresentingPlayerType()),d=this.api.getPlaylistId();b=b.getVideoUrl(c.videoId,d,void 0,!0);if(navigator.share)try{var e=navigator.share({title:c.title,url:b});e instanceof Promise&&e.catch(function(f){a2a(a,f)})}catch(f){f instanceof Error&&a2a(this,f)}else this.Oe.vr(),$T(this.B,this.element,!1);
this.api.logClick(this.element)};
g.k.Ta=function(){var a=this.api.U(),b=this.api.bd();g.Uv(this.element,"ytp-show-share-title",g.BR(a)&&!b);this.Oe.Fh()&&b?(a=(this.api.ob().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Is(this.element,"right",a+"px")):b&&g.Is(this.element,"right","0px");this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]});
this.visible=$1a(this);g.Uv(this.element,"ytp-share-button-visible",this.visible);g.aF(this,this.visible);this.tooltip.Th();this.api.logVisibility(this.element,$1a(this)&&this.Z)};
g.k.Lc=function(a){g.W.prototype.Lc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
g.k.va=function(){g.W.prototype.va.call(this);g.Sv(this.element,"ytp-share-button-visible")};g.y(c2a,g.ZT);g.k=c2a.prototype;g.k.n4=function(a){a=EB(a);g.Jf(this.G,a)||g.Jf(this.closeButton,a)||$T(this)};
g.k.Mb=function(){g.ZT.prototype.Mb.call(this);this.tooltip.im(this.element);this.api.logVisibility(this.j,!1);for(var a=g.u(this.C),b=a.next();!b.done;b=a.next())b=b.value,this.api.hasVe(b.element)&&this.api.logVisibility(b.element,!1)};
g.k.show=function(){var a=this.Gb;g.ZT.prototype.show.call(this);this.Ta();a||this.api.jb("onSharePanelOpened")};
g.k.v$=function(){this.Gb&&this.Ta()};
g.k.Ta=function(){var a=this;g.Qv(this.element,"ytp-share-panel-loading");g.Sv(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.D.checked;b.getSharePanelCommand&&dH(this.api.wm(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.Na()||(g.Sv(a.element,"ytp-share-panel-loading"),e2a(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.jJ("Share link $URL",{URL:b}));NYa(this.j);this.api.logVisibility(this.j,!0)};
g.k.onFullscreenToggled=function(a){!a&&this.gk()&&$T(this)};
g.k.focus=function(){this.j.focus()};
g.k.va=function(){g.ZT.prototype.va.call(this);d2a(this)};g.y(h2a,FU);g.k=h2a.prototype;g.k.va=function(){m2a(this);FU.prototype.va.call(this)};
g.k.UF=function(a){a.target!==this.dismissButton.element&&(this.zx(!1),this.J.jb("innertubeCommand",this.onClickCommand))};
g.k.Ku=function(){this.Wa=!0;this.zx(!0);this.Hl()};
g.k.wba=function(a){this.N=a;this.Hl()};
g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.Wa=!1,this.Ca=!0,this.Y=this.ra=!1,m2a(this),l2a(this,!1),this.B=this.j=!1,yW(this),i2a(this);if(a||!b.videoId)this.G=this.D=!1;var c,d;if(null==b?0:null==(c=b.getPlayerResponse())?0:null==(d=c.videoDetails)?0:d.isLiveContent)this.Kf(!1);else{var e,f,h;b=g.V(null==(e=b.getWatchNextResponse())?void 0:null==(f=e.playerOverlays)?void 0:null==(h=f.playerOverlayRenderer)?void 0:h.productsInVideoOverlayRenderer,
Tnb);this.N=this.enabled=!1;if(b){if(this.J.L("web_player_enable_vod_featured_product_banner_on_desktop")&&(e=null==b?void 0:b.featuredProductsEntityKey)){f=g.SS.getState().entities;var l;if(null==(l=qO(f,"featuredProductsEntity",e))?0:l.productsData){this.Kf(!1);return}}this.enabled=!0;if(!this.D){var m;l=null==(m=b.badgeInteractionLogging)?void 0:m.trackingParams;(this.D=!!l)&&this.J.setTrackingParams(this.badge.element,l||null)}if(!this.G){var n;if(this.G=!(null==(n=b.dismissButton)||!n.trackingParams)){var p;
this.J.setTrackingParams(this.dismissButton.element,(null==(p=b.dismissButton)?void 0:p.trackingParams)||null)}}b.isContentForward&&(m=b.productsData,l2a(this,!0),i2a(this),m=k2a(this,m),n=[],0<m.length&&n.push(m[0]),1<m.length&&(p=new g.W({I:"div",S:"ytp-suggested-action-more-products-icon"}),g.N(this,p),n.push(p),n.push.apply(n,g.qa(m.slice(1)))),this.K=new g.W({I:"div",V:n,S:"ytp-suggested-action-content-forward-container"}),g.N(this,this.K),this.La.element.append(this.K.element));this.text=g.eF(b.text);
var q;if(m=null==(q=b.dismissButton)?void 0:q.a11yLabel)this.Va=g.eF(m);this.onClickCommand=b.onClickCommand;this.timing=b.timing;this.hf()}CZa(this);EU(this);this.Hl()}};
g.k.By=function(){return!this.N&&this.enabled&&!this.Wa&&!this.J.Pg()&&!this.Hb&&(this.Y||this.Ca)};
g.k.YK=function(a){FU.prototype.YK.call(this,a);if(this.j||this.B)this.timing&&xW(this.timing.preview)&&(this.j=!1,yW(this),this.B=!1,yW(this),this.J.nf("shopping_overlay_preview_collapsed"),this.J.nf("shopping_overlay_preview_expanded"),a=zW(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),xW(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.J.nf("shopping_overlay_expanded"),a.end=1E3*this.timing.expanded.endSec),this.J.hf([a])),
this.ra=!0,EU(this);yW(this)};
g.k.Kf=function(a){(this.Y=a)?(DU(this),EU(this,!1)):(m2a(this),this.Sa.start());this.Hl()};
g.k.hf=function(a){var b=this.timing;a=(void 0===a?0:a)+this.J.getCurrentTime();var c=[],d=b.visible,e=b.preview;b=b.expanded;xW(d)&&(f2a(d,a),c.push(zW(d.startSec,d.endSec,"shopping_overlay_visible")));xW(e)&&(f2a(e,a),d=e.startSec+1,c.push(zW(e.startSec,d,"shopping_overlay_preview_collapsed")),c.push(zW(d,e.endSec,"shopping_overlay_preview_expanded")));xW(b)&&(f2a(b,a),c.push(zW(b.startSec,b.endSec,"shopping_overlay_expanded")));this.J.hf(c)};g.y(p2a,g.W);
p2a.prototype.Ta=function(){var a=this.api.U();g.aF(this,g.BR(a)&&this.api.bd());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Gb);var b=this.api.getVideoData(),c=!1;2===this.api.getPresentingPlayerType()?c=!!b.videoId&&!!b.isListed&&!!b.author&&!!b.Dc&&!!b.profilePicture:g.BR(a)&&(c=!!b.videoId&&!!b.Dc&&!!b.profilePicture&&!g.vT(b)&&!a.C&&!(a.Z&&200>this.api.getPlayerSize().width));var d=b.profilePicture;a=g.BR(a)?b.expandedTitle:b.author;d=void 0===d?"":d;a=void 0===
a?"":a;c?(this.B!==d&&(this.j.style.backgroundImage="url("+d+")",this.B=d),this.updateValue("channelLogoLabel",g.jJ("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.Qv(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Sv(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,c&&this.Z);this.api.logVisibility(this.channelName,c&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=b.Il);this.updateValue("expandedTitle",b.expandedTitle)};g.y(AW,g.ZT);AW.prototype.show=function(){g.ZT.prototype.show.call(this);this.j.start()};
AW.prototype.hide=function(){g.ZT.prototype.hide.call(this);this.j.stop()};
AW.prototype.Ut=function(a,b){"dataloaded"===a&&((this.uj=b.uj,this.uf=b.uf,isNaN(this.uj)||isNaN(this.uf))?this.C&&(this.J.nf("intro"),this.J.removeEventListener(g.dJ("intro"),this.K),this.J.removeEventListener(g.eJ("intro"),this.G),this.J.removeEventListener("onShowControls",this.D),this.hide(),this.C=!1):(this.J.addEventListener(g.dJ("intro"),this.K),this.J.addEventListener(g.eJ("intro"),this.G),this.J.addEventListener("onShowControls",this.D),a=new g.cJ(this.uj,this.uf,{priority:9,namespace:"intro"}),
this.J.hf([a]),this.C=!0))};g.y(BW,g.W);BW.prototype.onClick=function(){this.J.Yu()};
BW.prototype.Ta=function(){var a=!0;g.BR(this.J.U())&&(a=a&&480<=this.J.ob().getPlayerSize().width);g.aF(this,a);this.updateValue("icon",this.J.Xh()?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:
{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.y(r2a,g.W);r2a.prototype.va=function(){this.j=null;g.W.prototype.va.call(this)};g.y(CW,g.W);CW.prototype.onClick=function(){this.J.jb("innertubeCommand",this.B)};
CW.prototype.N=function(a){a!==this.G&&(this.update({title:a,ariaLabel:a}),this.G=a);a?this.show():this.hide()};
CW.prototype.K=function(){this.j.disabled=null==this.B;g.Uv(this.j,"ytp-chapter-container-disabled",this.j.disabled);this.Sc()};g.y(DW,CW);DW.prototype.onClickCommand=function(a){g.V(a,RS)&&this.Sc()};
DW.prototype.updateVideoData=function(a,b){var c,d,e;a=g.V(null==(c=b.getWatchNextResponse())?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.decoratedPlayerBarRenderer,SVa);var f;this.B=null==(f=g.V(null==a?void 0:a.playerBarActionButton,g.pM))?void 0:f.command;CW.prototype.K.call(this)};
DW.prototype.Sc=function(){var a="",b=this.D.j,c,d="clips"===(null==(c=this.J.getLoopRange())?void 0:c.type);if(1<b.length&&!d){a=1E3*this.J.getProgressState().current;c=nW(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.C)this.J.jb("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.C=!1}else this.C=!0;CW.prototype.N.call(this,a)};g.y(EW,g.W);EW.prototype.G=function(a){g.MF(a.state,32)?u2a(this,this.api.dk()):this.Gb&&(g.MF(a.state,16)||g.MF(a.state,1))||this.j.hide()};
EW.prototype.Cg=function(){var a=this.api.getPlayerStateObject();(g.MF(a,32)||g.MF(a,16))&&v2a(this)};
EW.prototype.K=function(){this.C=NaN;v2a(this)};
EW.prototype.hide=function(){this.B&&u2a(this,null);g.W.prototype.hide.call(this)};g.y(w2a,g.W);g.k=w2a.prototype;g.k.onClick=function(){var a=this;if(this.J.U().Hb||this.J.U().Z){this.J.logClick(this.element);try{this.J.toggleFullscreen().catch(function(b){a.aF(b)})}catch(b){this.aF(b)}}else $T(this.message,this.element,!0)};
g.k.aF=function(a){String(a).includes("fullscreen error")?g.BE(a):g.AE(a);this.yR()};
g.k.yR=function(){this.disable();this.message.rd(this.element,!0)};
g.k.Ox=function(){yB()===this.J.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.r7=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.yR()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=wB(["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.ZT(this.J,{I:"div",Ka:["ytp-popup","ytp-generic-popup"],X:{role:"alert",tabindex:"0"},V:[b[0],{I:"a",X:{href:"https://support.google.com/youtube/answer/6276924",
target:this.J.U().Y},xa:b[2]},b[4]]},100,!0);this.message.hide();g.N(this,this.message);this.message.subscribe("show",function(c){a.Oe.nE(a.message,c)});
g.UT(this.J,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}};
g.k.Ta=function(){var a=JYa(this.J),b=this.J.U().Z&&250>this.J.getPlayerSize().width;g.aF(this,a&&!b);this.J.logVisibility(this.element,this.Gb)};
g.k.Vm=function(a){if(a){var b={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{I:"g",
S:"ytp-fullscreen-button-corner-1",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.MT(this.J,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.J.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(c){g.BE(c)})}else b={I:"svg",
X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-1",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3",
V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.MT(this.J,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});a=this.message?null:a;this.update({title:a,icon:b});this.Oe.Se().Th()};
g.k.va=function(){this.message||((0,this.j)(),this.j=null);g.W.prototype.va.call(this)};g.y(FW,g.W);FW.prototype.onClick=function(){this.J.logClick(this.element);this.J.seekBy(this.j,!0);var a=0<this.j?1:-1,b=Math.abs(this.j),c=this.J.Di().Bw;c&&iW(c,a,b);this.B.isActive()?this.C=!0:(a=["ytp-jump-spin"],0>this.j&&a.push("backwards"),this.element.classList.add.apply(this.element.classList,g.qa(a)),g.Jv(this.B))};g.y(GW,CW);GW.prototype.onClickCommand=function(a){g.V(a,Rnb)&&this.Sc()};
GW.prototype.updateVideoData=function(){var a,b;this.B=null==(a=y2a(this))?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;CW.prototype.K.call(this)};
GW.prototype.Sc=function(){var a="",b=this.D.K,c,d=null==(c=y2a(this))?void 0:c.headerTitle;c=d?g.eF(d):"";var e;d="clips"===(null==(e=this.J.getLoopRange())?void 0:e.type);1<b.length&&!d&&(a=1E3*this.J.getProgressState().current,e=J1a(b,a),a=null!=e?b[e].title:c,null!=e&&e!==this.currentIndex&&(this.J.jb("innertubeCommand",b[e].onActiveCommand),this.currentIndex=e));CW.prototype.N.call(this,a)};g.y(HW,g.W);HW.prototype.onClick=function(){this.J.jb("onCollapseMiniplayer");this.J.logClick(this.element)};
HW.prototype.Ta=function(){this.visible=!this.J.isFullscreen();g.aF(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)};
HW.prototype.Lc=function(a){g.W.prototype.Lc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};g.y(z2a,g.W);g.k=z2a.prototype;g.k.wU=function(a){this.visible=300<=a.width||this.Ga;g.aF(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)};
g.k.fba=function(){this.J.U().Va?this.J.isMuted()?this.J.unMute():this.J.mute():$T(this.message,this.element,!0);this.J.logClick(this.element)};
g.k.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)};
g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.J.U();a=0===d?1:50<a?1:0;if(this.G!==a){var f=this.ra;isNaN(f)?C2a(this,a):f_a(this.Ha,function(l){C2a(c,f+(c.G-f)*l)},250);
this.G=a}d=0===d?1:0;if(this.D!==d){var h=this.Y;isNaN(h)?D2a(this,d):f_a(this.qa,function(l){D2a(c,h+(c.D-h)*l)},250);
this.D=d}e.Va&&(e=g.MT(this.J,"Mute","m"),d=g.MT(this.J,"Unmute","m"),this.updateValue("title",b?d:e),this.update({"data-title-no-tooltip":b?"Unmute":"Mute"}),this.tooltip.Th())};
g.k.Lc=function(a){g.W.prototype.Lc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};
var A2a=["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"],B2a=["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.y(g.IW,g.W);g.IW.prototype.onStateChange=function(a){this.Hc(a.state)};
g.IW.prototype.Hc=function(a){var b=g.fT(this.J.getVideoData()),c=!1;a.isOrWillBePlaying()?a=b?4:2:g.MF(a,2)?(a=3,c=b):a=1;this.element.disabled=c;if(this.j!==a){b=null;switch(a){case 2:b=g.MT(this.J,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:b="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:b=g.MT(this.J,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:b="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}3===
a?this.update({title:b,icon:E2a(a)}):(this.update({title:b}),(b=E2a(a))&&this.j&&3!==this.j?h_a(this.transition,this.element,b):this.updateValue("icon",b));this.tooltip.Th();this.j=a}};
g.IW.prototype.onVideoDataChange=function(){g.Uv(this.element,"ytp-play-button-playlist",g.RT(this.J))};
g.IW.prototype.Ls=function(a){this.J.logClick(this.element);if(this.J.getPlayerStateObject().isOrWillBePlaying())this.J.pauseVideo();else{if(this.J.isMinimized()&&this.J.getPlayerStateObject().isCued()){var b={},c;if(null==(c=this.J.getVideoData())?0:c.G)b.cttAuthInfo={token:this.J.getVideoData().G,videoId:this.J.getVideoData().videoId};$G("direct_playback",b);this.J.Ei().timerName="direct_playback"}else 3===this.j&&pV(this.J.Ei());this.J.playVideo()}this.J.isMinimized()&&"click"===(null==a?void 0:
a.type)&&this.element.blur()};g.y(g.JW,g.W);g.k=g.JW.prototype;g.k.onVideoDataChange=function(){G2a(this);this.D&&(this.Pc(this.D),this.D=null);this.videoData=this.J.getVideoData(1);if(this.playlist=this.J.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.D=this.T(this.J,"progresssync",this.o4);this.C=X2a(this);F2a(this);this.LM(this.J.ob().getPlayerSize())};
g.k.LM=function(a){a=void 0===a?this.J.ob().getPlayerSize():a;var b,c="clips"===(null==(b=this.J.getLoopRange())?void 0:b.type);a=(g.RT(this.J)||this.j&&g.VT(this.J)&&!this.J.L("web_hide_next_button")||Y2a(this))&&!c&&(this.j||400<=a.width);g.aF(this,a);this.J.logVisibility(this.element,a)};
g.k.onClick=function(a){this.J.logClick(this.element);var b=!0;this.K?b=g.lU(a,this.J):a.preventDefault();b&&(this.j&&5===this.J.getPresentingPlayerType()?this.J.publish("ytoprerollinternstitialnext"):this.j?(pV(this.J.Ei()),this.J.publish("playlistnextbuttonclicked",this.element),this.J.nextVideo(!0)):this.C?this.J.seekTo(0):(pV(this.J.Ei()),this.J.publish("playlistprevbuttonclicked",this.element),this.J.previousVideo(!0)))};
g.k.o4=function(){var a=X2a(this);a!==this.C&&(this.C=a,F2a(this))};
g.k.va=function(){this.B&&(this.B(),this.B=null);G2a(this);g.W.prototype.va.call(this)};g.y($2a,g.W);g.k=$2a.prototype;g.k.q4=function(a){this.OM(a.pageX);this.MM(a.pageX+a.deltaX);a3a(this)};
g.k.OM=function(a){this.qa=a-this.Ma};
g.k.MM=function(a){a-=this.Ma;!isNaN(this.qa)&&0<this.thumbnails.length&&(this.Y=a-this.qa,0<this.thumbnails.length&&0!==this.Y&&(this.C=this.N+this.Y,a=f3a(this,this.C),this.C<=this.j/2&&this.C>=e3a(this)?(this.api.seekTo(a,!1,void 0,void 0,25),g.Is(this.Ca,"transform","translateX("+(this.C-this.j/2)+"px)"),Z2a(this,a)):this.C=this.N))};
g.k.p4=function(){this.ra&&(this.ra.zA=!0);var a=300>(0,g.wC)()-this.Va;if(5>Math.abs(this.Y)&&!a){this.Va=(0,g.wC)();a=this.qa+this.Y;var b=this.j/2-a;this.OM(a);this.MM(a+b);a3a(this);this.api.logClick(this.G)}a3a(this)};
g.k.uB=function(){KW(this,this.api.getCurrentTime())};
g.k.play=function(a){this.api.seekTo(f3a(this,this.C),void 0,void 0,void 0,26);this.api.playVideo();a&&this.api.logClick(this.playButton)};
g.k.onExit=function(a){this.api.seekTo(this.Sa,void 0,void 0,void 0,63);this.api.playVideo();a&&this.api.logClick(this.dismissButton)};
g.k.jc=function(a,b){this.Ma=a;this.j=b;KW(this,this.api.getCurrentTime())};
g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Sa=this.api.getCurrentTime(),Z2a(this,this.Sa),g.Uv(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.La=this.T(this.element,"wheel",this.q4),this.logVisibility(this.isEnabled))};
g.k.disable=function(){this.isEnabled=!1;this.hide();g.Uv(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.La&&this.Pc(this.La);this.logVisibility(this.isEnabled)};
g.k.reset=function(){this.disable();this.D=[];this.Ga=!1};
g.k.logVisibility=function(a){this.api.logVisibility(this.element,a);this.api.logVisibility(this.G,a);this.api.logVisibility(this.dismissButton,a);this.api.logVisibility(this.playButton,a)};
g.k.va=function(){for(;this.B.length;){var a=void 0;null==(a=this.B.pop())||a.dispose()}g.W.prototype.va.call(this)};
g.y(b3a,g.W);g.y(c3a,g.W);g.y(g3a,g.W);g.y(LW,g.W);LW.prototype.Ib=function(a){return"PLAY_PROGRESS"===a?this.K:"LOAD_PROGRESS"===a?this.G:"LIVE_BUFFER"===a?this.D:this.B};j3a.prototype.update=function(a,b,c,d){c=void 0===c?0:c;this.width=b;this.D=c;this.j=b-c-(void 0===d?0:d);this.position=g.ze(a,c,c+this.j);this.C=this.position-c;this.B=this.C/this.j};g.y(k3a,g.W);g.y(g.OW,g.bF);g.k=g.OW.prototype;
g.k.R2=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.nf("timedMarkerCueRange");n3a(this);for(var c=g.u(b.je),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=this.Ma[d])?void 0:e.markerType;e=void 0;var h=null==(e=this.Ma[d])?void 0:e.markers;if(!h)break;if("MARKER_TYPE_TIMESTAMPS"===f){a=g.u(h);for(f=a.next();!f.done;f=a.next()){e=f.value;f=new k3a;h=void 0;f.title=(null==(h=e.title)?void 0:h.simpleText)||"";f.timeRangeStartMillis=Number(e.startMillis);f.j=
Number(e.durationMillis);var l=h=void 0;f.onActiveCommand=null!=(l=null==(h=e.onActive)?void 0:h.innertubeCommand)?l:void 0;t3a(this,f)}u3a(this,this.K);a=this.K;f=this.sf;e=[];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=M1a(m,m+p);e.push(m);h=m;f[m.id]=a[l].onActiveCommand}}this.api.hf(e);this.Pf=this.Ma[d];a=!0}else if("MARKER_TYPE_HEATMAP"===f){d=this.Ma[d];p=n=e=m=l=h=void 0;if(d&&
d.markers){f=null!=(e=null==(p=d.markersMetadata)?void 0:null==(n=p.heatmapMetadata)?void 0:n.minHeightDp)?e:0;e=null!=(h=null==(m=d.markersMetadata)?void 0:null==(l=m.heatmapMetadata)?void 0:l.maxHeightDp)?h:60;h=this.j.length;l=null;for(m=0;m<h;m++){p=this.j[m].startTime;var q=m===h-1?Infinity:this.j[m+1].startTime;m===this.G.length&&m3a(this);n=[];l&&n.push(l);for(var r=g.u(d.markers),t=r.next();!t.done;t=r.next()){t=t.value;var v=Number(t.startMillis);v>=p&&v<=q&&n.push(t)}0<e&&(this.ra.style.height=
e+"px");p=this.G[m];q=n;t=f;var w=e,A=0===m;A=void 0===A?!1:A;h3a(p,w);r=q;v=p.j;A=void 0===A?!1:A;var C=1E3/r.length,F=[];F.push({x:0,y:100});for(var H=0;H<r.length;H++){var M=(H+.5)*C,L=100-g.ze(100*(r[H].intensityScoreNormalized||0),t/v*100,w/v*100);0!==H||A||F.push({x:0,y:L});F.push({x:M,y:L});H===r.length-1&&F.push({x:1E3,y:L})}F.push({x:1E3,y:100});r=F;q=0===q.length?"":RAa(r);p.C.setAttribute("d",q);p.ue=""!==q;g.Uv(p.api.getRootNode(),"ytp-heat-map",p.ue);0<n.length&&(l=n[n.length-1])}g.PW(this)}e=
void 0;f=[];if(d=null==(e=d.markersDecoration)?void 0:e.timedMarkerDecorations)for(d=g.u(d),e=d.next();!e.done;e=d.next())e=e.value,m=l=h=void 0,f.push({visibleTimeRangeStartMillis:null!=(h=e.visibleTimeRangeStartMillis)?h:-1,visibleTimeRangeEndMillis:null!=(l=e.visibleTimeRangeEndMillis)?l:-1,decorationTimeMillis:null!=(m=e.decorationTimeMillis)?m:NaN,label:e.label?g.eF(e.label):""});d=f;this.heatMarkersDecorations=d}}b.iW=this.K;g.Uv(this.element,"ytp-timed-markers-enabled",a);return a};
g.k.jc=function(){g.PW(this);SW(this);u3a(this,this.K);if(this.B){var a=g.Rs(this.element).x||0;this.B.jc(a,this.N)}};
g.k.onClickCommand=function(a){if(a=g.V(a,RS)){var b=a.key;a.isVisible&&b&&y3a(this,b)}};
g.k.uca=function(a){this.api.jb("innertubeCommand",this.sf[a.id])};
g.k.Sc=function(){SW(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.LL()};
g.k.r4=function(a){if(!a.defaultPrevented){var b=!1;switch(a.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);b=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);b=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);b=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);b=!0;break;case 38:this.api.seekBy(5,void 0,void 0,72);b=!0;break;case 40:this.api.seekBy(-5,void 0,void 0,71),b=!0}b&&a.preventDefault()}};
g.k.Ut=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.r9=function(){this.Ut("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.ue();c&&(uT(a)||E3a(this)?this.tf=!1:this.tf=a.allowLiveDvr,g.Uv(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!uT(a))));P3a(this,this.api.Yh());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;WW(this);for(TW(this,this.qa,this.gb);0<this.G.length;)this.G.pop().dispose();this.heatMarkersDecorations=[];this.Ab={};var d;null==(d=this.B)||d.reset();aX(this);g.Uv(this.api.getRootNode(),"ytp-fine-scrubbing-exp",
NW(this))}else this.LL();this.Wh()}if(a){var e;d="clips"===(null==(e=this.Bb)?void 0:e.type);if(e=!a.isLivePlayback){e=this.api.getVideoData();b=g.UVa(e);c=p3a(e);var f;e=null!=b||null!=c&&0<c.length||0<(null==(f=e.kz)?void 0:f.length)}if(e&&!d){f=this.api.getVideoData();d=g.UVa(f);e=!1;if(null==d?0:d.markersMap){e=this.api.getVideoData();var h;e.Sv=(null==(h=d.visibleOnLoad)?void 0:h.key)||e.Sv;h=g.u(d.markersMap);for(d=h.next();!d.done;d=h.next())d=d.value,d.key&&d.value&&(this.Ab[d.key]=d.value,
d.value.onChapterRepeat&&(e.ofa=d.value.onChapterRepeat));null!=e.Sv&&y3a(this,e.Sv);e=!0}var l;if(0<(null==(l=f.kz)?void 0:l.length)){l=g.SS.getState().entities;h=g.u(f.kz);for(d=h.next();!d.done;d=h.next()){d=d.value;c=void 0;b=null==(c=qO(l,"macroMarkersListEntity",d))?void 0:c.markersList;var m=c=void 0;if("MARKER_TYPE_TIMESTAMPS"===(null==(c=b)?void 0:c.markerType)||"MARKER_TYPE_HEATMAP"===(null==(m=b)?void 0:m.markerType))this.Ma[d]=b}e=this.R2()||e}!e&&(l=p3a(f))&&(r3a(this,l),f.Dk=this.j,
q3a(this));F3a(this,null);a.nU&&0===this.G.length&&(a=a.nU,l=a.key,a.isVisible&&l&&y3a(this,l))}else l3a(this),n3a(this)}SW(this)};
g.k.s9=function(a){this.Y&&!g.MF(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.Y.cancel();var b;(null==(b=this.B)?0:b.isEnabled)&&g.MF(a.state,8)&&this.api.pauseVideo()};
g.k.xU=function(a){var b=!!this.Bb!==!!a,c=this.Bb;this.Bb=a;F3a(this,c);"clips"!==(null==a?void 0:a.type)&&a||(a?(this.updateValue("clipstarticon",gya()),this.updateValue("clipendicon",gya()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",Zxa()),this.updateValue("clipendicon",Yxa()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),b&&(this.updateVideoData(this.api.getVideoData(),
!0),g.PW(this)),WW(this));TW(this,this.qa,this.gb)};
g.k.zba=function(a,b,c){var d=g.Rs(this.element),e=RW(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=$F(this.C,Number(c.getAttribute("data-position")),0)*e+g.Rs(this.progressBar).x);this.bb.x=a-d.x;this.bb.y=b-d.y;a=RW(this);c=VW(this,a);b=0;var m;if(null==(m=this.api.getVideoData())?0:uT(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,a.position=$F(this.C,m)*RW(this).j),b=this.C.B;
E3a(this)&&(b=this.C.B);m=f||g.WF(this.tf?c-this.C.j:c-b);b=a.position+this.Sf;c-=this.api.Mc();var n;if(null==(n=this.B)||!n.isEnabled)if(this.api.dk()){if(1<this.j.length){n=UW(this,this.bb.x,!0);if(!this.Bb)for(d=0;d<this.j.length;)g.Uv(this.j[d].j,"ytp-exp-chapter-hover-effect",d===n),d++;if(1<this.G.length)for(d=0;d<this.j.length;d++)g.Uv(this.G[d].element,"ytp-heatmap-hover",d===n)}if(0<this.K.length)for(n=this.bb.x,d=g.u(this.K),e=d.next();!e.done;e=d.next())e=e.value,h=QW(this,e.timeRangeStartMillis/
(1E3*this.C.j),RW(this)),g.Uv(e.element,"ytp-timed-marker-hover",h<=n&&h+6>=n);d=this.tooltip.scale;l=(isNaN(l)?0:l)-45*d;this.api.L("web_key_moments_markers")?this.Pf?(n=J1a(this.K,1E3*c),n=null!=n?this.K[n].title:""):(n=nW(this.j,1E3*c),n=this.j[n].title):(n=nW(this.j,1E3*c),n=this.j[n].title);n||(l+=16*d);.6===this.tooltip.scale&&(l=n?110:126);d=nW(this.j,1E3*c);this.Wa=G3a(this,c,d)?d:G3a(this,c,d+1)?d+1:-1;g.Uv(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.Wa&&1<this.j.length);d=!1;
e=g.u(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.WF(h.decorationTimeMillis/1E3),d=!0)}this.ge!==d&&(this.ge=d,this.api.logVisibility(this.zd,this.ge));g.Uv(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=320*this.tooltip.scale;e=n.length*(this.D?8.55:5.7);e=e<=d?e:d;h=e<160*this.tooltip.scale;d=3;!h&&e/2>a.position&&(d=1);!h&&e/2>this.N-a.position&&(d=2);this.api.U().Z&&
(l-=10);this.G.length&&this.G[0].ue&&(l-=14*(this.D?2:1),this.Ga||(this.Ga=!0,this.api.logVisibility(this.ra,this.Ga)));var q;if(NW(this)&&((null==(q=this.B)?0:q.isEnabled)||0<this.Va)){var r;l-=(null==(r=this.B)?0:r.isEnabled)?YW(this):this.Va}q=void 0;NW(this)&&(q="Pull up for precise seeking",this.Ha||(this.Ha=!0,this.api.logVisibility(this.ud,this.Ha)));this.tooltip.iM(b,c,m,!!f,l,n,d,q)}else this.tooltip.iM(b,c,m,!!f,l);g.Qv(this.api.getRootNode(),"ytp-progress-bar-hover");D3a(this)};
g.k.yba=function(){this.Wh();g.Sv(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ga&&(this.Ga=!1,this.api.logVisibility(this.ra,this.Ga));this.Ha&&(this.Ha=!1,this.api.logVisibility(this.ud,this.Ha))};
g.k.xba=function(a,b){NW(this)&&this.B&&(this.B.Ga?KW(this.B,this.api.getCurrentTime()):d3a(this.B),this.B.show(),g.Uv(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.B.isEnabled));this.Nd&&(this.Nd.dispose(),this.Nd=null);this.Tf=b;1<this.j.length&&-1!==this.Wa?this.api.seekTo(this.j[this.Wa].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(VW(this,RW(this)),!1,void 0,void 0,7);g.Qv(this.element,"ytp-drag");(this.uf=this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()};
g.k.Aba=function(){if(NW(this)&&this.B){var a=YW(this);this.Va>=.5*a?(this.B.enable(),KW(this.B,this.api.getCurrentTime()),O3a(this,a)):aX(this)}if(g.MF(this.api.getPlayerStateObject(),32)||3===this.api.getPresentingPlayerType()){var b;if(null==(b=this.B)?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,void 0,void 0,void 0,7);else{a=VW(this,RW(this));this.api.seekTo(a,void 0,void 0,void 0,7);b=g.u(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.logClick(this.zd)}g.Sv(this.element,"ytp-drag");this.uf&&!g.MF(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}};
g.k.Bba=function(a,b){a=RW(this);a=VW(this,a);this.api.seekTo(a,!1,void 0,void 0,7);var c;NW(this)&&(null==(c=this.B)?0:c.Ga)&&(KW(this.B,a),this.B.isEnabled||(this.Va=g.ze(this.Tf-b-10,0,YW(this)),O3a(this,this.Va)))};
g.k.Wh=function(){this.tooltip.eQ()};
g.k.A_=function(){this.Bb||(this.updateValue("clipstarticon",Xxa()),this.updateValue("clipendicon",Xxa()),g.Qv(this.element,"ytp-clip-hover"))};
g.k.z_=function(){this.Bb||(this.updateValue("clipstarticon",Zxa()),this.updateValue("clipendicon",Yxa()),g.Sv(this.element,"ytp-clip-hover"))};
g.k.LL=function(){this.clipStart=0;this.clipEnd=Infinity;WW(this);TW(this,this.qa,this.gb)};
g.k.Wea=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.La[c]){var d=g.yf("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.La[c]=b;this.Nb[c]=d;g.Ov(d,b.style);H3a(this,c);this.api.U().L("disable_ad_markers_on_content_progress_bar")||this.j[0].C.appendChild(d)}}else N3a(this,b)};
g.k.rda=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())N3a(this,b.value)};
g.k.Fw=function(a){this.B&&(this.B.onExit(null!=a),aX(this))};
g.k.aP=function(a){this.B&&(this.B.play(null!=a),aX(this))};
g.k.va=function(){P3a(this,!1);g.bF.prototype.va.call(this)};g.y(bX,g.W);bX.prototype.isActive=function(){return!!this.J.getOption("remote","casting")};
bX.prototype.Ta=function(){var a=!1;this.J.getOptions().includes("remote")&&(a=1<this.J.getOption("remote","receivers").length);g.aF(this,a&&400<=this.J.ob().getPlayerSize().width);this.J.logVisibility(this.element,this.Gb);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!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.Vxa())}g.Uv(this.element,"ytp-remote-button-active",this.isActive())}};
bX.prototype.B=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var a=this.Cb,b=this.element;if(a.gk())a.Mb();else{a.initialize();a:{var c=g.u(a.Pe.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.rd(b));a.rd(b)}}this.J.logClick(this.element)};g.y(cX,g.W);cX.prototype.j=function(a){var b=this.J.U(),c=400;this.J.L("web_player_small_hbp_settings_menu")&&b.K?c=300:b.Z&&(c=200);a=this.B&&a.width>=c;g.aF(this,a);this.J.logVisibility(this.element,a)};
cX.prototype.C=function(){if(this.Cb.Gb)this.Cb.Mb();else{var a=g.FV(this.J.yb());a&&!a.loaded&&(a.Sh("tracklist",{includeAsr:!0}).length||a.load());this.J.logClick(this.element);this.Cb.rd(this.element)}};
cX.prototype.updateBadge=function(){var a=this.J.isHdr(),b=this.J.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.TT(this.J),e=c&&!!g.ST(this.J.yb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.J.getPlaybackQuality();g.Uv(this.element,"ytp-hdr-quality-badge",a);g.Uv(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.Uv(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.Uv(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.Uv(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.Uv(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.Uv(this.element,"ytp-3d-badge",!a&&e&&d)};g.y(dX,jU);dX.prototype.isLoaded=function(){var a=g.LV(this.J.yb());return void 0!==a&&a.loaded};
dX.prototype.Ta=function(){void 0!==g.LV(this.J.yb())&&3!==this.J.getPresentingPlayerType()?this.j||(this.Cb.Rc(this),this.j=!0):this.j&&(this.Cb.ph(this),this.j=!1);kU(this,this.isLoaded())};
dX.prototype.onSelect=function(a){this.isLoaded();a?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.publish("annotationvisibility",a)};
dX.prototype.va=function(){this.j&&this.Cb.ph(this);jU.prototype.va.call(this)};g.y(eX,g.PU);eX.prototype.Ta=function(){var a=this.J.getAvailableAudioTracks();1<a.length?(g.QU(this,g.$r(a,this.j)),this.tracks=g.cc(a,this.j,this),this.countLabel.Kd(a.length?" ("+a.length+")":""),this.publish("size-change"),this.ri(this.j(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)};
eX.prototype.xg=function(a){g.PU.prototype.xg.call(this,a);this.J.setAudioTrack(this.tracks[a]);this.Cb.aj()};
eX.prototype.j=function(a){return a.toString()};g.y(fX,jU);
fX.prototype.B=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&g.VT(this.J))this.j||(this.Cb.Rc(this),this.j=!0,this.C.push(this.T(this.J,"videodatachange",this.B)),this.C.push(this.T(this.J,"videoplayerreset",this.B)),this.C.push(this.T(this.J,"onPlaylistUpdate",this.B)),this.C.push(this.T(this.J,"autonavchange",this.D)),a=this.J.getVideoData(),this.D(a.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j){this.Cb.ph(this);this.j=!1;a=g.u(this.C);for(var b=a.next();!b.done;b=
a.next())this.Pc(b.value)}};
fX.prototype.D=function(a){kU(this,1!==a)};
fX.prototype.onSelect=function(a){this.J.PL(a?2:1);this.j&&(this.J.logVisibility(this.element,this.j),this.J.logClick(this.element))};
fX.prototype.va=function(){this.j&&this.Cb.ph(this);jU.prototype.va.call(this)};g.y(R3a,g.aU);R3a.prototype.onClick=function(a){a.preventDefault();var b,c;null==(b=g.IT(this.J))||null==(c=b.Pn())||c.Mb();var d,e;null==(d=g.IT(this.J))||null==(e=d.ZX())||e.rd(a.target)};g.y(S3a,g.PU);g.k=S3a.prototype;
g.k.aD=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a){this.Ca=this.J.Mt();a=this.J.getAvailableQualityLevels();if(this.j){this.D={};var b=g.CT(this.J,"getAvailableQualityData",[]);b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.D[c.qualityLabel]=c;b=Object.keys(this.D);"auto"===a[a.length-1]&&b.push("auto");this.Ha=new Set(a)}else if(this.G){c=g.CT(this.J,"getAvailableQualityData",[]);b=[];c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.Y[d.quality]=
d,d.quality&&b.push(d.quality);"auto"===a[a.length-1]&&b.push("auto")}else b=a;g.qYa(this.J)&&this.J.Vw()&&b.unshift("missing-qualities");rYa(this.J)&&b.unshift("inline-survey");g.QU(this,b);a=this.J.getVideoData().cotn?!0:!1;c=this.ra.Gh();c=!g.RR(this.J.U())||!(void 0===a?0:a)||!(void 0===c||c);a=this.B;c=void 0===c?!1:c;c=void 0===c?!1:c;a.OY&&(a=a.Fa("ytp-panel-footer"),g.Uv(a,"ytp-panel-hide-footer",c));if(b.length){this.yU();this.enable(!0);return}}this.enable(!1)};
g.k.yU=function(){if(this.j){var a=this.J.getPreferredQuality();this.Ha.has(a)&&(this.K=this.J.getPlaybackQuality(),this.qa=this.J.getPlaybackQualityLabel(),"auto"===a?(this.ri(a),this.Kd(this.Sk(a))):this.ri(this.qa))}else a=this.J.getPreferredQuality(),this.options[a]&&(this.K=this.J.getPlaybackQuality(),this.ri(a),"auto"===a&&this.Kd(this.Sk(a)))};
g.k.xg=function(a){if("missing-qualities"!==a){g.PU.prototype.xg.call(this,a);var b=this.j?this.D[a]:this.Y[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.J.logClick(e)}if(this.j){var h,l;if(null==(h=g.V(b,g.Amb))?0:null==(l=h.popup)?0:l.notificationActionRenderer)this.J.jb("innertubeCommand",b);else if(b){this.J.jb("innertubeCommand",b);return}d?this.J.setPlaybackQuality(c,
d):this.J.setPlaybackQuality(c)}else{if(this.G){var m,n;if(null==(m=g.V(b,g.Amb))?0:null==(n=m.popup)?0:n.notificationActionRenderer)this.J.jb("innertubeCommand",b);else if(b){this.J.jb("innertubeCommand",b);return}}this.J.setPlaybackQuality(a)}this.Cb.Mb();this.aD()}};
g.k.open=function(){for(var a=g.u(Object.values(this.options)),b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.J.hasVe(null==(c=b)?void 0:c.element)&&(c=void 0,this.J.logVisibility(null==(c=b)?void 0:c.element,!0))}g.PU.prototype.open.call(this);this.J.logClick(this.element)};
g.k.cO=function(a,b,c){var d=this;if("missing-qualities"===a)return new g.aU({I:"a",Ka:["ytp-menuitem"],X:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.J.U().Y,tabindex:"0",role:"menuitemradio"},V:[{I:"div",Ka:["ytp-menuitem-label"],xa:"{{label}}"}]},b,this.Sk(a));if("inline-survey"!==a){var e,f=null==(e=this.j?this.D[a]:this.Y[a])?void 0:e.paygatedQualityDetails;e=null==f?void 0:f.veType;f=null==f?void 0:f.trackingParams;b=g.PU.prototype.cO.call(this,a,b,c);f?(this.J.createServerVe(b.element,
this,!0),this.J.setTrackingParams(b.element,f)):e&&this.J.createClientVe(b.element,this,e,!0);return b}a=[{I:"span",xa:"Looks good?"}];c=g.u([!0,!1]);f=c.next();for(e={};!f.done;e={gQ:void 0},f=c.next())e.gQ=f.value,f=new g.W({I:"span",S:"ytp-menuitem-inline-survey-response",V:[e.gQ?fya():aya()],X:{tabindex:"0",role:"button"}}),f.listen("click",function(h){return function(){var l=h.gQ,m=g.HT(d.J.app);m&&(m.ma("iqsr",{tu:l}),m.getVideoData().r3=!0);d.Cb.Mb();d.aD()}}(e)),a.push(f);
return new g.aU({I:"div",S:"ytp-menuitem",X:{"aria-disabled":"true"},V:[{I:"div",Ka:["ytp-menuitem-label"],V:a}]},b)};
g.k.Sk=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{I:"div",xa:"Missing options?"};if("inline-survey"===a)return"";var c=this.G||this.j?[V3a(this,a,b,!1)]:[U3a(this,a)];var d=this.J.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),this.j?c.push(V3a(this,this.qa,b,!0,["ytp-menu-label-secondary"])):this.G?c.push(V3a(this,this.K,b,!0,["ytp-menu-label-secondary"])):c.push(U3a(this,this.K,["ytp-menu-label-secondary"])));return{I:"div",V:c}};g.y(gX,g.W);gX.prototype.init=function(){this.updateValue("minvalue",this.D);this.updateValue("maxvalue",this.K);this.updateValue("stepvalue",this.N);this.updateValue("slidervalue",this.j);W3a(this,this.j)};
gX.prototype.G=function(){this.j=Number(this.B.value);X3a(this,this.j)};g.y(hX,gX);hX.prototype.G=function(){gX.prototype.G.call(this);this.C&&(Y3a(this),this.qa())};
hX.prototype.Y=function(){this.J.setPlaybackRate(this.j,!0)};
hX.prototype.updateValues=function(){X3a(this,this.J.getPlaybackRate());Y3a(this)};g.y(iX,g.W);g.k=iX.prototype;g.k.init=function(){this.zy(this.j);this.updateValue("minvalue",this.B);this.updateValue("maxvalue",this.C)};
g.k.u4=function(a){if(!a.defaultPrevented){switch(a.keyCode){case 37:case 40:var b=-this.N;break;case 39:case 38:b=this.N;break;default:return}this.zy(this.j+b);a.preventDefault()}};
g.k.s4=function(a){var b=this.j;b+=0>(a.deltaX||-a.deltaY)?-this.Y:this.Y;this.zy(b);a.preventDefault()};
g.k.t4=function(a){a=(a-g.Rs(this.D).x)/this.qa*this.range+this.B;this.zy(a)};
g.k.zy=function(a,b){b=void 0===b?"":b;a=g.ze(a,this.B,this.C);""===b&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.ra.style.left=(a-this.B)/this.range*(this.qa-this.Ga)+"px";this.j=a};
g.k.focus=function(){this.La.focus()};g.y(jX,iX);jX.prototype.Ca=function(){this.J.setPlaybackRate(this.j,!0)};
jX.prototype.zy=function(a){iX.prototype.zy.call(this,a,$3a(this,a).toString());this.G&&(Z3a(this),this.Ha())};
jX.prototype.updateValues=function(){var a=this.J.getPlaybackRate();$3a(this,this.j)!==a&&(this.zy(a),Z3a(this))};g.y(a4a,g.bF);a4a.prototype.focus=function(){this.j.focus()};g.y(b4a,GU);g.y(c4a,g.PU);g.k=c4a.prototype;g.k.Sk=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.k.Ta=function(){var a=this.J.getPresentingPlayerType();this.enable(2!==a&&3!==a);g4a(this)};
g.k.ez=function(a){g.PU.prototype.ez.call(this,a);a?(this.K=this.T(this.J,"onPlaybackRateChange",this.onPlaybackRateChange),g4a(this),e4a(this,this.J.getPlaybackRate())):(this.Pc(this.K),this.K=null)};
g.k.onPlaybackRateChange=function(a){var b=this.J.getPlaybackRate();this.G.includes(b)||f4a(this,b);e4a(this,a)};
g.k.xg=function(a){g.PU.prototype.xg.call(this,a);a===this.j?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);this.Cb.aj()};
g.k.hI=function(a){kX(this.J)?a!==this.j?g.PU.prototype.hI.call(this,a):(a=new b4a(this.J),g.KU(this.Cb,a)):g.PU.prototype.hI.call(this,a)};g.y(i4a,g.PU);g.k=i4a.prototype;g.k.ri=function(a){g.PU.prototype.ri.call(this,a)};
g.k.zU=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.Sk=function(a){return this.getOption(a).text||""};
g.k.xg=function(a){g.PU.prototype.xg.call(this,a);this.publish("settingChange",this.K,this.settings[a].option)};g.y(lX,g.HU);lX.prototype.qh=function(a){for(var b=g.u(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.Gu[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.ri(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}};
lX.prototype.wk=function(a,b){this.publish("settingChange",a,b)};g.y(mX,g.PU);mX.prototype.j=function(a){return a.languageCode};
mX.prototype.Sk=function(a){return this.languages[a].languageName||""};
mX.prototype.xg=function(a){this.publish("select",a);this.J.logClick(this.element);g.LU(this.Cb)};g.y(l4a,g.PU);g.k=l4a.prototype;g.k.bD=function(a){return g.gd(a)?"__off__":a.displayName};
g.k.Sk=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.xg=function(a){if("__translate__"===a)this.j.open();else if("__contribute__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var b=g.yPa(this.J.U(),this.J.getVideoData());g.gG(b)}else if("__correction__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var c=m4a(this);nX(this,c);g.PU.prototype.xg.call(this,this.bD(c));var d,e;c=null==(b=this.J.getVideoData().getPlayerResponse())?void 0:null==(d=b.captions)?void 0:null==(e=d.playerCaptionsTracklistRenderer)?
void 0:e.openTranscriptCommand;this.J.jb("innertubeCommand",c);this.Cb.aj();this.D&&this.J.logClick(this.D)}else{if("__correction__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();b=m4a(this);nX(this,b);g.PU.prototype.xg.call(this,this.bD(b));var f,h;b=null==(c=this.J.getVideoData().getPlayerResponse())?void 0:null==(f=c.captions)?void 0:null==(h=f.playerCaptionsTracklistRenderer)?void 0:h.openTranscriptCommand;this.J.jb("innertubeCommand",b)}else this.J.logClick(this.element),
nX(this,"__off__"===a?{}:this.tracks[a]),g.PU.prototype.xg.call(this,a);this.Cb.aj()}};
g.k.Ta=function(){var a=this.J.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.J.getVideoData(),c=b&&b.Hv,d,e=!(null==(d=this.J.getVideoData())||!g.tT(d));d={};if(a||c){var f;if(a){var h=this.J.getOption("captions","track");d=this.J.getOption("captions","tracklist",{includeAsr:!0});var l=e?[]:this.J.getOption("captions","translationLanguages");this.tracks=g.cc(d,this.bD,this);e=g.$r(d,this.bD);var m,n;m4a(this)&&(null==(f=b.getPlayerResponse())?0:null==(m=f.captions)?0:null==(n=m.playerCaptionsTracklistRenderer)?
0:n.openTranscriptCommand)&&e.push("__correction__");if(l.length&&!g.gd(h)){if((f=h.translationLanguage)&&f.languageName){var p=f.languageName;f=l.findIndex(function(q){return q.languageName===p});
Aaa(l,f)}j4a(this.j,l);e.push("__translate__")}f=this.bD(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.QU(this,e);this.ri(f);h&&h.translationLanguage?this.j.ri(this.j.j(h.translationLanguage)):OZa(this.j);a&&this.G.qh(this.J.getSubtitlesUserSettings());this.countLabel.Kd(d&&d.length?" ("+d.length+")":"");this.publish("size-change");this.J.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.v4=function(a){var b=this.J.getOption("captions","track");b=g.jd(b);b.translationLanguage=this.j.languages[a];nX(this,b)};
g.k.wk=function(a,b){if("reset"===a)this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}k4a(this,!0);this.K.start();this.G.qh(this.J.getSubtitlesUserSettings())};
g.k.gca=function(a){a||g.Lv(this.K)};
g.k.va=function(){g.Lv(this.K);g.PU.prototype.va.call(this)};
g.k.open=function(){g.PU.prototype.open.call(this);this.options.__correction__&&!this.D&&(this.D=this.options.__correction__.element,this.J.createClientVe(this.D,this,167341),this.J.logVisibility(this.D,!0))};g.y(n4a,g.JU);g.k=n4a.prototype;
g.k.initialize=function(){if(!this.isInitialized){var a=this.J.U();this.isInitialized=!0;try{this.sS=new S3a(this.J,this)}catch(c){g.BE(Error("QualityMenuItem creation failed"))}g.N(this,this.sS);var b=new l4a(this.J,this);g.N(this,b);a.C||(b=new dX(this.J,this),g.N(this,b));a.enableSpeedOptions&&(b=new c4a(this.J,this),g.N(this,b));(g.BR(a)||a.K)&&(a.B||a.Wa)&&(b=new R3a(this.J,this),g.N(this,b));a.je&&!a.L("web_player_move_autonav_toggle")&&(a=new fX(this.J,this),g.N(this,a));a=new eX(this.J,this);
g.N(this,a);this.J.publish("settingsMenuInitialized");Q3a(this.settingsButton,this.Pe.Np())}};
g.k.Rc=function(a){this.initialize();this.Pe.Rc(a);Q3a(this.settingsButton,this.Pe.Np())};
g.k.ph=function(a){this.Gb&&1>=this.Pe.Np()&&this.hide();this.Pe.ph(a);Q3a(this.settingsButton,this.Pe.Np())};
g.k.rd=function(a){this.initialize();0<this.Pe.Np()&&g.JU.prototype.rd.call(this,a)};
g.k.Mb=function(){this.pL?this.pL=!1:g.JU.prototype.Mb.call(this)};
g.k.show=function(){g.JU.prototype.show.call(this);g.Qv(this.J.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.JU.prototype.hide.call(this);g.Sv(this.J.getRootNode(),"ytp-settings-shown")};
g.k.Kf=function(a){this.J.logVisibility(this.element,a);this.J.publish("settingsMenuVisibilityChanged",a)};g.y(oX,g.W);oX.prototype.onClick=function(){if(p4a(this)&&(this.J.toggleSubtitles(),this.J.logClick(this.element),!this.isEnabled())){var a=!1,b=g.VB(g.UB(),65);g.RR(this.J.U())&&null!=b&&(a=!b);a&&this.J.U().L("web_player_nitrate_promo_tooltip")&&this.J.publish("showpromotooltip",this.element)}};
oX.prototype.j=function(a){var b,c;null==(b=g.IT(this.J))||null==(c=b.Pn())||c.rd(a)};
oX.prototype.isEnabled=function(){return!!this.J.getOption("captions","track").displayName};
oX.prototype.Ta=function(){var a=p4a(this),b=300;this.J.U().Z&&(b=480);if(this.J.U().K){this.updateValue("title",g.MT(this.J,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var c=a}else{if(a)null==(c=this.Fa("ytp-subtitles-button-icon"))||c.setAttribute("fill-opacity","1"),this.updateValue("title",g.MT(this.J,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var d;null==(d=this.Fa("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}this.tooltip.Th();c=c&&this.J.ob().getPlayerSize().width>=b;g.aF(this,c);this.J.logVisibility(this.element,c);a?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};g.y(g.qX,g.W);g.k=g.qX.prototype;
g.k.Sc=function(){var a=this.api.ob().getPlayerSize().width,b=this.N;this.api.U().Z&&(b=400);b=a>=b&&(!sX(this)||!g.MF(this.api.getPlayerStateObject(),64));g.aF(this,b);g.Uv(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.getCurrentTime(b,!1);this.B&&(c-=a.airingStart);rX(this)&&(c-=this.Bb.startTimeMs/1E3);c=g.WF(c);this.C!==c&&(this.updateValue("currenttime",c),this.C=c);b=rX(this)?g.WF((this.Bb.endTimeMs-
this.Bb.startTimeMs)/1E3):g.WF(this.api.getDuration(b,!1));this.D!==b&&(this.updateValue("duration",b),this.D=b)}a=a.isAtLiveHead;!sX(this)||this.K===a&&this.G===this.isPremiere||(this.K=a,this.G=this.isPremiere,this.Sc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Kd(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.KT(this.tooltip,this.liveBadge.element)));a=this.api.getLoopRange();b=this.Bb!==
a;this.Bb=a;b&&pX(this)};
g.k.onLoopRangeChange=function(a){var b=this.Bb!==a;this.Bb=a;b&&(this.Sc(),pX(this))};
g.k.Dca=function(){this.api.setLoopRange(null)};
g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.U().L("enable_topsoil_wta_for_halftime")||this.api.U().L("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Sc();pX(this)};
g.k.updateVideoData=function(a){this.lF=a.isLivePlayback&&!a.Ab;this.B=uT(a);this.isPremiere=a.isPremiere;g.Uv(this.element,"ytp-live",sX(this))};
g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())};
g.k.va=function(){this.j&&this.j();g.W.prototype.va.call(this)};g.y(r4a,g.W);g.k=r4a.prototype;g.k.Ox=function(){var a=this.api.Fh();this.C!==a&&(this.C=a,q4a(this,this.api.getVolume(),this.api.isMuted()))};
g.k.AU=function(a){g.aF(this,350<=a.width)};
g.k.y4=function(a){if(!a.defaultPrevented){var b=a.keyCode,c=null;37===b?c=this.volume-5:39===b?c=this.volume+5:36===b?c=0:35===b&&(c=100);null!==c&&(c=g.ze(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),a.preventDefault())}};
g.k.w4=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.ze(b/10,-10,10));a.preventDefault()};
g.k.lca=function(){tX(this,this.j,!0,this.B,this.api.Im());this.Y=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.x4=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Rs(this.N).x;this.api.setVolume(100*g.ze((a-c/2)/(b-c),0,1))};
g.k.kca=function(){tX(this,this.j,!1,this.B,this.api.Im());0===this.volume&&(this.api.mute(),this.api.setVolume(this.Y))};
g.k.onVolumeChange=function(a){q4a(this,a.volume,a.muted)};
g.k.fX=function(){tX(this,this.j,this.isDragging,this.B,this.api.Im())};
g.k.va=function(){g.W.prototype.va.call(this);g.Sv(this.K,"ytp-volume-slider-active")};g.y(uX,g.W);
uX.prototype.onVideoDataChange=function(){var a=this.api.U();this.jc();this.visible=!!this.api.getVideoData().videoId&&!g.vT(this.api.getVideoData(1));g.aF(this,this.visible);this.api.logVisibility(this.element,this.visible&&this.Z);if(this.visible){var b=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",b)}a.C&&(this.j&&(this.Pc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Qv(this.element,"no-link"));
b=this.api.U();a=this.api.getVideoData();var c="";b.C||(b=g.NR(b),0===b.indexOf("www.")&&(b=b.substring(4)),c=g.wT(a)?"Watch on YouTube Music":"youtube.com"===b?"Watch on YouTube":g.jJ("Watch on $WEBSITE",{WEBSITE:b}));this.updateValue("title",c)};
uX.prototype.onClick=function(a){this.api.L("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.XF(a),!1,!0,!0);if(g.BR(b)){var d={};g.BR(b)&&g.CT(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.to(c,g.XO(d,"emb_logo"))}g.mU(c,this.api,a);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
uX.prototype.jc=function(){var a={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]},
b=28666,c=this.api.getVideoData();this.api.bd()?a={I:"svg",X:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{I:"path",X:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z",
fill:"#fff"}}]}:g.wT(c)&&(a={I:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 86 51",width:"100%"},V:[{I:"path",X:{d:"M1 41.39H5.42V27.23C5.42 23.03 5.32 18.69 5.06 13.59H5.56L6.32 16.89L11.3 41.39H15.8L20.7 16.89L21.52 13.59H22C21.78 18.45 21.66 22.89 21.66 27.23V41.39H26.08V8.79H18.58L16.04 20.81C14.98 25.85 14.14 32.01 13.64 35.19H13.36C12.96 31.95 12.12 25.81 11.04 20.85L8.44 8.79H1V41.39Z",fill:"white"}},{I:"path",X:{d:"M34.08 41.73C36.54 41.73 38.46 40.59 39.8 38.13H39.98L40.32 41.39H44.06V17.73H39.1V36.61C38.54 37.67 37.44 38.29 36.36 38.29C34.96 38.29 34.52 37.17 34.52 35.13V17.73H29.56V35.43C29.56 39.49 30.82 41.73 34.08 41.73Z",
fill:"white"}},{I:"path",X:{d:"M53.42 41.89C57.78 41.89 60.38 39.83 60.38 35.65C60.38 31.79 58.56 30.39 54.48 27.47C52.30 25.91 51.02 25.09 51.02 22.95C51.02 21.47 51.90 20.61 53.52 20.61C55.32 20.61 55.96 21.81 55.96 25.29L60.08 25.07C60.40 19.57 58.34 17.23 53.60 17.23C49.20 17.23 46.80 19.27 46.80 23.45C46.80 27.25 48.60 28.83 51.56 31.03C54.52 33.23 56.18 34.53 56.18 36.23C56.18 37.75 55.14 38.61 53.64 38.61C51.76 38.61 50.74 36.97 50.92 34.41L46.84 34.49C46.14 39.25 48.52 41.89 53.42 41.89Z",
fill:"white"}},{I:"path",X:{d:"M65.12 14.59C66.84 14.59 67.66 13.99 67.66 11.59C67.66 9.33 66.78 8.65 65.12 8.65C63.46 8.65 62.56 9.27 62.56 11.59C62.56 13.99 63.44 14.59 65.12 14.59ZM62.82 41.39H67.62V17.73H62.82V41.39Z",fill:"white"}},{I:"path",X:{d:"M77.58 41.79C79.94 41.79 81.26 41.49 82.34 40.47C83.94 39.01 84.60 36.63 84.48 33.11L80.04 32.87C80.04 36.87 79.44 38.45 77.66 38.45C75.76 38.45 75.40 36.45 75.40 31.97V27.21C75.40 22.41 75.86 20.51 77.70 20.51C79.30 20.51 79.92 22.01 79.92 26.47L84.28 26.15C84.60 22.93 84.22 20.29 82.72 18.83C81.64 17.77 80.00 17.29 77.78 17.29C72.28 17.29 70.38 20.73 70.38 28.03V31.17C70.38 38.47 71.86 41.79 77.58 41.79Z",
fill:"white"}}]},b=216163);g.wT(c)?g.Qv(this.element,"ytp-youtube-music-button"):g.Sv(this.element,"ytp-youtube-music-button");a.X=Object.assign({},a.X,{"aria-hidden":"true"});this.updateValue("logoSvg",a);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,b,!0)};
uX.prototype.Lc=function(a){g.W.prototype.Lc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.y(t4a,g.YJ);g.k=t4a.prototype;g.k.Cg=function(){if(this.J.L("web_player_max_seekable_on_ended")||!g.MF(this.J.getPlayerStateObject(),2))this.progressBar.Sc(),this.Ca.Sc()};
g.k.pB=function(){this.bU();this.Jg.B?this.Cg():this.progressBar.Wh()};
g.k.z4=function(){this.Cg();this.Z.start()};
g.k.bU=function(){var a;if(a=!this.J.U().B){a=this.progressBar;var b=2*a.N*g.QR(),c=a.C;a=300>1E3*(c.j-c.B)/a.api.getPlaybackRate()/b}a=a&&this.J.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;b=!a;this.Jg.B||(a=b=!1);b?this.ra||(this.ra=this.T(this.J,"progresssync",this.Cg)):this.ra&&(this.Pc(this.ra),this.ra=null);a?this.Z.isActive()||this.Z.start():this.Z.stop()};
g.k.jc=function(){var a=this.J.Fh(),b=this.J.ob().getPlayerSize(),c=v4a(this),d=Math.max(b.width-2*c,100);if(this.gb!==b.width||this.bb!==a){this.gb=b.width;this.bb=a;var e=w4a(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";g.M3a(this.progressBar,c,e,a);this.J.Se().BU=e}c=this.B;d=Math.min(570*(a?1.5:1),d);a=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-x4a(this))));c.maxWidth=d;c.maxHeight=a;c.wC();this.bU();this.J.U().L("html5_player_dynamic_bottom_gradient")&&q2a(this.Wa,
b.height)};
g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.Ma.style.background=a.If?a.Kp:"";this.qa&&x2a(this.qa,a.showSeekingControls);this.Y&&x2a(this.Y,a.showSeekingControls)};
g.k.Ib=function(){return this.C.element};g.y(y4a,FU);g.k=y4a.prototype;g.k.UF=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.J.jb("innertubeCommand",this.onClickCommand),this.Ku())};
g.k.Ku=function(){this.enabled=!1;this.qa.hide()};
g.k.onVideoDataChange=function(a,b){"dataloaded"===a&&z4a(this);a=[];var c,d,e,f;if(b=null==(f=g.V(null==(c=b.getWatchNextResponse())?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.suggestedActionsRenderer,oob))?void 0:f.suggestedActions)for(c=g.u(b),d=c.next();!d.done;d=c.next())(d=g.V(d.value,pob))&&g.V(d.trigger,nob)&&a.push(d);if(0!==a.length){c=[];a=g.u(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=g.V(d.trigger,nob))f=(f=d.title)?g.eF(f):"View Chapters",
b=e.timeRangeStartMillis,e=e.timeRangeEndMillis,null!=b&&null!=e&&d.tapCommand&&(c.push(new g.cJ(b,e,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.J.hf(c)}};
g.k.By=function(){return this.enabled};
g.k.Kf=function(){this.enabled?this.Sa.start():DU(this);this.Hl()};
g.k.va=function(){z4a(this);FU.prototype.va.call(this)};var r3={},vX=(r3.CHANNEL_NAME="ytp-title-channel-name",r3.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",r3.LINK="ytp-title-link",r3.SESSIONLINK="yt-uix-sessionlink",r3.SUBTEXT="ytp-title-subtext",r3.TEXT="ytp-title-text",r3.TITLE="ytp-title",r3);g.y(wX,g.W);wX.prototype.onClick=function(a){this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.XF(a),!1,!0);g.BR(b)&&(b={},g.CT(this.api,"addEmbedsConversionTrackingParams",[b]),c=g.to(c,g.XO(b,"emb_title")));g.mU(c,this.api,a)};
wX.prototype.Ta=function(){var a=this.api.getVideoData(),b=this.api.U();this.updateValue("title",a.title);var c={I:"a",S:vX.CHANNEL_NAME,X:{href:"{{channelLink}}",target:"_blank"},xa:"{{channelName}}"};this.api.U().C&&(c={I:"span",S:vX.CHANNEL_NAME,xa:"{{channelName}}",X:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);A4a(this);2===this.api.getPresentingPlayerType()&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.Dc&&c.profilePicture?(this.updateValue("channelLink",
c.Dc),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):A4a(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.Dk;g.Uv(this.link,vX.FULLERSCREEN_LINK,c);b.qa||!a.videoId||c||g.vT(a)||b.C?this.j&&(this.updateValue("url",null),this.Pc(this.j),this.j=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.T(this.link,"click",this.onClick)));b.C&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.BR(b)?a.expandedTitle:
a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.y(g.xX,g.W);g.k=g.xX.prototype;g.k.setEnabled=function(a){if(null!=this.type)if(a)switch(this.type){case 3:case 2:C4a(this);this.K.show();break;default:this.K.show()}else this.K.hide();this.Y=a};
g.k.iM=function(a,b,c,d,e,f,h,l){if(!this.Ma||this.env.Z){3===this.type&&this.Wh();1!==this.type&&(g.Ov(this.element,"ytp-tooltip ytp-bottom"),(t2a(this.api)||this.api.isInline())&&g.Qv(this.element,"ytp-rounded-tooltip"),this.type=1,this.Y&&this.K.show(),this.B&&this.B.dispose(),(this.B=this.api.dk())&&this.B.subscribe("l",this.H_,this));if(l){var m=g.Us(this.bg).height||this.Ca;this.Sa.style.bottom=m+2+"px"}this.update({text:c,title:null!=f?f:"",eduText:null!=l?l:""});g.Uv(this.text,"ytp-tooltip-text-no-title",
1===this.type&&!f);this.api.isInline()&&g.Qv(this.text,"ytp-modern-tooltip-text");g.Uv(this.element,"ytp-text-detail",!!d);c=-1;this.B&&(c=xS(this.B,this.N*this.scale),this.env.L("web_l3_storyboard")&&4===this.B.levels.length&&(c=this.B.levels.length-1),c=mWa(this.B,c,b));E4a(this,c);if(h)switch(b=g.Us(this.element).width,h){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=b+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=
b/2+"px",this.title.style.textAlign="center"}D4a(this,!!d,a,e)}};
g.k.eQ=function(){1===this.type&&this.Wh()};
g.k.hH=function(a,b){if(this.type)if(3===this.type)this.Wh();else return;B4a(this,a,3,b)};
g.k.Th=function(){this.j&&!this.qa&&this.j.hasAttribute("title")&&(this.C=this.j.getAttribute("title")||"",this.j.removeAttribute("title"),this.Y&&C4a(this))};
g.k.H_=function(a,b){a<=this.D&&this.D<=b&&(a=this.D,this.D=NaN,E4a(this,a))};
g.k.l$=function(){kWa(this.B,this.D,this.N*this.scale)};
g.k.Wh=function(){switch(this.type){case 2:var a=this.j;a.removeEventListener("mouseout",this.ra);a.addEventListener("mouseover",this.G);a.removeEventListener("blur",this.ra);a.addEventListener("focus",this.G);F4a(this);break;case 3:F4a(this);break;case 1:this.B&&(this.B.unsubscribe("l",this.H_,this),this.B=null),this.api.removeEventListener("videoready",this.Ha),this.Ga.stop()}this.type=null;this.Y&&this.K.hide()};
g.k.im=function(){if(this.j)for(var a=0;a<arguments.length;a++)g.Jf(arguments[a],this.j)&&this.Wh()};
g.k.va=function(){null!=this.type&&this.Wh();this.B&&this.B.dispose();g.W.prototype.va.call(this)};g.y(H4a,g.W);g.k=H4a.prototype;g.k.cD=function(){this.visible=I4a(this);g.aF(this,this.visible);this.icon&&K4a(this,this.icon);this.J.logVisibility(this.element,this.visible&&this.Z)};
g.k.qe=function(){return this.J.getVideoData().videoId};
g.k.onClick=function(){this.J.logClick(this.element);var a=this.J.U(),b=this.qe();a.Ca?G4a(this):J4a(this,b)};
g.k.onReset=function(){this.isRequestPending=this.j=!1;this.Ta(2);this.cD()};
g.k.Ta=function(a,b){var c=this.J.U();K4a(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.j?g.jJ("Added as $USER_NAME",a):g.jJ("Watch later as $USER_NAME",a),image:fVa(c)})):this.update({title:"Watch later",image:null});this.J.Th()};
g.k.Lc=function(a){g.W.prototype.Lc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};g.y(g.yX,g.WV);g.k=g.yX.prototype;
g.k.init=function(){var a=this;this.ke=new g.ZV(this.api);this.Bw=new hW(this.api);this.ji=new g.W({I:"div",S:"ytp-chrome-top"});this.tooltip=new g.xX(this.api,this);this.channelAvatar=new U0a(this.api);this.title=new wX(this.api);this.Tg=new g.YE({I:"div",S:"ytp-chrome-top-buttons"});this.Xg=new M0a(this.api,this.ji.element);this.Fg="1"===this.api.U().controlsType?new t4a(this.api,this,this.Jg):null;this.contextMenu=new d1a(this.api,this.ke);this.wE=new g.W({I:"div",X:{tabindex:"0"}});this.vE=new g.W({I:"div",
X:{tabindex:"0"}});var b=this.api.ob(),c=this.api.U(),d=this.api.getVideoData();this.Pr&&(g.Qv(this.api.getRootNode(),"ytp-embed"),g.Qv(this.api.getRootNode(),"ytp-embed-playlist"),this.iK&&(g.Qv(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.Qv(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.pO=60,this.qO=89);this.api.U().C&&g.Qv(this.api.getRootNode(),"ytp-embed-pfl");this.api.U().B&&(g.Qv(this.api.getRootNode(),"ytp-mobile"),this.api.U().Z&&g.Qv(this.api.getRootNode(),"ytp-embed-mobile"));
this.Bi=d&&d.getEmbeddedPlayerResponse();g.N(this,this.ke);g.UT(this.api,this.ke.element,4);g.N(this,this.Bw);g.UT(this.api,this.Bw.element,4);d=new g.W({I:"div",S:"ytp-gradient-top"});g.N(this,d);g.UT(this.api,d.element,1);this.pM=new g.FF(d,250,!0,100);g.N(this,this.pM);g.N(this,this.ji);g.UT(this.api,this.ji.element,1);this.oM=new g.FF(this.ji,250,!0,100);g.N(this,this.oM);g.N(this,this.tooltip);g.UT(this.api,this.tooltip.element,4);var e=new T1a(this.api);g.N(this,e);g.UT(this.api,e.element,5);
e.subscribe("show",function(m){a.Wz(e,m)});
this.vH.push(e);this.EB=new sW(this.api,e);g.N(this,this.EB);!this.Pr&&this.EB.Ja(this.ji.element);g.N(this,this.channelAvatar);this.channelAvatar.Ja(this.ji.element);g.N(this,this.title);this.title.Ja(this.ji.element);this.Pr&&(d=new p2a(this.api),g.N(this,d),d.Ja(this.ji.element));g.N(this,this.Tg);this.Tg.Ja(this.ji.element);var f=new c2a(this.api,this);g.N(this,f);g.UT(this.api,f.element,5);f.subscribe("show",function(m){a.Wz(f,m)});
this.vH.push(f);this.searchButton=new vW(this.api);g.N(this,this.searchButton);this.searchButton.Ja(this.Tg.element);this.Yo=new H4a(this.api);g.N(this,this.Yo);this.Yo.Ja(this.Tg.element);this.shareButton=new g.wW(this.api,this,f);g.N(this,this.shareButton);this.shareButton.Ja(this.Tg.element);this.Dn=new gW(this.api,this);g.N(this,this.Dn);this.Dn.Ja(this.Tg.element);this.Pr&&this.EB.Ja(this.Tg.element);g.N(this,this.Xg);this.Xg.Ja(this.Tg.element);c.mp&&(d=new AW(this.api),g.N(this,d),g.UT(this.api,
d.element,4));c.C||(d=new N0a(this.api,this.Xg),g.N(this,d),d.Ja(this.Tg.element));this.ai=new P1a(this.api);g.N(this,this.ai);g.UT(this.api,this.ai.element,5);this.ai.subscribe("show",function(){a.Wz(a.ai,a.ai.gk())});
this.vH.push(this.ai);this.overflowButton=new g.rW(this.api,this.ai);g.N(this,this.overflowButton);this.overflowButton.Ja(this.Tg.element);this.Fg&&g.N(this,this.Fg);"3"===c.controlsType&&(d=new uW(this.api),g.N(this,d),g.UT(this.api,d.element,9));g.N(this,this.contextMenu);this.contextMenu.subscribe("show",this.X2,this);d=new aG(this.api,new YV(this.api));g.N(this,d);g.UT(this.api,d.element,4);this.wE.listen("focus",this.t8,this);g.N(this,this.wE);this.vE.listen("focus",this.u8,this);g.N(this,this.vE);
var h;(this.qx=c.Jl?null:new O1a(this.api,b,this.contextMenu,this.Jg,this.ke,this.Bw,function(){return a.vr()},null==(h=this.Fg)?void 0:h.progressBar))&&g.N(this,this.qx);
this.Pr||(this.MX=new k1a(this.api),g.N(this,this.MX),g.UT(this.api,this.MX.element,4),this.J1=new h2a(this.api),g.N(this,this.J1),g.UT(this.api,this.J1.element,4));this.b2=new y4a(this.api);g.N(this,this.b2);g.UT(this.api,this.b2.element,4);if(this.Pr){var l=new C1a(this.api,this.api.U().Wa);g.N(this,l);g.UT(this.api,l.element,5);l.subscribe("show",function(m){a.Wz(l,m)});
b=new G1a(this.api,l);g.N(this,b);g.UT(this.api,b.element,4)}this.PF.push(this.ke.element);this.T(this.api,"fullscreentoggled",this.Ox);this.T(this.api,"offlineslatestatechange",function(){a.api.mF()&&MV(a.Jg,128,!1)});
this.T(this.api,"cardstatechange",function(){a.Mq()});
this.T(this.api,"resize",this.zaa);this.T(this.api,"videoplayerreset",this.onReset);this.T(this.api,"showpromotooltip",this.Zaa);g.WV.prototype.init.call(this)};
g.k.Se=function(){return this.tooltip};
g.k.IP=function(){return this.Fg};
g.k.Wz=function(a,b){b?this.bE=a:this.bE=null;this.Mq()};
g.k.nE=function(a,b){if(b)this.Iu.push(a);else for(b=this.Iu.length;0<=b;b--)if(this.Iu[b]===a){this.Iu.splice(b,1);break}MV(this.Jg,64,0<this.Iu.length)};
g.k.kC=function(){this.api.Uk()&&this.api.zp();return!!this.bE||L4a(this)||g.WV.prototype.kC.call(this)};
g.k.dC=ea(4);g.k.Ds=ea(8);g.k.Cs=ea(11);
g.k.Mq=function(){var a=!this.kC(),b=a&&this.api.Uk()&&!g.MF(this.api.getPlayerStateObject(),2)&&!g.vT(this.api.getVideoData())&&!this.api.U().C&&!this.api.bd(),c=this.Pr&&g.RT(this.api)&&g.MF(this.api.getPlayerStateObject(),128);a||c?(this.oM.show(),this.pM.show()):(this.oM.hide(),this.pM.hide(),this.api.im(this.ji.element));b?this.Xg.rd():this.Xg.Mb();this.Fg&&u4a(this.Fg,this.aS||!a);this.api.L("web_player_hide_overflow_button_if_empty_menu")&&M4a(this);g.WV.prototype.Mq.call(this)};
g.k.Yx=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Us(a),h=d||this.Fg&&g.Jf(this.Fg.Ib(),b),l=d=null;null!=c&&h||(d=g.Us(b),l=g.Ss(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Fg,d=v4a(b),l=w4a(b),h=this.api.ob().getPlayerSize().height,c=g.ze(c,d,d+l-f.width),f=h-x4a(b)-f.height):g.Jf(this.ji.element,b)?(b=this.api.ob().getPlayerSize().width,c=g.ze(c,12,b-f.width-12),f=this.Fh()?this.qO:this.pO,"gvn"===this.api.U().playerStyle&&(f+=
20),this.Pr&&(f-=this.Fh()?26:18)):(b=this.api.ob().getPlayerSize(),c=g.ze(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.pB=function(a){a&&(this.api.im(this.ji.element),this.Fg&&this.api.im(this.Fg.Ib()));this.iK&&(g.Uv(this.contextMenu.element,"ytp-autohide",a),g.Uv(this.contextMenu.element,"ytp-autohide-active",!0));g.WV.prototype.pB.call(this,a)};
g.k.mR=function(){g.WV.prototype.mR.call(this);this.iK&&(g.Uv(this.contextMenu.element,"ytp-autohide-active",!1),this.iK&&(this.contextMenu.hide(),this.ai&&this.ai.hide()))};
g.k.Rn=function(a,b){var c=this.api.ob().getPlayerSize();c=new g.Fs(0,0,c.width,c.height);if(a||this.Jg.B&&!this.kC()){if(this.api.U().hn||b)a=this.Fh()?this.qO:this.pO,c.top+=a,c.height-=a;this.Fg&&(c.height-=x4a(this.Fg))}return c};
g.k.Ox=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.U().externalFullscreen||(b.parentElement.insertBefore(this.wE.element,b),b.parentElement.insertBefore(this.vE.element,b.nextSibling))):g.AE(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.wE.detach(),this.vE.detach());this.jc();this.Nq()};
g.k.Fh=function(){var a=this.api.U();return this.api.isFullscreen()&&!a.Z||!1};
g.k.showControls=function(a){this.BO=!a;this.Mq()};
g.k.jc=function(){var a=this.Fh();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.Uv(this.contextMenu.element,"ytp-big-mode",a);this.Mq();this.api.L("web_player_hide_overflow_button_if_empty_menu")||M4a(this);this.Nq();var b=this.api.bd();b&&a?(a=(this.api.ob().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Is(this.ji.element,"padding-left",a+"px"),g.Is(this.ji.element,"padding-right",a+"px")):b&&(g.Is(this.ji.element,"padding-left",""),g.Is(this.ji.element,"padding-right",""));g.WV.prototype.jc.call(this)};
g.k.tP=function(){if(L4a(this)&&!g.RT(this.api))return!1;var a=this.api.getVideoData();return!g.BR(this.api.U())||2===this.api.getPresentingPlayerType()||!this.Bi||((a=this.Bi||a.Bi)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.V(a.videoDetails,oXa)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.WV.prototype.tP.call(this):!1};
g.k.Nq=function(){g.WV.prototype.Nq.call(this);this.api.logVisibility(this.title.element,!!this.Zn);this.EB&&this.EB.Lc(!!this.Zn);this.channelAvatar.Lc(!!this.Zn);this.overflowButton&&this.overflowButton.Lc(this.Pg()&&!!this.Zn);this.shareButton&&this.shareButton.Lc(!this.Pg()&&!!this.Zn);this.Yo&&this.Yo.Lc(!this.Pg()&&!!this.Zn);this.searchButton&&this.searchButton.Lc(!this.Pg()&&!!this.Zn);this.Dn&&this.Dn.Lc(!this.Pg()&&!!this.Zn);if(!this.Zn){this.api.im(this.ji.element);for(var a=0;a<this.vH.length;a++){var b=
this.vH[a];b.gk()&&b.Mb()}}};
g.k.Gc=function(a){this.Fg&&u4a(this.Fg,this.kC());this.Mq();g.WV.prototype.Gc.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){return this.qx?this.qx.handleGlobalKeyDown(a,b,c,d,e,f,h,l):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.qx?this.qx.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.vr=function(){if(this.contextMenu.Gb)return this.contextMenu.Mb(),!0;if(this.Iu.length)return this.Iu[this.Iu.length-1].Mb(),!0;if(this.bE)return this.bE.Mb(),!0;this.Fg&&this.api.im(this.Fg.Ib());this.Tg&&this.api.im(this.Tg.element);return g.WV.prototype.vr.call(this)};
g.k.aT=function(a,b){this.UQ=b;this.nE(a,b);this.X2()};
g.k.X2=function(){var a=this.UQ||this.contextMenu.gk();this.XN!==a&&(this.XN=a,this.api.jb("onAutonavPauseRequest",this.XN))};
g.k.t8=function(){N4a(this,this.api.getRootNode(),!0).focus()};
g.k.u8=function(){N4a(this,this.api.getRootNode(),!1).focus()};
g.k.Pn=function(){return this.Fg&&this.Fg.B};
g.k.tv=function(){this.Jg.tv()};
g.k.dQ=function(){this.ke.hide()};
g.k.gH=function(a){this.ke.gH(!a.isOrWillBePlaying())};
g.k.IG=function(a,b,c,d){this.Bw.IG(a,b,c,d)};
g.k.HG=function(a,b){j1a(this.Bw,a,b)};
g.k.zaa=function(){O4a(this,!0)};
g.k.onReset=function(){M4a(this)};
g.k.Zaa=function(a){O4a(this,!1,a)};
g.k.ZX=function(){return this.contextMenu};
g.k.wz=function(a){var b;if(null!=(b=this.Fg)){for(var c=Number(a.element.getAttribute("data-priority"))||0,d=0,e=g.u(b.j.element.children),f=e.next();!(f.done||c<(Number(f.value.getAttribute("data-priority"))||0));f=e.next())d++;a.Ja(b.j.element,d)}};
g.k.Fw=function(){var a,b=null==(a=this.Fg)?void 0:a.progressBar;if(b){var c;(null==(c=b.B)?0:c.isEnabled)&&b.Fw()}};g.y(g.zX,g.tV);g.zX.prototype.Wm=function(){return!1};
g.zX.prototype.create=function(){var a=this.player.U();g.cG(a)&&a.B?this.chrome=new g.WV(this.player):this.chrome=new g.yX(this.player);g.N(this,this.chrome);this.chrome.init();this.player.Eg("ux")};
g.zX.prototype.Di=function(){return this.chrome};var Q4a=!1;g.y(BX,g.I);BX.prototype.C=function(a,b){if(b){b=b instanceof g.sP?b:CX(this,b);var c;(null==(c=this.j.get(a))?void 0:uP(c.location))!==uP(b)&&this.j.set(a,new Y4a(b,a))}else this.j.delete(a)};
BX.prototype.load=function(){var a=this,b,c,d,e,f,h,l,m,n,p;return g.G(function(q){switch(q.j){case 1:b=a.j.get(0);g.Ba(q,2);var r;if(r=b&&!a.B)r=uP(b.location),r=a.B===EX(r);if(r){q.Ia(4);break}return g.z(q,W4a(a,a.B?2:0),5);case 5:if(c=q.B)a.C(0,c),pRa(c)&&a.C(1,wP(c));case 4:g.Ca(q,3);break;case 2:d=g.Da(q);g.BE(d);if(!a.B){q.Ia(3);break}a.B=!1;return g.z(q,a.load(),7);case 7:return q.return();case 3:if(!a.W.experiments.fb("html5_onesie_probe_ec_hosts")){q.Ia(0);break}g.Ba(q,9);e=a;f=e.C;h=3;return g.z(q,
W4a(a,1),11);case 11:return f.call(e,h,q.B),l=a,m=l.C,n=4,g.z(q,W4a(a,2),12);case 12:m.call(l,n,q.B);g.Ca(q,0);break;case 9:p=g.Da(q),g.BE(p),g.Aa(q)}})};
BX.prototype.N=function(){var a=this,b,c;return g.G(function(d){g.Jv(a.Z);b=g.xI(a.W.experiments,"html5_onesie_prewarm_max_lact_ms");if(QD()>=b)return d.return();(c=a.j.get(0))&&U4a(a,c);g.Aa(d)})};
var R4a={L3a:0,Z6a:1,c5a:2,b7a:3,Awa:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};var FX=[],Egb=!1;g.V_=Kd(function(){var a="";try{var b=g.yf("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.y(GX,g.I);GX.prototype.K=function(){null!=this.j&&this.app.getVideoData()!==this.j&&FS(this.j)&&mhb(this.app,this.j,void 0,void 0,this.B)};
GX.prototype.G=function(){if(null!=this.j&&this.app.getVideoData()!==this.j&&null!=this.tb&&null!=this.C&&null!=this.D&&FS(this.j)){var a=a5a(this.tb,this.C,this.D);null==a?mhb(this.app,this.j,void 0,void 0,this.B):(this.tb.ma("sgap",a),this.tb.getVideoData().Y&&G0(this.tb,!1))}};
GX.prototype.N=function(a){var b=this.app.Zc();if(b){var c=this.app.getCurrentTime();5<Math.abs(c-a.end/1E3)&&b.ma("glrs",{cmt:c});b.seekTo(0,{seekSource:58});b.ma("glrre",{cmt:c})}};
GX.prototype.va=function(){this.j=null;g.I.prototype.va.call(this)};g.y(g.HX,JK);g.k=g.HX.prototype;g.k.isView=function(){return!0};
g.k.FS=function(){var a=this.mediaElement.getCurrentTime();if(a<this.start)try{var b=this.mediaElement.Ch(),c=tK(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.Qw=function(){return wK(this.mediaElement.Qw(),this.start,this.end)};
g.k.Ch=function(){return wK(this.mediaElement.Ch(),this.start,this.end)};
g.k.TE=function(){return wK(this.mediaElement.TE(),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.FS()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(a){}}return this.mediaElement.play()};
g.k.pc=function(){var a=JK.prototype.pc.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.cI=function(){return this.mediaElement.cI()};
g.k.activate=function(a){this.mediaElement.activate(a)};
g.k.Er=function(){return this.mediaElement.Er()};
g.k.playVideo=function(){return this.mediaElement.playVideo()};
g.k.QO=function(){this.mediaElement.QO()};
g.k.NO=function(){this.mediaElement.NO()};
g.k.Qv=function(){return this.mediaElement.Qv()};
g.k.Ib=function(){return this.mediaElement.Ib()};
g.k.Ef=function(){return this.mediaElement.Ef()};
g.k.eI=function(a){this.mediaElement.eI(a)};
g.k.ML=function(){this.mediaElement.ML()};
g.k.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.mediaElement.setPlaybackRate(a)};
g.k.Ot=function(){return this.mediaElement.Ot()};
g.k.setLoop=function(a){this.mediaElement.setLoop(a)};
g.k.canPlayType=function(a,b){return this.mediaElement.canPlayType(a,b)};
g.k.isPaused=function(){return this.mediaElement.isPaused()};
g.k.isSeeking=function(){return this.mediaElement.isSeeking()};
g.k.isEnded=function(){return this.mediaElement.isEnded()};
g.k.BJ=function(){return this.mediaElement.BJ()};
g.k.cC=function(a){this.mediaElement.cC(a)};
g.k.dI=function(){return this.mediaElement.dI()};
g.k.load=function(){this.mediaElement.load()};
g.k.pause=function(){this.mediaElement.pause()};
g.k.Rk=function(){return this.mediaElement.Rk()};
g.k.CJ=function(){return this.mediaElement.CJ()};
g.k.dh=function(){return this.mediaElement.dh()};
g.k.wf=function(){return this.mediaElement.wf()};
g.k.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
g.k.Xh=function(){return this.mediaElement.Xh()};
g.k.Yu=function(){return this.mediaElement.Yu()};
g.k.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.k.Qt=function(){return this.mediaElement.Qt()};
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.PD=ea(29);g.k.qH=ea(31);g.k.rH=ea(33);g.k.Fz=ea(35);g.k.qE=function(){return this.mediaElement.qE()};
g.k.Zs=function(a){this.mediaElement.Zs(a)};
g.k.VE=function(a){return this.mediaElement.VE(a)};
g.k.uQ=function(){return this.mediaElement.uQ()};
g.k.stopVideo=function(){this.mediaElement.stopVideo()};
g.k.TO=function(a){this.mediaElement.TO(a)};
g.k.audioTracks=function(){return this.mediaElement.audioTracks()};
g.k.YS=function(a){this.mediaElement.YS(a)};g.y(d5a,g.I);g.k=d5a.prototype;g.k.getStatus=function(){return this.status};
g.k.Bn=function(){var a=this.j.getVideoData(),b=this.B.getVideoData(),c;if((c=a.C)&&!(c=!a.j)){c=a.j;for(var d=!1,e=!1,f=g.u(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.Je()){f=$4a(this.policy,this.j,this.B,this.cn);h=e5a(this);c=h.O7;e=h.p_;d=h.tX;h=h.n_;if(!this.N){var l=1E3*this.B.Vf(),m=this.j.Vf();m=1E3*(d-c-m);f&&"in-the-past"===f.msg&&(m=0);a=a.isAd();this.B.CG(l,
m,a);this.N=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.Dg(b,f)):2===this.status.status?o5a(this):(a=this.j.Er())&&GK(a)&&(!CK(a)&&g.hB()?this.Dg("mse_closed"):b.j&&mP(b.j)&&a.B&&!a.B.yJ()?this.Dg("encr_upgrade"):(b=this.j.Je(),b.isEnded()?this.Dg("elem_ended"):0>e?this.Dg("next_player_future"):(this.K=d,this.currentVideoDuration=d-c,this.C=KEa(a,c,d,!0),this.D=KEa(a,e,h,!1),a=this.B.getVideoData().clientPlaybackNonce,this.j.ma("gaplessPrep",{cpn:a}),k5a(this.j,this.C,!1,l5a(this)),this.j.setMediaElement(f5a(b,
c,d,!this.j.getVideoData().isAd())),JX(this,2),o5a(this))))}else this.Dg("no-elem")};
g.k.Sy=function(a){var b=a===n5a(this).iT,c=b?this.C.j:this.C.B;b=b?this.D.j:this.D.B;if(c.isActive&&!b.isActive){var d=this.K;sK(a.He(),d-.01)&&(JX(this,4),c.D1(!1),(1===this.G?this.j:this.B).ma("sbh",{}),b.D1(!0),0!==this.G&&(this.j.getVideoData().qW=!0));a=this.D.B;if(this.D.j.isActive&&a.isActive&&(JX(this,5),0!==this.G)){this.j.ma("sbs",{});var e;if(null!=(e=this.B)&&TS(e.videoData)&&e.videoData.L("html5_gapless_append_early")){var f;null!=(f=e.ya)&&f.mf()}}}};
g.k.J_=function(){this.fu()&&this.Dg("player-reload-after-handoff")};
g.k.Dg=function(a,b){b=void 0===b?{}:b;if(!this.Na()&&6!==this.status.status){var c=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.j&&this.B){var d=this.B.getVideoData().clientPlaybackNonce;this.j.Rd(new RJ("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.cn,msg:a})));G0(this.j,c)}this.Kq.reject(a);this.dispose()}};
g.k.fu=function(){return 4<=this.status.status&&6>this.status.status};
g.k.va=function(){m5a(this);this.j.unsubscribe("newelementrequired",this.J_,this);if(this.C){var a=this.C.B;this.C.j.Gd.unsubscribe("updateend",this.Sy,this);a.Gd.unsubscribe("updateend",this.Sy,this)}g.I.prototype.va.call(this)};
g.k.CU=function(a){g.OF(a,128)&&this.Dg("player-error-event")};g.y(q5a,g.I);g.k=q5a.prototype;g.k.clearQueue=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.D&&this.D.reject("Queue cleared");this.app.U().L("html5_gapless_fallback_on_qoe_restart_v2")||b&&this.B&&G0(this.B,!1);LX(this,a)};
g.k.po=function(){return!this.j};
g.k.pF=function(a){return this.j===a};
g.k.fu=function(){var a;return(null==(a=this.C)?void 0:a.fu())||!1};
g.k.va=function(){LX(this);g.I.prototype.va.call(this)};g.y(z5a,g.UE);g.k=z5a.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f,h,l){return a?4:v5a()?3:b?2:c?1:d?5:e?7:f?8:h?9:l?10:0};
g.k.Vm=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Kf())};
g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.Kf())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Kf())};
g.k.fC=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Kf())};
g.k.setSqueezeback=function(a){this.C!==a&&(this.C=a,this.Kf())};
g.k.jC=function(a){this.D!==a&&(this.D=a,this.Kf())};
g.k.Xh=function(){return this.j};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.fA=function(){return this.fullscreen};
g.k.isMinimized=function(){return this.B};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return v5a()};
g.k.du=function(){return this.pictureInPicture};
g.k.EA=function(){return!1};
g.k.LA=function(){return this.C};
g.k.hk=function(){return this.D};
g.k.Kf=function(){this.publish("visibilitychange");var a=this.getVisibilityState(this.Xh(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.du(),this.EA(),this.LA(),this.hk());a!==this.K&&this.publish("visibilitystatechange");this.K=a};
g.k.va=function(){y5a(this.G);g.UE.prototype.va.call(this)};g.y(QX,g.I);QX.prototype.Hk=function(){if(!this.zf.length)return[];var a=this.zf;this.zf=[];this.C=g.Bb(a).info;return a};
QX.prototype.pG=function(){return this.zf};
QX.prototype.va=function(){g.I.prototype.va.call(this);this.j=null;this.zf.length=0;this.ib.length=0;this.C=null};g.y(SX,g.I);g.k=SX.prototype;g.k.zr=function(){return Array.from(this.Xc.keys())};
g.k.Fs=function(a){a=this.Xc.get(a);var b=a.zf;a.Bz+=b.totalLength;a.zf=new BN;return b};
g.k.Og=function(a){return this.Xc.get(a).Og};
g.k.gx=function(a){return this.Xc.get(a).gx};
g.k.vB=function(a,b,c,d){this.Xc.get(a)||G5a(this,a,b);b=this.Xc.get(a);if(this.manifest){a=I5a(this,a,c);if(d)for(var e=g.u(a),f=e.next();!f.done;f=e.next()){f=f.value;var h=d;f.Z=h;f.startTime+=h;f.C+=h;f.D+=h}H5a(this,c.Up,b,a)}else c.ao?b.dZ=c.zs:b.MF.push(c),b.RS.push(c)};
g.k.Qn=function(a){var b;return(null==(b=this.Xc.get(a))?void 0:b.ib)||[]};
g.k.mB=function(){for(var a=g.u(this.Xc.values()),b=a.next();!b.done;b=a.next())b=b.value,b.pS&&(b.Cg&&b.Cg(),b.pS=!1)};
g.k.mq=function(a,b){this.logger.debug(function(){return"[onMediaEnd] formatId: "+b});
var c=this.Xc.get(b);if(TX){if(c&&!c.Og){if(c.Aj.get(a))c.Aj.get(a).jx=!0;else{var d;(null==(d=this.bf)?0:d.Kb)&&c.Aj.set(a,{data:new BN,uI:0,jx:!0})}c.gx=!0}}else c&&!c.gx&&(c.gx=!0)};
g.k.Hk=function(a){if(TX){var b=this.Xc.get(a);if(b)for(var c=g.u(b.Aj),d=c.next();!d.done;d=c.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;var f=b.kH.get(d);if(oQ(f[0])){if(!e.jx)continue;var h=e.data,l=0,m=[];f=g.u(f);for(var n=f.next();!n.done;n=f.next()){n=n.value;var p=n.B,q=DN(h,l,p);l+=p;m.push(new BQ(n,q))}b.Ax.push.apply(b.Ax,g.qa(m))}else if(0<e.data.totalLength||!f[0].range&&e.jx)h=void 0,l=f[0],m=e.uI,f=e.data,l.range||(h=e.jx),h=new BQ(uSa(l,l.Tb+m,f.totalLength,h),f),
e.uI+=h.info.B,b.Ax.push(h);b.Aj.get(d).data=new BN;e.jx&&b.Aj.delete(d)}a=this.Xc.get(a);if(!a)return[];b=a.Ax;a.Ax=[];c=g.u(b);for(d=c.next();!d.done;d=c.next())a.Bz+=d.value.info.B;return b||[]}c=null==(b=this.Xc.get(a))?void 0:b.cg;if(!c)return[];this.Bm(a,c);return c.Hk()};
g.k.yl=function(a){if(TX)return VX(this,a);var b,c,d;return!!(null==(c=null==(b=this.Xc.get(a))?void 0:b.cg)?0:null==(d=c.pG())?0:d.length)||VX(this,a)};
g.k.Bm=function(a,b){for(;VX(this,a);){var c=this.Fs(a);var d=a;d=this.Xc.get(d).Og&&!E5a(this,d);RX(b,c,d&&F5a(this,a))}};
g.k.va=function(){g.I.prototype.va.call(this);for(var a=g.u(this.Xc.keys()),b=a.next();!b.done;b=a.next())B5a(this,b.value);var c;if(null==(c=this.bf)?0:c.ge)for(a=g.u(this.Xc.values()),b=a.next();!b.done;b=a.next())b=b.value,b.Aj.clear(),b.kH.clear(),b.Ax.length=0,b.ib.length=0,b.RS.length=0,b.MF.length=0;this.Xc.clear()};
var TX=!1;g.y(YX,g.I);g.k=YX.prototype;g.k.enqueue=function(a,b){if(a.D!==this)return!1;if(0===this.segments.length||(void 0===b?0:b))this.j=a;this.segments.push(a);return!0};
g.k.Xe=function(){return this.lc||0};
g.k.Fi=function(){return this.C||0};
g.k.removeAll=function(){for(;this.segments.length;){var a=void 0;null==(a=this.segments.pop())||a.dispose()}this.B.clear()};
g.k.va=function(){this.removeAll();g.I.prototype.va.call(this)};
g.y(U5a,g.I);g.k=U5a.prototype;g.k.Xe=function(){return this.lc};
g.k.Fi=function(){return this.B};
g.k.getType=function(){return this.type};
g.k.getVideoData=function(){return this.videoData};
g.k.dH=function(a){hXa(a);this.videoData=a};
g.k.va=function(){V5a(this);g.I.prototype.va.call(this)};g.y(g.cY,g.I);g.k=g.cY.prototype;g.k.RI=function(a,b,c){return new g.cJ(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
g.k.onCueRangeEnter=function(a){this.Ma.push(a);var b=a.getId();this.ea.ma("sdai",{oncueEnter:1,cpn:b,start:a.start,end:a.end,ct:(this.ea.getCurrentTime()||0).toFixed(3),cmt:(this.ea.Vf()||0).toFixed(3)});var c=""===b;this.gb.add(a.B);var d=this.D.get(b);if(!c&&(this.ea.ma("sdai",{enterAdCueRange:1}),this.ea.getVideoData().jo()&&(null==d?0:d.JA))){if(this.N){var e;a=(null==(e=this.j)?void 0:e.Ug)||this.ea.getCurrentTime();gY(this.ea,d,this.EE(),a,this.ea.getCurrentTime(),!1,!0);this.N=""}this.Sa=
!0;a=d.Yq?1E3*d.Yq:d.lc;(b=this.B.get(d.cpn))&&this.ea.removeCueRange(b);this.B.delete(d.cpn);this.D.delete(d.cpn);b=this.G.indexOf(d);0<=b&&this.G.splice(b,1);b=[];c=g.u(this.C);for(e=c.next();!e.done;e=c.next())e=e.value,e.end<=a?this.ea.removeCueRange(e):b.push(e);this.C=b;m6a(this,0,a+d.durationMs);return}if(this.Sa&&!this.j)this.Sa=!1,!c&&d&&(c=this.ea.getCurrentTime(),hY(this,{Wd:a,isAd:!0,Yp:!0,Ug:c,adCpn:b},{isAd:!1,Yp:!1,Ug:c}),this.Wb=d.cpn,this.api.publish("serverstitchedvideochange",d.md,
d.Yq),d=fY(this,"midab",d),this.ea.ma("sdai",d),this.lm=1),this.qa=!1;else if(this.j){if(this.j.Yp)this.ea.ma("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Ug,cpn:b,currentTime:this.ea.getCurrentTime()}),d=this.ea.getCurrentTime(),a={Wd:a,isAd:!c,Yp:!0,Ug:d,adCpn:b},d={Wd:this.j.Wd,isAd:this.j.isAd,Yp:!1,Ug:d,adCpn:this.j.adCpn},this.j.Wd&&this.gb.delete(this.j.Wd.B),hY(this,a,d);else{if(this.j.Wd===a){this.ea.ma("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,
transitionTime:this.j.Ug,cpn:b,currentTime:this.ea.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.ea.ma("sdai",{dchtsc:b});this.j=void 0;return}d={Wd:a,isAd:!c,Yp:!0,Ug:this.ea.getCurrentTime(),adCpn:b};hY(this,d,this.j)}this.j=void 0;this.qa=!1}else this.j={Wd:a,isAd:!c,Yp:!0,Ug:this.ea.getCurrentTime(),adCpn:b}};
g.k.onCueRangeExit=function(a){var b=a.getId();this.ea.ma("sdai",{oncueExit:1,cpn:b,start:a.start,end:a.end,ct:(this.ea.getCurrentTime()||0).toFixed(3),cmt:(this.ea.Vf()||0).toFixed(3)});var c=""===b,d=this.D.get(b);if(this.ea.getVideoData().jo()&&!c&&d){if(d.JA)return;d.JA=!0;this.K.clear();if(this.W.L("html5_lifa_no_rewatch_ad_sbc"))if(this.ea.hO()){var e=d.lc;this.ea.xS(e/1E3,(e+d.durationMs)/1E3)}else this.ea.ma("lifa",{remove:0})}if(this.gb.has(a.B))if(this.gb.delete(a.B),this.Ma=this.Ma.filter(function(f){return f!==
a}),this.Sa&&(this.qa=this.Sa=!1,this.ea.ma("sdai",{cref:1})),this.j){if(this.j.Yp){if(this.j.Wd===a){this.ea.ma("sdai",{same_cue_range_pair_exit:1,
acpn:this.j.adCpn,transitionTime:this.j.Ug,cpn:b,currentTime:this.ea.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.ea.ma("sdai",{dchtsc:b});this.j=void 0;return}b={Wd:a,isAd:!c,Yp:!1,Ug:this.ea.getCurrentTime(),adCpn:b};hY(this,this.j,b)}else this.ea.ma("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.Ug,upcomingCpn:b,contentCpn:this.ea.getVideoData().clientPlaybackNonce,currentTime:this.ea.getCurrentTime()});
this.j=void 0;this.qa=!1}else this.j={Wd:a,isAd:!c,Yp:!1,Ug:this.ea.getCurrentTime(),adCpn:b};else this.ea.ma("sdai",{ignore_single_exit:1})};
g.k.EE=function(){return{cpn:this.ea.getVideoData().clientPlaybackNonce,durationMs:0,lc:0,playerType:1,Vd:0,videoData:this.ea.getVideoData(),errorCount:0}};
g.k.Dm=function(a){return this.Fn?!1:this.ea.getVideoData().jo()?(a=iY(this,1E3*a),!!a&&!a.JA):!!iY(this,1E3*a)};
g.k.seekTo=function(a,b,c,d){a=void 0===a?0:a;b=void 0===b?{}:b;c=void 0===c?!1:c;d=void 0===d?null:d;if(this.ea.getVideoData().jo()&&this.W.L("html5_lifa_ad_removed_ne")&&a<=this.Wa/1E3)this.ea.pauseVideo(),this.Wa=0,this.qa=!0,M_(this.ea),this.ea.seekTo(a),this.ea.playVideo();else if(this.qa=!0,c)X5a(this,a,b);else{c=this.api.Zc();var e=c===this.bb?this.Ab:null;jY(this,!1);this.Nb=a;this.Kb=b;null!=d&&this.Hb.start(d);c&&(this.Ab=e||c.getPlayerState(),lgb(c),this.bb=c)}};
g.k.va=function(){jY(this,!1);h6a(this);i6a(this);g.I.prototype.va.call(this)};
g.k.gT=function(a){this.Dc=a;this.ea.ma("sdai",{swebm:a})};
g.k.fl=function(a,b,c,d){if(c&&b){var e;this.W.L("html5_ssdai_use_media_time")?e=lY(this,d):e=this.K.get(a);e&&(e.locations||(e.locations=new Map),d=Number(b.split(";")[0]),c=new g.sP(c),this.Va&&this.ea.ma("sdai",{hdlredir:1,itag:b,seg:a,hostport:uP(c)}),e.locations.set(d,c))}};
g.k.OJ=function(a,b,c,d,e,f){var h=3===d;e=k6a(this,a,b,d,c,f);if(!e)return nY(this,b,h),e=g.j6a(this,b)?"undec":"ncp",this.ea.ma("sdai",{gvprp:e,mt:a,seg:b,tt:d,itag:c,ce:f}),null;h||this.K.set(b,e);a=e.Zl;var l;d=(null==(l=mY(this,b-1,d))?void 0:l.Ft)||"";""===d&&this.ea.ma("sdai",{eds:1});l=oR(e.ssdaiAdsConfig||"")||void 0;c=this.ea.getVideoData();var m;f=(null==(m=c.B)?void 0:m.containerType)||0;m=c.rD[f];b=e.Dy&&b>=e.Dy?e.Dy:void 0;return{Tm:{jI:a?o6a(this,a):[],BW:l,Ft:d,O1:b,e3:df(m.split(";")[0]),
f3:m.split(";")[1]||""}}};
g.k.HP=function(a){a:{if(!this.Fn){var b=lY(this,a);if(!(this.ea.getVideoData().jo()&&(null==b?0:b.JA)))break a}b=void 0}if(!b)return this.ea.ma("sdai",{gvprp:"ncp",mt:a}),null;a=b.Zl;b=oR(b.ssdaiAdsConfig||"")||void 0;var c=this.ea.getVideoData(),d,e=(null==(d=c.B)?void 0:d.containerType)||0;d=c.rD[e];return{jI:a?o6a(this,a):[],BW:b,e3:df(d.split(";")[0]),f3:d.split(";")[1]||""}};
g.k.cA=function(a,b,c,d,e,f){var h=Number(c.split(";")[0]);e=3===d;a=k6a(this,a,b,d,c,f);this.Va&&this.ea.ma("sdai",{gdu:1,seg:b,itag:h,pb:""+!!a});if(!a)return nY(this,b,e),null;a.locations||(a.locations=new Map);if(!a.locations.has(h)){var l,m;f=null==(l=a.videoData.getPlayerResponse())?void 0:null==(m=l.streamingData)?void 0:m.adaptiveFormats;if(!f)return this.ea.ma("sdai",{gdu:"noadpfmts",seg:b,itag:h}),nY(this,b,e),null;l=f.find(function(v){return v.itag===h});
if(!l||!l.url){var n=a.videoData.videoId;a=[];d=g.u(f);for(var p=d.next();!p.done;p=d.next())a.push(p.value.itag);this.ea.ma("sdai",{gdu:"nofmt",seg:b,vid:n,itag:h,fullitag:c,itags:a.join(",")});nY(this,b,e);return null}a.locations.set(h,new g.sP(l.url,!0))}l=a.locations.get(h);if(!l)return this.ea.ma("sdai",{gdu:"nourl",seg:b,itag:h}),nY(this,b,e),null;l=new eQ(l);this.Dc&&(l.get("dvc")?this.ea.ma("sdai",{dvc:l.get("dvc")||""}):l.set("dvc","webm"));var q;(m=null==(q=mY(this,b-1,d))?void 0:q.Ft)&&
l.set("daistate",m);a.Dy&&b>=a.Dy&&l.set("skipsq",""+a.Dy);(m=this.ea.getVideoData().clientPlaybackNonce)&&l.set("cpn",m);q=[];a.Zl&&(q=o6a(this,a.Zl),0<q.length&&l.set("acpns",q.join(",")));e||this.K.set(b,a);e=null;e=l.get("aids");var r;if(((null==(p=e)?void 0:null==(r=p.split(","))?void 0:r.length)||0)!==q.length)if(a.Zl){var t;this.ea.ma("sdai",{acpns_aids_nm:1,ids:q6a(this,a.Zl).join("_"),acpns:q.join("_"),aids:null==(t=e)?void 0:t.replace(/,/g,"_"),cpn:m,trackType:d})}else this.ea.ma("sdai",
{acpns_aids_nm:"noAdBreakId",cpn:m});d=l.Ke();2048<(null==d?void 0:d.length)&&this.ea.ma("sdai",{urltoolong:1,sq:b,itag:h,len:d.length});this.Va&&(d&&(r=a.cpn,p=a.Zl,s6a(this,r,p),p&&!this.ge.has(p)&&(r=p6a(this,r,p),t=r6a(this,p),this.ea.ma("sdai",{iofa:r}),this.ea.ma("sdai",{noawnzd:t-r}),this.ea.ma("sdai",{acpns:q.join("."),aids:null==(n=e)?void 0:n.replace(/,/g,".")}),this.ge.add(p))),this.ea.ma("sdai",{gdu:"v",seg:b,itag:c,ast:a.lc.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId}));
return d};
g.k.UG=function(a,b,c){var d=kY(this,a,c);return(d=d?(d.lc+d.durationMs)/1E3:0)&&b>d?(this.Zu(a,c,!0),this.ea.seekTo(d),!0):!1};
g.k.Zu=function(a,b,c){c=void 0===c?!1:c;if(a=kY(this,a,b)){var d=void 0,e=a.Zl;if(e){this.ea.ma("sdai",{skipadonsq:b,sts:c,abid:e,acpn:a.cpn,avid:a.videoData.videoId});c=this.Y.get(e);if(!c)return;c=g.u(c);for(e=c.next();!e.done;e=c.next())e=e.value,e.Dy=b,e.lc>a.lc&&(d=e)}this.N=a.cpn;l6a(this);b=this.ea.getCurrentTime();d6a(this,a,d,b,b,!1,!0)}};
g.k.IS=function(){for(var a=g.u(this.G),b=a.next();!b.done;b=a.next())b.value.Dy=NaN;l6a(this);this.ea.ma("sdai",{rsac:"resetSkipAd",sac:this.N});this.N=""};
g.k.BH=ea(42);
g.k.PR=function(a,b,c,d,e,f,h,l,m){0<d.length&&this.ea.ma("sdai",{onssinfo:1,sq:a,start:b.toFixed(3),cpns:d.join(","),ds:e.join(","),isVideo:h?1:0});m&&(h?this.eb.set(a,{Ft:m,sz:l}):this.Ga.set(a,{Ft:m,sz:l}));if(h){if(d.length&&e.length)for(this.N&&this.N===d[0]&&this.ea.ma("sdai",{skipfail:1,sq:a,acpn:this.N}),a=b+this.St(),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.Yq=null!=m.Yq?Math.min(m.Yq,l):l;if(d.length&&e.length)for(b=1E3*(b+this.St()),c=0;c<d.length;c++)if(a=d[c],
h=1E3*e[c],a===this.ea.getVideoData().clientPlaybackNonce)n6a(this,b,b+h,!1),b+=h;else{this.ud.has(a)||(this.ea.ma("sdai",{adCpnFromEmsg:1}),this.ud.add(a));l=0;c<f.length&&(l=1E3*f[c]);m=this.B.get(a);var n=!1;m?(m.start=b-l,m.end=b+h,this.ea.Ah.sync()):(m=this.RI(b-l,b+h,a),this.B.set(a,m),this.ea.ma("sdai",{newAdCR:1,cpn:a,startTime:m.start,endTime:m.end}),n=!0);b=m.end;n6a(this,m.start,m.end,!0);if(n)for(this.ea.addCueRange(m),a=this.ea.rE("serverstitchedcuerange",36E5),a=g.u(a),h=a.next();!h.done;h=
a.next())this.B.delete(h.value.getId())}else 5!==c&&4!==c||n6a(this,1E3*(b+this.St()),1E3*(b+this.St())+5E3,!1)}};
g.k.GE=ea(44);g.k.St=function(){return this.ea.St()};
g.k.iq=function(a){this.ea.ma("timelineerror",{e:a})};
g.k.ZE=function(a){this.Ca&&this.ra&&this.Ha.push(this.ra);a&&this.ra&&this.vc.push(this.ra);this.ra=null;this.ea.ZE(a)};
g.k.QJ=function(a){if(this.Fn||a.identifier&&this.je.has(a.identifier))this.Va&&this.ea.ma("sdai",{startnoad:a.identifier}),eY(this);else if(Ys(this.Ha,function(c){return c.identifier===a.identifier}))this.ea.ma("sdai",{timedoutcp:1}),this.Z.start(0);
else if(Ys(this.vc,function(c){return c.identifier===a.identifier}))this.ea.ma("sdai",{fetchedcp:1}),eY(this);
else if(this.Z.isActive()){var b;this.ea.ma("sdai",{racingcp:(null==(b=this.ra)?void 0:b.identifier)+"_"+a.identifier})}else this.Qc=(new Date).getTime()/1E3,this.Va&&this.ea.ma("sdai",{adf:1}),(b=5E3,"predictStart"===a.event)&&(b-=a.j),this.Jb=Math.max(b,15E3),this.Ca=!1,this.Z.start(this.Jb),this.ra=a,this.Ga.clear(),this.eb.clear(),this.La.clear(),this.rb=[]};
g.k.iE=function(a,b,c){c=c||{reason:"disablessdai"};if(a&&b){if(!kY(this,a,b))return!1;c.sq=b}if(this.Fn)return!1;this.Fn=!0;0<this.lm&&(this.lm=0,this.Wb="",this.api.publish("serverstitchedvideochange"));a=this.ea;a.videoData.jU=!0;a.Rd(new RJ("qoe.restart",c));M_(a,!0);return!0};
g.k.Uw=function(){this.ea.ma("sdai",{rstdaist:1});this.Ga.clear();this.eb.clear();this.La.clear()};
g.k.Ou=function(a){this.je.add(a);var b;(null==(b=this.ra)?void 0:b.identifier)===a&&eY(this)};
g.k.lP=function(){return this.lm};
g.k.Mp=function(){return this.Wb};
g.k.Lu=function(a){var b=IV(this.api.yb());return b?b.Lu(a):!1};
g.k.PO=function(a){return this.Fn?!1:!!lY(this,a)};
g.k.tT=function(){this.ea.pauseVideo();var a=this.ea.getCurrentTime(),b=this.D.get(this.Wb),c=this.B.get(this.Wb);if(b){this.N=this.Wb;this.qa=!1;b.JA=!0;b=this.ea.getCurrentTime();this.j={Wd:c,isAd:!0,Yp:!1,Ug:b,adCpn:this.Wb};if(null==c?0:c.start)this.Wa=1E3*b-c.start;this.K.clear();M_(this.ea);this.Wb=this.EE().cpn;this.api.publish("serverstitchedvideochange");this.ea.seekTo(a);this.ea.playVideo();return!0}this.ea.ma("sdai",{skipFail:a});return!1};
var b6a=0;g.y(v6a,g.I);g.k=v6a.prototype;
g.k.addPlayerResponseForAssociation=function(a){var b=new g.ES(this.api.U(),a.playerVars);b.playerResponseCpn&&(b.clientPlaybackNonce=b.playerResponseCpn);b.JD=!0;if(a=a.TI)b.TI=a,b.clientPlaybackNonce=a.cpn;a=b.clientPlaybackNonce;this.api.ma("ssap",{aprfa:a+"_"+b.videoId});if(a){this.Gp.set(a,b);var c=aY(this.timeline,a),d=!1;if(null==c?0:c.length){c=g.u(c);for(var e=c.next();!e.done;e=c.next())e=e.value,b.Rf=e.Xe(),e.dH(b),e.C&&(d=!0)}else d=!b.videoId;if(!d){if(!Aeb(this.ea.wc(b.videoId))){var f;this.api.ma("ssap",
{nlc:a,nlcc:null==(f=this.timeline.j)?void 0:ZX(f)})}this.ea.kA().QI(a,b,2)}}};
g.k.ZF=function(){this.rZ=!0};
g.k.finishSegmentByCpn=function(a,b,c,d){c=void 0===c?3:c;this.kT&&this.Gw&&a===this.Gw&&(this.api.ma("ssap",{reloadp:this.Gw}),M_(this.ea),this.Gw="",this.WX=!0);if(this.Wb===b)return[];this.api.U().Bc()&&this.api.ma("ssap",{fsbc:a+";"+b,fsbcr:this.rZ?5:c,fsbct:this.api.getCurrentTime().toFixed()});this.Ey=b;var e=!1;if(this.qk.has(a)&&(e=t6a(this,c),!e))return[a];var f=aY(this.timeline,b);if(f){f.sort(function(m,n){return m.Xe()-n.Xe()});
var h=g.u(f);for(f=h.next();!f.done;f=h.next()){f=f.value;var l=this.ea.getCurrentTime();this.api.L("html5_ssap_get_current_time_refactor")&&(l*=1E3);if(f.Xe()>=l){h=this.api.L("html5_ssap_abandon_on_skip_fix");this.wH.set(a,c);if(h)M6a(this,a,b);else if(c=this.Ti.get(a))this.ea.removeCueRange(c),this.Ti.delete(a);this.sM.set(a,(0,g.wC)());if(c=this.Ti.get(b))for(c=c.getId().split(","),c=g.u(c),l=c.next();!l.done;l=c.next())l=l.value,l!==b&&this.qk.has(l)&&(this.qk.delete(l),this.jH.add(l));d&&M_(this.ea);
H6a(this);b=f.Xe()/1E3;h?(d=void 0,f=null!=(d=g.xI(this.api.U().experiments,"html5_ssap_skip_seeking_offset_ms"))?d:0,this.ea.seekTo(b+f/1E3)):this.ea.seekTo(b);e&&this.api.playVideo(1);return[a]}}}return[]};
g.k.vP=function(){var a=this.timeline.j;if(!a)return 0;var b=a.Fi();a=g.u(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,d.Fi()>b&&(b=d.Fi())}return b/1E3};
g.k.Dd=function(){var a=1E3*this.ea.getCurrentTime();if(this.api.L("html5_ssap_get_min_seekable_time_refactor")){var b=A6a(this,a);if(!b){var c=aY(this.timeline,this.Wb);if(c){c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.Xe()>a&&(b=d)}}}else b=oY(this,a);return b&&1===b.getType()?b.Xe()/1E3:0};
g.k.getVideoData=function(a){if(2===a&&!this.Dm()){if(this.tK&&this.Gp.has(this.tK))return this.Gp.get(this.tK);this.api.ma("ssap",{lpanf:""+this.ea.getVideoData().clientPlaybackNonce});return null}return D6a(this)};
g.k.Dm=function(){var a=aY(this.timeline,this.Wb);return(null==a?0:a.length)?2===a[0].getType():!1};
g.k.GA=function(){var a=aY(this.timeline,this.Wb);return(null==a?0:a.length)?a[0].C:!1};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;var c=B6a(this,this.ea.getCurrentTime());this.ea.seekTo(a+c/1E3,b)};
g.k.RI=function(a,b,c){return new g.cJ(a,b,{id:c,namespace:"ssap",priority:9})};
g.k.onCueRangeEnter=function(a){if(!this.xL.has(a.getId())){this.api.ma("ssap",{oce:1,cpn:a.getId(),st:a.start,et:a.end,ct:(this.ea.getCurrentTime()||0).toFixed(3),cmt:(this.ea.Vf()||0).toFixed(3)});for(var b=a.getId().split(","),c=0;c<b.length&&this.Ey&&b[c]!==this.Ey;){var d=b[c];this.qk.has(d)&&(this.qk.delete(d),this.jH.add(d));c++}if(b.length>c+1)for(d=c+1;d<b.length;d++)this.qG.push(b[d]);b=b[c];this.qk.has(b)&&E6a(this,b);this.jH.has(b)||F6a(this,b);b=g.u(this.Ti.values());for(c=b.next();!c.done;c=
b.next())c=c.value,c.start<=a.start&&!this.xL.has(a.getId())&&this.xL.add(c.getId())}};
g.k.lP=function(){return this.lm};
g.k.Mp=function(){return this.Wb};
g.k.handleError=function(a){if("fmt.decode"!==a&&"fmt.unplayable"!==a||!this.Dm()||this.yZ===this.Wb)return!1;this.ea.ma("ssap",{skiperr:a,acpn:this.Wb});this.yZ=this.Wb;var b=this.ea.getVideoData().clientPlaybackNonce;this.finishSegmentByCpn(this.Wb,b,3,a);return!0};
g.k.va=function(){this.api.U().Bc()&&this.api.ma("ssap",{di:""+this.Wb,dic:""+this.ea.getVideoData().clientPlaybackNonce});this.Gp.clear();this.qk.clear();this.xL.clear();this.wH.clear();this.sM.clear();this.jH.clear();this.qG=[];u6a(this);this.Ey="";g.MB(this.events);g.I.prototype.va.call(this)};g.y(Q6a,g.I);g.k=Q6a.prototype;g.k.onCueRangeEnter=function(a){if(this.j===this.api.Zc()){var b=this.K.get(a);b?W6a(this,b.target,b.cn,a):this.Rd("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.B.find(function(e){return e.Ht.Wd===a})){var c=b.Ht,d=c.target;
c=c.cn;d?W6a(this,d,c,a):V6a(this,b.Vd,c,a)}};
g.k.onQueuedVideoLoaded=function(){var a=this.N;yY(this);if(a){if(!xY(this,a)){var b=this.api.Zc();this.Rd("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:null==b?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}this.api.Zc().addCueRange(a.Ht.Wd)}};
g.k.seekTo=function(a,b,c,d){a=void 0===a?0:a;b=void 0===b?{}:b;d=void 0===d?null:d;if(void 0===c?0:c)P6a(this,a,b);else{c=this.api.Zc();var e=c===this.D?this.G:null;zY(this,!1);this.qa=a;this.Y=b;null!=d&&this.Z.start(d);c&&(this.G=e||c.getPlayerState(),lgb(c),this.D=c)}};
g.k.vk=function(a){g.OF(a,128)&&a7a(this)};
g.k.isManifestless=function(){return OS(this.j.getVideoData())};
g.k.va=function(){zY(this,!1);c7a(this);g.I.prototype.va.call(this)};
g.k.Rd=function(a,b){this.j.Rd(new RJ(a,b))};
var R6a=0;var d7a="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_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.y(CY,g.I);g.k=CY.prototype;g.k.get=function(a){AY(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);AY(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.wC)()+c);for(this.data.push(a);this.data.length>this.C;)(c=this.data.shift())&&DY(this,c,!0);BY(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&&(DY(this,c,b),g.Jb(this.data,function(d){return d.key===a}),BY(this))};
g.k.removeAll=function(a){if(a=void 0===a?!1:a)for(var b=g.u(this.data),c=b.next();!c.done;c=b.next())DY(this,c.value,a);this.data=[];BY(this)};
g.k.va=function(){var a=this;g.I.prototype.va.call(this);this.data.forEach(function(b){DY(a,b,!0)});
this.data=[]};g.y(EY,g.I);EY.prototype.vJ=function(a){if(a)return this.B.get(a)};
EY.prototype.va=function(){this.j.removeAll();this.B.removeAll();g.I.prototype.va.call(this)};g.Spb=Kd(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var s3;s3={};g.FY=(s3.STOP_EVENT_PROPAGATION="html5-stop-propagation",s3.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",s3.IV_DRAWER_OPEN="ytp-iv-drawer-open",s3.MAIN_VIDEO="html5-main-video",s3.VIDEO_CONTAINER="html5-video-container",s3.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",s3.HOUSE_BRAND="house-brand",s3);g.y(k7a,g.W);g.k=k7a.prototype;g.k.Zs=function(){g.Rv(this.element,g.Ia.apply(0,arguments))};
g.k.Jj=function(){this.Fc&&(this.Fc.removeEventListener("focus",this.wR),g.Ef(this.Fc),this.Fc=null)};
g.k.LO=function(){this.Na();var a=this.app.U();a.qn||this.Zs("tag-pool-enabled");a.K&&this.Zs(g.FY.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.Zs("ytp-gvn"),this.element.style.backgroundColor="transparent");a.vc&&(this.zO=g.ED("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)};
g.k.YL=function(a){g.FR(this.app.U());this.bK=!a;GY(this)};
g.k.resize=function(){if(this.Fc){var a=this.Vh();if(!a.isEmpty()){var b=!g.Le(a,this.HB.getSize()),c=p7a(this);b&&(this.HB.width=a.width,this.HB.height=a.height);a=this.app.U();(c||b||a.vc)&&this.app.Ua.publish("resize",this.getPlayerSize())}}};
g.k.Ut=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.Fc){var b=this.app.U();MC&&(this.Fc.setAttribute("x-webkit-airplay","allow"),a.title?this.Fc.setAttribute("title",a.title):this.Fc.removeAttribute("title"));this.Fc.setAttribute("controlslist","nodownload");b.Aq&&a.videoId&&(this.Fc.poster=a.fh("default.jpg"))}b=g.bT(a,"yt:bgcolor");this.Nz.style.backgroundColor=b?b:"";this.WQ=gra(g.bT(a,"yt:stretch"));this.XQ=gra(g.bT(a,"yt:crop"),!0);g.Uv(this.element,"ytp-dni",a.If);this.resize()};
g.k.setGlobalCrop=function(a){this.MP=gra(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.aX=a;this.resize()};
g.k.Vm=function(){};
g.k.getPlayerSize=function(){var a=this.app.U(),b=this.app.Ua.isFullscreen(),c=a.externalFullscreen&&g.BR(a);if(b&&gB()&&!c)return new g.Ke(window.outerWidth,window.outerHeight);c=!isNaN(this.uE.width)&&!isNaN(this.uE.height);var d=this.app.U().L("kevlar_player_enable_squeezeback_fullscreen_sizing");if(b&&!c&&d)return new g.Ke(this.element.clientWidth,this.element.clientHeight);if(b||a.qp){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.JF&&this.JF.media===
a||(this.JF=window.matchMedia(a));var e=this.JF&&this.JF.matches}if(e)return new g.Ke(window.innerWidth,window.innerHeight)}else if(c)return this.uE.clone();return new g.Ke(this.element.clientWidth,this.element.clientHeight)};
g.k.Vh=function(){var a=this.app.U().L("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.xI(this.app.U().experiments,"player_underlay_min_player_width");return a&&this.mS&&b.width>c?new g.Ke(b.width*g.xI(this.app.U().experiments,"player_underlay_video_width_fraction"),b.height):b};
g.k.getVideoAspectRatio=function(){return isNaN(this.WQ)?m7a(this):this.WQ};
g.k.getVideoContentRect=function(a){var b=this.Vh();a=n7a(this,b,this.getVideoAspectRatio(),a);return new g.Fs((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.hC=function(a){this.mS=a;this.resize()};
g.k.oF=function(){return this.AL};
g.k.onMutedAutoplayChange=function(){GY(this)};
g.k.setInternalSize=function(a){g.Le(this.uE,a)||(this.uE=a,this.resize())};
g.k.va=function(){this.zO&&g.FD(this.zO);this.Jj();g.W.prototype.va.call(this)};g.k=q7a.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.xE();c&&a.visualElement&&g.RE(c,a.visualElement,b)};
g.k.createClientVe=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=Lwa(c);a.visualElement=c;var f=g.xE(),h=g.wE();f&&h&&(g.TA("combine_ve_grafts")?RO(PO(),c,h):g.BA(g.KE)(void 0,f,h,c));b.addOnDisposeCallback(function(){e.elements.has(a)&&e.destroyVe(a)});
d&&this.B.add(a)};
g.k.createServerVe=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);b.addOnDisposeCallback(function(){d.destroyVe(a)});
c&&this.B.add(a)};
g.k.destroyVe=function(a){this.elements.has(a);this.elements.delete(a);this.C.delete(a);this.j.delete(a);this.B.delete(a)};
g.k.qX=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,QO(PO(),a),r7a(this))};
g.k.setTrackingParams=function(a,b){this.elements.has(a);b&&(a.visualElement=g.vE(b))};
g.k.hasVe=function(a){return this.elements.has(a)};s7a.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
s7a.prototype.getPlaybackRate=function(){return this.playbackRate};y7a.prototype.wP=function(a){var b=kK(a.info.j.info,this.manifest.dc),c=a.info.Pa+this.D,d=1E3*a.info.startTime;if(this.policy.Sa)try{d=this.policy.Sa?1E3*RSa(a):1E3*a.info.startTime}catch(h){.99<Math.random()&&this.logger&&(d=FN(a.j).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:a.info.Tc(),encodedDataView:g.Hg(d,4)})),d=1E3*a.info.startTime}var e=a.info.clipId;if(this.policy.Sa){if(a.info.j.Gm())var f=a.info.duration;else-1===a.D&&(a.D=USa(a)),f=a.D||a.info.duration;f*=1E3}else f=
1E3*a.info.duration;this.policy.Sa&&(0>d||0>f)&&this.logger&&(this.logger({missingSegInfo:a.info.Tc(),startTimeMs:d,durationMs:f}),0>d&&(d=1E3*a.info.startTime),0>f&&(f=1E3*a.info.duration));return{formatId:b,Pa:c,startTimeMs:d,clipId:e,Y7:f}};
y7a.prototype.Gq=function(a){this.timestampOffset=a};LY.prototype.seek=function(a,b){a!==this.j&&(this.seekCount=0);this.j=a;var c=this.videoTrack.B,d=this.audioTrack.B,e=this.audioTrack.Rb,f=K7a(this,this.videoTrack,a,this.videoTrack.Rb,b);b=K7a(this,this.audioTrack,this.policy.uf?a:f,e,b);a=Math.max(a,f,b);this.G=!0;this.manifest.isManifestless&&(I7a(this,this.videoTrack,c),I7a(this,this.audioTrack,d));return a};
LY.prototype.isSeeking=function(){return this.G};
LY.prototype.eT=function(a){this.C=a};
var J7a=2/24;var O7a=0;g.k=VY.prototype;g.k.Pu=function(){this.Z=this.now();CUa(this.Nc,this.Z);this.Fb.Pu()};
g.k.hs=function(a,b){var c=this.policy.B?(0,g.wC)():0;WY(this,a,b);10>a-this.D&&this.oo()||this.Kv(a,b);this.Fb.hs(a,b);this.policy.B&&(a=(0,g.wC)()-c,this.Hb+=a,this.rb=Math.max(a,this.rb))};
g.k.Kv=function(a,b){var c=(a-this.D)/1E3,d=b-this.B;this.lr||(EUa(this.Nc,c,d),this.Tu(c,d));this.D=a;this.B=b};
g.k.Fo=function(){this.Ca&&P7a(this);this.Fb.Fo()};
g.k.gs=function(a){this.Ca||(this.Ca=this.K-this.Nb+a,this.vc=this.K,this.Dc=this.Y)};
g.k.R0=function(){};
g.k.Sq=function(){var a={rn:this.requestNumber,rt:(this.Y-this.j).toFixed(),lb:this.K,stall:(1E3*this.C).toFixed(),ht:(this.Z-this.j).toFixed(),elt:(this.qa-this.j).toFixed(),elb:this.Ma,d:R7a(this)};this.url&&P4a(a,this.url);this.policy.B&&(a.mph=this.rb.toFixed(),a.tph=this.Hb.toFixed());a.ulb=this.Va;a.ult=this.Ha;a.abw=this.Sa;return a};
g.k.now=function(){return(0,g.wC)()};
g.k.deactivate=function(){this.isActive&&(this.isActive=!1)};
var UY;g.y(XY,VY);g.k=XY.prototype;g.k.Sq=function(){var a=VY.prototype.Sq.call(this);a.pb=this.Xz;a.pt=(1E3*this.Wa).toFixed();a.se=this.Sb;return a};
g.k.Ar=function(){var a=this.Fb;this.gb||(this.gb=a.Ar?a.Ar():1);return this.gb};
g.k.lK=function(){return this.vl?1!==this.Ar():!1};
g.k.iR=function(a,b,c){if(!this.Kb){this.Kb=!0;if(!this.lr){WY(this,a,b);this.Kv(a,b);var d=this.Ar();this.Sb=c;2===d?this.lr||(this.Ha?sR(this.Nc,this.Ha/1E3,this.Va,.25):sR(this.Nc,b/(c||this.Sa),b,.01),uR(this.Nc,b,this.C)):1===d&&(c=(a-this.j)/1E3,!(c<=this.policy.C)&&this.policy.C||this.Ab||this.policy.G||!this.oo()||U7a(this,c,b),this.oo()&&uR(this.Nc,b,this.C));tR(this.Nc,(a-this.j)/1E3||.01,this.B,this.Wa,this.Ep)}this.deactivate()}};
g.k.Kv=function(a,b){var c=(a-this.D)/1E3,d=b-this.B,e=this.Ar();this.isActive?1===e&&((0<d||this.policy.D)&&(.2<c||1024>d)?(this.C+=c,0<d&&.2<c&&U7a(this,.05,d),this.Ab=!0):0<d&&(U7a(this,c,d),this.Ab=!0)):V7a(this,b)&&(1===e&&(c=(this.Z-this.j)/1E3,d=(a-this.Z)/1E3,this.vl&&Z7a(this,this.now()),this.Jb||this.lr||(e=this.Nc,e.K.Ri(1,c),e.ra.Ri(1,d))),this.qa=a,this.Ma=b,this.isActive=!0);VY.prototype.Kv.call(this,a,b)};
g.k.SK=function(a){if(!this.lr){WY(this,a,this.K);var b=(a-this.j)/1E3;2!==this.Ar()&&this.oo()&&(this.C+=(a-this.D)/1E3,uR(this.Nc,this.B,this.C));tR(this.Nc,b,this.B,this.Wa,this.Ep,!0);a=(a-this.D)/1E3;EUa(this.Nc,a,0);this.Tu(a,0)}};
g.k.oo=function(){return V7a(this,this.B)};
g.k.pY=function(){this.vl&&Z7a(this,this.now());return this.La};
g.k.lx=function(){return this.B>this.ZR&&V7a(this,this.B)};
g.k.HJ=function(){return this.bb};
g.k.AS=function(a){a=void 0===a?this.now():a;if(this.vl){Z7a(this,a);if(this.gb?this.lK():this.ra!==this.Ga){var b=this.Ga;if(a<b){this.bb=this.Ga;return}}else b=this.ra;b=Math.max(b,this.La)}else b=this.La;var c=this.Xz-this.B;0>c&&(c=0);c=1E3*(c*this.snapshot.stall+c/this.snapshot.byterate);this.bb=c=this.oo()?c+a:c+Math.max(a,b)};
g.k.uJ=function(){return this.now()-this.qa};
g.k.BP=function(){return 1E3*(this.B-this.Ma)/this.uJ()||0};
g.k.qY=function(){return this.qa};YY.prototype.feed=function(a){CN(this.j,a);this.mf()};
YY.prototype.mf=function(){if(this.D){if(!this.j.totalLength)return;var a=this.j.split(this.C-this.B),b=a.aK;a=a.Zm;if(!this.Fb.gs(this.D,b,this.B,this.C))return;this.B+=b.totalLength;this.j=a;this.B===this.C&&(this.D=this.C=this.B=void 0)}for(;;){var c=0;a=g.u($7a(this.j,c));b=a.next().value;c=a.next().value;c=g.u($7a(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.Fb.gs&&c+1<=this.j.totalLength))break;c=this.j.split(c).Zm;this.Fb.gs(b,c,0,
a)&&(this.D=b,this.B=c.totalLength,this.C=a,this.j=new BN([]));break}a=this.j.split(c).Zm.split(a);c=a.Zm;this.Fb.wB(b,a.aK);this.j=c}};
YY.prototype.dispose=function(){this.j=new BN};g.k=ZY.prototype;g.k.kP=function(){return 0};
g.k.xJ=function(){return null};
g.k.fY=function(){return null};
g.k.pu=function(){return 1<=this.state};
g.k.isComplete=function(){return 3<=this.state};
g.k.Fm=function(){return 5===this.state};
g.k.onStateChange=function(){};
g.k.Hc=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)};
g.k.mB=function(a){a&&this.state<a?this.Hc(a):this.callback&&this.callback(this,this.state)};
g.k.Na=function(){return-1===this.state};
g.k.Tc=function(){var a="";this.info.ib.forEach(function(b){a+=b.Tc()+"."});
return a.slice(0,-1)};
g.k.dispose=function(){this.Na()||(this.info.ib[0].j.C=!1,this.Hc(-1))};
g.k.GP=function(){return 0};g.k=b8a.prototype;g.k.sB=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.Fb.Pu()};
g.k.onError=function(){this.C=!0;this.onDone()};
g.k.onDone=function(){this.Na||(this.D=!0,this.Fb.Fo())};
g.k.Wt=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.DE=function(){return+this.getResponseHeader("content-length")};
g.k.xm=function(){return this.B};
g.k.iy=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.Or=function(){return 0<this.j.totalLength};
g.k.Ay=function(){var a=this.j;this.j=new BN;return a};
g.k.uL=function(){return this.j};
g.k.abort=function(){this.Na=!0;this.xhr.abort()};
g.k.pC=function(){return!0};
g.k.HL=function(){return this.C};
g.k.wf=function(){return""};g.k=d8a.prototype;
g.k.XB=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w;return g.G(function(A){if(1==A.j){a.status=200;b=a.j.get("docid");c=Ye(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 c8a(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!=A.j)return n<=m?g.z(A,fWa(b,c,d,n,f),5):A.Ia(0);p=A.B;if(void 0===p)throw Error("invariant: data is undefined");q=n*e;
r=(n+1)*e;t=Math.max(0,h.start-q);v=Math.min(h.end+1,r)-(t+q);w=new Uint8Array(p.buffer,t,v);a.B.append(w);a.loaded+=v;a.loaded<h.length&&a.Fb.hs((0,g.wC)(),a.loaded);n++;return A.Ia(2)})};
g.k.getResponseHeader=function(a){return"content-type"===a?this.j.get("type"):""};
g.k.abort=function(){};
g.k.Wt=function(){return!0};
g.k.DE=function(){return this.range.length};
g.k.xm=function(){return this.loaded};
g.k.iy=function(){return!!this.loaded};
g.k.Or=function(){return!!this.B.totalLength};
g.k.Ay=function(){var a=this.B;this.B=new BN;return a};
g.k.uL=function(){return this.B};
g.k.pC=function(){return!0};
g.k.HL=function(){return!!this.error};
g.k.wf=function(){return this.error};g.k=f8a.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.N);this.D&&(b.signal=this.D.signal);a=new Request(a,b);fetch(a).then(this.Y,this.onError).then(void 0,nsa)};
g.k.onDone=function(){this.Na()||this.Fb.Fo()};
g.k.getResponseHeader=function(a){return this.responseHeaders?this.responseHeaders.get(a):null};
g.k.Wt=function(){return!!this.responseHeaders};
g.k.xm=function(){return this.B};
g.k.DE=function(){return+this.getResponseHeader("content-length")};
g.k.iy=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.Or=function(){return!!this.j.totalLength};
g.k.Ay=function(){var a=this.j;this.j=new BN;return a};
g.k.uL=function(){return this.j};
g.k.Na=function(){return this.G};
g.k.abort=function(){this.C&&this.C.cancel().catch(function(){});
this.D&&this.D.abort();this.G=!0};
g.k.pC=function(){return!0};
g.k.HL=function(){return this.K};
g.k.wf=function(){return this.errorMessage};g.k=g8a.prototype;g.k.onDone=function(){if(!this.Na){this.status=this.xhr.status;try{this.response=this.xhr.response,this.B=this.response.byteLength}catch(a){}this.j=!0;this.Fb.Fo()}};
g.k.sB=function(){2===this.xhr.readyState&&this.Fb.Pu()};
g.k.Cg=function(a){this.Na||(this.status=this.xhr.status,this.j||(this.B=a.loaded),this.Fb.hs((0,g.wC)(),a.loaded))};
g.k.Wt=function(){return 2<=this.xhr.readyState};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.BE(Error("Could not read XHR header "+a)),""}};
g.k.DE=function(){return+this.getResponseHeader("content-length")};
g.k.xm=function(){return this.B};
g.k.iy=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.B};
g.k.Or=function(){return this.j&&!!this.response&&!!this.response.byteLength};
g.k.Ay=function(){var a=this.response;this.response=void 0;return new BN([new Uint8Array(a)])};
g.k.uL=function(){return new BN([new Uint8Array(this.response)])};
g.k.abort=function(){this.Na=!0;this.xhr.abort()};
g.k.pC=function(){return!1};
g.k.HL=function(){return!1};
g.k.wf=function(){return""};g.y(bZ,g.I);g.k=bZ.prototype;g.k.uda=function(){if(!this.Na()){var a=(0,g.wC)(),b=!1;if(this.timing.oo()){if(this.G)return;var c=this.timing.HJ();this.timing.AS();var d=this.timing.HJ();d-c>=.8*this.policy.Ck?(this.j++,this.logger.debug(function(){return"Mispredicted by "+(d-c).toFixed(0)}),b=5<=this.j):this.j=0}else{var e=a-this.timing.pY();
0<e&&(this.j+=1);a=dSa(cZ(this),!1)*this.policy.tD;(b=e>1E3*a)&&this.logger.debug(function(){return"Elbow late by "+e.toFixed(3)})}0<this.j&&this.Fb.SP();
b?this.xH(!1):this.B.start()}};
g.k.xH=function(a){this.D=!0;a&&(a=cZ(this),a.C+=1);this.Fb.rz();this.lastError="net.timeout";dZ(this)};
g.k.canRetry=function(a){var b=cZ(this);a=a?this.policy.Tv:this.policy.Pi;return b.timedOut<this.policy.Wv&&b.j<a};
g.k.dh=function(){return this.lastError};
g.k.Pw=function(){return this.j};
g.k.dispose=function(){this.B.dispose();g.I.prototype.dispose.call(this)};var t3={},E8a=(t3["1h"]=8,t3["9h"]=4,t3["1"]=8,t3["9"]=4,t3["("]=4,t3.h=2,t3.H=2,t3),u3={},F8a=(u3.o=3,u3.O=3,u3.so=3,u3.a=1,u3.ah=1,u3.A=1,u3.m=1,u3.M=1,u3.sa=1,u3.mac3=7,u3.MAC3=7,u3.meac3=5,u3.MEAC3=5,u3),v3={},G8a=(v3.o=0,v3.O=0,v3.a=0,v3.ah=0,v3.A=0,v3.m=1,v3.M=1,v3.mac3=1,v3.MAC3=1,v3.meac3=1,v3.MEAC3=1,v3.so=4,v3.sa=4,v3);var w3={},n8a=(w3["140"]={numChannels:2},w3["141"]={numChannels:2},w3["251"]={audioSampleRate:48E3,numChannels:2},w3["380"]={numChannels:6},w3["328"]={numChannels:6},w3),x3={},k8a=(x3["1"]='video/mp4; codecs="av01.0.08M.08"',x3["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',x3["9"]='video/webm; codecs="vp9"',x3["("]='video/webm; codecs="vp9"',x3["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',x3.h='video/mp4; codecs="avc1.64001e"',x3.H='video/mp4; codecs="avc1.64001e"',x3.o=
'audio/webm; codecs="opus"',x3.a='audio/mp4; codecs="mp4a.40.2"',x3.ah='audio/mp4; codecs="mp4a.40.2"',x3.mac3='audio/mp4; codecs="ac-3"; channels=6',x3.meac3='audio/mp4; codecs="ec-3"; channels=6',x3),y3={},l8a=(y3["337"]={width:3840,height:2160,bitrate:3E7,fps:30},y3["336"]={width:2560,height:1440,bitrate:15E6,fps:30},y3["335"]={width:1920,height:1080,bitrate:75E5,fps:30},y3["702"]={width:7680,height:4320,bitrate:4E7,fps:60},y3["701"]={width:3840,height:2160,bitrate:2E7,fps:60},y3["700"]={width:2560,
height:1440,bitrate:1E7,fps:60},y3["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},y3["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},y3["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},y3["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},y3["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},y3["360"]={width:1920,height:1080,bitrate:5331E3,
fps:30,cryptoblockformat:"subsample"},y3["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},y3["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},y3["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},y3["315"]={width:3840,height:2160,bitrate:2E7,fps:60},y3["308"]={width:2560,height:1440,bitrate:1E7,fps:60},y3["303"]={width:1920,height:1080,bitrate:5E6,fps:60},y3["302"]={width:1280,height:720,bitrate:25E5,
fps:60},y3["299"]={width:1920,height:1080,bitrate:75E5,fps:60},y3["298"]={width:1280,height:720,bitrate:35E5,fps:60},y3["571"]={width:7680,height:4320,bitrate:3E7,fps:60},y3["401"]={width:3840,height:2160,bitrate:15E6,fps:60},y3["400"]={width:2560,height:1440,bitrate:75E5,fps:60},y3["399"]={width:1920,height:1080,bitrate:2E6,fps:60},y3["398"]={width:1280,height:720,bitrate:1E6,fps:60},y3["397"]={width:854,height:480,bitrate:4E5,fps:30},y3["396"]={width:640,height:360,bitrate:25E4,fps:30},y3["313"]=
{width:3840,height:2160,bitrate:8E6,fps:30},y3["271"]={width:2560,height:1440,bitrate:4E6,fps:30},y3["248"]={width:1920,height:1080,bitrate:2E6,fps:30},y3["247"]={width:1280,height:720,bitrate:15E5,fps:30},y3["244"]={width:854,height:480,bitrate:52E4,fps:30},y3["243"]={width:640,height:360,bitrate:28E4,fps:30},y3["137"]={width:1920,height:1080,bitrate:4E6,fps:30},y3["136"]={width:1280,height:720,bitrate:3E6,fps:30},y3["135"]={width:854,height:480,bitrate:1E6,fps:30},y3["385"]={width:1920,height:1080,
bitrate:6503313,fps:60},y3["376"]={width:1280,height:720,bitrate:5706960,fps:60},y3["384"]={width:1280,height:720,bitrate:3660979,fps:60},y3["225"]={width:1280,height:720,bitrate:5805E3,fps:30},y3["224"]={width:1280,height:720,bitrate:453E4,fps:30},y3["145"]={width:1280,height:720,bitrate:2682052,fps:30},y3);var J8a={WEB:1,MWEB:2,TVHTML5:7,WEB_UNPLUGGED:41,WEB_EMBEDDED_PLAYER:56,TVHTML5_AUDIO:57,TV_UNPLUGGED_CAST:58,TVHTML5_KIDS:59,WEB_MUSIC:61,WEB_CREATOR:62,TVHTML5_UNPLUGGED:65,WEB_REMIX:67,TVHTML5_SIMPLY:75,WEB_KIDS:76,TVHTML5_SIMPLY_EMBEDDED_PLAYER:85,WEB_MUSIC_EMBEDDED_PLAYER:86,WEB_MUSIC_ANALYTICS:31,WEB_GAMING:32,WEB_EXPERIMENTS:42,WEB_HEROES:60,WEB_UNPLUGGED_ONBOARDING:69,WEB_UNPLUGGED_OPS:70,WEB_UNPLUGGED_PUBLIC:71,TVHTML5_VR:72,TVHTML5_FOR_KIDS:93};var gZ,fZ,hZ=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"]],y8a=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],z8a=["571 401 400 399 398 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],A8a=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],B8a=["412","359"],C8a=[["140"],["251"],["380"],["328"]],z3={},u8a=(z3["398"]=["397","396","395","394"],z3["247"]=["780","779",
"244","243","242"],z3["136"]=["135","134","133","160"],z3["141"]=["140"],z3["251"]=["250"],z3),A3={},v8a=(A3["135"]=["134","133","160"],A3["243"]=["242"],A3["781"]=["780","779"],A3["777"]=["776","775"],A3["396"]=["395","394"],A3["141"]=["140"],A3["251"]=["250"],A3),B3={},w8a=(B3["274"]=["317","273","318","280","279"],B3["145"]=["144","222","223","143","142"],B3["141"]=["149"],B3["140"]=["149"],B3["380"]=["381"],B3["328"]=["329"],B3),C3={},s8a=(C3["133"]=240,C3["134"]=360,C3["135"]=480,C3["136"]=720,
C3["137"]=1080,C3["242"]=240,C3["243"]=360,C3["244"]=480,C3["247"]=720,C3["248"]=1080,C3["298"]=720,C3["299"]=1080,C3["302"]=720,C3["303"]=1080,C3["395"]=240,C3["396"]=360,C3["397"]=480,C3["398"]=720,C3["399"]=1080,C3);g.y(NY,ZY);g.k=NY.prototype;g.k.Op=function(){return this.timing.requestNumber};
g.k.Ke=function(){return this.Zd.Ke()};
g.k.Br=function(){var a=j8a(this.Cd);if(this.Fl){var b=this.Fl,c=b.j.totalLength;a.ulen=c;0<c&&(b=GN(b.j,0),a.ubyte=b,1===c&&0===b&&(a.b248180278=!0))}this.Bg&&(a.rc=this.policy.Jl?this.Bg:this.Bg.toString());this.policy.vc&&this.s2&&(a.tr=this.s2);a.itag=this.info.ib[0].j.info.itag;a.ml=""+ +this.info.ib[0].j.jg();a.sq=""+this.info.ib[0].Pa;this.Zd&&(a.ifi=""+ +pRa(this.info.resource.C));410!==this.Bg&&500!==this.Bg&&503!==this.Bg||(a.fmt_unav="true");var d;(c=this.errorMessage||(null==(d=this.xhr)?
void 0:d.wf()))&&(a.msg=c);this.oH&&(a.smb="1");this.info.Xp()&&(a.sdai="1");return a};
g.k.aY=function(){return W7a(this.timing)};
g.k.wf=function(){return this.xhr.wf()||""};
g.k.lx=function(){return this.isComplete()||this.timing.lx()};
g.k.hs=function(){!this.Na()&&this.xhr&&(this.Bg=this.xhr.status,this.policy.bq&&this.cg&&this.Bm(!1),this.yl()?this.mB(2):!this.RY&&this.lx()&&(this.mB(),this.RY=!0))};
g.k.Pu=function(){if(!this.Na()&&this.xhr){if(!this.Iz&&this.xhr.Wt()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Iz=((0,g.wC)()-a)/1E3}this.xhr.Wt()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.KC&&!LPa()&&g.PB("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),c;null==(c=this.Hu)||c.stop();this.Tp=a||this.Tp;
this.Lr=b||this.Lr}};
g.k.Fo=function(){var a=this.xhr;if(!this.Na()&&a){this.Bg=a.status;a=this.XP(a);if(this.policy.vc){var b;null==(b=this.Hu)||b.stop()}5===a?dZ(this.Cd):this.Hc(a);this.Cd.B.stop()}};
g.k.XP=function(a){var b=this;Q8a(this);if(eZ(this.Cd,this.xhr.status,this.Lp?this.timing.G||this.wM:this.xhr.iy(),!1,this.ou))return 5;var c="";if(M8a(this)){var d=a.uL();d.totalLength<=this.policy.Ip&&(c=N8a(this,EN(d)))}if(c)return cSa(cZ(this.Cd)),this.info.fl(this.Zd,c),3;c=a.xm();if(this.Fl){this.Bm(!0);Q8a(this);if(eZ(this.Cd,this.xhr.status,this.timing.G||this.wM,!1,this.ou))return 5;if(!this.K2){if(this.wM)return cSa(cZ(this.Cd)),3;this.Cd.lastError="net.closed";return 5}}else{if(eZ(this.Cd,
this.xhr.status,this.xhr.iy(),!1,this.ou))return 5;if((d=this.info.C)&&d!==c||a.HL())return this.Cd.lastError="net.closed",5;this.Bm(!0)}d=a8a(this)?a.getResponseHeader("X-Bandwidth-Est"):0;if(a=a8a(this)?a.getResponseHeader("X-Bandwidth-Est3"):0)this.w1=!0,this.policy.xE&&(d=a);i8a(this.Cd,c,d?Number(d):0);this.logger.debug(function(){var e=b.timing;return"Succeeded, rtpd="+(1E3*e.Wa+e.j-Date.now()).toFixed(0)});
return 4};
g.k.canRetry=function(){this.Na();var a=this.info.Xp();return this.Cd.canRetry(a)};
g.k.onStateChange=function(){this.isComplete()&&(this.policy.hp?this.rz():this.timing.deactivate())};
g.k.xH=function(a){this.Cd.xH(a)};
g.k.SP=function(){this.callback&&this.callback(this,this.state)};
g.k.Pw=function(){return this.Cd.Pw()};
g.k.dispose=function(){ZY.prototype.dispose.call(this);this.Cd.dispose();var a;null==(a=this.Hu)||a.dispose();this.policy.hp||this.rz()};
g.k.rz=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()};
g.k.Hk=function(){if(!this.pG().length)return[];this.aQ=!0;return this.cg.Hk()};
g.k.yl=function(){if(1>this.state)return!1;if(this.cg&&this.cg.zf.length)return!0;var a;return(null==(a=this.xhr)?0:a.Or())?!0:!1};
g.k.pG=function(){this.Bm(!1);return this.cg?this.cg.pG():[]};
g.k.Bm=function(a){try{if(a||this.xhr.Wt()&&this.xhr.Or()&&!M8a(this)&&!this.AB)this.cg||(this.cg=new QX(this.policy,this.info.ib)),this.xhr.Or()&&(this.Fl?this.Fl.feed(this.xhr.Ay()):RX(this.cg,this.xhr.Ay(),a&&!this.xhr.Or()))}catch(b){this.Fl?L8a(this,b):g.BE(b)}};
g.k.wB=function(a,b){switch(a){case 21:a=b.split(1).Zm;O8a(this,a);break;case 22:this.K2=!0;RX(this.cg,new BN([]),!0);break;case 43:if(a=UN(new ON(b),1))this.info.fl(this.Zd,a),this.wM=!0;break;case 45:b=JQa(new ON(b));a=b.OS;b=b.PS;a&&b&&(this.vI=a/b);break;case 44:this.YB=IQa(new ON(b));var c,d,e;!this.timing.G&&4===(null==(c=this.YB)?void 0:c.action)&&(null==(d=this.YB)?0:null==(e=d.m1)?0:e.Lp)&&(this.Lp=this.YB.m1.Lp);break;case 53:this.policy.vc&&(a=FQa(new ON(b)).jq)&&(this.Hu||(this.jq=a,this.Hu=
new g.Iv(this.b_,a,this)),this.Hu.start());break;case 60:this.RA=tQa(new ON(b));break;case 64:this.policy.uC&&(a=vQa(new ON(b)),this.policy.Nu(a));break;case 58:this.policy.Ok&&(a=jQa(new ON(b)))&&(this.hj=a,this.policy.wi&&3===a.hj&&(this.ou=!0))}};
g.k.gs=function(a,b,c,d){c||this.timing.gs(d);if(21!==a)return!1;if(a=this.policy.bq)if(a*=this.info.ib[0].j.info.sb,b.totalLength+c!==d&&b.totalLength<a)return!1;if(!c){if(1===b.totalLength)return!0;b=b.split(1).Zm}O8a(this,b);return!0};
g.k.xm=function(){return this.xhr.xm()};
g.k.kP=function(){return this.Iz};
g.k.Ar=function(){return this.lK()?2:1};
g.k.lK=function(){if(!this.policy.N.lj||!isNaN(this.info.gh)&&0<this.info.gh)return!1;if(!this.xhr.Wt())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.Fl)var a=!this.info.C;else this.xhr.DE()?a=!1:(a=this.xhr.getResponseHeader("content-type"),a="audio/mp4"===a||"video/mp4"===a||"video/webm"===a);if(!a)return!1;if(isNaN(this.info.gh))if(a=this.xhr.getResponseHeader("x-head-seqnum"),!a)this.logger.debug("No x-head-seqnum, cannot tell if head segment.");else if(Number(a)>
this.info.ib[0].Pa)return!1;return!0};
g.k.GP=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.k.xJ=function(){this.xhr&&(this.Tp=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Tp};
g.k.fY=function(){this.xhr&&(this.Lr=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Lr};
g.k.dh=function(){return this.Cd.dh()};
g.k.b_=function(){if(!this.Na()&&this.xhr){this.s2="heartbeat";var a=this.Cd;a.j+=2;this.SP()}};kZ.prototype.wB=function(a,b){switch(a){case 20:a=new ON(b);a={Up:RN(a,1),videoId:UN(a,2),itag:RN(a,3),lmt:RN(a,4),xtags:UN(a,5),ZB:RN(a,6),ao:SN(a,8),Dq:RN(a,9),Wob:RN(a,10),startMs:RN(a,11),durationMs:RN(a,12),zs:RN(a,14),timeRange:VN(a,15,YPa),Kj:RN(a,16),TK:RN(a,17),clipId:UN(a,1E3)};this.GR(a);break;case 21:this.ER(b,!1);break;case 22:this.mq(b);break;case 31:a=YN(b,AQa);this.rB(a);break;case 52:a=YN(b,GQa);this.tB(a);break;default:this.uR(a,b)}};
kZ.prototype.GR=function(){};
kZ.prototype.uR=function(){};g.y(lZ,VY);g.k=lZ.prototype;g.k.Kv=function(a,b){var c=(a-this.D)/1E3,d=b-this.B;this.oo()?0<d&&(this.ra&&(.2<c||1024>d?(this.C+=c,.2<c&&sR(this.Nc,.05,d,.05)):sR(this.Nc,c,d,c)),this.Ga&&(this.La+=d,this.Wa+=c)):(c=this.Nc,d=(a-this.Z)/1E3,c.K.Ri(1,(this.Z-this.j)/1E3),c.ra.Ri(1,d),this.qa=a,this.Ma=b);VY.prototype.Kv.call(this,a,b)};
g.k.iR=function(a,b){WY(this,a,b);this.Kv(a,b);this.ra&&(b=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.oo()&&uR(this.Nc,this.La,this.C),tR(this.Nc,(a-this.j)/1E3||.01,this.B,b,!1))};
g.k.SK=function(a){WY(this,a,this.K);var b=(a-this.D)/1E3;EUa(this.Nc,b,0);this.Tu(b,0);this.ra&&(b=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.oo()&&(this.C+=(a-this.D)/1E3,uR(this.Nc,this.La,this.C)),tR(this.Nc,(a-this.j)/1E3||.01,this.B,b,!1,!0))};
g.k.jG=function(a){a=a.ZN||2147483647;2!==(a&2)&&(this.Ga=!1);1===(a&1)&&(this.ra=!0)};
g.k.aG=function(a){a=a.ZN||2147483647;2===(a&2)&&(this.Ga=!1);1===(a&1)&&(this.ra=!1)};
g.k.qY=function(){return this.qa};
g.k.uJ=function(){var a=this.Ga?this.now()-this.D:0;return Math.max(1E3*this.Wa+a,1)};
g.k.BP=function(){return 1E3*this.La/this.uJ()};
g.k.oo=function(){return 2048<this.B};
g.k.R0=function(a){this.bb=a};
g.k.Sq=function(){var a=VY.prototype.Sq.call(this);a.rbw=this.BP();a.rbe=+this.Ga;a.gbe=+this.ra;a.ackt=(this.bb-this.j).toFixed();return a};
g.k.AS=function(){};
g.k.HJ=function(){return NaN};
g.k.pY=function(){return this.j+1E3*this.snapshot.delay};g.y(S8a,kZ);g.k=S8a.prototype;
g.k.uR=function(a,b){switch(a){case 35:this.qq(b);break;case 44:this.fG(b);break;case 43:this.OR(b);break;case 53:this.MR(b);break;case 55:a=new ON(b);(a={timeline:VN(a,1,LQa),Fda:VN(a,2,OQa)},a.timeline)&&a.timeline.q2&&this.Fb.TR(a.timeline.q2,a.timeline.fea,a.Fda);break;case 56:this.cG();break;case 57:this.eG(b);break;case 42:this.xR(b);break;case 45:this.hG(b);break;case 59:this.dG(b);break;case 51:this.iG(b);break;case 49:this.jG(b);break;case 50:this.aG(b);break;case 47:this.gG(b);break;case 58:this.Nm(b);
break;case 61:this.Fb.Fd.R0((0,g.wC)())}};
g.k.iG=function(a){a=new ON(a);a={rrb:XN(a,1,XPa),qrb:XN(a,2,XPa)};this.Fb.iG(a)};
g.k.dG=function(a){var b=new ON(a);a=WN(b,1);var c=WN(b,2);b=WN(b,3);this.Fb.dG(a,c,b)};
g.k.hG=function(a){a=JQa(new ON(a));this.Fb.hG(a)};
g.k.gG=function(a){a=YN(a,DQa);this.Fb.gG(a)};
g.k.xR=function(a){a=new ON(a);a={videoId:UN(a,1),formatId:VN(a,2,XPa),endTimeMs:RN(a,3),bpb:RN(a,4),mimeType:UN(a,5),eZ:VN(a,6,sQa),indexRange:VN(a,7,sQa),cP:VN(a,8,iQa)};this.Fb.xR(a)};
g.k.eG=function(a){a=OQa(new ON(a));this.Fb.eG(a)};
g.k.cG=function(){this.Fb.cG()};
g.k.qq=function(a){a=BQa(new ON(a));this.Fb.qq(a)};
g.k.MR=function(a){a=FQa(new ON(a));this.Fb.MR(a)};
g.k.fG=function(a){a=IQa(new ON(a));this.Fb.fG(a)};
g.k.OR=function(a){a={redirectUrl:UN(new ON(a),1)};this.Fb.OR(a)};
g.k.ER=function(a){var b=GN(a,0);if(1!==a.totalLength){a=a.split(1).Zm;var c=this.B[b]||null;c&&K5a(this.Fb.Yf,b,c,a)}};
g.k.mq=function(a){a=GN(a,0);var b=this.B[a]||null;b&&this.Fb.mq(a,b)};
g.k.tB=function(a){this.Fb.tB(a)};
g.k.GR=function(a){var b=a.Up,c=a.ao,d=a.ZB,e=a.TK,f=a.Kj,h=a.Dq,l=a.startMs,m=a.durationMs,n=a.timeRange,p=a.zs,q=a.clipId,r=R8a(a);a=epb.has(dK[""+a.itag]);this.B[b]=r;this.Fb.vB(r,a,{Up:b,ao:!!c,ZB:null!=d?d:-1,Dq:null!=h?h:-1,startMs:null!=l?l:-1,durationMs:null!=m?m:-1,zs:p,TK:e,Kj:f,clipId:q,timeRange:n})};
g.k.jG=function(a){a={ZN:RN(new ON(a),1)};this.Fb.jG(a)};
g.k.aG=function(a){a={ZN:RN(new ON(a),1)};this.Fb.aG(a)};
g.k.rB=function(a){this.Fb.rB(a)};
g.k.Nm=function(a){a=jQa(new ON(a));this.Fb.Nm(a)};g.y(mZ,g.I);g.k=mZ.prototype;g.k.hs=function(){!this.Na()&&this.xhr&&(this.Bm(),u_(this.Fb,this))};
g.k.Pu=function(){};
g.k.Fo=function(){if(!this.Na()&&this.xhr){var a=this.XP();5===a?dZ(this.Cd):this.Hc(a);this.Cd.B.stop();var b;null==(b=this.LG)||b.stop()}};
g.k.XP=function(){if(eZ(this.Cd,this.xhr.status,this.ou?this.Fd.G:this.xhr.iy(),this.info.nu(),this.ou))return 5;this.Bm();if(this.n1)return 3;i8a(this.Cd,this.xhr.xm(),0);this.policy.Hb&&sbb(this.Fb);return 4};
g.k.Bm=function(){var a=this.xhr;if(a.Or()){a=a.Ay();var b=a.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+b});
this.Fl.feed(a)}};
g.k.wB=function(a,b){this.Fd.policy.j&&21===a&&(this.Fd.G=!0);this.Hda.wB(a,b)};
g.k.gs=function(a,b,c,d){this.Fd.policy.j&&21===a&&(this.Fd.G=!0);c||this.Fd.gs(d);return!1};
g.k.qq=function(a){this.Fb.qq(a)};
g.k.MR=function(a){if(this.policy.enableServerDrivenRequestCancellation){var b;null==(b=this.LG)||b.dispose();this.BS=a;a.z0&&(this.LG=new g.Iv(this.a_,a.z0,this));this.a_()}};
g.k.a_=function(){var a;if(null!=(a=this.BS)&&a.items){var b;null==(b=this.LG)||b.start();if(this.Fd.oo()){a=this.Fd.uJ();b=this.Fd.BP();var c=U8a(this,a);if(!(b>c.JK||0<c.ZQ&&this.info.oP()>c.ZQ)){this.CS=(0,g.wC)();var d;null==(d=this.LG)||d.stop();this.policy.Hb&&(d=this.Fb,a={nw:Math.round(b*a/1E3),Hy:a},d.policy.Hb&&(d.Ca=a,d.Bq++));this.Cd.xH(!1)}}}};
g.k.fG=function(a){this.Fb.fG(a)};
g.k.OR=function(a){this.n1=!0;this.info.resource.fl(this.Zd,a.redirectUrl)};
g.k.jG=function(a){this.Fd instanceof lZ&&this.Fd.jG(a)};
g.k.aG=function(a){this.Fd instanceof lZ&&this.Fd.aG(a)};
g.k.TR=function(a,b,c){this.Fb.TR(a,b,c,this.Op())};
g.k.xR=function(a){if(zV(this.policy)){var b=a.formatId,c=R8a({itag:b.itag,lmt:b.lmt,xtags:b.xtags}),d,e,f=new iQ((null==(d=a.eZ)?void 0:d.first)||0,(null==(e=a.eZ)?void 0:e.wZ)||0),h,l;d=new iQ((null==(h=a.indexRange)?void 0:h.first)||0,(null==(l=a.indexRange)?void 0:l.wZ)||0);this.manifest.N.get(c)||(c=a.cP||{},c.mimeType=a.mimeType,c.itag=b.itag,c.lastModified=""+(b.lmt||0),c.xtags=b.xtags,a=this.manifest,b=KQ(""),c=JQ(c,null),HQ(a,new FQ(b,c,f,d)))}};
g.k.hG=function(a){this.Fb.hG(a)};
g.k.rB=function(a){this.Fb.rB(a)};
g.k.dG=function(a,b,c){this.Fb.dG(a,b,c)};
g.k.eG=function(a){2===a.scope&&(this.Gda=a);this.Fb.eG(a)};
g.k.cG=function(){this.GW=!0;this.Fb.cG()};
g.k.iG=function(a){this.policy.un&&this.Fb.iG(a)};
g.k.gG=function(a){this.Fb.gG(a,this.Op())};
g.k.Nm=function(a){this.policy.ZC&&(this.policy.wi&&3===a.hj&&(this.ou=!0),this.Fb.Nm(a))};
g.k.canRetry=function(){this.Na();return this.Cd.canRetry(!1)};
g.k.dispose=function(){if(!this.Na()){g.I.prototype.dispose.call(this);this.Cd.dispose();var a;null==(a=this.LG)||a.dispose();this.Hc(-1);this.rz()}};
g.k.Hc=function(a){this.state=a;u_(this.Fb,this)};
g.k.nu=function(){return this.info.nu()};
g.k.gO=function(){return this.GW};
g.k.EP=function(){return this.Gda};
g.k.vB=function(a,b,c){c.clipId&&(this.clipId=c.clipId);this.policy.K&&!b&&(this.ej=c.Dq,this.Wu=c.startMs);var d=0;this.policy.Pf&&this.c_&&this.clipId&&(d=pY(this.c_,this.clipId)/1E3);this.Yf.vB(a,b,c,d);this.Yf.Xc.get(a).LD=!0};
g.k.mq=function(a,b){this.Yf.mq(a,b)};
g.k.tB=function(a){this.requestIdentifier=a};
g.k.Hk=function(a){return this.Yf.Hk(a)};
g.k.Qn=function(a){return this.Yf.Qn(a)};
g.k.yl=function(a){return this.Yf.yl(a)};
g.k.zr=function(){return this.Yf.zr()};
g.k.Ar=function(){return 1};
g.k.Op=function(){return this.Fd.requestNumber};
g.k.CP=function(){return this.requestIdentifier};
g.k.YX=function(){return this.clipId};
g.k.Ke=function(){return this.Zd.Ke()};
g.k.v_=function(){this.rz()};
g.k.rz=function(){this.Fd.deactivate();var a;null==(a=this.xhr)||a.abort()};
g.k.isComplete=function(){return 3<=this.state};
g.k.sZ=function(){return 3===this.state};
g.k.Fm=function(){return 5===this.state};
g.k.SY=function(){return this.isComplete()};
g.k.pu=function(){return 1<=this.state};
g.k.Pw=function(){return 0};
g.k.XX=function(){var a;return null==(a=this.info.data)?void 0:a.dO};
g.k.SP=function(){};
g.k.rY=function(){return uab(this.info)};
g.k.dh=function(){return this.Cd.dh()};
g.k.Br=function(){var a=j8a(this.Cd);Object.assign(a,vab(this.info));a.req="sabr";a.rn=this.Op();var b;if(null==(b=this.xhr)?0:b.status)a.rc=this.policy.Jl?this.xhr.status:this.xhr.status.toString();var c;(b=null==(c=this.xhr)?void 0:c.wf())&&(a.msg=b);this.CS&&(c=U8a(this,this.CS-this.Fd.qY()),a.letm=c.h$,a.mrbps=c.JK,a.mram=c.ZQ);return a};
g.k.tY=function(){return{ej:this.ej,Wu:this.Wu,Xp:this.info.Xp()}};V8a.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.wC)()};g.y(f9a,g.UE);g.k=f9a.prototype;
g.k.IR=function(a,b,c,d){if(this.N&&d){d=[];var e=[],f=[],h=void 0,l=0;b&&(d=b.j,e=b.B,f=b.D,h=b.C,l=b.sz);this.N.PR(a.Pa,a.startTime,this.B,d,e,f,c,l,h)}if(c){if(b&&!this.Ha.has(a.Pa)){c=a.startTime;d=[];for(e=0;e<b.j.length;e++)f=b.j[e],h=c,c=h+b.B[e],d.push({startTime:h,endTime:c,adCpn:f});this.Ha.set(a.Pa,d)}this.policy.je&&(c=this.ra&&a.Pa===this.ra.Pa+1,this.ra=a,d=this.j&&a.Pa===this.j.Pa+1,d=this.j&&c&&d&&"stop"!==this.j.Yg.event&&"predictStart"!==this.j.Yg.event,e=a.Yg||null,f=this.Y.j.index.Ad()<=
a.Pa,h=this.manifest.isManifestless&&this.policy.Cv,e?(this.j={Yg:e,Pa:a.Pa,cF:!!b},f?oZ(this,e,a.Pa):h&&(c?d?oZ(this,e,a.Pa):"continue"===e.event||"stop"===e.event?k9a(this,a):oZ(this,e,a.Pa):oZ(this,e,a.Pa))):(d&&k9a(this,a),4===this.B&&pZ(this,5,"qend")))}};
g.k.HR=function(a,b,c){var d=this.Y.j.index.Ad()<=b;this.j={Yg:a,Pa:b,cF:c};d&&oZ(this,a,b)};
g.k.Uw=function(){this.N&&this.N.Uw()};
g.k.ma=function(a,b){this.ya.ma(a,b)};
g.k.Gs=function(a,b){var c=this.Y.j.index.Hi(a),d;if(d=0<=c){var e;d=(null==(e=mY(b.Wc,c,2))?void 0:e.Ft)||""}if(d)return b.Zu(a,c),i9a(this.ya,a,a,c),this.ma("sdai",{cmskpad:1,t:a.toFixed(3),sq:c}),!0;this.ma("sdai",{cmskpad:0,t:a.toFixed(3),sq:c});return!1};g.y(tZ,g.I);tZ.prototype.To=function(a,b,c){c=void 0===c?{}:c;this.policy.qj=YTa(a,c,this.D,void 0===b?!1:b)};n9a.prototype.aL=function(a){var b=this;if(this.policy.PB){var c=new Set(a);c.size===this.Ga.size&&[].concat(g.qa(c)).every(function(d){return b.Ga.has(d)})||(this.ya.ma("lwnmow",{itagDenylist:[].concat(g.qa(a)).join(",")}),this.ya.sy(!!c.size),this.Y=-1,this.Ga=c,yZ(this,this.j),this.Sa=!0)}};
n9a.prototype.To=function(a,b,c){c=void 0===c?{}:c;var d=this.policy.qj;this.G.To(a,void 0===b?!1:b,c);if(d!==this.policy.qj){yZ(this,this.j);zZ(this);var e,f;d>this.policy.qj&&(null==(e=this.C)?0:gK(e.info))&&(null==(f=this.nextVideo)||!gK(f.info))&&(this.qa=!0)}};G9a.prototype.dispose=function(){this.ra=!0};
G9a.prototype.Na=function(){return this.ra};
g.y(GZ,Error);var vgb=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);JZ.prototype.skip=function(a){this.offset+=a};
JZ.prototype.ym=function(){return this.offset};g.k=Z9a.prototype;g.k.oY=function(){return this.B};
g.k.Io=function(){return this.B.length?this.B[this.B.length-1]:null};
g.k.Wk=function(){this.B=[];LZ(this);Y9a(this)};
g.k.Fs=function(){this.eb=this.B.shift().info};
g.k.Qn=function(){return g.$r(this.B,function(a){return a.info})};
g.k.Eh=function(){return!!this.K.info.audio};
g.k.getDuration=function(){return this.K.index.Pt()};g.y(MY,ZY);g.k=MY.prototype;g.k.onStateChange=function(){this.Na()&&(UX(this.Yf,this.formatId),this.j.dispose())};
g.k.Br=function(){var a=D5a(this.Yf,this.formatId),b;var c=(null==(b=this.Yf.Xc.get(this.formatId))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.Yf.Xc.get(this.formatId))?void 0:d.Bz)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:E5a(this.Yf,this.formatId),isAnyMediaEndReceived:this.Yf.gx(this.formatId)}};
g.k.aY=function(){return 0};
g.k.lx=function(){return!0};
g.k.Hk=function(){return this.Yf.Hk(this.formatId)};
g.k.pG=function(){return[]};
g.k.yl=function(){return this.Yf.yl(this.formatId)};
g.k.dh=function(){return this.lastError};
g.k.Pw=function(){return 0};g.y(NZ,g.I);g.k=NZ.prototype;g.k.Io=function(){return this.D.Io()};
g.k.Fs=function(a){this.D.Fs(a);var b;null!=(b=this.N)&&(b.C=C7a(b,b.qd,b.yB,b.C,a),b.B=a,b.G=(0,g.wC)());this.sb=Math.max(this.sb,a.info.j.info.sb||0)};
g.k.getDuration=function(){if(this.policy.j){var a=this.ya.gg();if(a)return rY(a)}return this.j.index.Pt()};
g.k.Wk=function(){OY(this);this.D.Wk()};
g.k.xP=function(){return this.D};
g.k.isRequestPending=function(a){return this.C.length?a===this.C[this.C.length-1].info.ib[0].Pa:!1};
g.k.Gq=function(a){var b;null==(b=this.N)||b.Gq(a)};g.y(a_,g.I);a_.prototype.C=function(){15<this.B++||(this.j=!this.j,new S$a(this.ya,this.policy,this.Nc,this.resource,this.j),this.delay.start())};
g.k=S$a.prototype;g.k.Pu=function(){};
g.k.hs=function(){};
g.k.Fo=function(){if(!this.done)if(this.done=!0,200===this.xhr.status&&this.xhr.xm()===this.size)this.ya.ma("rqs",this.getInfo());else{var a="net.connect";200<this.xhr.status?a="net.badstatus":this.xhr.Wt()&&(a="net.closed");this.onError(a)}};
g.k.onError=function(a){var b=this;this.ya.handleError(a,this.getInfo());AX("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(c){b.ya.ma("pathprobe",c)},function(c){b.ya.handleError(c.errorCode,c.details)})};
g.k.getInfo=function(){var a=this.timing.Sq();a.shost=uP(this.location.base);a.pb=this.size;return a};g.y(b_,g.I);b_.prototype.zQ=function(a,b){if(!ZZ(a)||!a.j.jg())return!1;var c=this.C.Sa||F$a(a)||b<=this.policy.rD||this.C.qa;this.logger.debug(function(){return"ready to adapt: "+c+", upgrade pending: "+F$a(a)+", health: "+b});
return c};
b_.prototype.va=function(){g.I.prototype.va.call(this)};
var W$a=2/24;g.y(g_,g.I);g_.prototype.ZK=function(a,b,c){var d;var e="m"===(null==(d=this.B)?void 0:d.reason)?"m":this.B&&lab(this,this.B)?this.B.reason:"a";this.ya.ZK(new sZ(a,e,c));e_(this.ya,b,a,!0)};
g_.prototype.q1=function(a){for(var b=g.u(this.Z),c=b.next();!c.done;c=b.next())if(c=c.value,c.id===a)return this.D=[c],this.K=this.manifest.j[a],this.bf.j&&(this.Y=!0),new sZ(this.K,"m");this.D=[];return null};
g_.prototype.To=function(a,b,c){c=void 0===c?{}:c;this.j.To(a,void 0===b?!1:b,c)};h_.prototype.nu=function(){return 1===this.requestType};
h_.prototype.oP=function(){var a;return(null==(a=this.Fb)?void 0:a.oP())||0};
h_.prototype.Xp=function(){var a;return!(null==(a=this.data)||!a.Tm)};g.y(i_,g.I);i_.prototype.encrypt=function(a){(0,g.wC)();return zab(this).encrypt(a,this.iv)};
i_.prototype.decrypt=function(a,b){(0,g.wC)();return zab(this).decrypt(a,b)};Aab.prototype.decrypt=function(a,b,c){var d=this,e,f,h,l,m,n;return g.G(function(p){switch(p.j){case 1:if(d.j.length&&!d.j[0].isEncrypted)return p.return();d.B=!0;d.Om.Sd("omd_s");e=new Uint8Array(16);b?c?h=new nR(c,a):h=new mR(a):f=new lR(a);case 2:if(!d.j.length||!d.j[0].isEncrypted){p.Ia(4);break}l=d.j.shift();if(!f){m=h.decrypt(EN(l.buffer),e);p.Ia(5);break}return g.z(p,f.decrypt(EN(l.buffer),e),6);case 6:m=p.B;case 5:n=m;for(var q=0;q<e.length;q++)if(255===e[q])e[q]=0;else{e[q]+=1;break}q=d.Om;
var r=l.videoId,t=l.Up,v=l.formatId,w=new BN([n]),A;null==(A=j_(q.pd,r))||K5a(A,t,v,w);p.Ia(2);break;case 4:d.Om.Sd("omd_c"),k_(d),d.B=!1,d.Om.FR(),g.Aa(p)}})};
Aab.prototype.enqueue=function(a,b,c,d,e){this.j.push({videoId:a,Up:b,formatId:c,buffer:d,isEncrypted:e});this.B||k_(this)};var Kab=!!Uint8Array.prototype.copyWithin,l_=[],Bab=[],Eab=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],n_=[],m_=[],o_=[],Cab=[];g.y(Mab,kZ);g.k=Mab.prototype;g.k.FR=function(){this.pd.FR()};
g.k.uR=function(a,b){switch(a){case 10:var c=YN(b,yQa);a=c.Jca;var d=!1;switch(a){case 0:this.D=!c.w0.Y9;this.iv=c.w0.iv;break;case 2:break;case 23:var e=this.pd;c=c.G$;e.Sd("omp_r");c.videoId&&(e.Qu=c.videoId);e.Qu!==e.videoData.videoId&&(e.videoData.nfa=e.Qu,e.ma("ompp","vid."+e.Qu));e.TQ=!0;break;case 24:c=this.pd;c.Sd("omp_c");c.TQ=!1;c.OG=!1;var f=null==(e=c.Zf)?void 0:e.get(c.Qu);c.notifySubscribers(c.Qu);null!=f&&(f.j=!0);q_(c);break;default:d=!0}this.pd.Cm&&this.pd.ma("ombup","id.10;pt."+
a+";len."+b.totalLength+(d?";ignored.1":""));this.C=a;break;case 11:Pab(this,b);break;case 12:this.ER(b,!0);break;case 37:b=YN(b,zQa);(b.m7||b.fU)&&b.videoId&&this.pd.VX.set(b.videoId,b);break;case 60:this.BR(b);break;case 64:this.Nu(b);break;case 47:this.L("html5_server_playback_start_policy")&&(b=YN(b,DQa),this.pd.playbackStartPolicy=b);break;case 35:this.qq(b);break;default:this.pd.Cm&&this.pd.ma("ombup","id."+a+";len."+b.totalLength+";ignored.1")}};
g.k.rB=function(a){this.pd.JZ=a};
g.k.BR=function(a){a=YN(a,tQa);this.pd.BR(a)};
g.k.Nu=function(a){this.L("html5_enable_lawnmower_messaging")&&(a=YN(a,vQa),this.pd.Nu(a))};
g.k.GR=function(a){var b=a.Up,c=a.ao,d=a.ZB,e=a.Kj,f=a.Dq,h=a.startMs,l=a.durationMs,m=a.timeRange,n=a.zs,p=R8a(a),q=epb.has(dK[""+a.itag]);c&&this.Sd(q?"oais_r":"ovis_r");var r=void 0!==this.j[p];this.pd.Cm&&this.pd.ma("ombup","id.20;hid."+b+";fid"+p);var t=a.videoId||"";this.B[b]=p;this.G[b]=t;r||(this.j[p]={videoId:t,KY:!1,Eh:q,headers:[]});this.j[p].headers.push(a);this.pd.vB(t,p,q,{Up:b,ao:!!c,ZB:null!=d?d:-1,Dq:null!=f?f:-1,startMs:null!=h?h:-1,durationMs:null!=l?l:-1,zs:null!=n?n:0,Kj:e,timeRange:m})};
g.k.ER=function(a,b){var c=GN(a,0);this.pd.Cm&&this.pd.ma("ombup","id."+(b?12:21)+";len."+a.totalLength+";hid."+c);if(1!==a.totalLength){a=a.split(1).Zm;var d=this.B[c]||null,e=this.G[c]||"";d&&(this.Li(this.j[d].Eh?"oafs_r":"ovfs_r"),this.queue.enqueue(e,c,d,a,b))}};
g.k.mq=function(a){var b=GN(a,0);this.pd.Cm&&this.pd.ma("ombup","id.22;len."+a.totalLength+";hid."+b);a=this.B[b]||null;var c=this.G[b]||"";if(a)if(this.L("html5_use_ump_request_slicer")){var d=this.queue;d.j.push({videoId:c,Up:b,formatId:a,isEncrypted:!1,v8:!0});d.B||k_(d)}else this.pd.mq(c,b,a)};
g.k.tB=function(a){this.pd.tB(a)};
g.k.LR=function(a,b){var c=this,d,e,f,h,l,m,n,p,q,r,t,v,w,A,C;return g.G(function(F){switch(F.j){case 1:c.pd.LR();d=EN(a);if(!b){f=d;F.Ia(2);break}return g.z(F,$ab(c.pd,d,c.iv),3);case 3:f=F.B;case 2:e=f;if(!c.pd.enableCompression){F.Ia(4);break}h=c.pd.U();m=null==(l=performance)?void 0:l.now();return g.z(F,Lab(e,h.Id),5);case 5:e=F.B,c.pd.ma("decompression",{ds:"DecompressionStream"in window,wasm:!!h.Id,rt:(null==(n=performance)?NaN:n.now())-m});case 4:try{p=YN(e,hQa)}catch(H){return q=H instanceof
Error?{name:H.name,message:H.message}:{},q.webcrypto=""+ +!!tN(),q.enc=""+ +c.D,r=new RJ("onesie.response.parse",q),F.return(Promise.reject(r))}if(1!==p.k0)return t={st:p.k0,webcrypto:""+ +!!tN(),textencoder:""+ +!!g.Ta.TextEncoder},v=new RJ("onesie.response.badproxystatus",t),F.return(Promise.reject(v));if(200!==p.YY)return w={st:p.YY},A=new RJ("onesie.response.badstatus",w),F.return(Promise.reject(A));C=g.LN(p.body);return F.return(C)}})};
g.k.qq=function(a){this.L("html5_consume_onesie_next_request_policy_for_sabr")&&(a=YN(a,BQa),this.pd.qq(a))};
g.k.Sd=function(a){this.pd.Sd(a)};
g.k.Li=function(a){return this.pd.Li(a)};
g.k.L=function(a){return this.pd.L(a)};g.y(s_,g.I);g.k=s_.prototype;g.k.YX=function(){return""};
g.k.zr=function(a){var b,c;return(null==(c=null==(b=this.Zf)?void 0:b.get(a))?void 0:c.zr())||[]};
g.k.yl=function(a,b){var c;return!(null==(c=j_(this,b))||!c.yl(a))};
g.k.Hk=function(a,b){var c;return(null==(c=j_(this,b))?void 0:c.Hk(a))||[]};
g.k.Qn=function(a,b){var c;return(null==(c=j_(this,b))?void 0:c.Qn(a))||[]};
g.k.Hc=function(a){this.state=a;this.notifySubscribers()};
g.k.nu=function(){return!1};
g.k.gO=function(){return!1};
g.k.EP=function(){};
g.k.Sd=function(a){this.ea.Sd(a)};
g.k.Li=function(a){return this.ea.Li(a)};
g.k.gs=function(a,b,c,d){c||this.Fd.gs(d);return!1};
g.k.wB=function(a,b){this.Om.wB(a,b)};
g.k.vR=function(){this.Sd("orfb");this.jK=!0;if(abb(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.xm(),rt:(1E3*W7a(this.Fd)).toFixed(),shost:g.wn(this.WR),trigger:"o1"};this.ma("pathprobe",QJ(a))}};
g.k.LR=function(){this.Sd("opr_r");this.QY=!0};
g.k.vB=function(a,b,c,d){if(this.Zf){if(!this.Zf.has(a)){var e=new SX(this);this.Zf.set(a,e);g.N(this,e)}var f;null==(f=this.Zf.get(a))||f.vB(b,c,d);q_(this);this.L("html5_enable_sabr_ssdai")&&!c&&(this.ej=d.Dq,this.Wu=d.startMs)}else q_(this)};
g.k.BR=function(a){this.RA=a};
g.k.Nu=function(a){this.W.Nu(a)};
g.k.qq=function(a){a.videoId&&this.o_.set(a.videoId,a)};
g.k.FR=function(){if(this.Zf)for(var a=g.u(this.Zf.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;null==(c=this.Zf.get(b.value))||c.mB()}};
g.k.ma=function(a,b,c){this.ea.ma(a,b,void 0===c?!1:c)};
g.k.mq=function(a,b,c){var d;null==(d=j_(this,a))||d.mq(b,c)};
g.k.tB=function(a){this.Y0.set(a.videoId,a)};
g.k.fetch=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,C,F,H,M;return g.G(function(L){switch(L.j){case 1:a.logger.debug("Onesie fetch started.");a.DH?a.nO.start():a.mG.start();a.Sd("or_i");b=a.W.experiments.fb("html5_onesie_verbose_timing");c={};d=(0,g.wC)();e=function(R){b&&(c[R]=(0,g.wC)()-d)};
e("loc_s");if(f=Rab(a.videoData,a.tA)){L.Ia(2);break}e("loc_async");h=g.xI(a.W.experiments,"html5_onesie_redirector_timeout_ms");return g.z(L,Sab(a.videoData,a.tA,h),3);case 3:f=L.B;case 2:if(!f)return a.logger.info("Onesie URL creation failed."),l={url:"0"},m=new RJ("onesie.unavailable.hotconfig",l),a.vj(m),L.return(a.Kq);a.s1=uP(f);e("loc_e");n=g.$R(a.W,g.qT(a.videoData));if(!n.j){p=n.getValue();L.Ia(4);break}return g.z(L,n.j,5);case 5:p=L.B;case 4:q=p;e("oauth");r=Vab(a.playerRequest,a.W,a.videoData,
q,EX(a.s1));g.Ba(L,6);if(!Oab(a,r)){e("or_s_sync");a.lL=Xab(r,a.lG,a.W,a.ea,a.JO.onesieUstreamerConfig,null==(t=a.videoData.j0)?void 0:t.Xo);L.Ia(8);break}e("or_s_async");return g.z(L,Zab(r,a.lG,a.W,a.ea,a.JO.onesieUstreamerConfig,null==(v=a.videoData.j0)?void 0:v.Xo),9);case 9:a.lL=L.B;case 8:g.Ca(L,7);break;case 6:return w=g.Da(L),a.logger.info("Failed to create OnesieRequestProto."),a.vj(w),L.return(a.Kq);case 7:return e("or_e"),b&&a.ma("oreqvt",c),a.enableCompression=a.lL.oQ.RO,a.Sd("osor"),A=
I_a(),C=g.fO(a.lL,SPa),F={method:"POST",body:C,headers:{"Content-Type":"text/plain",Referer:location.origin}},H=a.L("html5_onesie_media_capabilities"),Uab(f,a.videoData,cbb(a),H),a.logger.debug("Starting Onesie network request."),a.Cm&&a.ma("ombrs","1"),M=a.ea.U().schedule,a.Fd=new XY(a,{Nc:M,dJ:a.Cm,Tu:function(R,ba){a.ea.EG(R,ba)},
Ep:a.L("html5_disable_variability_reporting_for_onesie")}),f.set("rn",""+a.Fd.requestNumber),a.WR=f.Ke(),S7a(a.Fd,a.WR),a.Sd("or_p"),a.xhr=aZ(new eQ(f),A,a.Fd,gR,F),a.h0.start(),L.return(a.Kq)}})};
g.k.Ar=function(){return 2};
g.k.Pu=function(){this.Sd("orh_r")};
g.k.hs=function(){!this.jK&&this.xhr.xm()&&this.vR();if(this.DA&&!this.DH){var a;null==(a=this.kL)||a.start()}this.Bm()};
g.k.Fo=function(a){a=void 0===a?!1:a;this.logger.debug("onXhrDone");this.Bm();if(!(this.Na()||4<=this.state)){var b=r_(this),c=this.xhr;b.rc=c.status;a&&(b.ab=!0);if(c.wf()){var d="onesie.net";b.msg=c.wf()}else 400<=c.status?d="onesie.net.badstatus":c.iy()?this.QY||(d="onesie.response.noplayerresponse"):d=204===c.status?"onesie.net.nocontent":"onesie.net.connect";d?this.vj(new RJ(d,b)):(this.Sd("or_fs"),this.Fd.iR((0,g.wC)(),c.xm(),0),this.Hc(4),this.Cm&&this.ma("rqs",b));this.Cm&&this.ma("ombre",
"ok."+ +!d);this.OG=!1;q_(this);Nab(this.Om);if(!this.DH){this.mG.stop();var e;null==(e=this.kL)||e.stop()}var f;if(a=null==(f=this.tA)?void 0:X4a(f))for(f=0;f<a.length;f++)this.ma("pathprobe",a[f])}};
g.k.XX=function(){};
g.k.v_=function(){if(this.playerResponse&&this.xhr&&this.Zf)for(var a=g.u(this.Zf.entries()),b=a.next();!b.done;b=a.next())if(b=g.u(b.value),b.next(),b.next().value.B){this.xhr.abort();this.Fo(!0);break}};
g.k.U=function(){return this.W};
g.k.L=function(a){return this.W.L(a)};
g.k.D$=function(){if(abb(this)&&this.tA&&(!this.jK||this.L("html5_onesie_probe_ec_hosts"))){var a=this.tA;if(a.W.experiments.fb("html5_onesie_probe_ec_hosts")){var b,c=null==(b=a.j.get(3))?void 0:uP(b.location);c&&DX(a,c,"osc",this);var d;(c=null==(d=a.j.get(4))?void 0:uP(d.location))&&DX(a,c,"ocy",this)}else{var e;(d=null==(e=a.j.get(1))?void 0:uP(e.location))&&DX(a,d,"o2",this);(d=null==(c=a.j.get(2))?void 0:uP(c.location))&&DX(a,d,"o3",this)}}};
g.k.s7=function(){if(!this.Na()&&!this.isComplete()){if(this.DA){if(1E3<(0,g.wC)()-this.Fd.Y){var a;null==(a=this.Fd)||a.SK((0,g.wC)());a=r_(this);if(this.W.Bc()&&this.xhr instanceof b8a){var b=this.xhr;a.xrs=b.xhr.readyState;a.xpb=b.j.totalLength;a.xdc=b.D}this.vj(new RJ("net.timeout",a))}}else 1E4<(0,g.wC)()-this.Fd.j&&(null==(b=this.Fd)||b.SK((0,g.wC)()),this.UP());this.isComplete()||this.nO.start()}};
g.k.UP=function(){this.logger.info("Onesie request timed out");this.OG=!1;if(!q_(this)){var a=r_(this);a.timeout="1";this.vj(new RJ("onesie.request",a))}};
g.k.vj=function(a){var b=this;a=TJ(a);this.DA?this.ea.Rd(a):(this.Kq.reject(a),this.DA=!0);Nab(this.Om);this.DH||this.mG.stop();this.Sd("or_fe");var c,d;null==(c=this.tA)||null==(d=X4a(c))||d.forEach(function(e){b.ma("pathprobe",e)});
this.Hc(5);this.dispose()};
g.k.isComplete=function(){return 3<=this.state};
g.k.SY=function(a){var b,c;return this.isComplete()||!!(null==(b=this.Zf)?0:null==(c=b.get(a))?0:c.j)};
g.k.sZ=function(){return!1};
g.k.Fm=function(){return 5===this.state};
g.k.notifySubscribers=function(a){for(var b=0;b<this.pH.length;b++)a&&this.pH[b].qe()!==a||u_(this.pH[b],this)};
g.k.rY=function(){var a,b;return(null==(a=this.lL)?void 0:null==(b=a.ut)?void 0:b.lS)||0};
g.k.va=function(){this.playerResponse="";var a;null==(a=this.xhr)||a.abort();Nab(this.Om);this.Fl.dispose();var b;null==(b=this.kL)||b.dispose();this.Hc(-1);this.pH=[];g.I.prototype.va.call(this)};
g.k.Bm=function(){try{var a=this.xhr;102400<a.xm()&&!this.mZ&&(this.Sd("or100k"),this.mZ=!0);if(a.Or()){var b=a.Ay(),c=b.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+c});
this.Cm&&this.ma("ombrss","len."+c);this.Fl.feed(b)}if(this.Zf)for(var d=g.u(this.Zf.keys()),e=d.next();!e.done;e=d.next()){var f=e.value;a=void 0;null==(a=this.Zf.get(f))||a.mB();this.notifySubscribers(f)}}catch(h){this.vj(h)}};
g.k.Op=function(){return this.Fd.requestNumber};
g.k.CP=function(a){return this.Y0.get(a)};
g.k.tY=function(){return{ej:this.ej,Wu:this.Wu,Xp:!1}};g.y(ebb,g.I);g.k=ebb.prototype;g.k.PG=function(a){this.qa=void 0;sbb(this);qbb(this,a)};
g.k.yQ=function(a){return 0===this.j.length?!1:50>Math.abs(this.j[0].rY()-a)};
g.k.qq=function(a){this.B=a;this.qa=(0,g.wC)()+(a.backoffTimeMs||0)};
g.k.fG=function(a){if(void 0!==a.action&&(0!==a.action||!this.La)){var b={};b.reason=a.jda;b.action=a.action;switch(a.action){case 1:this.policy.K&&this.K&&this.K.iE(void 0,void 0,b);break;case 0:this.La=!0;this.ya.ZI(b);break;case 2:this.ya.handleError("sabr.config",b,1);break;case 5:mgb(this.ea,!0);break;case 6:mgb(this.ea,!1);break;case 3:this.policy.EC&&(null!=(a=this.manifest.Z)&&(a.N=!0),this.ya.handleError("sabr.hostfallback",b))}}};
g.k.TR=function(a,b,c,d){if(this.policy.j){this.ya.ma("ssap",{rn:d,v:b,tl:ubb(a)});var e=this.ya.gg();a={vt:a,context:c,version:b};c&&c.type&&(this.videoData.sabrContextUpdates.set(c.type,c),c.sendByDefault&&this.ek.add(c.type));e?rbb(this,e,a):(this.ya.ma("ssap",{cacheclips:1,rn:d,v:b}),this.N=a)}};
g.k.eG=function(a){this.policy.qa&&a&&a.type&&a.sendByDefault&&this.ek.add(a.type)};
g.k.cG=function(){};
g.k.hG=function(a){if(void 0!==a.OS&&a.PS){var b=a.OS/a.PS;this.audioTrack.Z=!1;this.videoTrack.Z=!1;var c={yd:"sabr_seek",vF:!0,sT:!0};a.seekSource&&(c.seekSource=a.seekSource);SY(this.ya,b,c)}};
g.k.rB=function(a){a.YJ&&a.ZJ&&PTa(this.manifest,a.YJ,a.ZJ)};
g.k.Nm=function(a){this.ya.Nm(a)};
g.k.dG=function(a,b,c){this.policy.B&&this.ya.ma("sabrctxtplc",{start:a?a.join("_"):"",stop:b?b.join("_"):"",discard:c?c.join("_"):""});if(a){a=g.u(a);for(var d=a.next();!d.done;d=a.next())this.ek.add(d.value)}if(b)for(b=g.u(b),a=b.next();!a.done;a=b.next())a=a.value,this.ek.has(a)&&this.ek.delete(a);if(c)for(c=g.u(c),b=c.next();!b.done;b=c.next())b=b.value,this.videoData.sabrContextUpdates.has(b)&&(this.videoData.sabrContextUpdates.delete(b),3===b&&(this.videoData.zz=""))};
g.k.iG=function(){};
g.k.gG=function(a,b){L_a(this.policy,a,4,b)};
g.k.qe=function(){return this.ea.qe()||""};
g.k.oP=function(){var a=1E3*VZ(this.audioTrack,!0),b=1E3*VZ(this.videoTrack,!0);return Math.min(a,b)};
g.k.ql=function(a,b){this.ya.ma(a,b)};
g.k.SJ=function(a){Mbb(this.ya,x9a(this.ra,a))};
g.k.va=function(){g.I.prototype.va.call(this);this.B=void 0;qbb(this,!0);this.j=[]};vbb.prototype.mf=function(a,b){if(this.D)return Abb(this,b);if(b=TY(a)){var c=b.B;c&&c.D&&c.j&&(a=a.C.length?a.C[0]:null)&&2<=a.state&&!a.Fm()&&0===a.info.gh&&(this.D=a,this.N=c,this.B=b.info,this.K=this.startTimeSecs=Date.now()/1E3,this.G=this.B.startTime)}return NaN};
vbb.prototype.clear=function(){this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1};g.y(g.x_,g.I);g.k=g.x_.prototype;g.k.initialize=function(a,b,c){this.logger.debug(function(){return"Initialized, t="+a});
a=a||0;zV(this.policy)||(b=BZ(this.j),Pbb(this.ea,new sZ(b.video,b.reason)),this.ea.Px(new sZ(b.audio,b.reason)));this.manifest.isManifestless&&gab(this.G);this.K&&xbb(this.K,this.videoTrack.j);b=isNaN(this.currentTime)?0:this.currentTime;var d=!this.manifest.isManifestless;this.policy.Qy&&(d=d||this.manifest.Yd);this.currentTime=d?a:b;if(this.policy.C){var e;(null==(e=this.ra)?0:dbb(e,this.qe()||""))&&Ebb(this)&&Dbb(this,this.videoTrack)&&Dbb(this,this.audioTrack)&&tbb(this.qa,this.ra)}else this.Ca&&
(Fbb(this,this.videoTrack),Fbb(this,this.audioTrack),C5a(this.Ca),delete this.Ca);c?(this.policy.tf?(this.Jb=c,A_(this,c)):A_(this,!1),g.Jv(this.HF)):(c=0===this.currentTime,d_(this.G,this.videoTrack,this.videoTrack.j,c),d_(this.G,this.audioTrack,this.audioTrack.j,c),this.policy.C&&hbb(this.qa,!0),this.seek(this.currentTime,{}).Dl(function(){}),this.timing.tick("gv"));
(this.manifest.cf||this.manifest.Ih||this.manifest.bb||this.manifest.Nb||this.manifest.vc)&&this.ea.DG(this.manifest)};
g.k.resume=function(){if(this.isSuspended||this.Zp){this.logger.debug("Resumed.");this.YI=this.Zp=this.isSuspended=!1;try{this.mf()}catch(a){g.AE(a)}}};
g.k.Tz=function(a){a=void 0===a?!1:a;this.logger.debug("detaching media source");Ibb(this);FK(this.ea)&&(this.Z=NaN);a?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Ga&&this.ma("loader",{setsmb:1}),this.policy.Ha=!0):this.policy.tf?A_(this,this.Jb):A_(this,!1);this.Wk()};
g.k.setAudioTrack=function(a,b,c){c=void 0===c?!1:c;if(!this.Na()){var d=!isNaN(b);c&&d&&(this.audioTrack.Y=Date.now(),this.policy.Jd&&(this.Wa=!0));if(zV(this.policy)){var e=this.D.q1(a.id);this.logger.debug(function(){return"Logging new audio format: "+e.j.info.id});
this.ea.Px(e)}else{var f=w9a(this.j,a.id,d);this.logger.debug(function(){return"Logging new audio format: "+f.audio.info.id});
this.ea.Px(new sZ(f.audio,f.reason))}if(d&&(c=this.audioTrack.j.index.Hi(b),this.ma("setAudio",{id:a.id,cmt:b,sq:c}),0<=c)){D$a(this.audioTrack,c,NaN,NaN);OQ(this.manifest,c,!1);return}this.ea.Po()}};
g.k.setPlaybackRate=function(a){a!==this.Y.getPlaybackRate()&&this.Y.setPlaybackRate(a)};
g.k.ZK=function(a){var b=a.j.info.Eh();this.logger.debug(function(){return"New "+(b?"audio":"video")+" format from SABR: "+oK(a.j.info)});
b?this.ea.Px(a):Pbb(this.ea,a)};
g.k.SJ=function(a){pQ(a.ib[a.ib.length-1])&&Mbb(this,x9a(this.j,a.ib[0].j))};
g.k.FJ=function(){return this.ea.FJ()};
g.k.Nm=function(a){if(this.policy.wi)if(1===a.hj)this.Sa=0;else{if(2===a.hj||3===a.hj){var b=!1;if(3===a.hj){++this.Sa;var c;this.Sb=null!=(c=a.U0)?c:Infinity;this.ea.bH(this.Sa);(b=fab(this))&&this.cB(!0)}this.ea.QR(!0,b)}}else this.ea.Nm(a)};
g.k.mA=function(){return this.ea.mA()};
g.k.Zk=function(){return this.ea.Zk()};
g.k.VR=function(a){this.ea.VR(a)};
g.k.Uca=function(){var a,b=null==(a=this.ea.Je())?void 0:a.getCurrentTime();b?this.ea.ma("rms",{cta:b}):g.Jv(this.Nb)};
g.k.mf=function(){Lbb(this);if(this.Qa&&CK(this.Qa)&&!this.Qa.jk()){var a=PZ(this.videoTrack);a=this.policy.UC&&a&&nQ(a);this.manifest.isManifestless&&this.manifest.C&&LQ(this.manifest)?(this.Z=LQ(this.manifest),this.Qa.Bl(this.Z)):PQ(this.manifest)&&!a?isNaN(this.Z)?(this.Z=this.currentTime+3600,this.Qa.Bl(this.Z)):this.Z<=this.currentTime+1800&&(this.Z=Math.max(this.Z+1800,this.currentTime+3600),this.Qa.Bl(this.Z)):this.Qa.isView||(a=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()),
(!isFinite(this.Z)||this.Z!==a)&&0<a&&(this.Qa.Bl(a),this.Z=a))}if(!this.Na())if(JTa(this.manifest)&&this.manifest.Fm()){var b=this.manifest;this.handleError("manifest.net.retryexhausted",b.eb?{rc:b.Bg}:{rc:b.Bg.toString()},1)}else if(this.policy.C)a:{try{nbb(this.qa);this.manifest.isManifestless&&this.policy.G&&RY(this.B);if(zV(this.policy)&&!zK()&&this.policy.jn&&this.Qa&&!GK(this.Qa)&&this.videoTrack.Ga&&this.audioTrack.Ga){this.ma("ssap",{delaysb:1,v:this.videoTrack.j.info.id,vf:this.videoTrack.j.info.qb,
a:this.audioTrack.j.info.id,af:this.audioTrack.j.info.qb});var c=this.Qa,d=this.videoTrack.j,e=this.audioTrack.j;!GK(c)&&e&&d&&(HEa(c,d.info,e.info,this.policy.Ab),Jbb(this,c))}var f;(null==(f=this.Qa)?0:GK(f))&&this.GB();zV(this.policy)||z_(this);hbb(this.qa)}catch(l){g.BE(l);b=l;if(this.policy.NC&&b.message.includes("changeType")){this.ma("ssap",{exp:b.name,msg:b.message,s:b.stack});break a}this.policy.qA?this.handleError("fmt.unplayable",{exp:b.name,msg:b.message,s:b.stack},1):this.ZI({reason:"exp",
ename:b.name,emsg:b.message})}bcb(this);g.Jv(this.bb)}else if(!this.manifest.B||!J$a(this.videoTrack)&&!J$a(this.audioTrack)||(this.videoTrack.G||this.audioTrack.G)&&this.policy.gb?c=!1:(this.Wk(),this.ea.seekTo(Infinity,{yd:"checkLoaderTracksSync",Zq:!0}),c=!0),!c){Lbb(this);this.manifest.isManifestless&&(K$a(this.videoTrack),K$a(this.audioTrack),RY(this.B),(c=TY(this.videoTrack))&&c.B&&(c=c.B.D&&!this.policy.Xj,this.ma(c===this.policy.N.lj?"strm":"strmbug",{strm:c,sfmp4:this.policy.N.lj,dfs:this.policy.Xj},
!0)));if(this.Qa)this.GB();else if(this.policy.D){var h;c=!1;if(this.policy.pz)for(d=g.u([this.videoTrack,this.audioTrack]),e=d.next();!e.done;e=d.next()){f=e.value;for(e=TY(f);e&&f.Io()!==PZ(f);e=TY(f))f.Fs(e);c=c||!!e}else(b=TY(this.videoTrack))&&this.videoTrack.Fs(b),(h=TY(this.audioTrack))&&this.audioTrack.Fs(h);SZ(this.videoTrack)&&SZ(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(b||h||c)&&B_(this)}z_(this);d_(this.G,this.videoTrack,this.videoTrack.j,!1);d_(this.G,
this.audioTrack,this.audioTrack.j,!1);this.policy.NA||Obb(this,this.videoTrack,this.audioTrack);Y$a(this.G,this.videoTrack,this.audioTrack);Y$a(this.G,this.audioTrack,this.videoTrack);bcb(this);this.K&&(b=this.K,b.D?(h=b.K+b.policy.Vv,b.C||(h=Math.min(h,b.startTimeSecs+b.policy.Mk)),b=Math.max(0,1E3*h-Date.now())):b=NaN,isNaN(b)||g.Jv(this.vc,b));g.Jv(this.bb)}};
g.k.ZI=function(a){this.ea.ZI(a)};
g.k.GB=function(){var a=this;if(this.Qa){var b=this.Qa.j,c=this.Qa.B,d=Rbb(this);if(d){if(this.policy.Qs){if(!b.Jw()){var e=TY(this.audioTrack);if(e){if(!w_(this,this.audioTrack,b,e.info))return;Ubb(this,b,e)}}if(!c.Jw()&&(e=TY(this.videoTrack))){if(!w_(this,this.videoTrack,c,e.info))return;Ubb(this,c,e)}}this.yp||(this.yp=(0,g.wC)(),this.logger.debug(function(){return"Appends pause start "+a.yp+" reason "+d}),this.policy.B&&this.ma("apdps",{r:d}))}else if(this.yp&&(Qbb(this,this.yp),this.yp=0),Sbb(this),
e=!1,this.policy.j&&$Z(this.videoTrack)||!Wbb(this,this.videoTrack,c)||(e=!0,Y8a(this.timing),b9a(this.timing)),this.Qa&&!this.Qa.Og()&&(this.policy.j&&$Z(this.audioTrack)||!Wbb(this,this.audioTrack,b)||(e=!0,Z8a(this.timing),c9a(this.timing)),!this.Na()&&this.Qa)){if(!this.policy.Va&&SZ(this.videoTrack)&&SZ(this.audioTrack)&&CK(this.Qa)&&!this.Qa.jk()){c=!1;
c=PZ(this.audioTrack);if(this.policy.j){var f;b=null==(f=this.zb)?void 0:qY(f,1E3*c.C);c=!(!b||b.clipId!==c.clipId);this.ma("ssap",{eos:c})}else f=c.j,c=f===this.manifest.j[f.info.id];c&&(this.logger.debug("Setting EOS"),JEa(this.Qa),DUa(this.schedule))}e&&!this.Qa.isAsync()&&B_(this)}}};
g.k.A4=function(a){var b=this;if(this.policy.Sb&&this.Qa){var c,d=a===(null==(c=this.Qa)?void 0:c.j)?this.audioTrack:this.videoTrack;if((c=TY(d))&&a.sF()){a.GI();var e;null==(e=d.Ha)||e.stop();c.isLocked=!1;d.Fs(c);y9a(this.j,c.info);d=a.gA();(null==d?void 0:d.Tc())!==c.info.Tc()&&this.ma("oue",{bls:null==d?void 0:d.Tc(),tls:c.info.Tc()})}}var f;if(this.policy.Jd&&a===(null==(f=this.Qa)?void 0:f.j)&&this.eb){var h;this.ea.ma("asl",{l:this.eb-this.currentTime,xtag:null==(h=PZ(this.audioTrack))?void 0:
h.j.info.j});this.Wa=!1;this.eb=0}a.Em()&&0===a.He().length&&(a.Ez(),this.Qa&&!this.Qa.Em()&&(this.ea.U().Bc()&&this.ea.ma("rms",{ld:"seek"}),this.Qa.N=performance.now(),this.ea.bP(),this.ea.U().Bc()&&g.Jv(this.Nb)));if(this.policy.La&&this.Qa){f=a===this.Qa.j;var l=a.gA();if(l){if(!l.Tb||l.Te)f=a.pc({a:f}),f.omt=(this.getCurrentTime()+this.Mc()).toFixed(3),f.to=this.Mc(),this.ma("sbu",f);l.Te&&!a.jk()&&setTimeout(function(){var m=a.He(),n=rK(m,l.startTime+W$a),p=rK(m,b.currentTime);(0>n||n!==p)&&
b.ma("sbu_mismatch",{b:qK(m),c:b.currentTime,s:l.Tc()})},0)}}this.mf()};
g.k.haa=function(a){if(this.Qa){var b=PZ(a===this.Qa.j?this.audioTrack:this.videoTrack);if(a=a.DP())for(var c=0;c<a.length;c++)this.ma("appendedbuffer",{i:c,b:g.Hg(a[c].subarray(0,4096),3)});a=void 0;b&&(a=rQ(b),this.policy.j&&this.zb&&this.zb.Mp()&&(a.ccid=this.zb.Mp()));this.handleError("fmt.unplayable",a,1)}};
g.k.Qx=function(a){this.ea.Qx(a)};
g.k.IR=function(a,b,c){this.manifest.isManifestless&&o$a(this,b,c,!!a.info.video,!0)};
g.k.HR=function(a,b,c,d){a.info.video&&this.C.HR(b,c,d)};
g.k.aL=function(a){this.j.aL(a)};
g.k.WE=ea(19);g.k.bM=function(a){this.zb=a;var b;null!=(b=this.audioTrack.N)&&(b.Wc=a);null!=(b=this.videoTrack.N)&&(b.Wc=a);b=this.qa;b.N&&(b.ya.ma("ssap",{addcacheclips:1,v:b.N.version,tl:ubb(b.N.vt)}),rbb(b,a,b.N),b.N=void 0)};
g.k.gg=function(){return this.zb};
g.k.qF=function(){return this.videoTrack.Z||this.audioTrack.Z};
g.k.seek=function(a,b){if(this.Na())return ig();if(this.qF())return ig("seeking to head");Lbb(this);this.eq=(0,g.wC)();zV(this.policy)||z_(this,a);this.Qa&&this.Qa.j&&this.Qa.B&&!this.ea.getVideoData().qW&&(this.Qa.j.isLocked()||this.Qa.B.isLocked())&&this.ea.Po({reattachOnLockedBuffer:1,vsb:""+this.Qa.B.isLocked(),asb:""+this.Qa.j.isLocked()});var c=this.currentTime;this.currentTime=this.B.seek(a,b);qZ(this.C,a,c);B_(this);return hg(this.currentTime)};
g.k.yQ=function(a){return this.policy.C&&this.qa.yQ(a)};
g.k.PG=function(a){this.qa.PG(a)};
g.k.getCurrentTime=function(){return this.currentTime};
g.k.nP=function(){return this.audioTrack.j.info};
g.k.FE=function(){return this.videoTrack.j.info};
g.k.mP=function(){return this.audioTrack.j.info.qb};
g.k.pP=function(){return this.videoTrack.j.info.qb};
g.k.va=function(){try{this.Tz();OY(this.audioTrack);OY(this.videoTrack);var a;null==(a=this.audioTrack.N)||G7a(a);var b;null==(b=this.videoTrack.N)||G7a(b);this.audioTrack.dispose();this.videoTrack.dispose();g.I.prototype.va.call(this)}catch(c){g.AE(c)}};
g.k.handleError=function(a,b,c){c=void 0===c?0:c;var d=SJ(c);if("fmt.unplayable"===a&&this.manifest.isLive){this.policy.Qs=!1;var e=this.manifest;if(e.isManifestless)for(var f in e.j)e.j[f].index.segments=[]}b=new RJ(a,b,c);g.fb(this);QJ(b.details);this.ea.handleError(b);"html5.invalidstate"!==a&&"fmt.unplayable"!==b.errorCode&&"fmt.unparseable"!==a&&d&&this.dispose()};
g.k.pc=function(){var a=PZ(this.audioTrack),b=PZ(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.B.isSeeking(),lmf:this.j.j.isLocked(),lbw:FUa(this.schedule).toFixed(3),lhd:vR(this.schedule).toFixed(3),lst:(1E9*(this.schedule.G.eh()||0)).toFixed(3),laa:a?a.Tc():"",lva:b?b.Tc():"",lar:this.audioTrack.B?this.audioTrack.B.Tc():"",lvr:this.videoTrack.B?this.videoTrack.B.Tc():"",laq:""+TZ(this.audioTrack),lvq:""+TZ(this.videoTrack)};this.Qa&&!this.Qa.Og()&&this.Qa.j&&this.Qa.B&&(a.lab=qK(this.Qa.j.He()),
a.lvb=qK(this.Qa.B.He()));this.yp&&(a.lapt=((0,g.wC)()-this.yp).toFixed(0),a.lapr=Rbb(this));this.La&&(a.lapmbht=((0,g.wC)()-this.La).toFixed(0));return a};
g.k.Wk=function(){try{this.policy.C&&this.qa.PG(!1),this.audioTrack.Wk(),this.videoTrack.Wk()}catch(a){g.AE(a)}this.policy.D=""};
g.k.iP=function(){return JY(this.Y)};
g.k.ma=function(a,b,c){this.ea.ma(a,b,void 0===c?!1:c)};
g.k.qe=function(){return this.ea.qe()};
g.k.Zq=function(a,b){a/=b;isNaN(this.timestampOffset)&&hcb(this,a-Math.min(a,this.policy.vD));return(a-this.timestampOffset)*b};
g.k.Mc=function(){return this.timestampOffset};
g.k.isSeeking=function(){return this.B.isSeeking()};
g.k.Uw=function(){this.C.Uw()};
g.k.To=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?{}:c;zV(this.policy)?this.D.To(a,b,c):this.j.To(a,b,c)};
g.k.UG=function(a,b){if(!this.N)return!1;var c=this.videoTrack.j.index.Hi(a);return this.N.UG(a,b,c)};
g.k.Gs=function(a,b){if(this.N&&this.C.Gs(a,this.N))return hcb(this,this.timestampOffset-b),B_(this),!0;b=this.videoTrack.j.index.Hi(a);this.handleError("ad.skipfailed",{dec:!!this.N,t:a.toFixed(3),sq:b});return!1};
g.k.getManifest=function(){return this.manifest};
g.k.isOffline=function(){return!!this.ea.getVideoData().cotn};
g.k.EG=function(a,b){this.ea.EG(a,b)};
g.k.ES=function(a){var b=this.ea.getVideoData().oi;if(b){var c=this.G;c.rh=a;c.oi=b;f_(this)}};
g.k.BK=function(a){this.videoTrack.Z=!1;this.audioTrack.Z=!1;this.B.B=!1;this.ea.BK(a)};
g.k.eT=function(a){this.B.eT(a-this.Mc())};
g.k.sO=function(){this.ea.sO()};
g.k.cB=function(a){a!==this.policy.uh&&((this.policy.uh=a)||this.mf())};
g.k.xS=function(a,b){var c=this.audioTrack.Rb,d=this.videoTrack.Rb;c&&d&&(c.remove(a,b),d.remove(a,b))};
g.k.Po=function(a){this.ea.Po(a)};
g.k.sy=function(a){this.ea.sy(a)};g.k=g.C_.prototype;g.k.cA=function(a,b,c,d,e,f){return this.Wc.cA(a,b,c,d,e,f)};
g.k.OJ=function(a,b,c,d,e,f){return this.Wc.OJ(a,b,c,d,e,f)};
g.k.HP=function(a){return this.Wc.HP(a)};
g.k.QJ=function(a){this.Wc.QJ(a)};
g.k.iE=function(a,b,c){return this.Wc.iE(a,b,c)};
g.k.Uw=function(){this.Wc.Uw()};
g.k.UG=function(a,b,c){return this.Wc.UG(a,b,c)};
g.k.Zu=function(a,b){this.Wc.Zu(a,b)};
g.k.IS=function(){this.Wc.IS()};
g.k.GE=ea(43);g.k.fl=function(a,b,c,d){this.Wc.fl(a,b,c,d)};
g.k.BH=ea(41);g.k.PR=function(a,b,c,d,e,f,h,l,m){this.Wc.PR(a,b,c,d,e,f,h,l,m)};
g.k.gT=function(a){this.Wc.gT(a)};
g.k.Lu=function(a){return this.Wc.Lu(a)};
g.k.PO=function(a){return this.Wc.PO(a)};g.y(D_,g.UE);g.y(E_,D_);E_.prototype.K=function(a,b){if(a&&b){var c=1*Number(vo(a,"cpi"))+1;isNaN(c)||0>=c||c<this.C?(this.D.stop(),this.B.stop(),this.C=-1,this.j={}):(c>this.C&&(this.C=c,g.gd(this.j)||(this.j={},this.D.stop(),this.B.stop())),this.j[b]=a,g.Jv(this.B))}};
E_.prototype.G=function(){for(var a=g.u(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.publish;for(var d=this.C,e=this.j[c].match(un),f=[],h=g.u(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+g.Xe(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 HZ(d,"fairplay",!0))}this.j={}};
E_.prototype.va=function(){this.j={};D_.prototype.va.call(this)};g.y(F_,D_);
F_.prototype.G=function(a){var b;a:{if((b=a.cryptoPeriodIndex)&&0<this.j.length)for(var c=g.u(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.wC)();a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.u(this.C.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.publish("log_qoe",{wvagt:"delay."+c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length,
ignore:this.D});0>=c?lcb(this,a):this.D||(this.j.push({time:b+c,info:a}),g.Jv(this.B,c))}};
F_.prototype.va=function(){this.j=[];D_.prototype.va.call(this)};var D3={},tcb=(D3.DRM_TRACK_TYPE_AUDIO="AUDIO",D3.DRM_TRACK_TYPE_SD="SD",D3.DRM_TRACK_TYPE_HD="HD",D3.DRM_TRACK_TYPE_UHD1="UHD1",D3);g.y(pcb,g.I);g.y(vcb,g.UE);g.k=vcb.prototype;g.k.lq=function(a){var b=this;this.Na()||0>=a.size||(a.forEach(function(c,d){var e=XQ(b.B)?d:c;d=new Uint8Array(XQ(b.B)?c:d);XQ(b.B)&&Mcb(d);c=g.Hg(d,4);Mcb(d);d=g.Hg(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),Hcb(this,","),G_(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))};
g.k.error=function(a,b,c,d){this.Na()||(this.publish("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.K)/1E3,this.K=NaN,this.publish("ctmp","provf",{et:a.toFixed(3)})));SJ(b)&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.Ga&&this.N?!1:!a&&this.requestNumber===b.requestNumber};
g.k.va=function(){this.j={};g.UE.prototype.va.call(this)};
g.k.pc=function(){var a={ctype:this.Y.contentType||"",length:this.Y.initData.length,requestedKeyIds:this.Ha,cryptoPeriodIndex:this.cryptoPeriodIndex};this.C&&(a.keyStatuses=this.j);return a};
g.k.getInfo=function(){var a=this.D.join();if(H_(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.Ke=function(){return this.url};g.y(I_,g.I);g.k=I_.prototype;g.k.B4=function(a){if(this.G){var b=a.messageType||"license-request";this.G(new Uint8Array(a.message),b)}};
g.k.lq=function(){this.N&&this.N(this.j.keyStatuses)};
g.k.onClosed=function(){this.Na()||g.fB("xboxone")&&this.C&&this.C("closed")};
g.k.Q_=function(a){this.G&&this.G(a.message,"license-request")};
g.k.P_=function(a){if(this.C){if(this.B){var b=this.B.error.code;a=this.B.error.systemCode}else b=a.errorCode,a=a.systemCode;this.C("t.prefixedKeyError;c."+b+";sc."+a,b,a)}};
g.k.O_=function(){this.K&&this.K()};
g.k.update=function(a){var b=this;if(this.j)return(eR.isActive()?eR.Lo("emeupd",function(){return b.j.update(a)}):this.j.update(a)).then(null,sO(function(c){Ocb(b,"t.update",c)}));
this.B?this.B.update(a):this.element.addKey?this.element.addKey(this.Z.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Z.keySystem,a,this.initData,this.sessionId);return aB()};
g.k.va=function(){this.j&&(this.Y?this.j.close().catch(g.BE):this.j.close());this.element=null;g.I.prototype.va.call(this)};g.y(J_,g.I);g.k=J_.prototype;g.k.SN=function(){var a=this;if(this.j.keySystemAccess)return(eR.isActive()?eR.Lo("emenew",function(){return a.j.keySystemAccess.createMediaKeys()}):this.j.keySystemAccess.createMediaKeys()).then(function(c){if(!a.Na())if(a.B=c,eR.isActive())eR.Lo("emeset",function(){return a.element.setMediaKeys(c)});
else{var d;null==(d=a.element)||d.setMediaKeys(c)}});
if(WQ(this.j))this.C=new (VQ())(this.j.keySystem);else if(YQ(this.j)){this.C=new (VQ())(this.j.keySystem);var b;null==(b=this.element)||b.webkitSetMediaKeys(this.C)}else eR.isActive()&&this.ma("emev",{v:"01b"}),LB(this.G,this.element,["keymessage","webkitkeymessage"],this.E4),LB(this.G,this.element,["keyerror","webkitkeyerror"],this.D4),LB(this.G,this.element,["keyadded","webkitkeyadded"],this.C4);return null};
g.k.setServerCertificate=function(){return this.B.setServerCertificate?"widevine"===this.j.flavor&&this.j.Sl?this.B.setServerCertificate(this.j.Sl):$Q(this.j)&&this.j.Wa?this.B.setServerCertificate(this.j.Wa):null:null};
g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.B.createSession();ZQ(this.j)?c=Pcb(c,this.j.Wa):$Q(this.j)&&(c=kcb(c)||new Uint8Array(0));b&&b("genreq");var e=eR.isActive()?eR.Lo("emegen",function(){return d.generateRequest(a.contentType,c)}):d.generateRequest(a.contentType,c);
var f=new I_(null,null,null,d,null,this.N);e.then(function(){b&&b("genreqsuccess")},sO(function(l){Ocb(f,"t.generateRequest",l)}));
return f}if(WQ(this.j))return Rcb(this,c);if(YQ(this.j))return Qcb(this,c);if(null==(e=this.element)?0:e.generateKeyRequest)this.element.generateKeyRequest(this.j.keySystem,c);else{var h;null==(h=this.element)||h.webkitGenerateKeyRequest(this.j.keySystem,c)}return this.D=new I_(this.element,this.j,c,null,null,this.N)};
g.k.E4=function(a){var b=Scb(this,a);b&&b.Q_(a)};
g.k.D4=function(a){var b=Scb(this,a);b&&b.P_(a)};
g.k.C4=function(a){var b=Scb(this,a);b&&b.O_(a)};
g.k.getMetrics=function(){if(this.B&&this.B.getMetrics)try{var a=this.B.getMetrics()}catch(b){}return a};
g.k.va=function(){this.C=this.B=null;var a;null==(a=this.D)||a.dispose();a=g.u(Object.values(this.K));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.K={};g.I.prototype.va.call(this);delete this.element};g.k=K_.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.removeAll=function(){this.keys=[];this.values=[]};
g.k.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
g.k.findIndex=function(a){return g.Eb(this.keys,function(b){return g.Xb(a,b)})};g.y(Vcb,g.UE);g.k=Vcb.prototype;g.k.Iaa=function(a){this.nj({onecpt:1});a.initData&&Ycb(this,new Uint8Array(a.initData),a.initDataType)};
g.k.jba=function(a){this.nj({onndky:1});Ycb(this,a.initData,a.contentType)};
g.k.Qx=function(a){this.nj({onneedkeyinfo:1});this.W.L("html5_eme_loader_sync")&&(this.N.get(a.initData)||this.N.set(a.initData,a));Xcb(this,a)};
g.k.zW=function(a){this.C.push(a);L_(this)};
g.k.createSession=function(a){var b=$cb(this)?S9a(a):g.Hg(a.initData);this.B.get(b);this.Ha=!0;a=new vcb(this.videoData,this.W,a,this.drmSessionId);this.B.set(b,a);a.subscribe("ctmp",this.XK,this);a.subscribe("keystatuseschange",this.lq,this);a.subscribe("licenseerror",this.bL,this);a.subscribe("newlicense",this.L_,this);a.subscribe("newsession",this.M_,this);a.subscribe("sessionready",this.X_,this);a.subscribe("fairplay_next_need_key_info",this.G_,this);this.W.L("html5_enable_vp9_fairplay")&&a.subscribe("qualitychange",
this.cU,this);this.W.L("html5_enable_sabr_drm_hd720p")&&a.subscribe("sabrlicenseconstraint",this.Zba,this);zcb(a,this.D)};
g.k.L_=function(a){this.Na()||(this.nj({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.publish("heartbeatparams",a)))};
g.k.M_=function(){this.Na()||(this.nj({newlcssn:1}),this.C.shift(),this.Ha=!1,L_(this))};
g.k.X_=function(){if(WQ(this.j)&&(this.nj({onsnrdy:1}),this.Ma--,0===this.Ma)){var a=this.qa,b,c;null==(b=a.element)||null==(c=b.msSetMediaKeys)||c.call(b,a.C)}};
g.k.lq=function(a){if(!this.Na()){!this.La&&this.videoData.L("html5_log_drm_metrics_on_key_statuses")&&(adb(this),this.La=!0);this.nj({onksch:1});var b=this.cU;if(!H_(a)&&g.NC&&"com.microsoft.playready"===a.B.keySystem&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var d=!0;if(H_(a))for(var e=g.u(Object.keys(a.j)),f=e.next();!f.done;f=e.next())f=f.value,"usable"===a.j[f].status&&c.push(a.j[f].type),"unknown"!==a.j[f].status&&(d=!1);if(!H_(a)||d)c=a.D;c=Gcb(c)}b.call(this,c);this.publish("keystatuseschange",
a)}};
g.k.XK=function(a,b){this.Na()||this.publish("ctmp",a,b)};
g.k.G_=function(a,b){this.Na()||this.publish("fairplay_next_need_key_info",a,b)};
g.k.bL=function(a,b,c,d){this.Na()||(this.videoData.L("html5_log_drm_metrics_on_error")&&adb(this),this.publish("licenseerror",a,b,c,d))};
g.k.Mw=function(){return this.Z};
g.k.cU=function(a){var b=g.dP("auto",a,!1,"l");if(this.videoData.Ok){if(TQa(this.Z,b))return}else if(UQa(this.Z,a))return;this.Z=b;this.publish("qualitychange");this.nj({updtlq:a})};
g.k.Zba=function(a){this.videoData.sabrLicenseConstraint=a};
g.k.va=function(){this.j.keySystemAccess&&this.element&&(this.Ca?this.element.setMediaKeys(null).catch(g.BE):this.element.setMediaKeys(null));this.element=null;this.C=[];for(var a=g.u(this.B.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.XK,this),b.unsubscribe("keystatuseschange",this.lq,this),b.unsubscribe("licenseerror",this.bL,this),b.unsubscribe("newlicense",this.L_,this),b.unsubscribe("newsession",this.M_,this),b.unsubscribe("sessionready",this.X_,this),b.unsubscribe("fairplay_next_need_key_info",
this.G_,this),this.W.L("html5_enable_vp9_fairplay")&&b.unsubscribe("qualitychange",this.cU,this),b.dispose();this.B.clear();this.K.removeAll();this.N.removeAll();this.heartbeatParams=null;g.UE.prototype.va.call(this)};
g.k.pc=function(){for(var a={systemInfo:this.j.pc(),sessions:[]},b=g.u(this.B.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.pc());return a};
g.k.getInfo=function(){return 0>=this.B.size?"no session":""+this.B.values().next().value.getInfo()+(this.G?"/KR":"")};
g.k.nj=function(a,b){b=void 0===b?!1:b;this.Na()||(QJ(a),(this.W.Bc()||b)&&this.publish("ctmp","drmlog",a))};g.y(bdb,g.I);g.k=bdb.prototype;g.k.fJ=function(){return!!this.BF};
g.k.nK=function(){return this.B};
g.k.handleError=function(a){var b=this;gdb(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!fdb(this,a.errorCode,a.details))&&!kdb(this,a)){if("yt"!==this.Da.ra&&idb(this,a)&&this.videoData.Ip&&(0,g.wC)()/1E3>this.videoData.Ip&&"hm"===this.Da.ra){var c=Object.assign({e:a.errorCode},a.details);c.stalesigexp="1";c.expire=this.videoData.Ip;c.init=this.videoData.LV/1E3;c.now=(0,g.wC)()/1E3;c.systelapsed=((0,g.wC)()-this.videoData.LV)/1E3;
a=new RJ(a.errorCode,c,2);this.ea.Mf(a.errorCode,2,"SIGNATURE_EXPIRED",QJ(a.details))}if(SJ(a.severity)){var d;c=null==(d=this.ea.ya)?void 0:d.j.j;if(this.Da.L("html5_use_network_error_code_enums"))if(hdb(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else{if(!this.Da.K&&"auth"===a.errorCode&&429===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}}else hdb(a)&&c&&c.isLocked()?e="FORMAT_UNAVAILABLE":this.Da.K||"auth"!==a.errorCode||"429"!==a.details.rc||(e="TOO_MANY_REQUESTS",f="6");this.ea.Mf(a.errorCode,
a.severity,e,QJ(a.details),f)}else this.ea.publish("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.Rd(a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.wC)(),AX(a,"manifest",function(h){b.K=!0;b.ma("pathprobe",h)},function(h){b.Rd(h.errorCode,h.details)}))}};
g.k.ma=function(a,b){this.ea.wc().ma(a,b)};
g.k.Rd=function(a,b){b=QJ(b);this.ea.wc().Rd(a,b)};ndb.prototype.hP=function(a){return a?{t0:ydb(this,a)}:{t0:DS}};
ndb.prototype.L=function(a){return this.W.L(a)};g.y(P_,g.I);P_.prototype.onError=function(a){if("player.fatalexception"!==a||this.provider.L("html5_exception_to_health"))"sabr.fallback"===a&&(this.encounteredSabrFallback=!0),a.match(Tpb)?this.networkErrorCount++:this.nonNetworkErrorCount++};
P_.prototype.send=function(){if(!(this.C||0>this.j)){Edb(this);var a=g.KM(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.Ng;this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.MF(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.MF(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.MF(this.playerState,16)||g.MF(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.MF(this.playerState,1)&&g.MF(this.playerState,
4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.MF(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.MF(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.MF(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=qgb[aT(this.provider.videoData)];a:switch(this.provider.W.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var e=Fdb(this.provider),
f=0>this.B?a:this.B-this.j;a=this.provider.W.Sf+36E5<(0,g.wC)();b={started:0<=this.B,stateAtSend:b,joinLatencySecs:f,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,playerCanaryStage:e,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.$S(this.provider.videoData),isGapless:this.provider.videoData.Y,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,
encounteredSabrFallback:this.encounteredSabrFallback,isSabr:NS(this.provider.videoData)};a||g.iC("html5PlayerHealthEvent",b);this.C=!0;this.dispose()}};
P_.prototype.va=function(){this.C||this.send();window.removeEventListener("error",this.qB);window.removeEventListener("unhandledrejection",this.qB);g.I.prototype.va.call(this)};
var Tpb=/\bnet\b/;var Gdb=/[?&]cpn=/;var Ldb=Math.pow(10,8);g.y(g.S_,g.I);g.k=g.S_.prototype;g.k.u9=function(){var a=g.KM(this.provider);Odb(this,a)};
g.k.ME=function(){return this.La};
g.k.QE=function(){return{IB:this.IB,JB:this.JB}};
g.k.aH=function(a,b){this.IB=a;this.JB=b};
g.k.DG=function(a){this.j.lwc=[[a.cf?a.cf.toFixed():"",a.Ih?a.Ih.toFixed():"",a.bb?(1E3*a.bb).toFixed():"",a.Nb?(1E3*a.Nb).toFixed():"",a.vc?(1E3*a.vc).toFixed():""].join(":")]};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.Na()&&(a=0<=a?a:g.KM(this.provider),-1<["PL","B","S"].indexOf(this.De)&&(!g.gd(this.j)||a>=this.G+30)&&(g.R_(this,a,"vps",[this.De]),this.G=a),!g.gd(this.j))){7E3===this.sequenceNumber&&g.BE(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){T_(this,a);var b=a,c=this.provider.ea.YE(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.IB,h=e&&!this.JB;d>c.totalVideoFrames||5E3<f?Vdb(this,"html5.badframedropcount","df."+d+";tf."+
c.totalVideoFrames):(0<f||h)&&g.R_(this,b,"df",[f]);this.IB=d;this.JB=e;0<this.Z&&(g.R_(this,a,"glf",[this.Z]),this.Z=0);b3.isActive()&&(a=b3.TX(),0<Object.keys(a).length&&this.ma("profile",a));this.Ab&&U_(this,"lwnmow");this.provider.W.Bc()&&this.provider.L("html5_record_now")&&this.ma("now",{wt:(0,g.wC)()});a={};this.provider.videoData.B&&(a.fmt=this.provider.videoData.B.itag,(b=this.provider.videoData.D)&&b.itag!==a.fmt&&(a.afmt=b.itag));a.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&
(a.adcpn=this.adCpn);this.Y&&(a.addocid=this.Y);this.contentCpn&&(a.ccpn=this.contentCpn);this.ra&&(a.cdocid=this.ra);this.provider.videoData.cotn&&(a.cotn=this.provider.videoData.cotn);a.el=mT(this.provider.videoData);a.content_v=oT(this.provider.videoData);a.ns=this.provider.W.ra;a.fexp=lUa(this.provider.W.experiments).toString();a.cl=(640356325).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=aT(this.provider.videoData))&&(a.live=b);this.provider.videoData.Xi()&&
(a.drm=1,this.provider.videoData.K&&(a.drm_system=Dpb[this.provider.videoData.K.flavor]||0),this.provider.videoData.Nk&&(a.drm_product=this.provider.videoData.Nk));KA()&&this.provider.videoData.G&&(a.ctt=this.provider.videoData.G,a.cttype=this.provider.videoData.fn,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.jU&&(a.dai_fallback=
"1")):this.provider.videoData.md?a.dai="cs":this.provider.videoData.FD&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.provider.videoData.yX){if(b=this.provider.videoData.yX,a&&b)for("3pp"===b.ns&&(a.ns="3pp"),this.zd.has(b.ns)&&U_(this,"hbps"),c=g.u(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.ud.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.provider.videoData.videoId,a.ei=this.provider.videoData.eventId;b={cpn:a.cpn,sequenceNumber:a.seq,serializedWatchEndpointLoggingContext:this.provider.videoData.I3};
this.provider.videoData.playerResponseCpn&&(b.playerResponseCpn=this.provider.videoData.playerResponseCpn);Q_.length&&(b.decoderInfo=Q_);this.provider.ea.gg()&&(b.transitionStitchType=4,this.Ca&&(b.timestampOffsetMsecs=this.Ca));this.remoteControlMode&&(b.remoteControlMode=this.remoteControlMode);this.remoteConnectedDevices.length&&(b.remoteConnectedDevices=this.remoteConnectedDevices);b=g.fO(b,rQa);a.qclc=g.Hg(b,4);this.rb&&(a.embargoed="1");g.ld(a,this.provider.W.j);a=g.to("//"+this.provider.W.vn+
"/api/stats/qoe",a);c=b="";d=g.u(Object.keys(this.j));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.j[e]?g.BE(new g.XB("Stats report key has invalid value",e)):(e="&"+e+"="+this.j[e].join(","),100<e.length?c+=e:b+=e);Rdb(this,a+b,c.replace(/ /g,"%20"))}this.j={}}};
g.k.sy=function(a){this.Ab=a};
g.k.C1=function(){if(this.provider.videoData.K){var a=this.provider.videoData.K;U_(this,"eme-"+(a.keySystemAccess?"final":WQ(a)?"ms":ZQ(a)?"ytfp":YQ(a)?"safarifp":"nonfinal"))}};
g.k.kG=function(a){var b=g.KM(this.provider),c=[a.j.id,a.B,this.vc,a.reason];a.token&&c.push(a.token);g.R_(this,b,"vfs",c);this.vc=a.j.id;c=this.provider.ea.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.QR();1<d&&c.push(d);g.R_(this,b,"view",c)}this.Wa||(this.provider.W.Bc()&&U_(this,"rqs2"),this.provider.videoData.j&&jP(this.provider.videoData.j)&&(this.j.preload=["1"]));this.C=this.Wa=!0;"m"===a.reason&&100===++this.ge&&Wdb(this,2);g.R_(this,b,"vps",
[this.De]);this.reportStats(b)};
g.k.TF=function(a){var b=g.KM(this.provider);if(a.j.id!==this.Ma){var c=[a.j.id,this.Ma,a.reason];a.token&&c.push(a.token);g.R_(this,b,"afs",c);this.Ma=a.j.id}};
g.k.Mu=ea(47);g.k.Mo=function(a){this.rb=a};
g.k.onPlaybackRateChange=function(a){var b=g.KM(this.provider);a&&a!==this.Sb&&(g.R_(this,b,"rate",[a]),this.Sb=a);this.reportStats(b)};
g.k.Do=ea(26);g.k.getPlayerState=function(a){if(g.MF(a,128))return"ER";if(g.MF(a,2048))return"B";if(g.MF(a,512))return"SU";if(g.MF(a,16)||g.MF(a,32))return"S";if(a.isOrWillBePlaying()&&g.MF(a,64))return"B";var b=Upb[RK(a)];g.II(this.provider.W)&&"B"===b&&3===this.provider.ea.getVisibilityState()&&(b="SU");"B"===b&&g.MF(a,4)&&(b="PB");return b};
g.k.va=function(){g.I.prototype.va.call(this);g.SA(this.K);g.SA(this.Hb)};
g.k.JL=function(a){this.isOffline=a;g.R_(this,g.KM(this.provider),"is_offline",[this.isOffline?"1":"0"])};
g.k.ma=function(a,b,c){var d=this.j.ctmp||[],e=-1!==this.Jd.indexOf(a);e||this.Jd.push(a);if(!c||!e){var f="string"!==typeof b?QJ(b):b;f=Xdb(f);if(!c&&!/^t[.]/.test(f)){var h=1E3*g.KM(this.provider);f="t."+h.toFixed()+";"+f}d.push(a+":"+f);this.logger.debug(function(){return"ctmp "+a+" "+f});
this.j.ctmp=d;Sdb(this);return h}};
g.k.CG=function(a,b,c){this.D={Eda:Number(this.ma("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),q_:a,nda:b,isAd:c}};
g.k.ly=function(a,b,c){g.R_(this,g.KM(this.provider),"ad_playback",[a,b,c])};
g.k.resume=function(){var a=this;this.provider.W.Bc()&&this.ma("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.K)?Tdb(this):this.K=g.QA(function(){a.reportStats()},1E4)};
var E3={},Upb=(E3[5]="N",E3[-1]="N",E3[3]="B",E3[0]="EN",E3[2]="PA",E3[1]="PL",E3[-1E3]="ER",E3[1E3]="N",E3),Q_=[];Zdb.prototype.vP=function(){return this.j};
Zdb.prototype.update=function(){if(this.N){var a=this.provider.ea.Vf()||0;this.provider.W.L("html5_ssap_vss_fix")&&(a=this.provider.ea.tJ(this.provider.videoData.clientPlaybackNonce)||0);var b=g.KM(this.provider);a>=this.provider.ea.getDuration()-.1&&(this.previouslyEnded=!0);if(a!==this.j||beb(this,a,b)){var c;if(!(c=a<this.j||a-this.j>b-this.fq+2||beb(this,a,b))){c=this.provider.ea.getVolume();var d=c!==this.Y,e=this.provider.ea.isMuted()?1:0;e!==this.Z?(this.Z=e,c=!0):(!d||0<=this.D||(this.Y=c,
this.D=b),c=b-this.D,0<=this.D&&2<c?(this.D=-1,c=!0):c=!1)}c&&(X_(this),this.C=a);this.fq=b;this.j=a}}};ceb.prototype.send=function(a){var b=this;if(!this.eb){var c=eeb(this),d=g.to(this.uri,c);this.W.L("vss_through_gel_double")&&feb(d);this.ra&&!this.W.L("html5_simplify_pings")?keb(this,d):deb(this,a).then(function(e){b.ra&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});Kdb(d,e,{token:b.Y,JT:b.Jb,mdxEnvironment:b.mdxEnvironment},b.W,a,b.Ca,b.isFinal&&b.Sf||b.Ha||b.C&&b.Tf)});
this.eb=!0}};
ceb.prototype.B=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var F3={},ieb=(F3.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,F3.LIVING_ROOM_APP_MODE_MAIN=1,F3.LIVING_ROOM_APP_MODE_KIDS=2,F3.LIVING_ROOM_APP_MODE_MUSIC=3,F3.LIVING_ROOM_APP_MODE_UNPLUGGED=4,F3.LIVING_ROOM_APP_MODE_GAMING=5,F3),G3={},heb=(G3.EMBEDDED_PLAYER_MODE_UNKNOWN=0,G3.EMBEDDED_PLAYER_MODE_DEFAULT=1,G3.EMBEDDED_PLAYER_MODE_PFP=2,G3.EMBEDDED_PLAYER_MODE_PFL=3,G3);g.y(Z_,g.I);g.k=Z_.prototype;g.k.Cg=function(){this.j.update();seb(this)&&(meb(this),neb(this),this.Ps())};
g.k.va=function(){g.I.prototype.va.call(this);b0(this);$db(this.j)};
g.k.pc=function(){return eeb($_(this,"playback"))};
g.k.Ps=function(){this.provider.videoData.N.eventLabel=mT(this.provider.videoData);this.provider.videoData.N.playerStyle=this.provider.W.playerStyle;this.provider.videoData.xj&&(this.provider.videoData.N.feature="pyv");this.provider.videoData.N.vid=this.provider.videoData.videoId;var a=this.provider.videoData.N;var b=this.provider.videoData;b=b.isAd()||!!b.xj;a.isAd=b};
g.k.Gi=function(a){var b=$_(this,"engage");b.qa=a;return geb(b,yeb(this.provider))};xeb.prototype.isEmpty=function(){return this.endTime===this.startTime};d0.prototype.L=function(a){return this.W.L(a)};
d0.prototype.getCurrentTime=function(){if(g.sT(this.videoData)){var a=this.ea.gg();if(a){var b=this.ea.getCurrentTime(),c;a=((null==(c=qY(a,1E3*b))?void 0:c.wl)||0)/1E3;return b-a}}return this.ea.getCurrentTime()};
d0.prototype.Vf=function(){if(g.sT(this.videoData)){var a=this.ea.gg();if(a){var b=this.ea.Vf(),c;a=(null==(c=qY(a,1E3*b))?NaN:c.wl)/1E3||0;return b-a}}return this.ea.Vf()};
var zeb={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.y(g.e0,g.I);g.k=g.e0.prototype;g.k.Cg=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Mg){var a;null==(a=this.C.get(this.Mg))||a.Cg()}else this.j&&this.j.Cg()};
g.k.Mo=function(a){this.qoe&&this.qoe.Mo(a)};
g.k.Rd=function(a,b){this.qoe&&Vdb(this.qoe,a,b);if(this.B)this.B.onError(a)};
g.k.kG=function(a){this.qoe&&this.qoe.kG(a)};
g.k.TF=function(a){this.qoe&&this.qoe.TF(a)};
g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a);this.j&&X_(this.j.j)};
g.k.Mu=ea(46);g.k.ma=function(a,b,c){this.qoe&&this.qoe.ma(a,b,c)};
g.k.CG=function(a,b,c){this.qoe&&this.qoe.CG(a,b,c)};
g.k.DG=function(a){var b;null==(b=this.qoe)||b.DG(a)};
g.k.sy=function(a){this.qoe&&this.qoe.sy(a)};
g.k.ly=function(a,b,c){this.qoe&&this.qoe.ly(a,b,c)};
g.k.Do=ea(25);g.k.ME=function(){if(this.qoe)return this.qoe.ME()};
g.k.pc=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Mg){var a;null==(a=this.C.get(this.Mg))||a.pc()}else if(this.j)return this.j.pc();return{}};
g.k.QE=function(){var a;return null==(a=this.qoe)?void 0:a.QE()};
g.k.aH=function(a,b){var c;null==(c=this.qoe)||c.aH(a,b)};
g.k.Gi=function(a){return this.j?this.j.Gi(a):function(){}};
g.k.Ps=function(){this.j&&this.j.Ps()};
g.k.getVideoData=function(){return this.provider.videoData};
g.k.resume=function(){this.qoe&&this.qoe.resume()};g.y(f0,g.I);f0.prototype.QI=function(a,b,c){if(this.j.has(a)){var d=this.j.get(a);if(b.videoId&&!Aeb(d))this.B.ma("ssap",{rlc:a}),L6a(this,a);else return}if(!this.j.has(a)){d=new d0(b,this.W,this.ea);var e=Math.round(1E3*g.KM(this.B.provider));d=new g.e0(d,e);Aeb(d)||this.B.ma("nqv",{vv:b.videoId});e=this.B.getVideoData();this.j.set(a,d);if(d.qoe){var f=d.qoe,h=e.videoId||"";f.contentCpn=e.clientPlaybackNonce;f.ra=h}Beb(d);2===c&&this.B.ly(a,b.zd||"",b.breakType||0)}};
f0.prototype.wc=function(a){a=a||this.Mg;return this.j.get(a)||this.B};g.y(g0,g.I);g.k=g0.prototype;g.k.hf=function(a,b){this.sync();b&&2E3<=this.j.array.length&&this.rE("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 for(var c=g.u(a),d=c.next();!d.done;d=c.next())d=d.value,!b.array.length||0<b.j(d,b.array[b.array.length-1])?b.array.push(d):g.Zb(b.array,d,b.j);a[0]&&"ad"===a[0].namespace&&this.D("ssap",{acrl:a.length});this.C=NaN;this.sync()};
g.k.Oo=function(a){1E4<a.length&&g.BE(new g.XB("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.Na()){var b=new Set(a);this.B=this.B.filter(function(c){return!b.has(c)});
Oeb(this.j,b);this.sync()}};
g.k.rE=function(a,b){var c=(isNaN(this.C)?g.MF(this.K(),2)?0x8000000000000:1E3*this.Y():this.C)-b;b=this.Zk().filter(function(d){return d.namespace===a&&d.end<c});
this.Oo(b);return b};
g.k.Zk=function(){return this.Na()?[]:this.j.array};
g.k.reset=function(){this.started=!1;this.G.stop();this.j.array=[];this.B=[];this.sync()};
g.k.nf=function(a){var b=this.Zk().filter(function(c){return c.namespace===a});
"ad"===a&&this.D("ssap",{rcrbn:a,rcrbnl:b.length});this.Oo(b);return b};
g.k.WJ=function(a){return this.Zk().some(function(b){return b.namespace===a})};
g.k.Ly=function(a,b){var c=[],d=Leb(this.j,0x7ffffffffffff),e=[];this.D("ssap",{mecrs:d.length,cpn:b});d=g.u(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f.active&&(this.D("ssap",{acre:f.id,st:f.start,et:f.end,cpn:b,cpt:f.playerType,pt:a}),b&&b===f.C?(e.push(f),this.D("ssap",{acrec:f.id,st:f.start,et:f.end,pt:a})):f.playerType===a&&(e.push(f),this.D("ssap",{acret:f.id,st:f.start,et:f.end})));c=c.concat(this.jJ(e));Reb(this,c);c=[];b=[];d=g.u(this.B);for(f=d.next();!f.done;f=d.next())f=f.value,
f.active&&f.playerType===a&&0x7ffffffffffff===f.start&&b.push(f);c=c.concat(this.mJ(b));Reb(this,c);return e.length};
g.k.jJ=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.mJ=function(a){var b=[];if(!a.length)return b;a.sort(g.NCa);a=g.u(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.sync=function(){this.N=!0;if(!this.Z){for(var a=3;this.N&&a;)this.N=!1,this.Z=!0,this.lZ(),this.Z=!1,a--;this.K().isPlaying()&&(a=Neb(this.j,this.C),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.C)/this.Ca(),this.G.start(a)))}};
g.k.lZ=function(){if(this.started&&!this.Na()){this.G.stop();var a=this.K();g.MF(a,32)&&this.ra.start();for(var b=g.MF(this.K(),2)?0x8000000000000:1E3*this.Y(),c=g.MF(a,2),d=[],e=[],f=g.u(this.B),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(this.mJ(e));f=e=null;c?(a=Leb(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=Meb(this.j)):a=this.C<=b&&XEa(a)?Keb(this.j,this.C,b):Leb(this.j,b);
d=d.concat(this.jJ(a));e&&(d=d.concat(this.mJ(e)));f&&(d=d.concat(this.jJ(f)));this.C=b;Reb(this,d)}};
g.k.va=function(){this.B=[];this.j.array=[];g.I.prototype.va.call(this)};
g.IX.hK(g0,{hf:"crmacr",jJ:"crmncr",mJ:"crmxcr",lZ:"crmis",Oo:"crmrcr"});g.y(j0,g.UE);j0.prototype.Qr=function(){return this.Z};
j0.prototype.Nn=function(){return Math.max(this.K()-l0(this)*this.j,this.videoData.Dd())};g.y(o0,g.I);o0.prototype.mf=function(){var a=this,b=this.ea.Je(),c=this.ea.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.MF(c,8)&&g.MF(c,16),h=this.ea.Am().isBackground()||c.isSuspended();p0(this,this.rb,f&&!h,e,"qoe.slowseek",function(){},"timeout");
var l=isFinite(this.j);l=f&&l&&REa(b,this.j);var m=!d||10<Math.abs(d-this.j);p0(this,this.Ab,l&&m&&!h,e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt");
m=l&&sK(b.Ch(),this.j);var n=this.ea.ya;l=!n||!n.policy.Va;var p=function(){b.seekTo(a.j+.001)};
p0(this,this.Va,m&&l&&!h,e,"qoe.slowseek",p,"jiggle_cmt");l=function(){return M_(a.ea)};
p0(this,this.eb,m&&!h,e,"qoe.slowseek",l,"new_elem");m=XEa(c);var q=c.isBuffering(),r=b.Ch(),t=rK(r,d),v=0<=t&&r.end(t)>d+5,w=m&&q&&v,A=this.ea.getVideoData();p0(this,this.Wa,.002>d&&.002>this.j&&f&&g.II(this.W)&&g.nT(A)&&!h,e,"qoe.slowseek",l,"slow_seek_shorts");p0(this,this.qa,A.fk()&&f&&!h&&!A.ra,e,"qoe.slowseek",l,"slow_seek_gapless_shorts");p0(this,this.Ca,w&&!h,m&&!q,"qoe.longrebuffer",p,"jiggle_cmt");p0(this,this.Ha,w&&!h,m&&!q,"qoe.longrebuffer",l,"new_elem_nnr");if(n){var C=n.getCurrentTime();
f=b.Qw();f=CEa(f,C);f=!n.isSeeking()&&d===f;p0(this,this.Sb,m&&q&&f&&!h,m&&!q&&!f,"qoe.longrebuffer",function(){b.seekTo(C)},"seek_to_loader")}f={};
p=rK(r,Math.max(d-3.5,0));w=0<=p&&d>r.end(p)-1.1;var F=0<=p&&p+1<r.length?r.start(p+1)-r.end(p):9999;f.mindex=t;f.disIndex=p;f.isdisc=0<=p&&w&&11>F;f.close2edge=w;f.gapsize=F;f.buflen=r.length;this.D&&(f.seekSour=this.D);if(p=this.ea.gg()){w=p.Mp();F=w!==qY(p,1E3*d).clipId;var H=g.xI(this.W.experiments,"html5_ssap_skip_seeking_offset_ms"),M=(pY(p,w)+H)/1E3;p0(this,this.La,F&&m&&q&&!h,m&&!q,"qoe.longrebuffer",function(){b.seekTo(M)},"ssap_clip_not_match")}p0(this,this.Ga,m&&q&&!h,m&&!q,"qoe.longrebuffer",
function(){},"timeout",f);
f=c.isSuspended();f=y_(this.ea)&&!f;p0(this,this.N,f,!f,"qoe.start15s",function(){a.ea.Eg("ad")},"ads_preroll_timeout");
p=.5>d-this.C;var L;f=!(null==(L=this.ea.gg())||!L.Dm());F=(w=A.isAd()||f&&this.W.experiments.fb("html5_ssap_skip_slow_ad"))&&m&&!q&&p;L=function(){var R=a.ea,ba=g.sT(R.videoData)&&R.zb,ma=R.fd.Zc();(ma&&R.videoData.isAd()&&ma.getVideoData().md===R.getVideoData().md||!R.videoData.Hf)&&!ba?R.Mf("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+R.videoData.videoId):KS(R.videoData,"html5_ssap_skip_slow_ad")&&ba&&R.zb.Dm()&&(R.Rd(new RJ("ssap.transitionfailure",{cpn:qY(R.zb,R.Vf()).clipId,pcpn:R.zb.Mp(),
cmt:R.Vf()})),y6a(R.zb))};
p0(this,this.Jb,F,!F,"ad.rebuftimeout",L,"skip_slow_ad");p=w&&q&&sK(b.Ch(),d+5)&&p;p0(this,this.Hb,p,!p,"ad.rebuftimeout",L,"skip_slow_ad_buf");L=c.isOrWillBePlaying()&&g.MF(c,64)&&!h;p0(this,this.Kb,L,e,"qoe.start15s",function(){},"timeout");
L=!!n&&!n.Qa&&c.isOrWillBePlaying();p0(this,this.Ma,L,e,"qoe.start15s",l,"newElemMse");L=vK(r,0);p=g.MF(c,16)||g.MF(c,32);p=!h&&c.isOrWillBePlaying()&&q&&!p&&(g.MF(c,64)||0===d)&&5<L;p0(this,this.gb,g.nT(A)&&p,m&&!q,"qoe.longrebuffer",function(){a.ea.Po()},"reset_media_source");
p0(this,this.bb,g.nT(A)&&p,m&&!q,"qoe.longrebuffer",l,"reset_media_element");0===this.C&&(this.K=d);p=q&&0===this.j&&1<d&&d===this.K;p0(this,this.Sa,g.nT(A)&&p,m&&!q,"qoe.slowseek",function(){b.seekTo(0)},"reseek_after_time_jump");
h=c.isOrWillBePlaying()&&!h;v=6>KX(this.ea)-d&&!v&&this.ea.fu();p0(this,this.Z,A.fk()&&h&&q&&v,m&&!q,"qoe.longrebuffer",function(){M_(a.ea,!1,!0)},"handoff_end_long_buffer_reload");
n=(null==n?void 0:icb(n))||NaN;n=1<r.length||!isNaN(n)&&n-.1<=d;p0(this,this.Y,TS(A)&&h&&q&&n,m&&!q,"qoe.longrebuffer",l,"gapless_slice_append_stuck");n=0<=t&&2<=r.end(t);h=TS(A)&&this.ea.yT&&n&&!A.ra&&h&&(q||g.MF(c,8)&&g.MF(c,16));p0(this,this.ra,h,e,"qoe.start15s",l,"gapless_slow_start");c=!!(f&&5<L&&c.isPlaying()&&.1>d);p0(this,this.Nb,c,.5<d&&m,"qoe.longrebuffer",l,"ssap_stuck_in_ad_beginning");this.C=d;this.G.start()}};
o0.prototype.Rd=function(a,b,c){b=this.pc(b);b.wn=c;b.wdup=this.B[a]?"1":"0";this.ea.Rd(new RJ(a,b));this.B[a]=!0};
o0.prototype.pc=function(a){a=Object.assign(this.ea.pc(!0),a.pc());this.j&&(a.stt=this.j.toFixed(3));this.ea.getVideoData().isLivePlayback&&(a.ct=this.ea.getCurrentTime().toFixed(3),a.to=this.ea.Mc().toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
m0.prototype.reset=function(){this.j=this.B=this.C=this.startTimestamp=0;this.D=!1};
m0.prototype.test=function(a){if(!this.G||this.B)return!1;if(!a)return this.reset(),!1;a=(0,g.wC)();if(!this.startTimestamp)this.startTimestamp=a,this.C=0;else if(this.C>=this.G)return this.B=a,!0;this.C+=1;return!1};
m0.prototype.pc=function(){var a={},b=(0,g.wC)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.B&&(a.wtd=(b-this.B).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.y(gfb,g.I);g.k=gfb.prototype;g.k.setMediaElement=function(a){(this.mediaElement=a)?(this.mediaElement&&(this.G||this.D||!this.mediaElement.FS()||this.seekTo(.01,{yd:"seektimeline_setupMediaElement"})),q0(this)):r0(this)};
g.k.getCurrentTime=function(){return!isNaN(this.B)&&isFinite(this.B)?this.B:this.mediaElement&&tfb(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.D||0};
g.k.Vf=function(){return this.getCurrentTime()-this.Mc()};
g.k.Nn=function(){return this.j?this.j.Nn():Infinity};
g.k.isAtLiveHead=function(a){if(!this.j)return!1;void 0===a&&(a=this.getCurrentTime());return k0(this.j,a)};
g.k.Qr=function(){return!!this.j&&this.j.Qr()};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.zH?!1:c.zH;var d=void 0===c.RT?0:c.RT;var e=void 0===c.Zw?!1:c.Zw;var f=void 0===c.KT?0:c.KT;var h=void 0===c.yd?"":c.yd;var l=void 0===c.seekSource?void 0:c.seekSource;var m=void 0===c.Zq?!1:c.Zq;var n=void 0===c.vF?!1:c.vF;c=void 0===c.sT?!1:c.sT;m&&(a+=this.Mc());if(m=a<this.La&&!!this.ya){this.ea.ma("sdai",{sk2bk:a.toFixed(3),mt:(a-this.timestampOffset).toFixed(3),lstadj:this.La.toFixed(3)});this.La=NaN;this.timestampOffset-=1E3;var p;
if(null!=(p=this.ya)){hcb(p,p.timestampOffset-1E3);var q=p.manifest,r=new Set;for(w in q.j){var t=q.j[w].index,v=t.Kw();v&&!r.has(v)&&(v.startTime+=1E3,v.endTime=v.startTime+v.duration,r.add(v));t.segments.length&&(v=t.segments[t.segments.length-1],t.segments=[],t.segments.push(v))}p.N&&p.N.IS();qZ(p.C,0,0,!0)}}p=a;var w=!isFinite(p)||(this.j?k0(this.j,p):p>=this.Ie())||!g.fT(this.videoData);w||(p={st:p,mst:this.Ie()},this.j&&this.L("html5_high_res_seek_logging")&&(p.ht=this.j.Nn(),p.adft=$eb(this.j)),
this.ea.ma("seeknotallowed",p));if(!w)return this.C&&(this.C=null,qfb(this)),hg(this.getCurrentTime());w=.005;n&&this.L("html5_sabr_seek_no_shift_tolerance")&&(w=0);if(Math.abs(a-this.B)<=w&&this.qa)return this.G;h&&(w=a,(this.W.Bc()||this.L("html5_log_seek_reasons"))&&this.ea.ma("seekreason",{reason:h,tgt:w}));l&&(this.ra.D=l);this.qa&&r0(this);this.G||(this.G=new IK);a&&!isFinite(a)&&jfb(this,!1);(h=c||m)||(h=a,h=!(this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&
0<this.mediaElement.Rk()&&0<MEa(this.mediaElement))||OS(this.videoData)&&this.Dd()===this.Ie(!1)?0:isFinite(h)||!OS(this.videoData)));h||(a=sfb(this,a,e));a&&!isFinite(a)&&jfb(this,!1);this.D=a;this.Sa=f;this.B=a;this.Z=0;this.j&&(e=this.j,f=a,afb(e,f,!1),bfb(e,f));e=this.ea;f=a;h={zH:b,seekSource:l};e.jd.D=f;c=e.UD;c.mediaTime=f;c.j=!0;h.zH&&lgb(e,h);h=f>e.videoData.endSeconds&&f>e.videoData.limitedPlaybackDurationInSeconds;e.rr&&h&&isFinite(f)&&$fb(e);f<e.Ie()-.01&&(h=PK(e.playerState,2),g.MF(h,
8)&&(h=PK(h,4)),e.Gc(h));e.publish("SEEK_TO",e,f);this.G&&(b?d&&this.Va.start(d):(b={vF:n,seekSource:l},this.qa=!0,ffb(this,b)));(b=this.ea.rr)&&a>b.start&&$fb(this.ea);return this.G};
g.k.Ie=function(a){if(!this.videoData.isLivePlayback)return Bgb(this.ea);var b;return uT(this.videoData)&&(null==(b=this.mediaElement)?0:b.isPaused())&&this.videoData.j?(a=this.getCurrentTime(),BXa(1E3*this.Ye(a))+a):OS(this.videoData)&&this.videoData.eb&&this.videoData.j?this.videoData.j.Ie()+this.timestampOffset:this.videoData.C&&this.videoData.C.j?!a&&this.j?this.j.Nn():Bgb(this.ea)+this.timestampOffset:this.mediaElement?iB()?BXa(this.mediaElement.dI().getTime()):MEa(this.mediaElement)+this.timestampOffset||
this.timestampOffset:this.timestampOffset};
g.k.Dd=function(){if(g.sT(this.videoData)){var a=this.ea;g.sT(a.videoData);var b,c;return null!=(c=null==(b=a.zb)?void 0:b.Dd())?c:a.videoData.Dd()}b=this.videoData?this.videoData.Dd()+this.timestampOffset:this.timestampOffset;return uT(this.videoData)&&this.videoData.j&&(c=Number(null==(a=this.videoData.progressBarStartPosition)?void 0:a.utcTimeMillis)/1E3,a=this.getCurrentTime(),a=this.Ye(a)-a,!isNaN(c)&&!isNaN(a))?Math.max(b,c-a):b};
g.k.bP=function(){this.G||this.seekTo(this.D,{yd:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})};
g.k.qF=function(){return this.qa&&!isFinite(this.B)};
g.k.va=function(){kfb(this,null);this.ra.dispose();g.I.prototype.va.call(this)};
g.k.pc=function(){var a={};this.ya&&Object.assign(a,this.ya.pc());this.mediaElement&&Object.assign(a,this.mediaElement.pc());return a};
g.k.UR=function(a){this.timestampOffset=a};
g.k.getStreamTimeOffset=function(){return OS(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0};
g.k.Mc=function(){return this.timestampOffset};
g.k.Ye=function(a){return this.videoData.j.Ye(a-this.timestampOffset)};
g.k.Nw=function(){if(!this.mediaElement)return 0;if(gT(this.videoData)){var a=this.mediaElement,b=a.Ch();a=(0<uK(b)&&a.getDuration()?b.end(b.length-1):0)+this.timestampOffset-this.Dd();b=this.Ie()-this.Dd();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.Nw()};
g.k.Px=function(a){this.K&&(this.K.j=a)};
g.k.L=function(a){return this.W&&this.W.L(a)};t0.prototype.pu=function(){return this.started};
t0.prototype.start=function(){this.started=!0};
t0.prototype.reset=function(){this.j=this.started=!1};var Cfb=!1;g.y(g.x0,g.UE);g.k=g.x0.prototype;g.k.va=function(){this.logger.debug("dispose");g.SA(this.wL);y5a(this.Kf);this.visibility.unsubscribe("visibilitystatechange",this.Kf);Qfb(this);B0(this);g.Bv.Tj(this.gy);this.Jj();this.Lf=null;g.vb(this.videoData);g.vb(this.Xk);g.vb(this.VN);g.vb(this.WN);g.wb(this.W$);this.rr=null;g.UE.prototype.va.call(this)};
g.k.ly=function(a,b,c,d){this.wc().ly(a,b,c);this.L("html5_log_media_perf_info")&&this.ma("adloudness",{ld:d.toFixed(3),cpn:a})};
g.k.mP=function(){var a;return null==(a=this.ya)?void 0:a.mP()};
g.k.pP=function(){var a;return null==(a=this.ya)?void 0:a.pP()};
g.k.FE=function(){var a;return null==(a=this.ya)?void 0:a.FE()};
g.k.nP=function(){var a;return null==(a=this.ya)?void 0:a.nP()};
g.k.Xi=function(){return this.videoData.Xi()};
g.k.kA=function(){return this.XA};
g.k.QI=function(){!this.WA||this.WA.Na();this.WA=new g.e0(new d0(this.videoData,this.W,this));this.XA=new f0(this.W,this,this.WA)};
g.k.getVideoData=function(){return this.videoData};
g.k.U=function(){return this.W};
g.k.hP=function(){return this.yk.hP(this.Lf)};
g.k.wc=function(a){if(a)a:{for(var b=this.XA,c=g.u(b.j.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.getVideoData().videoId===a){a=d;break a}a=b.B}else a=this.XA.wc();return a};
g.k.Am=function(){return this.visibility};
g.k.Je=function(){return this.mediaElement};
g.k.oO=function(){if(this.videoData.isLoaded()){var a=this.Xk;0<g.xI(a.Da.experiments,"html5_player_min_build_cl")&&640356325<g.xI(a.Da.experiments,"html5_player_min_build_cl")&&jdb(a,"oldplayer");Vfb(this)}else this.videoData.sj||this.videoData.ip?this.ju&&g.II(this.W)&&this.videoData.isLivePlayback||(this.videoData.sj?aXa(this.videoData):(a=this.wc(),a.qoe&&(a=a.qoe,U_(a,"protected"),a.provider.videoData.K?a.C1():a.provider.videoData.subscribe("dataloaded",a.C1,a)),ZWa(this.videoData))):!this.videoData.loading&&
this.o7&&Sfb(this)};
g.k.bM=function(a){this.zb=a;this.ya&&this.ya.bM(a)};
g.k.jA=ea(16);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.MF(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.WL(!0),Qfb(this),g.Bv.Tj(this.gy))};
g.k.Wo=function(){Ceb(this.wc())};
g.k.Mf=function(a,b,c,d,e,f){this.logger.debug(function(){return"set player error: ec="+a+", detail="+e});
var h,l;g.ed(Rob,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+oH());if("auth"===a||"drm.auth"===a||"heartbeat.stop"===a)c&&(d+=";r."+c.replaceAll(" ","_")),f&&(d+="sr."+f.replaceAll(" ","_"));b={errorCode:a,errorDetail:e,errorMessage:l||g.SV[h]||"",VO:h,Hn:f||"",GL:d,kJ:b,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=a;A0(this,"dataloaderror");this.Gc(NK(this.playerState,128,b));g.Bv.Tj(this.gy);B0(this);this.No()};
g.k.Eg=function(a){this.tq=this.tq.filter(function(b){return a!==b});
this.logger.debug(function(){return"set preroll ready for "+a});
this.L("html5_send_preroll_ready_csi_ping")&&!this.Un()&&this.Ob.Li("pl_pr");this.ws.pu()&&Tfb(this)};
g.k.Un=function(){var a;(a=!!this.tq.length)||(a=this.Ah.j.array[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.k.Qr=function(){return this.jd.Qr()};
g.k.isPlaying=function(){return this.playerState.isPlaying()};
g.k.nF=function(){return this.playerState.nF()&&this.videoData.Ll};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.Lf){var a=this.Lf;a=a.videoData.NA.compose(a.videoData.yY);a=gP(a)}else a="auto";return a};
g.k.OE=ea(20);g.k.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
g.k.setMediaElement=function(a){this.logger.debug("set media element");if(this.mediaElement&&a.Ib()===this.mediaElement.Ib()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.MB(this.zC),this.mediaElement=a,this.mediaElement.ea=this,ngb(this),this.jd.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Jj();if(!this.playerState.isError()){var b=PK(this.playerState,512);g.MF(b,8)&&!g.MF(b,2)&&(b=OK(b,1));a.isView()&&(b=PK(b,64));this.Gc(b)}this.mediaElement=
a;this.mediaElement.ea=this;WR(this.W)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);ngb(this);this.jd.setMediaElement(this.mediaElement);this.L("html5_prewarm_media_source")&&!this.Xk.fJ()&&NEa(this.mediaElement)}};
g.k.Jj=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.logger.debug("remove media element");if(this.mediaElement){var c=this.getCurrentTime();0<c&&(this.jd.D=c);this.jd.setMediaElement(null);!a&&FK(this)?hgb(this):PX(this);this.ya&&(B_(this.ya),F0(this,b));this.xx.stop();if(this.mediaElement&&(!this.ws.pu()||this.playerState.isError()||g.MF(this.playerState,2)||this.Gc(OK(this.playerState,512)),this.mediaElement)){g.MB(this.zC);if(a||!this.mediaElement.isView())this.L("html5_rebase_video_to_ad_timeline")&&
this.Ob.ov("mesv_s"),this.mediaElement.stopVideo(),H0(this);this.mediaElement=this.mediaElement.ea=null}}};
g.k.playVideo=function(a){a=void 0===a?!1:a;var b=this,c,d,e,f,h,l;return g.G(function(m){if(1==m.j){b.logger.debug("start play video");var n=window.google_image_requests;n&&10<n.length&&(window.google_image_requests=n.slice(-10));if(g.MF(b.playerState,128))return m.return();if(b.Xk.nK())return b.publish("signatureexpired"),m.return();b.mediaElement&&tY(b.wc());Yfb(b);(g.MF(b.playerState,64)||a)&&b.Gc(OK(b.playerState,8));return b.ws.j&&b.mediaElement?b.Lf||!b.oG?m.Ia(2):g.z(m,b.oG,3):m.return()}if(2!=
m.j&&g.MF(b.playerState,128))return m.return();if(!b.videoData.C)return b.videoData.isLivePlayback&&!g.qUa(b.W.G,!0)?(c="html5.unsupportedlive",d=2):(c=b.videoData.Xi()?"fmt.unplayable":"fmt.noneavailable",d=1),g.BE(Error("selectableFormats")),b.Mf(c,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),m.return();if(b.Xh()&&b.videoData.C.j)return b.logger.debug("rebuild playbackData for airplay"),m.return(z0(b));if(MS(b.videoData)){if(e=b.getCurrentTime()<b.Dd()-15,f=g.fT(b.videoData)&&
b.playerState.isPaused(),h=g.MF(b.playerState,1024),n=b.jd,n.videoData.dc()&&EXa(n.videoData)||h||!e&&!f||(f?(b.logger.debug("seek to head for live because of live-only"),b.seekTo(Infinity,{yd:"videoplayer_unpauseLiveOnly",seekSource:102})):(b.logger.debug("seek to min seekable for live because of out of window"),b.seekTo(b.Dd(),{yd:"videoplayer_outOfWindow",seekSource:102}))),!b.isAtLiveHead(void 0,!0)&&b.Qr()&&(b.logger.debug("seek to head for live because pegged to live"),l={yd:"videoplayer_peggedToLive",
seekSource:34},b.seekTo(Infinity,l)),g.MF(b.playerState,256)&&b.videoData.ra&&b.jd.qF())return b.Gc(QK(b.playerState,8,4)),m.return()}else b.L("html5_ssap_get_min_seekable_time_refactor")&&g.sT(b.videoData)&&b.getCurrentTime()<b.Dd()-0&&b.seekTo(b.Dd(),{yd:"videoplayer_outOfWindow"});g.MF(b.playerState,4)&&g.MF(b.playerState,16)&&b.Gc(QK(b.playerState,9,4));if(w0(b))return tgb(b),m.return();sgb(b);g.Aa(m)})};
g.k.Po=function(a){this.logger.debug("reset media source");a&&this.Rd(new RJ("qoe.restart",a));this.Gc(OK(this.playerState,2048));PX(this);a=this.videoData.j&&mP(this.videoData.j);var b=this.mediaElement&&this.mediaElement.isView();a||b?(this.ya&&Hbb(this.ya),M_(this)):(w0(this),this.playerState.isOrWillBePlaying()&&this.playVideo())};
g.k.Mt=function(){if(!this.Lf)return[];var a=pdb(this.yk,this.Lf,this.Mw());return this.Lf.j.Mt(a)};
g.k.CE=function(){if(!this.Lf)return[];var a=pdb(this.yk,this.Lf,this.Mw());return this.Lf.j.CE(a)};
g.k.Mw=function(){var a=this.Ae?this.Ae.Mw():WWa(this.videoData)&&this.videoData.j&&mP(this.videoData.j)?this.videoData.Ok?DS:Tcb:DS;this.LS&&(a=a.compose(zpb));return a};
g.k.vJ=function(){var a=this.qe(),b=this.fd.Md().videoId;return this.fd.Fu.vJ(a)||this.fd.Fu.vJ(b)};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.j?gP(this.videoData.NA):fP[YO()]};
g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.k.setUserAudio51Preference=function(a,b){this.videoData.Uf!==a&&(this.ma("toggle51",{pref:a}),this.videoData.Uf=a,g.PB("yt-player-audio51",a,b?31536E3:2592E3),N_(this))};
g.k.getUserAudio51Preference=function(){var a=1;SR(this.W)&&this.L("html5_ytv_surround_toggle_default_off")&&(a=0);var b;return null!=(b=g.QB("yt-player-audio51"))?b:a};
g.k.setProximaLatencyPreference=function(a){var b=this.getProximaLatencyPreference();this.ma("proxima",{pref:a});g.PB("yt-player-proxima-pref",a,31536E3);b!==a&&(this.jd.eb=!0,this.seekTo(Infinity,{yd:"videoplayer_proximaSeekToHead",seekSource:34}))};
g.k.getProximaLatencyPreference=function(){var a;return null!=(a=DPa())?a:0};
g.k.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible};
g.k.VT=function(){this.videoData.videoId?this.fd.VT(this.videoData.videoId):this.ma("piavid",{})};
g.k.getAvailableAudioTracks=function(){return g.sT(this.videoData)&&this.zb?D6a(this.zb).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){if(egb(this)){var a=ggb(this);if(a)return a}return this.videoData.getAudioTrack()};
g.k.QF=function(){if(NS(this.videoData)&&!this.videoData.dc()&&this.videoData.L("html5_trigger_loader_when_idle_network")){var a;null!=(a=this.ya)&&a.mf()}};
g.k.Tz=function(){if(this.ya){var a=this.ya,b=a.Tz;var c=this.videoData;c=c.L("html5_ssdai_use_post_for_media")&&c.enableServerStitchedDai?!1:OS(c)&&c.Hf&&!c.isAd();b.call(a,c)}};
g.k.Er=function(){return this.Qa};
g.k.Qx=function(a){this.logger.debug("onNeedKeyInfo");this.BB.set(a.initData,a);this.Ae&&(this.Ae.Qx(a),this.L("html5_eme_loader_sync")||this.BB.remove(a.initData))};
g.k.VR=function(a){this.videoData.dB=g.dP("auto",a,!1,"u");v0(this)};
g.k.Px=function(a){var b,c;if(this.L("html5_prefer_language_over_codec")&&(null==(b=this.videoData.D)?0:b.qc)&&a.j.info.qb!==this.videoData.D.qb&&(null==(c=a.j.info.qc)?void 0:c.id)!==this.videoData.D.qc.id){var d;this.ma("lac",{prev:this.videoData.D.itag,plang:this.videoData.D.qc.id,"new":a.j.info.itag,nlang:null==(d=a.j.info.qc)?void 0:d.id})}b=a.reason;c=a.j.info;d=a.token;var e=this.wc(a.videoId),f=g.sT(this.videoData)?e.getVideoData():this.videoData;if(c!==f.D){var h=!f.D;f.D=c;"m"!==b&&"t"!==
b&&(b=h?"i":"a");var l="m"===b||"t"===b;e.TF(new mdb(f,c,b,"",d));this.publish("internalaudioformatchange",f,!h&&l)}this.jd.Px(a.j.index)};
g.k.cL=function(a){this.publish("localmediachange",a)};
g.k.To=function(a){a=void 0===a?{}:a;var b;null==(b=this.ya)||b.To(this.W,XWa(this.videoData),a)};
g.k.nK=function(){return this.Xk.nK()};
g.k.handleError=function(a){this.Xk.handleError(a)};
g.k.fJ=function(){return this.Xk.fJ()};
g.k.BK=function(a){this.xC?(this.ma("utcSeekingFallback",{source:"streamTime",timeSeconds:this.xC}),this.seekTo(this.xC,{yd:"utcSeekingFallback_streamTime"}),this.xC=0):isNaN(this.Ye())||(a=this.Ye()-a,a=this.getCurrentTime()-a,this.ma("utcSeekingFallback",{source:"estimate",timeSeconds:a}),this.seekTo(a,{yd:"utcSeekingFallback_estimate"}))};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.MF(this.playerState,64)||g.MF(this.playerState,2))&&!a)if(g.MF(this.playerState,8))this.Gc(QK(this.playerState,4,8));else if(this.nF())w0(this);else return;g.MF(this.playerState,128)||(a?this.Gc(OK(this.playerState,256)):this.Gc(QK(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.fT(this.videoData)&&this.ya&&F0(this,!1)};
g.k.stopVideo=function(){this.pauseVideo();this.ya&&(F0(this,!1),this.ya.Wk())};
g.k.No=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(FK(this)&&b){var c;null==(c=this.mediaElement)||c.No()}else{var d;null==(d=this.mediaElement)||d.stopVideo()}H0(this);B0(this);g.MF(this.playerState,128)||(a?this.Gc(PK(PK(OK(this.playerState,4),8),16)):this.Gc(NK(this.playerState)));this.videoData.videoId&&this.W.Ma.remove(this.videoData.videoId)};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;this.logger.debug(function(){return"SeekTo "+a+", "+JSON.stringify(b)});
g.MF(this.playerState,2)&&w0(this);b.Hqb&&this.Gc(OK(this.playerState,2048));this.jd.seekTo(a,b);this.Ah.sync()};
g.k.VK=function(){this.publish("onAbnormalityDetected")};
g.k.getCurrentTime=function(){return this.jd.getCurrentTime()};
g.k.Vf=function(){return this.jd.Vf()};
g.k.tJ=function(a){return this.zb&&(a=a||this.zb.Mp())?O6a(this.zb,a):this.Vf()};
g.k.Nn=function(){return this.jd.Nn()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Mc())};
g.k.iA=function(){var a=NaN;this.mediaElement&&(a=this.mediaElement.iA());return 0<=a?a:this.getCurrentTime()};
g.k.Ye=function(){var a;return(null==(a=this.videoData.j)?0:a.Ye)?this.videoData.j.Ye(this.getCurrentTime()-this.Mc()):this.mediaElement&&(a=this.mediaElement.dI())&&(a=a.getTime(),!isNaN(a))?a/1E3+this.getCurrentTime():NaN};
g.k.getDuration=function(){return g.sT(this.videoData)&&this.zb?rY(this.zb):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Mc():this.Ie()?this.Ie():0};
g.k.UE=function(){var a=new Heb;this.ya?(HUa(this.W.schedule,a),ccb(this.ya,a)):this.mediaElement&&(a.mw=KK(this.mediaElement));a.Ms=this.Ms;a.qv=this.qv;a.C=this.isAtLiveHead()&&this.isPlaying()?Mfb(this):NaN;return a};
g.k.EG=function(a,b){this.qv+=a;this.Ms+=b};
g.k.Nw=function(){return this.mediaElement?g.fT(this.videoData)?1:gT(this.videoData)?this.isAtLiveHead()||this.Qr()?1:this.jd.Nw():this.mediaElement.Nw():0};
g.k.pc=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.wc().pc());this.mediaElement&&(Object.assign(b,this.mediaElement.pc()),Object.assign(b,this.YE()));this.ya&&Object.assign(b,this.ya.pc());this.Ae&&(b.drm=JSON.stringify(this.Ae.pc()));b.state=this.playerState.state.toString(16);g.MF(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.Ng));this.Un()&&(b.prerolls=this.tq.join(","));this.videoData.Jd&&(b.ismb=this.videoData.Jd);"UNKNOWN"!==this.videoData.latencyClass&&
(b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)b.is_mosaic=1;this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(b.playerResponseCpn=this.videoData.playerResponseCpn);this.fd.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&&
NQ(this.videoData.j)&&(b.segduration=NQ(this.videoData.j)),a=this.jd,b.lat=a.K?WZa(a.K.D):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Qf.toFixed(3);if(a=g.eV(this))b.optimal_format=a.video.qualityLabel;b.user_qual=YO();b.release_version="youtube.player.web_20240604_00_RC00";g.sT(this.videoData)&&this.zb&&(b.ssap=uY(this.zb))}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.vz([a])};
g.k.removeCueRange=function(a){this.Ah.Oo([a])};
g.k.rE=function(a,b){return this.Ah.rE(a,b)};
g.k.vz=function(a,b){this.Ah.hf(a,b)};
g.k.GG=function(a){this.Ah.Oo(a)};
g.k.Zk=function(){return this.Ah.Zk()||[]};
g.k.Xh=function(){return this.visibility.Xh()};
g.k.Yu=function(){this.mediaElement&&this.mediaElement.Yu()};
g.k.Cca=function(){A0(this)};
g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.k.iL=function(a){var b=a.target.Ef();if(this.mediaElement&&this.mediaElement.Ef()&&this.mediaElement.Ef()===b){ygb(this,a.type);switch(a.type){case "error":var c=UEa(this.mediaElement)||"",d=this.mediaElement.wf();if("capability.changed"===c){this.L("html5_restart_on_capability_change")?(this.ma("capchg",{msg:d}),M_(this,!0)):z0(this);return}if(this.mediaElement.hasError()&&(fdb(this.Xk,c,{msg:d})||g.sT(this.videoData)&&this.zb&&this.zb.handleError(c)))return;if(this.isBackground()&&4===this.mediaElement.dh()){this.No();
C0(this,"unplayable");return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.Qa||0<c)&&1!==c&&this.Bl(c);break;case "ratechange":this.ya&&this.ya.setPlaybackRate(this.mediaElement.getPlaybackRate());Peb(this.Ah);this.wc().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":Agb(this);this.publish("onLoadedMetadata");h5a(this);c=this.Ye();this.videoData.zB&&(this.videoData.zB=c);break;case "loadstart":h5a(this);break;case "progress":case "suspend":this.Sc();
this.publish("onLoadProgress",this,this.Nw());break;case "playing":this.Ob.ov("plev");this.QS&&(this.QS=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{yd:"videoplayer_onPlaying"})));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();d=this.mediaElement&&0===this.mediaElement.Rk();if(c&&(!this.RK||d))return;this.RK=this.RK||!!this.mediaElement.getCurrentTime();ogb(this);this.Sc();if(!this.mediaElement||this.mediaElement.Ef()!==
b)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.mediaElement.Qw().length&&0===this.mediaElement.Ch().length&&0<this.mediaElement.getCurrentTime()&&5>this.mediaElement.getCurrentTime()&&this.ya)return;this.L("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||2<this.mediaElement.Rk()||!this.mediaElement.isSeeking()&&sK(this.mediaElement.Ch(),this.mediaElement.getCurrentTime()))&&(c=this.mediaElement.pc(),c.bh=KK(this.mediaElement).toFixed(3),
this.ma("uwe",c));g.sT(this.videoData)&&this.zb&&x6a(this.zb,this.mediaElement.getCurrentTime());break;case "resize":Agb(this);this.videoData.B&&"auto"===this.videoData.B.video.quality&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.MW&&g.MF(this.playerState,8)&&!g.MF(this.playerState,1024)&&0===this.getCurrentTime()&&g.rC){C0(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Ef()===b){vfb(this.jd,a,this.zb||void 0);this.publish("videoelementevent",
a);b=this.playerState;d=this.UD;var e=this.mediaElement;c=this.videoData.clientPlaybackNonce;var f=g.sT(this.videoData)&&this.zb?rY(this.zb):void 0;if(!g.MF(b,128)){var h=b.state;e=e?e:a.target;var l=e.getCurrentTime();if(!g.MF(b,64)||"ended"!==a.type&&"pause"!==a.type){f=f||e.getDuration();f=e.isEnded()||1<l&&1.1>Math.abs(l-f);var m="pause"===a.type&&e.isEnded();l="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.MF(b,4)&&!h0(d,l);if(m||f&&l)0<e.CJ()&&e.Ef()&&(h=14);else switch(a.type){case "error":UEa(e)&&
(h|=128);break;case "pause":g.MF(b,256)?(h^=256)||(h=64):g.MF(b,32)||g.MF(b,2)||g.MF(b,4)||(h=4,g.MF(b,1)&&g.MF(b,8)&&(h|=1));break;case "playing":l=h;h=(h|8)&-1093;l&4?(h|=1,MK(d,e)):h0(d,e.getCurrentTime())&&(h&=-2);g.MF(b,1)&&MK(d,e)&&(h|=1);break;case "seeking":h|=16;g.MF(b,8)&&(h|=1);h&=-3;break;case "seeked":h&=-17;MK(d,e);break;case "waiting":g.MF(b,2)||(h|=1);MK(d,e);break;case "timeupdate":l=g.MF(b,16),f=g.MF(b,4),(g.MF(b,8)||l)&&!f&&h0(d,e.getCurrentTime())&&(h=8),MK(d,e)&&(h|=1)}}d=h;h=
null;d&128&&(h=a.target,e=UEa(h),l=1,e?("capability.changed"===e&&(l=2),f="GENERIC_WITHOUT_LINK",m=h.pc(),m.mediaElem="1",/AUDIO_RENDERER/.test(h.wf())&&(f="HTML5_AUDIO_RENDERER_ERROR"),h={errorCode:e,errorMessage:g.SV[f]||"",VO:f,GL:QJ(m),kJ:l,cpn:b.Ng?b.Ng.cpn:""}):h=null,h&&(h.cpn=c));b=NK(b,d,h)}!g.MF(this.playerState,1)&&g.MF(b,1)&&xgb(this,"evt"+a.type);this.Gc(b)}}};
g.k.baa=function(a){a="available"===a.j.availability;a!==this.iF&&(this.iF=a,this.publish("airplayavailabilitychange"))};
g.k.caa=function(){var a=(0,g.wC)(),b=this.mediaElement.Xh();this.ma("airplay",{ia:b});!b&&!isNaN(this.qK)&&2E3>a-this.qK||(this.qK=a,b!==this.Xh()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Kf()),this.ma("airplay",{rbld:b}),N_(this)),this.publish("airplayactivechange"))};
g.k.ZE=function(a){if(this.ya){var b=this.ya,c=b.C,d=b.currentTime,e=Date.now()-c.qa;c.qa=NaN;c.ma("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.K)&&3!==c.B&&i9a(c.ya,d,c.K,c.G);c.policy.K?c.C=NaN:c.D=NaN;pZ(c,4,3===c.B?"adfps":"adf");B_(b)}};
g.k.Sc=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){nfb(this.jd,this.isPlaying());var c=this.getCurrentTime();!this.ya||g.MF(this.playerState,4)&&g.fT(this.videoData)||NS(this.videoData)&&g.MF(this.playerState,32)||ecb(this.ya,c);5<c&&(this.jd.D=c);var d=g.eC();d?g.Bv.Tj(this.gy):g.RA(this.gy);var e=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!e||uT(this.videoData))&&!g.MF(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.MF(b.playerState,
128)){b.W.Bc()&&ygb(b,"pfx");var l=b.getCurrentTime(),m=KK(b.mediaElement),n=g.MF(b.playerState,8),p=h0(b.UD,l),q=VEa(b.UD,l,(0,g.wC)(),m);n&&p?b.Gc(PK(b.playerState,1)):n&&q?(n=b.getDuration(),p=MS(b.videoData),n&&1.1>Math.abs(n-l)?(b.ma("setended",{ct:l,bh:m,dur:n,live:p}),b.mediaElement.Ot()||Zfb(b)?(b.logger.debug("seek to 0 because of looping"),b.seekTo(0,{yd:"videoplayer_loop",seekSource:37})):NX(b)):(b.playerState.isBuffering()||xgb(b,"progress_fix"),b.Gc(OK(b.playerState,1)))):(n&&!p&&!q&&
0<l&&(n=(Date.now()-b.BF)/1E3,p=b.getDuration(),l>p-1&&b.ma("misspg",{t:l.toFixed(2),d:p.toFixed(2),r:n.toFixed(2),bh:m.toFixed(2)})),b.playerState.isPaused()&&b.playerState.isBuffering()&&5<KK(b.mediaElement)&&b.Gc(PK(b.playerState,1)));b.Sc()}};
0===this.mediaElement.Qw().length?this.gy=d?g.Bv.Qi(f,100):g.PA(f,100):this.gy=d?g.Bv.Qi(f,500):g.PA(f,500)}this.videoData.Ck=c;if(this.L("html5_ssap_vss_fix")){var h;null==(h=this.zb)||H6a(h)}!a&&this.isPlaying()&&rgb(this);xdb(this.yk,this.Lf,this.Je(),this.isBackground())&&v0(this);this.publish("progresssync",this,a);e&&uT(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}};
g.k.i9=function(){this.Mf("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.ME=function(){return this.wc().ME()};
g.k.iP=function(){return this.ya?this.ya.iP():wR(this.W.schedule,!0)};
g.k.Gc=function(a){if(g.WEa(this.playerState,a))this.W.Bc()&&a.seekSource!==this.playerState.seekSource&&this.ma("ssdiff",{ps:(this.playerState.seekSource||"").toString(),ns:(a.seekSource||"").toString()});else{this.logger.debug(function(){return"Setting state "+a.toString()});
var b=new g.LF(a,this.playerState);this.playerState=a;zgb(this);var c=!this.zL.length;this.zL.push(b);var d=this.mediaElement&&this.mediaElement.isSeeking();d=8===b.oB.state&&!d;g.OF(b,1)&&d&&g.MF(this.playerState,8)&&!g.MF(this.playerState,64)&&this.ya&&(Gbb(this.ya),this.mediaElement&&5<=KK(this.mediaElement)&&vdb(this.yk,this.Lf)&&v0(this));(d=g.xI(this.W.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.MF(a,1)&&(g.MF(a,8)||g.MF(a,16))?this.HN.start(d):this.HN.stop();(0>NF(b,8)||g.OF(b,
1024))&&this.xx.stop();!g.OF(b,8)||this.videoData.ra||g.MF(b.state,1024)||this.xx.start();g.MF(b.state,8)&&0>NF(b,16)&&!g.MF(b.state,32)&&!g.MF(b.state,2)&&this.playVideo();g.MF(b.state,2)&&gT(this.videoData)&&(this.Bl(this.getCurrentTime()),this.Sc(!0));g.OF(b,2)&&this.WL(!0);g.OF(b,128)&&this.No();this.videoData.j&&this.videoData.isLivePlayback&&!this.S2&&(0>NF(b,8)?KTa(this.videoData.j):g.OF(b,8)&&this.videoData.j.resume());lfb(this.jd,b);J6a(this.wc(),b);if(c&&!this.Na())try{for(var e=g.u(this.zL),
f=e.next();!f.done;f=e.next()){var h=f.value;Qeb(this.Ah,h);this.publish("statechange",h)}}finally{this.zL.length=0}}};
g.k.WF=function(){this.videoData.isLivePlayback||this.L("html5_disable_connection_issue_event")||this.publish("connectionissue")};
g.k.NR=function(){this.Ob.tick("qoes")};
g.k.bP=function(){this.jd.bP()};
g.k.bL=function(a,b,c,d){a:{var e=this.Xk;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=SJ(b);"drm.keyerror"===a&&this.Ae&&1<this.Ae.B.keys.length&&96>e.D&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())ldb(e,a);else{if(e.ea.Mf(a,b,d,c),cdb(e,{detail:c}))break a}else e.Rd(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.ma("retrydrm",{sessionLimitExhausted:1}),e.D++,wgb(e.ea))}};
g.k.Taa=function(){var a=this,b=g.xI(this.W.experiments,"html5_license_constraint_delay"),c=dra();b&&c?(b=new g.Iv(function(){D0(a);A0(a)},b),g.N(this,b),b.start()):(D0(this),A0(this))};
g.k.YF=function(a){this.publish("heartbeatparams",a)};
g.k.lq=function(a){this.ma("keystatuses",Icb(a));var b="auto",c=!1;this.videoData.B&&(b=this.videoData.B.video.quality,c=this.videoData.B.video.isHdr());if(this.L("html5_drm_check_all_key_error_states")){var d=Jcb(b,c);d=H_(a)?Kcb(a,d):a.D.includes(d)}else{a:{b=Jcb(b,c);for(d in a.j)if("output-restricted"===a.j[d].status){var e=a.j[d].type;if(""===b||"AUDIO"===e||b===e){d=!0;break a}}d=!1}d=!d}if(this.L("html5_enable_vp9_fairplay")){if(c)if(a.Z){var f;if(null==(f=this.Ae)?0:$Q(f.j))if(null==(c=this.Ae))c=
0;else{b=f=void 0;e=g.u(c.B.values());for(var h=e.next();!h.done;h=e.next())h=h.value,f||(f=Lcb(h,"SD")),b||(b=Lcb(h,"AUDIO"));c.nj({sd:f,audio:b});c="output-restricted"===f||"output-restricted"===b}else c=!d;if(c){this.ma("drm",{dshdr:1});ldb(this.Xk);return}}else{this.videoData.vD||(this.videoData.vD=!0,this.ma("drm",{dphdr:1}),M_(this,!0));return}var l;if(null==(l=this.Ae)?0:$Q(l.j))return}else if(l=a.Z&&d,c&&!l){ldb(this.Xk);return}d||Kcb(a,"AUDIO")&&Kcb(a,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),
a=Icb(a),this.LS?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.L("html5_report_fatal_drm_restricted_error_killswitch")||this.Mf("drm.keyerror",2,void 0,"info."+a)):(this.LS=!0,this.Rd(new RJ("qoe.restart",Object.assign({},{retrydrm:1},a))),v0(this),wgb(this)))};
g.k.Vaa=function(){if(!this.videoData.ra&&this.mediaElement&&!this.isBackground()){var a="0";0<this.mediaElement.Rk()&&5<=KK(this.mediaElement)&&this.videoData.C&&this.videoData.C.j&&(this.Gc(OK(this.playerState,1)),xgb(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),a="1");zgb(this);var b=this.videoData.C;a={restartmsg:a,mfmt:!WWa(this.videoData),mdrm:!(!(b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].le)||this.Ae),mfmtinfo:!this.videoData.B,prerolls:this.Un()?this.tq.join(","):
"0"};if(this.Ae){b=this.Ae;if(0>=b.B.size){var c="ns;";b.Y||(c+="nr;");b=c+="ql."+b.C.length}else b=Icb(b.B.values().next().value),b=QJ(b);a.drmp=b}var d;Object.assign(a,(null==(d=this.ya)?void 0:d.pc())||{});var e;Object.assign(a,(null==(e=this.mediaElement)?void 0:e.pc())||{});this.wc().Rd("qoe.start15s",QJ(a));this.publish("loadsofttimeout")}};
g.k.Bl=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,A0(this))};
g.k.WL=function(a){var b=this;a=void 0===a?!1:a;if(!this.pI)if(aH("att_s","player_att")||bH("att_s",void 0,"player_att"),this.L("use_rta_for_player"))(function(){var d,e,f,h;return g.G(function(l){switch(l.j){case 1:if(!(d=a)){l.Ia(2);break}return g.z(l,g.NAa(),3);case 3:d=!l.B;case 2:if(d)return l.return();g.Ba(l,4);e=Feb(b.wc());if(!e)throw Error();f={};return g.z(l,g.MAa((f.cpn=b.videoData.clientPlaybackNonce,f.encryptedVideoId=b.videoData.videoId||"",f),3E4),6);case 6:h=l.B;if(b.pI)throw Error();
if(!h.challenge)throw g.BE(Error("Not sending attestation ping; no attestation challenge string")),Error();b.pI=!0;var m=[h.challenge];h.error?m.push("r1c="+h.error):h.webResponse&&m.push("r1a="+h.webResponse);var n;void 0!==(null==(n=h.adblockReporting)?void 0:n.reportingStatus)&&m.push("r6a="+h.adblockReporting.reportingStatus);var p;void 0!==(null==(p=h.adblockReporting)?void 0:p.broadSpectrumDetectionResult)&&m.push("r6b="+h.adblockReporting.broadSpectrumDetectionResult);e(m.join("&"));bH("att_f",
void 0,"player_att");g.Ca(l,0);break;case 4:g.Da(l),bH("att_e",void 0,"player_att"),g.Aa(l)}})})().then(function(){});
else{var c=new g.zPa(this.videoData);if("c1a"in c.jr&&!g.VO.isInitialized()){bH("att_wb",void 0,"player_att");2===this.UN&&.01>Math.random()&&g.BE(Error("Botguard not available after 2 attempts"));if(a)return;if(5>this.UN){g.Jv(this.WN);this.UN++;return}}(c=g.APa(c))?(bH("att_f",void 0,"player_att"),Eeb(this.wc(),c),this.pI=!0):bH("att_e",void 0,"player_att")}};
g.k.Ie=function(a){return this.jd.Ie(void 0===a?!1:a)};
g.k.Dd=function(){return this.jd.Dd()};
g.k.Mc=function(){return this.jd?this.jd.Mc():0};
g.k.getStreamTimeOffset=function(){return this.jd?this.jd.getStreamTimeOffset():0};
g.k.St=function(){var a=0;this.W.L("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.Mc():this.getStreamTimeOffset());return a};
g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&qdb(this.yk,null==(b=this.videoData.C)?void 0:b.videoInfos)&&(this.playbackRate=a,v0(this));this.playbackRate=a;this.mediaElement&&this.mediaElement.setPlaybackRate(a)};
g.k.getPlaybackRate=function(){return this.playbackRate};
g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.B&&(a=this.videoData.B.video.quality,"auto"===a&&this.mediaElement)){var b=Rfb(this);b&&0<b.videoHeight&&(a=tEa(b.videoWidth,b.videoHeight))}return a};
g.k.isHdr=function(){return!!(this.videoData.B&&this.videoData.B.video&&this.videoData.B.video.isHdr())};
g.k.Ps=function(){this.wc().Ps()};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.wc();c.j?(c=$_(c.j,"engage"),c.qa=a,c.send(b)):b&&b()};
g.k.Gi=function(a){return this.wc().Gi(a)};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;return MS(this.videoData)&&(this.IY||b)?this.jd.isAtLiveHead(a):!1};
g.k.Dr=function(){var a=this.Ie(),b=this.getCurrentTime(),c;(c=!MS(this.videoData))||(c=this.jd,c=!(c.j&&c.j.C));return c||this.Qr()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.Do=ea(24);g.k.Mu=ea(45);g.k.Mo=function(a){this.wc().Mo(a)};
g.k.sy=function(a){this.wc().sy(a)};
g.k.DG=function(a){this.wc().DG(a)};
g.k.YE=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
g.k.setLoop=function(a){this.loop=a;this.mediaElement&&WR(this.W)&&this.mediaElement.setLoop(a);this.ya&&this.L("html5_loop_skip_set_end_of_stream")&&(a?this.ya.policy.Va=!0:Hbb(this.ya))};
g.k.Ot=function(){return this.mediaElement&&WR(this.W)?this.mediaElement.Ot():this.loop};
g.k.UR=function(a){this.ma("timestamp",{o:a.toString()});this.jd.UR(a)};
g.k.Sd=function(a){this.Ob.tick(a)};
g.k.Li=function(a){return this.Ob.Li(a)};
g.k.ov=function(a){this.Ob.ov(a)};
g.k.ma=function(a,b,c){c=void 0===c?!1:c;this.wc().ma(a,b,c)};
g.k.QB=function(a,b,c){c=void 0===c?!1:c;this.wc().ma(a,b,c)};
g.k.Rd=function(a){this.wc().Rd(a.errorCode,QJ(a.details));a=a.errorCode;if(this.videoData.isLivePlayback&&("qoe.longrebuffer"===a||"qoe.slowseek"===a)){a=this.ya?r$a(this.ya.videoTrack):{};var b,c;this.ma("lasoe",Object.assign(this.ya?r$a(this.ya.audioTrack):{},null==(b=this.Qa)?void 0:null==(c=b.j)?void 0:c.zJ()));var d,e;this.ma("lvsoe",Object.assign(a,null==(d=this.Qa)?void 0:null==(e=d.B)?void 0:e.zJ()))}};
g.k.CG=function(a,b,c){this.wc().CG(a,b,c)};
g.k.ZI=function(a){this.videoData.N0=!0;this.Rd(new RJ("sabr.fallback",a));M_(this,!0)};
g.k.getPlayerSize=function(){return this.iH.getPlayerSize()};
g.k.Vh=function(){return this.iH.Vh()};
g.k.Ei=function(){return this.Ob};
g.k.Gr=function(){return this.fd.Gr()};
g.k.getVolume=function(){return this.fd.getVolume()};
g.k.jF=function(){return this.fd.jF()};
g.k.isMuted=function(){return this.fd.isMuted()};
g.k.bA=function(){return this.fd.bA()};
g.k.Iw=function(){return this.fd.Iw()};
g.k.Hw=function(){return this.fd.Hw()};
g.k.L=function(a){return this.W.L(a)};
g.k.Gs=function(){var a=this.getCurrentTime(),b=a-this.Mc();var c=this.mediaElement?uK(this.mediaElement.Ch()):0;c=Math.floor(Math.max(c-b,0))+100;var d;if(!this.L("html5_ssdai_disable_seek_to_skip")&&(null==(d=this.ya)?0:d.UG(b,this.Ie())))return this.ma("sdai",{skipad:1,ct:b.toFixed(3),adj:0}),!0;var e;return(null==(e=this.ya)?0:e.Gs(b,c))?(this.ma("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),xfb(this.jd,a),!0):!1};
g.k.Bc=function(){return this.W.Bc()};
g.k.FJ=function(){if(this.L("html5_generate_content_po_token")&&this.videoData.videoId)return this.videoData.jfa||this.fd.aR(this.videoData.videoId);this.fd.aU();return this.W.Uf||""};
g.k.qe=function(){return this.videoData.videoId};
g.k.mA=function(){return this.fd.Tx};
g.k.fu=function(){return this.fd.fu()};
g.k.ES=function(a,b){this.ma("requestUtcSeek",{time:a});var c;null==(c=this.ya)||c.ES(a);b&&(this.xC=b)};
g.k.sO=function(){this.xC=0};
g.k.Nm=function(a){this.fd.Nm(a)};
g.k.QR=function(a,b){this.fd.QR(a,b)};
g.k.xS=function(a,b){var c;null==(c=this.ya)||c.xS(a,b)};
g.k.hO=function(){var a=this.Er();return!!a&&a.hO()};
g.k.gg=function(){return this.zb};
g.k.aH=function(a,b){this.wc().aH(a,b)};
g.k.QE=function(){return this.wc().QE()};
g.k.KJ=function(){return this.videoData.kW};
g.k.bH=function(a){this.videoData.kW=a};
g.k.po=function(){return this.fd.po()};
g.k.pF=function(){return this.fd.pF(this)};
g.k.XS=function(a){this.videoData.ffa=a};g.y(g.I0,g.I);g.I0.create=function(a,b,c,d){try{var e="string"===typeof a?a:"player"+g.fb(a),f=H3[e];if(f){try{f.dispose()}catch(l){g.AE(l)}H3[e]=null}var h=new g.I0(a,b,c,d);h.addOnDisposeCallback(function(){H3[e]=null;h.L2&&h.L2()});
return H3[e]=h}catch(l){throw g.AE(l),(l&&l instanceof Error?l:Error(String(l))).stack;}};
g.k=g.I0.prototype;g.k.Am=function(){return this.visibility};
g.k.getVisibilityState=function(a,b,c,d,e,f,h,l){return this.visibility.getVisibilityState(a,b,c,d,e,f,h,l)};
g.k.wm=function(){this.pQ||(this.pQ=g.nH(WT(),lPa()));return this.pQ};
g.k.Jj=function(){if(this.mediaElement){this.CC&&(this.events.Pc(this.CC),this.CC=null);g.MB(this.Eu);this.tb&&this.tb.Jj(!0);this.template.Jj();try{this.L("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.ML()}catch(a){g.BE(a)}this.mediaElement=null}};
g.k.Zc=function(){return this.tb};
g.k.py=function(){var a=this;this.tb!==this.xb&&(this.logger.debug(function(){var b,c;return"release presenting player, type "+(null==(b=a.tb)?void 0:b.getPlayerType())+", vid "+(null==(c=a.tb)?void 0:c.getVideoData().videoId)}),OX(this,this.xb))};
g.k.Qz=function(a,b,c){var d=this,e=this.Ob;2===a&&(e=new s_a(this.W));return new g.x0(this.W,a,e,this.template,function(f,h,l){d.Ua.publish(f,h,l)},function(){return d.Ua.getVisibilityState()},this.visibility,this,b,c)};
g.k.iaa=function(){O0(this)||(this.logger.debug("application playback ready"),this.Fq(5))};
g.k.tba=function(a){if(!O0(this)){this.logger.debug("playback ready");uhb(this);var b=a.getPlayerState();a.nF()?this.pauseVideo():b.isOrWillBePlaying()&&this.playVideo()}};
g.k.canPlayType=function(a){return VJ(a)};
g.k.U=function(){return this.W};
g.k.getVideoData=function(){return this.tb.getVideoData()};
g.k.WE=ea(18);g.k.Md=function(){return this.xb.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.HT(this,a);return a?g.tT(a.getVideoData())?1:(a=a.Je())?a.Nw():0:0};
g.k.ob=function(){return this.template};
g.k.yb=function(){return this.Pd};
g.k.Ei=function(){return this.Ob};
g.k.gC=function(a){var b=g.HT(this,1);b&&NX(b,a)};
g.k.Gr=function(){var a=this.Pd.Gr();this.Ua.publish("videoStatsPingCreated",a);return a};
g.k.getVolume=function(){return Math.round(this.Ua.getVolume())};
g.k.jF=function(){return this.Ua.isFullscreen()};
g.k.isMuted=function(){return this.Ua.isMuted()};
g.k.Iw=function(){if(this.W.L("html5_enable_embedded_player_visibility_signals")&&g.BR(this.W)&&this.BC){var a=VYa(this.BC);if(null!=a)return a}};
g.k.Hw=function(){if(this.W.L("html5_enable_embedded_player_visibility_signals")&&g.BR(this.W)){var a=this.template.getPlayerSize();if(0<a.height&&0<a.width){a=[Math.round(a.width),Math.round(a.height)];var b=g.QR();1<b&&a.push(b);return a.join(":")}}};
g.k.bA=function(){if(this.tb===this.xb&&this.Bb)return this.Bb.postId};
g.k.lda=function(){var a=this;this.L("use_rta_only_for_player")||(g.II(this.W)?g.$R(this.W,g.qT(this.getVideoData())).then(function(b){XT(WT(),b);UXa(a.getVideoData(),a.W,a.wm())}):UXa(this.getVideoData(),this.W,this.wm()))};
g.k.fP=function(a){var b=this;return g.G(function(c){return b.FB?c.return(b.FB.fP(a)):c.return(Promise.reject("web po not available"))})};
g.k.VT=function(a){this.Ua.publish("d6de4videobindingchange",a)};
g.k.aU=function(){this.FB&&this.FB.aU()};
g.k.aR=function(a){return this.FB?this.FB.aR(a):""};
g.k.cT=function(a){this.FB=a};
g.k.yG=function(a){1===a&&(this.Ob.tick("vr"),pgb(this.tb),t_a(this.Ob,this.tb.getVideoData(),thb(this)),l0a(this.Pd));var b=this.W;(YR(b)&&b.N||g.HR(b))&&(this.Hf()||this.Ua.jb("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.tb===this.xb&&this.tb.Ot()!==a&&(this.tb.setLoop(a),this.Ua.jb("onLoopChange",a))};
g.k.getLoopVideo=function(){return this.tb.Ot()};
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){if(this.tb&&TS(this.getVideoData())){b=(null==a?void 0:a.endTimeMs)||-1;var c;null==(c=g.HT(this))||c.ma("slr",{et:b})}this.xb.Ah.nf("applooprange");if(a)c=new g.cJ(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.xb.addCueRange(c);else{this.Md().clipConfig=void 0;var d,e;"repeatChapter"!==
(null==(d=this.Bb)?void 0:d.type)||isNaN(Number(null==(e=this.Bb)?void 0:e.loopCount))||(c={loopCount:String(this.Bb.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.iC("repeatChapterLoopEvent",c))}this.Bb=a;this.Ua.jb("onLoopRangeChange",a||void 0);this.tb===this.xb&&(this.VL(),this.tb.Wo())}};
g.k.getLoopRange=function(){return this.Bb};
g.k.VL=function(){var a="";this.Bb?this.tb!==this.xb?a="pnea":dhb(this,this.xb.getCurrentTime())&&(this.Bb.loopCount=0,a="ilr"):a="nlr";if(this.tb&&TS(this.getVideoData()))if(this.L("html5_gapless_log_loop_range_info")){var b,c,d;null==(d=g.HT(this))||d.ma("slrre",{rej:a,ct:this.xb.getCurrentTime(),lst:null==(b=this.Bb)?void 0:b.startTimeMs,let:null==(c=this.Bb)?void 0:c.endTimeMs})}else{var e;null==(e=g.HT(this))||e.ma("slrre",{})}a||hhb(this)};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=Jgb(this,a),this.xb.getPlaybackRate()!==a&&(this.xb.setPlaybackRate(a),b&&!this.W.D&&g.PB("yt-player-playback-rate",a),this.Ua.Rm("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b,c){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return QT(this.Pd).getCurrentTime();var d=2===a&&this.getVideoData().enableServerStitchedDai,e=g.sT(this.getVideoData());a=d||e?g.HT(this):g.HT(this,a);if(!a)return 0;if(e&&this.zb)return b=this.zb,a=a.getCurrentTime(),c?c=O6a(b,c):(c=B6a(b,a),c=a-c/1E3),c;if(b){if(d&&this.xe&&(c=this.xe.Wa/1E3,0!==c))return c;c=N0(this,a);return X0(this,c.getCurrentTime(),c)}d&&this.xe?(c=this.xe,a=a.getCurrentTime(),c=(c=
f6a(c,1E3*a))?a-c.start/1E3:a):c=a.getCurrentTime();return c};
g.k.iA=function(){var a=g.HT(this);if(!a)return 0;a=N0(this,a);return X0(this,a.iA(),a)};
g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c=this.getVideoData(),d=2===a&&c.enableServerStitchedDai,e=g.sT(c);var f=d||e?g.HT(this):g.HT(this,a);if(!f)return 0;if(c.hasProgressBarBoundaries()&&!d&&!e){var h,l=Number(null==(h=c.progressBarStartPosition)?void 0:h.utcTimeMillis),m;c=Number(null==(m=c.progressBarEndPosition)?void 0:m.utcTimeMillis);if(!isNaN(l)&&!isNaN(c))return(c-l)/1E3}if(e&&this.zb)return this.L("html5_ssap_get_current_time_refactor")?(b=this.zb,d=1E3*b.ea.getCurrentTime(),
b=(b=A6a(b,d))?(b.Fi()-b.Xe())/1E3:0):b=C6a(this.zb,f.getCurrentTime()),1===a&&0===b?f.getDuration():b;if(b)return f=M0(this,f),X0(this,f.getDuration(),f);d&&this.xe?(a=this.xe,f=f.getCurrentTime(),f=(f=iY(a,1E3*f))?f.durationMs/1E3:0):f=f.getDuration();return f};
g.k.Ye=function(a){var b=g.HT(this,a);return b?this.Hf(b)?(b=M0(this,b),b.Ye()-b.getCurrentTime()+this.getCurrentTime(a)):b.Ye():0};
g.k.addPlayerResponseForAssociation=function(a){this.zb&&this.zb.addPlayerResponseForAssociation(a)};
g.k.finishSegmentByCpn=function(a,b){return this.zb?this.zb.finishSegmentByCpn(a,b):[]};
g.k.LO=function(){this.template.LO();var a=this.Ua;a.state.element=this.template.element;var b=a.state.element,c;for(c in a.state.B)a.state.B.hasOwnProperty(c)&&(b[c]=a.state.B[c]);(a=zra(this.template.element))&&this.events.T(this.template,a,this.onFullscreenChange);this.events.T(window,"resize",this.Qba)};
g.k.getDebugText=function(a){var b=this.xb.pc(a);if(this.tb&&this.tb!==this.xb){for(var c=this.tb.pc(a),d=g.u(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=mf(document,"movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.tf("video-ads");f?(Ahb(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.tf("videoAdUiSkipContainer"),l=g.tf("ytp-ad-skip-button-container"),m=g.tf("ytp-skip-ad-button"),n=h||l||m;n?(Ahb(n,f),f.ima=h?1:
0,f.bulleit=l?1:0,f.component=m?1:0):f.missing=1;d=JSON.stringify({player:d,videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.mediaElement&&(b["0sz"]=""+(0===+this.mediaElement.getSize().area()),b.op=this.mediaElement.VE("opacity"),c=this.mediaElement.Qt().y+this.mediaElement.getSize().height,b.yof=""+(0>=+c),b.dis=this.mediaElement.VE("display"));a&&((a=(0,g.V_)())&&(b.gpu=a),(a=this.W.playerStyle)&&(b.ps=a),this.W.Wa&&(b.webview=1));b.debug_playbackQuality=this.Ua.getPlaybackQuality(1);b.debug_date=
(new Date).toString();b.origin=window.origin;b.timestamp=Date.now();delete b.uga;delete b.q;return JSON.stringify(b,null,2)};
g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.U().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20240604_00_RC00"},b=this.getPlayerStateObject().Ng;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(O0(this))return 3;var b;if(a&&(null==(b=this.xe)?0:b.Dm(this.getCurrentTime())))return 2;var c;return g.sT(this.getVideoData())&&(null==(c=this.zb)?0:c.Dm())?2:g.HT(this).getPlayerType()};
g.k.GA=function(){return g.sT(this.getVideoData())&&this.zb?this.zb.GA():!1};
g.k.getPlayerStateObject=function(a){return 3===this.getPresentingPlayerType()?QT(this.Pd).De:g.HT(this,a).getPlayerState()};
g.k.getAppState=function(){return this.appState};
g.k.iL=function(a){switch(a.type){case "loadedmetadata":this.SL.start();a=g.u(this.WB);for(var b=a.next();!b.done;b=a.next())b=b.value,rhb(this,b.id,b.efa,b.dfa,void 0,!1);this.WB=[];break;case "loadstart":this.Ob.ov("gv");break;case "progress":case "timeupdate":2<=uK(a.target.Ch())&&this.Ob.ov("l2s");break;case "playing":g.UR&&this.SL.start();if(g.II(this.W))a=!1;else{b=g.ST(this.yb());a="none"===this.mediaElement.VE("display")||0===this.mediaElement.getSize().area();var c=HY(this.template),d=this.tb.getVideoData(),
e=g.cG(this.W);d=US(d);b=!c||b||e||d||this.W.rb;a=a&&!b}a&&(this.tb.ma("hidden",{},!0),this.getVideoData().Sb||(this.getVideoData().Sb=1,this.K_(),this.tb.playVideo()))}};
g.k.onLoadProgress=function(a,b){this.Ua.Cc("onLoadProgress",b)};
g.k.oca=function(){this.Ua.publish("playbackstalledatstart")};
g.k.onVideoProgress=function(a,b){a=N0(this,a);b=X0(this,a.getCurrentTime(),a);this.Ua.Cc("onVideoProgress",b)};
g.k.onAutoplayBlocked=function(){this.Ua.Cc("onAutoplayBlocked")};
g.k.Dba=function(){this.Ua.publish("progresssync")};
g.k.rba=function(){this.Ua.Cc("onPlaybackPauseAtStart")};
g.k.maa=function(a){if(1===this.getPresentingPlayerType()){g.OF(a,1)&&!g.MF(a.state,64)&&this.Md().isLivePlayback&&this.xb.isAtLiveHead()&&1<this.Ua.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.OF(a,2)){if(this.Bb&&this.Bb.endTimeMs>=1E3*(this.getDuration()-1)){hhb(this);return}Vgb(this)}if(g.MF(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.Ng;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ua.Rm("onError",kYa(b.errorCode));this.Ua.Cc("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.VO,cpn:b.cpn});6048E5<(0,g.wC)()-this.W.Sf&&this.Ua.Cc("onReloadRequired")}b={};if(a.state.isPlaying()&&!a.state.isBuffering()&&!aH("pbresume","ad_to_video")&&aH("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);g.ZG(b,"ad_to_video");YG("pbresume",void 0,"ad_to_video");l0a(this.Pd)}this.Ua.publish("applicationplayerstatechange",a)}};
g.k.g0=function(a){3!==this.getPresentingPlayerType()&&this.Ua.publish("presentingplayerstatechange",a)};
g.k.vk=function(a){L0(this,RK(a.state));g.MF(a.state,1024)&&this.Ua.isMutedByMutedAutoplay()&&(V0(this,{muted:!1,volume:this.Mi.volume},!1),W0(this,!1))};
g.k.faa=function(a,b,c){"newdata"===a&&Lgb(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.TF=function(){this.Ua.Cc("onPlaybackAudioChange",this.Ua.getAudioTrack().qc.name)};
g.k.kG=function(a){var b=this.tb.getVideoData();a===b&&this.Ua.Rm("onPlaybackQualityChange",a.B.video.quality)};
g.k.onVideoDataChange=function(a,b,c){this.logger.debug(function(){return"on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId});
this.W.Bc()&&b.ma("vdc",{type:a,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""});b===this.xb&&(this.W.yj=c.oauthToken);if(b===this.xb){this.getVideoData().enableServerStitchedDai&&!this.xe?this.xe=new g.cY(this.Ua,this.W,this.xb):!this.getVideoData().enableServerStitchedDai&&this.xe&&(this.xe.dispose(),this.xe=null);if(this.W.Bc()&&g.sT(c)){var d,e;b.ma("ssap",{vdctype:a,vid:c.videoId||"",cpn:this.getVideoData().clientPlaybackNonce||"",tlcpn:(null==(d=this.wq.j)?void 0:null==(e=d.getVideoData())?
void 0:e.clientPlaybackNonce)||""})}var f,h;!g.sT(this.getVideoData())||"newdata"!==a&&"dataloaded"!==a||this.getVideoData().clientPlaybackNonce===(null==(f=this.wq.j)?void 0:null==(h=f.getVideoData())?void 0:h.clientPlaybackNonce)?!g.sT(this.getVideoData())&&this.zb&&(this.W.Bc()&&b.ma("ssap",{tlmdis:2,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""}),this.zb.dispose(),this.zb=null):(S5a(this.wq),d=bY(this.wq,1,0,1E3*this.getDuration(1),this.getVideoData()),this.wq.enqueue(d,!0),$X(this.wq,0,1E3*
this.getDuration(1),[d]),T5a(this.wq,this.getVideoData().clientPlaybackNonce,[d]),this.zb&&(this.zb.dispose(),this.zb=null,this.W.Bc()&&b.ma("ssap",{tlmdis:1})),this.W.Bc()&&b.ma("ssap",{tlmcreate:1}),this.zb=new v6a(this.Ua,this.wq,this.xb),this.xb.bM(this.zb))}if("newdata"===a)this.logger.debug("new video data, destroy modules"),HV(this.Pd,2),this.Ua.publish("videoplayerreset",b);else{if(!this.mediaElement)return;"dataloaded"===a&&(this.tb===this.xb?(WUa(c.Da,c.NV),$gb(this)):Ygb(this));1===b.getPlayerType()&&
(this.W.Va&&zhb(this),this.getVideoData().isLivePlayback&&!this.W.gq&&this.Dg("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded()&&((mXa(c)||this.getVideoData().Dv)&&this.Ua.publish("legacyadtrackingpingchange",this.getVideoData()),c.hasProgressBarBoundaries()&&lhb(this)));this.Ua.publish("videodatachange",a,c,b.getPlayerType())}this.Ua.Cc("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.VL();(d=c.SG)?this.Nr.qX(d,c.clientPlaybackNonce):r7a(this.Nr)};
g.k.FI=function(){Q0(this,null);this.Ua.Cc("onPlaylistUpdate")};
g.k.Cba=function(a){delete this.FL[a.getId()];this.xb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=(null==(b=a.Ma)?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.Ma)?void 0:null==(l=h.contents)?void 0:null==(m=l.twoColumnWatchNextResults)?void 0:null==(n=m.autoplay)?void 0:null==(p=n.autoplay)?void 0:p.sets);if(q)for(b=g.u(q),c=b.next();!c.done;c=b.next())if(c=c.value,
e=d=void 0,c=c.autoplayVideo||(null==(d=c.autoplayVideoRenderer)?void 0:null==(e=d.autoplayEndpointRenderer)?void 0:e.endpoint),d=g.V(c,g.PS),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.V(a,g.PS))&&this.Ua.jb("onPlayVideo",{sessionData:{autonav:"1",itct:null==a?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})};
g.k.Fq=function(a){var b=this;a!==this.appState&&(this.logger.debug(function(){return"app state change "+b.appState+" -> "+a}),2===a&&1===this.getPresentingPlayerType()&&(L0(this,-1),L0(this,5)),this.appState=a,this.Ua.publish("appstatechange",a))};
g.k.Dg=function(a,b,c,d,e){this.xb.Mf(a,b,c,d,e)};
g.k.Es=function(a,b){this.xb.handleError(new RJ(a,b))};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.HT(this,a);if(!c)return!1;a=M0(this,c);c=N0(this,c);return a!==c?a.isAtLiveHead(X0(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.k.Dr=function(){var a=g.HT(this);return a?M0(this,a).Dr():0};
g.k.seekTo=function(a,b,c,d,e){b=!1!==b;if(d=g.HT(this,d))2===this.appState&&T0(this),this.Hf(d)?Y0(this)?this.xe.seekTo(a,{seekSource:e},b,c):this.Wc.seekTo(a,{seekSource:e},b,c):g.sT(this.getVideoData())&&this.zb?this.zb.seekTo(a,{zH:!b,RT:c,yd:"application",seekSource:e}):d.seekTo(a,{zH:!b,RT:c,yd:"application",seekSource:e})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.uB=function(){this.Ua.Cc("SEEK_COMPLETE")};
g.k.VK=function(){this.Ua.jb("onAbnormalityDetected")};
g.k.dca=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.MF(a.getPlayerState(),512)||T0(this):this.Ua.Cc("SEEK_TO",b)};
g.k.onAirPlayActiveChange=function(){this.Ua.publish("airplayactivechange");this.W.L("html5_external_airplay_events")&&this.Ua.Cc("onAirPlayActiveChange",this.Ua.Xh())};
g.k.onAirPlayAvailabilityChange=function(){this.Ua.publish("airplayavailabilitychange");this.W.L("html5_external_airplay_events")&&this.Ua.Cc("onAirPlayAvailabilityChange",this.Ua.iF())};
g.k.showAirplayPicker=function(){var a;null==(a=this.tb)||a.Yu()};
g.k.nR=function(){this.Ua.publish("beginseeking")};
g.k.sR=function(){this.Ua.publish("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.HT(this,a))?M0(this,a).getVideoData().getStoryboardFormat():null};
g.k.dk=function(a){return(a=g.HT(this,a))?M0(this,a).getVideoData().dk():null};
g.k.Hf=function(a){a=a||this.tb;var b=!1;if(a){a=a.getVideoData();if(Y0(this))a=a===this.xe.ea.getVideoData();else a:if(b=this.Wc,a===b.j.getVideoData()&&b.B.length)a=!0;else{b=g.u(b.B);for(var c=b.next();!c.done;c=b.next())if(a.md===c.value.md){a=!0;break a}a=!1}b=a}return b};
g.k.OD=function(a,b,c,d,e,f,h){this.logger.debug(function(){return"Adding video to timeline id="+a.video_id+"\n        lengthMs="+d+" enterTimeMs="+e});
var l="",m=Y0(this),n;null==(n=g.HT(this))||n.ma("appattl",{sstm:this.xe?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:m});l=m?c6a(this.xe,a,b,c,d,e,f,h):U6a(this.Wc,a,c,d,e,f);this.logger.debug(function(){return"Video added to timeline id="+a.video_id+" timelinePlaybackId="+l});
return l};
g.k.fF=function(a,b,c,d,e,f,h){if(Y0(this)){var l=c6a(this.xe,a,b,c,d,e,f,h);this.logger.debug(function(){return"Remaining video added to timeline id="+a.video_id+" timelinePlaybackId="+l})}return""};
g.k.Ou=function(a){var b;null==(b=this.xe)||b.Ou(a)};
g.k.Dz=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;Y0(this)||c7a(this.Wc,a,b)};
g.k.CH=function(a,b,c){if(Y0(this)){var d=this.xe,e=d.Sb.get(a);e?(void 0===c&&(c=e.Vd),e.durationMs=b,e.Vd=c):d.iq("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.Wc;e=null;for(var f=g.u(d.B),h=f.next();!h.done;h=f.next())if(h=h.value,h.md===a){e=h;break}e?(void 0===c&&(c=e.Vd),b7a(d,e,b,c)):vY(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Hf();a=new g.ES(this.W,a);d&&(a.md=d);mhb(this,a,b,c)};
g.k.queueNextVideo=function(a,b,c,d,e){c=void 0===c?NaN:c;a=this.preloadVideoByPlayerVars(a,void 0===b?1:b,c,void 0===d?"":d,void 0===e?"":e);b=this.Zc();a&&b&&(this.L("html5_check_queue_on_data_loaded")?this.U().supportsGaplessShorts()&&b.getVideoData().Y&&(c=this.FM,d=this.Lk.N,c.C!==a&&(c.tb=b,c.C=a,c.B=1,c.j=a.getVideoData(),c.D=d,c.j.isLoaded()?c.G():c.j.subscribe("dataloaded",c.G,c))):(c=a5a(b,a,this.Lk.N),null!=c?(b.ma("sgap",c),b.getVideoData().Y&&G0(b,!1)):(a=a.getVideoData(),b=this.FM,b.j!==
a&&(b.j=a,b.B=1,a.isLoaded()?b.K():b.j.subscribe("dataloaded",b.K,b)))))};
g.k.hJ=function(a,b,c,d){var e=this;c=void 0===c?0:c;d=void 0===d?0:d;var f=g.HT(this);f&&(M0(this,f).S2=!0);r5a(this.Lk,a,b,c,d).then(function(){e.Ua.Cc("onQueuedVideoLoaded")},function(){})};
g.k.po=function(){return this.Lk.po()};
g.k.pF=function(a){return this.Lk.pF(a)};
g.k.clearQueue=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.logger.debug("Clearing queue");this.Lk.clearQueue(a,b)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;if(2===b&&this.Md().enableServerStitchedDai&&this.xb&&!y_(this.xb)){var f;null==(f=this.xb)||f.ma("lvonss",{vid:(null==a?void 0:a.videoId)||"",ptype:b});return!1}var h=!1;f=new g.ES(this.W,a);g.TR(this.W)&&!f.xl&&pV(this.Ob);var l,m=this.Ob,n=null!=(l=f.Sa)?l:"";m.timerName=n;this.Ob.Li("pl_i");this.L("web_player_early_cpn")&&f.clientPlaybackNonce&&this.Ob.infoGel({clientPlaybackNonce:f.clientPlaybackNonce});if(this.U().supportsGaplessShorts()&&
!this.L("html5_shorts_gapless_always_fallback")){l=u5a(this.Lk,f,b);if(null==l){L0(this,-1);a=this.Lk;a.app.U().L("html5_gapless_new_slr")?fhb(a.app,"gaplessshortslooprange"):a.app.setLoopRange(null);a.app.getVideoData().wD=!0;var p,q;null==(p=a.j)||null==(q=p.ya)||q.resume();var r;null==(r=a.j)||tY(r.wc());c={yd:"gapless_to_next_video",seekSource:60};var t;null==(t=a.app.Zc())||t.seekTo(t5a(a),c);if(!a.app.getPlayerStateObject(b).isPlaying()){var v;null==(v=g.HT(a.app))||v.playVideo(!0)}a.K();return!0}t=
this.L("html5_shorts_gapless_preload_fallback");v=this.Lk.j;t&&v&&!v.Na()&&(p=v.getVideoData(),p=this.W.L("html5_autonav_autoplay_in_preload_key")?$0(this,b,p):a1(this,b,p.videoId,p.md),this.Zx.set(p,v,3600));this.Lk.clearQueue(t);var w;null==(w=g.HT(this))||w.ma("sgap",{f:l})}if(e){for(;f.Km.length&&f.Km[0].isExpired();)f.Km.shift();h=f.Km.length-1;h=0<h&&e.B(f.Km[h])&&e.B(f.Km[h-1]);f.Km.push(e)}c||(a&&x_a(a)?(PR(this.W)&&!this.Ci&&(a.fetch=0),Q0(this,a)):this.playlist&&Q0(this,null),a&&(this.Ci=
oB(!1,a.external_list)),PR(this.W)&&!this.Ci&&R0(this));this.Ua.publish("loadvideo");b=this.Cu(f,b,d);h&&this.Dg("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+f.Km.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;d=void 0===d?"":d;e=void 0===e?"":e;var f="";if(this.W.L("html5_autonav_autoplay_in_preload_key"))f=ohb(this,b,a,e);else{var h=sB(a);f=a1(this,b,h,e)}if(this.Zx.get(f))return this.logger.debug(function(){return"already preloaded "+f}),null;
a=new g.ES(this.W,a);e&&(a.md=e);return nhb(this,a,b,c,d)};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.Pd;a=a.J.U().showMiniplayerUiWhenMinimized?a.Fe.get("miniplayer"):void 0;a&&(this.isMinimized()?a.load():a.unload());this.Ua.publish("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.Pd;a=a.J.U().showInlinePreviewUi?a.Fe.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Ua.jb("onInlinePreviewModeChange"))};
g.k.fC=function(a){var b=this.W.L("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.W.Kl&&this.W.L("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.eP&&b?this.eP.start():this.WW():this.visibility.fC(a)};
g.k.setSqueezeback=function(a){this.visibility.setSqueezeback(a)};
g.k.WW=function(){var a,b=null==(a=this.mediaElement)?void 0:a.Ib();b&&zB(b).catch(function(c){return g.BE(c)})};
g.k.aca=function(){this.mediaElement.Ib();"picture-in-picture"===this.mediaElement.Ib().webkitPresentationMode?this.fC(!0):this.fC(!1)};
g.k.togglePictureInPicture=function(){var a=g.HT(this);a&&a.togglePictureInPicture()};
g.k.Cu=function(a,b,c){b=void 0===b?1:b;this.logger.debug(function(){return"start load video, id "+a.videoId+", type "+b});
aH("_start",this.Ob.timerName)||g.BA(EG)(void 0,this.Ob.timerName);var d=!1,e=chb(this,b,a,!1);e?(d=!0,a.dispose()):(e=Xgb(this,b,a,c),(this.L("html5_onesie")||this.L("html5_load_before_stop"))&&y0(e)&&g.MX(e),this.SL.stop(),1===b&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),OX(this,e));e===this.xb&&(this.W.yj=a.oauthToken);if(!y0(e))return!1;if(e===this.xb){this.Fq(1);c=T0(this);if(d&&this.L("html5_player_preload_ad_fix")&&1===e.getPlayerType()&&e.uq.j)this.onVideoDataChange("dataloaded",
e,e.getVideoData());return c}Yfb(e);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(this.Md().enableServerStitchedDai&&this.xb&&!y_(this.xb)&&a&&0<Object.keys(a).length){var d;null==(d=this.xb)||d.ma("qvonss",{vid:(null==a?void 0:a.videoId)||"",ptype:b})}else if(a&&x_a(a))if(this.mx=!0,Q0(this,a),(a=g.qV(this.playlist))&&a.ue())c1(this,a,b);else this.playlist.onReady(function(){S0(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.FI();d=new g.ES(this.W,a);var e=g.BR(this.W)&&!this.W.qa&&1===b&&!d.isAd()&&!d.zd;this.Ua.publish("cuevideo");e?(this.Zc().getVideoData().loading=!0,E_a(d,a?a:{}).then(function(f){c1(c,f,b)}),d.dispose()):c1(this,d,b)}};
g.k.Zo=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if(DR(this.W)||g.GI(this.W))return b=b||{},b.lact=QD(),b.vis=this.Ua.getVisibilityState(),this.Ua.jb("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;v_a(this.Ob);this.Ob.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.mx=!0;phb(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.mx=!1;phb(this,a,b,c,d)};
g.k.BE=function(){if(this.Ua.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;PR(this.W)&&!this.Ci&&R0(this);return!(!this.playlist||!this.playlist.il())};
g.k.Lt=ea(14);
g.k.nextVideo=function(a,b){var c=g.QS(this.xb.getVideoData());g.VT(this.Ua)&&c?this.Zo(c.videoId,b?c.oE:c.sessionData,c.playlistId,b,void 0,c.LW||void 0):this.Ci?this.Ua.Cc("onPlaylistNext"):3===this.getPresentingPlayerType()?QT(this.Pd).nextVideo():this.playlist&&(PR(this.W)&&!this.Ua.isFullscreen()?khb(this,"yt.www.watch.lists.next"):(this.playlist.il(a)&&A_a(this.playlist,y_a(this.playlist)),this.playlist.loaded?(a=b&&this.W.L("html5_player_autonav_logging"),b&&this.Ua.publish("playlistautonextvideo"),this.Cu(g.qV(this.playlist,
void 0,b,a),1)):this.mx=!1))};
g.k.previousVideo=function(a){this.Ci?this.Ua.Cc("onPlaylistPrevious"):3===this.getPresentingPlayerType()?QT(this.Pd).CL():this.playlist&&(PR(this.W)&&!this.Ua.isFullscreen()?khb(this,"yt.www.watch.lists.prev"):(this.playlist.Rp(a)&&A_a(this.playlist,z_a(this.playlist)),this.playlist.loaded?this.Cu(g.qV(this.playlist),1):this.mx=!1))};
g.k.playVideoAt=function(a){this.Ci?this.Ua.Cc("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Cu(g.qV(this.playlist,a),1):this.mx=!1,A_a(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.PE=ea(22);g.k.daa=function(a){this.Ua.Cc("onCueRangeEnter",a.getId())};
g.k.eaa=function(a){this.Ua.Cc("onCueRangeExit",a.getId())};
g.k.vz=function(a,b,c){var d=g.HT(this,b);if(d){var e=this.Md();if(g.sT(e)){if(this.zb)if(1===b)for(var f=pY(this.zb,e.clientPlaybackNonce),h=g.u(a),l=h.next();!l.done;l=h.next())l=l.value,l.start+=f,l.end+=f,l.wl=f,l.C=e.clientPlaybackNonce;else if(this.L("html5_ssap_enable_cpn_triggered_media_end")&&2===b)for(this.getPresentingPlayerType(),e=g.u(a),f=e.next();!f.done;f=e.next())f.value.C=this.zb.Mp();e=g.u(a);for(f=e.next();!f.done;f=e.next())h=void 0,f.value.playerType=null!=(h=b)?h:1}d.vz(a,c);
b&&this.getPresentingPlayerType()!==b||K0(this,"cuerangesadded",a)}};
g.k.GG=function(a,b){var c=g.HT(this,b);c&&(c.GG(a),b&&this.getPresentingPlayerType()!==b||K0(this,"cuerangesremoved",a))};
g.k.Ly=function(a){var b=this.Zc()||this.xb,c=b.Ah;if(c){var d=this.getPresentingPlayerType();if(this.W.Bc()){var e=c.WJ("ad");b.ma("ssap",{hac:e?"1":"0",cpn:a,pt:d})}return this.L("html5_ssap_enable_cpn_triggered_media_end")?c.Ly(d,a):c.Ly(d)}return 0};
g.k.jaa=function(){function a(){var d=b.screenLayer||(b.isMinimized()?3:0),e=g.xE(d);if(e&&"UNDEFINED_CSN"!==e){var f=b.W.L("web_player_attach_player_response_ve"),h=b.W.experiments.fb("web_playback_associated_ve");if(b.W.L("il_via_jspb")){d=new Xz;var l=b.getVideoData().clientPlaybackNonce;l=Q(d,1,l);Q(l,3,e);b.getVideoData().Ca&&(f||h)&&(f=g.vE(b.getVideoData().Ca),g.OE(e,f),h&&(e=f.getAsJspb(),Ik(d,zz,2,e)));if(b.getVideoData().queueInfo){e=b.getVideoData().queueInfo;h=new Wz;if(null==e?0:e.enqueueingVe)(null==
e?0:e.enqueueingVe.trackingParams)?(f=g.vE(e.enqueueingVe.trackingParams),f=f.getAsJspb(),Ik(h,zz,1,f)):g.BE(new g.XB("Cannot map enqueueingVe from a client VE "));(null==e?0:e.enqueueingCsn)&&Q(h,2,e.enqueueingCsn);(null==e?0:e.clientEnqueueingTimeMs)&&Xk(h,3,Number(e.clientEnqueueingTimeMs));Ik(d,Wz,4,h)}e={};b.L("web_playback_associated_log_ctt")&&b.getVideoData().G&&(e.cttAuthInfo={token:b.getVideoData().G,videoId:b.getVideoData().videoId});Iwa(d,e)}else d={cpn:b.getVideoData().clientPlaybackNonce,
csn:e},b.getVideoData().Ca&&(f||h)&&(f=g.vE(b.getVideoData().Ca),g.OE(e,f),h&&(d.playbackVe=f.getAsJson())),b.getVideoData().queueInfo&&(d.queueInfo=b.getVideoData().queueInfo),e={},b.L("web_playback_associated_log_ctt")&&b.getVideoData().G&&(e.cttAuthInfo={token:b.getVideoData().G,videoId:b.getVideoData().videoId}),g.iC("playbackAssociated",d,e)}else g.BE(new g.XB("CSN Missing or undefined during playback association"))}
var b=this;this.getPresentingPlayerType();t_a(this.Ob,this.tb.getVideoData(),thb(this));P0(this)&&this.W.D&&"embedded"===mT(this.Md())&&this.QZ&&.01>Math.random()&&g.iC("autoplayTriggered",{intentional:this.kZ});this.QZ=!1;l0a(this.Pd);this.L("web_player_defer_ad")&&Zgb(this);this.Ua.Cc("onPlaybackStartExternal");(this.W.L("mweb_client_log_screen_associated"),MR(this.W))||a();var c={};this.getVideoData().G&&(c.cttAuthInfo={token:this.getVideoData().G,videoId:this.getVideoData().videoId});c.sampleRate=
20;$G("player_att",c);if(this.getVideoData().botguardData||this.L("fetch_att_independently"))g.RR(this.W)||"MWEB"===g.fR(this.W)?g.bC(g.dC(),function(){U0(b)}):U0(this);
this.VL();ghb(this)};
g.k.ZF=function(){this.Ua.publish("internalAbandon");Z0(this)};
g.k.onApiChange=function(){this.W.N&&this.tb?this.Ua.Rm("onApiChange",this.tb.getPlayerType()):this.Ua.Rm("onApiChange")};
g.k.cba=function(){var a=this.mediaElement;a={volume:g.ze(Math.floor(100*a.getVolume()),0,100),muted:a.BJ()};a.muted||W0(this,!1);this.Mi=g.jd(a);this.Ua.Cc("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;isNaN(this.eR)&&(this.eR=this.getVideoData().startSeconds);a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0,start:this.eR}),this.Ua.Cc("onMutedAutoplayStarts"))};
g.k.onFullscreenChange=function(){var a=vhb(this);this.Vm(a?1:0);xhb(this,!!a)};
g.k.Vm=function(a){var b=!!a,c=!!this.fA()!==b;this.visibility.Vm(a);this.template.Vm(b);this.L("html5_media_fullscreen")&&!b&&this.mediaElement&&vhb(this)===this.mediaElement.Ib()&&this.mediaElement.qE();this.template.resize();c&&this.Ob.tick("fsc");c&&(this.Ua.publish("fullscreentoggled",b),a=this.Md(),b={fullscreen:b,videoId:a.CN||a.videoId,time:this.getCurrentTime()},this.Ua.getPlaylistId()&&(b.listId=this.Ua.getPlaylistId()),this.Ua.Cc("onFullscreenChange",b))};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.fA=function(){return this.visibility.fA()};
g.k.Qba=function(){this.tb&&(0!==this.fA()&&1!==this.fA()||this.Vm(vhb(this)?1:0),this.W.Kl&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.qE())};
g.k.Uaa=function(a){3!==this.getPresentingPlayerType()&&this.Ua.publish("liveviewshift",a)};
g.k.playVideo=function(a){this.logger.debug(function(){return"play video, player type "+a});
var b=g.HT(this,a);b&&(2===this.appState?(g.TR(this.W)&&pV(this.Ob),T0(this)):g.MF(b.getPlayerState(),2)?(b=36,this.getVideoData().fk()&&(b=37),this.seekTo(0,void 0,void 0,void 0,b)):b.playVideo())};
g.k.pauseVideo=function(a,b){(a=g.HT(this,a))&&a.pauseVideo(b)};
g.k.stopVideo=function(a){a=void 0===a?!1:a;this.logger.debug(function(){return"stop video"});
var b=this.xb.getVideoData(),c=new g.ES(this.W,{video_id:b.CN||b.videoId,oauth_token:b.oauthToken});c.Z=g.jd(b.Z);var d;!a||null!=(d=this.webPlayerContextConfig)&&d.disableStaleness||(c.gW=!0);this.cancelPlayback(6);c1(this,c,1)};
g.k.cancelPlayback=function(a,b){var c=this;this.logger.debug(function(){return"start cancel playback, type "+b});
var d=g.HT(this,b);d?2===b&&1===d.getPlayerType()&&(CXa(this.Md())||g.sT(this.getVideoData()))?d.ma("canclpb",{r:"no_adpb_ssdai"}):(this.W.Bc()&&d.ma("canclpb",{r:a}),1===this.appState||2===this.appState?this.logger.debug(function(){return"cancel playback end, app not started, state "+c.appState}):(d===this.tb&&(this.logger.debug("cancel playback, destroy modules"),HV(this.Pd,a)),1===b&&(d.stopVideo(),Z0(this)),d.No(void 0,6!==a),K0(this,"cuerangesremoved",d.Zk()),d.Ah.reset(),this.Lk&&d.isGapless()&&
(d.Jj(!0),d.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.HT(this,b))&&eVa(this.W,a)?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.Gi=function(a){var b=g.HT(this);return b&&eVa(this.W,a)?b.Gi(a):null};
g.k.updatePlaylist=function(){PR(this.W)?R0(this):g.BR(this.W)&&ahb(this);this.Ua.Cc("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.N1=a;this.L("web_log_theater_mode_visibility")?this.jC(b):this.BQ=b;this.Ua.publish("sizestylechange",a,b);this.template.resize()};
g.k.jC=function(a){this.visibility.jC(a)};
g.k.hk=function(){return this.L("web_log_theater_mode_visibility")?this.visibility.hk():this.BQ};
g.k.isMinimized=function(){return this.visibility.isMinimized()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.du=function(){return this.visibility.du()};
g.k.EA=function(){return this.visibility.EA()};
g.k.LA=function(){return this.visibility.LA()};
g.k.AQ=function(){return this.N1};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return QT(this.Pd).getAdState();if(!this.Hf()){var a=IV(this.yb());if(a)return a.getAdState()}return-1};
g.k.Pba=function(a){var b=this.template.getVideoContentRect();Gs(this.DZ,b)||(this.DZ=b,this.tb&&D0(this.tb),this.xb&&this.xb!==this.tb&&D0(this.xb),1===this.fA()&&this.nG&&xhb(this,!0));this.IQ&&g.Le(this.IQ,a)||(this.Ua.publish("appresize",a),this.IQ=a)};
g.k.Yh=function(){return this.Ua.Yh()};
g.k.jca=function(){2===this.getPresentingPlayerType()&&this.Wc.isManifestless()?a7a(this.Wc):(this.xe&&(h6a(this.xe),Z0(this)),Ugb(this,"signature"))};
g.k.K_=function(){this.Jj();J0(this)};
g.k.kba=function(a){"manifest.net.badstatus"===a.errorCode&&a.details.rc===(this.W.experiments.fb("html5_use_network_error_code_enums")?401:"401")&&this.Ua.jb("onPlayerRequestAuthFailed")};
g.k.WF=function(){this.Ua.Cc("CONNECTION_ISSUE")};
g.k.YF=function(a){this.Ua.publish("heartbeatparams",a)};
g.k.PL=function(a){this.Ua.jb("onAutonavChangeRequest",1!==a)};
g.k.Je=function(){return this.mediaElement};
g.k.setBlackout=function(a){this.W.rb!==a&&(this.W.rb=a,this.tb&&(this.tb.Wo(),this.W.Va&&zhb(this),this.tb.Mo(a)))};
g.k.mba=function(){var a=g.HT(this);if(a){var b=!this.Ua.mF();(a.IY=b)||a.xx.stop();a.videoData.j&&(b?a.videoData.j.resume():KTa(a.videoData.j));a.ya&&(b?a.ya.resume():F0(a,!0));g.MF(a.playerState,2)||b?g.MF(a.playerState,512)&&b&&a.Gc(PK(a.playerState,512)):a.Gc(OK(a.playerState,512));a=a.wc();a.qoe&&(a=a.qoe,g.R_(a,g.KM(a.provider),"stream",[b?"A":"I"]))}};
g.k.onLoadedMetadata=function(){this.Ua.Cc("onLoadedMetadata")};
g.k.onDrmOutputRestricted=function(){this.Ua.Cc("onDrmOutputRestricted")};
g.k.YA=function(){this.kZ=!0};
g.k.va=function(){this.Pd.dispose();this.q8.dispose();this.Wc.dispose();this.xe&&this.xe.dispose();this.wq.removeAll();this.wq.dispose();this.zb&&this.zb.dispose();this.xb.dispose();this.Jj();g.wb(g.ad(this.Rs),this.playlist);g.I.prototype.va.call(this)};
g.k.L=function(a){return this.W.L(a)};
g.k.setScreenLayer=function(a){this.screenLayer=a};
g.k.getInternalApi=function(){return this.Ua.getInternalApi()};
g.k.createSubtitlesModuleIfNeeded=function(){return this.Pd.createSubtitlesModuleIfNeeded()};
g.k.isOrchestrationLeader=function(){var a=KV(this.Pd);return a?a.isOrchestrationLeader():!1};
g.k.getVideoUrl=function(a,b,c,d,e){if(this.Bb&&this.Bb.postId)return a=this.W.getVideoUrl(a),a=wo(a,"v"),a.replace("/watch","/clip/"+this.Bb.postId);var f=this.Ua.bd()||"shortspage"===this.W.La,h=g.wT(this.getVideoData());return this.W.getVideoUrl(a,b,c,d,e,f,h)};
g.k.fu=function(){return this.Lk.fu()};
g.k.Nm=function(a){this.Ua.publish("spsumpstatuschange",a)};
g.k.QR=function(a,b){this.Ua.publish("spsumpreject",a,b)};
g.k.QF=function(){try{for(var a=g.u(Object.values(this.Rs)),b=a.next();!b.done;b=a.next()){var c=b.value;c.Na()||c.QF()}if(this.L("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var d=g.u(f7a(this.Zx)),e=d.next();!e.done;e=d.next()){var f=e.value;f.Na()||f.QF()}this.xb.QF()}catch(h){g.BE(h)}};
g.k.tT=function(){return this.xe?this.xe.tT():!1};
var H3={};var Nhb=/[&\?]action_proxy=1/,Mhb=/[&\?]token=([\w-]*)/,Ohb=/[&\?]video_id=([\w-]*)/,Phb=/[&\?]index=([\d-]*)/,Qhb=/[&\?]m_pos_ms=([\d-]*)/,Shb=/[&\?]vvt=([\w-]*)/,Ehb="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(" "),Rhb="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(" "),Hhb={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"},Ihb={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Khb={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};f1.prototype.VA=function(a){this.player.Ei().tick(a)};
f1.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return this.B(a,b);var d=1===this.j;d&&this.VA("a_bid_s");var e=Chb();if(null!==e)return d&&this.VA("a_bid_f"),this.B(a,b,e);e=Dhb();d&&lg(e,function(){c.VA("a_bid_f")});
return e.then(function(f){return c.B(a,b,f)})};
f1.prototype.B=function(a,b,c){var d=this,e=void 0===b?{}:b;b=e.zw;var f=e.Wd;var h=e.cueProcessedMs;c=void 0===c?"":c;var l=this.player.getVideoData(1);e=this.player.U().zj;var m={AD_BLOCK:this.j++,AD_BREAK_LENGTH:b?b.Bh:0,AUTONAV_STATE:e1(this.player.U()),CA_TYPE:"image",CPN:l.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*this.player.Dr(),LACT:QD(),LIVE_INDEX:b?this.C++:1,LIVE_TARGETING_CONTEXT:b&&b.context?b.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,
VIS:this.player.getVisibilityState(),P_H:this.player.ob().Vh().height,P_W:this.player.ob().Vh().width,YT_REMOTE:e?e.join(","):""},n=sqa(rqa);Object.keys(n).forEach(function(q){null!=n[q]&&(m[q.toUpperCase()]=n[q].toString())});
""!==c&&(m.BISCOTTI_ID=c);c={};LA(a)&&(c.sts="19879",(b=this.player.U().forcedExperiments)&&(c.forced_experiments=b));var p=IA(g.cv(a,m),c);return 2!==p.split("?").length?ig(Error("Invalid AdBreakInfo URL")):g.$R(this.player.U(),null==l?void 0:l.oauthToken).then(function(q){if(q&&KA()){var r=WT();XT(r,q)}q=d.player.wm(r);r=Thb(d,p,m,l.isMdxPlayback,h);return g.eH(q,r,"/youtubei/v1/player/ad_break").then(function(t){return t})})};
f1.prototype.reset=function(){this.C=this.j=1};g.y(Uhb,f1);
Uhb.prototype.B=function(a,b,c){b=void 0===b?{}:b;var d=b.zw;var e=b.Wd;var f=b.cueProcessedMs;c=void 0===c?"":c;b=this.j;this.j++;var h=this.player.U().L("h5_disable_macro_substitution_in_get_ad_break")?a:Vhb(this,a,{zw:d,Wd:e},c,b);if(2!==h.split("?").length)return.1>Math.random()&&g.BE(Error("Invalid AdBreakInfo URL")),ig(Error("Invalid AdBreakInfo URL"));var l=this.player.getVideoData(1).isMdxPlayback,m=c;c=Mhb.exec(h);c=null!=c&&2<=c.length?c[1]:"";a=Nhb.test(h);e=Ohb.exec(h);e=null!=e&&2<=e.length?
e[1]:"";var n=Phb.exec(h);n=null!=n&&2<=n.length&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=Qhb.exec(h);p=null!=p&&2<=p.length?p[1]:"0";var q=LR(this.player.U().Ha),r=g.jG(this.player.getVideoData(1).Ca,!0);Ghb(this,r,h,""===m?"":m,this.player.U());m={splay:!1,lactMilliseconds:String(QD()),playerHeightPixels:Math.trunc(this.player.ob().Vh().height),playerWidthPixels:Math.trunc(this.player.ob().Vh().width),vis:Math.trunc(this.player.getVisibilityState()),signatureTimestamp:19879,autonavState:e1(this.player.U())};
if(l){l={};var t=this.player.U().zj;Jhb(l,t?t.join(","):"")&&(m.mdxContext=l)}if(l=Rhb.includes(q)?void 0:g.eB("PREF")){t=l.split(RegExp("[:&]"));for(var v=0,w=t.length;v<w;v++){var A=t[v].split("=");if(("SML"===A[0].toUpperCase()||"GSML"===A[0].toUpperCase())&&1<A.length&&"TRUE"===A[1].toUpperCase()){r.user.lockedSafetyMode=!0;break}}m.autoCaptionsDefaultOn=Lhb(l)}h=Shb.exec(h);(h=null!=h&&2<=h.length?h[1]:"")&&e&&(r.user.credentialTransferTokens=[{token:h,scope:"VIDEO"}]);h={contentPlaybackContext:m};
m=IXa(this.player.getVideoData(1));l=this.player.getVideoData(1).clientPlaybackNonce;f=void 0!==f?Math.round(f).toString():void 0;t=(null==d?0:d.context)?d.context:void 0;d=(d=Math.trunc(1E3*(d?d.Bh:0)))?String(d):void 0;v=1E3*this.player.Dr();v=Number.isNaN(v)?0:Math.trunc(v);b={adBlock:b,params:c,breakIndex:n,breakPositionMs:p,clientPlaybackNonce:l,topLevelDomain:q,isProxyAdTagRequest:a,context:r,overridePlaybackContext:h,cueProcessedMs:f,videoId:e?e:void 0,liveTargetingParams:t,breakLengthMs:d,
driftFromHeadMs:v?String(v):void 0,currentMediaTimeMs:String(Math.round(1E3*this.player.getCurrentTime(1))),getAdBreakContext:m?m:void 0};return Whb(this,b)};var Vpb={d6a:"replaceUrlMacros",j0a:"onAboutThisAdPopupClosed",kFa:"executeCommand"};Xhb.prototype.Cr=function(){return"adPingingEndpoint"};
Xhb.prototype.Tt=function(a,b,c){Aib(this.Oa.get(),a,b,c)};Yhb.prototype.Cr=function(){return"changeEngagementPanelVisibilityAction"};
Yhb.prototype.Tt=function(a){this.J.jb("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};Zhb.prototype.Cr=function(){return"loggingUrls"};
Zhb.prototype.Tt=function(a,b,c){a=g.u(a);for(var d=a.next();!d.done;d=a.next())d=d.value,Aib(this.Oa.get(),d.baseUrl,b,c,d.attributionSrcMode)};g.y(aib,g.I);g.y(h1,g.I);g.k=h1.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.rk=function(a,b,c,d,e,f,h,l){if(""===a)KF("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.J.U().L("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.Ea.get().rk(a,b,c,d,e,f,h,l);this.Ra.get().rk(a,b,c,d,e,f,h,l);var m;null==(m=this.Bf)||m.get().rk(a,b,c,d,e,f,h,l);this.B.rk(a,b,c,d,e,f,h,l);m=g.u(this.listeners);for(var n=m.next();!n.done;n=m.next())n.value.rk(a,b,c,d,e,f,h,l)}};
g.k.ZF=function(){this.j&&this.Co(this.j)};
g.k.Co=function(a){this.j=void 0;for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Co(a)};i1.prototype.qI=function(a,b,c,d,e){bib(this);this.G=!b&&0===c;var f=this.J.getVideoData(1),h=this.J.getVideoData(2);f&&(this.contentCpn=f.clientPlaybackNonce,this.videoId=f.videoId,this.j=f.G);h&&(this.adCpn=h.clientPlaybackNonce,this.adVideoId=h.videoId,this.adFormat=h.adFormat);this.C=a;0>=d?(bib(this),this.G=!b&&0===c):(this.actionType=this.G?b?"unknown_type":"video_to_ad":b?"ad_to_video":"ad_to_ad",this.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD","unknown_type"!==this.actionType&&
(this.D=!0,aH("_start",this.actionType)&&dib(this)))};
i1.prototype.reset=function(){return new i1(this.J)};g.y(k1,g.I);k1.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)?KF("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new fib(a,b,c,d,f),this.j.set(a.id,{Wd:a,listener:e,Vo:h}),this.J.hf([a],h))};
k1.prototype.removeCueRange=function(a){var b=this.j.get(a);b?(this.J.Oo([b.Wd],b.Vo),this.j.delete(b.Wd.id)):KF("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
k1.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)};
k1.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)};
g.y(fib,g.cJ);l1.prototype.yG=function(a){this.J.yG(a)};
l1.prototype.Ru=function(a){var b=g.Ia.apply(1,arguments);"onAdStart"===a||"onAdEnd"===a?this.J.Rm.apply(this.J,[a].concat(g.qa(b))):this.J.jb.apply(this.J,[a].concat(g.qa(b)))};m1.prototype.qf=function(a){return a&&n1(this)};
m1.prototype.lT=function(){return this.J.U().experiments.fb("h5_enable_generic_error_logging_event")};
m1.prototype.oT=function(){return this.J.U().experiments.fb("enable_ips_gating")};var nib=null;g.y(mib,g.UE);mib.prototype.rP=function(a){return this.j.hasOwnProperty(a)?this.j[a].rP():{}};
g.Ua("ytads.bulleit.getVideoMetadata",function(a){return q1().rP(a)});
g.Ua("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=q1();c=lib(c);null!==c&&d.publish(c,{queryId:a,viewabilityString:b})});g.k=r1.prototype;
g.k.Oh=function(a,b){if(!this.j.has(a))return{};if("seek"===b){b=this.J.U().L("html5_dai_enable_active_view_creating_completed_adblock");b=void 0===b?!1:b;var c=cs(bv).NJ(a,{});c?au(c):b&&(a=cs(bv).FG(null,vs(),!1,a),a.nk=3,Kja([a]));return{}}b=pib(b);if(null===b)return{};var d=this.J.Zc(),e=d&&Rfb(d);if(!e)return{};o1(this.Aa.get())?(d=this.J.getPresentingPlayerType(!0),d=null==(c=this.J.getVideoData(d))?void 0:c.isAd()):d=this.J.U().L("enable_server_stitched_dai")?2===this.J.getPresentingPlayerType(!0):2===
d.getPlayerType();if(!d)return{};c={opt_adElement:e,opt_fullscreen:this.Ea.get().isFullscreen()};return Kka(b,a,c)};
g.k.Jx=function(a){var b;null==(b=this.j.get(a.queryId))||b.Jx()};
g.k.Ix=function(a){var b;null==(b=this.j.get(a.queryId))||b.Ix()};
g.k.Kx=function(a){var b;null==(b=this.j.get(a.queryId))||b.Kx()};
g.k.Gx=function(a){var b;null==(b=this.j.get(a.queryId))||b.Gx()};
g.k.Hx=function(a){var b;null==(b=this.j.get(a.queryId))||b.Hx()};vib.prototype.send=function(a,b,c,d){try{wib(this,a,b,c,void 0===d?!1:d)}catch(e){}};g.y(xib,vib);yib.prototype.send=function(a,b,c,d){var e=!1;try{var f=new g.lq(a),h;if(h=!this.Aa.get().J.U().experiments.fb("replace_client_url_parsing_with_server_signal"))h="2"===f.C.get("ase");if(h||"ATTRIBUTION_SRC_MODE_LABEL_CHROME"===d||"ATTRIBUTION_SRC_MODE_XHR_OPTION"===d)e=!0,a=Iua(a);d=e;var l=a.match(un);if("https"===l[1])var m=a;else l[1]="https",m=sn("https",l[2],l[3],l[4],l[5],l[6],l[7]);var n=Oka(m);l=[];var p=pqa(m),q=(null===p?!1:"google"===p[1]?!0:"google"===p[2]?"au"===p[0]&&"com"===p[1]?!0:
"uk"===p[0]&&"co"===p[1]?!0:!1:!1)&&this.Aa.get().J.U().experiments.fb("add_auth_headers_to_remarketing_google_dot_com_ping");if(LA(m)||q)l.push({headerType:"USER_AUTH"}),l.push({headerType:"PLUS_PAGE_ID"}),l.push({headerType:"VISITOR_ID"}),l.push({headerType:"EOM_VISITOR_ID"}),l.push({headerType:"AUTH_USER"}),l.push({headerType:"DATASYNC_ID"});!this.Aa.get().J.U().experiments.fb("clean_up_manual_attribution_header")&&d&&l.push({headerType:"ATTRIBUTION_REPORTING_ELIGIBLE"});this.j.send({baseUrl:m,
scrubReferrer:n,headers:l},b,c,d)}catch(r){}};w1.prototype.Gi=function(){var a=this.J.Zc();return a&&(a=a.Gi(1))?a:null};g.y(x1,g.I);g.k=x1.prototype;g.k.fg=function(){return this.J.getVideoData(1).clientPlaybackNonce};
g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.rk=function(){this.MN.clear();this.LQ=null;this.Js.get().clear()};
g.k.Co=function(){};
g.k.Xd=function(a){var b=this.J.getVideoData(a);return b?this.rI(b,a||this.J.getPresentingPlayerType(!0)):null};
g.k.Bca=function(a,b,c,d,e){"nPpU29QrbiU"===b.videoId&&KJ(this,"ads_ssm_vdc_s",{pt:c,dvt:a});JM(this.Aa.get())&&"dataloaded"!==a||Hib(this,b,c);if(n1(this.Aa.get())&&"newdata"===a&&void 0!==e){a=this.fg();var f=b.clientPlaybackNonce,h={};NJ(this,"rte",(h.ec=f,h.xc=null==d?void 0:d.clientPlaybackNonce,h.tr=e,h.pt=c,h.ia=f!==a,h.ctp=MJ(f),h));b=b.clientPlaybackNonce;d=null==d?void 0:d.clientPlaybackNonce;e=Iib(e);if(1!==e)if(void 0!==d)for(c=g.u(this.listeners),a=c.next();!a.done;a=c.next())a.value.Mx(d,
b,e);else KF("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:b,transitionReason:String(e)});e=g.u(this.listeners);for(d=e.next();!d.done;d=e.next())d.value.Lx(b)}};
g.k.eca=function(a,b){void 0!==a&&(this.LQ=a,void 0===b?KF("Expected ad video start time on SS video changed"):this.MN.set(a,b));var c=this.J.getPresentingPlayerType(!0),d=this.J.getVideoData(c);this.J.getVideoData(1).ma("ads_ssvc",{pt:c,cpn:null==d?void 0:d.clientPlaybackNonce,crtt:this.J.getCurrentTime(1,!1),atlh:this.J.isAtLiveHead(),adstt:b});d?Hib(this,d,c):KF("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.J.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.rI=function(a,b){var c=a.author,d=a.clientPlaybackNonce,e=a.isListed,f=a.md,h=a.title,l=a.cj,m=a.Ij,n=a.isMdxPlayback,p=a.fn,q=a.mdxEnvironment,r=a.isAutonav,t=a.Eq,v=a.xl,w=a.Ap,A=a.videoId||"",C=a.profilePicture||"",F=a.Il||"",H=a.fk()||!1,M=a.jo()||!1;a=a.ww||void 0;f=this.Js.get().j.get(f)||{layoutId:null,slotId:null};var L=this.J.getVideoData(1),R=L.dc();L=L.getPlayerResponse();b=1E3*this.J.getDuration(b);var ba=1E3*this.J.getDuration(1),ma,na,ia=(null==L?void 0:null==(ma=L.playerConfig)?
void 0:null==(na=ma.daiConfig)?void 0:na.enableDai)||!1,sa,aa;ma=(null==L?void 0:null==(sa=L.playerConfig)?void 0:null==(aa=sa.daiConfig)?void 0:aa.enablePreroll)||!1;return Object.assign({},f,{videoId:A,author:c,clientPlaybackNonce:d,Rca:b,Fp:ba,daiEnabled:ia,uX:ma,isListed:e,dc:R,profilePicture:C,title:h,Il:F,cj:l,Ij:m,ww:a,isMdxPlayback:n,fn:p,mdxEnvironment:q,isAutonav:r,Eq:t,xl:v,Ap:w,fk:H,jo:M})};
g.k.va=function(){this.listeners.length=0;this.Aw=null;g.I.prototype.va.call(this)};g.y(y1,g.I);g.k=y1.prototype;g.k.rk=function(){var a=this;n1(this.Aa.get())||(this.j=Pd(function(){a.J.Na()||a.J.Eg("ad",1)}))};
g.k.Co=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.qR=function(){};
g.k.playVideo=function(){this.J.playVideo()};
g.k.pauseVideo=function(){this.J.pauseVideo()};
g.k.resumeVideo=function(a){this.qo(a)&&this.J.playVideo()};
g.k.qo=function(a){return 2===this.J.getPlayerState(a)};
g.k.getCurrentTimeSec=function(a,b,c){var d=this.Ra.get().LQ;if(2===a&&!b&&null!==d)return Kib(this,d);EM(this.Aa.get(),"html5_ssap_use_cpn_to_get_time")||(c=void 0);return void 0!==c?this.J.getCurrentTime(a,b,c):this.J.getCurrentTime(a,b)};
g.k.getVolume=function(){return this.J.getVolume()};
g.k.isMuted=function(){return this.J.isMuted()};
g.k.getPresentingPlayerType=function(){return this.J.getPresentingPlayerType(!0)};
g.k.getPlayerState=function(a){return this.J.getPlayerState(a)};
g.k.isFullscreen=function(){return this.J.isFullscreen()};
g.k.isAtLiveHead=function(){return this.J.isAtLiveHead()};
g.k.hC=function(a){this.J.hC(a)};
g.k.Eba=function(){var a=this.J.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(2===a){a=g.u(this.listeners);for(var c=a.next();!c.done;c=a.next())c.value.Ii(b)}else if(1===a)for(a=g.u(this.aE),c=a.next();!c.done;c=a.next())c.value.qR(b)};
g.k.vba=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.ag(a,this.getPresentingPlayerType())};
g.k.onFullscreenToggled=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
g.k.onVolumeChange=function(){for(var a=g.u(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
g.k.lh=function(){for(var a=this.J.isMinimized(),b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.lh(a)};
g.k.Dj=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Dj(a)};
g.k.jc=function(){for(var a=this.J.ob().Vh(),b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Zi(a)};
g.k.Cj=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Cj(a)};
g.k.Fj=function(){for(var a=g.u(this.listeners),b=a.next();!b.done;b=a.next())b.value.Fj()};g.y(Nib,g.I);g.y(D1,g.I);D1.prototype.va=function(){this.zo.Na()||this.zo.get().removeListener(this);g.I.prototype.va.call(this)};E1.prototype.fetch=function(a){var b=a.sX;return this.j.fetch(a.Y2,{zw:void 0===a.zw?void 0:a.zw,Wd:b,cueProcessedMs:void 0===a.cueProcessedMs?0:a.cueProcessedMs}).then(function(c){return Oib(c,b)})};g.y(F1,g.I);g.k=F1.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.gM=function(a){Pib(this,a,1)};
g.k.onAdUxClicked=function(a,b){G1(this,function(c){c.hg(a,b)})};
g.k.lR=function(a){G1(this,function(b){b.PP(a)})};
g.k.kR=function(a){G1(this,function(b){b.OP(a)})};
g.k.aaa=function(a){G1(this,function(b){b.RJ(a)})};H1.prototype.reduce=function(a){switch(a.event){case "unknown":return}var b=a.identifier;var c=this.j[b];c?b=c:(c={cE:null,FZ:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c<b.FZ))if(b.FZ=c,b.cE){if(c<b.cE.end){a:{c=b.cE;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.Bh;a=c.end<=a?null:a}if(null!==a)for(b.cE.end=a,b=this.B,g.Zb(b.C.j,1E3*a),b=g.u(b.listeners),c=b.next();!c.done;c=b.next())c.value.E_(a)}}else if(a=Qib(a,this.C))c=a.V9,b.cE=
a.I7,Sib(this.B,c)};
H1.prototype.updateTime=function(){};g.y(I1,g.I);g.k=I1.prototype;
g.k.rk=function(){this.G=new H1(this,iib(this.Aa.get()));this.C=new Rib;var a=this.J.getVideoData(1);if(!a.enableServerStitchedDai){var b=this.J.getVideoData(1),c;(null==(c=this.j)?void 0:c.clientPlaybackNonce)!==b.clientPlaybackNonce&&(null!=this.j&&this.j.unsubscribe("cuepointupdated",this.rR,this),b.subscribe("cuepointupdated",this.rR,this),this.j=b)}this.uM.length=0;var d;b=(null==(d=a.j)?void 0:BTa(d,0))||[];d=g.u(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.Lu(b)&&KF("Unexpected a GetAdBreak to go out without player waiting",
void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce})};
g.k.Co=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.Lu=function(a){Uib(this,a);this.G.reduce(a);a=this.D;this.D=!1;return a};
g.k.rR=function(a){var b=this.J.getVideoData(1).isDaiEnabled();if(b||!g.GI(this.J.U())){a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Uib(this,c),b?this.G.reduce(c):0!==this.J.getCurrentTime(1)&&"start"===c.event&&(this.Aa.get().J.U().experiments.fb("ignore_overlapping_cue_points_on_endemic_live_html5")&&(null==this.B?0:c.startSecs+c.Bh>=this.B.startSecs&&c.startSecs<=this.B.startSecs+this.B.Bh)?KF("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.B=c,Sib(this,
c)))}};
g.k.va=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.rR,this),this.j=null);this.listeners.length=0;this.uM.length=0;g.I.prototype.va.call(this)};J1.prototype.addPlayerResponseForAssociation=function(a){this.J.addPlayerResponseForAssociation(a)};g.k=L1.prototype;g.k.OD=function(a,b,c,d,e,f,h){return this.J.OD(a,b,c,d,e,f,h)};
g.k.Dz=function(a,b){this.J.Dz(a,b)};
g.k.CH=function(a,b,c){this.J.CH(a,b,c)};
g.k.Ou=function(a){this.J.Ou(a)};
g.k.fF=function(a,b,c,d,e,f,h){this.J.fF(a,b,c,d,e,f,h)};
g.k.Gs=function(a){return this.J.Gs(a)};
g.k.finishSegmentByCpn=function(a,b){this.J.finishSegmentByCpn(a,b)};g.y(Xib,g.I);g.y(Yib,g.I);g.y(Zib,g.I);g.y($ib,g.I);g.y(ajb,g.I);g.y(cjb,g.I);cjb.prototype.C=function(){return this.B};g.y(djb,xF);
djb.prototype.D=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.jb("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.jb("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);
this.j.jb("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.jb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.jb("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.jb("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.jb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.jb("updateKevlarOrC3Companion",{})}else if("top-banner-image-text-icon-buttoned"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.jb("updateKevlarOrC3Companion",
{contentVideoId:a&&a.videoId,topBannerImageTextIconButtonedLayoutViewModel:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.jb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.jb("updateKevlarOrC3Companion",{})}else if("banner-image"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.jb("updateKevlarOrC3Companion",
{contentVideoId:a&&a.videoId,bannerImageLayoutViewModel:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b=this.j.getVideoData(1),this.j.jb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.jb("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.jb("updateEngagementPanelAction",b.addAction);this.j.jb("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.j.jb("changeEngagementPanelVisibility",b.hideAction),this.j.jb("updateEngagementPanelAction",b.removeAction)}else if("ads-engagement-panel-layout"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.jb("updateEngagementPanelAction",GE(b.addAction));this.j.jb("changeEngagementPanelVisibility",GE(b.expandAction));break;case 3:this.j.jb("changeEngagementPanelVisibility",GE(b.hideAction)),this.j.jb("updateEngagementPanelAction",GE(b.removeAction))}};g.y(ejb,CF);g.k=ejb.prototype;
g.k.init=function(a,b,c){CF.prototype.init.call(this,a,b,c);g.Is(this.B,"stroke-dasharray","0 "+this.C);this.api.U().L("enable_dark_mode_style_endcap_timed_pie_countdown")&&(this.B.classList.add("ytp-ad-timed-pie-countdown-inner-light"),this.G.classList.add("ytp-ad-timed-pie-countdown-outer-light"));this.api.U().L("enable_dsa_ad_badge_for_action_endcap_on_web")&&this.D.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.api.U().L("enable_unified_action_endcap_on_web")&&(this.D.classList.add("ytp-ad-timed-pie-countdown-container-unified"),
this.B.classList.add("ytp-ad-timed-pie-countdown-inner-unified"),this.G.classList.add("ytp-ad-timed-pie-countdown-outer-unified"),this.ra.classList.add("ytp-ad-timed-pie-countdown-unified"));this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){EF(this);CF.prototype.hide.call(this)};
g.k.show=function(){DF(this);CF.prototype.show.call(this)};
g.k.yq=function(){this.hide()};
g.k.Ko=function(){if(this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&g.Is(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.C+" "+this.C)}};g.y(fjb,cF);g.k=fjb.prototype;
g.k.init=function(a,b,c){cF.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.V(b.actionButton,g.pM))if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.AE(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.fc(g.bf(e[0].url))&&(e[0].url=d.profilePicture,g.fc(g.bf(d.profilePicture))&&TTa("VideoPlayer",239976093,"Expected non-empty profile picture."));e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.fc(g.bf(e[0].url))&&(e[0].url=d.fh());e=b.headline;null!=e&&g.fc(g.bf(e.text))&&(e.text=d.author)}this.Y.init(SE("ad-image"),b.image,c);this.G.init(SE("ad-text"),b.headline,c);this.C.init(SE("ad-text"),b.description,c);this.Ma.init(SE("ad-image"),b.backgroundImage,c);d=["ytp-ad-action-interstitial-action-button",
"ytp-ad-action-interstitial-action-button-rounded"];this.api.U().L("enable_dark_mode_style_endcap")&&(this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background"),this.G.element.classList.add("ytp-ad-action-interstitial-headline-light"),this.C.element.classList.add("ytp-ad-action-interstitial-description-light"),d.push("ytp-ad-action-interstitial-action-button-dark"));this.api.U().L("enable_small_endcap_action_button_for_mweb")&&this.api.U().B&&d.push("ytp-ad-action-interstitial-action-button-mobile-companion-size");
this.api.U().L("enable_mweb_endcap_dark_mode_action_button")&&this.api.U().B&&d.push("ytp-ad-action-interstitial-action-button-dark");this.api.U().L("enable_unified_action_endcap_on_web")&&(d.push("ytp-ad-action-interstitial-action-button-unified"),this.bb.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Af.classList.add("ytp-ad-action-interstitial-card-unified"),this.C.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.G.element.classList.add("ytp-ad-action-interstitial-headline-unified"),
this.ra.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Ga.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new nF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,d);g.N(this,this.actionButton);this.actionButton.Ja(this.gb);this.actionButton.init(SE("button"),g.V(b.actionButton,g.pM),c);Dv(this.actionButton.element);d=Gv(this.actionButton.element);Fv(this.actionButton.element,
d+" This link opens in new tab");this.navigationEndpoint=b.navigationEndpoint;this.D.T(this.ra,"click",this.WO,this);this.D.T(this.Va,"click",this.WO,this);!this.api.U().L("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.U().B||this.D.T(this.Wa,"click",this.WO,this);this.j=this.pT?new UF(this.api,a):new VF(a);g.N(this,this.j);if(b.skipButton){if((a=g.V(b.skipButton,kmb))&&this.j&&(this.skipButton=new PF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j,this.dM),
g.N(this,this.skipButton),this.skipButton.Ja(this.element),this.skipButton.init(SE("skip-button"),a,c)),this.api.U().L("enable_dsa_ad_badge_for_action_endcap_on_web")){if(c=b.adBadgeRenderer)if(c=g.V(c,jmb))a=new SF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,!0,!1),a.Ja(this.Ga),a.init(SE("simple-ad-badge"),c,this.macros),g.N(this,a);if(c=b.adInfoRenderer)if(c=g.V(c,nM))a=new AF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.element),a.Ja(this.Ga),a.init(SE("ad-info-hover-text-button"),
c,this.macros),g.N(this,a)}}else b.nonskippableOverlayRenderer&&(a=g.V(b.nonskippableOverlayRenderer,oM))&&this.j&&(this.B=new HF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j,!1),g.N(this,this.B),this.B.Ja(this.element),this.B.init(SE("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,g.V(b,lmb)&&this.j&&(c=new ejb(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j),g.N(this,c),c.Ja(this.element),c.init(SE("timed-pie-countdown"),g.V(b,lmb),
this.macros)));this.show();this.element.focus()}else g.AE(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.AE(Error("AdActionInterstitialRenderer has no button."));else g.AE(Error("AdActionInterstitialRenderer has no background AdImage."));else g.AE(Error("AdActionInterstitialRenderer has no description AdText."));else g.AE(Error("AdActionInterstitialRenderer has no headline AdText."));else g.AE(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.MB(this.D);this.hide()};
g.k.show=function(){gjb(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();cF.prototype.show.call(this)};
g.k.hide=function(){gjb(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();cF.prototype.hide.call(this)};
g.k.WO=function(){this.navigationEndpoint&&(this.layoutId?this.kb.executeCommand(this.navigationEndpoint,this.layoutId):g.AE(Error("Missing layoutId for ad action interstitial.")))};var ljb={iconType:"CLOSE"},P1=new g.Ke(320,63);g.y(kjb,cF);g.k=kjb.prototype;
g.k.init=function(a,b,c){cF.prototype.init.call(this,a,b,c);this.D=b;this.Y=g.Lb(this.D.onClickCommands||[]);this.Va=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,g.V(a,gmb)?(this.G=g.tf("ytp-ad-overlay-ad-info-button-container",this.C.element),mjb(this,b),a=ojb(this,g.V(a,gmb))):g.V(a,hmb)?(this.G=g.tf("ytp-ad-overlay-ad-info-button-container",this.B.element),mjb(this,b),a=pjb(this,g.V(a,hmb))):g.V(a,imb)?(this.G=
g.tf("ytp-ad-overlay-ad-info-button-container",this.j.element),mjb(this,b),a=qjb(this,g.V(a,imb))):(g.AE(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),rjb(this,!0))};
g.k.clear=function(){rjb(this,!1);this.Ma.reset();this.ra=0;this.C.hide();this.logVisibility(this.C.element,!1);this.B.hide();this.logVisibility(this.B.element,!1);this.j.hide();this.logVisibility(this.j.element,!1);this.hide();this.dispose()};
g.k.sca=function(){this.bb&&(this.layoutId?this.kb.executeCommand(this.bb,this.layoutId):g.AE(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
g.k.PM=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var a=this.D.closeButton.buttonRenderer;if(a.serviceEndpoint){a=[a.serviceEndpoint];break a}}a=[]}a=g.u(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.kb.executeCommand(b,this.layoutId):g.AE(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.Y$=function(){this.Wa||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.k.KR=function(){this.Wa||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.KR("invideo-overlay")};
g.k.Z$=function(a){a.target===this.G&&g.tf("ytp-ad-button",this.gb.element).click()};g.y(sjb,CF);g.k=sjb.prototype;g.k.init=function(a,b,c){CF.prototype.init.call(this,a,b,c);a=b.durationMs;this.C=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(SE("ad-text"),d,c);this.messageText.Ja(this.B.element);this.D.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){tjb(this,!1);CF.prototype.hide.call(this);this.B.hide();this.messageText.hide();EF(this)};
g.k.show=function(){tjb(this,!0);CF.prototype.show.call(this);DF(this);this.B.show();this.messageText.show()};
g.k.yq=function(){this.hide()};
g.k.Ko=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.ra&&a>=this.C?(this.D.hide(),this.ra=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.G&&(Oya(this.messageText,{TIME_REMAINING:String(a)}),this.G=a)))}};g.y(ujb,cF);g.k=ujb.prototype;
g.k.init=function(a,b,c){cF.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.V(b.actionButton,g.pM)?(this.C.init(SE("ad-image"),b.image,c),this.B.init(SE("ad-text"),b.headline,c),this.D.init(SE("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.U().L("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new nF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,
a),b.backgroundColor&&g.Is(this.element,"background-color",g.dG(b.backgroundColor)),g.N(this,this.actionButton),this.actionButton.Ja(this.G),this.actionButton.init(SE("button"),g.V(b.actionButton,g.pM),c),b=g.xI(this.api.U().experiments,"player_underlay_video_width_fraction"),this.api.U().L("place_shrunken_video_on_left_of_player")?(c=this.j,g.Sv(c,"ytp-ad-underlay-left-container"),g.Qv(c,"ytp-ad-underlay-right-container"),g.Is(this.j,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.j,g.Sv(c,"ytp-ad-underlay-right-container"),
g.Qv(c,"ytp-ad-underlay-left-container")),g.Is(this.j,"width",Math.round(100*(1-b-.04))+"%"),this.api.oF()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.DU.bind(this)),this.api.addEventListener("resize",this.GY.bind(this))):g.AE(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.AE(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.AE(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.AE(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.k.show=function(){vjb(!0);this.actionButton&&this.actionButton.show();cF.prototype.show.call(this)};
g.k.hide=function(){vjb(!1);this.actionButton&&this.actionButton.hide();cF.prototype.hide.call(this)};
g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.DU.bind(this));this.api.removeEventListener("resize",this.GY.bind(this));this.hide()};
g.k.onClick=function(a){cF.prototype.onClick.call(this,a);this.actionButton&&g.Jf(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.k.DU=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.GY=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.Is(this.B.element,"font-size",a.width/40+"px")};g.y(Q1,cF);
Q1.prototype.init=function(a,b,c){cF.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&g.V(b.answer,g.pM)?(a=new nF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ja(this.answer),a.init(SE("ytp-ad-survey-answer-button"),g.V(b.answer,g.pM),c),a.show()):b.answer&&g.V(b.answer,G2)&&(this.j=new wF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,
["ytp-ad-survey-answer-toggle-button"]),this.j.Ja(this.answer),g.N(this,this.j),this.j.init(SE("survey-answer-button"),g.V(b.answer,G2),c));this.show()};
Q1.prototype.TG=function(a){this.layoutId?TI(this.kb,a,this.layoutId,this.macros):g.AE(new g.XB("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
Q1.prototype.onClick=function(a){cF.prototype.onClick.call(this,a);if(this.api.U().L("supports_multi_step_on_desktop")&&null!==this.index)this.onSelected(this.index)};
Q1.prototype.clear=function(){this.hide()};g.y(wjb,cF);wjb.prototype.init=function(a,b,c){cF.prototype.init.call(this,a,b,c);b.answer&&g.V(b.answer,G2)&&(this.button=new wF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ja(this.j),this.button.init(SE("survey-none-of-the-above-button"),g.V(b.answer,G2),c));this.show()};g.y(R1,nF);R1.prototype.init=function(a,b,c){nF.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.eF(b.text),a=!g.fc(b));a||g.BE(Error("No submit text was present in the renderer."))};
R1.prototype.onClick=function(a){this.publish("l");nF.prototype.onClick.call(this,a)};g.y(S1,cF);
S1.prototype.init=function(a,b,c){cF.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)g.V(a,uL)?(a=g.V(a,uL),c=new RF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.D,!0),c.Ja(this.skipOrPreview),c.init(SE("skip-button"),a,this.macros),g.N(this,c),this.j=c):g.V(a,oM)&&(a=g.V(a,oM),c=new HF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.D,!1),c.Ja(this.skipOrPreview),c.init(SE("ad-preview"),a,this.macros),Pya(c),g.N(this,c),this.j=c);null==
this.j&&g.AE(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));b.submitButton&&(a=b.submitButton,g.V(a,g.pM)&&(a=g.V(a,g.pM),c=new R1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),c.Ja(this.submitButton),c.init(SE("survey-submit"),a,this.macros),g.N(this,c),this.B=c));if(a=b.adBadgeRenderer)a=g.V(a,jmb),c=new SF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,!0,!1),c.Ja(this.C),c.init(SE("simple-ad-badge"),a,this.macros),
g.N(this,c);if(a=b.adDurationRemaining)a=g.V(a,cmb),c=new YF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.D,void 0),c.Ja(this.C),c.init(SE("ad-duration-remaining"),a,this.macros),g.N(this,c);(b=b.adInfoRenderer)&&g.V(b,nM)&&(a=new AF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.element),g.N(this,a),a.Ja(this.C),a.init(SE("ad-info-hover-text-button"),g.V(b,nM),this.macros));this.api.U().L("enable_unified_ad_badge_style_fix")&&this.C.classList.add("ytp-ad-survey-player-overlay-instream-info-unified");
this.show()};
S1.prototype.clear=function(){this.hide()};g.y(T1,cF);T1.prototype.init=function(a,b,c){cF.prototype.init.call(this,a,b,c);Bjb(this)};
T1.prototype.show=function(){this.C=g.lb();cF.prototype.show.call(this)};
T1.prototype.T0=function(){};g.y(Cjb,T1);g.k=Cjb.prototype;g.k.init=function(a,b,c){var d=this;T1.prototype.init.call(this,a,b,c);b.questionText&&xjb(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.V(e,B2)&&yjb(d,g.V(e,B2),c,f)});
this.G=new Set(this.B.map(function(e){return e.j.j}));
(a=b.noneOfTheAbove)&&(a=g.V(a,fmb))&&Djb(this,a,c);b.surveyAdQuestionCommon&&Ajb(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()};
g.k.T0=function(){Ejb(this,!1);this.D.B.subscribe("l",this.qca,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.j?Fjb(this):this.G.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),Ejb(this,!0))};
g.k.qca=function(){var a=[],b=this.B.reduce(function(e,f,h){var l=f.toggledLoggingParams;f.j&&f.j.isToggled()&&l&&(e.push(l),a.push(h));return e},[]).join("&"),c=this.submitEndpoints.map(function(e){if(!e.loggingUrls)return e;
e=g.kd(e);e.loggingUrls=e.loggingUrls.map(function(f){f.baseUrl&&(f.baseUrl=uo(f.baseUrl,b));return f});
return e});
if(c){c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.layoutId?TI(this.kb,d,this.layoutId,this.macros):g.AE(Error("Missing layoutId for multi_select_question."))}this.api.U().L("supports_multi_step_on_desktop")&&this.ra(a)};
g.k.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.y(U1,T1);U1.prototype.init=function(a,b,c){var d=this;T1.prototype.init.call(this,a,b,c);b.questionText&&xjb(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.V(e,B2)&&yjb(d,g.V(e,B2),c,f)});
b.surveyAdQuestionCommon?Ajb(this,b.surveyAdQuestionCommon):g.AE(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
U1.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.y(V1,cF);V1.prototype.init=function(a,b,c){var d=this;cF.prototype.init.call(this,a,b,c);if(this.api.U().L("supports_multi_step_on_desktop")){var e;this.conditioningRules=null!=(e=b.conditioningRules)?e:[];var f;this.B=null!=(f=b.questions)?f:[];var h;(null==(h=b.questions)?0:h.length)&&Jjb(this,0)}else(b.questions||[]).forEach(function(l){g.V(l,mM)?Hjb(d,g.V(l,mM),c):g.V(l,lM)&&Ijb(d,g.V(l,lM),c)});
this.show()};
V1.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
V1.prototype.D=function(a){var b=this;if(this.api.U().L("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.AE(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.AE(Error("Expected specified condition in survey conditioning rules."))}}),null!=d)Jjb(this,d);
else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else 1<this.questions.length&&g.AE(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};var Kjb=pa(['background-image:url("','");']);g.y(W1,cF);
W1.prototype.init=function(a,b,c){var d=this;cF.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.AE(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&g.V(b.ctaButton,g.pM))if(b.brandImage)if(b.backgroundImage&&g.V(b.backgroundImage,qM)&&g.V(b.backgroundImage,qM).landscape){this.layoutId||g.AE(Error("Missing layoutId for survey interstitial."));Ljb(this.interstitial,
g.V(b.backgroundImage,qM).landscape);Ljb(this.logoImage,b.brandImage);g.Kf(this.text,g.eF(b.text));var e=["ytp-ad-survey-interstitial-action-button"];e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new nF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,e);g.N(this,this.actionButton);this.actionButton.Ja(this.B);this.actionButton.init(SE("button"),g.V(b.ctaButton,g.pM),c);this.actionButton.show();this.j=new UF(this.api,1E3*a);this.j.subscribe("g",function(){d.transition.hide()});
g.N(this,this.j);this.T(this.element,"click",function(f){var h=f.target===d.interstitial;f=d.actionButton.element.contains(f.target);if(h||f)if(d.transition.hide(),h)d.api.onAdUxClicked(d.componentType,d.layoutId)});
this.transition.show(100)}else g.AE(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.AE(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.AE(Error("SurveyTextInterstitialRenderer has no button."));else g.AE(Error("SurveyTextInterstitialRenderer has no text."));else g.AE(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
W1.prototype.clear=function(){this.hide()};
W1.prototype.show=function(){Mjb(!0);cF.prototype.show.call(this)};
W1.prototype.hide=function(){Mjb(!1);cF.prototype.hide.call(this)};g.y(Y1,cF);Y1.prototype.init=function(a,b){cF.prototype.init.call(this,a,b,{});if(a=b.content){g.Kf(this.element,a);var c,d;b=(null==(c=b.interaction)?void 0:null==(d=c.accessibility)?void 0:d.label)||a;this.element.setAttribute("aria-label",b)}else g.AE(Error("AdSimpleAttributedString does not have text content"))};
Y1.prototype.clear=function(){this.hide()};
Y1.prototype.onClick=function(a){cF.prototype.onClick.call(this,a)};g.y(Z1,cF);
Z1.prototype.init=function(a,b){cF.prototype.init.call(this,a,b,{});(a=b.label)&&a.content&&!g.fc(a.content)?(this.adBadgeText.init(SE("ad-simple-attributed-string"),new X1(a)),(b=b.adPodIndex)&&b.content&&!g.fc(b.content)&&(this.j=new Y1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),this.j.Ja(this.element),g.N(this,this.j),this.j.element.classList.add("ytp-ad-badge__pod-index"),this.j.init(SE("ad-simple-attributed-string"),new X1(b))),this.element.classList.add("ytp-ad-badge--stark"),this.show()):
g.AE(Error("No label is returned in AdBadgeViewModel."))};
Z1.prototype.show=function(){this.adBadgeText.show();var a;null==(a=this.j)||a.show();cF.prototype.show.call(this)};
Z1.prototype.hide=function(){this.adBadgeText.hide();var a;null==(a=this.j)||a.hide();cF.prototype.hide.call(this)};g.y($1,cF);$1.prototype.init=function(a,b){cF.prototype.init.call(this,a,b,{});if(null!=b&&b.text){var c;if((null==(c=b.text)?0:c.content)&&!g.fc(b.text.content)){this.j=new g.bF({I:"div",S:"ytp-ad-disclosure-banner__text",xa:b.text.content});g.N(this,this.j);this.j.Ja(this.element);var d;if(null==(d=b.interaction)?0:d.onTap)this.B=new g.bF({I:"div",S:"ytp-ad-disclosure-banner__chevron",V:[g.hF()]}),g.N(this,this.B),this.B.Ja(this.element);this.show()}}else g.AE(Error("No banner text found in AdDisclosureBanner."))};
$1.prototype.clear=function(){this.hide()};g.y(a2,CF);g.k=a2.prototype;
g.k.init=function(a,b){CF.prototype.init.call(this,a,b,{});if(b.durationMilliseconds){if(0>b.durationMilliseconds){g.AE(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+b.durationMilliseconds));return}this.B=b.durationMilliseconds}else this.B=this.j.tm();var c;if(null==(c=b.previewText)||!c.text||g.fc(b.previewText.text))g.AE(Error("No text is returned for AdPreview."));else{this.G=b.previewText;b.previewText.isTemplated||g.Kf(this.C,b.previewText.text);var d;
if((null==(d=this.api.getVideoData(1))?0:d.Ol)&&b.previewImage){var e,f;(a=(null==(f=TAa((null==(e=b.previewImage)?void 0:e.sources)||[],52,!1))?void 0:f.url)||"")&&a.length?(this.previewImage=new g.bF({I:"img",S:"ytp-preview-ad__image",X:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",a),g.N(this,this.previewImage),this.previewImage.Ja(this.element)):g.AE(Error("Failed to get imageUrl in AdPreview."))}else this.C.classList.add("ytp-preview-ad__text--padding--wide")}};
g.k.clear=function(){this.hide()};
g.k.hide=function(){EF(this);CF.prototype.hide.call(this)};
g.k.show=function(){DF(this);CF.prototype.show.call(this)};
g.k.yq=function(){this.hide()};
g.k.Ko=function(){if(this.j){var a=this.j.getProgressState();if(null!=a&&a.current)if(a=1E3*a.current,a>=this.B)this.transition.hide();else{var b;if(null==(b=this.G)?0:b.isTemplated)if(b=Math.max(0,Math.ceil((this.B-a)/1E3)),b!==this.D){var c,d;(a=null==(c=this.G)?void 0:null==(d=c.text)?void 0:d.replace("{TIME_REMAINING}",String(b)))&&g.Kf(this.C,a);this.D=b}}}};g.y(b2,cF);
b2.prototype.init=function(a,b){cF.prototype.init.call(this,a,b,{});var c,d;if((a=(null==(d=TAa((null==(c=b.image)?void 0:c.sources)||[],Ojb(b),!0))?void 0:d.url)||"")&&a.length){c=this.Fa("ytp-ad-avatar");c.src=a;var e,f;if(d=null==(e=b.interaction)?void 0:null==(f=e.accessibility)?void 0:f.label)c.alt=d;switch(b.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s");
break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(b.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner");break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.AE(Error("Failed to get imageUrl in AdAvatar."))};
b2.prototype.clear=function(){this.hide()};
b2.prototype.onClick=function(a){cF.prototype.onClick.call(this,a)};g.y(c2,cF);
c2.prototype.init=function(a,b){cF.prototype.init.call(this,a,b,{});var c;a=null==(c=b.label)?void 0:c.content;if((c=null!=a&&!g.fc(a))||b.iconImage){c&&(this.buttonText=new g.bF({I:"span",S:"ytp-ad-button__text",xa:a}),g.N(this,this.buttonText),this.buttonText.Ja(this.element));var d,e,f=(null==(d=b.interaction)?0:null==(e=d.accessibility)?0:e.label)||c?a:"";f&&Fv(this.element,f+" This link opens in new tab");Dv(this.element);if(b.iconImage){d=void 0;if(b.iconImage){a:{e=b.iconImage;if(e.sources)for(e=g.u(e.sources),
a=e.next();!a.done;a=e.next())if(a=a.value,c=void 0,null==(c=a.clientResource)?0:c.imageName){e=a;break a}e=void 0}if(e){var h;d={iconType:null==(h=e.clientResource)?void 0:h.imageName}}}h=mF(d);null!=h&&(this.buttonIcon=new g.bF({I:"span",S:"ytp-ad-button__icon",V:[h]}),g.N(this,this.buttonIcon),b.iconLeading?(Df(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button__icon--leading")):(this.buttonIcon.Ja(this.element),this.buttonIcon.element.classList.add("ytp-ad-button__icon--trailing")))}this.element.classList.add("ytp-ad-button--style-filled");
switch(b.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button--size-large");break;default:this.element.classList.add("ytp-ad-button--size-default")}}else g.BE(Error("AdButton does not have label or an icon."))};
c2.prototype.clear=function(){this.hide()};
c2.prototype.onClick=function(a){cF.prototype.onClick.call(this,a)};g.y(Pjb,CF);g.k=Pjb.prototype;
g.k.init=function(a,b){CF.prototype.init.call(this,a,b,{});this.api.U().L("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.Fa("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"),
this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),Df(this.Fa("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(a=g.V(b.avatar,mmb)){var c=b.headline;if(c){var d=b.description;if(d){var e=g.V(b.button,omb);e?(this.adAvatar.init(SE("ad-avatar"),a),this.headline.init(SE("ad-simple-attributed-string"),new X1(c)),this.description.init(SE("ad-simple-attributed-string"),new X1(d)),c.content&&20<c.content.length&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),
this.adButton.init(SE("ad-button"),e),this.B=b.startMs||0,this.api.oF()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.EU.bind(this)),DF(this)):g.AE(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.AE(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.AE(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.AE(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))};
g.k.Ko=function(){if(this.j){var a=this.j.getProgressState();a&&a.current&&1E3*a.current>=this.B&&(EF(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}};
g.k.yq=function(){this.clear()};
g.k.onClick=function(a){this.api.pauseVideo();CF.prototype.onClick.call(this,a)};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.EU.bind(this))};
g.k.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();CF.prototype.show.call(this)};
g.k.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();CF.prototype.hide.call(this)};
g.k.EU=function(a){"hidden"===a?this.show():this.hide()};g.y(Qjb,cF);g.k=Qjb.prototype;
g.k.init=function(a,b){cF.prototype.init.call(this,a,b,{});if(!b.label||g.fc(b.label))g.AE(Error("No label is returned for SkipAdButton."));else if(g.Kf(this.D,b.label),a=mF({iconType:"SKIP_NEXT_NEW"}),null==a)g.AE(Error("Unable to retrieve icon for SkipAdButton"));else if(this.C=new g.bF({I:"span",S:"ytp-skip-ad-button__icon",V:[a]}),g.N(this,this.C),this.C.Ja(this.element),this.api.U().experiments.fb("enable_skip_to_next_messaging")&&(b=g.bf(b.targetId)))this.B=!0,this.element.setAttribute("data-tooltip-target-id",
b),this.element.setAttribute("data-tooltip-target-fixed","")};
g.k.onClick=function(a){a&&a.preventDefault();var b,c;if(0===Vya(a,{contentCpn:null!=(c=null==(b=this.api.getVideoData(1))?void 0:b.clientPlaybackNonce)?c:""})&&(this.api.U().L("enable_isk_gating")&&this.api.jb("onAbnormalityDetected"),this.api.U().L("ab_sa_ef")))return;cF.prototype.onClick.call(this,a);this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.jb("onAdSkip");this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.k.clear=function(){this.j.reset();this.hide()};
g.k.hide=function(){cF.prototype.hide.call(this)};
g.k.show=function(){this.j.start();cF.prototype.show.call(this);this.B&&this.api.U().experiments.fb("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.y(Rjb,CF);g.k=Rjb.prototype;
g.k.init=function(a,b){CF.prototype.init.call(this,a,b,{});var c=g.V(b.preskipState,qmb);c?(a=g.V(b.skippableState,smb))?(null!=b.skipOffsetMilliseconds?this.skipOffsetMilliseconds=b.skipOffsetMilliseconds:(g.BE(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.B.init(SE("preview-ad"),c),b=this.B,b.transition.show(100),b.show(),this.C.init(SE("skip-button"),a),this.show()):g.AE(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel.")):g.AE(Error("No AdPreviewViewModel is returned in SkipAdViewModel."))};
g.k.show=function(){DF(this);CF.prototype.show.call(this)};
g.k.hide=function(){!this.isSkippable&&this.B?this.B.hide():this.C&&this.C.hide();EF(this);CF.prototype.hide.call(this)};
g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();EF(this);CF.prototype.hide.call(this)};
g.k.yq=function(){this.hide()};
g.k.Ko=function(){if(1E3*this.j.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var a;null!=(a=this.B)&&a.transition.hide();null!=(a=this.C)&&(a.transition.show(),a.show())}};g.y(d2,cF);
d2.prototype.init=function(a,b){cF.prototype.init.call(this,a,b,{});if(b.label){var c;(null==(c=b.label)?0:c.content)&&!g.fc(b.label.content)&&(this.linkText=new g.bF({I:"span",S:"ytp-visit-advertiser-link__text",xa:b.label.content}),g.N(this,this.linkText),this.linkText.Ja(this.element));var d,e;if(null==(d=b.interaction)?0:null==(e=d.accessibility)?0:e.label)Fv(this.element,b.interaction.accessibility.label+" This link opens in new tab");else{var f;(null==(f=b.label)?0:f.content)&&!g.fc(b.label.content)&&Fv(this.element,
b.label.content+" This link opens in new tab")}Dv(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.AE(Error("No label found in VisitAdvertiserLink."))};
d2.prototype.onClick=function(a){cF.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType,this.layoutId)};
d2.prototype.clear=function(){this.hide()};g.y(e2,cF);
e2.prototype.init=function(a,b,c,d){cF.prototype.init.call(this,a,b,{});b.skipOrPreview&&(c=b.skipOrPreview,a=g.V(c,tmb),c=g.V(c,qmb),a?(this.Zu=new Rjb(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B),g.N(this,this.Zu),this.Zu.Ja(this.G),this.Zu.init(SE("skip-ad"),a)):c&&(this.C=new a2(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,1),g.N(this,this.C),this.C.Ja(this.G),this.C.init(SE("ad-preview"),c),a=this.C,a.transition.show(100),a.show()));b.playerAdCard&&
(a=g.V(b.playerAdCard,rmb))&&(this.playerAdCard=new Pjb(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B),g.N(this,this.playerAdCard),this.playerAdCard.Ja(this.ra),this.playerAdCard.init(SE("ad-avatar-lockup-card"),a));b.adBadgeRenderer&&(c=b.adBadgeRenderer,a=g.V(c,jmb),c=g.V(c,nmb),a||c)&&(a?(this.adBadge=new SF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,!0,!1),g.N(this,this.adBadge),this.adBadge.Ja(this.j),this.adBadge.init(SE("simple-ad-badge"),a,this.macros)):
c&&(this.D=new Z1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.N(this,this.D),this.D.Ja(this.j),this.D.init(SE("ad-badge"),c)));b.adDurationRemaining&&(a=g.V(b.adDurationRemaining,cmb))&&(this.adDurationRemaining=new YF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,d.videoAdDurationSeconds),g.N(this,this.adDurationRemaining),this.adDurationRemaining.Ja(this.j),this.adDurationRemaining.init(SE("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&
(d=g.V(b.adInfoRenderer,nM))&&(this.adInfoButton=new AF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.element),g.N(this,this.adInfoButton),this.adInfoButton.Ja(this.j),this.adInfoButton.init(SE("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserLink&&(d=g.V(b.visitAdvertiserLink,umb))&&(this.visitAdvertiserLink=new d2(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.N(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Ja(this.j),this.visitAdvertiserLink.init(SE("visit-advertiser-link"),
d));b.adDisclosureBanner&&(b=g.V(b.adDisclosureBanner,pmb))&&(this.adDisclosureBanner=new $1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.N(this,this.adDisclosureBanner),this.adDisclosureBanner.Ja(this.Y),this.adDisclosureBanner.init(SE("ad-disclosure-banner"),b));this.show()};
e2.prototype.clear=function(){this.hide()};var Wpb="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.y(f2,xF);
f2.prototype.D=function(a){var b=a.id,c=a.content,d=c.componentType;if(!Wpb.includes(d))switch(a.actionType){case 1:a=this.api;var e=this.kb,f=c.layoutId,h=c.interactionLoggingClientData,l=c instanceof xJ?c.pT:!1,m=c instanceof xJ||c instanceof TF?c.dM:!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 kjb(a,f,h,e);break;case "player-overlay":a=new bG(a,f,h,e,new YV(a),m);break;case "player-overlay-layout":a=new e2(a,f,h,e,new YV(a));break;case "survey":a=
new V1(a,f,h,e);break;case "ad-action-interstitial":a=new fjb(a,f,h,e,l,m);break;case "survey-interstitial":a=new W1(a,f,h,e);break;case "ad-message":a=new sjb(a,f,h,e,new YV(a,1));break;case "player-underlay":a=new ujb(a,f,h,e);break;default:a=null}if(!a){g.BE(Error("No UI component returned from ComponentFactory for type: "+d));break}g.dd(this.B,b)?g.BE(Error("Ad UI component already registered: "+b)):this.B[b]=a;a.bind(c);c instanceof LDa?this.C?this.C.append(a.MS):g.AE(Error("Underlay view was not created but UnderlayRenderer was created")):
this.G.append(a.MS);break;case 2:b=Sjb(this,a);if(null==b)break;b.bind(c);break;case 3:c=Sjb(this,a),null!=c&&(g.vb(c),g.dd(this.B,b)?(c=this.B,b in c&&delete c[b]):g.BE(Error("Ad UI component does not exist: "+b)))}};
f2.prototype.va=function(){g.wb(Object.values(this.B));this.B={};xF.prototype.va.call(this)};g.y(Tjb,g.tV);g.k=Tjb.prototype;g.k.create=function(){try{Ujb(this),this.load(),this.created=!0,Ujb(this)}catch(a){KF(a instanceof Error?a:String(a))}};
g.k.load=function(){try{Xjb(this)}finally{n1(N1(this.j).Yk)&&this.player.Eg("ad",1)}};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.Nx.Co(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.tV.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){KF(b instanceof Error?b:String(b))}if(null!=this.B){var a=this.B;this.B=null;a.dispose()}this.C.reset()};
g.k.Wm=function(){return!1};
g.k.getAdState=function(){return-1};
g.k.getOptions=function(){return Object.values(Vpb)};
g.k.Sh=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=sib(this.player),Object.assign(b,a.Cob),a=g.cv(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.kq(b);break;case "executeCommand":a=b;a.command&&a.layoutId&&this.executeCommand(a);break;default:return null}};
g.k.Lu=function(a){var b;return!(null==(b=this.j.j.Bf)||!b.get().Lu(a))};
g.k.kq=function(a){a.isMuted&&ZAa(N1(this.j).ll,N1(this.j).Bo,a.layoutId);this.Xs&&this.Xs.kq()};
g.k.executeCommand=function(a){N1(this.j).kb.executeCommand(a.command,a.layoutId)};g.Ua("yt.player.Application.create",g.I0.create);g.Ua("yt.player.Application.createAlternate",g.I0.create);dxa(fxa(),{Wr:[{gB:/Unable to load player module/,weight:20},{gB:/Failed to fetch/,weight:500},{gB:/XHR API fetch failed/,weight:10},{gB:/JSON parsing failed after XHR fetch/,weight:10},{gB:/Retrying OnePlatform request/,weight:10},{gB:/CSN Missing or undefined during playback association/,weight:100}]});var Xpb=g.Xa("ytcsi.tick");Xpb&&Xpb("pe");g.sV("ad",Tjb);g.Ypb=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.Ua("yt.msgs_",g.Ypb);g.y(g.i2,g.I);g.i2.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,g.wC)()};this.next()};
g.i2.prototype.stop=function(){this.delay.stop();this.config=void 0};
g.i2.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.wC)()-a;a=this.j;d=zla(a,e/d);if(0==d)a=a.C;else if(1==d)a=a.D;else{e=Be(a.C,a.y1,d);var f=Be(a.y1,a.y2,d);a=Be(a.y2,a.D,d);e=Be(e,f,d);f=Be(f,a,d);a=Be(e,f,d)}a=g.ze(a,0,1);this.callback(b+(c-b)*a);1>a&&this.delay.start()}};g.y(g.j2,g.W);g.k=g.j2.prototype;g.k.G4=function(){this.B&&this.scrollTo(this.j-this.containerWidth)};
g.k.show=function(){g.W.prototype.show.call(this);ckb(this)};
g.k.H4=function(){this.B&&this.scrollTo(this.j+this.containerWidth)};
g.k.Ox=function(){this.jc(this.api.ob().getPlayerSize())};
g.k.jc=function(a){var b=this.api.bd()?.5625:16/9,c=this.api.Fh();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.u(this.C),f=e.next();!f.done;f=e.next())f=f.value.Fa("ytp-suggestion-image"),f.style.width=d+"px",f.style.height=b+"px";this.suggestions.element.style.height=b+"px";this.G=d;this.Y=b;this.containerWidth=a;this.columns=c;this.j=0;this.suggestions.element.scrollLeft=-0;g.k2(this)};
g.k.onVideoDataChange=function(){var a=this.api.U(),b=this.api.getVideoData();this.K=b.If?!1:a.D;this.suggestionData=b.suggestions?g.Ot(b.suggestions,function(c){return c&&!c.playlistId}):[];
ekb(this);b.If?this.title.update({title:g.jJ("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:this.api.bd()?"More shorts":"More videos"})};
g.k.scrollTo=function(a){a=g.ze(a,this.containerWidth-this.suggestionData.length*(this.G+8),0);this.N.start(this.j,a,1E3);this.j=a;g.k2(this);ckb(this)};})(_yt_player);
